27e4181378860f5c8384f333e81a5d819695655a
[gnulib.git] / ChangeLog
1 2011-09-16  Bruno Haible  <bruno@clisp.org>
2
3         Support for MSVC compiler: Ensure mode_t gets defined.
4         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8         * tests/test-fcntl-h.c: Check that mode_t is defined.
9         * tests/test-sys_stat.c: Likewise.
10         * tests/test-sys_types.c: Likewise.
11         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12         * doc/posix-headers/sys_stat.texi: Likewise.
13         * doc/posix-headers/sys_types.texi: Likewise.
14
15 2011-09-16  Bruno Haible  <bruno@clisp.org>
16
17         sys_stat: Support for MSVC.
18         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
19         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
20         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
21         MSVC.
22
23 2011-09-16  Bruno Haible  <bruno@clisp.org>
24
25         Support for MSVC compiler: Ensure off_t gets defined.
26         * lib/unistd.in.h: Include <sys/types.h>.
27         * tests/test-fcntl-h.c: Check that off_t is defined.
28         * tests/test-sys_stat.c: Likewise.
29         * tests/test-sys_types.c: Likewise.
30
31 2011-09-16  Eric Blake  <eblake@redhat.com>
32
33         fdatasync: port to Solaris
34         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
35         * modules/fdatasync (Link): Document it.
36         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
37
38         fdatasync: port to MacOS X 10.7
39         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
40         declared.
41         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
42         * modules/unistd (Makefile.am): Substitute it.
43         * lib/unistd.in.h (fdatasync): Declare on MacOS.
44         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
45
46         fdatasync: minor improvements
47         * modules/fdatasync (Depends-on): Add condition for fsync.
48         * lib/fdatasync.c (fdatasync): Add comment.
49         * tests/test-unistd-c++.cc: Test fdatasync.
50
51         unistd: update refs to newer POSIX
52         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
53         Suggested by Bruno Haible.
54
55         fdatasync: new module
56         * modules/fsync (Description): Document difference to fdatasync.
57         * modules/fdatasync: New module.
58         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
59         * lib/fdatasync.c (fdatasync): Likewise.
60         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
61         defaults.
62         * modules/unistd (Makefile.am): Set witnesses.
63         * lib/unistd.in.h (fdatasync): Declare.
64         * MODULES.html.sh: Document it.
65         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
66         * modules/fdatasync-tests: New test.
67         * tests/test-fdatasync.c: Likewise.
68
69 2011-09-16  Eric Blake  <eblake@redhat.com>
70
71         test-fsync: enhance tests
72         * modules/fsync-tests (Depends-on): Add errno, for mingw.
73         * tests/test-fsync.c (main): Enhance test.
74
75 2011-09-15  Bruno Haible  <bruno@clisp.org>
76
77         Support for MSVC compiler: Ensure ssize_t gets defined.
78         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
79         * doc/posix-headers/stdio.texi: Likewise.
80         * modules/stdio (Depends-on): Add ssize_t.
81         * modules/sys_socket (Depends-on): Likewise.
82         * modules/sys_types (Depends-on): Likewise.
83         * modules/sys_uio (Depends-on): Likewise.
84         * modules/unistd (Depends-on): Likewise.
85         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
86         * tests/test-sys_types.c: Check that ssize_t is defined.
87
88 2011-09-14  Bruno Haible  <bruno@clisp.org>
89
90         Avoid using #, the m4 comment starter character, near brackets.
91         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
92         delimiter character in sed expressions.
93         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
94         Suggested by Eric Blake.
95
96         Properly quote AC_CHECK_DECLS' 4th argument.
97         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
98         argument.
99         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
100         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
101         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
102         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
103         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
104         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
105         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
106         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
107         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
108         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
109         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
110         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
111         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
112         * m4/isinf.m4 (gl_ISINF): Likewise.
113         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
114         * m4/readutmp.m4 (gl_READUTMP): Likewise.
115         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
116         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
117         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
118         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
119         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
120         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
121         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
122         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
123         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
124         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
125         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
126         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
128         Reported by Eric Blake.
129
130         Properly quote AC_CHECK_DECL's 4th argument.
131         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
132         argument.
133         * m4/argp.m4 (gl_ARGP): Likewise.
134         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
135         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
136         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
137         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
138         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
139         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
140         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
141         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
142         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
143         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
144         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
145         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
146         Reported by Eric Blake.
147
148 2011-09-14  Eric Blake  <eblake@redhat.com>
149
150         opendir: avoid compile warning
151         * lib/opendir.c (includes): Always include errno.h.
152         Reported by Tatsuro MATSUOKA.
153
154 2011-09-14  Jim Meyering  <meyering@redhat.com>
155
156         maint.mk: sc_tight_scope: propagate failure from sub-make
157         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
158         Reported by Martin von Gagern.
159
160 2011-09-13  Bruno Haible  <bruno@clisp.org>
161
162         tempname: Support for MSVC.
163         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
164         MSVC.
165         * modules/tempname (Depends-on): Add fcntl-h.
166
167 2011-09-13  Bruno Haible  <bruno@clisp.org>
168
169         sys_time: Support for MSVC.
170         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
171         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
172         include <winsock2.h>.
173         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
174         function declarations that collide with POSIX.
175         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
176         (Makefile.am): Substitute HAVE_WINSOCK2_H.
177
178 2011-09-13  Bruno Haible  <bruno@clisp.org>
179
180         stat: Support for MSVC.
181         * lib/stat.c: Include pathmax.h.
182         * modules/stat (Depends-on): Add pathmax.
183
184         pathmax: Support for native Windows.
185         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
186
187 2011-09-12  Bruno Haible  <bruno@clisp.org>
188
189         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
190         * lib/dirent.in.h (struct dirent): New type.
191         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
192         DT_WHT): New macros.
193         (DIR): New type.
194         (opendir, closedir): Declare only if the module 'opendir' is enabled.
195         (readdir, rewinddir): New declarations.
196         * lib/dirent-private.h: New file.
197         * lib/opendir.c: New file.
198         * lib/readdir.c: New file.
199         * lib/rewinddir.c: New file.
200         * lib/closedir.c: New file.
201         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
202         * m4/opendir.m4: New file.
203         * m4/readdir.m4: New file.
204         * m4/rewinddir.m4: New file.
205         * m4/closedir.m4: New file.
206         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
207         REPLACE_CLOSEDIR here.
208         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
209         readdir, rewinddir are declared.
210         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
211         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
212         HAVE_REWINDDIR, HAVE_CLOSEDIR.
213         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
214         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
215         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
216         * modules/opendir: New file.
217         * modules/readdir: New file.
218         * modules/rewinddir: New file.
219         * modules/closedir: New file.
220         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
221         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
222         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
223         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
224         * NEWS: Mention the 'fchdir' change.
225
226 2011-09-11  Bruno Haible  <bruno@clisp.org>
227
228         asm-underscore.m4: Support for MSVC.
229         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
230         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
231
232 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
233
234         Doc about crypt functions.
235         * doc/posix-functions/crypt.texi: Expand range of glibc versions
236         needing for _GNU_SOURCE to get crypt.
237         * doc/posix-functions/encrypt.texi: Likewise.
238         * doc/posix-functions/setkey.texi: Likewise.
239
240 2011-09-11  Bruno Haible  <bruno@clisp.org>
241
242         doc: Update regarding MSVC 9.
243         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
244         tested".
245         * doc/posix-functions/*.texi: Update with info about MSVC 9.
246         * doc/posix-headers/*.texi: Likewise.
247         * doc/pastposix-functions/*.texi: Likewise.
248         * doc/glibc-functions/*.texi: Likewise.
249         * doc/glibc-headers/*.texi: Likewise.
250
251 2011-09-11  Bruno Haible  <bruno@clisp.org>
252
253         unistd et al.: Don't assume <unistd.h> exists.
254         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
255         does not exist.
256         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
257         exist. But include <stdlib.h>.
258         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
259         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
260         symlink() does not exist.
261         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
262         include <io.h> instead.
263         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
264         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
265         include <direct.h> instead.
266         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
267         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
268         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
269         <io.h> instead.
270         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
271         correctly if the system does not have hard links.
272         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
273         <direct.h> instead.
274         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
275         it when looking for function declarations.
276         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
277         <direct.h> and <io.h> instead.
278         * doc/posix-headers/unistd.texi: More details about MSVC problem.
279
280 2011-09-11  Bruno Haible  <bruno@clisp.org>
281
282         strcase: Support for MSVC.
283         * modules/strcase (Status, Notice): Remove obsoletion mark.
284         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
285         * doc/posix-functions/strncasecmp.texi: Likewise.
286
287         strings: Don't assume <strings.h> exists.
288         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
289         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
290         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
291         * doc/posix-headers/strings.texi: Mention the MSVC problem.
292
293 2011-09-11  Bruno Haible  <bruno@clisp.org>
294
295         dirent: Don't assume <dirent.h> exists.
296         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
297         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
298         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
299         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
300
301 2011-09-11  Bruno Haible  <bruno@clisp.org>
302
303         Fix wint_t on MSVC.
304         * lib/wchar.in.h (wint_t): On MSVC, override it.
305         * lib/wctype.in.h (wint_t): Likewise.
306         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
307         MSVC.
308         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
309         * doc/posix-headers/wctype.texi: Likewise.
310
311 2011-09-11  Bruno Haible  <bruno@clisp.org>
312
313         sys_types: Fix typo.
314         * lib/sys_types.in.h: Fix typo in comment.
315         Reported by Paul Eggert.
316
317         Support for MSVC compiler: Ensure size_t gets defined.
318         * modules/strings (Depends-on): Add 'sys_types'.
319         * modules/sys_uio (Depends-on): Likewise.
320         * lib/sys_uio.in.h: Update comment.
321
322         C++ tests for module 'sys_types'.
323         * modules/sys_types-c++-tests: New file.
324         * tests/test-sys_types-c++.cc: New file.
325
326         Tests for module 'sys_types'.
327         * modules/sys_types-tests: New file.
328         * tests/test-sys_types.c: New file.
329
330         New module 'sys_types'.
331         * lib/sys_types.in.h: New file.
332         * m4/sys_types_h.m4: New file.
333         * modules/sys_types: New file.
334         * doc/posix-headers/sys_types.texi: Mention the new module and the
335         size_t problem on MSVC 9.
336
337 2011-09-11  Bruno Haible  <bruno@clisp.org>
338
339         Support for MSVC compiler: Avoid division by a literal 0.
340         * lib/math.in.h (NAN): Define through a function call also on MSVC.
341         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
342         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
343         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
344         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
345         * tests/infinity.h: New file.
346         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
347         on MSVC.
348         * tests/test-ceilf1.c: Include infinity.h.
349         (main): Use Infinityf.
350         * tests/test-ceil1.c: Include infinity.h.
351         (main): Use Infinityd.
352         * tests/test-ceill.c: Include infinity.h.
353         (main): Use Infinityl.
354         * tests/test-dprintf-posix.c: Include infinity.h.
355         (test_function): Use Infinityd.
356         * tests/test-floorf1.c: Include infinity.h.
357         (main): Use Infinityf.
358         * tests/test-floor1.c: Include infinity.h.
359         (main): Use Infinityd.
360         * tests/test-floorl.c: Include infinity.h.
361         (main): Use Infinityl.
362         * tests/test-fprintf-posix.c: Include infinity.h.
363         (test_function): Use Infinityd.
364         * tests/test-frexp.c: Include infinity.h.
365         (main): Use Infinityd.
366         * tests/test-frexpl.c: Include infinity.h.
367         (main): Use Infinityl.
368         * tests/test-isfinite.c: Include infinity.h.
369         (test_isfinitef): Use Infinityf.
370         (test_isfinited): Use Infinityd.
371         (test_isfinitel): Use Infinityl.
372         * tests/test-isinf.c: Include infinity.h.
373         (test_isinff): Use Infinityf.
374         (test_isinfd): Use Infinityd.
375         (test_isinfl): Use Infinityl.
376         * tests/test-isnan.c: Include infinity.h.
377         (test_float): Use Infinityf.
378         (test_double): Use Infinityd.
379         (test_long_double): Use Infinityl.
380         * tests/test-isnanf.h: Include infinity.h.
381         (main): Use Infinityf.
382         * tests/test-isnand.h: Include infinity.h.
383         (main): Use Infinityd.
384         * tests/test-isnanl.h: Include infinity.h.
385         (main): Use Infinityl.
386         * tests/test-ldexpl.c: Include infinity.h.
387         (main): Use Infinityl.
388         * tests/test-printf-posix.h: Include infinity.h.
389         (test_function): Use Infinityd.
390         * tests/test-roundf1.c: Include infinity.h.
391         (main): Use Infinityf.
392         * tests/test-round1.c: Include infinity.h.
393         (main): Use Infinityd.
394         * tests/test-roundl.c: Include infinity.h.
395         (main): Use Infinityl.
396         * tests/test-signbit.c: Include infinity.h.
397         (test_signbitf): Use Infinityf.
398         (test_signbitd): Use Infinityd.
399         (test_signbitl): Use Infinityl.
400         * tests/test-snprintf-posix.h: Include infinity.h.
401         (test_function): Use Infinityd, Infinityl.
402         * tests/test-sprintf-posix.h: Include infinity.h.
403         (test_function): Use Infinityd, Infinityl.
404         * tests/test-truncf1.c: Include infinity.h.
405         (main): Use Infinityf.
406         * tests/test-trunc1.c: Include infinity.h.
407         (main): Use Infinityd.
408         * tests/test-truncl.c: Include infinity.h.
409         (main): Use Infinityl.
410         * tests/test-vasnprintf-posix.c: Include infinity.h.
411         (test_function): Use Infinityd, Infinityl.
412         * tests/test-vasprintf-posix.c: Include infinity.h.
413         (test_function): Use Infinityd, Infinityl.
414         * modules/ceilf-tests (Files): Add tests/infinity.h.
415         * modules/ceil-tests (Files): Likewise.
416         * modules/ceill-tests (Files): Likewise.
417         * modules/dprintf-posix-tests (Files): Likewise.
418         * modules/floorf-tests (Files): Likewise.
419         * modules/floor-tests (Files): Likewise.
420         * modules/floorl-tests (Files): Likewise.
421         * modules/fprintf-posix-tests (Files): Likewise.
422         * modules/frexp-tests (Files): Likewise.
423         * modules/frexp-nolibm-tests (Files): Likewise.
424         * modules/frexpl-tests (Files): Likewise.
425         * modules/frexpl-nolibm-tests (Files): Likewise.
426         * modules/isfinite-tests (Files): Likewise.
427         * modules/isinf-tests (Files): Likewise.
428         * modules/isnan-tests (Files): Likewise.
429         * modules/isnanf-tests (Files): Likewise.
430         * modules/isnanf-nolibm-tests (Files): Likewise.
431         * modules/isnand-tests (Files): Likewise.
432         * modules/isnand-nolibm-tests (Files): Likewise.
433         * modules/isnanl-tests (Files): Likewise.
434         * modules/isnanl-nolibm-tests (Files): Likewise.
435         * modules/ldexpl-tests (Files): Likewise.
436         * modules/printf-posix-tests (Files): Likewise.
437         * modules/roundf-tests (Files): Likewise.
438         * modules/round-tests (Files): Likewise.
439         * modules/roundl-tests (Files): Likewise.
440         * modules/signbit-tests (Files): Likewise.
441         * modules/snprintf-posix-tests (Files): Likewise.
442         * modules/sprintf-posix-tests (Files): Likewise.
443         * modules/truncf-tests (Files): Likewise.
444         * modules/trunc-tests (Files): Likewise.
445         * modules/truncl-tests (Files): Likewise.
446         * modules/vasnprintf-posix-tests (Files): Likewise.
447         * modules/vasprintf-posix-tests (Files): Likewise.
448         * modules/vdprintf-posix-tests (Files): Likewise.
449         * modules/vfprintf-posix-tests (Files): Likewise.
450         * modules/vprintf-posix-tests (Files): Likewise.
451         * modules/vsnprintf-posix-tests (Files): Likewise.
452         * modules/vsprintf-posix-tests (Files): Likewise.
453         * modules/xprintf-posix-tests (Files): Likewise.
454
455 2011-09-11  Bruno Haible  <bruno@clisp.org>
456
457         Ensure pid_t gets defined.
458         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
459         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
460         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
461         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
462         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
463         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
464         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
465         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
466         * tests/test-fcntl-h.c: Check that pid_t is defined.
467         * tests/test-sched.c: Likewise.
468         * tests/test-termios.c: Likewise.
469         * tests/test-time.c: Likewise.
470         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
471         * doc/posix-headers/signal.texi: Likewise.
472         * doc/posix-headers/sys_types.texi: Likewise.
473         * doc/posix-headers/time.texi: Likewise.
474
475 2011-09-11  Bruno Haible  <bruno@clisp.org>
476
477         acl: Fix compilation on Solaris 10 (older version).
478         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
479         of ACE_EVERYONE.
480         * lib/set-mode-acl.c (qset_acl): Likewise.
481         Reported by Christian Jullien <eligis@orange.fr>.
482
483 2011-09-10  Bruno Haible  <bruno@clisp.org>
484
485         iconv, unsetenv: Add support for MSVC compiler.
486         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
487         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
488
489 2011-09-10  Bruno Haible  <bruno@clisp.org>
490
491         *printf: Add support for MSVC compiler.
492         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
493         handles the exception caused by the %n directive. When cross-compiling,
494         guess no on native Windows.
495         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
496         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
497         emulate it through vsnprintf.
498         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
499         * doc/posix-functions/dprintf.texi: Update documentation regarding
500         MSVC 9.
501         * doc/posix-functions/fprintf.texi: Likewise.
502         * doc/posix-functions/printf.texi: Likewise.
503         * doc/posix-functions/snprintf.texi: Likewise.
504         * doc/posix-functions/sprintf.texi: Likewise.
505         * doc/posix-functions/swprintf.texi: Likewise.
506         * doc/posix-functions/vdprintf.texi: Likewise.
507         * doc/posix-functions/vfprintf.texi: Likewise.
508         * doc/posix-functions/vprintf.texi: Likewise.
509         * doc/posix-functions/vsnprintf.texi: Likewise.
510         * doc/posix-functions/vsprintf.texi: Likewise.
511         * doc/glibc-functions/asprintf.texi: Likewise.
512         * doc/glibc-functions/obstack_printf.texi: Likewise.
513         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
514         * doc/glibc-functions/vasprintf.texi: Likewise.
515
516 2011-09-10  Bruno Haible  <bruno@clisp.org>
517
518         nocrash: Add support for native Windows.
519         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
520
521 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
522             Bruno Haible  <bruno@clisp.org>
523
524         absolute-header, include-next: Add support for MSVC compiler.
525         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
526         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
527         directory separator in #line directives.
528         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
529         recognize also backslash as directory separator in #line directives.
530
531 2011-09-08  Jim Meyering  <meyering@redhat.com>
532
533         maint.mk: mark the post-release commit log with "maint: " prefix
534         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
535         one-line commit-log summary.
536
537 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
538             Bruno Haible  <bruno@clisp.org>
539
540         Doc about crypt functions.
541         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
542         systems.
543         * doc/posix-functions/encrypt.texi: Likewise.
544         * doc/posix-functions/setkey.texi: Likewise.
545
546 2011-09-08  Simon Josefsson  <simon@josefsson.org>
547
548         * lib/gc.h: Fix copyright header.
549
550 2011-09-07  Bruno Haible  <bruno@clisp.org>
551
552         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
553         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
554         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
555
556 2011-09-07  Bruno Haible  <bruno@clisp.org>
557
558         openat: Work around compilation error with OSF/1 5.1 DTK cc.
559         * lib/fopen.c: Use different syntax for include of <stdio.h>.
560         * lib/freopen.c: Likewise.
561         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
562         * lib/lstat.c: Likewise.
563         * lib/stat.c: Likewise.
564         * lib/open.c: Use different syntax for include of <fcntl.h>.
565         * lib/openat.c: Include fcntl.h again, explicitly.
566
567 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
568
569         parse-datetime: document the newly accepted format
570         * doc/parse-datetime.texi (Combined date and time of day items):
571         New section.
572
573 2011-09-06  Bruno Haible  <bruno@clisp.org>
574
575         acl: Fix a test failure on newer Solaris 10 with ZFS.
576         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
577         ENOSYS as no ACL.
578         Reported by Jim Meyering.
579
580 2011-09-06  Bruno Haible  <bruno@clisp.org>
581
582         acl: Update for AIX >= 5.3 with NFS.
583         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
584         ENOSYS as no ACL.
585
586         acl: Fix a test failure on AIX >= 5.3 with NFS.
587         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
588         as no ACL.
589
590 2011-09-06  Bruno Haible  <bruno@clisp.org>
591
592         acl: Fix a test failure on IRIX 6.5 with NFS.
593         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
594         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
595         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
596         * lib/copy-acl.c (qcopy_acl): Likewise.
597
598 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
599
600         openat: port to AIX 7.1 with large files
601         AIX 7.1 does a "#define openat open64at" if large files are in use,
602         so we can't simply #undef openat.  Use the orig_openat trick (similar
603         to orig_open in lib/open.c) to work around the problem.  Problem
604         reported by Kevin Brott for GNU tar, in the thread containing
605         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
606         * lib/openat.c (__need_system_fcntl_h): Define first.
607         Include <fcntl.h> and <sys/types.h> before undefining.
608         (orig_openat) [HAVE_OPENAT]: New inline function.
609         (openat) [HAVE_OPENAT]: Do not undef.
610         (rpl_openat): Use orig_openat, not openat.
611
612 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
613             Bruno Haible  <bruno@clisp.org>
614
615         acl: Avoid errors on NonStop Kernel.
616         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
617         ENOTSUP errors.
618
619 2011-09-05  Bruno Haible  <bruno@clisp.org>
620
621         acl: Clean up Solaris code.
622         * lib/acl-internal.h: Remove no-op #if.
623         * lib/file-has-acl.c: Likewise.
624         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
625         * lib/copy-acl.c (qcopy_acl): Likewise.
626
627 2011-09-05  Bruno Haible  <bruno@clisp.org>
628
629         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
630         binaries built on the original Solaris 10.
631         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
632         trivial.
633
634 2011-09-05  Bruno Haible  <bruno@clisp.org>
635
636         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
637         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
638         10.
639         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
640         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
641         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
642         instead of acl_get, facl_get, acl_set, facl_set.
643
644 2011-09-05  Bruno Haible  <bruno@clisp.org>
645
646         copy-file: Try unit tests on more file systems.
647         * tests/test-copy-file-1.sh: New file.
648         * tests/test-copy-file-2.sh: New file.
649         * modules/copy-file-tests (Files): Add them.
650         (Makefile.am): Add them to TESTS.
651
652         acl: Try unit tests on more file systems.
653         * tests/test-file-has-acl-1.sh: New file.
654         * tests/test-file-has-acl-2.sh: New file.
655         * tests/test-set-mode-acl-1.sh: New file.
656         * tests/test-set-mode-acl-2.sh: New file.
657         * tests/test-copy-acl-1.sh: New file.
658         * tests/test-copy-acl-2.sh: New file.
659         * modules/acl-tests (Files): Add them.
660         (Makefile.am): Add them to TESTS.
661
662 2011-09-04  Bruno Haible  <bruno@clisp.org>
663
664         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
665         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
666         10.
667         (OLD_ALLOW, OLD_DENY): New macros.
668         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
669         ACE_ACCESS_ALLOWED_ACE_TYPE.
670         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
671         ACE_ACCESS_DENIED_ACE_TYPE.
672         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
673         (NEW_ACE_EXECUTE): Fix value.
674         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
675         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
676         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
677         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
678         NEW_ACE_SYNCHRONIZE): New macros.
679         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
680         instead of acl_fromtext, acl_set, facl_set.
681         Fixes a coreutils/tests/cp/perm failure.
682
683 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
684
685         openat: test for fstatat (..., 0) bug
686         Further testing with tar suggests that fstatat (..., 0)
687         does not work in general, on AIX 7.1; see
688         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
689         So, give up entirely on AIX 7.1's fstatat, and fall back on our
690         replacement fstatat (which is what older AIX releases were using
691         anyway).
692         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
693         use is now changed to orig_fstatat.  This was probably the right
694         thing to do anyway.
695         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
696         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
697         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
698         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
699         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
700         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
701         if the bug is found.
702
703         openat: test for fstatat (AT_FDCWD, ..., 0) bug
704         This tests for another fstatat bug on AIX 7.1:
705         fstatat (AT_FDCWD, ..., 0) does not work.  See
706         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
707         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
708         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
709         (rpl_fstatat): Adjust so that it works around either (or both)
710         bugs if present.
711         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
712
713 2011-09-03  Karl Berry  <karl@gnu.org>
714
715         * doc/regex.texi (Character Class Operators): Avoid literal ":"
716         in index entries.
717
718 2011-09-02  Bruno Haible  <bruno@clisp.org>
719
720         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
721         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
722         values of AR, ARFLAGS, RANLIB.
723         Reported by John W. Eaton <jwe@gnu.org> for Octave.
724
725 2011-09-02  Bruno Haible  <bruno@clisp.org>
726
727         Find 'ar' program that fits with --host argument.
728         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
729
730 2011-09-02  Bruno Haible  <bruno@clisp.org>
731
732         tests: init.sh: Support any non-GNU diff.
733         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
734         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
735         Solaris 8.
736
737 2011-09-02  Bruno Haible  <bruno@clisp.org>
738
739         tests: init.sh: work also with any non-GNU diff that supports -u
740         * tests/init.sh: Relax check for diff -u support.
741         Rather than checking for GNU diff via --version, simply check
742         for support for -u itself.  Useful at least on OpenBSD 4.9,
743         AIX 7.1, IRIX 6.5, and Solaris 10.
744
745 2011-09-01  Bruno Haible  <bruno@clisp.org>
746
747         strtoimax, strtoumax: Document problem on HP-UX 11.
748         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
749         * doc/posix-functions/strtoumax.texi: Likewise.
750
751 2011-09-01  Bruno Haible  <bruno@clisp.org>
752
753         strtoumax: Avoid link error on OSF/1 with DTK cc.
754         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
755         defined as a function.
756         * modules/strtoumax (Depends-on, configure.ac): Test only whether
757         strtoumax is defined, not whether it is declared.
758
759 2011-09-01  Bruno Haible  <bruno@clisp.org>
760
761         strtoimax: Avoid link error on OSF/1 with DTK cc.
762         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
763         defined as a function.
764         * modules/strtoimax (Depends-on, configure.ac): Test only whether
765         strtoimax is defined, not whether it is declared.
766
767 2011-09-01  Bruno Haible  <bruno@clisp.org>
768
769         imaxdiv: Avoid link error on OSF/1 with DTK cc.
770         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
771         as a function.
772         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
773         whether it is declared.
774
775 2011-09-01  Bruno Haible  <bruno@clisp.org>
776
777         imaxabs: Avoid link error on OSF/1 with DTK cc.
778         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
779         as a function.
780         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
781         whether it is declared.
782
783 2011-09-01  Bruno Haible  <bruno@clisp.org>
784
785         Tests for module 'strtoumax'.
786         * modules/strtoumax-tests: New file.
787         * tests/test-strtoumax.c: New file.
788
789         Tests for module 'strtoimax'.
790         * modules/strtoimax-tests: New file.
791         * tests/test-strtoimax.c: New file.
792
793         Tests for module 'imaxdiv'.
794         * modules/imaxdiv-tests: New file.
795         * tests/test-imaxdiv.c: New file.
796
797         Tests for module 'imaxabs'.
798         * modules/imaxabs-tests: New file.
799         * tests/test-imaxabs.c: New file.
800
801 2011-09-01  Bruno Haible  <bruno@clisp.org>
802
803         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
804         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
805         pthread_create.
806
807 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
808
809         openat: work around AIX 7.1 fstatat issue
810         This should fix the problem that was not properly fixed
811         in the previous change, dated 2011-08-30.
812         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
813         __need_system_stat_h defined.
814         (orig_fstatat) [HAVE_FSTATAT]: New function.
815         (rpl_fstatat): Go back to the old way of doing things,
816         except call orig_fstatat instead of fstatat.
817         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
818         Remove unnecessary check whether fstatat fills in st_size etc.
819
820 2011-09-01  Bruno Haible  <bruno@clisp.org>
821
822         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
823         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
824         just include the system's header.
825
826 2011-08-31  Jim Meyering  <meyering@redhat.com>
827
828         tests: avoid spurious assertion failure in test-float.c on ppc64
829         * tests/test-float.c (test_long_double): Comment out an assertion,
830         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
831         with gcc-4.4.4.
832
833         maint: indent with spaces, not TABs
834         I need to get in the habit of running gnulib's "make check".
835         Both of these would have been caught.
836         * m4/largefile.m4: Indent with spaces, not TABs.
837         * lib/parse-datetime.y (iso_8601_time): Likewise.
838         Spotted by Pádraig Brady.
839
840         test-parse-datetime.c: accommodate a relatively strict gcc warning
841         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
842         to avoid a warning from gcc's -Werror=missing-declarations.
843         Insert a few spaces-before-funcall-parenthesis.
844
845 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
846
847         parse-datetime: accept ISO 8601 date and time rep with "T" separator
848         The parser now accepts ISO 8601 date-time strings with "T" as the
849         separator.  It has long parsed dates like "2004-02-29 16:21:42"
850         with a space between the date and time strings.  Now it also parses
851         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
852         variants like "2004-02-29T16:21:42.333-07:00"
853         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
854         of day representation using the 'T' separator character.
855         * doc/parse-datetime.texi (General date syntax): replace use of
856         deprecated --iso-8601 option with --rfc-3339 in example of date
857         command output formats that can be parsed.
858         * tests/test-parse-datetime.c (tm_diff): New function, taken from
859         lib/parse-datetime.y.
860         (gmt_offset): New function.
861         (main): Add additional test cases to validate ISO8601 extended
862         date and time of day parsing.
863
864 2011-08-31  Bruno Haible  <bruno@clisp.org>
865
866         freopen: Documentation.
867         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
868         name.
869         Reported by Claudio Bley <claudio.bley@gmail.com>.
870
871 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
872
873         freopen: Don't crash if the filename argument is NULL.
874         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
875         NULL.
876
877 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
878
879         openat: work around AIX 7.1 fstatat bug
880         Problem reported by Kevin Brott for GNU tar, in the thread containing
881         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
882         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
883         FSTATAT_ST_SIZE_ETC_BROKEN.
884         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
885         rpl_fstatat.
886         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
887         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
888         AC_CHECK_FUNCS_ONCE for fstatat.
889         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
890         fchmodat, mkdirat, openat and unlinkat.
891
892 2011-08-30  Bruno Haible  <bruno@clisp.org>
893
894         Avoid endless recursions if config.h includes some header files.
895         * lib/fopen.c (__need_FILE): Define already before including config.h.
896         * lib/freopen.c (__need_FILE): Likewise.
897         * lib/open.c (__need_system_fcntl_h): Likewise.
898         * lib/stat.c (__need_system_sys_stat_h): Likewise.
899         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
900         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
901
902 2011-08-25  Karl Berry  <karl@gnu.org>
903
904         * config/srclist.txt (ylwrap): new try.
905         * build-aux/ylwrap: new file.
906
907 2011-08-23  Bruno Haible  <bruno@clisp.org>
908
909         tmpdir: Use a good default directory on native Windows.
910         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
911         (P_tmpdir): Default to _P_tmpdir on native Windows.
912         (path_search): On native Windows, try the value returned by GetTempPath
913         before trying P_tmpdir.
914         * modules/tmpdir (Depends-on): Add pathmax.
915         Suggested by John Darrington <john@darrington.wattle.id.au>.
916
917 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
918
919         doc: fix typo in README-release
920         * top/README-release: Capitalize first word of a sentence.
921
922 2011-08-19  Jim Meyering  <meyering@redhat.com>
923
924         fts: do not exhaust memory when processing million-entry directories
925         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
926         directory would require about 256*N bytes of memory.  Thus, it was
927         easy to construct a directory too large to be processed by any of
928         those tools.  With this change, fts' maximum memory utilization is
929         now limited to around 30MB.
930         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
931         (fts_read): When we've processed the final entry (i.e., when
932         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
933         using the parent entry to read any remaining entries.  Dispatch
934         depending on what fts_build returns:
935         - NULL+stop, aka failure: stop
936         - NULL otherwise: move up in the dir hierarchy
937         - non-NULL: handle this new entry
938         (fts_build): Declare and use new local, continue_readdir.
939         Prepare to be called from fts_read, when the entries
940         from a partially-read directory have just been exhausted.
941         In that case, we'll skip the opendir and instead use the parent's
942         fts_dirp and derive dir_fd from that.
943         Finally, in the readdir loop, if we read max_entries entries,
944         exit the loop ensuring *not* to call closedir.  This is required
945         so that fts_dirp can be reused on a subsequent call.
946         Prompted by Ben England's report of memory exhaustion in find
947         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
948
949         maint: fts: move decl of `dp' down into while loop; split a long line
950         * lib/fts.c (fts_build): No semantic change.
951
952         fts: add/use new struct member, fts_dirp
953         We are about to use this to manage any directory with
954         too many entries to read all of them into memory at once.
955         To do that, we'll need to save the DIR* pointer in each
956         affected FTSENT struct.
957         * lib/fts_.h: Include <dirent.h>.
958         (struct FTSENT) [fts_dirp]: New member.
959         * lib/fts.c (closedir_and_clear): Define.
960         Use it in place of closedir so that we are sure to
961         clear the new fts_dirp member when done with it.
962         (fts_alloc): Initialize the new member.
963         (fts_lfree): Free, if needed.
964
965         maint: fts: give __opendir2 a new parameter and rename
966         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
967         than surreptitiously using sole caller's "dir_fd".
968         (fts_opendir): Rename from __opendir2.
969
970         maint: fts.c: remove __opendir2's now-unused parameter, oflag
971         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
972
973         maint: fts.c: correct off-by-one indentation
974         * lib/fts.c (fts_build): Correct indentation, change style
975         of a couple of block comments, and bracing style.
976
977         maint: fts.c: move __opendir2 #define "up" out of function body
978         * lib/fts.c (__opendir2): Move "up".  No semantic change.
979
980         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
981         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
982         out for a long time and besides was useful only on BSD systems.
983
984 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
985
986         regex: port to Stratus OpenVOS
987         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
988         define to empty, rather than attempting nonportable optimizations.
989         Problem reported by Paul Green in:
990         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
991         and fix suggested by Eric Blake in:
992         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
993
994 2011-08-17  Eric Blake  <eblake@redhat.com>
995
996         getcwd: fix test failures on mingw
997         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
998         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
999         test if long directory cannot be created, and allow mingw errno.
1000
1001         getcwd-lgpl: fix m4 to match relaxed test for BSD
1002         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1003         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1004         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1005         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1006         signature problem.
1007
1008         getcwd: fix compilation on mingw64
1009         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1010         getcwd.
1011         Reported by Marc-André Lureau.
1012
1013         pipe2: silence compiler warning
1014         * lib/pipe2.c (pipe2): Hide label if it is not used.
1015
1016 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1017
1018         relocatable-prog: fix link error
1019         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1020         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1021         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1022         into modules/relocatable-lib without noticing that
1023         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1024         also needs to build relocatable.c.
1025
1026 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1027
1028         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1029         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1030         shell code: it contained a 'break' that was not in a loop.
1031         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1032         via a shell-language loop; this may have been true in old Autoconf
1033         versions, but it's not true in Autoconf 2.68.  I found this bug
1034         when testing coreutils git on Solaris 8, whose shell complains
1035         about the syntax error.
1036
1037 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1038
1039         * lib/base64.c: Fix comment to reference RFC 4648.
1040         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1041         <gvtulder@gmail.com>.
1042
1043 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1044
1045         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1046
1047         po/Makefile.in.in: fix make -q problem
1048         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1049         rule, since there's no file named 'check-macro-version' and its
1050         use as a file breaks make -q.
1051         (all): Don't depend on check-macro-version.
1052         (CHECK_MACRO_VERSION): New macro.
1053         (stamp-po): Use it.
1054
1055         configmake: fix make -q problem
1056         * modules/configmake (configmake.h): Update configmake.h's time stamp
1057         even if the file does not change.  Otherwise, 'make -q' fails.
1058         Problem reported by Simon Josefsson in
1059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1060
1061 2011-08-11  Jim Meyering  <meyering@redhat.com>
1062
1063         git-version-gen: correct the advice in a comment
1064         * build-aux/git-version-gen: Correct comment.
1065         Don't recommend to list .tarball-version in .gitignore.
1066
1067 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1068
1069         base64: fix off-by-one buffer size bug
1070         Problem and (trivial) fix reported by Gijs van Tulder in
1071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1072         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1073         * tests/test-base64.c (main): Catch the bug.
1074
1075 2011-08-10  Eric Blake  <eblake@redhat.com>
1076
1077         closein: correct comments
1078         * lib/closein.c (close_stdin): Improve comments.
1079
1080 2011-08-09  Bruno Haible  <bruno@clisp.org>
1081
1082         More tests for 'fseeko'.
1083         * tests/test-fseeko3.c: New file, from Eric Blake.
1084         * tests/test-fseeko3.sh: New file.
1085         * modules/fseeko-tests (Files): Add them.
1086         (TESTS): Add test-fseeko3.sh.
1087         (check_PROGRAMS): Add test-fseeko3.
1088
1089 2011-08-09  Eric Blake  <eblake@redhat.com>
1090
1091         fseeko: remove unneeded hack
1092         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1093
1094         fseeko: fix bug on glibc
1095         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1096         Reported by John W. Eaton.
1097
1098 2011-08-08  Bruno Haible  <bruno@clisp.org>
1099
1100         unictype/base: Fix interoperability with preinstalled libunistring.
1101         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1102         Reported by Simon Josefsson.
1103
1104 2011-08-08  Bruno Haible  <bruno@clisp.org>
1105
1106         iswblank: Detect declaration correctly.
1107         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1108         AC_CHECK_DECLS invocation.
1109
1110 2011-08-08  Bruno Haible  <bruno@clisp.org>
1111
1112         tcgetsid: Detect declaration correctly.
1113         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1114         AC_CHECK_DECLS invocation.
1115         Reported by Simon Josefsson.
1116
1117 2011-08-08  Eric Blake  <eblake@redhat.com>
1118
1119         largefile: fix typo that regressed large file support
1120         * modules/largefile (configure.ac-early): Fix section name.
1121
1122 2011-08-06  Karl Berry  <karl@gnu.org>
1123
1124         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1125         a separate module.
1126
1127 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1128
1129         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1130         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1131         get prototype for free.
1132
1133 2011-08-04  Bruno Haible  <bruno@clisp.org>
1134
1135         Tests for module 'pathmax'.
1136         * modules/pathmax-tests: New file.
1137         * tests/test-pathmax.c: New file.
1138
1139         canonicalize-lgpl: Support larger filenames on the Hurd.
1140         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1141         Reported by Paul Eggert.
1142
1143         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1144         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1145         * lib/chdir-long.h: Include pathmax.h.
1146         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1147         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1148         (PATH_MAX): Remove code that is done by pathmax.h.
1149         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1150         * lib/tmpfile.c: Add a comment.
1151         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1152         * modules/chdir-long (Depends-on): Add pathmax.
1153         * modules/getcwd (Depends-on): Add pathmax.
1154         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1155         is not defined.
1156         * doc/posix-headers/limits.texi: Mention the pathmax module.
1157         * NEWS: Mention the change.
1158
1159 2011-08-02  Bruno Haible  <bruno@clisp.org>
1160
1161         pthread_sigmask: Actually use results of gl_THREADLIB.
1162         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1163         gl_THREADLIB, not gl_[]THREADLIB.
1164         Reported by Eric Blake.
1165
1166 2011-08-02  Jim Meyering  <meyering@redhat.com>
1167
1168         maint.mk: relax the default _gl_TS_function_match regexp
1169         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1170         space between function name and "(" in an "extern" declaration.
1171         That would fail to match a decl with no space there: extern void foo();
1172
1173 2011-07-31  Iain Nicol  <iain@thenicols.net>
1174
1175         git-version-gen: document that EXTRA_DIST must include .version
1176         * build-aux/git-version-gen: In the how-to-use comment, document
1177         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1178         will fail when run from an unpacked distribution tarball.
1179
1180 2011-08-01  Bruno Haible  <bruno@clisp.org>
1181
1182         wctype-h: Fix last change.
1183         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1184         REPLACE_TOWLOWER to 0.
1185         Reported by Sam Steingold <sds@gnu.org>.
1186
1187 2011-07-31  Bruno Haible  <bruno@clisp.org>
1188
1189         frexpl: Update autoconf test.
1190         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1191         according to changes of 2011-06-20.
1192
1193 2011-07-31  Bruno Haible  <bruno@clisp.org>
1194
1195         sys_utsname: Add support for Minix.
1196         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1197         <sys/utsname.h>.
1198         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1199         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1200
1201 2011-07-31  Bruno Haible  <bruno@clisp.org>
1202
1203         strings: Add support for Minix.
1204         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1205         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1206         * doc/posix-headers/strings.texi: Document the Minix problem.
1207
1208 2011-07-31  Bruno Haible  <bruno@clisp.org>
1209
1210         wctype-h: Add support for Minix.
1211         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1212         REPLACE_TOWLOWER.
1213         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1214         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1215         REPLACE_ISWCNTRL.
1216
1217 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1218
1219         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1220         This is a performance improvement for 64-bit hosts: it causes the
1221         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1222
1223 2011-07-31  Bruno Haible  <bruno@clisp.org>
1224
1225         stdioext: Add support for Minix.
1226         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1227         * lib/fpurge.c (fpurge): Likewise.
1228         * lib/freadahead.c (freadahead): Likewise.
1229         * lib/freadable.c (freadable): Likewise.
1230         * lib/freading.c (freading): Likewise.
1231         * lib/freadptr.c (freadptr): Likewise.
1232         * lib/freadseek.c (freadptrinc): Likewise.
1233         * lib/fseeko.c (rpl_fseeko): Likewise.
1234         * lib/fseterr.c (fseterr): Likewise.
1235         * lib/fwritable.c (fwritable): Likewise.
1236         * lib/fwriting.c (fwriting): Likewise.
1237         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1238         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1239
1240 2011-07-31  Bruno Haible  <bruno@clisp.org>
1241
1242         errno: Port to Minix.
1243         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1244         ECONNABORTED are defined.
1245         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1246         GNULIB_defined_ECONNABORTED): New macros.
1247         * lib/strerror-override.h (strerror_override): Test also
1248         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1249         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1250         ECONNABORTED.
1251         * doc/posix-headers/errno.texi: Mention the Minix problem.
1252
1253 2011-07-31  Bruno Haible  <bruno@clisp.org>
1254
1255         Work around declaration collisions on Minix.
1256         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1257         defined, set REPLACE_MBSINIT.
1258         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1259         defined, set REPLACE_MBRTOWC.
1260         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1261         set REPLACE_MBRLEN.
1262         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1263         defined, set REPLACE_MBSRTOWCS.
1264         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1265         defined, set REPLACE_WCRTOMB.
1266         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1267         defined, set REPLACE_WCSRTOMBS.
1268
1269 2011-07-31  Bruno Haible  <bruno@clisp.org>
1270
1271         Add support for Minix with ACK compiler.
1272         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1273         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1274         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1275
1276 2011-07-31  Bruno Haible  <bruno@clisp.org>
1277
1278         Documentation about Minix.
1279         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1280         * doc/glibc-headers/*.texi: Likewise.
1281         * doc/posix-functions/*.texi: Likewise.
1282         * doc/glibc-functions/*.texi: Likewise.
1283
1284 2011-07-31  Bruno Haible  <bruno@clisp.org>
1285
1286         snippet/warn-on-use: Fix indentation.
1287         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1288
1289 2011-07-25  Jim Meyering  <meyering@redhat.com>
1290
1291         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1292         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1293         commands.
1294
1295 2011-07-27  Jim Meyering  <meyering@redhat.com>
1296
1297         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1298         * top/maint.mk (gl_extract_significant_defines_): Now that
1299         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1300         gnulib/lib/signal.in.h, and now that we recommend to
1301         define-if-undefined those two symbols in application code,
1302         we must filter them out of the "significant" list.
1303         This avoids a "make syntax-check" failure in coreutils.
1304
1305 2011-07-26  Eric Blake  <eblake@redhat.com>
1306
1307         warnings: add comments about previous patch
1308         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1309         * m4/include_next.m4: Likewise.
1310         * m4/warn-on-use.m4: Likewise.
1311         * m4/warnings.m4: Likewise, and simplify use.
1312         Suggested by Stefano Lattarini.
1313
1314         include-next, warnings: support older autoconf
1315         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1316         AS_VAR_PUSHDEF in a way that works with older autoconf.
1317         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1318         Reported by Daniel P. Berrange.
1319
1320 2011-07-25  Bruno Haible  <bruno@clisp.org>
1321
1322         fseek, ftell: Fix doc.
1323         * doc/posix-functions/fseek.texi: Reword statement about
1324         AC_SYS_LARGEFILE.
1325         * doc/posix-functions/ftell.texi: Likewise.
1326
1327 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1328             Bruno Haible  <bruno@clisp.org>
1329
1330         Add dependencies to the 'largefile' module.
1331         * modules/fopen (Depends-on): Add 'largefile'.
1332         * modules/freopen (Depends-on): Likewise.
1333         * modules/fseeko (Depends-on): Likewise.
1334         * modules/ftello (Depends-on): Likewise.
1335         * modules/glob (Depends-on): Likewise.
1336         * modules/lseek (Depends-on): Likewise.
1337         * modules/lstat (Depends-on): Likewise.
1338         * modules/mkostemp (Depends-on): Likewise.
1339         * modules/mkostemps (Depends-on): Likewise.
1340         * modules/mkstemp (Depends-on): Likewise.
1341         * modules/mkstemps (Depends-on): Likewise.
1342         * modules/open (Depends-on): Likewise.
1343         * modules/openat (Depends-on): Likewise.
1344         * modules/pread (Depends-on): Likewise.
1345         * modules/pwrite (Depends-on): Likewise.
1346         * modules/scandir (Depends-on): Likewise.
1347         * modules/stat (Depends-on): Likewise.
1348         * modules/tmpfile (Depends-on): Likewise.
1349         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1350         since the containing module now depends on the largefile module.
1351         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1352         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1353         off_t is fixed by gnulib.
1354         * doc/posix-functions/freopen.texi: Likewise.
1355         * doc/posix-functions/fseeko.texi: Likewise.
1356         * doc/posix-functions/fstatat.texi: Likewise.
1357         * doc/posix-functions/ftello.texi: Likewise.
1358         * doc/posix-functions/glob.texi: Likewise.
1359         * doc/posix-functions/lseek.texi: Likewise.
1360         * doc/posix-functions/lstat.texi: Likewise.
1361         * doc/posix-functions/mkstemp.texi: Likewise.
1362         * doc/posix-functions/open.texi: Likewise.
1363         * doc/posix-functions/openat.texi: Likewise.
1364         * doc/posix-functions/pread.texi: Likewise.
1365         * doc/posix-functions/pwrite.texi: Likewise.
1366         * doc/posix-functions/scandir.texi: Likewise.
1367         * doc/posix-functions/stat.texi: Likewise.
1368         * doc/posix-functions/tmpfile.texi: Likewise.
1369         * doc/glibc-functions/mkostemp.texi: Likewise.
1370         * doc/glibc-functions/mkostemps.texi: Likewise.
1371         * doc/glibc-functions/mkstemps.texi: Likewise.
1372
1373 2011-07-25  Bruno Haible  <bruno@clisp.org>
1374
1375         fcntl: Move AC_LIBOBJ invocation to module description.
1376         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1377         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1378
1379         fcntl: Remove call-in from fchdir.m4.
1380         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1381         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1382
1383         dup3: Remove potential call-in from fchdir.m4.
1384         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1385         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1386
1387         dup2: Move AC_LIBOBJ invocation to module description.
1388         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1389         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1390         Don't invoke AC_LIBOBJ.
1391         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1392
1393         dup2: Remove call-in from fchdir.m4.
1394         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1396
1397         fclose: Move AC_LIBOBJ invocation to module description.
1398         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1399         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1400         to 1.
1401         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1402
1403         fclose: Remove call-in from close.m4.
1404         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1405         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1406
1407         close: Move AC_LIBOBJ invocation to module description.
1408         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1409         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1410         1.
1411         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1412
1413         close: Remove call-in from fchdir.m4.
1414         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1416
1417         open: Move AC_LIBOBJ invocation to module description.
1418         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1419         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1420         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1421
1422         open: Remove call-in from fchdir.m4.
1423         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1425
1426         fchdir: Start to remove gl_REPLACE_* idiom.
1427         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1428         (gl_FUNC_FCHDIR): Invoke it.
1429
1430 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1431
1432         * lib/ftell.c (ftell): Comment out cast.
1433
1434         close: use gl_REPLACE_FCLOSE only if defined
1435         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1436         is defined.  The close module doesn't depend on the fclose module
1437         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1439         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1440
1441 2011-07-24  Jim Meyering  <meyering@redhat.com>
1442
1443         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1444         * tests/test-select.h (test_function): Declare as "static".
1445
1446 2011-07-24  Bruno Haible  <bruno@clisp.org>
1447
1448         doc: Mention the effects of AC_SYS_LARGEFILE.
1449         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1450         on this function.
1451         * doc/posix-functions/aio_error.texi: Likewise.
1452         * doc/posix-functions/aio_fsync.texi: Likewise.
1453         * doc/posix-functions/aio_read.texi: Likewise.
1454         * doc/posix-functions/aio_return.texi: Likewise.
1455         * doc/posix-functions/aio_suspend.texi: Likewise.
1456         * doc/posix-functions/aio_write.texi: Likewise.
1457         * doc/posix-functions/fgetpos.texi: Likewise.
1458         * doc/posix-functions/fopen.texi: Likewise.
1459         * doc/posix-functions/freopen.texi: Likewise.
1460         * doc/posix-functions/fsetpos.texi: Likewise.
1461         * doc/posix-functions/fstatvfs.texi: Likewise.
1462         * doc/posix-functions/ftruncate.texi: Likewise.
1463         * doc/posix-functions/ftw.texi: Likewise.
1464         * doc/posix-functions/getrlimit.texi: Likewise.
1465         * doc/posix-functions/glob.texi: Likewise.
1466         * doc/posix-functions/lio_listio.texi: Likewise.
1467         * doc/posix-functions/lockf.texi: Likewise.
1468         * doc/posix-functions/mkstemp.texi: Likewise.
1469         * doc/posix-functions/mmap.texi: Likewise.
1470         * doc/posix-functions/nftw.texi: Likewise.
1471         * doc/posix-functions/openat.texi: Likewise.
1472         * doc/posix-functions/opendir.texi: Likewise.
1473         * doc/posix-functions/posix_fadvise.texi: Likewise.
1474         * doc/posix-functions/posix_fallocate.texi: Likewise.
1475         * doc/posix-functions/pread.texi: Likewise.
1476         * doc/posix-functions/pwrite.texi: Likewise.
1477         * doc/posix-functions/readdir.texi: Likewise.
1478         * doc/posix-functions/readdir_r.texi: Likewise.
1479         * doc/posix-functions/rewinddir.texi: Likewise.
1480         * doc/posix-functions/scandir.texi: Likewise.
1481         * doc/posix-functions/seekdir.texi: Likewise.
1482         * doc/posix-functions/setrlimit.texi: Likewise.
1483         * doc/posix-functions/statvfs.texi: Likewise.
1484         * doc/posix-functions/telldir.texi: Likewise.
1485         * doc/posix-functions/tmpfile.texi: Likewise.
1486         * doc/posix-functions/truncate.texi: Likewise.
1487         * doc/glibc-functions/fallocate.texi: Likewise.
1488         * doc/glibc-functions/fstatfs.texi: Likewise.
1489         * doc/glibc-functions/fts_children.texi: Likewise.
1490         * doc/glibc-functions/fts_read.texi: Likewise.
1491         * doc/glibc-functions/getdirentries.texi: Likewise.
1492         * doc/glibc-functions/mkostemp.texi: Likewise.
1493         * doc/glibc-functions/mkostemps.texi: Likewise.
1494         * doc/glibc-functions/mkstemps.texi: Likewise.
1495         * doc/glibc-functions/preadv.texi: Likewise.
1496         * doc/glibc-functions/pwritev.texi: Likewise.
1497         * doc/glibc-functions/sendfile.texi: Likewise.
1498         * doc/glibc-functions/statfs.texi: Likewise.
1499
1500 2011-07-24  Bruno Haible  <bruno@clisp.org>
1501
1502         doc: Fix typo.
1503         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1504
1505 2011-07-24  Bruno Haible  <bruno@clisp.org>
1506
1507         doc: Mention fsusage.
1508         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1509
1510 2011-07-24  Bruno Haible  <bruno@clisp.org>
1511
1512         doc: Mention new glibc headers and functions.
1513         * doc/glibc-headers/gshadow.texi: New file.
1514         * doc/glibc-functions/endsgent.texi: New file.
1515         * doc/glibc-functions/fgetsgent.texi: New file.
1516         * doc/glibc-functions/fgetsgent_r.texi: New file.
1517         * doc/glibc-functions/getsgent.texi: New file.
1518         * doc/glibc-functions/getsgent_r.texi: New file.
1519         * doc/glibc-functions/getsgnam.texi: New file.
1520         * doc/glibc-functions/getsgnam_r.texi: New file.
1521         * doc/glibc-functions/putsgent.texi: New file.
1522         * doc/glibc-functions/setsgent.texi: New file.
1523         * doc/glibc-functions/sgetsgent.texi: New file.
1524         * doc/glibc-functions/sgetsgent_r.texi: New file.
1525         * doc/glibc-functions/malloc_info.texi: New file.
1526         * doc/glibc-functions/preadv.texi: New file.
1527         * doc/glibc-functions/pwritev.texi: New file.
1528         * doc/glibc-functions/register_printf_modifier.texi: New file.
1529         * doc/glibc-functions/register_printf_specifier.texi: New file.
1530         * doc/glibc-functions/register_printf_type.texi: New file.
1531         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1532         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1533         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1534         * doc/glibc-functions/pthread_getname_np.texi: New file.
1535         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1536         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1537         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1538         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1539         * doc/glibc-functions/pthread_setname_np.texi: New file.
1540         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1541         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1542         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1543         * doc/glibc-functions/qsort_r.texi: New file.
1544         * doc/glibc-functions/quick_exit.texi: New file.
1545         * doc/glibc-functions/syncfs.texi: New file.
1546         * doc/gnulib.texi: Include them.
1547         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1548         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1549         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1550         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1551         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1552         * doc/glibc-functions/execvpe.texi: Likewise.
1553
1554 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1555
1556         ftell: don't include <unistd.h>
1557         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1558         guaranteed to define off_t, and the ftell module depends on the
1559         stdio module.
1560
1561         ftell: do not assume wraparound signed arithmetic
1562         * lib/ftell.c: Include <limits.h>.
1563         (ftell): Don't assume wraparound signed arithmetic.
1564
1565 2011-07-24  Bruno Haible  <bruno@clisp.org>
1566
1567         close: No longer depend on module 'fclose'.
1568         * modules/close (Depends-on): Remove fclose.
1569         * NEWS: Mention the change.
1570         Suggested by Sam Steingold <sds@gnu.org>.
1571
1572 2011-07-24  Bruno Haible  <bruno@clisp.org>
1573
1574         fsusage: Enable large volume support on AIX >= 5.2.
1575         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1576         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1577         instead of STAT_STATVFS.
1578         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1579
1580         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1581         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1582         f_blocks field only on MacOS X.
1583
1584         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1585         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1586         * modules/fsusage (Depends-on): Add largefile.
1587
1588 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1589
1590         * README: Modernize discussion of signed integers.
1591         Assuming overflow wraparound is no longer safe.
1592         Mention ones' complement and signed magnitude.
1593
1594 2011-07-22  Bruno Haible  <bruno@clisp.org>
1595
1596         select tests, pselect tests: Refactor.
1597         * tests/test-select.h: New file, extracted from tests/test-select.c.
1598         (select_fn): New type.
1599         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1600         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1601         test_pipe): Add my_select argument.
1602         (test_function): Renamed from main. Add my_select argument.
1603         * tests/test-select.c: Move most code to tests/test-select.h. Include
1604         test-select.h.
1605         * modules/select-tests (Files): Add tests/test-select.h.
1606         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1607         (my_select, main): New functions.
1608         * modules/pselect-tests (Files): Add tests/test-select.h,
1609         tests/macros.h, tests/signature.h.
1610         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1611         (configure.ac): Check for <sys/wait.h>.
1612
1613 2011-07-22  Bruno Haible  <bruno@clisp.org>
1614
1615         sys_select tests: Check the signature of FD_*.
1616         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1617         signature tests from here...
1618         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1619         here.
1620         * modules/sys_select-tests (Files): Add tests/signature.h.
1621
1622 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1623
1624         largefile: new module, replacing large-inode
1625         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1626         * MODULES.html.sh: Add largefile, remove large-inode.
1627         * modules/largefile, m4/largefile.m4: New files.
1628         * modules/large-inode, m4/large-inode.m4: Remove.
1629
1630         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1631         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1632         implementations that use only 32 bits to count blocks.
1633         On typical hosts with 1024-byte blocks, this fails with file
1634         systems as small as 4 TiB.  Problem reported by Herb Wartens
1635         <http://debbugs.gnu.org/9140> and this should also fix a similar
1636         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1637
1638         large-inode: New module
1639         * MODULES.html.sh: Add it.
1640         * modules/large-inode, m4/large-inode.m4: New files.
1641
1642         extensions: Enable extensions on MacOS X 10.5 and later.
1643         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1644
1645 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1646
1647         file-has-acl: use acl_extended_file_nofollow if available
1648         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1649         (acl_extended_file): New macro.
1650         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1651         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1652
1653 2011-07-21  Bruno Haible  <bruno@clisp.org>
1654
1655         Declare system functions in a way that works with C++.
1656         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1657         declare fdopendir as extern "C".
1658         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1659         declare frexpl as extern "C".
1660         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1661         declare gai_strerror as extern "C".
1662         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1663         programs, declare gai_strerror as extern "C".
1664         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1665         declare getlogin_r as extern "C".
1666         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1667         as extern "C".
1668         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1669         declare ldexpl as extern "C".
1670         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1671         as extern "C".
1672         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1673         program, declare getmntinfo as extern "C".
1674         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1675         stpncpy as extern "C".
1676         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1677         program, declare __xpg_strerror_r as extern "C".
1678         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1679         strndup as extern "C".
1680         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1681         declare memset and bzero as extern "C".
1682         Reported by Sam Steingold <sds@gnu.org>.
1683
1684 2011-07-12  Jim Meyering  <meyering@redhat.com>
1685
1686         maint.mk: prohibit inclusion of "verify.h" without use
1687         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1688
1689 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1690
1691         timer-time: A new module to check for timer_settime()
1692         * m4/timer_time.m4: Check for the posix function.
1693         * modules/timer-time: Add the new module.
1694         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1695         Mention it.
1696
1697 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1698             Bruno Haible  <bruno@clisp.org>
1699
1700         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1701         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1702         not defined, assume POSIX threads and look for pthread_sigmask in
1703         $LIBS, without changing $CPPFLAGS.
1704
1705 2011-07-19  Bruno Haible  <bruno@clisp.org>
1706
1707         strstr: Update cross-compilation guess.
1708         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1709         CPUs, guess no, in view of glibc
1710         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1711         Suggested by Eric Blake. Reported by Reuben Thomas.
1712
1713 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1714
1715         getopt-gnu: suppress core dumps from detection code
1716         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1717         to suppress core dumps that may well occur on glibc systems.
1718         * modules/getopt-gnu: Depend on nocrash.
1719
1720 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1721
1722         pthread_sigmask: ensure usleep is declared
1723         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1724         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1725
1726 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1727
1728         doc: Document NonStop portability issues.
1729         * doc/posix-functions/sigaction.texi (sigaction):
1730         * doc/posix-headers/signal.texi (signal.h):
1731         Document NonStop.  See Joachim Schmitz in
1732         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1733
1734 2011-07-15  Bruno Haible  <bruno@clisp.org>
1735
1736         ffsl, ffsll: Avoid unportable behaviour.
1737         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1738
1739 2011-07-15  Bruno Haible  <bruno@clisp.org>
1740
1741         ffs: More tests.
1742         * tests/test-ffs.c (NBITS): New macro.
1743         (main): Add more tests.
1744         * tests/test-ffsl.c (NBITS): New macro.
1745         (main): Add more tests.
1746         * tests/test-ffsll.c (NBITS): New macro.
1747         (main): Add more tests.
1748
1749 2011-07-15  Eric Blake  <eblake@redhat.com>
1750
1751         ffsl, ffsll: new modules
1752         * modules/ffsl: New file.
1753         * modules/ffsll: Likewise.
1754         * m4/ffsl.m4: Likewise.
1755         * m4/ffsll.m4: Likewise.
1756         * lib/ffsl.c: Likewise.
1757         * lib/ffsl.h: Likewise.
1758         * lib/ffsll.c: Likewise.
1759         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1760         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1761         * modules/string (Makefile.am): Substitute witnesses.
1762         * lib/strings.in.h (ffsl, ffsll): Declare.
1763         * modules/ffsl-tests: New test file.
1764         * modules/ffsll-tests: Likewise.
1765         * tests/test-ffsl.c: Likewise.
1766         * tests/test-ffsll.c: Likewise.
1767         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1768         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1769         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1770
1771         ffs: fix m4 prerequisite
1772         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1773
1774         ffs: avoid undefined behavior
1775         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1776         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1777         Reported by Bruno Haible.
1778
1779 2011-07-12  Bruno Haible  <bruno@clisp.org>
1780
1781         pthread_sigmask: Rely on module 'threadlib'.
1782         * modules/pthread_sigmask (Depends-on): Add threadlib.
1783         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1784         is defined.
1785
1786 2011-07-12  Bruno Haible  <bruno@clisp.org>
1787
1788         regex: Depend on module 'strcase'.
1789         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1790
1791 2011-07-12  Jim Meyering  <meyering@redhat.com>
1792
1793         warn-on-use: fix typo in file name
1794         * modules/snippet/warn-on-use (Files): Correct file name:
1795         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1796
1797 2011-07-12  Bruno Haible  <bruno@clisp.org>
1798
1799         strings: Document module.
1800         * doc/posix-headers/strings.texi: Mention module 'strings'.
1801
1802 2011-07-12  Bruno Haible  <bruno@clisp.org>
1803
1804         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1805         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1806         (Files, Makefile.am): Update.
1807         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1808         * modules/stdlib (Depends-on): Update.
1809
1810 2011-07-12  Bruno Haible  <bruno@clisp.org>
1811
1812         * NEWS: Mention the changes.
1813
1814         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1815         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1816         (Files, Makefile.am): Update.
1817         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1818         * modules/arpa_inet (Depends-on): Update.
1819         * modules/ctype (Depends-on): Update.
1820         * modules/dirent (Depends-on): Update.
1821         * modules/fcntl-h (Depends-on): Update.
1822         * modules/glob (Depends-on): Update.
1823         * modules/iconv-h (Depends-on): Update.
1824         * modules/inttypes-incomplete (Depends-on): Update.
1825         * modules/langinfo (Depends-on): Update.
1826         * modules/locale (Depends-on): Update.
1827         * modules/math (Depends-on): Update.
1828         * modules/netdb (Depends-on): Update.
1829         * modules/poll-h (Depends-on): Update.
1830         * modules/pty (Depends-on): Update.
1831         * modules/search (Depends-on): Update.
1832         * modules/signal (Depends-on): Update.
1833         * modules/spawn (Depends-on): Update.
1834         * modules/stdio (Depends-on): Update.
1835         * modules/stdlib (Depends-on): Update.
1836         * modules/string (Depends-on): Update.
1837         * modules/strings (Depends-on): Update.
1838         * modules/sys_file (Depends-on): Update.
1839         * modules/sys_ioctl (Depends-on): Update.
1840         * modules/sys_select (Depends-on): Update.
1841         * modules/sys_socket (Depends-on): Update.
1842         * modules/sys_stat (Depends-on): Update.
1843         * modules/sys_time (Depends-on): Update.
1844         * modules/sys_times (Depends-on): Update.
1845         * modules/sys_utsname (Depends-on): Update.
1846         * modules/sys_wait (Depends-on): Update.
1847         * modules/termios (Depends-on): Update.
1848         * modules/time (Depends-on): Update.
1849         * modules/unistd (Depends-on): Update.
1850         * modules/wchar (Depends-on): Update.
1851         * modules/wctype-h (Depends-on): Update.
1852         * MODULES.html.sh (Support for building libraries and executables):
1853         Update.
1854
1855         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1856         * modules/snippet/unused-parameter: Renamed from
1857         modules/unused-parameter.
1858         (Files, Makefile.am): Update.
1859         * build-aux/snippet/unused-parameter.h: Renamed from
1860         build-aux/unused-parameter.h.
1861         * modules/selinux-h (Depends-on): Update.
1862         * modules/unistr/base (Depends-on): Update.
1863         * MODULES.html.sh (Core language properties): Update.
1864
1865         Rename module 'link-warning' to 'snippet/link-warning'.
1866         * modules/snippet/link-warning: Renamed from modules/link-warning.
1867         (Files, Makefile.am): Update.
1868         * build-aux/snippet/link-warning.h: Renamed from
1869         build-aux/link-warning.h.
1870         * MODULES.html.sh (Support for building libraries and executables):
1871         Update.
1872
1873         Rename module 'c++defs' to 'snippet/c++defs'.
1874         * modules/snippet/c++defs: Renamed from modules/c++defs.
1875         (Files, Makefile.am): Update.
1876         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1877         * modules/arpa_inet (Depends-on): Update.
1878         * modules/ctype (Depends-on): Update.
1879         * modules/dirent (Depends-on): Update.
1880         * modules/fcntl-h (Depends-on): Update.
1881         * modules/glob (Depends-on): Update.
1882         * modules/iconv-h (Depends-on): Update.
1883         * modules/langinfo (Depends-on): Update.
1884         * modules/locale (Depends-on): Update.
1885         * modules/math (Depends-on): Update.
1886         * modules/netdb (Depends-on): Update.
1887         * modules/poll-h (Depends-on): Update.
1888         * modules/pty (Depends-on): Update.
1889         * modules/search (Depends-on): Update.
1890         * modules/signal (Depends-on): Update.
1891         * modules/spawn (Depends-on): Update.
1892         * modules/stdio (Depends-on): Update.
1893         * modules/stdlib (Depends-on): Update.
1894         * modules/string (Depends-on): Update.
1895         * modules/strings (Depends-on): Update.
1896         * modules/sys_ioctl (Depends-on): Update.
1897         * modules/sys_select (Depends-on): Update.
1898         * modules/sys_socket (Depends-on): Update.
1899         * modules/sys_stat (Depends-on): Update.
1900         * modules/sys_time (Depends-on): Update.
1901         * modules/sys_wait (Depends-on): Update.
1902         * modules/termios (Depends-on): Update.
1903         * modules/time (Depends-on): Update.
1904         * modules/unistd (Depends-on): Update.
1905         * modules/wchar (Depends-on): Update.
1906         * modules/wctype-h (Depends-on): Update.
1907
1908         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1909         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1910         (Files, Makefile.am): Update.
1911         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1912         * modules/argv-iter (Depends-on): Update.
1913         * modules/arpa_inet (Depends-on): Update.
1914         * modules/dirent (Depends-on): Update.
1915         * modules/fcntl-h (Depends-on): Update.
1916         * modules/fnmatch (Depends-on): Update.
1917         * modules/getopt-posix (Depends-on): Update.
1918         * modules/glob (Depends-on): Update.
1919         * modules/iconv-h (Depends-on): Update.
1920         * modules/inttypes-incomplete (Depends-on): Update.
1921         * modules/locale (Depends-on): Update.
1922         * modules/math (Depends-on): Update.
1923         * modules/netdb (Depends-on): Update.
1924         * modules/search (Depends-on): Update.
1925         * modules/signal (Depends-on): Update.
1926         * modules/spawn (Depends-on): Update.
1927         * modules/stdio (Depends-on): Update.
1928         * modules/stdlib (Depends-on): Update.
1929         * modules/string (Depends-on): Update.
1930         * modules/strings (Depends-on): Update.
1931         * modules/sys_socket (Depends-on): Update.
1932         * modules/sys_stat (Depends-on): Update.
1933         * modules/sys_time (Depends-on): Update.
1934         * modules/sys_times (Depends-on): Update.
1935         * modules/sys_utsname (Depends-on): Update.
1936         * modules/time (Depends-on): Update.
1937         * modules/unistd (Depends-on): Update.
1938         * modules/wchar (Depends-on): Update.
1939         * MODULES.html.sh (Support for building libraries and executables):
1940         Update.
1941
1942 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1943
1944         Improvements on _Noreturn and related modules.
1945
1946         modules/_Exit-tests: test _Noreturn too
1947         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1948         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1949         (main): Use them.
1950
1951         stdnoreturn, stdnoreturn-tests: remove modules
1952         They're not needed here and a bit premature for use elsewhere.  See
1953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1954         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1955         * tests/test-stdnoreturn.c: Remove files.
1956         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1957         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1958         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1959         and using noreturn.
1960         * modules/openat, modules/sigpipe-die, modules/xalloc:
1961         * modules/xmemdup0, modules/xstrtol:
1962         Remove dependency on stdnoreturn.
1963
1964         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1965         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1966         Reparenthesize to avoid GCC warning.
1967         Support Microsoft's syntax.
1968         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1969
1970         _Noreturn-tests: remove module
1971         * modules/_Noreturn-tests: Remove.
1972         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1973         * tests/test-_Noreturn.c: Remove.
1974         * tests/test-stdnoreturn.c: Merge from the old
1975         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1976
1977 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1978
1979         _Noreturn, stdnoreturn, and related modules.
1980
1981         * top/maint.mk: Adjust to new noreturn support.
1982         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1983         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1984
1985         xalloc: use stdnoreturn.h
1986         * lib/xalloc.h: Include <stdnoreturn.h>.
1987         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1988         * modules/xalloc (Depends-on): Add stdnoreturn.
1989
1990         xstrtol: use stdnoreturn.h
1991         * lib/xstrtol.h: Include <stdnoreturn.h>.
1992         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1993         * modules/xstrtol (Depends-on): Add stdnoreturn.
1994
1995         xmemdup0: use stdnoreturn.h
1996         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1997         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1998         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1999
2000         sigpipe-die: use stdnoreturn.h
2001         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2002         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2003         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2004
2005         openat: use stdnoreturn.h
2006         * lib/openat.h: Include <stdnoreturn.h>.
2007         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2008         * modules/openat (Depends-on): Add stdnoreturn.
2009
2010         * lib/openat-die.c (openat_save_fail): Modernize comment.
2011
2012         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2013
2014         * lib/glthread/thread.h: Modernize comment.
2015
2016         obstack: use _Noreturn
2017         * lib/obstack.c (__attribute__): Remove macro.
2018         (print_and_abort): Use _Noreturn.
2019
2020         c-stack: use _Noreturn
2021         * lib/c-stack.c (die, overflow_handler, segv_handler):
2022         Use _Noreturn rather than __attribute__((noreturn)).
2023
2024         argmatch-tests, exclude_tests: use _Noreturn
2025         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2026         Remove.
2027         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2028
2029         stdlib: use _Noreturn
2030         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2031         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2032         * modules/stdlib (Depends-on): Add _Noreturn.
2033         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2034
2035         stdnoreturn-tests: new module
2036         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2037
2038         stdnoreturn: new module
2039         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2040         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2041
2042         _Noreturn-tests: new module
2043         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2044
2045         _Noreturn: new module
2046         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2047         New section, mentioning it.
2048         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2049
2050         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2051
2052 2011-07-11  Eric Blake  <eblake@redhat.com>
2053
2054         ffs: new module
2055         * modules/ffs: New file.
2056         * m4/ffs.m4: Likewise.
2057         * lib/ffs.c: Likewise.
2058         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2059         * modules/strings (Makefile.am): Substitute witness.
2060         (Depends-on): Add c++defs.
2061         * lib/strings.in.h (ffs): Declare.
2062         * modules/ffs-tests: New test file.
2063         * tests/test-ffs.c: Test new module.
2064         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2065         * doc/posix-functions/ffs.texi (ffs): Likewise.
2066
2067         regex: avoid compiler warning
2068         * lib/regex.c (includes): Include <strings.h>, for use of
2069         strcasecmp in regcomp.c.
2070         Reported by Joachim Schmitz.
2071
2072 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2073
2074         stdint: respect system's intmax_t if INTMAX_MAX
2075         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2076         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2077         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2078         long but int64_t is long long, and where we will clash with the
2079         system intmax_t if we override it.  See
2080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2081         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2082         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2083         similarly for UINTMAX_C.
2084
2085 2011-07-08  Bruno Haible  <bruno@clisp.org>
2086
2087         pthread_sigmask tests: Avoid a compiler warning.
2088         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2089         non-zero.
2090
2091         sigprocmask tests: A better way to avoid a compiler warning.
2092         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2093         (main): Complain if system() returns non-zero.
2094         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2095
2096 2011-07-08  Bruno Haible  <bruno@clisp.org>
2097
2098         pthread_sigmask: Work around IRIX bug.
2099         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2100         bug.
2101         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2102         there may be unblocked pending signals.
2103         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2104
2105 2011-07-08  Bruno Haible  <bruno@clisp.org>
2106
2107         pthread_sigmask: Work around Cygwin bug.
2108         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2109         bug.
2110         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2111         the system's pthread_sigmask function.
2112         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2113
2114 2011-07-08  Bruno Haible  <bruno@clisp.org>
2115
2116         pthread_sigmask: Work around bug in single-threaded implementation.
2117         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2118         FreeBSD, HP-UX, Solaris bug.
2119         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2120         * lib/pthread_sigmask.c: Include <stddef.h>.
2121         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2122         the system's pthread_sigmask function.
2123         * modules/pthread_sigmask (configure.ac): Invoke
2124         gl_PREREQ_PTHREAD_SIGMASK.
2125         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2126         HP-UX, Solaris.
2127
2128 2011-07-08  Eric Blake  <eblake@redhat.com>
2129
2130         test-sigprocmask: avoid compiler warning
2131         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2132         * tests/test-sigprocmask.c (main): Use it to silence warning.
2133         Reported by Jim Meyering.
2134
2135         test-snprintf: avoid compiler warning
2136         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2137         * tests/test-vsnprintf.c (main): Likewise.
2138         Reported by Jim Meyering.
2139
2140 2011-07-08  Bruno Haible  <bruno@clisp.org>
2141
2142         Tests for module 'pthread_sigmask'.
2143         * modules/pthread_sigmask-tests: New file.
2144         * tests/test-pthread_sigmask1.c: New file, based on
2145         tests/test-sigprocmask.c.
2146         * tests/test-pthread_sigmask2.c: New file.
2147
2148 2011-07-08  Jim Meyering  <meyering@redhat.com>
2149
2150         test-getopt.h: avoid warning about an unused variable
2151         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2152
2153 2011-07-07  Jim Meyering  <meyering@redhat.com>
2154
2155         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2156         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2157         now that it no longer contains leading TABs.
2158         Remove unused "url=FIXME" statement.
2159
2160 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2161
2162         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2163         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2164         When gl_THREADLIB is not in use, assume that the POSIX sematics
2165         are desired.  This is better for Emacs, which uses POSIX semantics
2166         on GNUish and/or POSIXish platforms, and does not use threads at
2167         all otherwise.
2168
2169         pthread_sigmask: fix typo when testing for libraries
2170         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2171         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2172
2173 2011-07-08  Eric Blake  <eblake@redhat.com>
2174
2175         fts: introduce FTS_NOATIME
2176         * lib/fts_.h (FTS_NOATIME): New bit flag.
2177         (FTS_OPTIONMASK): Adjust.
2178         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2179         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2180
2181 2011-07-08  Bruno Haible  <bruno@clisp.org>
2182
2183         Tests for module 'thread'.
2184         * modules/thread-tests: New file.
2185         * tests/test-thread_self.c: New file.
2186         * tests/test-thread_create.cc: New file.
2187
2188 2011-07-08  Bruno Haible  <bruno@clisp.org>
2189
2190         thread: Avoid gcc warnings when using gl_thread_self().
2191         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2192         'void *'.
2193         (gl_thread_self_pointer): Update.
2194
2195 2011-07-07  Bruno Haible  <bruno@clisp.org>
2196
2197         signal-c++-tests: Check declaration of pthread_sigmask.
2198         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2199         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2200         $(LIB_PTHREAD_SIGMASK).
2201
2202 2011-07-07  Bruno Haible  <bruno@clisp.org>
2203
2204         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2205         * lib/signal.in.h (pthread_sigmask): Override if
2206         REPLACE_PTHREAD_SIGMASK is 1.
2207         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2208         REPLACE_PTHREAD_SIGMASK.
2209         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2210         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2211         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2212         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2213         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2214
2215 2011-07-07  Bruno Haible  <bruno@clisp.org>
2216
2217         pthread_sigmask: Ensure declaration in <signal.h>.
2218         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2219         include <pthread.h>.
2220         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2221         problem.
2222
2223 2011-07-07  Bruno Haible  <bruno@clisp.org>
2224
2225         pthread_sigmask: Document the module.
2226         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2227
2228 2011-07-07  Bruno Haible  <bruno@clisp.org>
2229
2230         pthread_sigmask: Follow gnulib conventions.
2231         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2232         gl_PTHREAD_SIGMASK.
2233         * modules/pthread_sigmask (configure.ac): Update.
2234
2235 2011-07-07  Bruno Haible  <bruno@clisp.org>
2236
2237         pthread_sigmask: Make declaration C++ safe.
2238         * lib/signal.in.h: In two special conditions, just do an #include_next.
2239         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2240         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2241         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2242         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2243         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2244         not REPLACE_PTHREAD_MASK.
2245         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2246         not REPLACE_PTHREAD_MASK.
2247         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2248
2249 2011-07-07  Bruno Haible  <bruno@clisp.org>
2250
2251         pthread_sigmask: Fix return value.
2252         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2253         * lib/pthread_sigmask.c: New file.
2254         * modules/pthread_sigmask (Files): Add it.
2255         (configure.ac): Invoke AC_LIBOBJ.
2256
2257 2011-07-07  Eric Blake  <eblake@redhat.com>
2258
2259         getopt: more portable argv creation
2260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2261         const, use char arrays rather than strings.
2262         Suggested by Paul Eggert.
2263
2264 2011-07-07  Bruno Haible  <bruno@clisp.org>
2265
2266         Tests for module 'sigprocmask'.
2267         * modules/sigprocmask-tests: New file.
2268         * tests/test-sigprocmask.c: New file.
2269
2270 2011-07-07  Bruno Haible  <bruno@clisp.org>
2271
2272         float tests: Tweak.
2273         * tests/test-float.c (main): Tweak skip message.
2274
2275 2011-07-07  Eric Blake  <eblake@redhat.com>
2276
2277         getopt: avoid compiler warning during configure
2278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2279         assigning string literals to non-const pointer.
2280
2281         getopt-gnu: avoid crash in glibc getopt
2282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2283         * tests/test-getopt.h (test_getopt): Enhance test.
2284         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2285         * doc/posix-functions/getopt.texi (getopt): Document it.
2286         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2287         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2288         Likewise.
2289
2290 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2291
2292         getopt: handle W; without long options in getopt [BZ #12922]
2293         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2294         but no long options are defined, just return 'W'.
2295
2296 2011-07-07  Bruno Haible  <bruno@clisp.org>
2297
2298         Avoid literal tabs.
2299         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2300         variable containing a tab instead of a literal tab.
2301         Reported by Jim Meyering.
2302
2303 2011-07-07  Bruno Haible  <bruno@clisp.org>
2304
2305         Comments.
2306         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2307
2308 2011-07-06  Bruno Haible  <bruno@clisp.org>
2309
2310         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2311         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2312         <winsock2.h>.
2313         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2314         lib/sys_socket.in.h.
2315         (close, gethostname): Hide declarations from <winsock2.h>.
2316         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2317         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2318         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2319         (select): Don't override if gnulib's <sys/select.h> was already
2320         included.
2321         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2322         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2323         setsockopt, shutdown, select): Tweak indentation.
2324
2325 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2326
2327         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2328         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2329         in an application that does not use the sys_select module.
2330
2331 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2332
2333         poll: do not return 0 on timeout=-1
2334         * lib/poll.c: Loop with yield if no events occured
2335
2336 2011-07-06  Eric Blake  <eblake@redhat.com>
2337
2338         pthread_sigmask: always replace when not using pthread
2339         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2340         replacement when using some threading other than pthread.  Fix
2341         logic bug.
2342
2343 2011-07-06  Bruno Haible  <bruno@clisp.org>
2344
2345         Comments.
2346         * m4/printf.m4: Update comments about mingw.
2347
2348 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2349
2350         sys_select: define sigset_t more portably
2351         * lib/sys_select.in.h: Always include <sys/types.h>, since
2352         we now need sigset_t and mingw defines it there.
2353         Include <signal.h> before split inclusion guard, to avoid
2354         mishaps on Solaris, whose <signal.h> eventually includes us.
2355         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2356         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2357         which come from ...
2358         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2359         gl_CHECK_TYPE_SIGSET_T.
2360         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2361         does the real work.
2362         * modules/sys_select (Depends-on): Add 'signal'.
2363
2364         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2365         Suggested by Bruno Haible.
2366
2367         pselect: Use pthread_sigmask, not sigprocmask.
2368         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2369         multithreaded apps better than sigprocmask does.
2370         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2371         sigprocmask directly.
2372
2373 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2374
2375         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2376         Don't #undef,  since we don't need any underlying pselect.
2377         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2378         (Depends-on): Add select.
2379         (Link): Add $(LIBSOCKET).
2380         These changes suggested by Bruno Haible.
2381
2382         pselect: document better
2383         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2384         * doc/posix-functions/pselect.texi (pselect): Document new module.
2385
2386         pthread_sigmask: new module
2387         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2388         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2389         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2390         This is done only as a macro; I don't know how well that'll
2391         work for C++.  Move <sys/types.h> include before the include_next,
2392         to avoid mishap on Solaris.
2393         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2394         * modules/signal (Makefile.am): Substitute the check's results.
2395         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2396
2397         test-pselect: new module
2398         * modules/pselect-tests, tests/test-pselect.c: New files.
2399         * tests/test-select.c, tests/test-sys_select-c++.cc:
2400         If TEST_PSELECT is defined, test pselect instead of testing select.
2401
2402         * tests/test-sys_select.c (sigset_t): Test for it, too.
2403         Suggested by Bruno Haible.
2404
2405 2011-07-05  Eric Blake  <eblake@redhat.com>
2406
2407         snprintf: guarantee %1$d, for libintl
2408         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2409         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2410         * doc/posix-functions/snprintf.texi (snprintf): Update.
2411         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2412         * tests/test-snprintf.c (main): Enhance test.
2413         * tests/test-vsnprintf.c (main): Likewise.
2414
2415 2011-07-05  Jim Meyering  <meyering@redhat.com>
2416
2417         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2418         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2419         per Bruno's request, to accommodate this idiom (no space after "#")
2420         even when the function is inside an #if block:
2421         char *
2422         gets (char *s)
2423         #undef gets
2424         {
2425           ...
2426         }
2427
2428 2011-07-04  Jim Meyering  <meyering@redhat.com>
2429
2430         maint: indent with spaces, not TABs, and add a rule to check this
2431         * tests/test-userspec.c: Indent with spaces, not TABs.
2432         * tests/test-argp.c: Likewise.
2433         * tests/test-c-stack2.sh: Likewise.
2434         * tests/test-parse-duration.sh: Likewise
2435         * m4/strtod.m4: Likewise.
2436         * m4/alloca.m4: Likewise.
2437         * m4/pselect.m4: Likewise.
2438         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2439
2440 2011-07-03  Jim Meyering  <meyering@redhat.com>
2441
2442         maint.mk: correct omissions in prohibit_argmatch_without_use check
2443         This rule would mistakenly report that argmatch.h is included without
2444         use even when both the argmatch and invalid_arg macro were used.
2445         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2446         of argmatch and invalid_arg.
2447
2448 2011-07-03  Bruno Haible  <bruno@clisp.org>
2449
2450         Comments about EINTR.
2451         * lib/safe-read.h: Explain the purpose of this module.
2452         * lib/safe-write.h: Likewise.
2453         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2454         module.
2455         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2456         module.
2457         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2458
2459 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2460
2461         xnanosleep: Rewrite to use new dtotimespec module.
2462         It has the conversion code that used to be in xnanosleep.
2463         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2464         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2465         (TIME_T_MAX): Remove.
2466         (xnanosleep): Rewrite in terms of dtotimespec.
2467         * modules/xnanosleep (Depends-on): Add dtotimespec.
2468         Remove intprops, stdbool.
2469
2470         timespec-add, timespec-sub: new modules
2471         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2472         * lib/timespec-add.c, lib/timespec-sub.c:
2473         * modules/timespec-add, modules/timespec-sub: New files.
2474
2475         dtotimespec: new module
2476         * lib/timespec.h (dtotimespec): New decl.
2477         * lib/dtotimespec.c, modules/dtotimespec: New files.
2478
2479         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2480
2481         pselect: new module
2482         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2483         (pselect): New decls.
2484         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2485         since the standard pselect decl uses 'restrict'.
2486         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2487         HAVE_PSELECT, REPLACE_PSELECT.
2488         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2489         HAVE_PSELECT, REPLACE_PSELECT.
2490         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2491
2492         sys_select: don't depend on sys_socket
2493         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2495         This fix works on GNU and GNU-like platforms, but has not been tested
2496         on native Windows.
2497         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2498         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2499         gl_HEADER_SYS_SOCKET.
2500         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2501         gl_PREREQ_SYS_H_WINSOCK2.
2502
2503 2011-06-29  Eric Blake  <eblake@redhat.com>
2504
2505         pipe2: fix C89 compile problem
2506         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2507         Reported by Bruno Haible.
2508
2509         pipe, pipe2: don't corrupt fd on error
2510         * lib/pipe.c (pipe): Leave fd unchanged on error.
2511         * lib/pipe2.c (pipe2): Likewise.
2512         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2513         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2514
2515 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2516
2517         mmap-anon: do not use regular expressions inadvertently
2518         * m4/mmap-anon.m4: Remove trailing period from strings sought
2519         in the output.
2520
2521 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2522
2523         nanosleep: fix integer overflow problem
2524         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2525         arithmetic wraps around on overflow.
2526
2527         nanosleep: simplify carrying
2528         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2529         first call to the underyling nanosleep, not for the last one.
2530         This doesn't fix any bugs, but it simplifies the computation of
2531         the remaining delay.  Found while auditing integer overflow issues.
2532
2533         dup2: remove test for existence of fcntl
2534         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2535         "#if HAVE_FCNTL", in the configure-time test program.
2536         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2537         and therefore speeds up "configure" a bit.  Found while
2538         adding the dup2 module to Emacs.
2539
2540 2011-06-24  Eric Blake  <eblake@redhat.com>
2541
2542         maint.mk: enhance useless header checks
2543         * top/maint.mk (_sc_header_without_use): Check both include
2544         styles.
2545         (sc_prohibit_assert_without_use)
2546         (sc_prohibit_close_stream_without_use)
2547         (sc_prohibit_getopt_without_use)
2548         (sc_prohibit_quotearg_without_use)
2549         (sc_prohibit_quote_without_use)
2550         (sc_prohibit_long_options_without_use)
2551         (sc_prohibit_inttostr_without_use)
2552         (sc_prohibit_ignore_value_without_use)
2553         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2554         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2555         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2556         (sc_prohibit_hash_pjw_without_use)
2557         (sc_prohibit_safe_read_without_use)
2558         (sc_prohibit_argmatch_without_use)
2559         (sc_prohibit_canonicalize_without_use)
2560         (sc_prohibit_root_dev_ino_without_use)
2561         (sc_prohibit_openat_without_use)
2562         (sc_prohibit_c_ctype_without_use)
2563         (sc_prohibit_signal_without_use)
2564         (sc_prohibit_stdio--_without_use)
2565         (sc_prohibit_stdio-safer_without_use)
2566         (sc_prohibit_strings_without_use)
2567         (sc_prohibit_intprops_without_use)
2568         (sc_prohibit_stddef_without_use)
2569         (sc_prohibit_xfreopen_without_use): Update clients.
2570
2571 2011-06-24  Jim Meyering  <meyering@redhat.com>
2572
2573         syntax-check: keep one maint.mk rule in sync with its header
2574         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2575         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2576         I prefer to avoid temporary files here, so use <(...), but that
2577         is not supported by /bin/sh, so...
2578         (SHELL): Define to /bin/bash.
2579
2580 2011-06-24  Eric Blake  <eblake@redhat.com>
2581
2582         maint.mk: update sc_prohibit_intprops_without_use
2583         * top/maint.mk (_intprops_names): Match recent changes.
2584
2585 2011-06-24  Bruno Haible  <bruno@clisp.org>
2586
2587         strerror-override: No-op tweak.
2588         * lib/strerror-override.h (strerror_override): Reorder conditions,
2589         for consistency with lib/strerror-override.c.
2590
2591 2011-06-23  Eric Blake  <eblake@redhat.com>
2592
2593         maint.mk: test further PATH_MAX issues
2594         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2595         (sc_prohibit_path_max_allocation): ...and also test alloca.
2596         Suggested by Jim Meyering.
2597
2598 2011-06-22  Eric Blake  <eblake@redhat.com>
2599
2600         maint.mk: add syntax-check to avoid char[PATH_MAX]
2601         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2602
2603         stat: be robust to PATH_MAX definition
2604         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2605         * modules/stat (Depends-on): Add verify.
2606
2607         link: work around IRIX bug
2608         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2609         * lib/link.c (rpl_link): Work around it.
2610         * tests/test-link.h (test_link): Enhance test.
2611         * doc/posix-functions/link.texi (link): Document the bug.
2612
2613         getopt: silence clang warning
2614         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2615         dereference.
2616         Reported by Gustavo Martin Domato.
2617
2618 2011-06-22  Jim Meyering  <meyering@redhat.com>
2619
2620         bootstrap: do not insert a blank line into each .gitignore file
2621         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2622
2623 2011-06-21  Eric Blake  <eblake@redhat.com>
2624
2625         perror: test for output mismatch
2626         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2627         perror on IRIX.
2628
2629         strerror_r: fix OpenBSD behavior on out-of-range
2630         * lib/strerror_r.c (strerror_r): Always use maximal string.
2631         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2632
2633         strerror_r: fix OpenBSD behavior on 0
2634         * lib/strerror-override.c (strerror_override): Also override 0
2635         when needed.
2636         * lib/strerror-override.h (strerror_override): Likewise.
2637         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2638         earlier.
2639         * lib/strerror_r.c (strerror_r): Likewise.
2640         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2641         behavior...
2642         (gl_FUNC_STRERROR_0): ...into new macro.
2643         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2644         is overridden.
2645         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2646         * modules/strerror-override (Files): Add strerror.m4.
2647         (configure.ac): Also provide override for 0 when needed.
2648         * doc/posix-functions/strerror.texi (strerror): Document this.
2649         * doc/posix-functions/perror.texi (perror): Likewise.
2650
2651         perror: adjust array size
2652         * modules/perror (Depends-on): Add strerror-override.
2653         * lib/perror.c (perror): Use it to avoid magic number.
2654
2655         strerror-override: reduce size
2656         * lib/strerror-override.c (strerror_override): Use fewer lines.
2657
2658 2011-06-20  Bruno Haible  <bruno@clisp.org>
2659
2660         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2661         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2662
2663 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2664
2665         alloca: port to compilers that can optimize like GCC 4.6.0
2666         * lib/alloca.c (find_stack_direction): New signature, taken from
2667         Autoconf git.  This works with GCC 4.6.0.  This code should never
2668         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2669         be used with other compilers that optimize as well as GCC 4.6.0 does.
2670         (alloca): Adjust to new signature.
2671         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2672         New macro, which patches Autoconf in a similar way.
2673
2674         c-stack: stop worrying about stack direction
2675         * lib/c-stack.c (find_stack_direction): Remove.
2676         (segv_handler): Don't worry about stack direction growth, as it's
2677         too much of a pain to configure this correctly, given how compilers
2678         are optimizing-away our stack-growth detection code.  Instead, assume
2679         that any access to just before or just after the stack is OK.
2680         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2681         Don't require AC_FUNC_ALLOCA; no longer needed.
2682
2683 2011-06-20  Eric Blake  <eblake@redhat.com>
2684
2685         test-stat: don't allocate PATH_MAX bytes
2686         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2687         PATH_MAX-sized buffer.
2688         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2689         * modules/stat-tests (Depends-on): Likewise.
2690         * tests/test-fstatat.c (includes): Drop pathmax.h.
2691         * tests/test-stat.c (includes): Likewise.
2692         Reported by Bruno Haible.
2693
2694 2011-06-20  Bruno Haible  <bruno@clisp.org>
2695
2696         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2697         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2698         * lib/float.c: New file.
2699         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2700         REPLACE_FLOAT_LDBL.
2701         * modules/float (Files): Add lib/float.c.
2702         (configure.ac): Invoke AC_LIBOBJ.
2703         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2704
2705 2011-06-20  Bruno Haible  <bruno@clisp.org>
2706
2707         Tests for module 'float'.
2708         * modules/float-tests: New file.
2709         * tests/test-float.c: New file.
2710
2711 2011-06-19  Bruno Haible  <bruno@clisp.org>
2712
2713         isinf: Coding style.
2714         * lib/isinf.c: Use GNU coding style.
2715
2716 2011-06-19  Bruno Haible  <bruno@clisp.org>
2717
2718         linkat test: Avoid test failure on AIX 7.1.
2719         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2720         * tests/test-link.h (test_link): Likewise.
2721
2722 2011-06-19  Bruno Haible  <bruno@clisp.org>
2723
2724         pread test: Avoid test failure on OpenBSD 4.9.
2725         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2726
2727 2011-06-19  Bruno Haible  <bruno@clisp.org>
2728
2729         sprintf-posix: Fix test failure on AIX 7.1.
2730         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2731         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2732         on AIX.
2733         * doc/posix-functions/fprintf.texi: Likewise.
2734         * doc/posix-functions/printf.texi: Likewise.
2735         * doc/posix-functions/snprintf.texi: Likewise.
2736         * doc/posix-functions/sprintf.texi: Likewise.
2737         * doc/posix-functions/vdprintf.texi: Likewise.
2738         * doc/posix-functions/vfprintf.texi: Likewise.
2739         * doc/posix-functions/vprintf.texi: Likewise.
2740         * doc/posix-functions/vsnprintf.texi: Likewise.
2741         * doc/posix-functions/vsprintf.texi: Likewise.
2742
2743 2011-06-19  Bruno Haible  <bruno@clisp.org>
2744
2745         roundl-ieee: Fix test failure on AIX 7.1.
2746         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2747         * doc/posix-functions/roundl.texi: Mention problem with negative
2748         arguments.
2749
2750 2011-06-19  Bruno Haible  <bruno@clisp.org>
2751
2752         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2753         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2754         * doc/posix-functions/round.texi: Mention problem with negative
2755         arguments.
2756         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2757
2758 2011-06-19  Bruno Haible  <bruno@clisp.org>
2759
2760         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2761         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2762         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2763         * doc/posix-functions/roundf.texi: Mention problem with negative
2764         arguments.
2765         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2766
2767 2011-06-19  Bruno Haible  <bruno@clisp.org>
2768
2769         ceilf-ieee: Work around bug on MacOS X 10.5.
2770         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2771
2772         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2773         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2774         IEEE compliant, avoid compiler optimizations.
2775         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2776         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2777         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2778         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2779         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2780         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2781         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2782         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2783         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2784         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2785
2786 2011-06-19  Bruno Haible  <bruno@clisp.org>
2787
2788         ceilf-ieee: Work around bug on AIX 7.1.
2789         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2790         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2791
2792 2011-06-19  Bruno Haible  <bruno@clisp.org>
2793
2794         ceil-ieee: Work around bug on AIX 7.1.
2795         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2796         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2797
2798 2011-06-18  Bruno Haible  <bruno@clisp.org>
2799
2800         fsync test: Avoid test failure on MacOS X and AIX.
2801         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2802         EINVAL.
2803
2804 2011-06-18  Bruno Haible  <bruno@clisp.org>
2805
2806         openat, fdopendir tests: Fix link errors.
2807         * modules/openat-tests (Depends-on): Add progname.
2808         * modules/fdopendir-tests (Depends-on): Likewise.
2809         * tests/test-fchownat.c: Include progname.h.
2810         (main): Call set_program_name.
2811         * tests/test-fstatat.c: Include progname.h.
2812         (main): Call set_program_name.
2813         * tests/test-mkdirat.c: Include progname.h.
2814         (main): Call set_program_name.
2815         * tests/test-openat.c: Include progname.h.
2816         (main): Call set_program_name.
2817         * tests/test-unlinkat.c: Include progname.h.
2818         (main): Call set_program_name.
2819         * tests/test-fdopendir.c: Include progname.h.
2820         (main): Call set_program_name.
2821
2822 2011-06-18  Bruno Haible  <bruno@clisp.org>
2823
2824         Doc update.
2825         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2826         HP-UX.
2827         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2828
2829 2011-06-18  Bruno Haible  <bruno@clisp.org>
2830
2831         getcwd tests: Avoid compilation error on HP-UX 11.31.
2832         * modules/getcwd-tests (Depends-on): Add pathmax.
2833         * tests/test-getcwd.c: Include pathmax.h.
2834
2835 2011-06-18  Bruno Haible  <bruno@clisp.org>
2836
2837         isfinite, isinf: Fix link error on AIX 6 and 7.
2838         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2839         needed, also test the macro with a 'float' argument.
2840         * m4/isinf.m4 (gl_ISINF): Likewise.
2841
2842 2011-06-18  Bruno Haible  <bruno@clisp.org>
2843
2844         getloadavg: Don't clobber LIBS. Regression from previous commit.
2845         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2846         AC_CHECK_LIB from here...
2847         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2848         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2849         gl_func_getloadavg_done.
2850         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2851
2852 2011-06-18  Bruno Haible  <bruno@clisp.org>
2853
2854         clean-temp: Improve documentation.
2855         * lib/clean-temp.h: Explain better how to use this module.
2856         Reported by John Darrington <john@darrington.wattle.id.au>.
2857
2858 2011-06-17  Bruno Haible  <bruno@clisp.org>
2859
2860         pread, pwrite: Avoid cc warning on AIX.
2861         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2862         (pwrite): Likewise.
2863
2864 2011-06-17  Bruno Haible  <bruno@clisp.org>
2865
2866         spawn-pipe tests: Fix link error.
2867         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2868         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2869
2870 2011-06-17  Bruno Haible  <bruno@clisp.org>
2871
2872         Tests: Remove unnecessary dependency.
2873         * modules/canonicalize-tests (Depends-on): Remove progname.
2874         * modules/chown-tests (Depends-on): Likewise.
2875         * modules/dirname-tests (Depends-on): Likewise.
2876         * modules/fdopendir-tests (Depends-on): Likewise.
2877         * modules/fdutimensat-tests (Depends-on): Likewise.
2878         * modules/hash-tests (Depends-on): Likewise.
2879         * modules/lchown-tests (Depends-on): Likewise.
2880         * modules/linkat-tests (Depends-on): Likewise.
2881         * modules/renameat-tests (Depends-on): Likewise.
2882         * modules/spawn-pipe-tests (Depends-on): Likewise.
2883         * modules/utimensat-tests (Depends-on): Likewise.
2884
2885 2011-06-17  Bruno Haible  <bruno@clisp.org>
2886
2887         spawn-pipe tests: Fix link error.
2888         * tests/test-spawn-pipe-child.c: Undefine fflush.
2889
2890 2011-06-17  Bruno Haible  <bruno@clisp.org>
2891
2892         Fix tests link errors.
2893         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2894         * modules/chown-tests (Makefile.am): Don't link test-chown with
2895         LIBINTL.
2896         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2897         LIBINTL.
2898         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2899         LIBINTL.
2900         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2901         LIBINTL.
2902
2903 2011-06-16  Bruno Haible  <bruno@clisp.org>
2904
2905         crypto/gc-sha1: Fix recent regression.
2906         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2907         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2908
2909         crypto/gc-md5: Fix recent regression.
2910         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2911
2912         crypto/gc-md4: Fix recent regression.
2913         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2914         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2915
2916         crypto/gc-arctwo: Fix recent regression.
2917         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2918         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2919
2920         crypto/gc-rijndael: Fix recent regression.
2921         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2922         (configure.ac): Invoke AC_LIBOBJ here.
2923         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2924         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2925
2926         crypto/gc-hmac-sha1: Fix recent regression.
2927         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2928         (configure.ac): Invoke AC_LIBOBJ here.
2929         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2930         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2931
2932         crypto/gc-hmac-md5: Fix recent regression.
2933         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2934         (configure.ac): Invoke AC_LIBOBJ here.
2935         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2936         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2937
2938         crypto/gc-des: Fix recent regression.
2939         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2940         (configure.ac): Invoke AC_LIBOBJ here.
2941         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2942         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2943
2944         crypto/gc-arcfour: Fix recent regression.
2945         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2946         (configure.ac): Invoke AC_LIBOBJ here.
2947         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2949
2950 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2951
2952         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2953         After the 2011-05-21 change, this macro requires
2954         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2955         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2956
2957 2011-06-16  Bruno Haible  <bruno@clisp.org>
2958
2959         fprintftime: Move AC_LIBOBJ invocations to module description.
2960         * m4/fprintftime.m4: Remove file.
2961         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2962         (configure.ac): Remove gl_FPRINTFTIME call.
2963         (Makefile.am): Augment lib_SOURCES.
2964         Reported by Jim Meyering.
2965
2966 2011-06-16  Bruno Haible  <bruno@clisp.org>
2967
2968         tmpfile-safer: Finish 2011-05-23 commit.
2969         * m4/stdio-safer.m4: Really remove file.
2970         Reported by Jim Meyering.
2971
2972 2011-06-16  Bruno Haible  <bruno@clisp.org>
2973
2974         syntax-check: Fix typo.
2975         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2976         printf-posix.m4.
2977         Reported by Jim Meyering.
2978
2979 2011-06-13  Jim Meyering  <meyering@redhat.com>
2980
2981         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2982         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2983
2984 2011-05-23  Bruno Haible  <bruno@clisp.org>
2985
2986         yesno: Move AC_LIBOBJ invocations to module description.
2987         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2988         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2989
2990 2011-05-23  Bruno Haible  <bruno@clisp.org>
2991
2992         xstrtol: Move AC_LIBOBJ invocations to module description.
2993         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2994         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2995
2996 2011-05-23  Bruno Haible  <bruno@clisp.org>
2997
2998         xstrtold: Move AC_LIBOBJ invocations to module description.
2999         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3000         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3001
3002 2011-05-23  Bruno Haible  <bruno@clisp.org>
3003
3004         xstrtod: Move AC_LIBOBJ invocations to module description.
3005         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3006         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3007
3008 2011-05-23  Bruno Haible  <bruno@clisp.org>
3009
3010         xnanosleep: Move AC_LIBOBJ invocations to module description.
3011         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3012         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3013
3014 2011-05-23  Bruno Haible  <bruno@clisp.org>
3015
3016         xgetcwd: Move AC_LIBOBJ invocations to module description.
3017         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3018         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3019
3020 2011-05-23  Bruno Haible  <bruno@clisp.org>
3021
3022         xalloc: Move AC_LIBOBJ invocations to module description.
3023         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3024         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3025
3026 2011-05-23  Bruno Haible  <bruno@clisp.org>
3027
3028         write-any-file: Move AC_LIBOBJ invocations to module description.
3029         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3030         invocation.
3031         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3032
3033 2011-05-23  Bruno Haible  <bruno@clisp.org>
3034
3035         utimens: Move AC_LIBOBJ invocations to module description.
3036         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3037         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3038
3039 2011-05-23  Bruno Haible  <bruno@clisp.org>
3040
3041         utimecmp: Move AC_LIBOBJ invocations to module description.
3042         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3043         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3044
3045 2011-05-23  Bruno Haible  <bruno@clisp.org>
3046
3047         userspec: Move AC_LIBOBJ invocations to module description.
3048         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3049         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3050
3051 2011-05-23  Bruno Haible  <bruno@clisp.org>
3052
3053         unlinkdir: Move AC_LIBOBJ invocations to module description.
3054         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3055         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3056
3057 2011-05-23  Bruno Haible  <bruno@clisp.org>
3058
3059         unistd-safer: Move AC_LIBOBJ invocations to module description.
3060         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3061         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3062
3063 2011-05-23  Bruno Haible  <bruno@clisp.org>
3064
3065         tempname: Move AC_LIBOBJ invocations to module description.
3066         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3067         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3068
3069 2011-05-23  Bruno Haible  <bruno@clisp.org>
3070
3071         strftime: Move AC_LIBOBJ invocations to module description.
3072         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3073         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3074
3075 2011-05-23  Bruno Haible  <bruno@clisp.org>
3076
3077         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3078         * m4/stdlib-safer.m4: Remove file.
3079         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3080         (configure.ac): Remove gl_STDLIB_SAFER call.
3081         (Makefile.am): Augment lib_SOURCES.
3082
3083 2011-05-23  Bruno Haible  <bruno@clisp.org>
3084
3085         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3086         * m4/stdio-safer.m4: Remove file.
3087         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3088         (configure.ac): Remove gl_TMPFILE_SAFER call.
3089         (Makefile.am): Augment lib_SOURCES.
3090
3091 2011-05-23  Bruno Haible  <bruno@clisp.org>
3092
3093         popen-safer: Move AC_LIBOBJ invocations to module description.
3094         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3095         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3096         (configure.ac): Remove gl_POPEN_SAFER call.
3097         (Makefile.am): Augment lib_SOURCES.
3098
3099 2011-05-23  Bruno Haible  <bruno@clisp.org>
3100
3101         freopen-safer: Move AC_LIBOBJ invocations to module description.
3102         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3103         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3104         (configure.ac): Remove gl_FREOPEN_SAFER call.
3105         (Makefile.am): Augment lib_SOURCES.
3106
3107 2011-05-23  Bruno Haible  <bruno@clisp.org>
3108
3109         fopen-safer: Move AC_LIBOBJ invocations to module description.
3110         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3111         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3112         (configure.ac): Remove gl_FOPEN_SAFER call.
3113         (Makefile.am): Augment lib_SOURCES.
3114
3115 2011-05-23  Bruno Haible  <bruno@clisp.org>
3116
3117         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3118         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3119         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3120
3121 2011-05-23  Bruno Haible  <bruno@clisp.org>
3122
3123         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3124         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3125         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3126
3127 2011-05-23  Bruno Haible  <bruno@clisp.org>
3128
3129         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3130         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3131         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3132
3133 2011-05-23  Bruno Haible  <bruno@clisp.org>
3134
3135         settime: Move AC_LIBOBJ invocations to module description.
3136         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3137         * modules/settime (Makefile.am): Augment lib_SOURCES.
3138
3139 2011-05-23  Bruno Haible  <bruno@clisp.org>
3140
3141         savedir: Move AC_LIBOBJ invocations to module description.
3142         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3143         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3144
3145 2011-05-23  Bruno Haible  <bruno@clisp.org>
3146
3147         save-cwd: Move AC_LIBOBJ invocations to module description.
3148         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3149         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3150
3151 2011-05-23  Bruno Haible  <bruno@clisp.org>
3152
3153         same: Move AC_LIBOBJ invocations to module description.
3154         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3155         * modules/same (Makefile.am): Augment lib_SOURCES.
3156
3157 2011-05-23  Bruno Haible  <bruno@clisp.org>
3158
3159         safe-write: Move AC_LIBOBJ invocations to module description.
3160         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3161         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3162         instead of gl_SAFE_WRITE.
3163         (Makefile.am): Augment lib_SOURCES.
3164
3165 2011-05-23  Bruno Haible  <bruno@clisp.org>
3166
3167         safe-read: Move AC_LIBOBJ invocations to module description.
3168         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3169         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3170         of gl_SAFE_READ.
3171         (Makefile.am): Augment lib_SOURCES.
3172
3173 2011-05-23  Bruno Haible  <bruno@clisp.org>
3174
3175         safe-alloc: Move AC_LIBOBJ invocations to module description.
3176         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3177         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3178
3179 2011-05-23  Bruno Haible  <bruno@clisp.org>
3180
3181         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3182         * m4/rijndael.m4: Remove file.
3183         * modules/crypto/rijndael (Files): Remove it.
3184         (configure.ac): Remove gl_RIJNDAEL call.
3185         (Makefile.am): Augment lib_SOURCES.
3186
3187 2011-05-23  Bruno Haible  <bruno@clisp.org>
3188
3189         readtokens: Move AC_LIBOBJ invocations to module description.
3190         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3191         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3192
3193 2011-05-23  Bruno Haible  <bruno@clisp.org>
3194
3195         read-file: Move AC_LIBOBJ invocations to module description.
3196         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3197         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3198         of gl_FUNC_READ_FILE.
3199         (Makefile.am): Augment lib_SOURCES.
3200
3201 2011-05-23  Bruno Haible  <bruno@clisp.org>
3202
3203         quotearg: Move AC_LIBOBJ invocations to module description.
3204         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3205         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3206
3207 2011-05-23  Bruno Haible  <bruno@clisp.org>
3208
3209         quote: Move AC_LIBOBJ invocations to module description.
3210         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3211         * modules/quote (Makefile.am): Augment lib_SOURCES.
3212
3213 2011-05-23  Bruno Haible  <bruno@clisp.org>
3214
3215         posixver: Move AC_LIBOBJ invocations to module description.
3216         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3217         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3218
3219 2011-05-23  Bruno Haible  <bruno@clisp.org>
3220
3221         posixtm: Move AC_LIBOBJ invocations to module description.
3222         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3223         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3224
3225 2011-05-23  Bruno Haible  <bruno@clisp.org>
3226
3227         physmem: Move AC_LIBOBJ invocations to module description.
3228         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3229         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3230
3231 2011-05-23  Bruno Haible  <bruno@clisp.org>
3232
3233         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3234         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3235         invocation.
3236         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3237
3238 2011-05-23  Bruno Haible  <bruno@clisp.org>
3239
3240         mpsort: Move AC_LIBOBJ invocations to module description.
3241         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3242         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3243
3244 2011-05-23  Bruno Haible  <bruno@clisp.org>
3245
3246         modechange: Move AC_LIBOBJ invocations to module description.
3247         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3248         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3249
3250 2011-05-23  Bruno Haible  <bruno@clisp.org>
3251
3252         mkdir-p: Move AC_LIBOBJ invocations to module description.
3253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3254         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3255
3256 2011-05-23  Bruno Haible  <bruno@clisp.org>
3257
3258         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3259         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3260         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3261
3262 2011-05-23  Bruno Haible  <bruno@clisp.org>
3263
3264         mgetgroups: Move AC_LIBOBJ invocations to module description.
3265         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3266         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3267
3268 2011-05-23  Bruno Haible  <bruno@clisp.org>
3269
3270         memxor: Move AC_LIBOBJ invocations to module description.
3271         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3272         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3273
3274 2011-05-23  Bruno Haible  <bruno@clisp.org>
3275
3276         memcoll: Move AC_LIBOBJ invocations to module description.
3277         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3278         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3279
3280 2011-05-23  Bruno Haible  <bruno@clisp.org>
3281
3282         memcasecmp: Move AC_LIBOBJ invocations to module description.
3283         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3284         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3285
3286 2011-05-23  Bruno Haible  <bruno@clisp.org>
3287
3288         crypto/md5: Move AC_LIBOBJ invocations to module description.
3289         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3290         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3291
3292 2011-05-23  Bruno Haible  <bruno@clisp.org>
3293
3294         crypto/md4: Move AC_LIBOBJ invocations to module description.
3295         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3296         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3297
3298 2011-05-23  Bruno Haible  <bruno@clisp.org>
3299
3300         crypto/md2: Move AC_LIBOBJ invocations to module description.
3301         * m4/md2.m4: Remove file.
3302         * modules/crypto/md2 (Files): Remove it.
3303         (configure.ac): Remove gl_MD2 call.
3304         (Makefile.am): Augment lib_SOURCES.
3305
3306 2011-05-23  Bruno Haible  <bruno@clisp.org>
3307
3308         long-options: Move AC_LIBOBJ invocations to module description.
3309         * m4/long-options.m4: Remove file.
3310         * modules/long-options (Files): Remove it.
3311         (configure.ac): Remove gl_LONG_OPTIONS call.
3312         (Makefile.am): Augment lib_SOURCES.
3313
3314 2011-05-23  Bruno Haible  <bruno@clisp.org>
3315
3316         i-ring: Move AC_LIBOBJ invocations to module description.
3317         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3318         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3319
3320 2011-05-23  Bruno Haible  <bruno@clisp.org>
3321
3322         idcache: Move AC_LIBOBJ invocations to module description.
3323         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3324         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3325
3326 2011-05-23  Bruno Haible  <bruno@clisp.org>
3327
3328         human: Move AC_LIBOBJ invocations to module description.
3329         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3330         * modules/human (Makefile.am): Augment lib_SOURCES.
3331
3332 2011-05-23  Bruno Haible  <bruno@clisp.org>
3333
3334         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3335         * m4/hmac-sha1.m4: Remove file.
3336         * modules/crypto/hmac-sha1 (Files): Remove it.
3337         (configure.ac): Remove gl_HMAC_SHA1 call.
3338         (Makefile.am): Augment lib_SOURCES.
3339
3340 2011-05-23  Bruno Haible  <bruno@clisp.org>
3341
3342         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3343         * m4/hmac-md5.m4: Remove file.
3344         * modules/crypto/hmac-md5 (Files): Remove it.
3345         (configure.ac): Remove gl_HMAC_MD5 call.
3346         (Makefile.am): Augment lib_SOURCES.
3347
3348 2011-05-23  Bruno Haible  <bruno@clisp.org>
3349
3350         hash: Move AC_LIBOBJ invocations to module description.
3351         * m4/hash.m4: Remove file.
3352         * modules/hash (Files): Remove it.
3353         (configure.ac): Remove gl_HASH call.
3354         (Makefile.am): Augment lib_SOURCES.
3355
3356 2011-05-23  Bruno Haible  <bruno@clisp.org>
3357
3358         hard-locale: Move AC_LIBOBJ invocations to module description.
3359         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3360         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3361
3362 2011-05-23  Bruno Haible  <bruno@clisp.org>
3363
3364         getugroups: Move AC_LIBOBJ invocations to module description.
3365         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3366         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3367
3368 2011-05-23  Bruno Haible  <bruno@clisp.org>
3369
3370         gettime: Move AC_LIBOBJ invocations to module description.
3371         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3372         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3373
3374 2011-05-23  Bruno Haible  <bruno@clisp.org>
3375
3376         getndelim2: Move AC_LIBOBJ invocations to module description.
3377         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3378         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3379
3380 2011-05-23  Bruno Haible  <bruno@clisp.org>
3381
3382         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3383         * m4/gc-pbkdf2-sha1.m4: Remove file.
3384         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3385         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3386         (Makefile.am): Augment lib_SOURCES.
3387
3388 2011-05-23  Bruno Haible  <bruno@clisp.org>
3389
3390         fts: Move AC_LIBOBJ invocations to module description.
3391         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3392         * modules/fts (configure.ac): ... to here.
3393
3394 2011-05-23  Bruno Haible  <bruno@clisp.org>
3395
3396         file-type: Move AC_LIBOBJ invocations to module description.
3397         * m4/file-type.m4: Remove file.
3398         * modules/file-type (Files): Remove it.
3399         (configure.ac): Remove gl_FILE_TYPE call.
3400         (Makefile.am): Augment lib_SOURCES.
3401
3402 2011-05-23  Bruno Haible  <bruno@clisp.org>
3403
3404         filenamecat*: Respect rules for use of AC_LIBOBJ.
3405         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3406         Remove AC_LIBOBJ invocation.
3407         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3408         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3409
3410 2011-05-23  Bruno Haible  <bruno@clisp.org>
3411
3412         filemode: Move AC_LIBOBJ invocations to module description.
3413         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3414         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3415
3416 2011-05-23  Bruno Haible  <bruno@clisp.org>
3417
3418         openat-safer: Move AC_LIBOBJ invocations to module description.
3419         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3420         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3421
3422 2011-05-23  Bruno Haible  <bruno@clisp.org>
3423
3424         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3425         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3426         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3427
3428 2011-05-23  Bruno Haible  <bruno@clisp.org>
3429
3430         exclude: Move AC_LIBOBJ invocations to module description.
3431         * m4/exclude.m4: Remove file.
3432         * modules/exclude (Files): Remove it.
3433         (configure.ac): Remove gl_EXCLUDE call.
3434         (Makefile.am): Augment lib_SOURCES.
3435
3436 2011-05-23  Bruno Haible  <bruno@clisp.org>
3437
3438         dirname*: Respect rules for use of AC_LIBOBJ.
3439         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3440         invocations.
3441         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3442         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3443
3444 2011-05-23  Bruno Haible  <bruno@clisp.org>
3445
3446         dirent-safer: Move AC_LIBOBJ invocations to module description.
3447         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3448         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3449
3450 2011-05-23  Bruno Haible  <bruno@clisp.org>
3451
3452         crypto/des: Move AC_LIBOBJ invocations to module description.
3453         * m4/des.m4: Remove file.
3454         * modules/crypto/des (Files): Remove it.
3455         (configure.ac): Remove gl_DES call.
3456         (Makefile.am): Augment lib_SOURCES.
3457
3458 2011-05-23  Bruno Haible  <bruno@clisp.org>
3459
3460         cycle-check: Move AC_LIBOBJ invocations to module description.
3461         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3462         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3463
3464 2011-05-23  Bruno Haible  <bruno@clisp.org>
3465
3466         c-strtold: Move AC_LIBOBJ invocations to module description.
3467         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3468         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3469
3470 2011-05-23  Bruno Haible  <bruno@clisp.org>
3471
3472         c-strtod: Move AC_LIBOBJ invocations to module description.
3473         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3474         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3475
3476 2011-05-23  Bruno Haible  <bruno@clisp.org>
3477
3478         crc: Move AC_LIBOBJ invocations to module description.
3479         * m4/crc.m4: Remove file.
3480         * modules/crc (Files): Remove it.
3481         (configure.ac): Remove gl_CRC call.
3482         (Makefile.am): Augment lib_SOURCES.
3483
3484 2011-05-23  Bruno Haible  <bruno@clisp.org>
3485
3486         close-stream: Move AC_LIBOBJ invocations to module description.
3487         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3488         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3489
3490 2011-05-23  Bruno Haible  <bruno@clisp.org>
3491
3492         closeout: Move AC_LIBOBJ invocations to module description.
3493         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3494         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3495
3496 2011-05-23  Bruno Haible  <bruno@clisp.org>
3497
3498         closein: Move AC_LIBOBJ invocations to module description.
3499         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3500         * modules/closein (Makefile.am): Augment lib_SOURCES.
3501
3502 2011-05-23  Bruno Haible  <bruno@clisp.org>
3503
3504         cloexec: Move AC_LIBOBJ invocations to module description.
3505         * m4/cloexec.m4: Remove file.
3506         * modules/cloexec (Files): Remove it.
3507         (configure.ac): Remove gl_CLOEXEC call.
3508         (Makefile.am): Augment lib_SOURCES.
3509
3510 2011-05-23  Bruno Haible  <bruno@clisp.org>
3511
3512         check-version: Move AC_LIBOBJ invocations to module description.
3513         * m4/check-version.m4: Remove file.
3514         * modules/check-version (Files): Remove it.
3515         (configure.ac): Remove gl_CHECK_VERSION call.
3516         (Makefile.am): Augment lib_SOURCES.
3517
3518 2011-05-23  Bruno Haible  <bruno@clisp.org>
3519
3520         chdir-safer: Move AC_LIBOBJ invocations to module description.
3521         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3522         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3523
3524 2011-05-23  Bruno Haible  <bruno@clisp.org>
3525
3526         canonicalize: Move AC_LIBOBJ invocations to module description.
3527         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3528         AC_LIBOBJ invocation.
3529         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3530
3531 2011-05-23  Bruno Haible  <bruno@clisp.org>
3532
3533         canon-host: Move AC_LIBOBJ invocations to module description.
3534         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3535         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3536         instead of gl_CANON_HOST.
3537         (Makefile.am): Augment lib_SOURCES.
3538
3539 2011-05-23  Bruno Haible  <bruno@clisp.org>
3540
3541         backupfile: Move AC_LIBOBJ invocations to module description.
3542         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3543         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3544
3545 2011-05-23  Bruno Haible  <bruno@clisp.org>
3546
3547         argmatch: Move AC_LIBOBJ invocations to module description.
3548         * m4/argmatch.m4: Remove file.
3549         * modules/argmatch (Files): Remove it.
3550         (configure.ac): Remove gl_ARGMATCH call.
3551         (Makefile.am): Augment lib_SOURCES.
3552
3553 2011-05-23  Bruno Haible  <bruno@clisp.org>
3554
3555         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3556         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3557         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3558
3559 2011-05-23  Bruno Haible  <bruno@clisp.org>
3560
3561         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3562         * m4/arcfour.m4: Remove file.
3563         * modules/crypto/arcfour (Files): Remove it.
3564         (configure.ac): Remove gl_ARCFOUR call.
3565         (Makefile.am): Augment lib_SOURCES.
3566
3567 2011-05-22  Bruno Haible  <bruno@clisp.org>
3568
3569         write: Move AC_LIBOBJ invocations to module description.
3570         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3571         * modules/write (configure.ac): ... to here.
3572
3573 2011-05-22  Bruno Haible  <bruno@clisp.org>
3574
3575         wmemset: Move AC_LIBOBJ invocations to module description.
3576         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3577         here...
3578         * modules/wmemset (configure.ac): ... to here.
3579
3580 2011-05-22  Bruno Haible  <bruno@clisp.org>
3581
3582         wmemmove: Move AC_LIBOBJ invocations to module description.
3583         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3584         here...
3585         * modules/wmemmove (configure.ac): ... to here.
3586
3587 2011-05-22  Bruno Haible  <bruno@clisp.org>
3588
3589         wmemcpy: Move AC_LIBOBJ invocations to module description.
3590         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3591         here...
3592         * modules/wmemcpy (configure.ac): ... to here.
3593
3594 2011-05-22  Bruno Haible  <bruno@clisp.org>
3595
3596         wmemcmp: Move AC_LIBOBJ invocations to module description.
3597         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3598         here...
3599         * modules/wmemcmp (configure.ac): ... to here.
3600
3601 2011-05-22  Bruno Haible  <bruno@clisp.org>
3602
3603         wmemchr: Move AC_LIBOBJ invocations to module description.
3604         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3605         here...
3606         * modules/wmemchr (configure.ac): ... to here.
3607
3608 2011-05-22  Bruno Haible  <bruno@clisp.org>
3609
3610         wcswidth: Move AC_LIBOBJ invocations to module description.
3611         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3612         here...
3613         * modules/wcswidth (configure.ac): ... to here.
3614
3615 2011-05-22  Bruno Haible  <bruno@clisp.org>
3616
3617         wcwidth: Respect rules for use of AC_LIBOBJ.
3618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3619         invocation from here...
3620         * modules/wcwidth (configure.ac): ... to here.
3621         (Depends-on): Update conditions.
3622
3623 2011-05-22  Bruno Haible  <bruno@clisp.org>
3624
3625         wctype: Move AC_LIBOBJ invocations to module description.
3626         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3627         invocation from here...
3628         * modules/wctype (configure.ac): ... to here.
3629         (Depends-on): Update conditions.
3630
3631 2011-05-22  Bruno Haible  <bruno@clisp.org>
3632
3633         wctrans: Move AC_LIBOBJ invocations to module description.
3634         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3635         invocation from here...
3636         * modules/wctrans (configure.ac): ... to here.
3637
3638 2011-05-22  Bruno Haible  <bruno@clisp.org>
3639
3640         wctomb: Move AC_LIBOBJ invocations to module description.
3641         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3642         invocations from here...
3643         * modules/wctomb (configure.ac): ... to here.
3644
3645 2011-05-22  Bruno Haible  <bruno@clisp.org>
3646
3647         wctob: Move AC_LIBOBJ invocations to module description.
3648         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3649         gl_PREREQ_WCTOB invocations from here...
3650         * modules/wctob (configure.ac): ... to here.
3651         (Depends-on): Update conditions.
3652
3653 2011-05-22  Bruno Haible  <bruno@clisp.org>
3654
3655         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3656         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3657         here...
3658         * modules/wcsxfrm (configure.ac): ... to here.
3659
3660 2011-05-22  Bruno Haible  <bruno@clisp.org>
3661
3662         wcstok: Move AC_LIBOBJ invocations to module description.
3663         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3664         * modules/wcstok (configure.ac): ... to here.
3665
3666 2011-05-22  Bruno Haible  <bruno@clisp.org>
3667
3668         wcsstr: Move AC_LIBOBJ invocations to module description.
3669         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3670         * modules/wcsstr (configure.ac): ... to here.
3671
3672 2011-05-22  Bruno Haible  <bruno@clisp.org>
3673
3674         wcsspn: Move AC_LIBOBJ invocations to module description.
3675         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3676         * modules/wcsspn (configure.ac): ... to here.
3677
3678 2011-05-22  Bruno Haible  <bruno@clisp.org>
3679
3680         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3681         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3682         gl_PREREQ_WCSRTOMBS invocations from here...
3683         * modules/wcsrtombs (configure.ac): ... to here.
3684
3685 2011-05-22  Bruno Haible  <bruno@clisp.org>
3686
3687         wcsrchr: Move AC_LIBOBJ invocations to module description.
3688         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3689         here...
3690         * modules/wcsrchr (configure.ac): ... to here.
3691
3692 2011-05-22  Bruno Haible  <bruno@clisp.org>
3693
3694         wcspbrk: Move AC_LIBOBJ invocations to module description.
3695         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3696         here...
3697         * modules/wcspbrk (configure.ac): ... to here.
3698
3699 2011-05-22  Bruno Haible  <bruno@clisp.org>
3700
3701         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3702         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3703         gl_PREREQ_WCSNRTOMBS invocations from here...
3704         * modules/wcsnrtombs (configure.ac): ... to here.
3705
3706 2011-05-22  Bruno Haible  <bruno@clisp.org>
3707
3708         wcsnlen: Move AC_LIBOBJ invocations to module description.
3709         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3710         here...
3711         * modules/wcsnlen (configure.ac): ... to here.
3712
3713 2011-05-22  Bruno Haible  <bruno@clisp.org>
3714
3715         wcsncpy: Move AC_LIBOBJ invocations to module description.
3716         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3717         here...
3718         * modules/wcsncpy (configure.ac): ... to here.
3719
3720 2011-05-22  Bruno Haible  <bruno@clisp.org>
3721
3722         wcsncmp: Move AC_LIBOBJ invocations to module description.
3723         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3724         here...
3725         * modules/wcsncmp (configure.ac): ... to here.
3726
3727 2011-05-22  Bruno Haible  <bruno@clisp.org>
3728
3729         wcsncat: Move AC_LIBOBJ invocations to module description.
3730         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3731         here...
3732         * modules/wcsncat (configure.ac): ... to here.
3733
3734 2011-05-22  Bruno Haible  <bruno@clisp.org>
3735
3736         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3737         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3738         from here...
3739         * modules/wcsncasecmp (configure.ac): ... to here.
3740
3741 2011-05-22  Bruno Haible  <bruno@clisp.org>
3742
3743         wcslen: Move AC_LIBOBJ invocations to module description.
3744         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3745         * modules/wcslen (configure.ac): ... to here.
3746
3747 2011-05-22  Bruno Haible  <bruno@clisp.org>
3748
3749         wcsdup: Move AC_LIBOBJ invocations to module description.
3750         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3751         * modules/wcsdup (configure.ac): ... to here.
3752
3753 2011-05-22  Bruno Haible  <bruno@clisp.org>
3754
3755         wcscspn: Move AC_LIBOBJ invocations to module description.
3756         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3757         here...
3758         * modules/wcscspn (configure.ac): ... to here.
3759
3760 2011-05-22  Bruno Haible  <bruno@clisp.org>
3761
3762         wcscpy: Move AC_LIBOBJ invocations to module description.
3763         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3764         * modules/wcscpy (configure.ac): ... to here.
3765
3766 2011-05-22  Bruno Haible  <bruno@clisp.org>
3767
3768         wcscoll: Move AC_LIBOBJ invocations to module description.
3769         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3770         here...
3771         * modules/wcscoll (configure.ac): ... to here.
3772
3773 2011-05-22  Bruno Haible  <bruno@clisp.org>
3774
3775         wcscmp: Move AC_LIBOBJ invocations to module description.
3776         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3777         * modules/wcscmp (configure.ac): ... to here.
3778
3779 2011-05-22  Bruno Haible  <bruno@clisp.org>
3780
3781         wcschr: Move AC_LIBOBJ invocations to module description.
3782         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3783         * modules/wcschr (configure.ac): ... to here.
3784
3785 2011-05-22  Bruno Haible  <bruno@clisp.org>
3786
3787         wcscat: Move AC_LIBOBJ invocations to module description.
3788         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3789         * modules/wcscat (configure.ac): ... to here.
3790
3791 2011-05-22  Bruno Haible  <bruno@clisp.org>
3792
3793         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3794         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3795         here...
3796         * modules/wcscasecmp (configure.ac): ... to here.
3797
3798 2011-05-22  Bruno Haible  <bruno@clisp.org>
3799
3800         wcrtomb: Move AC_LIBOBJ invocations to module description.
3801         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3802         invocations from here...
3803         * modules/wcrtomb (configure.ac): ... to here.
3804
3805 2011-05-22  Bruno Haible  <bruno@clisp.org>
3806
3807         wcpncpy: Move AC_LIBOBJ invocations to module description.
3808         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3809         here...
3810         * modules/wcpncpy (configure.ac): ... to here.
3811
3812 2011-05-22  Bruno Haible  <bruno@clisp.org>
3813
3814         wcpcpy: Move AC_LIBOBJ invocations to module description.
3815         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3816         * modules/wcpcpy (configure.ac): ... to here.
3817
3818 2011-05-22  Bruno Haible  <bruno@clisp.org>
3819
3820         waitpid: Move AC_LIBOBJ invocations to module description.
3821         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3822         invocation from here...
3823         * modules/waitpid (configure.ac): ... to here.
3824
3825 2011-05-22  Bruno Haible  <bruno@clisp.org>
3826
3827         utimensat: Move AC_LIBOBJ invocations to module description.
3828         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3829         here...
3830         * modules/utimensat (configure.ac): ... to here.
3831
3832 2011-05-22  Bruno Haible  <bruno@clisp.org>
3833
3834         usleep: Move AC_LIBOBJ invocations to module description.
3835         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3836         here...
3837         * modules/usleep (configure.ac): ... to here.
3838
3839 2011-05-22  Bruno Haible  <bruno@clisp.org>
3840
3841         unlockpt: Move AC_LIBOBJ invocations to module description.
3842         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3843         gl_PREREQ_UNLOCKPT invocations from here...
3844         * modules/unlockpt (configure.ac): ... to here.
3845
3846 2011-05-22  Bruno Haible  <bruno@clisp.org>
3847
3848         unlink: Respect rules for use of AC_LIBOBJ.
3849         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3850         * modules/unlink (configure.ac): ... to here.
3851
3852 2011-05-22  Bruno Haible  <bruno@clisp.org>
3853
3854         uname: Move AC_LIBOBJ invocations to module description.
3855         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3856         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3857         here...
3858         * modules/uname (configure.ac): ... to here.
3859
3860 2011-05-22  Bruno Haible  <bruno@clisp.org>
3861
3862         ttyname_r: Move AC_LIBOBJ invocations to module description.
3863         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3864         gl_PREREQ_TTYNAME_R invocations from here...
3865         * modules/ttyname_r (configure.ac): ... to here.
3866
3867 2011-05-22  Bruno Haible  <bruno@clisp.org>
3868
3869         tsearch: Move AC_LIBOBJ invocations to module description.
3870         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3871         invocations from here...
3872         * modules/tsearch (configure.ac): ... to here.
3873
3874 2011-05-22  Bruno Haible  <bruno@clisp.org>
3875
3876         towctrans: Move AC_LIBOBJ invocations to module description.
3877         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3878         AC_LIBOBJ invocation from here...
3879         * modules/towctrans (configure.ac): ... to here.
3880
3881 2011-05-22  Bruno Haible  <bruno@clisp.org>
3882
3883         tmpfile: Move AC_LIBOBJ invocations to module description.
3884         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3885         invocations from here...
3886         * modules/tmpfile (configure.ac): ... to here.
3887
3888 2011-05-22  Bruno Haible  <bruno@clisp.org>
3889
3890         times: Move AC_LIBOBJ invocations to module description.
3891         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3892         * modules/times (configure.ac): ... to here.
3893
3894 2011-05-22  Bruno Haible  <bruno@clisp.org>
3895
3896         time_r: Move AC_LIBOBJ invocations to module description.
3897         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3898         invocations from here...
3899         * modules/time_r (configure.ac): ... to here.
3900
3901 2011-05-22  Bruno Haible  <bruno@clisp.org>
3902
3903         timegm: Move AC_LIBOBJ invocations to module description.
3904         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3905         invocations from here...
3906         * modules/timegm (configure.ac): ... to here.
3907
3908 2011-05-22  Bruno Haible  <bruno@clisp.org>
3909
3910         tcgetsid: Move AC_LIBOBJ invocations to module description.
3911         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3912         and gl_PREREQ_TCGETSID invocations from here...
3913         * modules/tcgetsid (configure.ac): ... to here.
3914         (Depends-on): Update conditions.
3915
3916 2011-05-22  Bruno Haible  <bruno@clisp.org>
3917
3918         symlinkat: Move AC_LIBOBJ invocations to module description.
3919         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3920         here...
3921         * modules/symlinkat (configure.ac): ... to here.
3922
3923 2011-05-22  Bruno Haible  <bruno@clisp.org>
3924
3925         symlink: Move AC_LIBOBJ invocations to module description.
3926         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3927         here...
3928         * modules/symlink (configure.ac): ... to here.
3929
3930 2011-05-22  Bruno Haible  <bruno@clisp.org>
3931
3932         strverscmp: Move AC_LIBOBJ invocations to module description.
3933         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3934         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3935         from here...
3936         * modules/strverscmp (configure.ac): ... to here.
3937
3938 2011-05-22  Bruno Haible  <bruno@clisp.org>
3939
3940         strtok_r: Move AC_LIBOBJ invocations to module description.
3941         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3942         and gl_PREREQ_STRTOK_R invocations from here...
3943         * modules/strtok_r (configure.ac): ... to here.
3944         (Depends-on): Update conditions.
3945
3946 2011-05-22  Bruno Haible  <bruno@clisp.org>
3947
3948         strtoumax: Move AC_LIBOBJ invocations to module description.
3949         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3950         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3951         from here...
3952         * modules/strtoumax (configure.ac): ... to here.
3953
3954 2011-05-22  Bruno Haible  <bruno@clisp.org>
3955
3956         strtoimax: Move AC_LIBOBJ invocations to module description.
3957         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3958         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3959         from here...
3960         * modules/strtoimax (configure.ac): ... to here.
3961
3962 2011-05-22  Bruno Haible  <bruno@clisp.org>
3963
3964         strtoull: Move AC_LIBOBJ invocations to module description.
3965         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3967         from here...
3968         * modules/strtoull (configure.ac): ... to here.
3969
3970 2011-05-22  Bruno Haible  <bruno@clisp.org>
3971
3972         strtoll: Move AC_LIBOBJ invocations to module description.
3973         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3975         here...
3976         * modules/strtoll (configure.ac): ... to here.
3977
3978 2011-05-22  Bruno Haible  <bruno@clisp.org>
3979
3980         strtoul: Move AC_LIBOBJ invocations to module description.
3981         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3982         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3983         * modules/strtoul (configure.ac): ... to here.
3984
3985 2011-05-22  Bruno Haible  <bruno@clisp.org>
3986
3987         strtol: Move AC_LIBOBJ invocations to module description.
3988         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3989         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3990         * modules/strtol (configure.ac): ... to here.
3991
3992 2011-05-22  Bruno Haible  <bruno@clisp.org>
3993
3994         strtod: Move AC_LIBOBJ invocations to module description.
3995         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3996         invocations from here...
3997         * modules/strtod (configure.ac): ... to here.
3998
3999 2011-05-22  Bruno Haible  <bruno@clisp.org>
4000
4001         strstr*: Move AC_LIBOBJ invocations to module description.
4002         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4003         invocations from here...
4004         * modules/strstr-simple (configure.ac): ... to here.
4005         * modules/strstr (configure.ac): ... and here.
4006
4007 2011-05-22  Bruno Haible  <bruno@clisp.org>
4008
4009         strsignal: Move AC_LIBOBJ invocations to module description.
4010         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4011         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4012         * modules/strsignal (configure.ac): ... to here.
4013         (Depends-on): Update conditions.
4014
4015 2011-05-22  Bruno Haible  <bruno@clisp.org>
4016
4017         strsep: Move AC_LIBOBJ invocations to module description.
4018         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4019         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4020         here...
4021         * modules/strsep (configure.ac): ... to here.
4022
4023 2011-05-22  Bruno Haible  <bruno@clisp.org>
4024
4025         strptime: Move AC_LIBOBJ invocations to module description.
4026         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4027         gl_PREREQ_STRPTIME invocations from here...
4028         * modules/strptime (configure.ac): ... to here.
4029
4030 2011-05-22  Bruno Haible  <bruno@clisp.org>
4031
4032         strpbrk: Move AC_LIBOBJ invocations to module description.
4033         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4034         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4035         here...
4036         * modules/strpbrk (configure.ac): ... to here.
4037
4038 2011-05-22  Bruno Haible  <bruno@clisp.org>
4039
4040         strnlen: Move AC_LIBOBJ invocations to module description.
4041         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4042         invocations from here...
4043         * modules/strnlen (configure.ac): ... to here.
4044
4045 2011-05-22  Bruno Haible  <bruno@clisp.org>
4046
4047         strndup: Move AC_LIBOBJ invocations to module description.
4048         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4049         invocations from here...
4050         * modules/strndup (configure.ac): ... to here.
4051         (Depends-on): Update conditions.
4052
4053 2011-05-22  Bruno Haible  <bruno@clisp.org>
4054
4055         strncat: Move AC_LIBOBJ invocations to module description.
4056         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4057         invocations from here...
4058         * modules/strncat (configure.ac): ... to here.
4059
4060 2011-05-22  Bruno Haible  <bruno@clisp.org>
4061
4062         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4063         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4064         invocations from here...
4065         * modules/strdup (configure.ac): ... to here.
4066         * modules/strdup-posix (configure.ac): ... and here.
4067
4068 2011-05-22  Bruno Haible  <bruno@clisp.org>
4069
4070         strcspn: Move AC_LIBOBJ invocations to module description.
4071         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4072         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4073         here...
4074         * modules/strcspn (configure.ac): ... to here.
4075
4076 2011-05-22  Bruno Haible  <bruno@clisp.org>
4077
4078         strchrnul: Move AC_LIBOBJ invocations to module description.
4079         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4080         gl_PREREQ_STRCHRNUL invocations from here...
4081         * modules/strchrnul (configure.ac): ... to here.
4082
4083 2011-05-22  Bruno Haible  <bruno@clisp.org>
4084
4085         strcasestr*: Move AC_LIBOBJ invocations to module description.
4086         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4087         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4088         * modules/strcasestr-simple (configure.ac): ... to here.
4089         * modules/strcasestr (configure.ac): ... and here.
4090
4091 2011-05-22  Bruno Haible  <bruno@clisp.org>
4092
4093         strcase: Move AC_LIBOBJ invocations to module description.
4094         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4095         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4096         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4097         gl_PREREQ_STRNCASECMP invocations from here...
4098         * modules/strcase (configure.ac): ... to here.
4099
4100 2011-05-22  Bruno Haible  <bruno@clisp.org>
4101
4102         stpncpy: Move AC_LIBOBJ invocations to module description.
4103         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4104         here...
4105         * modules/stpncpy (configure.ac): ... to here.
4106
4107 2011-05-22  Bruno Haible  <bruno@clisp.org>
4108
4109         stpcpy: Move AC_LIBOBJ invocations to module description.
4110         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4112         here...
4113         * modules/stpcpy (configure.ac): ... to here.
4114
4115 2011-05-21  Bruno Haible  <bruno@clisp.org>
4116
4117         stat: Move AC_LIBOBJ invocations to module description.
4118         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4119         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4120         here...
4121         * modules/stat (configure.ac): ... to here.
4122
4123 2011-05-21  Bruno Haible  <bruno@clisp.org>
4124
4125         sleep: Move AC_LIBOBJ invocations to module description.
4126         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4127         * modules/sleep (configure.ac): ... to here.
4128
4129 2011-05-21  Bruno Haible  <bruno@clisp.org>
4130
4131         signbit: Move AC_LIBOBJ invocations to module description.
4132         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4133         * modules/signbit (configure.ac): ... to here.
4134
4135 2011-05-21  Bruno Haible  <bruno@clisp.org>
4136
4137         sigprocmask: Move AC_LIBOBJ invocations to module description.
4138         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4139         gl_PREREQ_SIGPROMASK invocations from here...
4140         * modules/sigprocmask (configure.ac): ... to here.
4141
4142 2011-05-21  Bruno Haible  <bruno@clisp.org>
4143
4144         sigaction: Move AC_LIBOBJ invocations to module description.
4145         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4146         gl_PREREQ_SIGACTION invocations from here...
4147         * modules/sigaction (configure.ac): ... to here.
4148
4149 2011-05-21  Bruno Haible  <bruno@clisp.org>
4150
4151         sig2str: Move AC_LIBOBJ invocations to module description.
4152         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4153         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4154         here...
4155         * modules/sig2str (configure.ac): ... to here.
4156
4157 2011-05-21  Bruno Haible  <bruno@clisp.org>
4158
4159         setlocale: Move AC_LIBOBJ invocations to module description.
4160         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4161         gl_PREREQ_SETLOCALE invocations from here...
4162         * modules/setlocale (configure.ac): ... to here.
4163
4164 2011-05-21  Bruno Haible  <bruno@clisp.org>
4165
4166         unsetenv: Move AC_LIBOBJ invocations to module description.
4167         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4168         and gl_PREREQ_UNSETENV invocations from here...
4169         * modules/unsetenv (configure.ac): ... to here.
4170         (Depends-on): Update.
4171
4172 2011-05-21  Bruno Haible  <bruno@clisp.org>
4173
4174         setenv: Move AC_LIBOBJ invocations to module description.
4175         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4176         here...
4177         * modules/setenv (configure.ac): ... to here.
4178
4179 2011-05-21  Bruno Haible  <bruno@clisp.org>
4180
4181         selinux-h: Move AC_LIBOBJ invocations to module description.
4182         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4183         AC_LIBOBJ invocation from here...
4184         * modules/selinux-h (configure.ac): ... to here.
4185
4186 2011-05-21  Bruno Haible  <bruno@clisp.org>
4187
4188         select: Respect rules for use of AC_LIBOBJ.
4189         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4190         here...
4191         * modules/select (configure.ac): ... to here.
4192
4193 2011-05-21  Bruno Haible  <bruno@clisp.org>
4194
4195         scandir: Move AC_LIBOBJ invocations to module description.
4196         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4197         invocations from here...
4198         * modules/scandir (configure.ac): ... to here.
4199
4200 2011-05-21  Bruno Haible  <bruno@clisp.org>
4201
4202         rpmatch: Move AC_LIBOBJ invocations to module description.
4203         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4205         here...
4206         * modules/rpmatch (configure.ac): ... to here.
4207
4208 2011-05-21  Bruno Haible  <bruno@clisp.org>
4209
4210         rmdir: Respect rules for use of AC_LIBOBJ.
4211         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4212         * modules/rmdir (configure.ac): ... to here.
4213
4214 2011-05-21  Bruno Haible  <bruno@clisp.org>
4215
4216         renameat: Move AC_LIBOBJ invocations to module description.
4217         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4218         here...
4219         * modules/renameat (configure.ac): ... to here.
4220
4221 2011-05-21  Bruno Haible  <bruno@clisp.org>
4222
4223         rename: Respect rules for use of AC_LIBOBJ.
4224         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4225         here...
4226         * modules/rename (configure.ac): ... to here.
4227
4228 2011-05-21  Bruno Haible  <bruno@clisp.org>
4229
4230         remove: Move AC_LIBOBJ invocations to module description.
4231         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4232         here...
4233         * modules/remove (configure.ac): ... to here.
4234
4235 2011-05-21  Bruno Haible  <bruno@clisp.org>
4236
4237         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4238         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4239         macro.
4240         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4241         * modules/relocatable-lib (configure.ac): ... to here.
4242         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4243         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4244
4245 2011-05-21  Bruno Haible  <bruno@clisp.org>
4246
4247         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4248         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4249         here...
4250         * modules/relocatable-prog (configure.ac): ... to here.
4251
4252 2011-05-21  Bruno Haible  <bruno@clisp.org>
4253
4254         regex: Move AC_LIBOBJ invocations to module description.
4255         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4256         invocations from here...
4257         * modules/regex (configure.ac): ... to here.
4258
4259 2011-05-21  Bruno Haible  <bruno@clisp.org>
4260
4261         realloc-*: Move AC_LIBOBJ invocations to module description.
4262         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4263         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4264         AC_LIBOBJ invocations from here...
4265         * modules/realloc-gnu (configure.ac): ... to here.
4266         * modules/realloc-posix (configure.ac): ... and here.
4267
4268 2011-05-21  Bruno Haible  <bruno@clisp.org>
4269
4270         readutmp: Move AC_LIBOBJ invocations to module description.
4271         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4272         * modules/readutmp (configure.ac): ... to here.
4273
4274 2011-05-21  Bruno Haible  <bruno@clisp.org>
4275
4276         readlinkat: Move AC_LIBOBJ invocations to module description.
4277         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4278         here...
4279         * modules/readlinkat (configure.ac): ... to here.
4280
4281 2011-05-21  Bruno Haible  <bruno@clisp.org>
4282
4283         readlink: Move AC_LIBOBJ invocations to module description.
4284         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4285         gl_PREREQ_READLINK invocations from here...
4286         * modules/readlink (configure.ac): ... to here.
4287
4288 2011-05-21  Bruno Haible  <bruno@clisp.org>
4289
4290         readline: Move AC_LIBOBJ invocations to module description.
4291         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4292         gl_PREREQ_READLINE invocations from here...
4293         * modules/readline (configure.ac): ... to here.
4294
4295 2011-05-21  Bruno Haible  <bruno@clisp.org>
4296
4297         read: Move AC_LIBOBJ invocations to module description.
4298         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4299         * modules/read (configure.ac): ... to here.
4300
4301 2011-05-21  Bruno Haible  <bruno@clisp.org>
4302
4303         rawmemchr: Move AC_LIBOBJ invocations to module description.
4304         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4305         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4306         from here...
4307         * modules/rawmemchr (configure.ac): ... to here.
4308
4309 2011-05-21  Bruno Haible  <bruno@clisp.org>
4310
4311         random_r: Move AC_LIBOBJ invocations to module description.
4312         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4313         gl_PREREQ_RANDOM_R invocations from here...
4314         * modules/random_r (configure.ac): ... to here.
4315
4316 2011-05-21  Bruno Haible  <bruno@clisp.org>
4317
4318         pwrite: Move AC_LIBOBJ invocations to module description.
4319         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4320         * modules/pwrite (configure.ac): ... to here.
4321
4322 2011-05-21  Bruno Haible  <bruno@clisp.org>
4323
4324         putenv: Move AC_LIBOBJ invocations to module description.
4325         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4326         * modules/putenv (configure.ac): ... to here.
4327
4328 2011-05-21  Bruno Haible  <bruno@clisp.org>
4329
4330         login_tty: Move AC_LIBOBJ invocations to module description.
4331         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4332         * modules/login_tty (configure.ac): ... to here.
4333
4334 2011-05-21  Bruno Haible  <bruno@clisp.org>
4335
4336         openpty: Move AC_LIBOBJ invocations to module description.
4337         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4338         * modules/openpty (configure.ac): ... to here.
4339
4340 2011-05-21  Bruno Haible  <bruno@clisp.org>
4341
4342         forkpty: Move AC_LIBOBJ invocations to module description.
4343         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4344         * modules/forkpty (configure.ac): ... to here.
4345
4346 2011-05-21  Bruno Haible  <bruno@clisp.org>
4347
4348         ptsname: Move AC_LIBOBJ invocations to module description.
4349         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4350         invocations from here...
4351         * modules/ptsname (configure.ac): ... to here.
4352
4353 2011-05-21  Bruno Haible  <bruno@clisp.org>
4354
4355         pread: Move AC_LIBOBJ invocations to module description.
4356         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4357         * modules/pread (configure.ac): ... to here.
4358
4359 2011-05-21  Bruno Haible  <bruno@clisp.org>
4360
4361         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4362         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4363         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4364         * modules/posix_spawn (configure.ac): ... to here.
4365         * modules/posix_spawnp (configure.ac): ... and here.
4366
4367 2011-05-21  Bruno Haible  <bruno@clisp.org>
4368
4369         popen: Move AC_LIBOBJ invocations to module description.
4370         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4371         invocations from here...
4372         * modules/popen (configure.ac): ... to here.
4373
4374 2011-05-21  Bruno Haible  <bruno@clisp.org>
4375
4376         poll: Move AC_LIBOBJ invocations to module description.
4377         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4378         invocations from here...
4379         * modules/poll (configure.ac): ... to here.
4380
4381 2011-05-21  Bruno Haible  <bruno@clisp.org>
4382
4383         pipe-posix: Move AC_LIBOBJ invocations to module description.
4384         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4385         * modules/pipe-posix (configure.ac): ... to here.
4386
4387 2011-05-21  Bruno Haible  <bruno@clisp.org>
4388
4389         openat: Respect rules for use of AC_LIBOBJ.
4390         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4391         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4392         * modules/openat (configure.ac): ... to here.
4393
4394 2011-05-21  Bruno Haible  <bruno@clisp.org>
4395
4396         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4397         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4398         invocation from here...
4399         * modules/obstack-printf (configure.ac): ... to here.
4400         * modules/obstack-printf-posix (configure.ac): ... and here.
4401
4402 2011-05-21  Bruno Haible  <bruno@clisp.org>
4403
4404         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4405         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4406         from here...
4407         * modules/nl_langinfo (configure.ac): ... to here.
4408
4409 2011-05-21  Bruno Haible  <bruno@clisp.org>
4410
4411         nanosleep: Move AC_LIBOBJ invocations to module description.
4412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4413         gl_PREREQ_NANOSLEEP invocations from here...
4414         * modules/nanosleep (configure.ac): ... to here.
4415
4416 2011-05-21  Bruno Haible  <bruno@clisp.org>
4417
4418         mountlist: Move AC_LIBOBJ invocations to module description.
4419         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4420         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4421         * modules/mountlist (configure.ac): ... to here.
4422
4423 2011-05-21  Bruno Haible  <bruno@clisp.org>
4424
4425         mktime: Respect rules for use of AC_LIBOBJ.
4426         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4427         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4428         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4429         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4430         * modules/mktime (configure.ac): ... to here.
4431         * modules/mktime-internal (configure.ac): ... and here.
4432         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4433
4434 2011-05-21  Bruno Haible  <bruno@clisp.org>
4435
4436         mkstemps: Move AC_LIBOBJ invocations to module description.
4437         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4438         here...
4439         * modules/mkstemps (configure.ac): ... to here.
4440
4441 2011-05-21  Bruno Haible  <bruno@clisp.org>
4442
4443         mkstemp: Move AC_LIBOBJ invocations to module description.
4444         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4445         gl_PREREQ_MKSTEMP invocations from here...
4446         * modules/mkstemp (configure.ac): ... to here.
4447
4448 2011-05-21  Bruno Haible  <bruno@clisp.org>
4449
4450         mkostemps: Move AC_LIBOBJ invocations to module description.
4451         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4452         here...
4453         * modules/mkostemps (configure.ac): ... to here.
4454
4455 2011-05-21  Bruno Haible  <bruno@clisp.org>
4456
4457         mkostemp: Move AC_LIBOBJ invocations to module description.
4458         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4459         gl_PREREQ_MKOSTEMP invocations from here...
4460         * modules/mkostemp (configure.ac): ... to here.
4461
4462 2011-05-21  Bruno Haible  <bruno@clisp.org>
4463
4464         mknod: Move AC_LIBOBJ invocations to module description.
4465         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4466         * modules/mknod (configure.ac): ... to here.
4467
4468 2011-05-21  Bruno Haible  <bruno@clisp.org>
4469
4470         mkfifoat: Move AC_LIBOBJ invocations to module description.
4471         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4472         here...
4473         * modules/mkfifoat (configure.ac): ... to here.
4474
4475 2011-05-21  Bruno Haible  <bruno@clisp.org>
4476
4477         mkfifo: Respect rules for use of AC_LIBOBJ.
4478         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4479         here...
4480         * modules/mkfifo (configure.ac): ... to here.
4481
4482 2011-05-21  Bruno Haible  <bruno@clisp.org>
4483
4484         mkdtemp: Move AC_LIBOBJ invocations to module description.
4485         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4486         invocations from here...
4487         * modules/mkdtemp (configure.ac): ... to here.
4488
4489 2011-05-21  Bruno Haible  <bruno@clisp.org>
4490
4491         mkdir: Move AC_LIBOBJ invocations to module description.
4492         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4493         * modules/mkdir (configure.ac): ... to here.
4494
4495 2011-05-21  Bruno Haible  <bruno@clisp.org>
4496
4497         memset: Move AC_LIBOBJ invocations to module description.
4498         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4499         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4500         here...
4501         * modules/memset (configure.ac): ... to here.
4502
4503 2011-05-21  Bruno Haible  <bruno@clisp.org>
4504
4505         memrchr: Move AC_LIBOBJ invocations to module description.
4506         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4507         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4508         here...
4509         * modules/memrchr (configure.ac): ... to here.
4510
4511 2011-05-21  Bruno Haible  <bruno@clisp.org>
4512
4513         mempcpy: Move AC_LIBOBJ invocations to module description.
4514         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4515         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4516         here...
4517         * modules/mempcpy (configure.ac): ... to here.
4518
4519 2011-05-21  Bruno Haible  <bruno@clisp.org>
4520
4521         memmove: Move AC_LIBOBJ invocations to module description.
4522         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4524         here...
4525         * modules/memmove (configure.ac): ... to here.
4526
4527 2011-05-21  Bruno Haible  <bruno@clisp.org>
4528
4529         memmem*: Move AC_LIBOBJ invocations to module description.
4530         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4531         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4532         here...
4533         (gl_FUNC_MEMMEM): ... and here...
4534         * modules/memmem-simple (configure.ac): ... to here.
4535         * modules/memmem (configure.ac): ... and here.
4536
4537 2011-05-21  Bruno Haible  <bruno@clisp.org>
4538
4539         memcpy: Move AC_LIBOBJ invocations to module description.
4540         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4541         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4542         here...
4543         * modules/memcpy (configure.ac): ... to here.
4544
4545 2011-05-21  Bruno Haible  <bruno@clisp.org>
4546
4547         memcmp: Simplify autoconf macro.
4548         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4549         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4550         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4551
4552 2011-05-21  Bruno Haible  <bruno@clisp.org>
4553
4554         memcmp: Move AC_LIBOBJ invocations to module description.
4555         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4556         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4557         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4558         * modules/memcmp (configure.ac): ... to here.
4559         (Depends-on): Update conditions.
4560
4561 2011-05-21  Bruno Haible  <bruno@clisp.org>
4562
4563         memchr: Respect rules for use of AC_LIBOBJ.
4564         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4565         invocations from here...
4566         * modules/memchr (configure.ac): ... to here.
4567
4568 2011-05-21  Bruno Haible  <bruno@clisp.org>
4569
4570         mbtowc: Move AC_LIBOBJ invocations to module description.
4571         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4572         invocations from here...
4573         * modules/mbtowc (configure.ac): ... to here.
4574
4575 2011-05-21  Bruno Haible  <bruno@clisp.org>
4576
4577         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4578         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4579         gl_PREREQ_MBSRTOWCS invocations from here...
4580         * modules/mbsrtowcs (configure.ac): ... to here.
4581
4582 2011-05-21  Bruno Haible  <bruno@clisp.org>
4583
4584         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4585         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4586         gl_PREREQ_MBSNRTOWCS invocations from here...
4587         * modules/mbsnrtowcs (configure.ac): ... to here.
4588
4589 2011-05-21  Bruno Haible  <bruno@clisp.org>
4590
4591         mbsinit: Move AC_LIBOBJ invocations to module description.
4592         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4593         invocations from here...
4594         * modules/mbsinit (configure.ac): ... to here.
4595
4596 2011-05-21  Bruno Haible  <bruno@clisp.org>
4597
4598         mbrlen: Move AC_LIBOBJ invocations to module description.
4599         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4600         invocations from here...
4601         * modules/mbrlen (configure.ac): ... to here.
4602
4603 2011-05-21  Bruno Haible  <bruno@clisp.org>
4604
4605         mbrtowc: Respect rules for use of AC_LIBOBJ.
4606         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4607         invocations from here...
4608         * modules/mbrtowc (configure.ac): ... to here.
4609
4610 2011-05-21  Bruno Haible  <bruno@clisp.org>
4611
4612         malloc-*: Move AC_LIBOBJ invocations to module description.
4613         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4614         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4615         AC_LIBOBJ invocations from here...
4616         * modules/malloc-gnu (configure.ac): ... to here.
4617         * modules/malloc-posix (configure.ac): ... and here.
4618
4619 2011-05-21  Bruno Haible  <bruno@clisp.org>
4620
4621         lstat, openat: Respect rules for use of AC_LIBOBJ.
4622         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4623         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4624         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4625         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4626         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4627         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4628         here.
4629         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4630
4631 2011-05-21  Bruno Haible  <bruno@clisp.org>
4632
4633         lseek: Move AC_LIBOBJ invocations to module description.
4634         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4635         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4636         * modules/lseek (configure.ac): ... to here.
4637
4638 2011-05-21  Bruno Haible  <bruno@clisp.org>
4639
4640         linkat: Move AC_LIBOBJ invocations to module description.
4641         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4642         here...
4643         * modules/linkat (configure.ac): ... to here.
4644
4645 2011-05-21  Bruno Haible  <bruno@clisp.org>
4646
4647         link: Respect rules for use of AC_LIBOBJ.
4648         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4649         * modules/link (configure.ac): ... to here.
4650
4651 2011-05-21  Bruno Haible  <bruno@clisp.org>
4652
4653         lchown: Move AC_LIBOBJ invocations to module description.
4654         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4655         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4656         * modules/lchown (configure.ac): ... to here.
4657
4658 2011-05-21  Bruno Haible  <bruno@clisp.org>
4659
4660         iswctype: Move AC_LIBOBJ invocations to module description.
4661         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4662         here...
4663         * modules/iswctype (configure.ac): ... to here.
4664
4665 2011-05-21  Bruno Haible  <bruno@clisp.org>
4666
4667         iswblank: Move AC_LIBOBJ invocations to module description.
4668         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4669         here...
4670         * modules/iswblank (configure.ac): ... to here.
4671
4672 2011-05-21  Bruno Haible  <bruno@clisp.org>
4673
4674         atanl: Move AC_LIBOBJ invocations to module description.
4675         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4676         * modules/atanl (configure.ac): ... to here.
4677
4678 2011-05-21  Bruno Haible  <bruno@clisp.org>
4679
4680         acosl: Move AC_LIBOBJ invocations to module description.
4681         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4682         * modules/acosl (configure.ac): ... to here.
4683
4684 2011-05-21  Bruno Haible  <bruno@clisp.org>
4685
4686         asinl: Respect rules for use of AC_LIBOBJ.
4687         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4688         * modules/asinl (configure.ac): ... to here.
4689
4690 2011-05-21  Bruno Haible  <bruno@clisp.org>
4691
4692         tanl: Move AC_LIBOBJ invocations to module description.
4693         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4694         * modules/tanl (configure.ac): ... to here.
4695
4696 2011-05-21  Bruno Haible  <bruno@clisp.org>
4697
4698         cosl: Move AC_LIBOBJ invocations to module description.
4699         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4700         * modules/cosl (configure.ac): ... to here.
4701
4702 2011-05-21  Bruno Haible  <bruno@clisp.org>
4703
4704         sinl: Move AC_LIBOBJ invocations to module description.
4705         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4706         * modules/sinl (configure.ac): ... to here.
4707
4708 2011-05-21  Bruno Haible  <bruno@clisp.org>
4709
4710         logl: Move AC_LIBOBJ invocations to module description.
4711         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4712         * modules/logl (configure.ac): ... to here.
4713
4714 2011-05-21  Bruno Haible  <bruno@clisp.org>
4715
4716         expl: Move AC_LIBOBJ invocations to module description.
4717         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4718         * modules/expl (configure.ac): ... to here.
4719
4720 2011-05-21  Bruno Haible  <bruno@clisp.org>
4721
4722         roundl: Move AC_LIBOBJ invocations to module description.
4723         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4724         * modules/roundl (configure.ac): ... to here.
4725
4726 2011-05-21  Bruno Haible  <bruno@clisp.org>
4727
4728         round: Move AC_LIBOBJ invocations to module description.
4729         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4730         * modules/round (configure.ac): ... to here.
4731
4732 2011-05-21  Bruno Haible  <bruno@clisp.org>
4733
4734         roundf: Move AC_LIBOBJ invocations to module description.
4735         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4736         * modules/roundf (configure.ac): ... to here.
4737
4738 2011-05-21  Bruno Haible  <bruno@clisp.org>
4739
4740         truncl: Move AC_LIBOBJ invocations to module description.
4741         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4742         * modules/truncl (configure.ac): ... to here.
4743
4744 2011-05-21  Bruno Haible  <bruno@clisp.org>
4745
4746         trunc: Move AC_LIBOBJ invocations to module description.
4747         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4748         * modules/trunc (configure.ac): ... to here.
4749
4750 2011-05-21  Bruno Haible  <bruno@clisp.org>
4751
4752         truncf: Move AC_LIBOBJ invocations to module description.
4753         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4754         * modules/truncf (configure.ac): ... to here.
4755
4756 2011-05-21  Bruno Haible  <bruno@clisp.org>
4757
4758         ceill: Move AC_LIBOBJ invocations to module description.
4759         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4760         * modules/ceill (configure.ac): ... to here.
4761
4762 2011-05-21  Bruno Haible  <bruno@clisp.org>
4763
4764         ceil: Move AC_LIBOBJ invocations to module description.
4765         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4766         * modules/ceil (configure.ac): ... to here.
4767
4768 2011-05-21  Bruno Haible  <bruno@clisp.org>
4769
4770         ceilf: Move AC_LIBOBJ invocations to module description.
4771         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4772         * modules/ceilf (configure.ac): ... to here.
4773
4774 2011-05-21  Bruno Haible  <bruno@clisp.org>
4775
4776         floorl: Respect rules for use of AC_LIBOBJ.
4777         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4778         * modules/floorl (configure.ac): ... to here.
4779
4780 2011-05-21  Bruno Haible  <bruno@clisp.org>
4781
4782         floor: Respect rules for use of AC_LIBOBJ.
4783         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4784         * modules/floor (configure.ac): ... to here.
4785
4786 2011-05-21  Bruno Haible  <bruno@clisp.org>
4787
4788         floorf: Move AC_LIBOBJ invocations to module description.
4789         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4790         * modules/floorf (configure.ac): ... to here.
4791
4792 2011-05-20  Bruno Haible  <bruno@clisp.org>
4793
4794         sqrtl: Respect rules for use of AC_LIBOBJ.
4795         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4796         * modules/sqrtl (configure.ac): ... to here.
4797
4798 2011-05-20  Bruno Haible  <bruno@clisp.org>
4799
4800         ldexpl: Respect rules for use of AC_LIBOBJ.
4801         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4802         * modules/ldexpl (configure.ac): ... to here.
4803
4804 2011-05-20  Bruno Haible  <bruno@clisp.org>
4805
4806         frexpl*: Respect rules for use of AC_LIBOBJ.
4807         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4808         invocation from here...
4809         * modules/frexpl (configure.ac): ... to here.
4810         * modules/frexpl-nolibm (configure.ac): ... and here.
4811
4812 2011-05-20  Bruno Haible  <bruno@clisp.org>
4813
4814         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4815         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4816         invocation from here...
4817         * modules/frexp (configure.ac): ... to here.
4818         * modules/frexp-nolibm (configure.ac): ... and here.
4819
4820 2011-05-20  Bruno Haible  <bruno@clisp.org>
4821
4822         isnan: Respect rules for use of AC_LIBOBJ.
4823         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4824         invocations here.
4825         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4826         REPLACE_ISNAN.
4827         * modules/isnand (configure.ac): Likewise.
4828         * modules/isnanl (configure.ac): Likewise.
4829
4830 2011-05-20  Bruno Haible  <bruno@clisp.org>
4831
4832         isnanl*: Respect rules for use of AC_LIBOBJ.
4833         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4834         invocation from here...
4835         * modules/isnanl (configure.ac): ... to here.
4836         * modules/isnanl-nolibm (configure.ac): ... and here.
4837
4838 2011-05-20  Bruno Haible  <bruno@clisp.org>
4839
4840         isnand*: Move AC_LIBOBJ invocations to module description.
4841         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4842         invocation from here...
4843         * modules/isnand (configure.ac): ... to here.
4844         * modules/isnand-nolibm (configure.ac): ... and here.
4845
4846 2011-05-20  Bruno Haible  <bruno@clisp.org>
4847
4848         isnanf*: Move AC_LIBOBJ invocations to module description.
4849         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4850         invocation from here...
4851         * modules/isnanf (configure.ac): ... to here.
4852         * modules/isnanf-nolibm (configure.ac): ... and here.
4853
4854 2011-05-20  Bruno Haible  <bruno@clisp.org>
4855
4856         isnan*: Separate the AC_LIBOBJ invocations.
4857         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4858         AC_LIBOBJ invocation.
4859         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4860         here.
4861         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4862         AC_LIBOBJ invocation.
4863         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4864         here.
4865         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4866         AC_LIBOBJ invocation.
4867         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4868         here.
4869         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4870
4871 2011-05-08  Bruno Haible  <bruno@clisp.org>
4872
4873         isinf: Move AC_LIBOBJ invocations to module description.
4874         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4875         * modules/isinf (configure.ac): ... to here.
4876
4877 2011-05-08  Bruno Haible  <bruno@clisp.org>
4878
4879         isfinite: Move AC_LIBOBJ invocations to module description.
4880         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4881         * modules/isfinite (configure.ac): ... to here.
4882
4883 2011-05-08  Bruno Haible  <bruno@clisp.org>
4884
4885         isblank: Move AC_LIBOBJ invocations to module description.
4886         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4887         here...
4888         * modules/isblank (configure.ac): ... to here.
4889
4890 2011-05-08  Bruno Haible  <bruno@clisp.org>
4891
4892         isapipe: Move AC_LIBOBJ invocations to module description.
4893         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4894         gl_PREREQ_ISAPIPE invocations from here...
4895         * modules/isapipe (configure.ac): ... to here.
4896         (Depends-on): Update condition.
4897
4898 2011-05-08  Bruno Haible  <bruno@clisp.org>
4899
4900         ioctl: Move AC_LIBOBJ invocations to module description.
4901         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4902         invocations from here...
4903         * modules/ioctl (configure.ac): ... to here.
4904         (Depends-on): Update condition.
4905
4906 2011-05-08  Bruno Haible  <bruno@clisp.org>
4907
4908         imaxdiv: Move AC_LIBOBJ invocations to module description.
4909         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4910         invocations from here...
4911         * modules/imaxdiv (configure.ac): ... to here.
4912
4913 2011-05-08  Bruno Haible  <bruno@clisp.org>
4914
4915         imaxabs: Move AC_LIBOBJ invocations to module description.
4916         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4917         invocations from here...
4918         * modules/imaxabs (configure.ac): ... to here.
4919
4920 2011-05-08  Bruno Haible  <bruno@clisp.org>
4921
4922         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4923         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4924         AC_LIBOBJ invocations from here...
4925         * modules/getaddrinfo (configure.ac): ... to here.
4926         (Depends-on): Add conditions.
4927
4928 2011-05-08  Bruno Haible  <bruno@clisp.org>
4929
4930         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4931         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4932         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4933         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4934         (gl_PREREQ_INET_PTON): ... from here.
4935         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4936         gl_PREREQ_INET_PTON here.
4937         (Depends-on): Update condition.
4938
4939 2011-05-08  Bruno Haible  <bruno@clisp.org>
4940
4941         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4942         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4943         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4944         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4945         (gl_PREREQ_INET_NTOP): ... from here.
4946         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4947         gl_PREREQ_INET_NTOP here.
4948         (Depends-on): Update condition.
4949
4950 2011-05-08  Bruno Haible  <bruno@clisp.org>
4951
4952         iconv_open: Move AC_LIBOBJ invocations to module description.
4953         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4954         AC_LIBOBJ invocations from here...
4955         * modules/iconv_open (configure.ac): ... to here.
4956
4957 2011-05-08  Bruno Haible  <bruno@clisp.org>
4958
4959         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4960         If module 'iconv_open' is among the main modules and module
4961         'iconv_open-utf' is among the tests dependencies, then
4962         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4963         return the special iconv_t values. Therefore iconv() and iconv_close()
4964         must support these special iconv_t values, already in lib, not only in
4965         tests.
4966         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4967         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4968         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4969         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4970         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4971         (Depends-on): Add the dependencies of iconv_open-utf.
4972         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4973         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4974         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4975
4976 2011-05-08  Bruno Haible  <bruno@clisp.org>
4977
4978         group-member: Move AC_LIBOBJ invocations to module description.
4979         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4980         gl_PREREQ_GROUP_MEMBER invocations from here...
4981         * modules/group-member (configure.ac): ... to here.
4982
4983 2011-05-08  Bruno Haible  <bruno@clisp.org>
4984
4985         grantpt: Move AC_LIBOBJ invocations to module description.
4986         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4987         invocations from here...
4988         * modules/grantpt (configure.ac): ... to here.
4989
4990 2011-05-08  Bruno Haible  <bruno@clisp.org>
4991
4992         glob: Move AC_LIBOBJ invocations to module description.
4993         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4994         from here...
4995         * modules/glob (configure.ac): ... to here.
4996
4997 2011-05-08  Bruno Haible  <bruno@clisp.org>
4998
4999         getusershell: Move AC_LIBOBJ invocations to module description.
5000         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5001         Move AC_LIBOBJ invocation from here...
5002         * modules/getusershell (configure.ac): ... to here.
5003         (Depends-on): Update condition.
5004
5005 2011-05-08  Bruno Haible  <bruno@clisp.org>
5006
5007         gettimeofday: Move AC_LIBOBJ invocations to module description.
5008         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5009         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5010         gl_PREREQ_GETTIMEOFDAY invocations from here...
5011         * modules/gettimeofday (configure.ac): ... to here.
5012
5013 2011-05-08  Bruno Haible  <bruno@clisp.org>
5014
5015         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5016         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5017         just gl_FUNC_TZSET.
5018         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5019         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5020         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5021         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5022
5023 2011-05-08  Bruno Haible  <bruno@clisp.org>
5024
5025         getsubopt: Move AC_LIBOBJ invocations to module description.
5026         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5027         gl_PREREQ_GETSUBOPT invocations from here...
5028         * modules/getsubopt (configure.ac): ... to here.
5029
5030 2011-05-08  Bruno Haible  <bruno@clisp.org>
5031
5032         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5033         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5034         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5035         * modules/getpass-gnu (configure.ac): ... to here.
5036
5037 2011-05-08  Bruno Haible  <bruno@clisp.org>
5038
5039         getpass: Move AC_LIBOBJ invocations to module description.
5040         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5041         gl_PREREQ_GETPASS invocations from here...
5042         * modules/getpass (configure.ac): ... to here.
5043
5044 2011-05-08  Bruno Haible  <bruno@clisp.org>
5045
5046         getpagesize: Move AC_LIBOBJ invocations to module description.
5047         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5048         from here...
5049         * modules/getpagesize (configure.ac): ... to here.
5050
5051 2011-05-08  Bruno Haible  <bruno@clisp.org>
5052
5053         getopt: Move AC_LIBOBJ invocations to module description.
5054         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5055         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5056         invocations from here...
5057         * modules/getopt-gnu (configure.ac): ... to here.
5058         * modules/getopt-posix (configure.ac): ... and here.
5059         (Depends-on): Update condition.
5060
5061 2011-05-08  Bruno Haible  <bruno@clisp.org>
5062
5063         getopt, argp: Respect rules for use of AC_LIBOBJ.
5064         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5065         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5066         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5067         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5068
5069 2011-05-08  Bruno Haible  <bruno@clisp.org>
5070
5071         getlogin_r: Move AC_LIBOBJ invocations to module description.
5072         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5073         gl_PREREQ_GETLOGIN_R invocations from here...
5074         * modules/getlogin_r (configure.ac): ... to here.
5075
5076 2011-05-08  Bruno Haible  <bruno@clisp.org>
5077
5078         getlogin: Move AC_LIBOBJ invocations to module description.
5079         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5080         here...
5081         * modules/getlogin (configure.ac): ... to here.
5082
5083 2011-05-08  Bruno Haible  <bruno@clisp.org>
5084
5085         getloadavg: Move AC_LIBOBJ invocations to module description.
5086         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5087         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5088         * modules/getloadavg (configure.ac): ... to here.
5089
5090 2011-05-08  Bruno Haible  <bruno@clisp.org>
5091
5092         gethrxtime: Move AC_LIBOBJ invocations to module description.
5093         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5094         LIB_GETHRXTIME from here...
5095         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5096         invocations from here...
5097         * modules/gethrxtime (configure.ac): ... to here.
5098
5099 2011-05-08  Bruno Haible  <bruno@clisp.org>
5100
5101         gethostname: Move AC_LIBOBJ invocations to module description.
5102         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5103         gl_PREREQ_GETHOSTNAME invocations from here...
5104         * modules/gethostname (configure.ac): ... to here.
5105
5106 2011-05-08  Bruno Haible  <bruno@clisp.org>
5107
5108         getgroups: Move AC_LIBOBJ invocations to module description.
5109         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5110         here...
5111         * modules/getgroups (configure.ac): ... to here.
5112
5113 2011-05-08  Bruno Haible  <bruno@clisp.org>
5114
5115         getdtablesize: Move AC_LIBOBJ invocations to module description.
5116         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5117         invocation from here...
5118         * modules/getdtablesize (configure.ac): ... to here.
5119
5120 2011-05-08  Bruno Haible  <bruno@clisp.org>
5121
5122         getdomainname: Move AC_LIBOBJ invocations to module description.
5123         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5124         gl_PREREQ_GETDOMAINNAME invocations from here...
5125         * modules/getdomainname (configure.ac): ... to here.
5126
5127 2011-05-08  Bruno Haible  <bruno@clisp.org>
5128
5129         getline: Move AC_LIBOBJ invocations to module description.
5130         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5131         invocations from here...
5132         * modules/getline (configure.ac): ... to here.
5133
5134 2011-05-08  Bruno Haible  <bruno@clisp.org>
5135
5136         getline: Simplify.
5137         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5138         It's already handled through the module dependency.
5139
5140 2011-05-08  Bruno Haible  <bruno@clisp.org>
5141
5142         getdelim: Move AC_LIBOBJ invocations to module description.
5143         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5144         and gl_PREREQ_GETDELIM invocations from here...
5145         * modules/getdelim (configure.ac): ... to here.
5146         (Depends-on): Fix condition.
5147
5148 2011-05-08  Bruno Haible  <bruno@clisp.org>
5149
5150         getcwd: Move AC_LIBOBJ invocations to module description.
5151         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5152         invocations from here...
5153         * modules/getcwd (configure.ac): ... to here.
5154
5155 2011-05-08  Bruno Haible  <bruno@clisp.org>
5156
5157         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5158         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5159         here...
5160         * modules/getcwd-lgpl (configure.ac): ... to here.
5161
5162 2011-05-07  Bruno Haible  <bruno@clisp.org>
5163
5164         crypto/gc: Move AC_LIBOBJ invocations to module description.
5165         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5166         * modules/crypto/gc (configure.ac): ... to here.
5167
5168 2011-05-07  Bruno Haible  <bruno@clisp.org>
5169
5170         fwriting: Move AC_LIBOBJ invocations to module description.
5171         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5172         here...
5173         * modules/fwriting (configure.ac): ... to here.
5174
5175 2011-05-07  Bruno Haible  <bruno@clisp.org>
5176
5177         fwritable: Move AC_LIBOBJ invocations to module description.
5178         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5179         here...
5180         * modules/fwritable (configure.ac): ... to here.
5181
5182 2011-05-07  Bruno Haible  <bruno@clisp.org>
5183
5184         futimens: Move AC_LIBOBJ invocations to module description.
5185         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5186         here...
5187         * modules/futimens (configure.ac): ... to here.
5188
5189 2011-05-07  Bruno Haible  <bruno@clisp.org>
5190
5191         ftruncate: Move AC_LIBOBJ invocations to module description.
5192         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5193         gl_PREREQ_FTRUNCATE invocations from here...
5194         * modules/ftruncate (configure.ac): ... to here.
5195
5196 2011-05-07  Bruno Haible  <bruno@clisp.org>
5197
5198         fsync: Move AC_LIBOBJ invocations to module description.
5199         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5200         invocations from here...
5201         * modules/fsync (configure.ac): ... to here.
5202
5203 2011-05-07  Bruno Haible  <bruno@clisp.org>
5204
5205         fsusage: Move AC_LIBOBJ invocations to module description.
5206         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5207         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5208         * modules/fsusage (configure.ac): ... to here.
5209
5210 2011-05-07  Bruno Haible  <bruno@clisp.org>
5211
5212         freopen: Move AC_LIBOBJ invocations to module description.
5213         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5214         invocations from here...
5215         * modules/freopen (configure.ac): ... to here.
5216
5217 2011-05-07  Bruno Haible  <bruno@clisp.org>
5218
5219         free: Move AC_LIBOBJ invocations to module description.
5220         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5221         invocations from here...
5222         * modules/free (configure.ac): ... to here.
5223
5224 2011-05-07  Bruno Haible  <bruno@clisp.org>
5225
5226         freadable: Move AC_LIBOBJ invocations to module description.
5227         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5228         here...
5229         * modules/freadable (configure.ac): ... to here.
5230
5231 2011-05-07  Bruno Haible  <bruno@clisp.org>
5232
5233         fpurge: Move AC_LIBOBJ invocations to module description.
5234         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5235         invocations from here...
5236         * modules/fpurge (configure.ac): ... to here.
5237
5238 2011-05-07  Bruno Haible  <bruno@clisp.org>
5239
5240         fpending: Move AC_LIBOBJ invocations to module description.
5241         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5242         gl_FUNC_FPENDING.
5243         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5244         invocations from here...
5245         * modules/fpending (configure.ac): ... to here.
5246
5247 2011-05-07  Bruno Haible  <bruno@clisp.org>
5248
5249         fopen: Move AC_LIBOBJ invocations to module description.
5250         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5251         invocations from here...
5252         * modules/fopen (configure.ac): ... to here.
5253
5254 2011-05-07  Bruno Haible  <bruno@clisp.org>
5255
5256         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5257         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5258         gl_FUNC_FNMATCH_POSIX.
5259         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5260         invocations from here...
5261         * modules/fnmatch (configure.ac): ... to here.
5262         * modules/fnmatch-gnu (configure.ac): ... and here.
5263
5264 2011-05-07  Bruno Haible  <bruno@clisp.org>
5265
5266         flock: Move AC_LIBOBJ invocations to module description.
5267         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5268         invocations from here...
5269         * modules/flock (configure.ac): ... to here.
5270
5271 2011-05-07  Bruno Haible  <bruno@clisp.org>
5272
5273         fileblocks: Move AC_LIBOBJ invocations to module description.
5274         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5275         gl_PREREQ_FILEBLOCKS invocations from here...
5276         * modules/fileblocks (configure.ac): ... to here.
5277
5278 2011-05-06  Bruno Haible  <bruno@clisp.org>
5279
5280         fflush: Move AC_LIBOBJ invocations to module description.
5281         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5282         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5283         invocations from here...
5284         * modules/fflush (configure.ac): ... to here.
5285
5286 2011-05-06  Bruno Haible  <bruno@clisp.org>
5287
5288         fdopendir: Move AC_LIBOBJ invocations to module description.
5289         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5290         here...
5291         * modules/fdopendir (configure.ac): ... to here.
5292         (Depends-on): Improve conditions.
5293
5294 2011-05-06  Bruno Haible  <bruno@clisp.org>
5295
5296         _Exit: Move AC_LIBOBJ invocations to module description.
5297         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5298         invocations from here...
5299         * modules/_Exit (configure.ac): ... to here.
5300
5301 2011-05-21  Bruno Haible  <bruno@clisp.org>
5302
5303         euidaccess: Respect rules for use of AC_LIBOBJ.
5304         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5305         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5306         from here...
5307         * modules/euidaccess (configure.ac): ... to here.
5308
5309 2011-05-06  Bruno Haible  <bruno@clisp.org>
5310
5311         error: Move AC_LIBOBJ invocations to module description.
5312         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5313         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5314         invocations from here...
5315         * modules/error (configure.ac): ... to here.
5316
5317 2011-05-06  Bruno Haible  <bruno@clisp.org>
5318
5319         duplocale: Move AC_LIBOBJ invocations to module description.
5320         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5321         gl_PREREQ_DUPLOCALE invocations from here...
5322         * modules/duplocale (configure.ac): ... to here.
5323
5324 2011-05-05  Bruno Haible  <bruno@clisp.org>
5325
5326         dirfd: Move AC_LIBOBJ invocations to module description.
5327         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5328         gl_FUNC_DIRFD.
5329         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5330         here...
5331         * modules/dirfd (configure.ac): ... to here.
5332         (Depends-on): Fix condition.
5333
5334 2011-05-05  Bruno Haible  <bruno@clisp.org>
5335
5336         chown: Respect rules for use of AC_LIBOBJ.
5337         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5338         * modules/chown (configure.ac): ... to here.
5339
5340 2011-05-05  Bruno Haible  <bruno@clisp.org>
5341
5342         chdir-long: Move AC_LIBOBJ invocations to module description.
5343         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5344         gl_PREREQ_CHDIR_LONG invocations from here...
5345         * modules/chdir-long (configure.ac): ... to here.
5346
5347 2011-05-05  Bruno Haible  <bruno@clisp.org>
5348
5349         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5350         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5351         from here...
5352         * modules/canonicalize-lgpl (configure.ac): ... to here.
5353
5354 2011-05-05  Bruno Haible  <bruno@clisp.org>
5355
5356         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5357         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5358         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5359         REPLACE_CALLOC.
5360         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5361         * modules/calloc-gnu (configure.ac): Likewise.
5362
5363 2011-05-05  Bruno Haible  <bruno@clisp.org>
5364
5365         btowc: Move AC_LIBOBJ invocations to module description.
5366         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5367         invocations from here...
5368         * modules/btowc (configure.ac): ... to here.
5369
5370 2011-05-21  Bruno Haible  <bruno@clisp.org>
5371
5372         atexit: Move AC_LIBOBJ invocations to module description.
5373         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5374         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5375         here...
5376         * modules/atexit (configure.ac): ... to here.
5377
5378 2011-05-05  Bruno Haible  <bruno@clisp.org>
5379
5380         atoll: Move AC_LIBOBJ invocations to module description.
5381         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5382         invocations from here...
5383         * modules/atoll (configure.ac): ... to here.
5384
5385 2011-05-05  Bruno Haible  <bruno@clisp.org>
5386
5387         argz: Move AC_LIBOBJ invocations to module description.
5388         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5389         * modules/argz (configure.ac): ... to here.
5390
5391 2011-05-05  Bruno Haible  <bruno@clisp.org>
5392
5393         alphasort: Move AC_LIBOBJ invocations to module description.
5394         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5395         gl_PREREQ_ALPHASORT invocations from here...
5396         * modules/alphasort (configure.ac): ... to here.
5397
5398 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5399
5400         verify: new macro verify_expr; verify_true deprecated
5401         * NEWS: Mention this.
5402         * doc/verify.texi (Compile-time Assertions): Document this.
5403         * lib/verify.h (verify_true): Deprecate.
5404         (verify_expr): New macro.
5405         * tests/test-verify.c (function): Test verify_expr.
5406
5407 2011-06-14  Jim Meyering  <meyering@redhat.com>
5408
5409         init.sh: give more portable redirection-related advice in a comment
5410         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5411         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5412         for lots of discussion.  Stefano Lattarini suggested the solution
5413         of putting "9>&2" after the command.  Reported by Bruno Haible.
5414
5415 2011-06-13  Bruno Haible  <bruno@clisp.org>
5416
5417         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5418         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5419         'none'.
5420
5421 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5422
5423         ftoastr: use strtof only if HAVE_STRTOF
5424         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5426         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5427         * modules/ftoastr (configure.ac): Check for strtof.
5428
5429 2011-06-13  Bruno Haible  <bruno@clisp.org>
5430
5431         gnulib-tool: Addendum to 2011-06-08 commit.
5432         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5433         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5434
5435 2011-06-13  Bruno Haible  <bruno@clisp.org>
5436
5437         fseeko: Provide a non-inline replacement of fseek().
5438         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5439         * modules/fseeko (Depends-on): Add fseek.
5440         * modules/fseek (License): Change to LGPLv2+.
5441
5442 2011-06-13  Bruno Haible  <bruno@clisp.org>
5443
5444         ftello: Provide a non-inline replacement of ftell().
5445         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5446         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5447         not have ftello() (such as on mingw).
5448         * modules/ftello (Depends-on): Add ftell.
5449         * modules/ftell (License): Change to LGPLv2+.
5450
5451 2011-05-07  Bruno Haible  <bruno@clisp.org>
5452
5453         ftell: Move AC_LIBOBJ invocations to module description.
5454         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5455         * modules/ftell (configure.ac): ... to here.
5456
5457 2011-05-07  Bruno Haible  <bruno@clisp.org>
5458
5459         ftello: Respect rules for use of AC_LIBOBJ.
5460         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5461         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5462         here...
5463         * modules/ftello (configure.ac): ... to here.
5464
5465 2011-05-07  Bruno Haible  <bruno@clisp.org>
5466
5467         fseeko: Simplify.
5468         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5469         (gl_FUNC_FSEEKO): Inline it here.
5470
5471 2011-05-07  Bruno Haible  <bruno@clisp.org>
5472
5473         fseek: Move AC_LIBOBJ invocations to module description.
5474         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5475         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5476         * modules/fseek (configure.ac): ... to here.
5477
5478 2011-05-07  Bruno Haible  <bruno@clisp.org>
5479
5480         fseek: Respect rules for use of AC_LIBOBJ.
5481         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5482         here...
5483         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5484
5485 2011-05-07  Bruno Haible  <bruno@clisp.org>
5486
5487         fseeko: Respect rules for use of AC_LIBOBJ.
5488         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5489         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5490         here...
5491         * modules/fseeko (configure.ac): ... to here.
5492
5493 2011-06-13  Bruno Haible  <bruno@clisp.org>
5494
5495         gnulib-tool: Allow comments in the 'Depends-on' section.
5496         * doc/gnulib.texi (Module description): Mention comment syntax in the
5497         Depends-on section.
5498         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5499
5500 2011-06-13  Bruno Haible  <bruno@clisp.org>
5501
5502         file-set.h: guard __attibute__ use, now that it's not always defined
5503         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5504         versions that support it.  This fixes a coreutils build failure with
5505         the vendor cc on HP-UX 11.31.
5506
5507 2011-06-12  Bruno Haible  <bruno@clisp.org>
5508
5509         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5510         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5511         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5512         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5513         (acl, aclsort): New declarations.
5514         (aclv_nontrivial): New declaration.
5515         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5516         (file_has_acl): Read also the second kind of HP-UX ACLs.
5517         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5518         kind of HP-UX ACLs if the first kind fails.
5519         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5520         second kind of HP-UX ACLs.
5521         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5522         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5523         agree.
5524         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5525         hpuxjfs.
5526         Handle hpuxjfs.
5527         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5528         hpuxjfs.
5529         Handle hpuxjfs.
5530         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5531         (func_test_same_acls): Use both lsacl and getacl.
5532         Handle hpuxjfs.
5533         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5534         (func_test_same_acls): Use both lsacl and getacl.
5535         Handle hpuxjfs.
5536
5537 2011-06-12  Bruno Haible  <bruno@clisp.org>
5538
5539         acl: Complete the 2010-08-10 fix.
5540         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5541         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5542         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5543         explicitly.
5544         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5545         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5546
5547 2011-06-12  Bruno Haible  <bruno@clisp.org>
5548
5549         spawn-pipe tests: Comments.
5550         * tests/test-spawn-pipe-child.c (main): Update comment.
5551         Reported by James Youngman <jay@gnu.org>.
5552
5553 2011-06-11  James Youngman  <jay@gnu.org>
5554
5555         New module 'stat-size'.
5556         * modules/stat-size: New module.  Provides macros for accessing
5557         file size information in instances of struct stat.  Depends on the
5558         fileblocks module because it calls st_blocks.
5559         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5560         * doc/gnulib.texi: Include stat-size.texi.
5561         * doc/stat-size.texi: Documentation for this module.
5562         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5563         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5564         AC_STRUCT_ST_BLOCKS.
5565
5566 2011-06-09  Bruno Haible  <bruno@clisp.org>
5567
5568         thread: Support pthreads-win32.
5569         * lib/glthread/thread.h (gl_thread_self): Define differently on
5570         pthreads-win32.
5571         (gl_null_thread): New declaration.
5572         (gl_thread_self_pointer): New macro.
5573         * lib/glthread/thread.c (gl_null_thread): New constant.
5574         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5575         gl_thread_self.
5576         * tests/test-tls.c: Likewise.
5577         Suggested by Paul Eggert. Reported by Eric Blake.
5578
5579 2011-06-09  Bruno Haible  <bruno@clisp.org>
5580
5581         thread: Fix confusion between NULL and 0.
5582         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5583         Reported by Paul Eggert.
5584
5585 2011-06-09  Bruno Haible  <bruno@clisp.org>
5586
5587         spawn-pipe tests: Avoid test failure on HP-UX 11.
5588         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5589         is closed.
5590
5591 2011-06-09  Bruno Haible  <bruno@clisp.org>
5592
5593         acl tests: Fix compilation error on HP-UX 11.
5594         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5595
5596 2011-06-09  Bruno Haible  <bruno@clisp.org>
5597
5598         rmdir: Avoid test failure on HP-UX 10.20.
5599         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5600         EEXIST.
5601
5602 2011-06-08  Eric Blake  <eblake@redhat.com>
5603
5604         perror: fix test on mingw
5605         * modules/perror-tests (Depends-on): Add dup2.
5606
5607         strerror_r-posix: fix on MacOS
5608         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5609         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5610         logic bug.
5611         * lib/strerror_r.c (strerror_r): Fix the bug.
5612         * lib/strerror.c (strerror): Likewise.
5613         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5614         problem.
5615         * doc/posix-functions/strerror.texi (strerror): Likewise.
5616         * doc/posix-functions/perror.texi (perror): Likewise.
5617         * tests/test-strerror.c (main): Enhance test.
5618         * tests/test-strerror_r.c (main): Likewise.
5619
5620 2011-06-08  Bruno Haible  <bruno@clisp.org>
5621
5622         gnulib-tool: Better isolation between different gnulib-tool invocations.
5623         * gnulib-tool: New option --witness-c-macro.
5624         (witness_c_macro): New variable.
5625         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5626         AM_CPPFLAGS define it as a C macro.
5627         (func_emit_tests_Makefile_am): Likewise.
5628         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5629         read it from there.
5630         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5631         m4_define, not AC_DEFUN.
5632         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5633         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5634         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5635         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5636         s|...|...|, to substitute the values of the GNULIB_* module indicator
5637         variables.
5638         * modules/dirent (Makefile.am): Likewise.
5639         * modules/fcntl-h (Makefile.am): Likewise.
5640         * modules/iconv-h (Makefile.am): Likewise.
5641         * modules/langinfo (Makefile.am): Likewise.
5642         * modules/locale (Makefile.am): Likewise.
5643         * modules/math (Makefile.am): Likewise.
5644         * modules/netdb (Makefile.am): Likewise.
5645         * modules/poll-h (Makefile.am): Likewise.
5646         * modules/pty (Makefile.am): Likewise.
5647         * modules/search (Makefile.am): Likewise.
5648         * modules/signal (Makefile.am): Likewise.
5649         * modules/spawn (Makefile.am): Likewise.
5650         * modules/stdio (Makefile.am): Likewise.
5651         * modules/stdlib (Makefile.am): Likewise.
5652         * modules/string (Makefile.am): Likewise.
5653         * modules/sys_ioctl (Makefile.am): Likewise.
5654         * modules/sys_select (Makefile.am): Likewise.
5655         * modules/sys_socket (Makefile.am): Likewise.
5656         * modules/sys_stat (Makefile.am): Likewise.
5657         * modules/sys_times (Makefile.am): Likewise.
5658         * modules/sys_utsname (Makefile.am): Likewise.
5659         * modules/sys_wait (Makefile.am): Likewise.
5660         * modules/termios (Makefile.am): Likewise.
5661         * modules/time (Makefile.am): Likewise.
5662         * modules/unistd (Makefile.am): Likewise.
5663         * modules/wchar (Makefile.am): Likewise.
5664
5665 2011-06-08  Eric Blake  <eblake@redhat.com>
5666
5667         strerror: simplify replacement
5668         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5669         * modules/strerror (configure.ac): No prereqs needed here...
5670         * modules/strerror-override (configure.ac): ...but this needs it.
5671         (Files): Add file for needed prereq macro.
5672
5673 2011-06-08  Bruno Haible  <bruno@clisp.org>
5674
5675         strerror_r-posix: Tweaks.
5676         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5677         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5678         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5679         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5680         (gl_FUNC_STRERROR_R): ... to here.
5681         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5682
5683 2011-06-07  Eric Blake  <eblake@redhat.com>
5684
5685         perror: document fixed bugs
5686         * doc/posix-functions/perror.texi (perror): Document recent
5687         patches.
5688
5689 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5690
5691         stat-time: get_stat_birthtime failure is better-defined
5692         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5693         return a timestamp whose tv_sec and tv_nsec values are both -1.
5694         Previously, the spec said only that the tv_nsec value was negative.
5695         This upward-compatible change simplifies GNU tar a bit.
5696
5697 2011-06-07  Eric Blake  <eblake@redhat.com>
5698
5699         strerror_r-posix: work around cygwin 1.7.9
5700         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5701         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5702         bug without replacing strerror_r.
5703         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5704         strerror_r is buggy, but without requiring strerror_r compilation.
5705         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5706
5707         test-perror: relax test to ignore cygwin bug
5708         * tests/test-perror2.c (main): Relax test on requiring detection
5709         of stream errors, and use unbuffered stream.
5710         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5711         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5712         * doc/posix-functions/fputc.texi (fputc): Likewise.
5713         * doc/posix-functions/fputs.texi (fputs): Likewise.
5714         * doc/posix-functions/fputws.texi (fputws): Likewise.
5715         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5716         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5717         * doc/posix-functions/getopt.texi (getopt): Likewise.
5718         * doc/posix-functions/perror.texi (perror): Likewise.
5719         * doc/posix-functions/printf.texi (printf): Likewise.
5720         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5721         * doc/posix-functions/psignal.texi (psignal): Likewise.
5722         * doc/posix-functions/putc.texi (putc): Likewise.
5723         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5724         Likewise.
5725         * doc/posix-functions/putchar.texi (putchar): Likewise.
5726         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5727         Likewise.
5728         * doc/posix-functions/puts.texi (puts): Likewise.
5729         * doc/posix-functions/putwc.texi (putwc): Likewise.
5730         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5731         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5732         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5733         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5734         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5735         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5736         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5737         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5738
5739 2011-05-22  Bruno Haible  <bruno@clisp.org>
5740
5741         strerror: Move AC_LIBOBJ invocations to module description.
5742         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5743         gl_PREREQ_STRERROR invocations from here...
5744         * modules/strerror (configure.ac): ... to here.
5745
5746 2011-05-21  Bruno Haible  <bruno@clisp.org>
5747
5748         perror: Use common idiom.
5749         * modules/perror (configure.ac): Reorder statements.
5750
5751 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5752
5753         tests: fix usage message in 'mktempd_'
5754         * tests/init.sh (mktempd_): In the usage message, use literal
5755         'mktempd_', not '$ME' (which is even undefined), as the name of
5756         the subroutine.
5757
5758 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5759
5760         tests init: new function 'fatal_', for hard errors
5761         Before this patch, the only way offered by tests/init.sh to
5762         properly signal a hard error was the `framework_failure_'
5763         function.  But the error message issued by that function,
5764         as its name would suggest, refers to a set-up failure in the
5765         testsuite, while hard errors can obviously also be due to
5766         other reasons.  The best way to fix this inconsistency is to
5767         introduce a new function with a more general error message.
5768         * tests/init.sh (fatal_): New function.
5769
5770 2011-06-06  Eric Blake  <eblake@redhat.com>
5771
5772         canonicalize-lgpl: use common idiom
5773         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5774         over newer POSIX -Rf.
5775         Reported by Bruno Haible.
5776
5777         canonicalize-lgpl: work around AIX realpath bug
5778         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5779         * doc/posix-functions/realpath.texi (realpath): Document it.
5780         Reported by Bruno Haible.
5781
5782         strerror: work around FreeBSD bug
5783         * lib/strerror.c (strerror): Special case 0.
5784         Reported by Bruno Haible.
5785
5786         strerror-override: avoid bloating errno module
5787         * modules/errno (Files, configure.ac): Move replacement strings...
5788         * modules/strerror-override: ...to new module.
5789         * modules/strerror (Depends-on): Add strerror-override.
5790         * modules/strerror_r-posix (Depends-on): Likewise.
5791         * MODULES.html.sh: Document new module.
5792         Reported by Bruno Haible.
5793
5794 2011-06-06  Bruno Haible  <bruno@clisp.org>
5795
5796         spawn-pipe tests: Rename program.
5797         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5798         * tests/test-spawn-pipe-child.c: Update comment.
5799         * tests/test-spawn-pipe.sh: Update.
5800         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5801
5802         spawn-pipe tests: Link the child program only against libc.
5803         * tests/test-spawn-pipe-child.c: New file, extracted from
5804         tests/test-spawn-pipe.c.
5805         (main): Expect only one argument.
5806         (is_open): New function, copied from tests/test-pipe.c.
5807         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5808         (child_main): Remove function.
5809         (test_pipe): Pass only one argument to the child program.
5810         (main): Remove child process code. Expect the child program's name as
5811         first argument.
5812         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5813         argument.
5814         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5815         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5816         test-spawn-pipe-child against no libraries.
5817
5818 2011-06-06  Bruno Haible  <bruno@clisp.org>
5819
5820         careadlinkat: Avoid mismatch between ssize_t and int.
5821         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5822         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5823
5824 2011-06-06  Jim Meyering  <meyering@redhat.com>
5825
5826         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5827         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5828         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5829
5830 2011-06-05  Bruno Haible  <bruno@clisp.org>
5831
5832         ansi-c++-opt: Interoperability with libtool.
5833         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5834         set the variable to "no", not to ":".
5835         * NEWS: Mention the change.
5836
5837 2011-06-05  Bruno Haible  <bruno@clisp.org>
5838
5839         acl: Fix test failure on AIX 7.
5840         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5841         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5842
5843 2011-06-05  Bruno Haible  <bruno@clisp.org>
5844
5845         pipe-filter-ii: Fix test failure on AIX and IRIX.
5846         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5847         with EAGAIN, retry with a smaller buffer size.
5848
5849 2011-06-05  Bruno Haible  <bruno@clisp.org>
5850
5851         localename: Fix link dependencies.
5852         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5853         * modules/localename-tests (Makefile.am): Link test-localename with
5854         $(LIBTHREAD).
5855
5856 2011-06-05  Bruno Haible  <bruno@clisp.org>
5857
5858         error: Avoid gcc warning.
5859         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5860
5861 2011-06-05  Bruno Haible  <bruno@clisp.org>
5862
5863         unsetenv: Avoid gcc warning.
5864         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5865
5866 2011-06-05  Bruno Haible  <bruno@clisp.org>
5867
5868         setenv: Avoid gcc warning.
5869         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5870
5871 2011-06-05  Bruno Haible  <bruno@clisp.org>
5872
5873         sys_select: Ensure memset is declared also on AIX 7.
5874         * lib/sys_select.in.h: Include <string.h> also on AIX.
5875         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5876         self-contained also on AIX 7.1.
5877
5878 2011-06-04  Jim Meyering  <meyering@redhat.com>
5879
5880         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5881         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5882         function name, "error".
5883         (_gl_translatable_diag_func_re): New configurable variable.
5884
5885 2011-06-04  Bruno Haible  <bruno@clisp.org>
5886
5887         getopt: Avoid gcc warning.
5888         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5889
5890 2011-06-04  Bruno Haible  <bruno@clisp.org>
5891
5892         strerror_r: Fix comments.
5893         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5894         commit.
5895
5896 2011-06-04  Bruno Haible  <bruno@clisp.org>
5897
5898         perror: Fix compilation error.
5899         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5900         Undefine fprintf, not sprintf.
5901         * modules/perror (Depends-on): Remove intprops, verify.
5902
5903 2011-06-04  Bruno Haible  <bruno@clisp.org>
5904
5905         setlocale: Enable replacement on Cygwin 1.5.
5906         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5907         Cygwin 1.5.x.
5908         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5909         LC_CTYPE category also exists on Cygwin 1.5.x.
5910
5911 2011-06-04  Bruno Haible  <bruno@clisp.org>
5912
5913         strerror-override: Don't disable symbol renamings.
5914         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5915         * lib/strerror-override.c: Include config.h.
5916         (strerror_override): Don't undefine.
5917
5918 2011-06-03  Bruno Haible  <bruno@clisp.org>
5919
5920         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5921         * lib/localename.h: Update copyright header.
5922         * lib/localename.c: Likewise.
5923         * lib/relocatable.h: Likewise.
5924         * lib/relocatable.c: Likewise.
5925
5926 2011-06-02  Bruno Haible  <bruno@clisp.org>
5927
5928         doc: Fix a module name.
5929         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5930
5931 2011-06-02  Bruno Haible  <bruno@clisp.org>
5932
5933         pipe2: Remove dependency on 'nonblocking' module.
5934         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5935         O_NONBLOCK is defined by gnulib.
5936         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5937         is zero.
5938         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5939         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5940         defined by gnulib.
5941         (get_nonblocking_flag): New function.
5942         (main): Test O_NONBLOCK flag only if it is nonzero.
5943         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5944
5945 2011-06-03  Jim Meyering  <meyering@redhat.com>
5946
5947         maint: three new prohibit-header-without-use rules
5948         Prohibit use of cloexec.h, posixver.h, same.h without use.
5949         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5950         (sc_prohibit_posixver_without_use): Likewise.
5951         (sc_prohibit_same_without_use): Likewise.
5952
5953 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5954
5955         allocator: 'die' routine is now given requested size
5956         * lib/allocator.h (struct allocator.die): New size arg.
5957         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5958         If the actual problem is an ssize_t limitation, not a size_t or
5959         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5960
5961 2011-06-01  Eric Blake  <eblake@redhat.com>
5962
5963         strerror: drop strerror_r dependency
5964         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5965         * lib/strerror-override.c (strerror_override): ...to new file.
5966         * lib/strerror-override.h: Add prototype.
5967         * lib/strerror-impl.h: Delete.
5968         * lib/strerror.c (strerror): New implementation.
5969         * modules/errno (Files): Add new files.
5970         (configure.ac): Compile new file as appropriate.
5971         * modules/strerror (Files): Drop unused file.
5972         (Depends-on): Drop strerror_r-posix.
5973         * MODULES.html.sh: Document strerror_r-posix.
5974         Requested by Sam Steingold.
5975
5976         perror: call strerror_r directly
5977         * modules/perror (Files): Drop strerror-impl.h.
5978         * lib/perror.c (perror): Use our own stack buffer, rather than
5979         calling a wrapper that uses static storage.
5980         * doc/posix-functions/perror.texi (perror): Document a limitation
5981         of our replacement.
5982
5983         strerror_r: fix includes for FreeBSD
5984         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5985         since we use abort on some platforms.
5986         Reported by Matthias Bolte.
5987
5988 2011-05-31  Bruno Haible  <bruno@clisp.org>
5989
5990         Fix link errors in tests: openat-die uses gettext-h.
5991         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5992         against $(LIBINTL).
5993         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5994         against $(LIBINTL).
5995         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5996         $(LIBINTL).
5997         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5998         against $(LIBINTL).
5999         * modules/linkat-tests (Makefile.am): Link test-linkat against
6000         $(LIBINTL).
6001         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6002         $(LIBINTL).
6003         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6004         against $(LIBINTL).
6005         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6006         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6007         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6008         $(LIBINTL).
6009         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6010         $(LIBINTL).
6011         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6012         $(LIBINTL).
6013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6014
6015 2011-05-31  Bruno Haible  <bruno@clisp.org>
6016
6017         Fix link errors in tests: wait-process uses gettext-h.
6018         * modules/nonblocking-pipe-tests (Makefile.am): Set
6019         test_nonblocking_pipe_main_LDADD.
6020         * modules/nonblocking-socket-tests (Makefile.am): Link
6021         test-nonblocking-socket-main against $(LIBINTL).
6022         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6023
6024 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6025
6026         assert-h: work around 'verify' incompatibility
6027         * lib/verify.h: Use @...@ directives, not ifdef.
6028         * modules/assert-h (assert.h): Implement the directives.
6029         (assert.h): Substitute the symbol-prefix more consistently.
6030
6031 2011-05-29  Jim Meyering  <meyering@redhat.com>
6032
6033         trim: remove three superfluous assignments
6034         * lib/trim.c (trim2): Remove three superfluous assignments
6035         and correct brace positioning.
6036
6037 2011-05-29  Bruno Haible  <bruno@clisp.org>
6038
6039         wctype-h: Avoid namespace pollution on Solaris 2.6.
6040         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6041         identifiers.
6042         * doc/posix-headers/wctype.texi: Mention the problem.
6043         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6044
6045 2011-05-28  Jim Meyering  <meyering@redhat.com>
6046
6047         parse-datetime.y: accommodate -Wstrict-overflow
6048         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6049         placate -Wstrict-overflow.
6050
6051         trim: avoid a warning from -O2 -Wstrict-overflow
6052         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6053
6054 2011-05-29  Bruno Haible  <bruno@clisp.org>
6055
6056         gnulib-tool: Fix bug in yesterday's commit.
6057         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6058         twice.
6059
6060 2011-05-29  Bruno Haible  <bruno@clisp.org>
6061
6062         Allow multiple gnulib generated include files to be combined.
6063         * gnulib-tool (func_compute_include_guard_prefix): New function.
6064         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6065         ${gl_include_guard_prefix} references.
6066         (func_import, func_create_testdir): Invoke
6067         func_compute_include_guard_prefix.
6068         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6069         * lib/ctype.in.h: Likewise.
6070         * lib/dirent.in.h: Likewise.
6071         * lib/errno.in.h: Likewise.
6072         * lib/fcntl.in.h: Likewise.
6073         * lib/float.in.h: Likewise.
6074         * lib/getopt.in.h: Likewise.
6075         * lib/iconv.in.h: Likewise.
6076         * lib/langinfo.in.h: Likewise.
6077         * lib/locale.in.h: Likewise.
6078         * lib/math.in.h: Likewise.
6079         * lib/netdb.in.h: Likewise.
6080         * lib/netinet_in.in.h: Likewise.
6081         * lib/poll.in.h: Likewise.
6082         * lib/pthread.in.h: Likewise.
6083         * lib/pty.in.h: Likewise.
6084         * lib/sched.in.h: Likewise.
6085         * lib/se-selinux.in.h: Likewise.
6086         * lib/search.in.h: Likewise.
6087         * lib/signal.in.h: Likewise.
6088         * lib/spawn.in.h: Likewise.
6089         * lib/stdarg.in.h: Likewise.
6090         * lib/stddef.in.h: Likewise.
6091         * lib/stdint.in.h: Likewise.
6092         * lib/stdio.in.h: Likewise.
6093         * lib/stdlib.in.h: Likewise.
6094         * lib/string.in.h: Likewise.
6095         * lib/strings.in.h: Likewise.
6096         * lib/sys_file.in.h: Likewise.
6097         * lib/sys_ioctl.in.h: Likewise.
6098         * lib/sys_select.in.h: Likewise.
6099         * lib/sys_socket.in.h: Likewise.
6100         * lib/sys_stat.in.h: Likewise.
6101         * lib/sys_time.in.h: Likewise.
6102         * lib/sys_times.in.h: Likewise.
6103         * lib/sys_uio.in.h: Likewise.
6104         * lib/sys_utsname.in.h: Likewise.
6105         * lib/sys_wait.in.h: Likewise.
6106         * lib/sysexits.in.h: Likewise.
6107         * lib/termios.in.h: Likewise.
6108         * lib/time.in.h: Likewise.
6109         * lib/unistd.in.h: Likewise.
6110         * lib/wchar.in.h: Likewise.
6111         * lib/wctype.in.h: Likewise.
6112         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6113         * modules/ctype (Makefile.am): Likewise.
6114         * modules/dirent (Makefile.am): Likewise.
6115         * modules/errno (Makefile.am): Likewise.
6116         * modules/fcntl-h (Makefile.am): Likewise.
6117         * modules/float (Makefile.am): Likewise.
6118         * modules/getopt-posix (Makefile.am): Likewise.
6119         * modules/iconv-h (Makefile.am): Likewise.
6120         * modules/langinfo (Makefile.am): Likewise.
6121         * modules/locale (Makefile.am): Likewise.
6122         * modules/math (Makefile.am): Likewise.
6123         * modules/netdb (Makefile.am): Likewise.
6124         * modules/netinet_in (Makefile.am): Likewise.
6125         * modules/poll-h (Makefile.am): Likewise.
6126         * modules/pthread (Makefile.am): Likewise.
6127         * modules/pty (Makefile.am): Likewise.
6128         * modules/sched (Makefile.am): Likewise.
6129         * modules/search (Makefile.am): Likewise.
6130         * modules/selinux-h (Makefile.am): Likewise.
6131         * modules/signal (Makefile.am): Likewise.
6132         * modules/spawn (Makefile.am): Likewise.
6133         * modules/stdarg (Makefile.am): Likewise.
6134         * modules/stddef (Makefile.am): Likewise.
6135         * modules/stdint (Makefile.am): Likewise.
6136         * modules/stdio (Makefile.am): Likewise.
6137         * modules/stdlib (Makefile.am): Likewise.
6138         * modules/string (Makefile.am): Likewise.
6139         * modules/strings (Makefile.am): Likewise.
6140         * modules/sys_file (Makefile.am): Likewise.
6141         * modules/sys_ioctl (Makefile.am): Likewise.
6142         * modules/sys_select (Makefile.am): Likewise.
6143         * modules/sys_socket (Makefile.am): Likewise.
6144         * modules/sys_stat (Makefile.am): Likewise.
6145         * modules/sys_time (Makefile.am): Likewise.
6146         * modules/sys_times (Makefile.am): Likewise.
6147         * modules/sys_uio (Makefile.am): Likewise.
6148         * modules/sys_utsname (Makefile.am): Likewise.
6149         * modules/sys_wait (Makefile.am): Likewise.
6150         * modules/sysexits (Makefile.am): Likewise.
6151         * modules/termios (Makefile.am): Likewise.
6152         * modules/time (Makefile.am): Likewise.
6153         * modules/unistd (Makefile.am): Likewise.
6154         * modules/wchar (Makefile.am): Likewise.
6155         * modules/wctype-h (Makefile.am): Likewise.
6156         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6157
6158 2011-05-29  Bruno Haible  <bruno@clisp.org>
6159
6160         assert-h: Allow multiple gnulib generated replacements to coexist.
6161         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6162
6163 2011-05-29  Bruno Haible  <bruno@clisp.org>
6164
6165         argp: Allow coexistence with strerror_r-posix module.
6166         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6167         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6168         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6169         not the glibc signature.
6170
6171 2011-05-28  Bruno Haible  <bruno@clisp.org>
6172
6173         gnulib-tool: Alternative structure of testdirs, similar to --import.
6174         * gnulib-tool: New option --single-configure.
6175         (func_usage): Document it.
6176         (single_configure): New variable.
6177         (func_modules_transitive_closure_separately,
6178         func_modules_transitive_closure_separately,
6179         func_determine_use_libtests, func_modules_add_dummy_separately,
6180         func_modules_to_filelist_separately): New functions, extracted from
6181         func_import.
6182         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6183         (func_import): Use the new functions.
6184         (func_create_testdir): Set final_modules. Handle $single_configure =
6185         true case.
6186
6187 2011-05-28  Bruno Haible  <bruno@clisp.org>
6188
6189         getloadavg: Remove an unreliable safety check.
6190         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6191         getloadavg.c is in place.
6192         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6193         Reported by Sam Steingold <sds@gnu.org>.
6194
6195 2011-05-28  Bruno Haible  <bruno@clisp.org>
6196
6197         doc: Cleanup yet another file produced by texinfo.tex.
6198         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6199
6200 2011-05-28  Bruno Haible  <bruno@clisp.org>
6201
6202         Finish the conditional dependencies mechanism.
6203         * gnulib-tool: New option --no-conditional-dependencies.
6204         (func_usage): Document it. Don't mark --conditional-dependencies as
6205         experimental.
6206         (cond_dependencies): The possible values can now be true, false, empty.
6207         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6208         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6209         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6210
6211 2011-05-28  Bruno Haible  <bruno@clisp.org>
6212
6213         doc: Use a recent texinfo.tex.
6214         * doc/Makefile (tex_opts): New variable.
6215         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6216
6217 2011-05-28  Jim Meyering  <meyering@redhat.com>
6218
6219         intprops.h: adjust comment to match code change
6220         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6221         only once, it *may* have side effects.  Also fix an unrelated typo.
6222         (_GL_INT_SIGNED): Likewise.
6223
6224 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6225
6226         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6227
6228 2011-05-26  Bruno Haible  <bruno@clisp.org>
6229
6230         mbsrchr: Avoid collision with system function on Interix.
6231         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6232         Reported by Markus Duft <mduft@gentoo.org>.
6233
6234 2011-05-15  James Youngman  <jay@gnu.org>
6235
6236         getopt: for ambiguous options, enumerate the possibilities.
6237         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6238         the ambiguous options when an ambiguous prefix is given. This was
6239         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6240         glibc change was
6241         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6242
6243 2011-05-25  Eric Blake  <eblake@redhat.com>
6244
6245         getcwd: work around mingw bug
6246         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6247         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6248         Reported by Matthias Bolte.
6249
6250 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6251
6252         test-intprops: disable -Wtype-limits diagnostics
6253         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6254         diagnostics.  Otherwise, the integer overflow macros generate many
6255         diagnostics.  Reported by Jim Meyering in
6256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6257
6258         intprops: shorten, to pacify gcc -Woverlength-strings
6259         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6260         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6261         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6262         likely to run afoul of C compiler limits for string constant lengths.
6263         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6264
6265 2011-05-24  Eric Blake  <eblake@redhat.com>
6266
6267         docs: document recently fixed glibc printf bug
6268         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6269         * doc/posix-functions/printf.texi (printf): Likewise.
6270         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6271         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6272
6273         closein-tests: convert to init.sh
6274         * modules/closein-tests (Files): Add init.sh
6275         * tests/test-closein.sh Use it.
6276
6277         yesno-tests: convert to init.sh
6278         * modules/yesno-tests (Files): Add init.sh.
6279         * tests/test-yesno.sh: Use it.
6280
6281         atexit-tests: ensure reliable exit status
6282         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6283         Reported by Bruno Haible.
6284
6285 2011-05-24  Bruno Haible  <bruno@clisp.org>
6286
6287         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6288         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6289         gl_PREREQ_STRERROR_R invocations from here...
6290         * modules/strerror_r-posix (configure.ac): ... to here.
6291
6292 2011-05-24  Eric Blake  <eblake@redhat.com>
6293
6294         strerror_r: fix missing header
6295         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6296
6297         strerror_r: fix AIX test failures
6298         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6299         ERANGE failure.
6300
6301         strerror_r: fix Solaris test failures
6302         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6303         failures.
6304         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6305
6306         strerror_r: enforce POSIX recommendations
6307         * lib/strerror_r.c (safe_copy): New helper method.
6308         (strerror_r): Guarantee a non-empty string.
6309         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6310         recent POSIX rulings and to match our strerror guarantees.
6311         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6312
6313 2011-05-24  Jim Meyering  <meyering@redhat.com>
6314
6315         test-perror2.c: avoid warning about unused variable
6316         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6317
6318 2011-05-24  Eric Blake  <eblake@redhat.com>
6319
6320         perror: avoid spurious test failure on HP-UX
6321         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6322
6323         tests: fix logic bug in init.sh
6324         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6325         shell.
6326
6327 2011-05-24  Jim Meyering  <meyering@redhat.com>
6328
6329         utimensat: do not reference an out-of-scope buffer
6330         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6331         declared in an inner scope, yet "times" would be dereferenced outside
6332         the scope in which "ts" was valid.
6333         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6334         of ts[2] "out/up", so that the use of aliased "times" (via
6335         "times = ts;") does not end up referencing an out-of-scope "ts"
6336
6337         opendir-safer.c: don't clobber errno; don't close negative FD
6338         * lib/opendir-safer.c (opendir_safer):
6339         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6340         file descriptor, and more importantly, don't clobber the
6341         offending errno value with EINVAL.  Before, upon failure
6342         of dup_safer, we would pass the negative file descriptor to
6343         fdopendir, which would clobber errno.
6344
6345 2011-05-23  Bruno Haible  <bruno@clisp.org>
6346
6347         idcache: Fix module description.
6348         * modules/idcache (Include): Set to "idcache.h".
6349
6350 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6351
6352         gnulib-tool: fix portability problem with MacOS sed
6353         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6354         before the "}".  Problem reported by Leo in
6355         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6356         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6357         sed_extract_condition1, sed_extract_condition2.
6358
6359 2011-05-23  Bruno Haible  <bruno@clisp.org>
6360
6361         hash: Simplify autoconf macro.
6362         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6363
6364 2011-05-23  Bruno Haible  <bruno@clisp.org>
6365
6366         getugroups: Fix module description.
6367         * modules/getugroups (Include): Set to "getugroups.h".
6368
6369 2011-05-23  Bruno Haible  <bruno@clisp.org>
6370
6371         linkat: Simplify autoconf macro.
6372         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6373
6374 2011-05-23  Bruno Haible  <bruno@clisp.org>
6375             Eric Blake  <eblake@redhat.com>
6376
6377         linkat, renameat: Update dependencies.
6378         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6379         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6380         symlinkat.
6381
6382 2011-05-23  Jim Meyering  <meyering@redhat.com>
6383
6384         maint.mk: more tight_scope improvements
6385         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6386         (_gl_TS_headers): Define only in if-0'd block.
6387         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6388         sometimes we must *not* use it.  Adjust uses accordingly.
6389         (sc_tight_scope): Use much simpler grep-based test to determine
6390         whether we skip this rule.
6391
6392         maint.mk: generalize/improve the tight-scope rule
6393         * top/maint.mk: Emit a warning when the test is skipped.
6394         (_gl_TS_dir): Add $(srcdir)/ prefix.
6395         (_gl_TS_function_match): Simplify, rather than trying
6396         to enumerate common types.  Otherwise, it would fail to match an
6397         "extern unsigned char const *" declaration in idutils.
6398         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6399         a way to support use of that type of macro.
6400         (_gl_TS_var_match): Simplify regexp.
6401         (_gl_TS_obj_files): New configurable variable.
6402         (_gl_TS_headers): Likewise.
6403
6404 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6405
6406         verify: fix bug when gnulib <assert.h> is also included
6407         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6408         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6409         Perhaps there's a better way, but this fixes the immediate problem.
6410         Problem reported by Bruno Haible in
6411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6412
6413 2011-05-22  Bruno Haible  <bruno@clisp.org>
6414
6415         xgetcwd: Simplify autoconf macro.
6416         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6417
6418 2011-05-22  Bruno Haible  <bruno@clisp.org>
6419
6420         New module 'mktime-internal'.
6421         * modules/mktime-internal: New file.
6422         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6423         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6424         mktime_internal as a C macro if libc has __mktime_internal.
6425         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6426         conditions.
6427         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6428
6429 2011-05-22  Bruno Haible  <bruno@clisp.org>
6430
6431         timegm: Correct mktime replacement statements.
6432         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6433         defining mktime as a C macro. This completes a 2009-07-28 commit.
6434
6435 2011-05-22  Bruno Haible  <bruno@clisp.org>
6436
6437         timegm: Simplify autoconf macro.
6438         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6439
6440 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6441
6442         clock-time: change to LGPLv2+.
6443         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6444         BSD-like but we have no mark for that; this is good enough for now.
6445
6446 2011-05-21  Bruno Haible  <bruno@clisp.org>
6447
6448         strerror_r: Fix comments.
6449         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6450
6451 2011-05-21  Bruno Haible  <bruno@clisp.org>
6452
6453         relocatable-prog-wrapper: Fix possible link error.
6454         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6455         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6456         (gl_FUNC_SETENV): ... to here.
6457         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6458         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6459
6460 2011-05-21  Bruno Haible  <bruno@clisp.org>
6461
6462         relocatable-prog-wrapper: Assume strerror() exists.
6463         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6464         m4/strerror.m4.
6465         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6466         * lib/relocwrapper.c: Remove mention of strerror module.
6467         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6468         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6469         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6470         C macro.
6471
6472 2011-05-21  Bruno Haible  <bruno@clisp.org>
6473
6474         select: Simplify replacement idiom.
6475         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6476         Win32 platforms.
6477         * lib/sys_select.in.h (select): Simplify accordingly.
6478         * modules/select (Depends-on): Likewise.
6479
6480 2011-05-21  Bruno Haible  <bruno@clisp.org>
6481
6482         mkdir-p: Simplify autoconf macro.
6483         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6484         gl_FUNC_LCHOWN.
6485
6486 2011-05-21  Eric Blake  <eblake@redhat.com>
6487
6488         strerror_r: avoid clobbering strerror on cygwin
6489         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6490         fall back instead to sys_errlist.
6491         * modules/strerror (configure.ac): Add witness.
6492         * tests/test-strerror_r.c (main): Enhance test.
6493         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6494         * tests/test-perror2.c (main): Free memory before exit.
6495
6496 2011-05-21  Bruno Haible  <bruno@clisp.org>
6497
6498         mkdtemp: Use gnulib naming conventions.
6499         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6500         * modules/mkdtemp (configure.ac): Update.
6501
6502 2011-05-20  Eric Blake  <eblake@redhat.com>
6503
6504         strerror_r: avoid corrupting errno on Solaris
6505         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6506         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6507
6508         strerror_r: avoid compiler warning
6509         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6510
6511         strerror_r: simplify AIX code
6512         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6513
6514         test-perror: avoid spurious failure on FreeBSD
6515         * modules/perror-tests (Depends-on): Add strerror, now that
6516         strerror_r no longer pulls it in.
6517
6518 2011-05-20  Bruno Haible  <bruno@clisp.org>
6519
6520         strerror_r-posix: Remove unused dependencies.
6521         * modules/strerror_r-posix (Depends-on): Remove strerror.
6522         Reported by Eric Blake.
6523
6524 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6525
6526         intprops: remove assumption about A|B representation
6527         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6528         is a valid integer if both A and B are.  Although this is true for
6529         all known practical hosts, the C standard doesn't guarantee it,
6530         and the code need not assume it.  Also, this change may work around
6531         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6533
6534 2011-05-20  Eric Blake  <eblake@redhat.com>
6535
6536         perror: work around FreeBSD bug
6537         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6538         is broken.  Move AC_LIBOBJ...
6539         * modules/perror (configure.ac): Here.
6540         * doc/posix-functions/perror.texi (perror): Document this.
6541         * tests/test-perror2.c (main): Enhance test.
6542
6543         test-perror: check for strerror interactions
6544         * tests/macros.h (STREQ): Add macro.
6545         * modules/perror-tests (Files): Add second test.
6546         * tests/test-perror2.c (main): New file.
6547         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6548
6549         test-perror: rewrite to use init script
6550         * modules/perror-tests (Files): Add init.sh.
6551         * tests/test-perror.sh: Use temporary directory.
6552
6553 2011-05-20  Jim Meyering  <meyering@redhat.com>
6554
6555         maint: replace misused "a" with "an"
6556         * doc/intprops.texi: "a integer"
6557         * doc/regex.texi: "a explanation"
6558         * lib/alignof.h: "a object"
6559         * lib/argmatch.h: "a explanation"
6560         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6561         * lib/stdint.in.h: "a integer"
6562         * lib/userspec.c: "a owner"
6563         * doc/gnulib.texi: Fix "a idea", and reword.
6564
6565 2011-05-19  Jim Meyering  <meyering@redhat.com>
6566
6567         maint: correct misuse of "a" and "an"
6568         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6569         * lib/argp-help.c: "an docum...": s/an/a/
6570         * lib/argp-parse.c: "An vector": s/An/A/
6571         * lib/execute.c: "an native": s/an/a/
6572         * lib/spawn-pipe.c: Likewise.
6573         * lib/gc.h: "an Gc_rc": s/an/a/
6574         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6575         * lib/fts.c: "an stat.st_dev": s/an/a/
6576
6577 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6578
6579         intprops-tests: work around HP-UX 11.23 cc bug with constants
6580         * tests/test-intprops.c (VERIFY): New macro.
6581         (main): Use it, instead of verify, to work around the compiler bug; see
6582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6583
6584         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6585         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6586         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6587         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6588         (_GL_REMAINDER_OVERFLOW): Use it.
6589
6590         intprops-tests: revert unsigned part of previous change
6591         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6592         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6593         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6595
6596 2011-05-19  Bruno Haible  <bruno@clisp.org>
6597
6598         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6599         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6600         strerror_r() returned without filling the buffer.
6601         Reported by Eric Blake.
6602
6603 2011-05-19  Eric Blake  <eblake@redhat.com>
6604
6605         strerror_r: guarantee unchanged errno
6606         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6607         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6608         failure.
6609         * tests/test-strerror_r.c (main): Enhance test.
6610
6611 2011-05-19  Bruno Haible  <bruno@clisp.org>
6612
6613         strerror_r: Reorder #if blocks.
6614         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6615         for consistency with the previous commit.
6616
6617 2011-05-19  Bruno Haible  <bruno@clisp.org>
6618
6619         perror: Avoid clobbering the strerror buffer when possible.
6620         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6621         * lib/strerror.c: Include it.
6622         * modules/strerror (Files): Add lib/strerror-impl.h.
6623         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6624         (my_strerror): New function, defined through lib/strerror-impl.h.
6625         (perror): Use it instead of strerror.
6626         * modules/perror (Files): Add lib/strerror-impl.h.
6627         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6628
6629 2011-05-19  Eric Blake  <eblake@redhat.com>
6630
6631         strerror_r: fix on newer cygwin
6632         * lib/strerror_r.c (strerror_r): Cygwin now has
6633         __xpg_strerror_r, use it.
6634
6635 2011-05-19  Bruno Haible  <bruno@clisp.org>
6636
6637         strerror_r: Avoid clobbering the strerror buffer when possible.
6638         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6639         (sys_nerr, sys_errlist): New declarations.
6640         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6641         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6642         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6643
6644 2011-05-19  Bruno Haible  <bruno@clisp.org>
6645
6646         strerror_r: Fix test failure on mingw.
6647         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6648         EXTEND_STRERROR_R.
6649         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6650         macros from errno.in.h instead.
6651
6652 2011-05-19  Eric Blake  <eblake@redhat.com>
6653
6654         strerror: relax test for Solaris
6655         * tests/test-strerror.c (main): Permit Solaris behavior.
6656         * tests/test-strerror_r.c (main): Likewise.
6657
6658         strerror: enforce POSIX ruling on strerror(0)
6659         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6660         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6661         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6662         * doc/posix-functions/strerror.texi (strerror): Document it.
6663         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6664         * tests/test-strerror.c (main): Strengthen test.
6665         * tests/test-strerror_r.c (main): Likewise.
6666
6667 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6668
6669         intprop-tests: port to older and more-pedantic compilers
6670         * modules/intprops-tests (Files): Add tests/macros.h.
6671         * tests/test-intprops.c: Include macros.h.
6672         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6673         it's no longer documented to expand to an integer constant expression.
6674         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6675         argument is floating point, as it's no longer documented to expand
6676         to an integer constant expression in that case.
6677         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6678         compiler bugs reported by Bruno Haible.  See
6679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6680         (U0, U1): New constants, to work around the same bugs.  Also,
6681         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6682
6683         intprops: work around C compiler bugs
6684         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6685         bug in Sun C 5.11 2010/08/13 and other compilers; see
6686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6687
6688         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6689         * doc/intprops.texi (Integer Type Determination): Fix
6690         documentation for TYPE_IS_INTEGER: it returns an constant
6691         expression, not an integer constant expression.  Fix doc for
6692         TYPE_SIGNED: it returns an integer constant expression only if its
6693         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6694         hardly worth documented that way....)
6695
6696 2011-05-18  Bruno Haible  <bruno@clisp.org>
6697
6698         strerror_r: Avoid clobbering the strerror buffer when possible.
6699         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6700         Handle gnulib defined errno values here. When strerror() returns NULL
6701         or an empty string, return EINVAL.
6702         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6703         gnulib defined errno values here.
6704         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6705
6706 2011-05-18  Eric Blake  <eblake@redhat.com>
6707
6708         fnmatch: avoid compiler warning
6709         * lib/fnmatch_loop.c (FCT): Use correct type.
6710         Reported by Matthias Bolte.
6711
6712 2011-05-13  Jim Meyering  <meyering@redhat.com>
6713
6714         maint.mk: three new prohibit_<HDR>_without_use rules
6715         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6716         (sc_prohibit_stdio-safer_without_use): Likewise.
6717         (sc_prohibit_xfreopen_without_use): Likewise.
6718
6719 2011-05-17  Jim Meyering  <meyering@redhat.com>
6720
6721         announce-gen: fail if the NEWS delta is empty
6722         If there's nothing noteworthy in NEWS, then either you forgot
6723         or you shouldn't be releasing.
6724         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6725
6726 2011-05-17  Pádraig Brady <P@draigBrady.com>
6727
6728         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6729         reserved symbols starting with double underscore from the check.
6730
6731 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6732
6733         intprops: add doc
6734         * doc/intprops.texi: New file, documenting intprops.
6735         * doc/gnulib.texi (Particular Modules): Include it.
6736
6737         verify: add doc to gnulib manual and fix example
6738         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6739         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6740         (Compile-time Assertions): Fix example so it can't overflow.
6741
6742 2011-05-17  Jim Meyering  <meyering@redhat.com>
6743
6744         warnings.m4: don't usurp save_CPPFLAGS variable name
6745         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6746
6747         doc: fix typo
6748         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6749
6750 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6751             Bruno Haible  <bruno@clisp.org>
6752
6753         doc: Tweak recent change.
6754         * README (Portability guidelines): Tweak new text.
6755         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6756         Interix 6.1.
6757
6758 2011-05-16  Eric Blake  <eblake@redhat.com>
6759
6760         inttypes: avoid autoconf warning
6761         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6762         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6763
6764 2011-05-16  Sam Steingold <sds@gnu.org>
6765         and Eric Blake  <eblake@redhat.com>
6766
6767         vc-list-files: accept multiple directory operands
6768         * build-aux/vc-list-files: Iterate over all remaining operands.
6769
6770 2011-05-16  Bruno Haible  <bruno@clisp.org>
6771
6772         Fix confusion regarding deprecated modules.
6773         * modules/calloc (Status, Notice): Mark module as deprecated, not
6774         obsolete.
6775         * modules/fnmatch-posix (Status, Notice): Likewise.
6776         * modules/getdate (Status, Notice): Likewise.
6777         * modules/getopt (Status, Notice): Likewise.
6778         * modules/malloc (Status, Notice): Likewise.
6779         * modules/pipe (Status, Notice): Likewise.
6780         * modules/realloc (Status, Notice): Likewise.
6781         * modules/rename-dest-slash (Status, Notice): Likewise.
6782         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6783         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6784         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6785         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6786         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6787
6788 2011-05-16  Bruno Haible  <bruno@clisp.org>
6789
6790         doc: List the target platforms.
6791         * doc/gnulib-intro.texi (Target Platforms): New section.
6792         * doc/gnulib.texi (Introduction): Update menu.
6793         * README (Portability guidelines): Refer to the new section. Update
6794         statement about oldest supported environment. Remove rationale why
6795         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6796         unportable C89 function.
6797         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6798         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6799
6800 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6801
6802         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6803
6804 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6805
6806         intprops-tests: new module
6807         * modules/intprops-tests, tests/test-intprops.c: New files.
6808
6809         intprops: add safe, portable integer overflow checking
6810         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6811         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6812         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6813         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6814         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6815         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6816         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6817         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6818         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6819         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6820         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6821
6822 2011-05-12  James Youngman  <jay@gnu.org>
6823
6824         Add a test for glibc's Bugzilla bug #12378.
6825         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6826         doesn't allow the literal matching of a lone "[" (which is
6827         required by POSIX).
6828         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6829
6830 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6831
6832         Sync glibc change fixing Bugzilla bug #12378.
6833         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6834         beginning and fall back to matching as normal character if the
6835         string ends before the matching ']' is found.  This is what POSIX
6836         requires.
6837
6838 2011-05-13  Eric Blake  <eblake@redhat.com>
6839
6840         getcwd-lgpl: relax test for FreeBSD
6841         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6842         issue.
6843         * tests/test-getcwd-lgpl.c (main): Relax test.
6844         Reported by Matthias Bolte.
6845
6846 2011-05-11  Eric Blake  <eblake@redhat.com>
6847
6848         test-fflush: silence compiler warning
6849         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6850
6851 2011-05-11  Bruno Haible  <bruno@clisp.org>
6852
6853         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6854         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6855         * modules/canonicalize (Depends-on): Add 'nocrash'.
6856         * modules/canonicalize-lgpl (Depends-on): Likewise.
6857         * doc/posix-functions/realpath.texi: Update platforms list.
6858         Reported by Ryan Schmidt <ryandesign@macports.org>.
6859
6860 2011-05-11  Bruno Haible  <bruno@clisp.org>
6861
6862         group-member: Declare function in <unistd.h>.
6863         * lib/unistd.in.h (group_member): New declaration.
6864         * lib/group-member.h: Remove file.
6865         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6866         * tests/test-unistd-c++.cc: Check signature of group_member.
6867         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6868         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6869         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6870         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6871         HAVE_GROUP_MEMBER.
6872         * modules/group-member (Files): Remove lib/group-member.h.
6873         (Depends-on): Add unistd. Specify conditions.
6874         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6875         (Include): Change to <unistd.h>.
6876         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6877         HAVE_GROUP_MEMBER.
6878         * NEWS: Mention the change.
6879         * lib/euidaccess.c: Don't include group-member.h.
6880
6881 2011-05-11  Bruno Haible  <bruno@clisp.org>
6882
6883         group-member: Document module.
6884         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6885         module.
6886
6887 2011-05-11  Bruno Haible  <bruno@clisp.org>
6888
6889         fclose: Fix mistake earlier today.
6890         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6891
6892 2011-05-11  Eric Blake  <eblake@redhat.com>
6893
6894         fclose: preserve fflush errors
6895         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6896         Reported by Jim Meyering.
6897
6898         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6899         * build-aux/bootstrap (check_versions): When no specific version
6900         is required, merely check that the app produces an exit status
6901         that indicates its existence.
6902
6903         maint.mk: drop redundant check
6904         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6905         the same but better.
6906
6907 2011-05-11  Bruno Haible  <bruno@clisp.org>
6908
6909         fclose: Fix possible link error.
6910         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6911         unregister_shadow_fd. Improve comments.
6912         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6913         Eric Blake.
6914
6915 2011-05-11  Jim Meyering  <meyering@redhat.com>
6916
6917         maint.mk: improve "can not" detection and generalize rule name
6918         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6919         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6920         Use the same technique as in sc_prohibit_doubled_word, so that
6921         we recognize "can not" also when the words are separated by a newline.
6922         Suggested by Eric Blake.
6923         (perl_filename_lineno_text_): Define.  Factored out of...
6924         (prohibit_doubled_word_): ...here.  Use the new definition.
6925         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6926         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6927         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6928
6929 2011-05-10  Eric Blake  <eblake@redhat.com>
6930
6931         fclose: avoid double close race when possible
6932         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6933         all but WINDOWS_SOCKETS.
6934
6935 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6936
6937         openat: correct new comment
6938         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6939
6940 2011-05-10  Jim Meyering  <meyering@redhat.com>
6941
6942         openat: add comments
6943         * lib/openat-proc.c (openat_proc_name): Add comments,
6944         mostly from Eric Blake.
6945
6946 2011-05-09  Eric Blake  <eblake@redhat.com>
6947
6948         openat: reduce syscalls in first probe of /proc
6949         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6950         be a directory.  Simplify the probe for .. bugs.
6951         * modules/openat (Depends-on): Drop same-inode.
6952         Reported by Bastien ROUCARIES.
6953
6954 2011-05-09  Jim Meyering  <meyering@redhat.com>
6955
6956         maint.mk: change semantics/name of tight_scope variables
6957         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6958         Rename variables to align with semantics that make them more useful.
6959
6960         maint.mk: tweak new rule's name not to impinge
6961         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6962         (sc_tight_scope): Use new rule name rather than $@-0.
6963
6964         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6965         * top/maint.mk (sc_tight_scope): New rule.
6966         (sc_tight_scope-0): New rule, ifdef'd out.
6967         (_gl_TS_dir): Default.
6968         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6969         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6970
6971 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6972
6973         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6974         Haible <bruno@clisp.org>.
6975
6976 2011-05-08  Bruno Haible  <bruno@clisp.org>
6977
6978         Comments.
6979         * m4/isnanf.m4: Add comment.
6980         * m4/isnanl.m4: Likewise.
6981
6982 2011-05-08  Bruno Haible  <bruno@clisp.org>
6983
6984         glob: Remove obsolete macro.
6985         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6986
6987 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6988
6989         intprops: Sun C 5.11 supports __typeof__
6990         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6991         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6992         which is new.
6993         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6994
6995         intprops: switch to usual gnulib indenting and naming
6996         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6997         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6998
6999         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7000
7001 2011-05-08  Jim Meyering  <meyering@redhat.com>
7002
7003         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7004         * top/maint.mk (release-prep): Use make's --no-print-directory
7005         option when generating the announcement.  This eliminates the
7006         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7007         generated announcement template.
7008
7009 2011-05-08  Bruno Haible  <bruno@clisp.org>
7010
7011         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7012         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7013         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7014
7015 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7016
7017         ignore-value, verify: Omit include files from lib_SOURCES.
7018         * modules/ignore-value, modules/verify (Makefile.am):
7019         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7020         that leads Automake to duplicate use of am__objects_... variables
7021         in Makefile.in.  See
7022         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7023
7024 2011-05-07  Bruno Haible  <bruno@clisp.org>
7025
7026         fclose: Simplify autoconf macro.
7027         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7028         defined.
7029
7030 2011-05-07  Bruno Haible  <bruno@clisp.org>
7031
7032         canonicalize-lgpl: Fix autoconf macro ordering bug.
7033         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7034         gl_STDLIB_H_DEFAULTS.
7035
7036 2011-05-06  Eric Blake  <eblake@redhat.com>
7037
7038         maintainer-makefile: make sc_po_check easier to tune
7039         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7040         to probe for strings, such as an alternate location for gnulib.
7041
7042         fclose: guarantee behavior on seekable stdin
7043         * modules/fclose (Depends-on): Add fflush.
7044         * doc/posix-functions/fclose.texi (fclose): Document this.
7045         * tests/test-fclose.c (main): Make test for this unconditional.
7046
7047 2011-05-06  Bruno Haible  <bruno@clisp.org>
7048
7049         fflush, fpurge: Relicense under LGPLv2+.
7050         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7051         * modules/fpurge (License): Likewise.
7052         With permission from Eric Blake and Jim Meyering.
7053         Suggested by Eric Blake.
7054
7055 2011-05-06  Karl Berry  <karl@gnu.org>
7056
7057         * MODULES.html.sh (func_all_modules): remove exit.
7058
7059 2011-05-06  Jim Meyering  <meyering@redhat.com>
7060
7061         maint.mk: use info-gnu@ as the default only for a stable release
7062         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7063         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7064         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7065         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7066
7067 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7068
7069         assert-h: new module, which supports C1X-style static_assert
7070         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7071         * lib/verify.h: Revamp so that this can be copied into assert.h,
7072         while retaining the ability to use it standalone as before.
7073         Rename private identifiers so as not to encroach on the
7074         standard C namespace, since this is now used by assert.h.
7075         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7076         the old verify_true.
7077         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7078         the old verify_true.  Use _GL_VERIFY_TYPE.
7079         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7080         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7081         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7082         defined when this file is copied into the replacement assert.h.
7083         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7084         and _Static_assert is not built in.
7085         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7086         defined, and use the new macros mentioned above.
7087         * doc/posix-headers/assert.texi: Document this.
7088
7089 2011-05-05  Bruno Haible  <bruno@clisp.org>
7090
7091         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7092         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7093         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7094         gl_REPLACE_FCLOSE here.
7095         * modules/fflush (Depends-on): Remove fclose.
7096         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7097         combination with module 'fclose'.
7098
7099 2011-05-05  Bruno Haible  <bruno@clisp.org>
7100
7101         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7102         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7103         gl_FUNC_FFLUSH.
7104         (gl_FUNC_FFLUSH): Use it.
7105         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7106         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7107         gl_REPLACE_FSEEKO here.
7108
7109 2011-05-05  Bruno Haible  <bruno@clisp.org>
7110
7111         tzset: Relicense under LGPL.
7112         * modules/tzset (License): Change to LGPL.
7113         No agreement needed; it's a no-op.
7114
7115         strtoimax, strtoumax: Relicense under LGPL.
7116         * modules/strtoimax (License): Change to LGPL.
7117         * modules/strtoumax (License): Likewise.
7118         With permission from Jim Meyering, Paul Eggert:
7119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7121
7122         getgroups: Relicense under LGPL.
7123         * modules/getgroups (License): Change to LGPL.
7124         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7128
7129         nanosleep: Relicense under LGPL.
7130         * modules/nanosleep (License): Change to LGPL.
7131         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7132         Haible:
7133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7137
7138         futimens: Relicense under LGPL.
7139         * modules/futimens (License): Change to LGPL.
7140         With permission from Eric Blake:
7141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7142
7143         fflush: Relicense under LGPL.
7144         * modules/fflush (License): Change to LGPL.
7145         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7149
7150         tmpfile: Relicense under LGPL.
7151         * modules/tmpfile (License): Change to LGPL.
7152         With permission from Ben Pfaff:
7153         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7154
7155         isfinite: Relicense under LGPL.
7156         * modules/isfinite (License): Change to LGPL.
7157         With permission from Ben Pfaff, Bruno Haible:
7158         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7160
7161         acosl..tanl: Relicense under LGPL.
7162         * modules/acosl (License): Change to LGPL.
7163         * modules/asinl (License): Likewise.
7164         * modules/atanl (License): Likewise.
7165         * modules/cosl (License): Likewise.
7166         * modules/expl (License): Likewise.
7167         * modules/logl (License): Likewise.
7168         * modules/sinl (License): Likewise.
7169         * modules/sqrtl (License): Likewise.
7170         * modules/tanl (License): Likewise.
7171         Source code originally from glibc and Paolo Bonzini. Agreements:
7172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7174
7175 2011-05-05  Bruno Haible  <bruno@clisp.org>
7176
7177         signal: Define sighandler_t.
7178         * lib/signal.in.h (sighandler_t): New type.
7179         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7180         whether sighandler_t is defined.
7181         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7182         * modules/signal (Depends-on): Add extensions.
7183         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7184         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7185         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7186
7187 2011-05-05  Eric Blake  <eblake@redhat.com>
7188
7189         maint: remove useless REPLACE_*_H macros
7190         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7191         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7192         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7193         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7194         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7195         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7196         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7197         * m4/btowc.m4: Update callers.
7198         * m4/dirfd.m4: Likewise.
7199         * m4/duplocale.m4: Likewise.
7200         * m4/fchdir.m4: Likewise.
7201         * m4/fdopendir.m4: Likewise.
7202         * m4/inet_ntop.m4: Likewise.
7203         * m4/inet_pton.m4: Likewise.
7204         * m4/ioctl.m4: Likewise.
7205         * m4/mbrlen.m4: Likewise.
7206         * m4/mbrtowc.m4: Likewise.
7207         * m4/mbsinit.m4: Likewise.
7208         * m4/mbsnrtowcs.m4: Likewise.
7209         * m4/mbsrtowcs.m4: Likewise.
7210         * m4/poll.m4: Likewise.
7211         * m4/setlocale.m4: Likewise.
7212         * m4/wcrtomb.m4: Likewise.
7213         * m4/wcsnrtombs.m4: Likewise.
7214         * m4/wcsrtombs.m4: Likewise.
7215         * m4/wctob.m4: Likewise.
7216         * m4/wcwidth.m4: Likewise.
7217         * modules/posix_spawn: Likewise.
7218         * modules/posix_spawn_file_actions_addclose: Likewise.
7219         * modules/posix_spawn_file_actions_adddup2: Likewise.
7220         * modules/posix_spawn_file_actions_addopen: Likewise.
7221         * modules/posix_spawn_file_actions_destroy: Likewise.
7222         * modules/posix_spawn_file_actions_init: Likewise.
7223         * modules/posix_spawnattr_destroy: Likewise.
7224         * modules/posix_spawnattr_getflags: Likewise.
7225         * modules/posix_spawnattr_getpgroup: Likewise.
7226         * modules/posix_spawnattr_getschedparam: Likewise.
7227         * modules/posix_spawnattr_getschedpolicy: Likewise.
7228         * modules/posix_spawnattr_getsigdefault: Likewise.
7229         * modules/posix_spawnattr_getsigmask: Likewise.
7230         * modules/posix_spawnattr_init: Likewise.
7231         * modules/posix_spawnattr_setflags: Likewise.
7232         * modules/posix_spawnattr_setpgroup: Likewise.
7233         * modules/posix_spawnattr_setschedparam: Likewise.
7234         * modules/posix_spawnattr_setschedpolicy: Likewise.
7235         * modules/posix_spawnattr_setsigdefault: Likewise.
7236         * modules/posix_spawnattr_setsigmask: Likewise.
7237         * modules/posix_spawnp: Likewise.
7238
7239 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7240
7241         Add option to do-release-commit-and-tag to specify branch.
7242         * build-aux/do-release-commit-and-tag: Add --branch.
7243
7244 2011-05-03  Bruno Haible  <bruno@clisp.org>
7245
7246         Avoid unnecessary compilation units, through conditional dependencies.
7247         * modules/accept (Depends-on): Add conditions to the dependencies.
7248         * modules/acosl (Depends-on): Likewise.
7249         * modules/argz (Depends-on): Likewise.
7250         * modules/asinl (Depends-on): Likewise.
7251         * modules/atanl (Depends-on): Likewise.
7252         * modules/atoll (Depends-on): Likewise.
7253         * modules/bind (Depends-on): Likewise.
7254         * modules/btowc (Depends-on): Likewise.
7255         * modules/canonicalize-lgpl (Depends-on): Likewise.
7256         * modules/ceil (Depends-on): Likewise.
7257         * modules/ceilf (Depends-on): Likewise.
7258         * modules/ceill (Depends-on): Likewise.
7259         * modules/chdir-long (Depends-on): Likewise.
7260         * modules/chown (Depends-on): Likewise.
7261         * modules/close (Depends-on): Likewise.
7262         * modules/connect (Depends-on): Likewise.
7263         * modules/cosl (Depends-on): Likewise.
7264         * modules/dirfd (Depends-on): Likewise.
7265         * modules/dprintf (Depends-on): Likewise.
7266         * modules/dprintf-posix (Depends-on): Likewise.
7267         * modules/error (Depends-on): Likewise.
7268         * modules/euidaccess (Depends-on): Likewise.
7269         * modules/expl (Depends-on): Likewise.
7270         * modules/faccessat (Depends-on): Likewise.
7271         * modules/fchdir (Depends-on): Likewise.
7272         * modules/fclose (Depends-on): Likewise.
7273         * modules/fcntl (Depends-on): Likewise.
7274         * modules/fdopendir (Depends-on): Likewise.
7275         * modules/fflush (Depends-on): Likewise.
7276         * modules/floor (Depends-on): Likewise.
7277         * modules/floorf (Depends-on): Likewise.
7278         * modules/floorl (Depends-on): Likewise.
7279         * modules/fnmatch (Depends-on): Likewise.
7280         * modules/fopen (Depends-on): Likewise.
7281         * modules/fprintf-posix (Depends-on): Likewise.
7282         * modules/frexp (Depends-on): Likewise.
7283         * modules/frexp-nolibm (Depends-on): Likewise.
7284         * modules/frexpl (Depends-on): Likewise.
7285         * modules/frexpl-nolibm (Depends-on): Likewise.
7286         * modules/fseek (Depends-on): Likewise.
7287         * modules/fsusage (Depends-on): Likewise.
7288         * modules/ftell (Depends-on): Likewise.
7289         * modules/ftello (Depends-on): Likewise.
7290         * modules/futimens (Depends-on): Likewise.
7291         * modules/getcwd (Depends-on): Likewise.
7292         * modules/getcwd-lgpl (Depends-on): Likewise.
7293         * modules/getdelim (Depends-on): Likewise.
7294         * modules/getdomainname (Depends-on): Likewise.
7295         * modules/getgroups (Depends-on): Likewise.
7296         * modules/gethostname (Depends-on): Likewise.
7297         * modules/getline (Depends-on): Likewise.
7298         * modules/getlogin_r (Depends-on): Likewise.
7299         * modules/getopt-posix (Depends-on): Likewise.
7300         * modules/getpeername (Depends-on): Likewise.
7301         * modules/getsockname (Depends-on): Likewise.
7302         * modules/getsockopt (Depends-on): Likewise.
7303         * modules/getsubopt (Depends-on): Likewise.
7304         * modules/getusershell (Depends-on): Likewise.
7305         * modules/glob (Depends-on): Likewise.
7306         * modules/grantpt (Depends-on): Likewise.
7307         * modules/iconv_open (Depends-on): Likewise.
7308         * modules/iconv_open-utf (Depends-on): Likewise.
7309         * modules/inet_ntop (Depends-on): Likewise.
7310         * modules/inet_pton (Depends-on): Likewise.
7311         * modules/ioctl (Depends-on): Likewise.
7312         * modules/isapipe (Depends-on): Likewise.
7313         * modules/isfinite (Depends-on): Likewise.
7314         * modules/isinf (Depends-on): Likewise.
7315         * modules/lchown (Depends-on): Likewise.
7316         * modules/ldexpl (Depends-on): Likewise.
7317         * modules/link (Depends-on): Likewise.
7318         * modules/linkat (Depends-on): Likewise.
7319         * modules/listen (Depends-on): Likewise.
7320         * modules/logl (Depends-on): Likewise.
7321         * modules/lstat (Depends-on): Likewise.
7322         * modules/mbrlen (Depends-on): Likewise.
7323         * modules/mbrtowc (Depends-on): Likewise.
7324         * modules/mbsinit (Depends-on): Likewise.
7325         * modules/mbsnrtowcs (Depends-on): Likewise.
7326         * modules/mbsrtowcs (Depends-on): Likewise.
7327         * modules/mbtowc (Depends-on): Likewise.
7328         * modules/memcmp (Depends-on): Likewise.
7329         * modules/mkdir (Depends-on): Likewise.
7330         * modules/mkdtemp (Depends-on): Likewise.
7331         * modules/mkfifo (Depends-on): Likewise.
7332         * modules/mkfifoat (Depends-on): Likewise.
7333         * modules/mknod (Depends-on): Likewise.
7334         * modules/mkostemp (Depends-on): Likewise.
7335         * modules/mkostemps (Depends-on): Likewise.
7336         * modules/mkstemp (Depends-on): Likewise.
7337         * modules/mkstemps (Depends-on): Likewise.
7338         * modules/mktime (Depends-on): Likewise.
7339         * modules/nanosleep (Depends-on): Likewise.
7340         * modules/open (Depends-on): Likewise.
7341         * modules/openat (Depends-on): Likewise.
7342         * modules/perror (Depends-on): Likewise.
7343         * modules/poll (Depends-on): Likewise.
7344         * modules/popen (Depends-on): Likewise.
7345         * modules/posix_spawn (Depends-on): Likewise.
7346         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7347         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7348         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7349         * modules/posix_spawnp (Depends-on): Likewise.
7350         * modules/pread (Depends-on): Likewise.
7351         * modules/printf-posix (Depends-on): Likewise.
7352         * modules/ptsname (Depends-on): Likewise.
7353         * modules/putenv (Depends-on): Likewise.
7354         * modules/pwrite (Depends-on): Likewise.
7355         * modules/readline (Depends-on): Likewise.
7356         * modules/readlink (Depends-on): Likewise.
7357         * modules/readlinkat (Depends-on): Likewise.
7358         * modules/recv (Depends-on): Likewise.
7359         * modules/recvfrom (Depends-on): Likewise.
7360         * modules/regex (Depends-on): Likewise.
7361         * modules/remove (Depends-on): Likewise.
7362         * modules/rename (Depends-on): Likewise.
7363         * modules/renameat (Depends-on): Likewise.
7364         * modules/rmdir (Depends-on): Likewise.
7365         * modules/round (Depends-on): Likewise.
7366         * modules/roundf (Depends-on): Likewise.
7367         * modules/roundl (Depends-on): Likewise.
7368         * modules/rpmatch (Depends-on): Likewise.
7369         * modules/select (Depends-on): Likewise.
7370         * modules/send (Depends-on): Likewise.
7371         * modules/sendto (Depends-on): Likewise.
7372         * modules/setenv (Depends-on): Likewise.
7373         * modules/setlocale (Depends-on): Likewise.
7374         * modules/setsockopt (Depends-on): Likewise.
7375         * modules/shutdown (Depends-on): Likewise.
7376         * modules/sigaction (Depends-on): Likewise.
7377         * modules/signbit (Depends-on): Likewise.
7378         * modules/sigprocmask (Depends-on): Likewise.
7379         * modules/sinl (Depends-on): Likewise.
7380         * modules/sleep (Depends-on): Likewise.
7381         * modules/snprintf (Depends-on): Likewise.
7382         * modules/snprintf-posix (Depends-on): Likewise.
7383         * modules/socket (Depends-on): Likewise.
7384         * modules/sprintf-posix (Depends-on): Likewise.
7385         * modules/sqrtl (Depends-on): Likewise.
7386         * modules/stat (Depends-on): Likewise.
7387         * modules/strchrnul (Depends-on): Likewise.
7388         * modules/strdup-posix (Depends-on): Likewise.
7389         * modules/strerror (Depends-on): Likewise.
7390         * modules/strerror_r-posix (Depends-on): Likewise.
7391         * modules/strndup (Depends-on): Likewise.
7392         * modules/strnlen (Depends-on): Likewise.
7393         * modules/strptime (Depends-on): Likewise.
7394         * modules/strsep (Depends-on): Likewise.
7395         * modules/strsignal (Depends-on): Likewise.
7396         * modules/strstr-simple (Depends-on): Likewise.
7397         * modules/strtod (Depends-on): Likewise.
7398         * modules/strtoimax (Depends-on): Likewise.
7399         * modules/strtok_r (Depends-on): Likewise.
7400         * modules/strtoumax (Depends-on): Likewise.
7401         * modules/symlink (Depends-on): Likewise.
7402         * modules/symlinkat (Depends-on): Likewise.
7403         * modules/tanl (Depends-on): Likewise.
7404         * modules/tcgetsid (Depends-on): Likewise.
7405         * modules/tmpfile (Depends-on): Likewise.
7406         * modules/trunc (Depends-on): Likewise.
7407         * modules/truncf (Depends-on): Likewise.
7408         * modules/truncl (Depends-on): Likewise.
7409         * modules/uname (Depends-on): Likewise.
7410         * modules/unlink (Depends-on): Likewise.
7411         * modules/unlockpt (Depends-on): Likewise.
7412         * modules/unsetenv (Depends-on): Likewise.
7413         * modules/usleep (Depends-on): Likewise.
7414         * modules/utimensat (Depends-on): Likewise.
7415         * modules/vasprintf (Depends-on): Likewise.
7416         * modules/vdprintf (Depends-on): Likewise.
7417         * modules/vdprintf-posix (Depends-on): Likewise.
7418         * modules/vfprintf-posix (Depends-on): Likewise.
7419         * modules/vprintf-posix (Depends-on): Likewise.
7420         * modules/vsnprintf (Depends-on): Likewise.
7421         * modules/vsnprintf-posix (Depends-on): Likewise.
7422         * modules/vsprintf-posix (Depends-on): Likewise.
7423         * modules/wcrtomb (Depends-on): Likewise.
7424         * modules/wcscasecmp (Depends-on): Likewise.
7425         * modules/wcscspn (Depends-on): Likewise.
7426         * modules/wcsdup (Depends-on): Likewise.
7427         * modules/wcsncasecmp (Depends-on): Likewise.
7428         * modules/wcsnrtombs (Depends-on): Likewise.
7429         * modules/wcspbrk (Depends-on): Likewise.
7430         * modules/wcsrtombs (Depends-on): Likewise.
7431         * modules/wcsspn (Depends-on): Likewise.
7432         * modules/wcsstr (Depends-on): Likewise.
7433         * modules/wcstok (Depends-on): Likewise.
7434         * modules/wcswidth (Depends-on): Likewise.
7435         * modules/wctob (Depends-on): Likewise.
7436         * modules/wctomb (Depends-on): Likewise.
7437         * modules/wctype (Depends-on): Likewise.
7438         * modules/wcwidth (Depends-on): Likewise.
7439         * modules/write (Depends-on): Likewise.
7440
7441 2011-05-03  Bruno Haible  <bruno@clisp.org>
7442
7443         Support for conditional dependencies.
7444         * doc/gnulib.texi (Module description): Document the syntax of
7445         conditional dependencies.
7446         * gnulib-tool: New option --conditional-dependencies.
7447         (func_usage): Document it.
7448         (cond_dependencies): New variable.
7449         (func_get_automake_snippet_conditional,
7450         func_get_automake_snippet_unconditional): New functions, extracted from
7451         func_get_automake_snippet.
7452         (func_get_automake_snippet): Use them.
7453         (sed_first_32_chars): New variable.
7454         (func_module_shellfunc_name): New function.
7455         (func_module_shellvar_name): New function.
7456         (func_module_conditional_name): New function.
7457         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7458         func_cond_module_condition): New functions.
7459         (func_modules_transitive_closure): Add support for conditional
7460         dependencies.
7461         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7462         conditional automake snippet in an automake conditional.
7463         (func_emit_autoconf_snippets): Emit shell functions that contain the
7464         code for conditional modules.
7465         (func_import, func_create_testdir): Update specification.
7466
7467 2011-05-03  Eric Blake  <eblake@redhat.com>
7468
7469         test-getaddrinfo: report error information
7470         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7471
7472 2011-05-03  Jim Meyering  <meyering@redhat.com>
7473
7474         bootstrap: avoid build failure when $GZIP is set
7475         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7476         program name.  If defined at all, it is supposed to list gzip options.
7477         Reported by Alan Curry in http://debbugs.gnu.org/8609
7478
7479 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7480
7481         readme-release: new module with release instructions
7482         * modules/readme-release: New module.
7483         * top/README-release: New file, from coreutils, grep, diffutils.
7484         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7485
7486 2011-05-02  Eric Blake  <eblake@redhat.com>
7487
7488         fflush: also replace fclose when fixing fflush
7489         * modules/fflush (Depends-on): Add fclose.
7490         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7491         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7492         memstreams with no backing fd.
7493         * doc/posix-functions/fclose.texi (fclose): Document the use of
7494         fflush module to fix the bug.
7495         * tests/test-fclose.c (main): Relax test when fclose is used in
7496         isolation.
7497
7498         fclose: add some tests
7499         * modules/fclose-tests: New test module.
7500         * tests/test-fclose.c: New file.
7501         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7502
7503         fclose: reduced dependencies
7504         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7505         simpler lseek.
7506         * lib/fclose.c (rpl_fclose): Likewise.
7507         Reported by Simon Josefsson.
7508
7509         exit: drop remaining clients
7510         * modules/argmatch (Depends-on): Replace exit with stdlib.
7511         * modules/copy-file (Depends-on): Likewise.
7512         * modules/execute (Depends-on): Likewise.
7513         * modules/exitfail (Depends-on): Likewise.
7514         * modules/obstack (Depends-on): Likewise.
7515         * modules/pagealign_alloc (Depends-on): Likewise.
7516         * modules/pipe-filter-gi (Depends-on): Likewise.
7517         * modules/pipe-filter-ii (Depends-on): Likewise.
7518         * modules/savewd (Depends-on): Likewise.
7519         * modules/spawn-pipe (Depends-on): Likewise.
7520         * modules/wait-process (Depends-on): Likewise.
7521         * modules/xsetenv (Depends-on): Likewise.
7522         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7523         * modules/git-merge-changelog (Depends-on): Likewise.
7524         * modules/long-options (Depends-on): Likewise.
7525         * modules/pt_chown (Depends-on): Likewise.
7526         * modules/sysexits (Depends-on): Likewise.
7527
7528         freading: relax license from LGPLv3+ to LGPLv2+
7529         * modules/freading (License): Relax LGPL version.
7530
7531 2011-05-02  Bruno Haible  <bruno@clisp.org>
7532
7533         fchdir: Remove unused dependencies.
7534         * modules/fchdir (Depends-on): Remove include_next.
7535
7536 2011-05-02  Bruno Haible  <bruno@clisp.org>
7537
7538         gnulib-tool: Refactor.
7539         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7540         from func_emit_autoconf_snippets.
7541         (func_emit_autoconf_snippets): Use it.
7542
7543 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7544
7545         * NEWS: Document removal of 'exit'.
7546         * modules/exit: Remove file.
7547
7548 2011-05-01  Bruno Haible  <bruno@clisp.org>
7549
7550         Update DEPENDENCIES.
7551         * DEPENDENCIES (gettext): Recommend the newest release.
7552         Reported by Simon Josefsson.
7553
7554 2011-05-01  Bruno Haible  <bruno@clisp.org>
7555
7556         gnulib-tool: Reduce code duplication.
7557         * gnulib-tool (func_emit_autoconf_snippets): New function.
7558         (func_import, func_create_testdir): Use it.
7559
7560 2011-04-30  Eric Blake  <eblake@redhat.com>
7561
7562         fclose: don't fail on non-seekable input stream
7563         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7564         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7565         since fflush is allowed to fail in that case.
7566
7567 2011-04-30  Bruno Haible  <bruno@clisp.org>
7568
7569         dup3: cleanup
7570         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7571
7572 2011-04-30  Bruno Haible  <bruno@clisp.org>
7573
7574         netdb: Make it work in C++ mode.
7575         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7576         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7577         module.
7578         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7579         gl_MODULE_INDICATOR_FOR_TESTS.
7580         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7581         * modules/netdb-c++-tests: New file.
7582         * tests/test-netdb-c++.cc: New file.
7583
7584 2011-04-30  Bruno Haible  <bruno@clisp.org>
7585
7586         New modules 'vfscanf', 'vscanf'.
7587         * modules/vfscanf: New file.
7588         * modules/vscanf: New file.
7589         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7590         here.
7591         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7592         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7593
7594 2011-04-30  Bruno Haible  <bruno@clisp.org>
7595
7596         passfd: Add comments.
7597         * lib/passfd.c: Add comments about platforms.
7598
7599 2011-04-30  Bruno Haible  <bruno@clisp.org>
7600
7601         sys_uio: Make <sys/uio.h> self-contained.
7602         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7603         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7604
7605 2011-04-30  Bruno Haible  <bruno@clisp.org>
7606
7607         sys_socket: Ensure 'struct iovec' definition.
7608         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7609         <sys/socket.h>.
7610         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7611
7612 2011-04-30  Bruno Haible  <bruno@clisp.org>
7613
7614         sys_uio: Protect definition of 'struct iovec'.
7615         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7616         it as a C struct.
7617
7618 2011-04-30  Bruno Haible  <bruno@clisp.org>
7619
7620         manywarnings: fix indentation
7621         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7622
7623 2011-04-30  Pádraig Brady <P@draigBrady.com>
7624
7625         manywarnings: add -Wno-missing-field-initializers if needed.
7626         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7627         option if it's needed to allow initialization with { 0, }
7628
7629 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7630
7631         announce-gen: cosmetic improvement
7632         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7633
7634 2011-04-29  Jim Meyering  <meyering@redhat.com>
7635
7636         vc-list-files: indent with spaces, not TABs
7637         * build-aux/vc-list-files: Convert leading TABs to spaces,
7638         to match the style of most other files in gnulib.
7639
7640         announce-gen: indent with spaces, not TABs
7641         * build-aux/announce-gen: Convert all TABs to spaces, to match
7642         the style of most other files in gnulib.
7643
7644 2011-04-29  Eric Blake  <eblake@redhat.com>
7645
7646         quotearg: avoid uninitialized variable use
7647         * lib/quotearg.c (quoting_options_from_style): Initialize
7648         remaining fields, and ensure that custom styles are only used via
7649         quoting_options rather than quoting_style.
7650
7651 2011-04-29  Jim Meyering  <meyering@redhat.com>
7652
7653         maint.mk: remove unused VC-tag variable
7654         * top/maint.mk (VC-tag): Remove unused variable.
7655
7656 2011-04-29  Bruno Haible  <bruno@clisp.org>
7657
7658         netdb: fix gai_strerror replacements
7659         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7660         * modules/netdb: Substitute it.
7661
7662 2011-04-29  Jim Meyering  <meyering@redhat.com>
7663
7664         test-getcwd.c: avoid new set-but-not-used warning
7665         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7666         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7667         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7668         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7669
7670         test-hash.c: avoid a new shadowing warning
7671         * tests/test-hash.c (main): Don't shadow "dup".
7672
7673 2011-04-28  Eric Blake  <eblake@redhat.com>
7674
7675         getaddrinfo: fix gai_strerror signature
7676         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7677         and work around mingw with UNICODE defined.
7678         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7679         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7680         * modules/netdb (Makefile.am): Substitute it.
7681         * lib/netdb.in.h (gai_strerror): Declare replacement.
7682         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7683         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7684         the fix.
7685
7686         getsockopt: avoid compiler warning
7687         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7688         Reported by Matthias Bolte.
7689
7690         tests: drop unused link dependency
7691         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7692         * modules/dirent-safer-tests (Makefile.am): Likewise.
7693         * modules/fdopendir-tests (Makefile.am): Likewise.
7694         * modules/mkfifoat-tests (Makefile.am): Likewise.
7695         * modules/openat-safer-tests (Makefile.am): Likewise.
7696         * modules/openat-tests (Makefile.am): Likewise.
7697         * modules/readlinkat-tests (Makefile.am): Likewise.
7698         * modules/symlinkat-tests (Makefile.am): Likewise.
7699         * modules/linkat-tests (Makefile.am): Likewise.
7700         (Depends-on): Switch to filenamecat-lgpl.
7701         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7702         LIBINTL.
7703         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7704         * tests/test-linkat.c (main): Don't require xalloc.
7705
7706         hash, mgetgroups: drop xalloc dependency
7707         * lib/hash.c (includes): Adjust includes.
7708         * lib/mgetgroups.c (includes): Likewise.
7709         (xgetgroups): Move...
7710         * lib/xgetgroups.c: ...to new file.
7711         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7712         * modules/xgetgroups: New file, split from...
7713         * modules/mgetgroups: ...here.
7714         (Depends-on): Add xalloc-oversized.
7715         * modules/hash (Depends-on): Likewise.
7716         * modules/hash-tests (Depends-on): Drop xalloc.
7717         (test_hash_LDADD): Drop unused library.
7718         * tests/test-hash.c (main): Break xalloc dependency.
7719         (includes): Drop unused include.
7720
7721         xalloc-oversized: new module
7722         * modules/xalloc-oversized: New module.
7723         * modules/xalloc (Depends-on): Add it.
7724         * lib/xalloc.h (xalloc_oversized): Move...
7725         * lib/xalloc-oversized.h: ...into new file.
7726
7727         utimecmp: drop dependency on xmalloc
7728         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7729         due to memory pressure.
7730         * modules/utimecmp (Depends-on): Drop xalloc.
7731
7732 2011-04-27  Eric Blake  <eblake@redhat.com>
7733
7734         getcwd: fix mingw bugs
7735         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7736         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7737         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7738
7739 2011-04-27  Bruno Haible  <bruno@clisp.org>
7740
7741         mkstemps: Ensure declaration on MacOS X 10.5.
7742         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7743         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7744         MacOS X.
7745
7746 2011-04-27  Bruno Haible  <bruno@clisp.org>
7747
7748         mkstemp: More documentation.
7749         * doc/posix-functions/mkstemp.texi: Document header file problem on
7750         MacOS X.
7751
7752 2011-04-27  Bruno Haible  <bruno@clisp.org>
7753
7754         mkstemp: Tweak configure message when cross-compiling.
7755         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7756         result as a guess.
7757
7758 2011-04-27  Bruno Haible  <bruno@clisp.org>
7759
7760         clean-temp: Clarify what it does.
7761         * lib/clean-temp.h: Add more comments.
7762         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7763         module.
7764         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7765         * doc/glibc-functions/mkstemps.texi: Likewise.
7766         * doc/glibc-functions/mkostemps.texi: Likewise.
7767
7768 2011-04-27  Eric Blake  <eblake@redhat.com>
7769
7770         fchdir: avoid extra chdir and fix test
7771         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7772         getcwd-lgpl.
7773         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7774         have to be canonical.
7775         (canonicalize_file_name): Drop unused macro.
7776         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7777
7778         filenamecat-lgpl: fix licence
7779         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7780         when it was first created.
7781
7782         linkat, renameat: add missing dependency
7783         * modules/linkat (Depends-on): Require getcwd-lgpl.
7784         * modules/renameat (Depends-on): Likewise.
7785
7786         tests: reduce dependencies
7787         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7788         * tests/test-renameat.c (main): Likewise.
7789         * modules/linkat-tests (Depends-on): Relax dependency.
7790         * modules/renameat-tests (Depends-on): Likewise.
7791         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7792         dependency explicit.
7793
7794         save-cwd: reduce default dependency
7795         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7796         * lib/save-cwd.c: Update comments.
7797         * NEWS: Document the semantic change.
7798
7799         getcwd: enhance tests
7800         * tests/test-getcwd-lgpl.c: New file, taken from...
7801         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7802         repeat long path stress tests from m4 probe.
7803         * modules/getcwd-lgpl-tests: New module.
7804         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7805         * m4/getcwd-abort-bug.m4: Update comment.
7806         * m4/getcwd-path-max.m4: Likewise.
7807
7808         getcwd-lgpl: new module
7809         * modules/getcwd-lgpl: New module.
7810         * lib/getcwd-lgpl.c: New file.
7811         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7812         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7813         * modules/getcwd (configure.ac): Set C witness.
7814         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7815
7816         getcwd: tweak comments
7817         * m4/getcwd-abort-bug.m4: Fix comments.
7818         * m4/getcwd-path-max.m4: Likewise.
7819         * m4/getcwd.m4: Likewise.
7820
7821 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7822         and Eric Blake  <eblake@redhat.com>
7823
7824         mkstemp: replace if system version uses wrong permissions
7825         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7826         read/write mode bits set in file created by mkstemp.
7827         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7828
7829 2011-04-27  Eric Blake  <eblake@redhat.com>
7830
7831         passfd: avoid compiler warning
7832         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7833         Reported by Laine Stump.
7834
7835 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7836
7837         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7838         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7839
7840 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7841         and Eric Blake  <eblake@redhat.com>
7842
7843         mkstemp: mention clean-temp module
7844         * lib/mkstemp.c: Add comment.
7845         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7846
7847 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7848
7849         inttypes: also provide default values for 32-bit tests
7850         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7851         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7852
7853 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7854
7855         strtoumax: remove dependency on strtoimax
7856         This is like the strtoull change of yesterday.
7857         * modules/strtoumax (Files): Add lib/strtoimax.c.
7858         (Depends-on): Remove strtoimax and add verify.
7859
7860         inttypes-incomplete: new module
7861         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7862         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7863         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7864         of gl_INTTYPES_H.
7865         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7866         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7867         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7868         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7869         * modules/strtoumax, modules/xstrtol (Depends-on):
7870         Depend on inttypes-incomplete, not inttypes.
7871         * modules/inttypes-incomplete: New module, containing the contents
7872         of the old modules/inttypes module, except that the Files: section
7873         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7874         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7875         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7876         (Depends-on): Depend only on inttypes-incomplete.
7877         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7878
7879         inttypes: omit now-redundant strtoimax and strtoumax work
7880         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7881         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7882
7883         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7884         This supports apps that need pointers to strtoimax and strtoumax,
7885         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7886         nonexistent functions.  See
7887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7888         et seq.
7889         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7890         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7891         a macro.
7892         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7893
7894 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7895
7896         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7897
7898 2011-04-25  Bruno Haible  <bruno@clisp.org>
7899
7900         strtol, strtoul: Mark modules as obsolete.
7901         * modules/strtol (Status, Notice): New sections.
7902         * modules/strtoul (Status, Notice): New sections.
7903
7904 2011-04-25  Bruno Haible  <bruno@clisp.org>
7905
7906         strtod: Remove check for strtod, unless supporting old platforms.
7907         * modules/strtod-obsolete: New file.
7908         * m4/strtod-obsolete.m4: New file.
7909         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7910         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7911         * modules/strtod (Depends-on): Add strtod-obsolete.
7912         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7913
7914 2011-04-25  Bruno Haible  <bruno@clisp.org>
7915
7916         strcase: Make module obsolete.
7917         * modules/strcase (Status, Notice): New sections.
7918
7919 2011-04-25  Bruno Haible  <bruno@clisp.org>
7920
7921         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7922         * modules/dup2-obsolete: New file.
7923         * m4/dup2-obsolete.m4: New file.
7924         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7925         gl_FUNC_DUP2_OBSOLETE is not also defined.
7926         * modules/dup2 (Depends-on): Add dup2-obsolete.
7927         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7928
7929 2011-04-25  Bruno Haible  <bruno@clisp.org>
7930
7931         strnlen: Avoid memchr related link error on old obsolete platforms.
7932         * modules/memchr-obsolete: New file.
7933         * m4/memchr-obsolete.m4: New file.
7934         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7935         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7936         * modules/memchr (Depends-on): Add memchr-obsolete.
7937         * modules/strnlen (Depends-on): Likewise.
7938         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7939
7940 2011-04-25  Jim Meyering  <meyering@redhat.com>
7941
7942         maint.mk: makefile_at_at_check extend and clean up
7943         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7944         in addition to */Makefile.am.
7945         Exempt legitimate uses of @VAR@ notation, e.g.,
7946         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7947         Remove obsolete coreutils-specific comment.
7948         Prompted by discussion here:
7949         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7950
7951 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7952
7953         strtoul: remove dependency on strtol
7954         This is so that 'configure' need not check for strtol merely because
7955         the application needs strtoul.
7956         * modules/strtoul (Files): Add lib/strtol.c.
7957         (Depends-on): Remove strtol.
7958
7959         strtoull: remove dependency on strtoul
7960         This is like the strtoll change.
7961         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7962         (Depends-on): Remove strtoul.
7963
7964         strtoll: remove dependency on strtol
7965         This is so that 'configure' need not check for strtol merely because
7966         the application needs strtoll.
7967         * modules/strtoll (Files): Add lib/strtol.c.
7968         (Depends-on): Remove strtol.
7969
7970 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7971
7972         inttypes: Move some configure check to module 'imaxdiv'.
7973         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7974         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7975         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7976
7977 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7978
7979         inttypes: Move some configure check to module 'imaxabs'.
7980         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7981         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7982         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7983
7984 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7985
7986         inttypes: Remove configure tests that are not needed since 2009-12-31.
7987         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7988         gl_cv_header_working_inttypes_h.
7989
7990 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7991
7992         * modules/strnlen (Depends-on): Remove memchr.
7993         The strnlen implementation doesn't need the memchr module's fixes; see
7994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7995
7996         strtol: remove dependency on wchar
7997         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7998         * modules/strtol (Depends-on): Remove wchar.
7999
8000 2011-04-21  Eric Blake  <eblake@redhat.com>
8001
8002         passfd: fix test regression on Linux
8003         * modules/passfd-tests (configure.ac): Correct socketpair check.
8004
8005         passfd: speed up configure and drop unused code
8006         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8007         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8008         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8009         Instead of probing at configure for unix_scm_rights_bsd44_way,
8010         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8011         check to a struct member probe.
8012         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8013         (sendfd, recvfd): Update preprocessor checks.
8014         * modules/passfd (Files): Reflect rename, and drop unused file.
8015         (Depends-on): Drop unused dependency.
8016
8017         passfd: allow compilation on mingw
8018         * modules/sys_socket (Depends-on): Add sys_uio.
8019         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8020         iovec and a minimal struct msghdr.
8021         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8022         * tests/test-sys_socket.c (main): Enhance test.
8023         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8024         guaranteed to provide what we need.
8025         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8026         * modules/passfd-tests (Depends-on): Add sys_wait.
8027         * tests/test-passfd.c (main): Skip test on mingw, for now.
8028         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8029         partial 'struct msghdr' implementation.
8030
8031         sys_uio: new module
8032         * modules/sys_uio: New module.
8033         * modules/sys_uio-tests: Likewise.
8034         * lib/sys_uio.in.h: New file.
8035         * m4/sys_uio_h.m4: Likewise.
8036         * tests/test-sys_uio.c: Likewise.
8037         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8038         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8039
8040 2011-04-20  Jim Meyering  <meyering@redhat.com>
8041
8042         useless-if-before-free: avoid false-positive
8043         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8044         disjunct so that it too requires a terminating ";".  Without that,
8045         this script would identify as useless one statement from gcc that
8046         was not:
8047           if (aligned_ptr)
8048             free (((void **) aligned_ptr) [-1]);
8049
8050 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8051
8052         doc: update users.txt.
8053         * users.txt: Add barcode.
8054
8055 2011-04-19  Bruno Haible  <bruno@clisp.org>
8056
8057         ioctl: Remove link dependency on native Windows.
8058         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8059         (gl_close_fn, gl_ioctl_fn): New types.
8060         (struct fd_hook): Renamed from struct close_hook. Change type of
8061         private_close_fn field. Add private_ioctl_fn field.
8062         (close_hook_fn): Add parameter for primary close method.
8063         (execute_close_hooks, execute_all_close_hooks): Likewise.
8064         (ioctl_hook_fn): New type.
8065         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8066         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8067         argument.
8068         (unregister_fd_hook): Renamed from unregister_close_hook.
8069         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8070         Don't include <unistd.h>.
8071         (close): Remove undef.
8072         (anchor): Update.
8073         (execute_close_hooks): Add argument for primary close method.
8074         (execute_all_close_hooks): Likewise.
8075         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8076         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8077         argument. Allow each argument to be NULL.
8078         (unregister_fd_hook): Renamed from unregister_close_hook.
8079         * lib/close.c (rpl_close): Pass 'close' function pointer to
8080         execute_all_close_hooks.
8081         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8082         (primary_ioctl): New function.
8083         (ioctl): Don't call ioctlsocket here. Instead, call
8084         execute_all_ioctl_hooks.
8085         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8086         close method.
8087         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8088         (fd_sockets_hook): Renamed from close_sockets_hook.
8089         (gl_sockets_startup, gl_sockets_cleanup): Update.
8090         * modules/fd-hook: Renamed from modules/close-hook. Update.
8091         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8092         * modules/sockets (Depends-on): Likewise.
8093         * modules/ioctl (Depends-on): Add fd-hook.
8094         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8095         GNULIB_SOCKET.
8096
8097 2011-04-19  Bruno Haible  <bruno@clisp.org>
8098
8099         Move the support of O_NONBLOCK in open() to the 'open' module.
8100         * modules/nonblocking (Depends-on): Remove 'open'.
8101         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8102         gl_cv_have_open_O_NONBLOCK.
8103         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8104         O_NONBLOCK support.
8105         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8106
8107 2011-04-17  Bruno Haible  <bruno@clisp.org>
8108
8109         pipe2: Simplify code.
8110         * lib/pipe2.c (pipe2): Reduce code duplication.
8111
8112 2011-04-17  Bruno Haible  <bruno@clisp.org>
8113
8114         nonblocking: Add comment.
8115         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8116
8117 2011-04-17  Bruno Haible  <bruno@clisp.org>
8118
8119         nonblocking: Add tests for sockets.
8120         * tests/test-nonblocking-socket.sh: New file.
8121         * tests/test-nonblocking-socket-main.c: New file.
8122         * tests/test-nonblocking-socket-child.c: New file.
8123         * tests/test-nonblocking-socket.h: New file.
8124         * tests/socket-server.h: New file.
8125         * tests/socket-client.h: New file.
8126         * modules/nonblocking-socket-tests: New file.
8127         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8128
8129 2011-04-17  Bruno Haible  <bruno@clisp.org>
8130
8131         nonblocking: Add tests for pipes.
8132         * tests/test-nonblocking-pipe.sh: New file.
8133         * tests/test-nonblocking-pipe-main.c: New file.
8134         * tests/test-nonblocking-pipe-child.c: New file.
8135         * tests/test-nonblocking-pipe.h: New file.
8136         * tests/test-nonblocking-writer.h: New file.
8137         * tests/test-nonblocking-reader.h: New file.
8138         * tests/test-nonblocking-misc.h: New file.
8139         * modules/nonblocking-pipe-tests: New file.
8140         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8141
8142 2011-04-16  Bruno Haible  <bruno@clisp.org>
8143
8144         gettext: Clarify the needed programmer actions.
8145         * modules/gettext (Notice): New field.
8146         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8147
8148 2011-04-16  Bruno Haible  <bruno@clisp.org>
8149
8150         strchrnul: Tweak last commit.
8151         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8152         bug.
8153         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8154         as in _GL_FUNCDECL_SYS.
8155         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8156         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8157
8158 2011-04-15  Eric Blake  <eblake@redhat.com>
8159
8160         strchrnul: work around cygwin bug
8161         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8162         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8164         * modules/string (Makefile.am): Substitute it.
8165         * lib/string.in.h (strchrnul): Use it.
8166
8167 2011-04-15  Bruno Haible  <bruno@clisp.org>
8168
8169         Don't require lib/stdio-write.c when only module 'stdio' is used.
8170         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8171         invocation.
8172         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8173
8174 2011-04-14  Bruno Haible  <bruno@clisp.org>
8175
8176         Support non-blocking pipe I/O in read() on native Windows.
8177         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8178         (read): New declaration.
8179         * lib/read.c: New file.
8180         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8181         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8182         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8183         vscanf): New declarations.
8184         * lib/stdio-read.c: New file.
8185         * m4/read.m4: New file.
8186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8187         REPLACE_READ.
8188         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8189         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8190         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8191         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8192         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8193         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8194         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8195         * modules/read: New file.
8196         * modules/nonblocking (Files): Add lib/stdio-read.c.
8197         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8198         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8199         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8200         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8201         * modules/pread (Depends-on): Add read.
8202         * modules/safe-read (Depends-on): Likewise.
8203         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8204         gets, scanf, vfscanf, vscanf): Verify signatures.
8205         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8206         problem with non-blocking pipes.
8207         * doc/posix-functions/fgetc.texi: Likewise.
8208         * doc/posix-functions/fgets.texi: Likewise.
8209         * doc/posix-functions/fread.texi: Likewise.
8210         * doc/posix-functions/fscanf.texi: Likewise.
8211         * doc/posix-functions/getc.texi: Likewise.
8212         * doc/posix-functions/getchar.texi: Likewise.
8213         * doc/posix-functions/gets.texi: Likewise.
8214         * doc/posix-functions/scanf.texi: Likewise.
8215         * doc/posix-functions/vfscanf.texi: Likewise.
8216         * doc/posix-functions/vscanf.texi: Likewise.
8217
8218 2011-04-14  Bruno Haible  <bruno@clisp.org>
8219
8220         Support non-blocking pipe I/O in write() on native Windows.
8221         * lib/write.c (rpl_write): Split a write request that failed merely
8222         because the byte count was larger than the pipe buffer's size.
8223         * doc/posix-functions/write.texi: Mention the problem with large byte
8224         counts.
8225
8226 2011-04-14  Bruno Haible  <bruno@clisp.org>
8227
8228         wchar: Ensure that wchar_t gets defined on uClibc.
8229         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8230         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8231
8232 2011-04-13  Bruno Haible  <bruno@clisp.org>
8233
8234         safe-write, full-read: Avoid unnecessary compilation units.
8235         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8236         (Depends-on): Remove safe-read. Add ssize_t.
8237         * modules/full-read (Files): Add lib/full-write.c.
8238         (Depends-on): Add full-write.
8239
8240 2011-04-13  Bruno Haible  <bruno@clisp.org>
8241
8242         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8243         * modules/pwrite (Depends-on): Add 'write'.
8244
8245 2011-04-13  Bruno Haible  <bruno@clisp.org>
8246
8247         Support non-blocking pipe I/O in write() on native Windows.
8248         * lib/unistd.in.h (write): Enable replacement also if
8249         GNULIB_UNISTD_H_NONBLOCKING is 1.
8250         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8251         (rpl_write): When failing to write on a non-blocking pipe, change
8252         errno from ENOSPC to EAGAIN.
8253         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8254         putchar, puts, vfprintf, vprintf): Enable replacement also if
8255         GNULIB_STDIO_H_NONBLOCKING is 1.
8256         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8257         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8258         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8259         CALL_WITH_SIGPIPE_EMULATION.
8260         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8261         * m4/nonblocking.m4: New file.
8262         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8263         for non-blocking I/O support.
8264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8265         GNULIB_UNISTD_H_NONBLOCKING.
8266         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8267         required for non-blocking I/O support.
8268         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8269         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8270         lib/stdio-write.c, m4/asm-underscore.m4.
8271         (Depends-on): Add stdio, unistd.
8272         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8273         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8274         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8275         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8276         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8277         problem with non-blocking pipes.
8278         * doc/posix-functions/fputc.texi: Likewise.
8279         * doc/posix-functions/fputs.texi: Likewise.
8280         * doc/posix-functions/fwrite.texi: Likewise.
8281         * doc/posix-functions/printf.texi: Likewise.
8282         * doc/posix-functions/putc.texi: Likewise.
8283         * doc/posix-functions/putchar.texi: Likewise.
8284         * doc/posix-functions/puts.texi: Likewise.
8285         * doc/posix-functions/vfprintf.texi: Likewise.
8286         * doc/posix-functions/vprintf.texi: Likewise.
8287         * doc/posix-functions/write.texi: Likewise.
8288
8289 2011-04-10  Jim Meyering  <meyering@redhat.com>
8290
8291         maint.mk: prohibit doubled words
8292         Detect them also when they're separated by a newline.
8293         There are 3 ways to customize it:
8294           - disable the test on a per file basis, as usual with rules using
8295             $(VC_LIST_EXCEPT)
8296           - replace the default doubled-word-selecting regexp (affects all files)
8297           - ignore a particular file-vs-doubled-word match
8298         I nearly used that last one to ignore the "is is" match in
8299         coreutils' NEWS file, since the text was "ls -is is ..."
8300         To do that, I would have added this line to cfg.mk:
8301           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8302         but it would have ignored any "is is" match in NEWS.
8303         Low probability, but still...
8304         Instead, I changed the text, slightly:
8305           -  ls -is is now consistent with ls -lis in ignoring values returned
8306           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8307         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8308         (prohibit_doubled_word_): Define.
8309         (sc_prohibit_doubled_word): New rule.
8310         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8311
8312 2011-04-10  Jim Meyering  <meyering@redhat.com>
8313
8314         maint: fix doubled-word typo in comment
8315         * m4/gethostname.m4: s/is is/it is/
8316         * m4/getdomainname.m4: Likewise.
8317
8318 2011-04-10  Jim Meyering  <meyering@redhat.com>
8319
8320         maint: remove doubled word: s/it it/it/
8321         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8322
8323 2011-04-10  Jim Meyering  <meyering@redhat.com>
8324
8325         maint.mk: remove useless semicolon and backslash
8326         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8327         semicolon and backslash.
8328
8329 2011-04-10  Bruno Haible  <bruno@clisp.org>
8330
8331         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8332         * modules/stdint-tests (Depends-on): Add wchar.
8333
8334 2011-04-10  Jim Meyering  <meyering@redhat.com>
8335
8336         maint: remove doubled words in comments, e.g., s/a a/a/
8337         * lib/strptime.c (day_of_the_week): s/the the/the/
8338         * tests/test-chown.h (test_chown): s/a a/a/
8339
8340         test-chown.h: correct a cast
8341         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8342         when the destination is a stat.st_gid.
8343
8344 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8345
8346         getaddrinfo: Fix test for sa_len member.
8347         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8348         include <sys/types.h> before <sys/socket.h>.
8349
8350 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8351
8352         maint: change "can not" to "cannot"
8353         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8354         boundaries.
8355
8356 2011-04-09  Jim Meyering  <meyering@redhat.com>
8357
8358         maint: change "a a" to "a"
8359         * tests/test-lchown.h (test_lchown): s/a a/a/
8360
8361         maint.mk: prohibit \<the the\>
8362         * top/maint.mk (sc_prohibit_the_the): New rule.
8363
8364         maint: fix "the the" in comment
8365         * lib/count-one-bits.h: s/the the/the/
8366
8367         maint: change "can not" to "cannot"
8368         But do not change the occurrences in maintain.texi or in
8369         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8370         * doc/gnulib-tool.texi: s/can not/cannot/
8371         * doc/posix-functions/accept.texi (accept): Likewise.
8372         * doc/posix-functions/socket.texi (socket): Likewise.
8373         * lib/mbrtowc.c: Likewise.
8374
8375         maint.mk: prohibit use of "can not"
8376         * top/maint.mk (sc_prohibit_can_not): New rule.
8377         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8378
8379 2011-04-09  Bruno Haible  <bruno@clisp.org>
8380
8381         careadlinkat: Guard against misuse of careadlinkatcwd.
8382         * lib/careadlinkat.c: Include <stdlib.h>.
8383         (careadlinkatcwd): Check that the fd argument is as expected.
8384
8385 2011-04-09  Bruno Haible  <bruno@clisp.org>
8386
8387         careadlinkat: Use common coding style.
8388         * lib/careadlinkat.c: Move gnulib includes after system includes.
8389
8390 2011-04-09  Bruno Haible  <bruno@clisp.org>
8391
8392         careadlinkat: Clarify specification.
8393         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8394         (careadlinkatcwd): Add comment.
8395         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8396
8397 2011-04-09  Bruno Haible  <bruno@clisp.org>
8398
8399         areadlinkat: Avoid link error on many platforms.
8400         * modules/areadlinkat (Depends-on): Add areadlink.
8401
8402 2011-04-09  Bruno Haible  <bruno@clisp.org>
8403
8404         allocator, careadlinkat: Fix double-inclusion guard.
8405         * lib/allocator.h: Fix double-inclusion guard.
8406         * lib/careadlinkat.h: Likewise.
8407
8408 2011-04-09  Bruno Haible  <bruno@clisp.org>
8409
8410         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8411         * lib/relocwrapper.c: Update dependencies hierarchy.
8412         * build-aux/install-reloc: Update list of files to be compiled.
8413         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8414         lib/allocator.[hc].
8415
8416 2011-04-08  Eric Blake  <eblake@redhat.com>
8417
8418         strftime: silence gnulib-tool warning
8419         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8420
8421 2011-04-08  Bruno Haible  <bruno@clisp.org>
8422
8423         verify: Fix syntax error with GCC 4.6 in C++ mode.
8424         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8425         (HAVE_STATIC_ASSERT): New macro.
8426         (verify_true, verify): Use 'static_assert' if it is supported and
8427         '_Static_assert' is not supported.
8428
8429 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8430
8431         allocator: New module.
8432         * modules/allocator, lib/allocator.c: New files.
8433         * lib/allocator.h (stdlib_allocator): New decl.
8434         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8435         Remove.  Do not include <stdlib.h>.
8436         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8437         * modules/careadlinkat (Files): Remove lib/allocator.h.
8438         (Depends-on): Add allocator.
8439
8440         stdlib: let modules use system malloc, realloc
8441         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8442         if !_GL_USE_STDLIB_ALLOC.
8443         (malloc, realloc): Limit this change to a smaller scope.
8444
8445         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8446         (malloc, realloc): Don't #undef; no longer needed.
8447         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8448         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8449         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8450         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8451         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8452         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8453         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8454         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8455
8456         careadlinkat: rename members to avoid problem
8457         * lib/allocator.h (struct allocator): Rename members from
8458         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8459         and realloc are #define'd.  Reported by Eric Blake in
8460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8461         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8462
8463 2011-04-08  Eric Blake  <eblake@redhat.com>
8464
8465         nonblocking: reduce dependency
8466         * tests/test-nonblocking.c: Only test sockets when in use.
8467         * modules/nonblocking-tests (Depends-on): Drop socket.
8468         (Makefile.am): Link even if sockets are not present.
8469         * modules/pipe2-tests (Makefile.am): Likewise.
8470         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8471
8472         pipe2: fix O_NONBLOCK support on mingw
8473         * modules/pipe2 (Depends-on): Add nonblocking.
8474         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8475         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8476         * tests/test-nonblocking.c (main): Likewise.
8477         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8478
8479         fcntl-h: fix O_ACCMODE on cygwin
8480         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8481         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8482
8483         pipe-filter: drop O_NONBLOCK workarounds
8484         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8485         * modules/pipe-filter-ii (Depends-on): Likewise.
8486         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8487
8488         nonblocking: provide O_NONBLOCK for mingw
8489         * modules/nonblocking (Depends-on): Add open.
8490         (configure.ac): Set new witness macro.
8491         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8492         * modules/fcntl-h (Makefile.am): Substitute it.
8493         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8494         nonblocking module is in use.
8495         * lib/nonblocking.c: Adjust portability test.
8496         * lib/open.c (open): Don't let native open see gnulib flag.
8497         * tests/test-fcntl-h.c (main): Enhance test.
8498         * tests/test-open.h (test_open): Likewise.
8499         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8500
8501         careadlinkat: fix compilation error on mingw
8502         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8503         within struct allocator.
8504
8505 2011-04-06  Eric Blake  <eblake@redhat.com>
8506
8507         binary-io: relicense under LGPLv2+
8508         * modules/binary-io (License): Relax to LGPLv2+.
8509         Requested for libvirt, and required by pipe2.
8510
8511 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8512
8513         verify: use _Static_assert if available
8514         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8515         (verify_true, verify): Use it if available.  This generates better
8516         diagnostics with GCC 4.6.0 and later.
8517
8518 2011-04-05  Bruno Haible  <bruno@clisp.org>
8519
8520         Remove leftover generated .h files after config.status changed.
8521
8522         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8523         GL_GENERATE_ALLOCA_H.
8524         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8525         GL_GENERATE_ALLOCA_H evaluates to false.
8526
8527         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8528         GL_GENERATE_ARGZ_H.
8529         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8530         evaluates to false.
8531
8532         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8533         GL_GENERATE_BYTESWAP_H.
8534         * modules/byteswap (Makefile.am): Remove byteswap.h if
8535         GL_GENERATE_BYTESWAP_H evaluates to false.
8536
8537         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8538         GL_GENERATE_ERRNO_H.
8539         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8540         evaluates to false.
8541
8542         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8543         GL_GENERATE_FLOAT_H.
8544         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8545         evaluates to false.
8546
8547         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8548         GL_GENERATE_FNMATCH_H.
8549         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8550         GL_GENERATE_FNMATCH_H evaluates to false.
8551
8552         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8553         GL_GENERATE_GLOB_H.
8554         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8555         evaluates to false.
8556
8557         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8558         automake conditional GL_GENERATE_ICONV_H.
8559         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8560         evaluates to false.
8561
8562         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8563         GL_GENERATE_NETINET_IN_H.
8564         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8565         GL_GENERATE_NETINET_IN_H evaluates to false.
8566
8567         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8568         conditional GL_GENERATE_PTHREAD_H.
8569         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8570         * modules/pthread (Makefile.am): Remove pthread.h if
8571         GL_GENERATE_PTHREAD_H evaluates to false.
8572
8573         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8574         GL_GENERATE_SCHED_H.
8575         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8576         evaluates to false.
8577
8578         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8579         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8580         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8581         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8582
8583         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8584         GL_GENERATE_STDARG_H.
8585         * modules/stdarg (Makefile.am): Remove stdarg.h if
8586         GL_GENERATE_STDARG_H evaluates to false.
8587
8588         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8589         GL_GENERATE_STDBOOL_H.
8590         * modules/stdbool (Makefile.am): Remove stdbool.h if
8591         GL_GENERATE_STDBOOL_H evaluates to false.
8592
8593         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8594         conditional GL_GENERATE_STDDEF_H.
8595         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8596         * modules/stddef (Makefile.am): Remove stddef.h if
8597         GL_GENERATE_STDDEF_H evaluates to false.
8598
8599         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8600         GL_GENERATE_STDINT_H.
8601         * modules/stdint (Makefile.am): Remove stdint.h if
8602         GL_GENERATE_STDINT_H evaluates to false.
8603
8604         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8605         GL_GENERATE_SYSEXITS_H.
8606         * modules/sysexits (Makefile.am): Remove sysexits.h if
8607         GL_GENERATE_SYSEXITS_H evaluates to false.
8608
8609         Reported by Karl Berry and Ralf Wildenhues.
8610
8611 2011-04-05  Bruno Haible  <bruno@clisp.org>
8612
8613         Ensure to rebuild generated .h files when config.status has changed.
8614         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8615         config.status.
8616         * modules/ctype (Makefile.am): Likewise.
8617         * modules/dirent (Makefile.am): Likewise.
8618         * modules/errno (Makefile.am): Likewise.
8619         * modules/fcntl-h (Makefile.am): Likewise.
8620         * modules/float (Makefile.am): Likewise.
8621         * modules/getopt-posix (Makefile.am): Likewise.
8622         * modules/glob (Makefile.am): Likewise.
8623         * modules/iconv-h (Makefile.am): Likewise.
8624         * modules/inttypes (Makefile.am): Likewise.
8625         * modules/langinfo (Makefile.am): Likewise.
8626         * modules/locale (Makefile.am): Likewise.
8627         * modules/math (Makefile.am): Likewise.
8628         * modules/netdb (Makefile.am): Likewise.
8629         * modules/netinet_in (Makefile.am): Likewise.
8630         * modules/poll-h (Makefile.am): Likewise.
8631         * modules/pthread (Makefile.am): Likewise.
8632         * modules/pty (Makefile.am): Likewise.
8633         * modules/sched (Makefile.am): Likewise.
8634         * modules/search (Makefile.am): Likewise.
8635         * modules/selinux-h (Makefile.am): Likewise.
8636         * modules/signal (Makefile.am): Likewise.
8637         * modules/spawn (Makefile.am): Likewise.
8638         * modules/stdarg (Makefile.am): Likewise.
8639         * modules/stdbool (Makefile.am): Likewise.
8640         * modules/stddef (Makefile.am): Likewise.
8641         * modules/stdint (Makefile.am): Likewise.
8642         * modules/stdio (Makefile.am): Likewise.
8643         * modules/stdlib (Makefile.am): Likewise.
8644         * modules/string (Makefile.am): Likewise.
8645         * modules/strings (Makefile.am): Likewise.
8646         * modules/sys_file (Makefile.am): Likewise.
8647         * modules/sys_ioctl (Makefile.am): Likewise.
8648         * modules/sys_select (Makefile.am): Likewise.
8649         * modules/sys_socket (Makefile.am): Likewise.
8650         * modules/sys_stat (Makefile.am): Likewise.
8651         * modules/sys_time (Makefile.am): Likewise.
8652         * modules/sys_times (Makefile.am): Likewise.
8653         * modules/sys_utsname (Makefile.am): Likewise.
8654         * modules/sys_wait (Makefile.am): Likewise.
8655         * modules/sysexits (Makefile.am): Likewise.
8656         * modules/termios (Makefile.am): Likewise.
8657         * modules/time (Makefile.am): Likewise.
8658         * modules/unistd (Makefile.am): Likewise.
8659         * modules/wchar (Makefile.am): Likewise.
8660         * modules/wctype-h (Makefile.am): Likewise.
8661         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8662
8663 2011-04-05  Bruno Haible  <bruno@clisp.org>
8664
8665         pipe2: Relicense under LGPLv2+.
8666         * modules/pipe2 (License): Change to LGPLv2+.
8667         Requested by Eric Blake, for libvirt.
8668
8669 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8670
8671         bootstrap: compute gnulib_extra_files after updating build_aux
8672         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8673         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8674
8675 2011-04-05  Eric Blake  <eblake@redhat.com>
8676
8677         bootstrap: preserve git whitelist item sorting
8678         * build-aux/bootstrap (sort_patterns): New function.
8679         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8680
8681 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8682
8683         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8684         sc_space_tab check.
8685
8686 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8687
8688         areadlink, areadlinkat: rewrite in terms of careadlinkat
8689         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8690         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8691         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8692         (malloc, realloc): Remove #undefs.
8693         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8694         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8695         readlink, ssize_t, stdint, unistd.
8696         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8697         areadlink, stdint.
8698
8699         careadlinkat: new module
8700         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8701         * modules/careadlinkat: New files, written by me with
8702         a review and feedback from Ben Pfaff in
8703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8704
8705 2011-04-01  Bruno Haible  <bruno@clisp.org>
8706
8707         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8708         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8709         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8710         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8711         Reported by Bruce Korb <bruce.korb@gmail.com>.
8712
8713 2011-04-01  Bruno Haible  <bruno@clisp.org>
8714
8715         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8716         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8717         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8718         * modules/wcpcpy (Depends-on): Add extensions.
8719         * modules/wcpncpy (Depends-on): Likewise.
8720         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8721         systems.
8722         * doc/posix-functions/wcpncpy.texi: Likewise.
8723         * doc/posix-functions/wcwidth.texi: Likewise.
8724
8725 2011-03-31  Eric Blake  <eblake@redhat.com>
8726
8727         nonblocking: fix mingw test failures
8728         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8729         non-blocking flag on regular file.
8730         (get_nonblocking_flag): Set errno on invalid fd.
8731         * tests/test-nonblocking.c (main): Avoid test failure on
8732         directories if fchdir is not active.
8733         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8734
8735 2011-03-31  Bruno Haible  <bruno@clisp.org>
8736
8737         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8738         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8739         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8740         Reported by Simon Josefsson <simon@josefsson.org>.
8741
8742 2011-03-31  Bruno Haible  <bruno@clisp.org>
8743         and Eric Blake  <eblake@redhat.com>
8744
8745         nonblocking: new module
8746         * modules/nonblocking: New module.
8747         * modules/nonblocking-tests: Likewise.
8748         * lib/nonblocking.h: New file.
8749         * lib/nonblocking.c: Likewise.
8750         * tests/test-nonblocking.c: New test.
8751         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8752
8753 2011-03-30  Bruno Haible  <bruno@clisp.org>
8754
8755         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8756         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8757         instead of 'printf' format for GCC >= 4.4.
8758         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8759         (fprintf, printf, vfprintf, vprintf): Declare with
8760         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8761         the system's vfprintf() function.
8762         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8763
8764 2011-03-30  Eric Blake  <eblake@redhat.com>
8765
8766         passfd: fix scoping bug
8767         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8768         before sendmsg/recvmsg.
8769
8770         passfd: standardize coding conventions
8771         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8772         can be learned at compile time.
8773         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8774         ifdefs.
8775         (sendfd, recvfd): Follow gnulib code conventions.
8776
8777         passfd: fix incorrect sendmsg arguments
8778         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8779         incorrect msg_controllen value.
8780         * modules/passfd-tests (Depends-on): Check for alarm.
8781         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8782         Reported by Bastien ROUCARIES.
8783
8784 2011-03-30  Bruno Haible  <bruno@clisp.org>
8785
8786         c-strcasestr: Relicense under LGPLv2+.
8787         * modules/c-strcasestr (License): Change to LGPLv2+.
8788         Requested by Eric Blake, for libvirt.
8789
8790 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8791
8792         * users.txt: Add libidn2.  Fix libtasn1 link.
8793
8794 2011-03-30  Jim Meyering  <meyering@redhat.com>
8795
8796         tests: readlink* ("",... fails with EINVAL on newer kernels
8797         readlink and readlinkat have typically failed with ENOENT for
8798         the invalid, empty file name,  "".  However, with the advent
8799         of linux-2.6.39, they fail with EINVAL.
8800         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8801         when operating on the empty file name.
8802         * tests/test-readlink.h (test_readlink): Likewise.
8803
8804 2011-03-29  Bruno Haible  <bruno@clisp.org>
8805
8806         Relicense some modules under LGPLv2+, for libidn2.
8807         * modules/array-mergesort (License): Change to LGPLv2+.
8808         * modules/c-strcaseeq (License): Likewise.
8809         * modules/striconveh (License): Likewise.
8810         * modules/striconveha (License): Likewise.
8811         * modules/uniconv/base (License): Likewise.
8812         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8813         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8814         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8815         * modules/unictype/base (License): Likewise.
8816         * modules/unictype/bidiclass-of (License): Likewise.
8817         * modules/unictype/category-M (License): Likewise.
8818         * modules/unictype/category-none (License): Likewise.
8819         * modules/unictype/category-of (License): Likewise.
8820         * modules/unictype/category-test (License): Likewise.
8821         * modules/unictype/category-test-withtable (License): Likewise.
8822         * modules/unictype/combining-class (License): Likewise.
8823         * modules/unictype/joiningtype-of (License): Likewise.
8824         * modules/unictype/scripts (License): Likewise.
8825         * modules/uninorm/base (License): Likewise.
8826         * modules/uninorm/canonical-decomposition (License): Likewise.
8827         * modules/uninorm/composition (License): Likewise.
8828         * modules/uninorm/decompose-internal (License): Likewise.
8829         * modules/uninorm/decomposition-table (License): Likewise.
8830         * modules/uninorm/nfc (License): Likewise.
8831         * modules/uninorm/nfd (License): Likewise.
8832         * modules/uninorm/u32-normalize (License): Likewise.
8833         * modules/unistr/base (License): Likewise.
8834         * modules/unistr/u32-cpy (License): Likewise.
8835         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8836         * modules/unistr/u32-to-u8 (License): Likewise.
8837         * modules/unistr/u32-uctomb (License): Likewise.
8838         * modules/unistr/u8-check (License): Likewise.
8839         * modules/unistr/u8-mblen (License): Likewise.
8840         * modules/unistr/u8-mbtouc (License): Likewise.
8841         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8842         * modules/unistr/u8-mbtoucr (License): Likewise.
8843         * modules/unistr/u8-prev (License): Likewise.
8844         * modules/unistr/u8-strlen (License): Likewise.
8845         * modules/unistr/u8-to-u32 (License): Likewise.
8846         * modules/unistr/u8-uctomb (License): Likewise.
8847         * modules/unitypes (License): Likewise.
8848         Requested by Simon Josefsson.
8849
8850 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8851
8852         lib-symbol-visibility: Add a notice.
8853         * modules/lib-symbol-visibility (Notice): New field.
8854
8855 2011-03-29  Bruno Haible  <bruno@clisp.org>
8856
8857         getaddrinfo: Doc fix.
8858         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8859         section "fixed in Gnulib".
8860
8861 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8862
8863         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8864         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8865
8866 2011-03-26  Bruno Haible  <bruno@clisp.org>
8867
8868         unictype/property-byname: Reduce the number of load-time relocations.
8869         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8870         (UC_PROPERTY_INDEX_*): New enumeration values.
8871         (uc_property_byname): Convert an index from the lookup table to an
8872         uc_property_t.
8873         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8874         values.
8875
8876 2011-03-26  Bruno Haible  <bruno@clisp.org>
8877
8878         unictype/property-byname: Allow omitted word separators and aliases.
8879         * lib/unictype/pr_byname.gperf: Add property names without word
8880         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8881         for 'space'.
8882
8883 2011-03-26  Bruno Haible  <bruno@clisp.org>
8884
8885         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8886         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8887         also hyphens to space.
8888         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8889         without spaces.
8890         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8891
8892 2011-03-26  Bruno Haible  <bruno@clisp.org>
8893
8894         unictype/joiningtype-byname: Recognize long names as well.
8895         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8896         a long name.
8897         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8898         unictype/joiningtype_byname.h.
8899         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8900         * lib/unictype/joiningtype_byname.gperf: New file.
8901         * modules/unictype/joiningtype-byname (Files): Add
8902         lib/unictype/joiningtype_byname.gperf.
8903         (Depends-on): Add gperf.
8904         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8905         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8906         long names.
8907
8908         Tests for module 'unictype/joiningtype-longname'.
8909         * modules/unictype/joiningtype-longname-tests: New file.
8910         * tests/unictype/test-joiningtype_longname.c: New file.
8911
8912         New module 'unictype/joiningtype-longname'.
8913         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8914         * lib/unictype/joiningtype_longname.c: New file.
8915         * modules/unictype/joiningtype-longname: New file.
8916         * modules/unictype/joiningtype-all (Depends-on): Add
8917         unictype/joiningtype-longname.
8918
8919 2011-03-26  Bruno Haible  <bruno@clisp.org>
8920
8921         unictype/bidiclass-byname: Recognize long names as well.
8922         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8923         name.
8924         * lib/unictype/bidi_byname.c: Include <string.h>,
8925         unictype/bidi_byname.h.
8926         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8927         * lib/unictype/bidi_byname.gperf: New file.
8928         * modules/unictype/bidiclass-byname (Files): Add
8929         lib/unictype/bidi_byname.gperf.
8930         (Depends-on): Add gperf.
8931         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8932         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8933         long names.
8934
8935         Tests for module 'unictype/bidiclass-longname'.
8936         * modules/unictype/bidiclass-longname-tests: New file.
8937         * tests/unictype/test-bidi_longname.c: New file.
8938
8939         New module 'unictype/bidiclass-longname'.
8940         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8941         * lib/unictype/bidi_longname.c: New file.
8942         * modules/unictype/bidiclass-longname: New file.
8943         * modules/unictype/bidiclass-all (Depends-on): Add
8944         unictype/bidiclass-longname.
8945
8946 2011-03-26  Bruno Haible  <bruno@clisp.org>
8947
8948         unictype/bidi*: Rename modules.
8949         * modules/unictype/bidiclass-all: Renamed from
8950         modules/unictype/bidicategory-all.
8951         * modules/unictype/bidiclass-name: Renamed from
8952         modules/unictype/bidiclass-name.
8953         (Description): Update.
8954         * modules/unictype/bidiclass-name-tests: Renamed from
8955         modules/unictype/bidicategory-name-tests.
8956         * modules/unictype/bidiclass-byname: Renamed from
8957         modules/unictype/bidicategory-byname.
8958         (Description): Update.
8959         * modules/unictype/bidiclass-byname-tests: Renamed from
8960         modules/unictype/bidicategory-byname-tests.
8961         * modules/unictype/bidiclass-of: Renamed from
8962         modules/unictype/bidicategory-of.
8963         (Description): Update.
8964         * modules/unictype/bidiclass-of-tests: Renamed from
8965         modules/unictype/bidicategory-of-tests.
8966         * modules/unictype/bidiclass-test: Renamed from
8967         modules/unictype/bidicategory-test.
8968         (Description): Update.
8969         * modules/unictype/bidiclass-test-tests: Renamed from
8970         modules/unictype/bidicategory-test-tests.
8971         * modules/unictype/bidicategory-all: New file, a simple redirection.
8972         * modules/unictype/bidicategory-name: Likewise.
8973         * modules/unictype/bidicategory-byname: Likewise.
8974         * modules/unictype/bidicategory-of: Likewise.
8975         * modules/unictype/bidicategory-test: Likewise.
8976         * modules/unictype/property-bidi-* (Dependencies): Update.
8977         * lib/unictype/bidi_*.c: Update comment.
8978
8979 2011-03-26  Bruno Haible  <bruno@clisp.org>
8980
8981         unictype/bidi*: Rename functions, part 2.
8982         * modules/unictype/bidicategory-name (configure.ac): Update required
8983         libunistring version.
8984         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8985
8986 2011-03-25  Bruno Haible  <bruno@clisp.org>
8987
8988         New module 'unictype/combining-class-all'.
8989         * modules/unictype/combining-class-all: New file.
8990
8991         Tests for module 'unictype/combining-class-byname'.
8992         * modules/unictype/combining-class-byname-tests: New file.
8993         * tests/unictype/test-combiningclass_byname.c: New file.
8994
8995         New module 'unictype/combining-class-byname'.
8996         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8997         * lib/unictype/combiningclass_byname.c: New file.
8998         * lib/unictype/combiningclass_byname.gperf: New file.
8999         * modules/unictype/combining-class-byname: New file.
9000
9001         Tests for module 'unictype/combining-class-longname'.
9002         * modules/unictype/combining-class-longname-tests: New file.
9003         * tests/unictype/test-combiningclass_longname.c: New file.
9004
9005         New module 'unictype/combining-class-longname'.
9006         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9007         * lib/unictype/combiningclass_longname.c: New file.
9008         * modules/unictype/combining-class-longname: New file.
9009
9010         Tests for module 'unictype/combining-class-name'.
9011         * modules/unictype/combining-class-name-tests: New file.
9012         * tests/unictype/test-combiningclass_name.c: New file.
9013
9014         New module 'unictype/combining-class-name'.
9015         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9016         * lib/unictype/combiningclass_name.c: New file.
9017         * modules/unictype/combining-class-name: New file.
9018
9019 2011-03-25  Bruno Haible  <bruno@clisp.org>
9020
9021         unictype/combining-class: Rename source files.
9022         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9023         of unictype/combining.h.
9024         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9025         Update.
9026         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9027         * modules/unictype/combining-class (Description): Fix.
9028         (Files, Makefile.am): Update.
9029         * tests/unictype/test-combiningclass.c: Renamed from
9030         tests/unictype/test-combining.c.
9031         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9032
9033 2011-03-25  Bruno Haible  <bruno@clisp.org>
9034
9035         unictype: Update list of canonical combining classes.
9036         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9037
9038 2011-03-25  Bruno Haible  <bruno@clisp.org>
9039
9040         unictype/category-byname: Recognize long names as well.
9041         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9042         a long name.
9043         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9044         unictype/categ_byname.h.
9045         (UC_CATEGORY_INDEX_*): New enumeration values.
9046         (uc_general_category_byname): Use uc_general_category_lookup and
9047         convert from index to value.
9048         * lib/unictype/categ_byname.gperf: New file.
9049         * modules/unictype/category-byname (Files): Add
9050         lib/unictype/categ_byname.gperf.
9051         (Depends-on): Add gperf.
9052         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9053         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9054         long names.
9055
9056         Tests for module 'unictype/category-longname'.
9057         * modules/unictype/category-longname-tests: New file.
9058         * tests/unictype/test-categ_longname.c: New file.
9059
9060         New module 'unictype/category-longname'.
9061         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9062         * lib/unictype/categ_longname.c: New file.
9063         * modules/unictype/category-longname: New file.
9064         * modules/unictype/category-all (Depends-on): Add it.
9065
9066 2011-03-25  Bruno Haible  <bruno@clisp.org>
9067
9068         Tests for module 'unictype/category-LC'.
9069         * modules/unictype/category-LC-tests: New file.
9070         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9071
9072         New module 'unictype/category-LC'.
9073         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9074         (UC_CATEGORY_LC): New declaration.
9075         (UC_CASED_LETTER): New macro.
9076         * lib/gen-uni-tables.c (is_category_LC): New function.
9077         (output_categories): Also handle category LC.
9078         (UC_CATEGORY_MASK_LC): New enumeration value.
9079         (general_category_byname): Also handle category LC.
9080         * lib/unictype/categ_LC.c: New file.
9081         * lib/unictype/categ_LC.h: New file, automatically generated.
9082         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9083         category LC.
9084         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9085         * modules/unictype/category-LC: New file.
9086         * modules/unictype/category-byname (Depends-on): Add
9087         unictype/category-LC.
9088         * modules/unictype/category-all (Depends-on): Likewise.
9089
9090 2011-03-25  Eric Blake  <eblake@redhat.com>
9091
9092         xmalloc: revert yesterday's regression
9093         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9094         realloc's underlying behavior (allowing allocation of zero-size
9095         objects, especially if malloc-gnu is also in use).
9096
9097 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9098
9099         maint.mk: add missing version to VC-tag
9100         * top/maint.mk: git tag was missing actual tag name; add it.
9101
9102         valgrind: do leak checking, and exit with code 1 on error (not 0)
9103         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9104         to VALGRIND.
9105
9106 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9107
9108         posix-modules: say what it does.
9109         * posix-modules: Add a line to the --help output saying what it does.
9110
9111 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9112
9113         xmalloc: Do not leak if underlying realloc is C99 compatible.
9114         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9115         This avoids a leak on C99-based systems.  See
9116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9117
9118 2011-03-24  Eric Blake  <eblake@redhat.com>
9119
9120         realloc: document portability problem
9121         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9122         passing 0 size to realloc.
9123
9124 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9125
9126         doc: update users.txt
9127         * users.txt: Add cvsps, tmpwatch
9128
9129 2011-03-23  Matt Rice  <ratmice@gmail.com>
9130
9131         doc: update users.txt
9132         * users.txt: Add gdb.
9133
9134 2011-03-23  Jim Meyering  <meyering@redhat.com>
9135
9136         doc: update users.txt
9137         Looking through matches up to the following URL (there are still
9138         several more pages), I found several projects that use gnulib:
9139         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9140         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9141         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9142
9143 2011-03-22  Bruno Haible  <bruno@clisp.org>
9144
9145         unictype/bidi*: Rename functions.
9146         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9147         uc_bidi_class, uc_is_bidi_class): New declarations.
9148         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9149         uc_bidi_category_byname.
9150         (uc_bidi_category_byname): New function.
9151         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9152         u_bidi_category_name.
9153         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9154         (uc_bidi_category_name): New function.
9155         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9156         uc_bidi_category.
9157         (uc_bidi_category): New function.
9158         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9159         uc_is_bidi_category. Invoke uc_bidi_class.
9160         (uc_is_bidi_category): New function.
9161         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9162         instead of uc_bidi_category_byname.
9163         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9164         instead of uc_bidi_category_name.
9165         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9166         uc_bidi_category.
9167         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9168         instead of uc_is_bidi_category.
9169
9170 2011-03-21  Bruno Haible  <bruno@clisp.org>
9171
9172         New module 'unictype/joininggroup-all'.
9173         * modules/unictype/joininggroup-all: New file.
9174
9175         Tests for module 'unictype/joininggroup-of'.
9176         * modules/unictype/joininggroup-of-tests: New file.
9177         * tests/unictype/test-joininggroup_of.c: New file.
9178         * tests/unictype/test-joininggroup_of.h: New file, automatically
9179         generated by gen-uni-tables.
9180
9181         New module 'unictype/joininggroup-of'.
9182         * modules/unictype/joininggroup-of: New file.
9183         * lib/unictype/joininggroup_of.c: New file.
9184         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9185         gen-uni-tables.
9186
9187         Tests for module 'unictype/joininggroup-byname'.
9188         * modules/unictype/joininggroup-byname-tests: New file.
9189         * tests/unictype/test-joininggroup_byname.c: New file.
9190
9191         New module 'unictype/joininggroup-byname'.
9192         * modules/unictype/joininggroup-byname: New file.
9193         * lib/unictype/joininggroup_byname.c: New file.
9194         * lib/unictype/joininggroup_byname.gperf: New file.
9195
9196         Tests for module 'unictype/joininggroup-name'.
9197         * modules/unictype/joininggroup-name-tests: New file.
9198         * tests/unictype/test-joininggroup_name.c: New file.
9199
9200         New module 'unictype/joininggroup-name'.
9201         * modules/unictype/joininggroup-name: New file.
9202         * lib/unictype/joininggroup_name.c: New file.
9203         * lib/unictype/joininggroup_name.h: New file.
9204
9205         New module 'unictype/joiningtype-all'.
9206         * modules/unictype/joiningtype-all: New file.
9207
9208         Tests for module 'unictype/joiningtype-of'.
9209         * modules/unictype/joiningtype-of-tests: New file.
9210         * tests/unictype/test-joiningtype_of.c: New file.
9211         * tests/unictype/test-joiningtype_of.h: New file, automatically
9212         generated by gen-uni-tables.
9213
9214         New module 'unictype/joiningtype-of'.
9215         * modules/unictype/joiningtype-of: New file.
9216         * lib/unictype/joiningtype_of.c: New file.
9217         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9218         gen-uni-tables.
9219
9220         Tests for module 'unictype/joiningtype-byname'.
9221         * modules/unictype/joiningtype-byname-tests: New file.
9222         * tests/unictype/test-joiningtype_byname.c: New file.
9223
9224         New module 'unictype/joiningtype-byname'.
9225         * modules/unictype/joiningtype-byname: New file.
9226         * lib/unictype/joiningtype_byname.c: New file.
9227
9228         Tests for module 'unictype/joiningtype-name'.
9229         * modules/unictype/joiningtype-name-tests: New file.
9230         * tests/unictype/test-joiningtype_name.c: New file.
9231
9232         New module 'unictype/joiningtype-name'.
9233         * modules/unictype/joiningtype-name: New file.
9234         * lib/unictype/joiningtype_name.c: New file.
9235
9236         unictype: Add support for Arabic shaping properties.
9237         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9238         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9239         declarations.
9240         (UC_JOINING_GROUP_*): New enumeration values.
9241         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9242         declarations.
9243         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9244         (unicode_joining_type): New variable.
9245         (UC_JOINING_GROUP_*): New enumeration values.
9246         (unicode_joining_group): New variable.
9247         (fill_arabicshaping, joining_type_as_c_identifier,
9248         output_joining_type_test, output_joining_type,
9249         joining_group_as_c_identifier, output_joining_group_test,
9250         output_joining_group): New functions.
9251         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9252         fill_arabicshaping and output_joining_type_test, output_joining_type,
9253         output_joining_group_test, output_joining_group.
9254         Reported by Simon Josefsson.
9255
9256 2011-03-21  Jim Meyering  <meyering@redhat.com>
9257
9258         strftime: fix a bug in yesterday's change
9259         * lib/strftime.c (add): Accommodate width's initial value of -1.
9260         Otherwise, nstrftime would copy uninitialized data into
9261         the result buffer.
9262
9263 2011-03-21  Jim Meyering  <meyering@redhat.com>
9264
9265         tests: add strftime-tests module
9266         * tests/test-strftime.c: New file.
9267         * modules/strftime-tests: New module.
9268
9269 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9270
9271         strftime: don't assume a byte count fits in 'int'
9272         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9273         found this problem by static analysis, using gcc -Wstrict-overflow
9274         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9275         on an integer overflow having undefined behavior, but it turns out
9276         that the argument is a size, which might not fit in 'int' anyway,
9277
9278 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9279
9280         stdio: don't require ignore_value around fwrite
9281
9282         This patch works around libc bug 11959
9283         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9284         Without this patch, applications must often write
9285         ignore_value (fwrite (...)) even though the ignore_value is
9286         not helpful here.  It's common to write many objects, using
9287         fwrite/printf/etc., and then use ferror to detect output error.
9288
9289         I considered making this patch optional, but decided against it,
9290         because libc is obviously being inconsistent here: there is no
9291         reason libc should insist that user code must inspect fwrite
9292         return's value without also insisting that it inspect printf's,
9293         putchar's, etc.  If user code wants to have a strict style where
9294         all these functions' values are checked (so that ferror need not
9295         be checked), we could add support for that style in a new gnulib
9296         module, but in the meantime it's better to be consistent and to
9297         support common usage.
9298
9299         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9300         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9301         that we are compiling in checking mode, and if not C++, and
9302         if not already wrapping fwrite for some other reason.
9303         (fwrite): #define to rpl_fwrite if the latter is defined.
9304
9305 2011-03-20  Bruno Haible  <bruno@clisp.org>
9306
9307         verror: Fix compilation error introduced on 2011-02-13.
9308         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9309         instead of __attribute__.
9310         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9311
9312 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9313             Bruno Haible  <bruno@clisp.org>
9314
9315         socklen: do not depend on sys_socket
9316         While trying to modify Emacs to use gnulib's socklen module,
9317         I discovered a circular dependency: socklen depends on sys_socket
9318         and vice versa.  Emacs can use socklen, but it does not need
9319         sys_socket because it has its own substitute for sys/socket.h.
9320         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9321         gl_TYPE_SOCKLEN_T.
9322         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9323         gl_PREREQ_SYS_H_SOCKET.
9324         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9325         gl_PREREQ_SYS_H_SOCKET.
9326         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9327         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9328         * modules/socklen (Depends-on): Do not depend on sys_socket.
9329         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9330
9331 2011-03-20  Jim Meyering  <meyering@redhat.com>
9332
9333         maint.mk: sort file names *after* new transformation
9334         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9335         prefix would have led to an unwarranted failure in GNU parted.
9336         Sort after that transformation.
9337
9338 2011-03-19  Jim Meyering  <meyering@redhat.com>
9339
9340         maint.mk: fix po-file syntax-check rule
9341         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9342         Patch by Bruno Haible.
9343
9344 2011-03-19  Bruno Haible  <bruno@clisp.org>
9345
9346         socklen: Update comment.
9347         * m4/socklen.m4: Update comment about platforms.
9348
9349 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9350             Bruno Haible  <bruno@clisp.org>
9351
9352         inet_ntop, inet_pton: Simplify.
9353         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9354         documented to provide socklen_t and we already depend on sys_socket.
9355         * modules/inet_pton (Depends-on): Likewise.
9356         * lib/arpa_inet.in.h: Adjust comment.
9357
9358 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9359             Bruno Haible  <bruno@clisp.org>
9360
9361         netdb: Simplify.
9362         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9363         documented to provide socklen_t and we already depend on sys_socket.
9364         * lib/netdb.in.h: Adjust comment.
9365
9366 2011-03-19  Bruno Haible  <bruno@clisp.org>
9367
9368         sys_socket, netdb: Document problem with socklen_t.
9369         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9370         platforms.
9371         * doc/posix-headers/netdb.texi: Likewise.
9372
9373 2011-03-18  Eric Blake  <eblake@redhat.com>
9374
9375         maint.mk: let po check work in VPATH build
9376         * top/maint.mk (po_file): Allow cfg.mk override.
9377         (sc_po_check): Allow VPATH use.
9378         Reported by Jiri Denemark.
9379
9380 2011-03-16  Jim Meyering  <meyering@redhat.com>
9381
9382         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9383         Before, you would have had to create one .x-sc_ file per rule in order
9384         to exempt offending files.  Now, you may instead use a Make variable --
9385         usually defined in cfg.mk -- whose name identifies the affected rule.
9386         * top/maint.mk (_sc_excl): Define.
9387         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9388         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9389
9390 2011-03-13  Bruno Haible  <bruno@clisp.org>
9391
9392         ignore-value tests: Avoid warnings.
9393         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9394         empty for gcc < 3.4.
9395
9396 2011-03-13  Bruno Haible  <bruno@clisp.org>
9397
9398         passfd: Fix link error on Solaris.
9399         * modules/passfd (Description): Correct.
9400         (Depends-on): Add socketlib.
9401         (Link): New section.
9402         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9403
9404 2011-03-13  Bruno Haible  <bruno@clisp.org>
9405
9406         passfd: Fix link error on AIX 5.2.
9407         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9408
9409 2011-03-13  Bruno Haible  <bruno@clisp.org>
9410
9411         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9412         * lib/sys_socket.in.h: Include <stddef.h>.
9413         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9414         CMSG_FIRSTHDR. Remove unused variable.
9415
9416 2011-03-13  Bruno Haible  <bruno@clisp.org>
9417
9418         passfd: Fix compilation error on OpenBSD.
9419         * lib/passfd.c: Include <sys/uio.h>.
9420
9421 2011-03-13  Bruno Haible  <bruno@clisp.org>
9422
9423         passfd test: Fix warnings.
9424         * tests/test-passfd.c: Include <sys/wait.h>.
9425         (main): Fix typo.
9426
9427 2011-03-13  Bruno Haible  <bruno@clisp.org>
9428
9429         passfd module, part 4, tweaks.
9430         * tests/test-passfd.c: Reorder includes.
9431         (main): Fix perror and printf calls.
9432
9433 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9434
9435         passfd module, part 4.
9436         * modules/passfd-tests: New file.
9437         * tests/test-passfd.c: New file.
9438
9439 2011-03-13  Jim Meyering  <meyering@redhat.com>
9440
9441         Makefile: rely on GNU make; derive syntax-check rule names
9442         Rather than requiring that each sc_ rule be listed as a dependent
9443         of "check", use features of GNU make to derive the list.
9444         * Makefile (syntax-check-rules): Define.
9445         (check): Depend on the new variable, not the hard-coded list.
9446
9447 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9448             Bruno Haible  <bruno@clisp.org>
9449
9450         passfd module, part 3.
9451         * lib/passfd.h (recvfd): Add a flags argument.
9452         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9453         (recvfd): Add a flags argument.
9454         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9455         exists.
9456         * modules/passfd (Depends-on): Add cloexec.
9457         Suggested by Eric Blake.
9458
9459 2011-03-13  Bruno Haible  <bruno@clisp.org>
9460
9461         passfd module, part 2, tweaks.
9462         * modules/passfd (Files): Reorder.
9463         (Depends-on): Remove errno.
9464         (Include): Remove <sys/socket.h>, <sys/un.h>.
9465         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9466         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9467         specification header. Include <sys/socket.h> always. Don't include
9468         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9469         (sendfd): Clarify that it sets errno when it fails.
9470         (recvfd): Fix specification.
9471
9472 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9473
9474         passfd module, part 2.
9475         * modules/passfd: New file.
9476         * lib/passfd.h: New file.
9477         * lib/passfd.c: New file.
9478
9479 2011-03-12  Bruno Haible  <bruno@clisp.org>
9480
9481         wcswidth, mbswidth: Avoid integer overflow.
9482         * lib/wcswidth.c: Include <limits.h>.
9483         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9484         * lib/mbswidth.c: Include <limits.h>.
9485         (mbsnwidth): Avoid 'int' overflow.
9486         Reported by Jim Meyering.
9487
9488 2011-03-12  Bruno Haible  <bruno@clisp.org>
9489
9490         futimens, utimensat: Avoid endless recursion on Solaris 10.
9491         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9492         Solaris.
9493         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9494         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9495
9496 2011-03-11  Jim Meyering  <meyering@redhat.com>
9497
9498         maint.mk: relax a regexp to accommodate other formatting styles
9499         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9500         between "ngettext" and the following "(".
9501
9502 2011-03-11  Pádraig Brady <P@draigBrady.com>
9503
9504         maint.mk: suppress a false positive warning
9505         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9506         diagnostics are marked with ngettext.
9507
9508 2011-03-10  Eric Blake  <eblake@redhat.com>
9509
9510         wchar: add explicit dependencies, for Tru64
9511         * modules/mbmemcasecoll (Depends-on): Add wchar.
9512         * modules/mbtowc (Depends-on): Likewise.
9513         * modules/vasnprintf (Depends-on): Likewise.
9514         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9515         * modules/wctomb (Depends-on): Likewise.
9516         Reported by Peter O'Gorman.
9517
9518 2011-03-08  Bruno Haible  <bruno@clisp.org>
9519
9520         passfd module, part 1, tweaks.
9521         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9522         Improve indentation. Improve AC_MSG_CHECKING messages.
9523         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9524         gl_SOCKET_FAMILIES.
9525
9526 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9527
9528         passfd module, part 1.
9529         * m4/afunix.m4: New file.
9530         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9531         sockets.
9532
9533 2011-03-08  Bruno Haible  <bruno@clisp.org>
9534
9535         regex-quote: New API.
9536         * lib/regex-quote.h: Include <stdbool.h>.
9537         (struct regex_quote_spec): New type.
9538         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9539         New declarations.
9540         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9541         'const struct regex_quote_spec *' argument.
9542         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9543         (pcre_special): New constant.
9544         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9545         New functions.
9546         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9547         'const struct regex_quote_spec *' argument.
9548         * modules/regex-quote (Depends-on): Add stdbool.
9549         * tests/test-regex-quote.c (check): Update for new API. Add test for
9550         anchored results.
9551         * NEWS: Mention the API change.
9552         Reported by Reuben Thomas and Eric Blake.
9553
9554 2011-03-06  Bruno Haible  <bruno@clisp.org>
9555
9556         regex-quote: Fix creation of POSIX extended regular expressions.
9557         * lib/regex-quote.c (ere_special): Add grouping and alternation
9558         operators.
9559
9560 2011-03-05  Bruno Haible  <bruno@clisp.org>
9561
9562         doc: Improve doc regarding autopoint vs. gnulib.
9563         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9564         disable autopoint while running autoreconf.
9565         Suggested by Ralf Wildenhues.
9566
9567 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9568
9569         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9570         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9571
9572 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9573
9574         parse-duration: remove xalloc.h dependency
9575         * lib/parse-duration.c (parse_period): handle NULL return from
9576         strdup instead of calling xstrdup().
9577         * modules/parse-duration: remove "xalloc" dependency
9578
9579 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9580
9581         bootstrap: honor m4_base when running aclocal
9582         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9583
9584 2011-03-02  Jim Meyering  <meyering@redhat.com>
9585
9586         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9587         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9588         on request from Matt Booth.
9589
9590 2011-03-01  Eric Blake  <eblake@redhat.com>
9591
9592         test-link: work on Hurd
9593         * tests/test-link.h (test_link): Hurd rejects linking directories
9594         with EISDIR instead of the POSIX-mandated EPERM.
9595
9596 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9597
9598         stdio: simplify by moving files to printf-posix, sigpipe
9599         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9600         since this symbol is needed only if printf is replaced.
9601         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9602         Require gl_ASM_SYMBOL_PREFIX.
9603         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9604         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9605         (Depends-on): Add 'raise'.
9606         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9607         * modules/stdio (Files): Remove lib/stdio-write.c,
9608         m4/asm-underscore.m4.
9609         (Depends-on): Remove 'raise'.
9610
9611         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9612         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9613         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9614         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9615
9616 2011-02-28  Bruno Haible  <bruno@clisp.org>
9617
9618         localcharset: Assume ANSI C behaviour of free().
9619         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9620         calling free().
9621         Suggested by Simon Josefsson <simon@josefsson.org>.
9622
9623 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9624             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9625             Bruno Haible  <bruno@clisp.org>  (tiny change)
9626
9627         On Cygwin, use /proc file system instead of win32 API.
9628         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9629         Win32 file names.
9630         (DllMain): Simplify by removing Cygwin specific code.
9631         (find_shared_library_fullname): Use Linux specific implementation also
9632         for Cygwin.
9633         (get_shared_library_fullname): Update accordingly.
9634         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9635         Win32 file names.
9636         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9637         Cygwin specific code.
9638
9639 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9640             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9641
9642         Fix OpenMP flag detection for various Fortran compilers.
9643         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9644         OpenMP-conditional compilation construct, to force compile
9645         failure with missing OpenMP flag.
9646         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9647
9648 2011-02-25  Eric Blake  <eblake@redhat.com>
9649
9650         strstr: expand test coverage
9651         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9652         compilation.
9653         * tests/test-memmem.c (main): Duplicate tests.
9654         * tests/test-strcasestr.c (main): Likewise.
9655         * tests/test-c-strcasestr.c (main): Likewise.
9656
9657 2011-02-25  Jim Meyering  <meyering@redhat.com>
9658
9659         maint.mk: detect missing-NL-at-EOF, too
9660         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9661         it also detects when a file lacks a newline at EOF.
9662         (require_exactly_one_NL_at_EOF_): Renamed from
9663         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9664         since people may well have .x-sc_... file names tied to the
9665         existing name.  Suggested by Eric Blake.
9666
9667 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9668
9669         dirname: move m4/dos.m4 functionality into lib/dosname.h
9670
9671         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9672         extracts symbols from it, puts them into config.h; but it's much
9673         easier to use the symbols directly.  filename.h already does this,
9674         but it disagrees with dos.m4 in some respects.  This patch
9675         introduces a different include file dosname.h that packages up
9676         dos.m4, and then later we can work on merging filename.h and
9677         dosname.h.  Applications that need only the easy-to-configure
9678         symbols should consider including dosname.h rather than dirname.h.
9679         * NEWS: Mention incompatible changes.
9680         * m4/dos.m4: Remove.
9681         * lib/dosname.h, modules/dosname: New files.
9682         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9683         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9684         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9685         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9686         Include dosname.h, not dirname.h.
9687         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9688         Include dosname.h, for definitions of symbols like ISSLASH
9689         that used to be in config.h.
9690         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9691         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9692         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9693         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9694         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9695         * modules/rmdir (Files): Likewise.
9696         * modules/stat (Files): Likewise.
9697         * modules/unlink (Files): Likewise.
9698         * modules/dirname-lgpl (Depends-on): Add dosname.
9699         * modules/lstat (Depends-on): Likewise.
9700         * modules/openat (Depends-on): Likewise.
9701         * modules/rmdir (Depends-on): Likewise.
9702         * modules/savewd (Depends-on): Likewise.
9703         * modules/stat (Depends-on): Likewise.
9704         * modules/unlink (Depends-on): Likewise.
9705         * modules/openat (Depends-on): Remove dirname-lgpl.
9706         * modules/savewd (Depends-on): Likewise.
9707         * tests/test-dirname.c: Do not use removed symbols like
9708         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9709         the remaining symbols, e.g., ISSLASH ('\\').
9710
9711 2011-02-25  Eric Blake  <eblake@redhat.com>
9712
9713         strstr: revert patches that introduced bug and pessimization
9714         * lib/str-two-way.h: Add another reference.
9715         (two_way_short_needle, two_way_long_needle): Revert changes from
9716         2011-02-24; they pessimize search speed.
9717         (critical_factorization): Partially revert changes from
9718         2010-06-22; they violate the requirement that the left half of the
9719         needle be smaller than the period of the needle.
9720
9721 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9722
9723         filenamecat: remove unnecessary dependency on dirname-lgpl
9724         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9725         is no direct dependency, just an indirect one via filenamecat-lgpl.
9726
9727         remove: remove unnecessary use of m4/dos.m4
9728         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9729         * modules/remove (FILES): Remove m4/dos.m4.
9730
9731         * lib/openat-proc.c: Don't include dirname.h; not needed.
9732
9733         backupfile: remove unnecessary use of m4/dos.m4
9734         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9735         of its symbols are used by the backupfile code.  backupfile.c does
9736         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9737         for the rare case of programs that want all their backup file
9738         names to live within 8+3 limits, and dos.m4 doesn't address that.
9739         * modules/backupfile (Files): Remove m4/dos.m4.
9740
9741 2011-02-24  Jim Meyering  <meyering@redhat.com>
9742
9743         strstr: fix a bug whereby strstr would mistakenly return NULL
9744         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9745         in period calculation.
9746         (two_way_long_needle): Likewise.
9747         The original problem was reported by Mike Stump in
9748         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9749         Ralf Wildenhues provided the short needle and haystack.
9750         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9751         Add a more involved test to trigger the bug in two_way_long_needle.
9752
9753 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9754
9755         gnulib-tool: remove use of bold display in help screen
9756         * gnulib-tool (func_usage): Do not use bold display anymore in the
9757         help screen.  That was just meant to be a temporary emphasis for a
9758         backward-incompatible change.
9759
9760 2011-02-23  Bruno Haible  <bruno@clisp.org>
9761
9762         Fix misindentation of preprocessor directives.
9763         * lib/argp-namefrob.h: Reindent preprocessor directives.
9764         * lib/getopt_int.h (struct _getopt_data): Likewise.
9765         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9766         * lib/vasnprintf.c (decode_long_double): Likewise.
9767         * tests/test-argmatch.c: Insert blank lines, for clarity.
9768         * tests/test-exclude.c: Likewise.
9769
9770 2011-02-22  Bruno Haible  <bruno@clisp.org>
9771
9772         ioctl: Fix for MacOS X in 64-bit mode.
9773         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9774         value.
9775         Suggested by Eric Blake.
9776         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9777
9778 2011-02-22  Jim Meyering  <meyering@redhat.com>
9779
9780         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9781         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9782         in lib/.
9783
9784 2011-02-22  Eric Blake  <eblake@redhat.com>
9785
9786         maint: avoid any CDPATH issue
9787         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9788
9789         maint: adjust cpp indentation for my modules, as well
9790         * Makefile (sc_cpp_indent_check): Add my name.
9791         * lib/fbufmode.c: Filter through cppi.
9792         * lib/fpurge.c: Likewise.
9793         * lib/freadable.c: Likewise.
9794         * lib/freading.c: Likewise.
9795         * lib/fwritable.c: Likewise.
9796         * lib/fwriting.c: Likewise.
9797         * lib/sigaction.c: Likewise.
9798
9799 2011-02-22  Jim Meyering  <meyering@redhat.com>
9800
9801         maint: adjust cpp indentation to reflect nesting depth
9802         I.e., in a block of code that begins with an unnested "#if",
9803         put one space between the "#" in column 1 and following token.
9804         For example,
9805         -#include <sys/vfs.h>
9806         +# include <sys/vfs.h>
9807         Do this only in .c files that are part of a module I maintain.
9808         * lib/linkat.c: Filter through cppi.
9809         * lib/nanosleep.c: Likewise.
9810         * lib/openat.c: Likewise.
9811         * lib/openat-die.c: Likewise.
9812         * lib/dup3.c: Likewise.
9813         * lib/fchownat.c: Likewise.
9814         * lib/flock.c: Likewise.
9815         * lib/fsync.c: Likewise.
9816         * lib/fts.c: Likewise.
9817         * lib/getpass.c: Likewise.
9818         * lib/gettimeofday.c: Likewise.
9819         * lib/userspec.c: Likewise.
9820         * Makefile (sc_cpp_indent_check): New rule, to check this.
9821
9822 2011-02-22  Bruno Haible  <bruno@clisp.org>
9823
9824         New module 'wctomb'.
9825         * lib/stdlib.in.h (wctomb): New declaration.
9826         * lib/wctomb.c: New file.
9827         * lib/wctomb-impl.h: New file.
9828         * m4/wctomb.m4: New file.
9829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9830         REPLACE_WCTOMB.
9831         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9832         REPLACE_WCTOMB.
9833         * modules/wctomb: New file.
9834         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9835         * doc/posix-functions/wctomb.texi: Mention the new module.
9836         * modules/wctob (Depends-on): Add wctomb.
9837
9838 2011-02-22  Bruno Haible  <bruno@clisp.org>
9839
9840         New module 'mbtowc'.
9841         * lib/stdlib.in.h (mbtowc): New declaration.
9842         * lib/mbtowc.c: New file.
9843         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9844         * m4/mbtowc.m4: New file.
9845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9846         REPLACE_MBTOWC.
9847         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9848         REPLACE_MBTOWC.
9849         * modules/mbtowc: New file.
9850         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9851         * doc/posix-functions/mbtowc.texi: Mention the new module.
9852         * modules/btowc (Depends-on): Add mbtowc.
9853
9854 2011-02-22  Bruno Haible  <bruno@clisp.org>
9855
9856         wcrtomb: Add more tests for native Windows platforms.
9857         * tests/test-wcrtomb-w32-1.sh: New file.
9858         * tests/test-wcrtomb-w32-2.sh: New file.
9859         * tests/test-wcrtomb-w32-3.sh: New file.
9860         * tests/test-wcrtomb-w32-4.sh: New file.
9861         * tests/test-wcrtomb-w32-5.sh: New file.
9862         * tests/test-wcrtomb-w32.c: New file.
9863         * modules/wcrtomb-tests (Files): Add them.
9864         (Makefile.am): Arrange to run these tests.
9865         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9866         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9867
9868 2011-02-20  Bruno Haible  <bruno@clisp.org>
9869
9870         wcrtomb: Enhance test.
9871         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9872
9873 2011-02-20  Bruno Haible  <bruno@clisp.org>
9874
9875         mbrtowc: Tiny optimization.
9876         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9877
9878 2011-02-20  Jim Meyering  <meyering@redhat.com>
9879
9880         test-exclude.c: remove unmatched #endif
9881         * tests/test-exclude.c: Remove stray #endif, left over from
9882         the change of a week ago.
9883
9884 2011-02-19  Jim Meyering  <meyering@redhat.com>
9885
9886         git-version-gen: skip "-dirty" check when appropriate
9887         * build-aux/git-version-gen: Don't run any git commands when the
9888         version string comes from .tarball-version.  Prior to this, we
9889         would run git update-index --refresh even from a just-unpacked
9890         tarball directory, and that could affect a .git/ directory in a
9891         parent of the build directory.  Reported by Mike Frysinger.
9892
9893 2011-02-19  Bruno Haible  <bruno@clisp.org>
9894
9895         unictype/property-byname: Reduce the size of the 'data' segment.
9896         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9897
9898 2011-02-19  Bruno Haible  <bruno@clisp.org>
9899
9900         unictype/scripts: Reduce the size of the 'data' segment.
9901         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9902         '%pic'.
9903         * lib/unictype/scripts_byname.gperf: Regenerated.
9904
9905 2011-02-19  Bruno Haible  <bruno@clisp.org>
9906
9907         stdint: Update documentation.
9908         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9909
9910 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9911
9912         stdint: omit redundant check for wchar.h
9913         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9914         always tests whether wchar.h exists, so remove the now-redundant test.
9915
9916 2011-02-18  Bruno Haible  <bruno@clisp.org>
9917
9918         stdint: Cut dependency to module 'wchar'.
9919         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9920         include the necessary prerequisites.
9921         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9922         * modules/stdint (Depends-on): Remove wchar.
9923         (Makefile.am): Substitute HAVE_WCHAR_H.
9924         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9925
9926 2011-02-18  Eric Blake  <eblake@redhat.com>
9927
9928         longlong: skip, rather than fail, on cross-compilation
9929         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9930         when cross-compiling; regression from 2011-02-16.
9931
9932 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9933
9934         * NEWS: Mention 2011-02-08 change to stdlib.
9935
9936 2011-02-17  Bruno Haible  <bruno@clisp.org>
9937
9938         getloadavg: Add comments about platforms.
9939         * m4/getloadavg.m4: Add comment.
9940         * lib/getloadavg.c: Likewise.
9941
9942 2011-02-17  Bruno Haible  <bruno@clisp.org>
9943
9944         getloadavg: Fix link error on Solaris 2.6.
9945         * modules/getloadavg (Link): New section.
9946         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9947         linking test-getloadavg.
9948         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9949         getloadavg.
9950
9951 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9952
9953         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9954         It was 'int', but this doesn't match the IRIX 6.5 manual.
9955         Suggested by Bruno Haible in
9956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9957
9958 2011-02-17  Bruno Haible  <bruno@clisp.org>
9959
9960         havelib: Fix comments.
9961         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9962         change.
9963
9964 2011-02-17  Bruno Haible  <bruno@clisp.org>
9965
9966         havelib: Update config.rpath.
9967         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9968
9969 2011-02-17  Bruno Haible  <bruno@clisp.org>
9970
9971         getloadavg test: Add some plausibility checks.
9972         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9973         is improbable.
9974
9975 2011-02-16  Eric Blake  <eblake@redhat.com>
9976
9977         maintainer-makefile: make syntax-check a no-op from tarballs
9978         * top/maint.mk (no-vc-detected): New rule.
9979         (local-checks-available): Use it to avoid hanging if someone tries
9980         'make syntax-check' from a tarball.  Also append to any non-syntax
9981         checks already defined in cfg.mk.
9982
9983 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9984
9985         longlong: tune, particularly for common case of c99
9986
9987         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9988         or running anything if c99, or if unsigned long long int does not
9989         work.  In either case, we know the answer without further tests.
9990         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9991         it at most once, and use its results for both long long int and
9992         unsigned long long int.  This is more likely to be efficient in
9993         the common case where the program wants to check for both long
9994         long int and unsigned long long int.
9995         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9996         since the answer is already known.
9997
9998 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9999
10000         getloadavg: set errno
10001         * lib/getloadavg.c: Set errno when returning -1.  If no other
10002         error number looks appropriate, set it to ENOSYS if the getloadavg
10003         looks like it can't possibly ever work, ENOTSUP otherwise.
10004         Suggested by Bruno Haible in
10005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10006
10007         getloadavg: trim unused parts and speed up 'configure'
10008         * NEWS: Document this.
10009         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10010         always compiled if getloadavg is absent.
10011         Move test code to ...
10012         * tests/test-getloadavg.c: New file, containing previous
10013         contents of test from lib/getloadavg.c.  It also contains
10014         suggestions by Bruno Haible in
10015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10016         * modules/getloadavg-tests: New file.
10017         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10018         Do tests in the same order as they're needed for getloadavg.c.
10019         Omit setgid-related tests that generate symbols KMEM_GROUP,
10020         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10021         Do only the tests that are needed to see whether the system has
10022         getloadavg, moving the other tests into ...
10023         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10024         NLIST_NAME_UNION; nobody should be using it.  Do not define
10025         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10026         relevant, as the user of this module shouldn't care how getloadavg
10027         is implemented.
10028
10029         getloadavg: omit unused var
10030         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10031
10032 2011-02-15  Jim Meyering  <meyering@redhat.com>
10033
10034         doc: update users.txt
10035         * users.txt: Update iwhd's URL.
10036
10037 2011-02-13  Bruno Haible  <bruno@clisp.org>
10038
10039         Consistent macro naming for macros that use GCC __attribute__.
10040         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10041         _ATTRIBUTE_NONNULL_.
10042         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10043         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10044         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10045         ATTRIBUTE_DEPRECATED.
10046         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10047         ATTRIBUTE_NORETURN.
10048         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10049         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10050         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10051         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10052         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10053         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10054         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10055         ATTRIBUTE_SENTINEL.
10056         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10057         ATTRIBUTE_RETURN_CHECK.
10058         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10059         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10060         ATTRIBUTE_NORETURN.
10061         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10062         Reported by Paul Eggert.
10063
10064 2011-02-13  Bruno Haible  <bruno@clisp.org>
10065
10066         Don't interfere with a program's definition of __attribute__.
10067         * lib/argp.h (__attribute__): Remove definition.
10068         (_GL_ATTRIBUTE_FORMAT): New macro.
10069         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10070         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10071         (_GL_ATTRIBUTE_FORMAT): New macro.
10072         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10073         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10074         GCC 3 or newer.
10075         * lib/error.h (__attribute__): Remove definition.
10076         (_GL_ATTRIBUTE_FORMAT): New macro.
10077         (error, error_at_line): Use it.
10078         * lib/hash.h (__attribute__): Remove definition.
10079         (ATTRIBUTE_WUR): Update definition. Define always.
10080         * lib/openat.h (__attribute__): Remove definition.
10081         (ATTRIBUTE_NORETURN): Update definition. Define always.
10082         * lib/sigpipe-die.h (__attribute__): Remove definition.
10083         (ATTRIBUTE_NORETURN): Update definition. Define always.
10084         * lib/vasnprintf.h (__attribute__): Remove definition.
10085         (_GL_ATTRIBUTE_FORMAT): New macro.
10086         (asnprintf, vasnprintf): Use it.
10087         * lib/xalloc.h (__attribute__): Remove definition.
10088         (ATTRIBUTE_NORETURN): Update definition. Define always.
10089         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10090         * lib/xmemdup0.h (__attribute__): Remove definition.
10091         (ATTRIBUTE_NORETURN): Update definition. Define always.
10092         * lib/xprintf.h (__attribute__): Remove definition.
10093         (_GL_ATTRIBUTE_FORMAT): New macro.
10094         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10095         * lib/xstrtol.h (__attribute__): Remove definition.
10096         (ATTRIBUTE_NORETURN): Update definition. Define always.
10097         * lib/xvasprintf.h (__attribute__): Remove definition.
10098         (_GL_ATTRIBUTE_FORMAT): New macro.
10099         (xasprintf, xvasprintf): Use it.
10100         * tests/test-argmatch.c (__attribute__): Remove definition.
10101         (ATTRIBUTE_NORETURN): Update definition. Define always.
10102         * tests/test-exclude.c (__attribute__): Remove definition.
10103         (ATTRIBUTE_NORETURN): Update definition. Define always.
10104         Reported by Paul Eggert.
10105
10106 2011-02-13  Bruno Haible  <bruno@clisp.org>
10107
10108         mbrtowc: Add more tests for native Windows platforms.
10109         * tests/test-mbrtowc-w32-1.sh: New file.
10110         * tests/test-mbrtowc-w32-2.sh: New file.
10111         * tests/test-mbrtowc-w32-3.sh: New file.
10112         * tests/test-mbrtowc-w32-4.sh: New file.
10113         * tests/test-mbrtowc-w32-5.sh: New file.
10114         * tests/test-mbrtowc-w32.c: New file.
10115         * modules/mbrtowc-tests (Files): Add them.
10116         (Makefile.am): Arrange to run these tests.
10117         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10118         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10119
10120 2011-02-13  Bruno Haible  <bruno@clisp.org>
10121
10122         mbrtowc: Work around native Windows bug.
10123         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10124         guess when no suitable locale for testing was found.
10125         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10126
10127 2011-02-13  Bruno Haible  <bruno@clisp.org>
10128
10129         mbsinit: Work around mingw bug.
10130         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10131         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10132         Windows.
10133         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10134
10135 2011-02-13  Bruno Haible  <bruno@clisp.org>
10136
10137         mbsinit: Don't crash for a NULL argument.
10138         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10139         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10140
10141 2011-02-13  Bruno Haible  <bruno@clisp.org>
10142
10143         Don't interfere with a program's definition of __attribute__.
10144         * lib/stdio.in.h (__attribute__): Remove definition.
10145         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10146         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10147         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10148         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10149         * lib/string.in.h (__attribute__): Remove definition.
10150         Reported by Paul Eggert.
10151
10152 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10153
10154         stdlib: don't get in the way of non-GCC __attribute__
10155         See thread starting at
10156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10157         Revert previous stdlib change, installing the following instead:
10158         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10159         to get in the way of a non-GCC compiler that supports __attribute__.
10160         (_GL_ATTRIBUTE_RETURN): New macro.
10161         (_Exit): Use it instead of __attribute__.
10162
10163 2011-02-12  Bruno Haible  <bruno@clisp.org>
10164
10165         quotearg test: Avoid test failure on mingw.
10166         * tests/test-quotearg.sh: Convert the locale identifier from native
10167         Windows syntax to Unix syntax.
10168
10169 2011-02-12  Bruno Haible  <bruno@clisp.org>
10170
10171         setlocale: Prefer gnulib's override over libintl's override.
10172         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10173         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10174         GNULIB_defined_setlocale is set.
10175
10176 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10177
10178         stdlib: support non-GCC __attribute__
10179
10180         Fix a serious and tricky problem encountered when attempting to
10181         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10182         5.5, but it crashed due to memory corruption on Solaris 10 with
10183         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10184         bits that are otherwise zero.  This tagging is optional inside
10185         Emacs but is preferred and is used when __attribute__ ((__aligned
10186         (8))) works, as it does with both recent-enough GCC and with Sun C
10187         5.11.  However, Sun C 5.11 is not GCC and does not #define
10188         __GNUC__ and __GNUC_MINOR__.
10189
10190         When I added the getloadavg module to Emacs, it brought in
10191         stdlib.in.h, which contained this fragment:
10192
10193            #ifndef __attribute__
10194            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10195            #  define __attribute__(Spec)   /* empty */
10196            # endif
10197            #endif
10198
10199         When files that include <stdlib.h> were compiled with Sun C 5.11,
10200         the above code disabled __attribute__ ((__aligned (8))), which
10201         caused variables to not be properly aligned, which eventually led
10202         to the pointer corruption mentioned above.  (This was a bit hard
10203         to diagnose, unfortunately.)
10204
10205         Several "#define __attribute__(X) /* empty */" code snippets need
10206         to be eradicated from Gnulib to work with non-GCC compilers that
10207         support __attribute__.  The Autoconf way to do this is to test for
10208         each kind of attribute that we want support for, and selectively
10209         enable that in source code.
10210
10211         Fix this problem just for stdlib.h, by adding a test for the
10212         __noreturn__ attribute, and change stdlib.in.h to use that test
10213         when needed.  This technique can be easily generalized to the
10214         other *.in.h files and attributes, and a similar technique can be
10215         used for *.h and *.c files.  This patch is enough to solve the
10216         problem for Emacs + getloadavg, and I thought I'd publish it for
10217         feedback before undertaking further, similar fixes in other
10218         modules.
10219
10220         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10221         because it's not needed for stdlib.h.  It merely substitutes the
10222         value directly into stdlib.h.  We may well need to #define it, or
10223         similar symbols, for other modules, but it's nice to also have an
10224         option to not #define it for applications like Emacs that do not
10225         need it.
10226
10227         * lib/stdlib.in.h (__attribute__): Do not #define.
10228         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10229         be defined only if the _Exit module is also used.
10230         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10231         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10232         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10233         platforms.
10234         * modules/_Exit (Files): Add m4/attribute.m4.
10235         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10236         * m4/attribute.m4: New file.
10237
10238 2011-02-12  Bruno Haible  <bruno@clisp.org>
10239
10240         wcsrtombs: Work around bug on native Windows.
10241         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10242         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10243         instead of len.
10244         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10245
10246 2011-02-12  Bruno Haible  <bruno@clisp.org>
10247
10248         mbsrtowcs: Work around bug on native Windows.
10249         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10250         against mingw bug.
10251         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10252
10253 2011-02-12  Bruno Haible  <bruno@clisp.org>
10254
10255         Avoid setlocale bugs in tests.
10256         * modules/btowc (Dependencies): Add setlocale.
10257         * modules/c-strcase (Dependencies): Likewise.
10258         * modules/mbmemcasecmp (Dependencies): Likewise.
10259         * modules/mbmemcasecoll (Dependencies): Likewise.
10260         * modules/mbrtowc (Dependencies): Likewise.
10261         * modules/mbscasecmp (Dependencies): Likewise.
10262         * modules/mbscasestr (Dependencies): Likewise.
10263         * modules/mbschr (Dependencies): Likewise.
10264         * modules/mbscspn (Dependencies): Likewise.
10265         * modules/mbsinit (Dependencies): Likewise.
10266         * modules/mbsncasecmp (Dependencies): Likewise.
10267         * modules/mbsnrtowcs (Dependencies): Likewise.
10268         * modules/mbspbrk (Dependencies): Likewise.
10269         * modules/mbspcasecmp (Dependencies): Likewise.
10270         * modules/mbsrchr (Dependencies): Likewise.
10271         * modules/mbsrtowcs (Dependencies): Likewise.
10272         * modules/mbsspn (Dependencies): Likewise.
10273         * modules/mbsstr (Dependencies): Likewise.
10274         * modules/nl_langinfo (Dependencies): Likewise.
10275         * modules/quotearg (Dependencies): Likewise.
10276         * modules/unicase/locale-language (Dependencies): Likewise.
10277         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10278         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10279         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10280         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10281         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10282         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10283         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10284         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10285         * modules/vasnprintf-posix (Dependencies): Likewise.
10286         * modules/wcrtomb (Dependencies): Likewise.
10287         * modules/wcsnrtombs (Dependencies): Likewise.
10288         * modules/wcsrtombs (Dependencies): Likewise.
10289
10290 2011-02-12  Bruno Haible  <bruno@clisp.org>
10291
10292         setlocale: Workaround native Windows bug.
10293         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10294         succeeds but sets LC_CTYPE to "C", report a failure.
10295         * tests/test-setlocale2.sh: New file.
10296         * tests/test-setlocale2.c: New file.
10297         * modules/setlocale-tests (Files): Add the new files.
10298         (Makefile.am): Enable test-setlocale2.sh test.
10299         * doc/posix-functions/setlocale.texi: Mention workaround.
10300
10301 2011-02-11  Bruno Haible  <bruno@clisp.org>
10302
10303         Tests for module 'setlocale'.
10304         * modules/setlocale-tests: New file.
10305         * tests/test-setlocale1.sh: New file.
10306         * tests/test-setlocale1.c: New file.
10307
10308         New module 'setlocale'.
10309         * lib/locale.in.h (setlocale): New declaration.
10310         * lib/setlocale.c: New file, based on
10311         gettext/gettext-runtime/intl/setlocale.c.
10312         * m4/setlocale.m4: New file.
10313         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10314         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10315         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10316         REPLACE_SETLOCALE.
10317         * modules/setlocale: New file.
10318         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10319         * doc/posix-functions/setlocale.texi: Mention the new module.
10320
10321 2011-02-11  Bruno Haible  <bruno@clisp.org>
10322
10323         Prepare for locale dependent tests on mingw.
10324         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10325         because it has the wrong locale encoding.
10326         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10327         French_France.1252 instead of "fr".
10328         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10329         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10330         because it has the wrong locale encoding.
10331         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10332         native Windows, try Turkish_Turkey.65001.
10333         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10334         Chinese_China.54936.
10335
10336         Prepare for locale dependent tests on mingw.
10337         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10338         differently.
10339         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10340         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10341         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10342         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10343
10344 2011-02-11  Eric Blake  <eblake@redhat.com>
10345
10346         strptime: avoid compiler warnings
10347         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10348         compiler warnings about dead code.
10349         Reported by Daniel P. Berrange.
10350
10351 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10352
10353         doc: update users.txt
10354         * users.txt: Add rcs.
10355
10356 2011-02-10  John W. Eaton  <jwe@gnu.org>
10357
10358         doc: update users.txt
10359         * users.txt: Add octave.
10360
10361 2011-02-10  Jim Meyering  <meyering@redhat.com>
10362
10363         doc: update users.txt
10364         * users.txt: Add iwhd.
10365
10366 2011-02-09  Bruno Haible  <bruno@clisp.org>
10367
10368         gnulib-tool: Make copyright notice adjustment more robust.
10369         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10370         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10371         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10372         License".
10373         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10374
10375 2011-02-06  Bruno Haible  <bruno@clisp.org>
10376
10377         New module 'towctrans'.
10378         * modules/towctrans: New file.
10379         * lib/wctype.in.h (towctrans): New declaration.
10380         * lib/towctrans.c: New file.
10381         * lib/towctrans-impl.h: New file.
10382         * m4/towctrans.m4: New file.
10383         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10384         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10385         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10386         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10387         * doc/posix-functions/towctrans.texi: Mention the new module.
10388
10389 2011-02-06  Bruno Haible  <bruno@clisp.org>
10390
10391         New module 'wctrans'.
10392         * modules/wctrans: New file.
10393         * lib/wctype.in.h (wctrans): New declaration.
10394         * lib/wctrans.c: New file.
10395         * lib/wctrans-impl.h: New file.
10396         * m4/wctrans.m4: New file.
10397         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10398         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10399         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10400         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10401         * doc/posix-functions/wctrans.texi: Mention the new module.
10402
10403 2011-02-06  Bruno Haible  <bruno@clisp.org>
10404
10405         New module 'iswctype'.
10406         * modules/iswctype: New file.
10407         * lib/wctype.in.h (iswctype): New declaration.
10408         * lib/iswctype.c: New file.
10409         * lib/iswctype-impl.h: New file.
10410         * m4/iswctype.m4: New file.
10411         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10412         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10413         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10414         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10415         * doc/posix-functions/iswctype.texi: Mention the new module and the
10416         HP-UX 11.00 problem.
10417
10418 2011-02-06  Bruno Haible  <bruno@clisp.org>
10419
10420         New module 'wctype'.
10421         * modules/wctype: Change to represent the wctype() substitute.
10422         * lib/wctype.in.h (wctype): New declaration.
10423         * lib/wctype.c: New file.
10424         * lib/wctype-impl.h: New file.
10425         * m4/wctype.m4: New file.
10426         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10427         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10428         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10429         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10430         * doc/posix-functions/wctype.texi: Mention the new module and the
10431         HP-UX 11.00 problem.
10432
10433 2011-02-06  Bruno Haible  <bruno@clisp.org>
10434
10435         wctype-h: Ensure wctype_t and wctrans_t are defined.
10436         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10437         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10438         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10439         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10440         HAVE_WCTRANS_T.
10441         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10442
10443 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10444
10445         flock: fix license typo
10446
10447         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10448         omitted.
10449
10450 2011-02-08  Bruno Haible  <bruno@clisp.org>
10451
10452         Split large sed scripts, for HP-UX sed.
10453         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10454         to avoid HP-UX limit of 99 commands, in the near future.
10455         * modules/stdlib (Makefile.am): Likewise.
10456         * modules/unistd (Makefile.am): Likewise.
10457         * modules/wchar (Makefile.am): Likewise.
10458         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10459         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10460         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10461
10462 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10463             Bruno Haible  <bruno@clisp.org>
10464
10465         stdlib: improve random_r modularization
10466         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10467         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10468         you also need the random_r module to get this material right.
10469         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10470         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10471         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10472
10473 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10474
10475         stdlib: don't depend on stdint
10476         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10477         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10478         be independent of whether stdint.h is needed.
10479         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10480         here, instead of ...
10481         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10482         struct random_data should be using the random_r module, not just
10483         the stdlib module (which wouldn't make sense: what package needs
10484         just struct random_data without also needing random_r?).
10485         * modules/stdlib (Depends-on): Remove stdint.
10486
10487         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10488         See the thread rooted at
10489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10490         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10491         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10492         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10493         __VMS)); previously it was always included (via fcntl--.h).
10494         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10495         hand; this is good enough for load averages.  Also, do not use
10496         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10497         flags directly if available and don't bother otherwise.  (Packages
10498         that need the extra reliability should use the modules that define
10499         these flags on older platforms that lack them.)
10500         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10501         fcntl-safer.
10502
10503 2011-02-08  Jim Meyering  <meyering@redhat.com>
10504
10505         di-set.h, ino-map.h: add multiple-inclusion guard
10506         Technically, the guard is required only for ino-map.h, due to its
10507         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10508         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10509         * lib/ino-map.h: Likewise.
10510
10511 2011-02-06  Bruno Haible  <bruno@clisp.org>
10512
10513         iswblank: Ensure declaration on glibc systems.
10514         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10515         * modules/iswblank (Dependencies): Add 'extensions'.
10516         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10517
10518 2011-02-06  Bruno Haible  <bruno@clisp.org>
10519
10520         New module 'iswblank'.
10521         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10522         * modules/iswblank: New file.
10523         * modules/wctype-h (Files): Remove lib/iswblank.c.
10524         (Makefile.am): Substitute GNULIB_ISWBLANK.
10525         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10526         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10527         (gl_WCTYPE_H_DEFAULTS): New macro.
10528         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10529         * modules/iswblank-tests: New file.
10530         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10531         * tests/test-wctype-h.c (main): Remove iswblank tests.
10532         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10533         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10534         of 'wctype-h'.
10535         * NEWS: Mention the change.
10536         * modules/mbchar (Depends-on): Add iswblank.
10537
10538 2011-02-08  Bruno Haible  <bruno@clisp.org>
10539
10540         di-set tests: Refactor.
10541         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10542         unnecessary includes.
10543         (ASSERT): Remove macro.
10544         (main): Make C90 compliant by avoiding variable declaration after
10545         statement.
10546         * modules/di-set-tests (Files): Add tests/macros.h.
10547
10548 2011-02-08  Bruno Haible  <bruno@clisp.org>
10549
10550         ino-map tests: Refactor.
10551         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10552         unnecessary includes.
10553         (ASSERT): Remove macro.
10554         (main): Make C90 compliant by avoiding variable declaration after
10555         statement.
10556         * modules/ino-map-tests (Files): Add tests/macros.h.
10557
10558 2011-02-08  Jim Meyering  <meyering@redhat.com>
10559
10560         di-set: add "const" to a cast
10561         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10562         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10563
10564 2011-02-06  Bruno Haible  <bruno@clisp.org>
10565
10566         Rename module 'wctype' to 'wctype-h'.
10567         * modules/wctype-h: Renamed from modules/wctype.
10568         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10569         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10570         (Files, Depends-on, Makefile.am): Update.
10571         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10572         (Files, Makefile.am): Update.
10573         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10574         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10575         * doc/posix-headers/wctype.texi: Update.
10576         * doc/posix-functions/iswalnum.texi: Update.
10577         * doc/posix-functions/iswalpha.texi: Update.
10578         * doc/posix-functions/iswblank.texi: Update.
10579         * doc/posix-functions/iswcntrl.texi: Update.
10580         * doc/posix-functions/iswdigit.texi: Update.
10581         * doc/posix-functions/iswgraph.texi: Update.
10582         * doc/posix-functions/iswlower.texi: Update.
10583         * doc/posix-functions/iswprint.texi: Update.
10584         * doc/posix-functions/iswpunct.texi: Update.
10585         * doc/posix-functions/iswspace.texi: Update.
10586         * doc/posix-functions/iswupper.texi: Update.
10587         * doc/posix-functions/iswxdigit.texi: Update.
10588         * doc/posix-functions/towlower.texi: Update.
10589         * doc/posix-functions/towupper.texi: Update.
10590         * NEWS: Mention the change.
10591         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10592         * modules/mbchar (Dependencies): Likewise.
10593         * modules/mbswidth (Dependencies): Likewise.
10594         * modules/quotearg (Dependencies): Likewise.
10595         * modules/regex (Dependencies): Likewise.
10596         * modules/wcscasecmp (Dependencies): Likewise.
10597         * modules/wcsncasecmp (Dependencies): Likewise.
10598         * modules/wcwidth (Dependencies): Likewise.
10599
10600 2011-02-06  Bruno Haible  <bruno@clisp.org>
10601
10602         New module 'wcswidth'.
10603         * modules/wcswidth: New file.
10604         * lib/wchar.in.h (wcswidth): New declaration.
10605         * lib/wcswidth.c: New file.
10606         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10607         * m4/wcswidth.m4: New file.
10608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10610         REPLACE_WCSWIDTH.
10611         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10612         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10613         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10614         * doc/posix-functions/wcswidth.texi: Mention the new module.
10615
10616 2011-02-06  Bruno Haible  <bruno@clisp.org>
10617
10618         New module 'wcstok'.
10619         * modules/wcstok: New file.
10620         * lib/wchar.in.h (wcstok): New declaration.
10621         * lib/wcstok.c: New file.
10622         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10623         * m4/wcstok.m4: New file.
10624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10626         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10627         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10628         * doc/posix-functions/wcstok.texi: Mention the new module.
10629
10630 2011-02-06  Bruno Haible  <bruno@clisp.org>
10631
10632         New module 'wcsstr'.
10633         * modules/wcsstr: New file.
10634         * lib/wchar.in.h (wcsstr): New declaration.
10635         * lib/wcsstr.c: New file.
10636         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10637         * m4/wcsstr.m4: New file.
10638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10640         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10641         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10642         * doc/posix-functions/wcsstr.texi: Mention the new module.
10643
10644 2011-02-06  Bruno Haible  <bruno@clisp.org>
10645
10646         New module 'wcspbrk'.
10647         * modules/wcspbrk: New file.
10648         * lib/wchar.in.h (wcspbrk): New declaration.
10649         * lib/wcspbrk.c: New file.
10650         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10651         * m4/wcspbrk.m4: New file.
10652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10654         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10655         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10656         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10657
10658 2011-02-06  Bruno Haible  <bruno@clisp.org>
10659
10660         New module 'wcsspn'.
10661         * modules/wcsspn: New file.
10662         * lib/wchar.in.h (wcsspn): New declaration.
10663         * lib/wcsspn.c: New file.
10664         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10665         * m4/wcsspn.m4: New file.
10666         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10667         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10668         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10669         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10670         * doc/posix-functions/wcsspn.texi: Mention the new module.
10671
10672 2011-02-06  Bruno Haible  <bruno@clisp.org>
10673
10674         New module 'wcscspn'.
10675         * modules/wcscspn: New file.
10676         * lib/wchar.in.h (wcscspn): New declaration.
10677         * lib/wcscspn.c: New file.
10678         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10679         * m4/wcscspn.m4: New file.
10680         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10681         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10682         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10683         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10684         * doc/posix-functions/wcscspn.texi: Mention the new module.
10685
10686 2011-02-06  Bruno Haible  <bruno@clisp.org>
10687
10688         New module 'wcsrchr'.
10689         * modules/wcsrchr: New file.
10690         * lib/wchar.in.h (wcsrchr): New declaration.
10691         * lib/wcsrchr.c: New file.
10692         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10693         * m4/wcsrchr.m4: New file.
10694         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10695         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10696         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10697         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10698         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10699
10700 2011-02-06  Bruno Haible  <bruno@clisp.org>
10701
10702         New module 'wcschr'.
10703         * modules/wcschr: New file.
10704         * lib/wchar.in.h (wcschr): New declaration.
10705         * lib/wcschr.c: New file.
10706         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10707         * m4/wcschr.m4: New file.
10708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10710         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10711         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10712         * doc/posix-functions/wcschr.texi: Mention the new module.
10713
10714 2011-02-06  Bruno Haible  <bruno@clisp.org>
10715
10716         New module 'wcsdup'.
10717         * modules/wcsdup: New file.
10718         * lib/wchar.in.h (wcsdup): New declaration.
10719         * lib/wcsdup.c: New file.
10720         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10721         * m4/wcsdup.m4: New file.
10722         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10723         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10724         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10725         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10726         * doc/posix-functions/wcsdup.texi: Mention the new module.
10727
10728 2011-02-06  Bruno Haible  <bruno@clisp.org>
10729
10730         New module 'wcsxfrm'.
10731         * modules/wcsxfrm: New file.
10732         * lib/wchar.in.h (wcsxfrm): New declaration.
10733         * lib/wcsxfrm.c: New file.
10734         * lib/wcsxfrm-impl.h: New file.
10735         * m4/wcsxfrm.m4: New file.
10736         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10737         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10738         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10739         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10740         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10741
10742 2011-02-06  Bruno Haible  <bruno@clisp.org>
10743
10744         New module 'wcscoll'.
10745         * modules/wcscoll: New file.
10746         * lib/wchar.in.h (wcscoll): New declaration.
10747         * lib/wcscoll.c: New file.
10748         * lib/wcscoll-impl.h: New file.
10749         * m4/wcscoll.m4: New file.
10750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10752         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10753         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10754         * doc/posix-functions/wcscoll.texi: Mention the new module.
10755
10756 2011-02-06  Bruno Haible  <bruno@clisp.org>
10757
10758         New module 'wcsncasecmp'.
10759         * modules/wcsncasecmp: New file.
10760         * lib/wchar.in.h (wcsncasecmp): New declaration.
10761         * lib/wcsncasecmp.c: New file.
10762         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10763         * m4/wcsncasecmp.m4: New file.
10764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10766         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10767         HAVE_WCSNCASECMP.
10768         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10769         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10770
10771 2011-02-06  Bruno Haible  <bruno@clisp.org>
10772
10773         New module 'wcscasecmp'.
10774         * modules/wcscasecmp: New file.
10775         * lib/wchar.in.h (wcscasecmp): New declaration.
10776         * lib/wcscasecmp.c: New file.
10777         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10778         * m4/wcscasecmp.m4: New file.
10779         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10780         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10781         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10782         HAVE_WCSCASECMP.
10783         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10784         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10785
10786 2011-02-05  Bruno Haible  <bruno@clisp.org>
10787
10788         New module 'wcsncmp'.
10789         * modules/wcsncmp: New file.
10790         * lib/wchar.in.h (wcsncmp): New declaration.
10791         * lib/wcsncmp.c: New file.
10792         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10793         * m4/wcsncmp.m4: New file.
10794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10797         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10798         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10799
10800 2011-02-05  Bruno Haible  <bruno@clisp.org>
10801
10802         New module 'wcscmp'.
10803         * modules/wcscmp: New file.
10804         * lib/wchar.in.h (wcscmp): New declaration.
10805         * lib/wcscmp.c: New file.
10806         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10807         * m4/wcscmp.m4: New file.
10808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10811         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10812         * doc/posix-functions/wcscmp.texi: Mention the new module.
10813
10814 2011-02-05  Bruno Haible  <bruno@clisp.org>
10815
10816         New module 'wcsncat'.
10817         * modules/wcsncat: New file.
10818         * lib/wchar.in.h (wcsncat): New declaration.
10819         * lib/wcsncat.c: New file.
10820         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10821         * m4/wcsncat.m4: New file.
10822         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10823         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10824         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10825         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10826         * doc/posix-functions/wcsncat.texi: Mention the new module.
10827
10828 2011-02-05  Bruno Haible  <bruno@clisp.org>
10829
10830         New module 'wcscat'.
10831         * modules/wcscat: New file.
10832         * lib/wchar.in.h (wcscat): New declaration.
10833         * lib/wcscat.c: New file.
10834         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10835         * m4/wcscat.m4: New file.
10836         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10837         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10838         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10839         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10840         * doc/posix-functions/wcscat.texi: Mention the new module.
10841
10842 2011-02-05  Bruno Haible  <bruno@clisp.org>
10843
10844         New module 'wcpncpy'.
10845         * modules/wcpncpy: New file.
10846         * lib/wchar.in.h (wcpncpy): New declaration.
10847         * lib/wcpncpy.c: New file.
10848         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10849         * m4/wcpncpy.m4: New file.
10850         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10851         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10852         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10853         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10854         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10855
10856 2011-02-05  Bruno Haible  <bruno@clisp.org>
10857
10858         New module 'wcsncpy'.
10859         * modules/wcsncpy: New file.
10860         * lib/wchar.in.h (wcsncpy): New declaration.
10861         * lib/wcsncpy.c: New file.
10862         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10863         * m4/wcsncpy.m4: New file.
10864         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10865         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10866         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10867         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10868         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10869
10870 2011-02-05  Bruno Haible  <bruno@clisp.org>
10871
10872         New module 'wcpcpy'.
10873         * modules/wcpcpy: New file.
10874         * lib/wchar.in.h (wcpcpy): New declaration.
10875         * lib/wcpcpy.c: New file.
10876         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10877         * m4/wcpcpy.m4: New file.
10878         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10879         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10880         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10881         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10882         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10883
10884 2011-02-05  Bruno Haible  <bruno@clisp.org>
10885
10886         New module 'wcscpy'.
10887         * modules/wcscpy: New file.
10888         * lib/wchar.in.h (wcscpy): New declaration.
10889         * lib/wcscpy.c: New file.
10890         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10891         * m4/wcscpy.m4: New file.
10892         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10893         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10894         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10895         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10896         * doc/posix-functions/wcscpy.texi: Mention the new module.
10897
10898 2011-02-05  Bruno Haible  <bruno@clisp.org>
10899
10900         New module 'wcsnlen'.
10901         * modules/wcsnlen: New file.
10902         * lib/wchar.in.h (wcsnlen): New declaration.
10903         * lib/wcsnlen.c: New file.
10904         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10905         * m4/wcsnlen.m4: New file.
10906         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10907         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10908         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10909         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10910         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10911
10912 2011-02-05  Bruno Haible  <bruno@clisp.org>
10913
10914         New module 'wcslen'.
10915         * modules/wcslen: New file.
10916         * lib/wchar.in.h (wcslen): New declaration.
10917         * lib/wcslen.c: New file.
10918         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10919         * m4/wcslen.m4: New file.
10920         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10921         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10923         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10924         * doc/posix-functions/wcslen.texi: Mention the new module.
10925
10926 2011-02-05  Bruno Haible  <bruno@clisp.org>
10927
10928         New module 'wmemset'.
10929         * modules/wmemset: New file.
10930         * lib/wchar.in.h (wmemset): New declaration.
10931         * lib/wmemset.c: New file.
10932         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10933         * m4/wmemset.m4: New file.
10934         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10935         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10936         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10937         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10938         * doc/posix-functions/wmemset.texi: Mention the new module.
10939
10940 2011-02-05  Bruno Haible  <bruno@clisp.org>
10941
10942         New module 'wmemmove'.
10943         * modules/wmemmove: New file.
10944         * lib/wchar.in.h (wmemmove): New declaration.
10945         * lib/wmemmove.c: New file.
10946         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10947         * m4/wmemmove.m4: New file.
10948         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10949         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10950         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10951         HAVE_WMEMMOVE.
10952         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10953         * doc/posix-functions/wmemmove.texi: Mention the new module.
10954
10955 2011-02-05  Bruno Haible  <bruno@clisp.org>
10956
10957         New module 'wmemcpy'.
10958         * modules/wmemcpy: New file.
10959         * lib/wchar.in.h (wmemcpy): New declaration.
10960         * lib/wmemcpy.c: New file.
10961         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10962         * m4/wmemcpy.m4: New file.
10963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10965         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10966         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10967         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10968
10969 2011-02-05  Bruno Haible  <bruno@clisp.org>
10970
10971         New module 'wmemcmp'.
10972         * modules/wmemcmp: New file.
10973         * lib/wchar.in.h (wmemcmp): New declaration.
10974         * lib/wmemcmp.c: New file.
10975         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10976         * m4/wmemcmp.m4: New file.
10977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10979         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10980         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10981         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10982
10983 2011-02-07  Jim Meyering  <meyering@redhat.com>
10984
10985         di-set, ino-map: new modules, from coreutils
10986         * lib/di-set.c: New file.
10987         * lib/di-set.h: Likewise.
10988         * lib/ino-map.c: Likewise.
10989         * lib/ino-map.h: Likewise.
10990         * modules/di-set: Likewise.
10991         * modules/di-set-tests: Likewise.
10992         * modules/ino-map: Likewise.
10993         * modules/ino-map-tests: Likewise.
10994         * tests/test-di-set.c: Likewise.
10995         * tests/test-ino-map.c: Likewise.
10996
10997 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10998
10999         getloadavg: merge minor changes from Emacs
11000
11001         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11002         (getloadavg): Use memset, not bzero.
11003
11004         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11005         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11006         clash (bug#86).
11007
11008 2010-11-14  Bruno Haible  <bruno@clisp.org>
11009
11010         Allow multiple gnulib generated replacements to coexist.
11011         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11012         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11013         * lib/langinfo.in.h (nl_item): Likewise.
11014         * lib/math.in.h (_NaN, NAN): Likewise.
11015         * lib/netdb.in.h (struct addrinfo): Likewise.
11016         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11017         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11018         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11019         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11020         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11021         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11022         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11023         pthread_mutexattr_init, pthread_mutexattr_settype,
11024         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11025         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11026         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11027         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11028         * lib/sched.in.h (struct sched_param): Likewise.
11029         * lib/se-selinux.in.h (security_class_t, security_context_t,
11030         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11031         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11032         lsetfilecon, fsetfilecon, security_check_context,
11033         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11034         Likewise.
11035         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11036         Likewise.
11037         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11038         _gl_function_taking_int_returning_void_t, union sigval,
11039         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11040         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11041         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11042         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11043         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11044         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11045         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11046         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11047         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11048         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11049         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11050         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11051         socklen_t, rpl_fd_isset): Likewise.
11052         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11053         * lib/sys_time.in.h (struct timeval): Likewise.
11054         * lib/sys_times.in.h (struct tms): Likewise.
11055         * lib/sys_utsname.in.h (struct utsname):
11056         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11057         * lib/unistd.in.h (getpagesize): Likewise.
11058         * lib/wchar.in.h (mbstate_t): Likewise.
11059         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11060         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11061         towlower, towupper): Likewise.
11062         Reported by Sam Steingold <sds@gnu.org>.
11063
11064 2011-02-05  Eric Blake  <eblake@redhat.com>
11065
11066         unsetenv: work around Haiku issues
11067         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11068         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11069
11070 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11071
11072         libposix: avoid calling error() within libposix
11073         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11074         is defined.
11075
11076 2011-02-05  Eric Blake  <eblake@redhat.com>
11077
11078         strerror_r-posix: port to cygwin
11079         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11080         implementation.
11081         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11082         * tests/test-strerror_r.c (main): Fix test.
11083         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11084         issue.
11085
11086 2011-02-05  Bruno Haible  <bruno@clisp.org>
11087
11088         New module 'wmemchr'.
11089         * modules/wmemchr: New file.
11090         * lib/wchar.in.h (wmemchr): New declaration.
11091         * lib/wmemchr.c: New file.
11092         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11093         * m4/wmemchr.m4: New file.
11094         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11095         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11096         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11097         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11098         * doc/posix-functions/wmemchr.texi: Mention the new module.
11099
11100 2011-02-04  Eric Blake  <eblake@redhat.com>
11101
11102         fdopendir: detect FreeBSD bug
11103         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11104         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11105
11106 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11107
11108         stdbool: do not define HAVE_STDBOOL_H
11109         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11110         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11111         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11112         imported from the latest Autoconf git.  It was motivated by Emacs,
11113         which uses gnulib but does not need HAVE_STDBOOL_H.
11114
11115 2011-02-04  Bruno Haible  <bruno@clisp.org>
11116
11117         wcsnrtombs: Prepare for new module wwcsnrtombs.
11118         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11119         * lib/wcsnrtombs.c: Include it.
11120         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11121
11122         wcsrtombs: Prepare for new module wwcsrtombs.
11123         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11124         * lib/wcsrtombs.c: Include it.
11125         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11126
11127         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11128         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11129         * lib/mbsnrtowcs.c: Include it.
11130         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11131
11132         mbsrtowcs: Prepare for new module mbsrtowwcs.
11133         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11134         * lib/mbsrtowcs.c: Include it.
11135         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11136
11137 2011-02-04  Bruno Haible  <bruno@clisp.org>
11138
11139         vasnprintf: Reduce use of malloc for small format strings.
11140         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11141         (arguments): Add room for the first 7 arguments.
11142         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11143         (char_directives, u8_directives, u16_directives, u32_directives): Add
11144         room for the first 7 directives.
11145         * lib/printf-parse.c: Include <string.h>.
11146         (PRINTF_PARSE): Change memory handling code so that it uses the first
11147         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11148         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11149         Reported by Pádraig Brady <P@draigbrady.com>.
11150
11151 2011-01-31  Eric Blake  <eblake@redhat.com>
11152
11153         dup2: work around Haiku bug
11154         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11155         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11156         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11157         * tests/test-dup2.c (main): Enhance test.
11158
11159 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11160
11161         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11162         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11163         declared by eglibc 2.11.2.
11164         * lib/stdio.in.h: Likewise.
11165
11166 2011-01-31  Eric Blake  <eblake@redhat.com>
11167
11168         ignore-value: add missing test dependency
11169         * tests/test-ignore-value.c: Revert previous change; stdio.h
11170         provides off_t.
11171         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11172
11173 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11174
11175         mktime: clarify long_int width checking
11176         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11177         the top level, to make it clearer that the assumption about
11178         long_int width is being checked.  See
11179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11180
11181 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11182
11183         ignore-value: Fix self-test.
11184         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11185
11186 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11187
11188         TYPE_MAXIMUM: avoid theoretically undefined behavior
11189         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11190         negative number, which the C Standard says has undefined behavior.
11191         In practice this is not a problem, but might as well do it by the book.
11192         Reported by Rich Felker and Eric Blake; see
11193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11194         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11195         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11196         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11197         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11198         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11199         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11200
11201         mktime: #undef mktime before #defining it
11202         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11203
11204         mktime: systematically normalize tm_isdst comparisons
11205         * lib/mktime.c (isdst_differ): New function.
11206         (__mktime_internal): Use it systematically for all isdst comparisons.
11207         This completes the fix for libc BZ #6723, and removes the need for
11208         normalizing tm_isdst.  See
11209         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11210         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11211
11212         mktime: fix some integer overflow issues and sidestep the rest
11213
11214         This was prompted by a bug report by Benjamin Lindner for MinGW
11215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11216         His bug is due to signed integer overflow (0 - INT_MIN), and I
11217         I scanned through mktime.c looking for other integer overflow
11218         problems, fixing all the bugs I found.
11219
11220         Although the C Standard says the resulting code is still not safe
11221         in the presence of integer overflow, in practice it should be good
11222         enough for all real-world two's-complement implementations, except
11223         for debugging environments that deliberately trap on integer
11224         overflow (e.g., gcc -ftrapv).
11225
11226         * lib/mktime.c (WRAPV): New macro.
11227         (SHR): Also check that long_int and time_t shift right in the
11228         usual way, before using the fast-but-unportable method.
11229         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11230         used.  The code already assumed two's complement, so there's
11231         no need to test for alternatives.  All uses removed.
11232         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11233         the C standard.  Problem reported by Rich Felker in
11234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11235         (twos_complement_arithmetic): Also check long_int and time_t.
11236         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11237         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11238         (__mktime_internal): Avoid integer overflow with unary subtraction
11239         in two instances where -1 - X is an adequate replacement for -X,
11240         since the calculations are approximate.
11241
11242 2011-01-29  Eric Blake  <eblake@redhat.com>
11243
11244         mktime: avoid infinite loop
11245         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11246         type; behavior is still undefined but portable to all known targets.
11247         Reported by Rich Felker.
11248
11249 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11250
11251         rename, unlink, same-inode: Relicense.
11252         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11253         * modules/unlink (License): Likewise.
11254         * modules/same-inode (License): Likewise.
11255
11256 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11257
11258         mktime: avoid problems on NetBSD 5 / i386
11259         * lib/mktime.c (long_int): New type.  This works around a problem
11260         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11261         but time_t is 64 bits, and where I expect the existing code is
11262         wrong in some cases.
11263         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11264         (ydhms_diff): Bring back the compile-time check for wide-enough
11265         year and yday.
11266
11267         mktime: fix misspelling in comment
11268         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11269         This merges all recent glibc changes of importance.
11270
11271 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11272
11273         move-if-change: cope with concurrent mv of identical file.
11274         * build-aux/move-if-change (CMPPROG): Accept environment
11275         variable as an override for `cmp'.
11276         (usage): Document CMPPROG.
11277         Adjust comparison to drop stdout.  Cope with failure of mv if
11278         the target file exists and is identical to the source, for
11279         parallel builds.
11280         Report from H.J. Lu against binutils in PR binutils/12283.
11281
11282 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11283
11284         * users.txt: Mention sharutils.
11285
11286 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11287
11288         * users.txt: Mention OATH Toolkit.
11289
11290 2011-01-27  Bruno Haible  <bruno@clisp.org>
11291
11292         Prepare for supporting FreeBSD 10.
11293         * build-aux/config.libpath: Remove handling of freebsd1*.
11294
11295 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11296
11297         Prepare for supporting FreeBSD 10.
11298         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11299         match FreeBSD 10.0.
11300
11301 2011-01-27  Bruno Haible  <bruno@clisp.org>
11302
11303         vma-iter, get-rusage-as: Add OpenBSD support.
11304         * modules/vma-iter (configure.ac): Test for mquery.
11305         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11306         * lib/vma-iter.c: Include <sys/mman.h>.
11307         (vma_iterate): Add an implementation based on mquery().
11308         * lib/resource-ext.h (get_rusage_as): Update comments.
11309         * lib/get-rusage-as.c: Likewise.
11310         * lib/get-rusage-data.c: Likewise.
11311
11312 2011-01-26  Karl Berry  <karl@gnu.org>
11313
11314         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11315         variables to make it easier to override the makeinfo program used.
11316
11317 2011-01-26  Eric Blake  <eblake@redhat.com>
11318
11319         fcntl: work around Haiku F_DUPFD bugs
11320         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11321         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11322         cloexec bit on duplication.
11323         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11324
11325 2011-01-26  Bruno Haible  <bruno@clisp.org>
11326
11327         Enable memory leak tests on AIX.
11328         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11329         * tests/test-fprintf-posix3.c (main): Likewise.
11330
11331 2011-01-26  Bruno Haible  <bruno@clisp.org>
11332
11333         Tests for module 'get-rusage-data'.
11334         * modules/get-rusage-data-tests: New file.
11335         * tests/test-get-rusage-data.c: New file.
11336
11337         New module 'get-rusage-data'.
11338         * lib/resource-ext.h (get_rusage_data): New declaration.
11339         * lib/get-rusage-data.c: New file.
11340         * modules/get-rusage-data: New file.
11341
11342 2011-01-25  Bruno Haible  <bruno@clisp.org>
11343
11344         get-rusage-as: Allow for easier testing.
11345         * lib/resource-ext.h (get_rusage_as): Add comment.
11346         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11347         (main): New function for interactive testing.
11348
11349 2011-01-25  Bruno Haible  <bruno@clisp.org>
11350
11351         vma-iter: Treat Haiku like BeOS.
11352         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11353         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11354
11355 2011-01-25  Eric Blake  <eblake@redhat.com>
11356
11357         c-stack: fix regression on cygwin when libsigsegv is present
11358         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11359
11360 2011-01-24  Bruno Haible  <bruno@clisp.org>
11361
11362         vma-iter: Avoid empty intervals.
11363         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11364         on an empty interval.
11365
11366 2011-01-24  Jim Meyering  <meyering@redhat.com>
11367
11368         u64: remove unnecessary #include
11369         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11370
11371 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11372
11373         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11374         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11375
11376 2011-01-23  Bruno Haible  <bruno@clisp.org>
11377
11378         New module 'vma-iter'.
11379         * lib/vma-iter.h: New file.
11380         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11381         * modules/vma-iter: New file.
11382         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11383         for get_rusage_as_via_iterator.
11384         (vma_iterate_callback): New function.
11385         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11386         * modules/get-rusage-as (Depends-on): Add vma-iter.
11387
11388 2011-01-23  Bruno Haible  <bruno@clisp.org>
11389
11390         uninorm: Tweak includes.
11391         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11392         Reported by Jim Meyering.
11393
11394 2011-01-23  Bruno Haible  <bruno@clisp.org>
11395
11396         get-rusage-as: Improve on NetBSD.
11397         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11398         /proc, like on FreeBSD.
11399
11400 2011-01-23  Jim Meyering  <meyering@redhat.com>
11401
11402         xreadlink.h: remove unnecessary #include
11403         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11404
11405         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11406         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11407
11408 2011-01-23  Bruno Haible  <bruno@clisp.org>
11409
11410         get-rusage-as: Fix bug.
11411         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11412         original limit when aborting the first loop.
11413
11414 2011-01-23  Bruno Haible  <bruno@clisp.org>
11415
11416         wctype: Ensure valid C syntax.
11417         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11418         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11419
11420 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11421
11422         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11424         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11425         as they are needed only for configure's test case.
11426         This removes two unnecessary symbols from config.h.
11427
11428         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11429         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11431         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11432         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11433         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11434         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11435         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11436         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11437         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11438         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11439         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11440         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11441         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11442         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11443         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11444         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11445         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11446
11447 2011-01-21  Eric Blake  <eblake@redhat.com>
11448
11449         maintainer-makefile: work with older git for submodule check
11450         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11451         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11452         Reported by Matthias Bolte.
11453
11454         bootstrap: minor portability fixes
11455         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11456         (usage): Omit leading capital and trailing . on help phrases, per
11457         GNU Coding Standards.
11458         (check_versions, top level): Prefix messages with script name.
11459
11460 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11461
11462         bootstrap: support --no-git option
11463         * build-aux/bootstrap: Add --no-git option, to be used when
11464         --gnulib-srcdir points to the exact desired checkout.
11465
11466 2011-01-21  Eric Blake  <eblake@redhat.com>
11467
11468         strerror_r-posix: work with glibc 2.13
11469         * lib/strerror_r.c (strerror_r): Fix return type.
11470
11471 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11472             Bruno Haible  <bruno@clisp.org>
11473
11474         uN_strstr: New unit tests.
11475         * modules/unistr/u8-strstr-tests: New file.
11476         * modules/unistr/u16-strstr-tests: New file.
11477         * modules/unistr/u32-strstr-tests: New file.
11478         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11479         * tests/unistr/test-u8-strstr.c: New file.
11480         * tests/unistr/test-u16-strstr.c: New file.
11481         * tests/unistr/test-u32-strstr.c: New file.
11482
11483 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11484             Bruno Haible  <bruno@clisp.org>
11485
11486         Make uN_strstr functions O(n) worst-case.
11487         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11488         16-bit and 32-bit unit cases, use the unibyte algorithm from
11489         lib/mbsstr.c.
11490         * lib/unistr/u8-strstr.c: Include <string.h>.
11491         (UNIT_IS_UINT8_T): New macro.
11492         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11493         (U_STRLEN, U_STRNLEN): New macros.
11494         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11495         (U_STRLEN, U_STRNLEN): New macros.
11496         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11497         (configure.ac): Update required libunistring version.
11498         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11499         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11500         malloca.
11501         (configure.ac): Update required libunistring version.
11502         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11503         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11504         malloca.
11505         (configure.ac): Update required libunistring version.
11506
11507 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11508             Bruno Haible  <bruno@clisp.org>
11509
11510         Prepare for faster uN_strstr functions.
11511         * lib/str-kmp.h: Support definable UNITs.
11512         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11513         needle_len argument.
11514         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11515         * lib/mbscasestr.c (mbscasestr): Likewise.
11516
11517 2011-01-21  Pádraig Brady <P@draigBrady.com>
11518
11519         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11520         * tests/test-malloca.c (main): Unset the environment variable
11521         to greatly speed up the test.
11522         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11523         * modules/malloca-tests: Depend on unsetenv.
11524
11525 2011-01-21  Pádraig Brady <P@draigBrady.com>
11526
11527         ignore-value: remove stdint dependency
11528         * lib/ignore-value.h: Remove <stdint.h>
11529         * modules/ignore-value: Remove stdint dependency.
11530
11531 2011-01-21  Jim Meyering  <meyering@redhat.com>
11532
11533         maint.mk: adjust variable name to be consistent with other gl_ vars
11534         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11535         to be lower case.
11536
11537 2011-01-20  Jim Meyering  <meyering@redhat.com>
11538
11539         maint.mk: make "check" depend on public-submodule-commit by default
11540         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11541
11542 2011-01-20  Bruno Haible  <bruno@clisp.org>
11543
11544         mbfile, mbiter: Complete change from 2008-12-21.
11545         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11546         * m4/mbiter.m4 (gl_MBITER): Likewise.
11547
11548 2011-01-20  Jim Meyering  <meyering@redhat.com>
11549
11550         init.sh: insert space between each function name and "()"
11551         * tests/init.sh: Make it a little easier to see that a function's
11552         name is "warn_", and not "warn" when looking at the first part of
11553         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11554
11555 2011-01-20  Jim Meyering  <meyering@redhat.com>
11556
11557         mountlist: clean up code formatting
11558         * lib/mountlist.c (read_file_system_list): Split a long line,
11559         correct bracing style, use NULL in place of "(struct statfs *)0",
11560         don't parenthesize return value, add spaces around "=" and after
11561         ";-in-for-stmt".
11562
11563 2011-01-14  Markus Duft <mduft@gentoo.org>
11564
11565         mountlist: add support for Interix
11566         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11567         Apply statvfs to all entries of /dev/fs.
11568         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11569         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11570
11571 2011-01-20  Jim Meyering  <meyering@redhat.com>
11572
11573         maint.mk: improve the public-submodule-commit rule
11574         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11575         to suppress printing of its commands... unless V=1.
11576         Add git submodule's --quiet option to suppress printing of e.g.,
11577         "Entering gnulib" output.
11578         "cd" into $(srcdir) before running git submodule.
11579
11580 2011-01-20  Bruno Haible  <bruno@clisp.org>
11581
11582         include_next: Fix bug introduced on 2011-01-18.
11583         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11584         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11585         ac_cv_header_... variable if the second argument is not 'check'.
11586         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11587         gl_NEXT_HEADERS_INTERNAL.
11588
11589 2011-01-20  Bruno Haible  <bruno@clisp.org>
11590
11591         Allow the user to avoid the GNULIB_TEST_* macros.
11592         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11593         Suggested by Paul Eggert.
11594
11595 2011-01-14  Jim Meyering  <meyering@redhat.com>
11596
11597         bootstrap: avoid failure when there is no .gitmodules file
11598         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11599         has been assigned to, even when its value is the empty string.
11600         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11601         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11602         Reported by John W. Eaton <jwe@gnu.org>.
11603
11604 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11605
11606         assume <ctype.h>, ..., <time.h> exist
11607         For years gnulib has been assuming the existence of the headers
11608         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11609         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11610         them, since they don't appear to be needed.
11611         * README (Portability guidelines): Document this.
11612         * lib/flock.c: Assume <fcntl.h> exists.
11613         * lib/regex_internal.h: Assume <locale.h> exists.
11614         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11615         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11616         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11617         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11618         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11619         * m4/regex.m4 (gl_REGEX): Likewise.
11620         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11621         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11622         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11623         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11624         * tests/test-argp.c: Likewise.
11625         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11626
11627         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11628         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11629         AA_APPLE_UNIVERSAL_BUILD.  See
11630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11631         * NEWS: Document this.
11632
11633 2011-01-19  Eric Blake  <eblake@redhat.com>
11634
11635         c-stack: assume stack overflow if SA_SIGINFO unsupported
11636         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11637         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11638         sigaction will work.
11639         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11640         behavior match Linux.
11641         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11642
11643         stdbool-tests: accomodate Haiku
11644         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11645
11646         binary-io: fix O_TEXT on Haiku
11647         * modules/binary-io (Depends-on): Add fcntl-h.
11648         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11649         than blindly undefining O_TEXT.
11650         Reported by Scott McCreary.
11651
11652 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11653
11654         include_next: do not check for standard headers like stddef.h
11655
11656         I found this problem when modifying Emacs to use gnulib.
11657         I noticed that it added HAVE_STDDEF_H to config.h, even though
11658         gnulib always assumes <stddef.h> exists as per README and this
11659         symbol is unnecessary.
11660         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11661         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11662         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11663         faster for headers like stddef.h that are known to exist.
11664         (gl_CHECK_NEXT_HEADERS): Use it.
11665         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11666         rather than gl_CHECK_NEXT_HEADERS.
11667         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11668         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11669
11670 2011-01-18  Eric Blake  <eblake@redhat.com>
11671
11672         ansi-c++-opt: skip C++ dependency style if C++ is unused
11673         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11674         tests when we know C++ compilation is not desired.
11675         Reported by Scott McCreary.
11676
11677 2011-01-18  Bruno Haible  <bruno@clisp.org>
11678
11679         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11680         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11681         (main): Perform test also when getrlimit and setrlimit don't exist or
11682         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11683         limiting the address space size using setrlimit, compare the address
11684         space size before and after the the test.
11685         * tests/test-dprintf-posix2.c: Likewise.
11686         * tests/test-fprintf-posix3.sh: Update skip messages.
11687         * tests/test-dprintf-posix2.sh: Likewise.
11688         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11689         * modules/dprintf-posix-tests (Depends-on): Likewise.
11690         Reported by Bruce Korb <bkorb@gnu.org> and
11691         Gary V. Vaughan <gary@gnu.org>.
11692
11693 2011-01-18  Bruno Haible  <bruno@clisp.org>
11694
11695         get-rusage-as: Improvement for Cygwin.
11696         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11697         areas that are merely reserved.
11698
11699 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11700
11701         strftime: remove dependencies on multibyte modules
11702
11703         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11704         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11705         only if __osf__ is defined, and I suspect OSF doesn't need these
11706         other modules.  If my guess is wrong, we'll need to come up with a
11707         variant of strftime that doesn't need the multibyte modules.
11708
11709         I discovered this problem when attempting modify Emacs to use the
11710         strftime module.  With the previous gnulib, this caused Emacs to
11711         need 31 new files, ranging from lib/config.charset to
11712         m4/wint_t.m4.  This was overkill and I expect would be offputting
11713         to the Emacs maintainers.  After this change, only 6 new files are
11714         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11715         stdbool.m4, and tm_gmtoff.m4.
11716
11717         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11718         Suggested by Bruno Haible in
11719         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11720         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11721         and do not check for wchar.h.
11722         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11723         (Depends-on): Remove mbrlen, mbsinit, wchar.
11724
11725 2011-01-18  Bruno Haible  <bruno@clisp.org>
11726
11727         Tests for module 'get-rusage-as'.
11728         * modules/get-rusage-as-tests: New file.
11729         * tests/test-get-rusage-as.c: New file.
11730
11731         New module 'get-rusage-as'.
11732         * modules/get-rusage-as: New file.
11733         * lib/resource-ext.h: New file.
11734         * lib/get-rusage-as.c: New file.
11735
11736 2011-01-17  Eric Blake  <eblake@redhat.com>
11737
11738         sigaction: relax license from LGPLv3+ to LGPLv2+
11739         * modules/sigaction (License): Relax to LGPLv2+.
11740
11741 2011-01-14  Bruno Haible  <bruno@clisp.org>
11742
11743         filemode: Make function declarations usable in C++ mode.
11744         * lib/filemode.h: Enclose function declarations in extern "C" block.
11745         Reported by John W. Eaton <jwe@gnu.org>.
11746
11747 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11748
11749         save-cwd: no longer include "xgetcwd.h"
11750         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11751         This avoids a compilation failure in projects that use save-cwd
11752         without also using the xgetcwd module.
11753
11754 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11755
11756         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11757         This is so that a program like Emacs, which needs only dtoastr,
11758         does not have to bother with distributing and compiling ftoastr
11759         and ldtoastr.
11760         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11761         * modules/dtoastr, modules/ldtoastr: New files.
11762         * modules/ftoastr: Now works just for 'float'.
11763         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11764         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11765         dtoastr.c, ldtoastr.c.
11766
11767 2011-01-11  Jim Meyering  <meyering@redhat.com>
11768
11769         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11770         There is no need to work around the lack of the fchdir function,
11771         since gnulib can now provide a replacement when required.
11772         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11773         * modules/save-cwd (Depends-on): Add fchdir.
11774
11775 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11776
11777         openat, save-cwd: avoid xmalloc
11778
11779         This removes a direct (but undocumented) dependency of openat on
11780         xalloc, along with an indirect dependency via save-cwd.  It also
11781         removes a dependency of save-cwd on xgetcwd, and thereby
11782         indirectly on xalloc.  This change causes the openat substitute
11783         to fall back on save_cwd when memory is tight, and for save_cwd to
11784         fail instead of dying when memory is tight, but that's good enough.
11785         Problem and initial idea for fix reported by Bastien Roucaries in
11786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11787
11788         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11789         xalloc.h (for xmalloc).
11790         (openat_proc_name): Use malloc, not xmalloc.
11791         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11792         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11793
11794         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11795         This avoids heap allocation for file names whose lengths are in
11796         the range 512..1023, with the upper bound increasing to at most
11797         4031 depending on the platform's PATH_MAX.  (We do not want
11798         pathmax.h here as it might supply a non-constant PATH_MAX.)
11799         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11800         Perhaps they should be moved to malloca.h?
11801         (OPENAT_BUFFER_SIZE): Use them.
11802
11803 2011-01-10  Bruno Haible  <bruno@clisp.org>
11804
11805         doc: Update users.txt.
11806         * users.txt: Add recutils.
11807
11808 2011-01-09  Karl Berry  <karl@gnu.org>
11809
11810         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11811
11812         * doc/configmake.texi: New file.
11813         * doc/gnulib.texi: Include it.
11814         * modules/configmake: Move documentation from here.
11815
11816 2011-01-09  Bruno Haible  <bruno@clisp.org>
11817
11818         Update to Unicode 6.0.0.
11819         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11820         (get_lbp): Update for Unicode 6.0.0.
11821         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11822         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11823         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11824         U+11001, U+11038..U+11046. Remove U+06DE.
11825         (uc_width): Fix bounds of planes.
11826         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11827         lib/uniwidth/width.c.
11828         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11829         trailing whitespace removed.
11830         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11831         without comments, but with the original copyright notice.
11832         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11833         * lib/unicase/ignorable.h: Likewise.
11834         * lib/unicase/tocasefold.h: Likewise.
11835         * lib/unicase/tolower.h: Likewise.
11836         * lib/unicase/totitle.h: Likewise.
11837         * lib/unicase/toupper.h: Likewise.
11838         * lib/unictype/bidi_of.h: Likewise.
11839         * lib/unictype/blocks.h: Likewise.
11840         * lib/unictype/categ_C.h: Likewise.
11841         * lib/unictype/categ_Cn.h: Likewise.
11842         * lib/unictype/categ_L.h: Likewise.
11843         * lib/unictype/categ_Ll.h: Likewise.
11844         * lib/unictype/categ_Lm.h: Likewise.
11845         * lib/unictype/categ_Lo.h: Likewise.
11846         * lib/unictype/categ_Lu.h: Likewise.
11847         * lib/unictype/categ_M.h: Likewise.
11848         * lib/unictype/categ_Mc.h: Likewise.
11849         * lib/unictype/categ_Me.h: Likewise.
11850         * lib/unictype/categ_Mn.h: Likewise.
11851         * lib/unictype/categ_N.h: Likewise.
11852         * lib/unictype/categ_Nd.h: Likewise.
11853         * lib/unictype/categ_No.h: Likewise.
11854         * lib/unictype/categ_P.h: Likewise.
11855         * lib/unictype/categ_Po.h: Likewise.
11856         * lib/unictype/categ_S.h: Likewise.
11857         * lib/unictype/categ_Sc.h: Likewise.
11858         * lib/unictype/categ_Sk.h: Likewise.
11859         * lib/unictype/categ_Sm.h: Likewise.
11860         * lib/unictype/categ_So.h: Likewise.
11861         * lib/unictype/categ_of.h: Likewise.
11862         * lib/unictype/combining.h: Likewise.
11863         * lib/unictype/ctype_alnum.h: Likewise.
11864         * lib/unictype/ctype_alpha.h: Likewise.
11865         * lib/unictype/ctype_graph.h: Likewise.
11866         * lib/unictype/ctype_lower.h: Likewise.
11867         * lib/unictype/ctype_print.h: Likewise.
11868         * lib/unictype/ctype_punct.h: Likewise.
11869         * lib/unictype/ctype_upper.h: Likewise.
11870         * lib/unictype/decdigit.h: Likewise.
11871         * lib/unictype/digit.h: Likewise.
11872         * lib/unictype/numeric.h: Likewise.
11873         * lib/unictype/pr_alphabetic.h: Likewise.
11874         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11875         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11876         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11877         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11878         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11879         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11880         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11881         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11882         * lib/unictype/pr_case_ignorable.h: Likewise.
11883         * lib/unictype/pr_cased.h: Likewise.
11884         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11885         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11886         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11887         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11888         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11889         * lib/unictype/pr_combining.h: Likewise.
11890         * lib/unictype/pr_composite.h: Likewise.
11891         * lib/unictype/pr_currency_symbol.h: Likewise.
11892         * lib/unictype/pr_decimal_digit.h: Likewise.
11893         * lib/unictype/pr_deprecated.h: Likewise.
11894         * lib/unictype/pr_format_control.h: Likewise.
11895         * lib/unictype/pr_grapheme_base.h: Likewise.
11896         * lib/unictype/pr_grapheme_extend.h: Likewise.
11897         * lib/unictype/pr_grapheme_link.h: Likewise.
11898         * lib/unictype/pr_id_continue.h: Likewise.
11899         * lib/unictype/pr_id_start.h: Likewise.
11900         * lib/unictype/pr_ideographic.h: Likewise.
11901         * lib/unictype/pr_lowercase.h: Likewise.
11902         * lib/unictype/pr_math.h: Likewise.
11903         * lib/unictype/pr_numeric.h: Likewise.
11904         * lib/unictype/pr_other_alphabetic.h: Likewise.
11905         * lib/unictype/pr_other_id_continue.h: Likewise.
11906         * lib/unictype/pr_other_math.h: Likewise.
11907         * lib/unictype/pr_punctuation.h: Likewise.
11908         * lib/unictype/pr_sentence_terminal.h: Likewise.
11909         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11910         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11911         * lib/unictype/pr_unified_ideograph.h: Likewise.
11912         * lib/unictype/pr_uppercase.h: Likewise.
11913         * lib/unictype/pr_xid_continue.h: Likewise.
11914         * lib/unictype/pr_xid_start.h: Likewise.
11915         * lib/unictype/scripts.h: Likewise.
11916         * lib/unictype/scripts_byname.gperf: Likewise.
11917         * lib/unictype/sy_java_ident.h: Likewise.
11918         * lib/unigbrk/gbrkprop.h: Likewise.
11919         * lib/unilbrk/lbrkprop1.h: Likewise.
11920         * lib/unilbrk/lbrkprop2.h: Likewise.
11921         * lib/uninorm/decomposition-table2.h: Likewise.
11922         * lib/uniwbrk/wbrkprop.h: Likewise.
11923         * tests/unicase/test-cased.c: Likewise.
11924         * tests/unicase/test-ignorable.c: Likewise.
11925         * tests/unicase/test-uc_tolower.c: Likewise.
11926         * tests/unicase/test-uc_totitle.c: Likewise.
11927         * tests/unicase/test-uc_toupper.c: Likewise.
11928         * tests/unictype/test-categ_C.c: Likewise.
11929         * tests/unictype/test-categ_Cn.c: Likewise.
11930         * tests/unictype/test-categ_L.c: Likewise.
11931         * tests/unictype/test-categ_Ll.c: Likewise.
11932         * tests/unictype/test-categ_Lm.c: Likewise.
11933         * tests/unictype/test-categ_Lo.c: Likewise.
11934         * tests/unictype/test-categ_Lu.c: Likewise.
11935         * tests/unictype/test-categ_M.c: Likewise.
11936         * tests/unictype/test-categ_Mc.c: Likewise.
11937         * tests/unictype/test-categ_Me.c: Likewise.
11938         * tests/unictype/test-categ_Mn.c: Likewise.
11939         * tests/unictype/test-categ_N.c: Likewise.
11940         * tests/unictype/test-categ_Nd.c: Likewise.
11941         * tests/unictype/test-categ_No.c: Likewise.
11942         * tests/unictype/test-categ_P.c: Likewise.
11943         * tests/unictype/test-categ_Po.c: Likewise.
11944         * tests/unictype/test-categ_S.c: Likewise.
11945         * tests/unictype/test-categ_Sc.c: Likewise.
11946         * tests/unictype/test-categ_Sk.c: Likewise.
11947         * tests/unictype/test-categ_Sm.c: Likewise.
11948         * tests/unictype/test-categ_So.c: Likewise.
11949         * tests/unictype/test-ctype_alnum.c: Likewise.
11950         * tests/unictype/test-ctype_alpha.c: Likewise.
11951         * tests/unictype/test-ctype_graph.c: Likewise.
11952         * tests/unictype/test-ctype_lower.c: Likewise.
11953         * tests/unictype/test-ctype_print.c: Likewise.
11954         * tests/unictype/test-ctype_punct.c: Likewise.
11955         * tests/unictype/test-ctype_upper.c: Likewise.
11956         * tests/unictype/test-decdigit.h: Likewise.
11957         * tests/unictype/test-digit.h: Likewise.
11958         * tests/unictype/test-numeric.h: Likewise.
11959         * tests/unictype/test-pr_alphabetic.c: Likewise.
11960         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11961         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11962         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11963         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11964         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11965         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11966         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11967         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11968         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11969         * tests/unictype/test-pr_cased.c: Likewise.
11970         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11971         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11972         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11973         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11974         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11975         * tests/unictype/test-pr_combining.c: Likewise.
11976         * tests/unictype/test-pr_composite.c: Likewise.
11977         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11978         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11979         * tests/unictype/test-pr_deprecated.c: Likewise.
11980         * tests/unictype/test-pr_format_control.c: Likewise.
11981         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11982         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11983         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11984         * tests/unictype/test-pr_id_continue.c: Likewise.
11985         * tests/unictype/test-pr_id_start.c: Likewise.
11986         * tests/unictype/test-pr_ideographic.c: Likewise.
11987         * tests/unictype/test-pr_lowercase.c: Likewise.
11988         * tests/unictype/test-pr_math.c: Likewise.
11989         * tests/unictype/test-pr_numeric.c: Likewise.
11990         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11991         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11992         * tests/unictype/test-pr_other_math.c: Likewise.
11993         * tests/unictype/test-pr_punctuation.c: Likewise.
11994         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11995         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11996         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11997         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11998         * tests/unictype/test-pr_uppercase.c: Likewise.
11999         * tests/unictype/test-pr_xid_continue.c: Likewise.
12000         * tests/unictype/test-pr_xid_start.c: Likewise.
12001         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12002         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12003         changes.
12004         * lib/unictype/categ_Cc.h: Likewise.
12005         * lib/unictype/categ_Cf.h: Likewise.
12006         * lib/unictype/categ_Co.h: Likewise.
12007         * lib/unictype/categ_Cs.h: Likewise.
12008         * lib/unictype/categ_Lt.h: Likewise.
12009         * lib/unictype/categ_Nl.h: Likewise.
12010         * lib/unictype/categ_Pc.h: Likewise.
12011         * lib/unictype/categ_Pd.h: Likewise.
12012         * lib/unictype/categ_Pe.h: Likewise.
12013         * lib/unictype/categ_Pf.h: Likewise.
12014         * lib/unictype/categ_Pi.h: Likewise.
12015         * lib/unictype/categ_Ps.h: Likewise.
12016         * lib/unictype/categ_Z.h: Likewise.
12017         * lib/unictype/categ_Zl.h: Likewise.
12018         * lib/unictype/categ_Zp.h: Likewise.
12019         * lib/unictype/categ_Zs.h: Likewise.
12020         * lib/unictype/ctype_blank.h: Likewise.
12021         * lib/unictype/ctype_cntrl.h: Likewise.
12022         * lib/unictype/ctype_digit.h: Likewise.
12023         * lib/unictype/ctype_space.h: Likewise.
12024         * lib/unictype/ctype_xdigit.h: Likewise.
12025         * lib/unictype/mirror.h: Likewise.
12026         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12027         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12028         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12029         * lib/unictype/pr_bidi_control.h: Likewise.
12030         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12031         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12032         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12033         * lib/unictype/pr_bidi_pdf.h: Likewise.
12034         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12035         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12036         * lib/unictype/pr_dash.h: Likewise.
12037         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12038         * lib/unictype/pr_diacritic.h: Likewise.
12039         * lib/unictype/pr_extender.h: Likewise.
12040         * lib/unictype/pr_hex_digit.h: Likewise.
12041         * lib/unictype/pr_hyphen.h: Likewise.
12042         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12043         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12044         * lib/unictype/pr_ignorable_control.h: Likewise.
12045         * lib/unictype/pr_iso_control.h: Likewise.
12046         * lib/unictype/pr_join_control.h: Likewise.
12047         * lib/unictype/pr_left_of_pair.h: Likewise.
12048         * lib/unictype/pr_line_separator.h: Likewise.
12049         * lib/unictype/pr_logical_order_exception.h: Likewise.
12050         * lib/unictype/pr_non_break.h: Likewise.
12051         * lib/unictype/pr_not_a_character.h: Likewise.
12052         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12053         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12054         * lib/unictype/pr_other_id_start.h: Likewise.
12055         * lib/unictype/pr_other_lowercase.h: Likewise.
12056         * lib/unictype/pr_other_uppercase.h: Likewise.
12057         * lib/unictype/pr_paired_punctuation.h: Likewise.
12058         * lib/unictype/pr_paragraph_separator.h: Likewise.
12059         * lib/unictype/pr_pattern_syntax.h: Likewise.
12060         * lib/unictype/pr_pattern_white_space.h: Likewise.
12061         * lib/unictype/pr_private_use.h: Likewise.
12062         * lib/unictype/pr_quotation_mark.h: Likewise.
12063         * lib/unictype/pr_radical.h: Likewise.
12064         * lib/unictype/pr_soft_dotted.h: Likewise.
12065         * lib/unictype/pr_space.h: Likewise.
12066         * lib/unictype/pr_titlecase.h: Likewise.
12067         * lib/unictype/pr_variation_selector.h: Likewise.
12068         * lib/unictype/pr_white_space.h: Likewise.
12069         * lib/unictype/pr_zero_width.h: Likewise.
12070         * lib/unictype/sy_c_ident.h: Likewise.
12071         * lib/unictype/sy_c_whitespace.h: Likewise.
12072         * lib/unictype/sy_java_whitespace.h: Likewise.
12073         * lib/uninorm/composition-table.gperf: Likewise.
12074         * lib/uninorm/decomposition-table1.h: Likewise.
12075         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12076         LB8.
12077         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12078         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12079         * modules/unictype/*: Bump version number of expected libunistring
12080         version.
12081
12082 2011-01-09  Bruno Haible  <bruno@clisp.org>
12083
12084         Update to Unicode 5.2.0.
12085         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12086         trailing whitespace removed.
12087
12088 2011-01-09  Bruno Haible  <bruno@clisp.org>
12089
12090         New Unicode character properties, from Unicode 5.2.0.
12091         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12092         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12093         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12094         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12095         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12096         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12097         uc_is_property_cased, uc_is_property_case_ignorable,
12098         uc_is_property_changes_when_lowercased,
12099         uc_is_property_changes_when_uppercased,
12100         uc_is_property_changes_when_titlecased,
12101         uc_is_property_changes_when_casefolded,
12102         uc_is_property_changes_when_casemapped): New declarations.
12103         * lib/unictype/pr_byname.gperf: Add the new properties.
12104         * modules/unictype/property-byname (Depends-on): Depend on the new
12105         properties modules.
12106         * modules/unictype/property-all (Depends-on): Likewise.
12107         * MODULES.html.sh (Unicode string functions): Add
12108         unictype/property-case-ignorable, unictype/property-cased,
12109         unictype/property-changes-when-casefolded,
12110         unictype/property-changes-when-casemapped,
12111         unictype/property-changes-when-lowercased,
12112         unictype/property-changes-when-titlecased,
12113         unictype/property-changes-when-uppercased.
12114
12115         New module 'unictype/property-changes-when-casemapped'.
12116         * modules/unictype/property-changes-when-casemapped: New file.
12117         * lib/unictype/pr_changes_when_casemapped.c: New file.
12118         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12119         generated by gen-uni-tables.
12120         * modules/unictype/property-changes-when-casemapped-tests: New file.
12121         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12122         automatically generated by gen-uni-tables.
12123
12124         New module 'unictype/property-changes-when-casefolded'.
12125         * modules/unictype/property-changes-when-casefolded: New file.
12126         * lib/unictype/pr_changes_when_casefolded.c: New file.
12127         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12128         generated by gen-uni-tables.
12129         * modules/unictype/property-changes-when-casefolded-tests: New file.
12130         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12131         automatically generated by gen-uni-tables.
12132
12133         New module 'unictype/property-changes-when-titlecased'.
12134         * modules/unictype/property-changes-when-titlecased: New file.
12135         * lib/unictype/pr_changes_when_titlecased.c: New file.
12136         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12137         generated by gen-uni-tables.
12138         * modules/unictype/property-changes-when-titlecased-tests: New file.
12139         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12140         automatically generated by gen-uni-tables.
12141
12142         New module 'unictype/property-changes-when-uppercased'.
12143         * modules/unictype/property-changes-when-uppercased: New file.
12144         * lib/unictype/pr_changes_when_uppercased.c: New file.
12145         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12146         generated by gen-uni-tables.
12147         * modules/unictype/property-changes-when-uppercased-tests: New file.
12148         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12149         automatically generated by gen-uni-tables.
12150
12151         New module 'unictype/property-changes-when-lowercased'.
12152         * modules/unictype/property-changes-when-lowercased: New file.
12153         * lib/unictype/pr_changes_when_lowercased.c: New file.
12154         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12155         generated by gen-uni-tables.
12156         * modules/unictype/property-changes-when-lowercased-tests: New file.
12157         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12158         automatically generated by gen-uni-tables.
12159
12160         New module 'unictype/property-case-ignorable'.
12161         * modules/unictype/property-case-ignorable: New file.
12162         * lib/unictype/pr_case_ignorable.c: New file.
12163         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12164         by gen-uni-tables.
12165         * modules/unictype/property-case-ignorable-tests: New file.
12166         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12167         generated by gen-uni-tables.
12168
12169         New module 'unictype/property-cased'.
12170         * modules/unictype/property-cased: New file.
12171         * lib/unictype/pr_cased.c: New file.
12172         * lib/unictype/pr_cased.h: New file, automatically generated by
12173         gen-uni-tables.
12174         * modules/unictype/property-cased-tests: New file.
12175         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12176         gen-uni-tables.
12177
12178 2011-01-09  Bruno Haible  <bruno@clisp.org>
12179
12180         Update to Unicode 5.2.0.
12181         * lib/gen-uni-tables.c (output_predicate, output_category,
12182         output_combclass, output_bidi_category, output_decimal_digit_test,
12183         output_decimal_digit, output_digit_test, output_digit,
12184         output_numeric_test, output_numeric, output_mirror, output_scripts,
12185         output_scripts_byname, output_blocks, output_ident_category): Fix
12186         comment header.
12187         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12188         get_wbp.
12189         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12190         items.
12191         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12192         Changes_When_Lowercased, Changes_When_Uppercased,
12193         Changes_When_Titlecased, Changes_When_Casefolded,
12194         Changes_When_Casemapped.
12195         (is_property_alphabetic, is_property_default_ignorable_code_point):
12196         Update for Unicode 5.2.0.
12197         (is_property_cased, is_property_case_ignorable,
12198         is_property_changes_when_lowercased,
12199         is_property_changes_when_uppercased,
12200         is_property_changes_when_titlecased,
12201         is_property_changes_when_casefolded,
12202         is_property_changes_when_casemapped): New functions.
12203         (output_properties): Output also the properties cased, case_ignorable,
12204         changes_when_lowercased, changes_when_uppercased,
12205         changes_when_titlecased, changes_when_casefolded,
12206         changes_when_casemapped.
12207         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12208         Unicode TR#11 revision 17 -> 19.
12209         (LBP_CP): New enumeration value.
12210         (LBP_*): Adjust values accordingly.
12211         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12212         TR#14 revision 22 -> 24.
12213         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12214         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12215         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12216         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12217         is_WBP_MIDLETTER.
12218         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12219         the code1 and code2 of each composition rule.
12220         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12221         * lib/unicase/ignorable.h: Likewise.
12222         * lib/unicase/tocasefold.h: Likewise.
12223         * lib/unicase/tolower.h: Likewise.
12224         * lib/unicase/totitle.h: Likewise.
12225         * lib/unicase/toupper.h: Likewise.
12226         * lib/unictype/bidi_of.h: Likewise.
12227         * lib/unictype/blocks.h: Likewise.
12228         * lib/unictype/categ_C.h: Likewise.
12229         * lib/unictype/categ_Cf.h: Likewise.
12230         * lib/unictype/categ_Cn.h: Likewise.
12231         * lib/unictype/categ_L.h: Likewise.
12232         * lib/unictype/categ_Ll.h: Likewise.
12233         * lib/unictype/categ_Lm.h: Likewise.
12234         * lib/unictype/categ_Lo.h: Likewise.
12235         * lib/unictype/categ_Lu.h: Likewise.
12236         * lib/unictype/categ_M.h: Likewise.
12237         * lib/unictype/categ_Mc.h: Likewise.
12238         * lib/unictype/categ_Mn.h: Likewise.
12239         * lib/unictype/categ_N.h: Likewise.
12240         * lib/unictype/categ_Nd.h: Likewise.
12241         * lib/unictype/categ_Nl.h: Likewise.
12242         * lib/unictype/categ_No.h: Likewise.
12243         * lib/unictype/categ_P.h: Likewise.
12244         * lib/unictype/categ_Pd.h: Likewise.
12245         * lib/unictype/categ_Po.h: Likewise.
12246         * lib/unictype/categ_S.h: Likewise.
12247         * lib/unictype/categ_Sc.h: Likewise.
12248         * lib/unictype/categ_So.h: Likewise.
12249         * lib/unictype/categ_of.h: Likewise.
12250         * lib/unictype/combining.h: Likewise.
12251         * lib/unictype/ctype_alnum.h: Likewise.
12252         * lib/unictype/ctype_alpha.h: Likewise.
12253         * lib/unictype/ctype_graph.h: Likewise.
12254         * lib/unictype/ctype_lower.h: Likewise.
12255         * lib/unictype/ctype_print.h: Likewise.
12256         * lib/unictype/ctype_punct.h: Likewise.
12257         * lib/unictype/ctype_upper.h: Likewise.
12258         * lib/unictype/decdigit.h: Likewise.
12259         * lib/unictype/digit.h: Likewise.
12260         * lib/unictype/numeric.h: Likewise.
12261         * lib/unictype/pr_alphabetic.h: Likewise.
12262         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12263         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12264         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12265         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12266         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12267         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12268         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12269         * lib/unictype/pr_combining.h: Likewise.
12270         * lib/unictype/pr_composite.h: Likewise.
12271         * lib/unictype/pr_currency_symbol.h: Likewise.
12272         * lib/unictype/pr_dash.h: Likewise.
12273         * lib/unictype/pr_decimal_digit.h: Likewise.
12274         * lib/unictype/pr_deprecated.h: Likewise.
12275         * lib/unictype/pr_diacritic.h: Likewise.
12276         * lib/unictype/pr_extender.h: Likewise.
12277         * lib/unictype/pr_grapheme_base.h: Likewise.
12278         * lib/unictype/pr_grapheme_extend.h: Likewise.
12279         * lib/unictype/pr_grapheme_link.h: Likewise.
12280         * lib/unictype/pr_id_continue.h: Likewise.
12281         * lib/unictype/pr_id_start.h: Likewise.
12282         * lib/unictype/pr_ideographic.h: Likewise.
12283         * lib/unictype/pr_ignorable_control.h: Likewise.
12284         * lib/unictype/pr_logical_order_exception.h: Likewise.
12285         * lib/unictype/pr_lowercase.h: Likewise.
12286         * lib/unictype/pr_numeric.h: Likewise.
12287         * lib/unictype/pr_other_alphabetic.h: Likewise.
12288         * lib/unictype/pr_punctuation.h: Likewise.
12289         * lib/unictype/pr_sentence_terminal.h: Likewise.
12290         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12291         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12292         * lib/unictype/pr_unified_ideograph.h: Likewise.
12293         * lib/unictype/pr_uppercase.h: Likewise.
12294         * lib/unictype/pr_xid_continue.h: Likewise.
12295         * lib/unictype/pr_xid_start.h: Likewise.
12296         * lib/unictype/pr_zero_width.h: Likewise.
12297         * lib/unictype/scripts.h: Likewise.
12298         * lib/unictype/scripts_byname.gperf: Likewise.
12299         * lib/unictype/sy_java_ident.h: Likewise.
12300         * lib/unigbrk/gbrkprop.h: Likewise.
12301         * lib/unilbrk/lbrkprop1.h: Likewise.
12302         * lib/unilbrk/lbrkprop2.h: Likewise.
12303         * lib/unilbrk/lbrktables.h: Likewise.
12304         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12305         LBP_CP. Implement rule LB30.
12306         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12307         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12308         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12309         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12310         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12311         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12312         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12313         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12314         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12315         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12316         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12317         bits instead of 16 bits in the code1 and code2 of each composition
12318         rule.
12319         (uc_composition): Update for Unicode 5.2.0.
12320         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12321         * lib/uninorm/decomposition-table2.h: Likewise.
12322         * lib/uniwbrk/wbrkprop.h: Likewise.
12323         * tests/unicase/test-cased.c: Likewise.
12324         * tests/unicase/test-ignorable.c: Likewise.
12325         * tests/unicase/test-uc_tolower.c: Likewise.
12326         * tests/unicase/test-uc_totitle.c: Likewise.
12327         * tests/unicase/test-uc_toupper.c: Likewise.
12328         * tests/unictype/test-categ_C.c: Likewise.
12329         * tests/unictype/test-categ_Cf.c: Likewise.
12330         * tests/unictype/test-categ_Cn.c: Likewise.
12331         * tests/unictype/test-categ_L.c: Likewise.
12332         * tests/unictype/test-categ_Ll.c: Likewise.
12333         * tests/unictype/test-categ_Lm.c: Likewise.
12334         * tests/unictype/test-categ_Lo.c: Likewise.
12335         * tests/unictype/test-categ_Lu.c: Likewise.
12336         * tests/unictype/test-categ_M.c: Likewise.
12337         * tests/unictype/test-categ_Mc.c: Likewise.
12338         * tests/unictype/test-categ_Mn.c: Likewise.
12339         * tests/unictype/test-categ_N.c: Likewise.
12340         * tests/unictype/test-categ_Nd.c: Likewise.
12341         * tests/unictype/test-categ_Nl.c: Likewise.
12342         * tests/unictype/test-categ_No.c: Likewise.
12343         * tests/unictype/test-categ_P.c: Likewise.
12344         * tests/unictype/test-categ_Pd.c: Likewise.
12345         * tests/unictype/test-categ_Po.c: Likewise.
12346         * tests/unictype/test-categ_S.c: Likewise.
12347         * tests/unictype/test-categ_Sc.c: Likewise.
12348         * tests/unictype/test-categ_So.c: Likewise.
12349         * tests/unictype/test-ctype_alnum.c: Likewise.
12350         * tests/unictype/test-ctype_alpha.c: Likewise.
12351         * tests/unictype/test-ctype_graph.c: Likewise.
12352         * tests/unictype/test-ctype_lower.c: Likewise.
12353         * tests/unictype/test-ctype_print.c: Likewise.
12354         * tests/unictype/test-ctype_punct.c: Likewise.
12355         * tests/unictype/test-ctype_upper.c: Likewise.
12356         * tests/unictype/test-decdigit.h: Likewise.
12357         * tests/unictype/test-digit.h: Likewise.
12358         * tests/unictype/test-numeric.h: Likewise.
12359         * tests/unictype/test-pr_alphabetic.c: Likewise.
12360         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12361         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12362         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12363         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12364         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12365         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12366         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12367         * tests/unictype/test-pr_combining.c: Likewise.
12368         * tests/unictype/test-pr_composite.c: Likewise.
12369         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12370         * tests/unictype/test-pr_dash.c: Likewise.
12371         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12372         * tests/unictype/test-pr_deprecated.c: Likewise.
12373         * tests/unictype/test-pr_diacritic.c: Likewise.
12374         * tests/unictype/test-pr_extender.c: Likewise.
12375         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12376         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12377         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12378         * tests/unictype/test-pr_id_continue.c: Likewise.
12379         * tests/unictype/test-pr_id_start.c: Likewise.
12380         * tests/unictype/test-pr_ideographic.c: Likewise.
12381         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12382         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12383         * tests/unictype/test-pr_lowercase.c: Likewise.
12384         * tests/unictype/test-pr_numeric.c: Likewise.
12385         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12386         * tests/unictype/test-pr_punctuation.c: Likewise.
12387         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12388         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12389         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12390         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12391         * tests/unictype/test-pr_uppercase.c: Likewise.
12392         * tests/unictype/test-pr_xid_continue.c: Likewise.
12393         * tests/unictype/test-pr_xid_start.c: Likewise.
12394         * tests/unictype/test-pr_zero_width.c: Likewise.
12395         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12396         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12397         changed behaviour: line breaking is now disallowed between a letter
12398         or '=' and '('.
12399         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12400         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12401         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12402         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12403         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12404         lib/uniwidth/width.c.
12405         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12406         without comments, but with the original copyright notice.
12407         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12408         changes.
12409         * lib/unictype/categ_Cc.h: Likewise.
12410         * lib/unictype/categ_Co.h: Likewise.
12411         * lib/unictype/categ_Cs.h: Likewise.
12412         * lib/unictype/categ_Lt.h: Likewise.
12413         * lib/unictype/categ_Me.h: Likewise.
12414         * lib/unictype/categ_Pc.h: Likewise.
12415         * lib/unictype/categ_Pe.h: Likewise.
12416         * lib/unictype/categ_Pf.h: Likewise.
12417         * lib/unictype/categ_Pi.h: Likewise.
12418         * lib/unictype/categ_Ps.h: Likewise.
12419         * lib/unictype/categ_Sk.h: Likewise.
12420         * lib/unictype/categ_Sm.h: Likewise.
12421         * lib/unictype/categ_Z.h: Likewise.
12422         * lib/unictype/categ_Zl.h: Likewise.
12423         * lib/unictype/categ_Zp.h: Likewise.
12424         * lib/unictype/categ_Zs.h: Likewise.
12425         * lib/unictype/ctype_blank.h: Likewise.
12426         * lib/unictype/ctype_cntrl.h: Likewise.
12427         * lib/unictype/ctype_digit.h: Likewise.
12428         * lib/unictype/ctype_space.h: Likewise.
12429         * lib/unictype/ctype_xdigit.h: Likewise.
12430         * lib/unictype/mirror.h: Likewise.
12431         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12432         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12433         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12434         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12435         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12436         * lib/unictype/pr_bidi_control.h: Likewise.
12437         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12438         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12439         * lib/unictype/pr_bidi_pdf.h: Likewise.
12440         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12441         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12442         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12443         * lib/unictype/pr_format_control.h: Likewise.
12444         * lib/unictype/pr_hex_digit.h: Likewise.
12445         * lib/unictype/pr_hyphen.h: Likewise.
12446         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12447         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12448         * lib/unictype/pr_iso_control.h: Likewise.
12449         * lib/unictype/pr_join_control.h: Likewise.
12450         * lib/unictype/pr_left_of_pair.h: Likewise.
12451         * lib/unictype/pr_line_separator.h: Likewise.
12452         * lib/unictype/pr_math.h: Likewise.
12453         * lib/unictype/pr_non_break.h: Likewise.
12454         * lib/unictype/pr_not_a_character.h: Likewise.
12455         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12456         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12457         * lib/unictype/pr_other_id_continue.h: Likewise.
12458         * lib/unictype/pr_other_id_start.h: Likewise.
12459         * lib/unictype/pr_other_lowercase.h: Likewise.
12460         * lib/unictype/pr_other_math.h: Likewise.
12461         * lib/unictype/pr_other_uppercase.h: Likewise.
12462         * lib/unictype/pr_paired_punctuation.h: Likewise.
12463         * lib/unictype/pr_paragraph_separator.h: Likewise.
12464         * lib/unictype/pr_pattern_syntax.h: Likewise.
12465         * lib/unictype/pr_pattern_white_space.h: Likewise.
12466         * lib/unictype/pr_private_use.h: Likewise.
12467         * lib/unictype/pr_quotation_mark.h: Likewise.
12468         * lib/unictype/pr_radical.h: Likewise.
12469         * lib/unictype/pr_soft_dotted.h: Likewise.
12470         * lib/unictype/pr_space.h: Likewise.
12471         * lib/unictype/pr_titlecase.h: Likewise.
12472         * lib/unictype/pr_variation_selector.h: Likewise.
12473         * lib/unictype/pr_white_space.h: Likewise.
12474         * lib/unictype/sy_c_ident.h: Likewise.
12475         * lib/unictype/sy_c_whitespace.h: Likewise.
12476         * lib/unictype/sy_java_whitespace.h: Likewise.
12477         * modules/uni*/*: Bump version number of expected libunistring version.
12478         Reported by Simon Josefsson.
12479
12480 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12481
12482         useless-if-before-free: fix typo in --help and make the internal,
12483         automatic version date update process work once again.
12484         --help output contained a NUL character instead of the
12485         backslash-zero that was intended.  Also, the "must lie within
12486         the first 8 lines" line is on line 9, and hence not getting
12487         automatically updated.
12488         * build-aux/useless-if-before-free: Fix the former by adding a
12489         backslash, and the latter by condensing the three lines of what-it-does
12490         to a single line, leaving one line of slack for the future.
12491
12492 2011-01-09  Bruno Haible  <bruno@clisp.org>
12493
12494         uniwidth/width: Fix width of U+1D173..U+1D17A.
12495         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12496         symbolic_width, output_width_property_test): New functions.
12497         (main): Invoke output_nonspacing_property, output_width_property_test.
12498         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12499         U+1D173..U+1D17A.
12500         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12501         1.
12502         * modules/uniwidth/*: Bump version number of expected libunistring
12503         version.
12504         * modules/unilbrk/*: Likewise.
12505
12506 2011-01-08  Bruno Haible  <bruno@clisp.org>
12507
12508         uninorm tests: Preserve copyright of Unicode data file.
12509         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12510         Mention modifications.
12511
12512 2011-01-08  Bruno Haible  <bruno@clisp.org>
12513
12514         gen-uni-tables: Prepare for Unicode 5.2.0.
12515         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12516         (debug_output_lbp, output_lbp): Update.
12517
12518 2011-01-08  Bruno Haible  <bruno@clisp.org>
12519
12520         unilbrk: Clarify gen-uni-tables.c code.
12521         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12522         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12523         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12524
12525 2011-01-07  Bruno Haible  <bruno@clisp.org>
12526
12527         strtod: Restore errno when successfully parsing Infinity or NaN.
12528         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12529         restore the original errno.
12530
12531 2011-01-07  Bruno Haible  <bruno@clisp.org>
12532
12533         remove test: Avoid failure on HP-UX 11.
12534         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12535
12536 2011-01-07  Bruno Haible  <bruno@clisp.org>
12537
12538         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12539         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12540         error code.
12541
12542 2011-01-07  Pádraig Brady <P@draigBrady.com>
12543
12544         ignore-value: fixup comments, and add Eric Blake
12545         as an author since he rewrote the macros.
12546         * lib/ignore-value.h (ignore_value):  State that
12547         we now support aggregates.  Also specify exactly
12548         when the GCC warn_unused_result feature was added.
12549
12550 2011-01-06  Eric Blake  <eblake@redhat.com>
12551
12552         ignore-value: support aggregate types
12553         * lib/ignore-value.h (ignore_value): Provide separate gcc
12554         definition.
12555         * modules/ignore-value-tests: New test module.
12556         * tests/test-ignore-value.c: New test.
12557
12558         maint.mk: improve sc_prohibit_strcmp regex
12559         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12560         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12561         definition of STRNEQ.
12562
12563         signal: work around Haiku issue with SIGBUS
12564         * lib/siglist.h: Add comment.
12565         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12566         strsignal's favoring of SIGSEGV.
12567         * tests/test-signal.c (main): Avoid test failure.
12568         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12569         Reported by Scott McCreary.
12570
12571         maint.mk: add pre-release check to ensure submodule commits are public
12572         * top/maint.mk (public-submodule-commit): New rule.
12573         (submodule-checks): New variable.
12574         (alpha beta stable): Depend on the variable.
12575
12576 2011-01-05  Pádraig Brady <P@draigBrady.com>
12577         and Jim Meyering  <meyering@redhat.com>
12578
12579         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12580         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12581         (ATTRIBUTE_DEPRECATED): Define.
12582         (_ignore_case): New function.
12583         (ignore_value): New macro, to replace the old function.
12584         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12585         * modules/ignore-value (Depends-on): Add stdint.
12586
12587 2011-01-04  Eric Blake  <eblake@redhat.com>
12588
12589         doc: regenerate INSTALL
12590         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12591         @firstparagraphindent support, now that autoconf dropped it.
12592         (INSTALL_PRELUDE): Reinstate old macro.
12593         * doc/install.texi: Resync from autoconf.
12594         * doc/INSTALL: Reflect recent autoconf update.
12595         * doc/INSTALL.ISO: Likewise.
12596         * doc/INSTALL.UTF-8: Likewise.
12597         Reported by Karl Berry.
12598
12599 2011-01-04  Bruce Korb  <address@hidden>
12600
12601         git-version-gen: avoid a sub-shell
12602         * build-aux/git-version-gen: Redirect stderr in `...` via
12603         "exec 2>...", rather than via an added sub-shell.
12604
12605 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12606
12607         git-version-gen: use (...) rather than sh -c '...'
12608         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12609         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12610
12611 2011-01-03  Jim Meyering  <meyering@redhat.com>
12612
12613         git-version-gen: convert leading TABs to spaces
12614         * build-aux/git-version-gen: Expand leading TABs.
12615
12616         git-version-gen: handle failed "git rev-list"
12617         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12618         from git and proceeding as if it had succeeded but printed no SHA1
12619         checksums, suppress the diagnostic and handle the failure.
12620         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12621
12622         git-version-gen: include command name in one more diagnostic
12623         * build-aux/git-version-gen: When the required .tarball-version file
12624         was missing or unreadable, you might see the diagnostic from "cat",
12625         but no trace of the name of the invoking script.  Now, you still see
12626         the diagnostic from cat, but also get one from "git-version-gen: ".
12627         Inspired by a patch from Bruce Korb.
12628
12629         update-copyright: adjust test to match changed code
12630         * tests/test-update-copyright.sh: Change test's expected output
12631         to match new actual output.
12632
12633 2011-01-02  Bruno Haible  <bruno@clisp.org>
12634
12635         getlogin_r: Avoid test failure on HP-UX 11.
12636         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12637         ERANGE when the second argument is zero.
12638         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12639         portability problem.
12640
12641 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12642
12643         * build-aux/update-copyright: doc Simon's changes
12644
12645 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12646
12647         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12648         environment variable.
12649
12650 2011-01-02  Bruno Haible  <bruno@clisp.org>
12651
12652         unigbrk: Avoid gcc warnings.
12653         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12654         unused variable.
12655         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12656         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12657         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12658         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12659         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12660         Change type of first argument to 'const char *'.
12661         (main): Remove unused variable.
12662         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12663         type of first argument to 'const char *'.
12664         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12665         Likewise.
12666         (main): Change type of variable 's'.
12667         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12668         to 'int'.
12669
12670 2011-01-02  Bruno Haible  <bruno@clisp.org>
12671
12672         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12673         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12674         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12675         bug.
12676         * lib/pwrite.c: Undo 2010-12-31 patch.
12677         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12678
12679 2011-01-02  Bruno Haible  <bruno@clisp.org>
12680
12681         pread: Fix test whether it works.
12682         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12683
12684 2011-01-02  Bruno Haible  <bruno@clisp.org>
12685
12686         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12687         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12688         ends in "6". Don't require a specific month name. Try also the locale
12689         names found on HP-UX 11 and Solaris 7.
12690
12691 2011-01-02  Bruno Haible  <bruno@clisp.org>
12692
12693         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12694         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12695         C linkage.
12696         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12697
12698 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12699
12700         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12701         for consistency, since the "cluster" term is not used elsewhere.
12702         * lib/unigbrk.in.h: Update name.
12703         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12704         * lib/unigbrk/u16-grapheme-next.c: Update name.
12705         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12706         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12707         * lib/unigbrk/u32-grapheme-next.c: Update name.
12708         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12709         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12710         * lib/unigbrk/u8-grapheme-next.c: Update name.
12711         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12712         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12713         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12714         Suggested by Bruno Haible.
12715
12716 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12717
12718         Remove module 'u8-grapheme-len' as too redundant with
12719         'u8-grapheme-next'.
12720         * modules/unigbrk/u8-grapheme-len: Delete file.
12721         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12722         * lib/unigbrk.in.h: Remove prototype for deleted function.
12723         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12724         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12725
12726         Remove module 'u16-grapheme-len' as too redundant with
12727         'u16-grapheme-next'.
12728         * modules/unigbrk/u16-grapheme-len: Delete file.
12729         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12730         * lib/unigbrk.in.h: Remove prototype for deleted function.
12731         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12732         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12733
12734         Remove module 'u32-grapheme-len' as too redundant with
12735         'u32-grapheme-next'.
12736         * modules/unigbrk/u32-grapheme-len: Delete file.
12737         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12738         * lib/unigbrk.in.h: Remove prototype for deleted function.
12739         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12740         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12741
12742         Suggested by Bruno Haible.
12743
12744 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12745
12746         * unigbrk.in.h: Fix typo: "ben" => "been".
12747         Reported by Bruno Haible.
12748
12749 2011-01-01  Jim Meyering  <meyering@redhat.com>
12750
12751         maint: update almost all copyright ranges to include 2011
12752         Run the new "make update-copyright" rule.
12753
12754 2011-01-01  Jim Meyering  <meyering@redhat.com>
12755
12756         maint: update-copyright: exempt doc/INSTALL*
12757         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12758         since they are generated.  Suggested by Bruno Haible.
12759
12760 2011-01-01  Jim Meyering  <meyering@redhat.com>
12761
12762         maint: refine the update-copyright rule
12763         * Makefile (update-copyright): Also exclude any file that includes
12764         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12765         code that merely generates the comment.
12766
12767 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12768
12769         New module 'u8-grapheme-len'.
12770         * modules/unigbrk/u8-grapheme-len: New file.
12771         * modules/unigbrk/u8-grapheme-len-tests: New file.
12772         * lib/unigbrk.in.h: Add prototype for new function.
12773         * lib/unigbrk/u8-grapheme-len.c: New file.
12774         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12775
12776         New module 'u16-grapheme-len'.
12777         * modules/unigbrk/u16-grapheme-len: New file.
12778         * modules/unigbrk/u16-grapheme-len-tests: New file.
12779         * lib/unigbrk.in.h: Add prototype for new function.
12780         * lib/unigbrk/u16-grapheme-len.c: New file.
12781         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12782
12783         New module 'u32-grapheme-len'.
12784         * modules/unigbrk/u32-grapheme-len: New file.
12785         * modules/unigbrk/u32-grapheme-len-tests: New file.
12786         * lib/unigbrk.in.h: Add prototype for new function.
12787         * lib/unigbrk/u32-grapheme-len.c: New file.
12788         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12789
12790         New module 'u8-grapheme-next'.
12791         * modules/unigbrk/u8-grapheme-next: New file.
12792         * modules/unigbrk/u8-grapheme-next-tests: New file.
12793         * lib/unigbrk.in.h: Add prototype for new function.
12794         * lib/unigbrk/u8-grapheme-next.c: New file.
12795         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12796
12797         New module 'u16-grapheme-next'.
12798         * modules/unigbrk/u16-grapheme-next: New file.
12799         * modules/unigbrk/u16-grapheme-next-tests: New file.
12800         * lib/unigbrk.in.h: Add prototype for new function.
12801         * lib/unigbrk/u16-grapheme-next.c: New file.
12802         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12803
12804         New module 'u32-grapheme-next'.
12805         * modules/unigbrk/u32-grapheme-next: New file.
12806         * modules/unigbrk/u32-grapheme-next-tests: New file.
12807         * lib/unigbrk.in.h: Add prototype for new function.
12808         * lib/unigbrk/u32-grapheme-next.c: New file.
12809         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12810
12811         New module 'u8-grapheme-prev'.
12812         * modules/unigbrk/u8-grapheme-prev: New file.
12813         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12814         * lib/unigbrk.in.h: Add prototype for new function.
12815         * lib/unigbrk/u8-grapheme-prev.c: New file.
12816         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12817
12818         New module 'u16-grapheme-prev'.
12819         * modules/unigbrk/u16-grapheme-prev: New file.
12820         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12821         * lib/unigbrk.in.h: Add prototype for new function.
12822         * lib/unigbrk/u16-grapheme-prev.c: New file.
12823         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12824
12825         New module 'u32-grapheme-prev'.
12826         * modules/unigbrk/u32-grapheme-prev: New file.
12827         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12828         * lib/unigbrk.in.h: Add prototype for new function.
12829         * lib/unigbrk/u32-grapheme-prev.c: New file.
12830         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12831
12832         New module 'u8-grapheme-breaks'.
12833         * modules/unigbrk/u8-grapheme-breaks: New file.
12834         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12835         * lib/unigbrk.in.h: Add prototype for new function.
12836         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12837         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12838
12839         New module 'u16-grapheme-breaks'.
12840         * modules/unigbrk/u16-grapheme-breaks: New file.
12841         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12842         * lib/unigbrk.in.h: Add prototype for new function.
12843         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12844         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12845
12846         New module 'u32-grapheme-breaks'.
12847         * modules/unigbrk/u32-grapheme-breaks: New file.
12848         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12849         * lib/unigbrk.in.h: Add prototype for new function.
12850         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12851         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12852
12853         New module 'ulc-grapheme-breaks'.
12854         * modules/unigbrk/ulc-grapheme-breaks: New file.
12855         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12856         * m4/locale-ar.m4: New file.
12857         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12858         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12859         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12860
12861 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12862
12863         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12864         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12865         modified how this file was generated before I initially submitted
12866         the module, but failed to regenerate it.  This meant that several
12867         of the level2 entries were wrong.
12868         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12869         Remove the division-by-2 that is folded into the table now that
12870         gbrkprop.h has been regenerated properly.  Now -1 entries are
12871         handled correctly.
12872
12873         New module 'unigbrk/uc-gbrk-prop-tests'.
12874         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12875         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12876         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12877         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12878
12879 2011-01-01  Bruno Haible  <bruno@clisp.org>
12880
12881         Avoid use of hexadecimal escapes.
12882         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12883         instead of hexadecimal escapes.
12884
12885 2011-01-01  Jim Meyering  <meyering@redhat.com>
12886
12887         maint: new rule to update copyright year ranges
12888         * Makefile (update-copyright): New rule.
12889
12890         maint: indent with TABs in Makefile
12891         * Makefile: Expand leading sequences of spaces to TABs
12892
12893         version-etc: update the copyright year it reports
12894         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12895
12896 2010-12-31  Bruno Haible  <bruno@clisp.org>
12897
12898         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12899         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12900         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12901         zero.
12902
12903 2010-12-31  Bruno Haible  <bruno@clisp.org>
12904
12905         pwrite: Work around HP-UX 11.11 bug.
12906         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12907         works and set REPLACE_PWRITE if not.
12908         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12909         function.
12910         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12911
12912 2010-12-31  Bruno Haible  <bruno@clisp.org>
12913
12914         pread: Work around HP-UX 11 bugs.
12915         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12916         and set REPLACE_PREAD if not.
12917         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12918
12919 2010-12-31  Eric Blake  <eblake@redhat.com>
12920
12921         nl_langinfo: fix YESEXPR on Irix 6.5
12922         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12923         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12924         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12925         it.
12926
12927 2010-12-31  Bruno Haible  <bruno@clisp.org>
12928
12929         iconv: Document HP-UX 11 bug.
12930         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12931
12932 2010-12-31  Bruno Haible  <bruno@clisp.org>
12933
12934         ldexpl: Fix link error on HP-UX 11.
12935         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12936         LDEXPL_LIBM, using $ISNANL_LIBM.
12937
12938 2010-12-31  Eric Blake  <eblake@redhat.com>
12939
12940         ftello: avoid compilation failure with SunStudio c89
12941         * lib/ftello.c (ftello): Use lseek, not llseek.
12942
12943         tests: avoid failing coreutils tests on cygwin
12944         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12945         (create_exe_shims_): Return 0 when skipping.
12946
12947 2010-12-31  Bruno Haible  <bruno@clisp.org>
12948
12949         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12950         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12951
12952 2010-12-31  Bruno Haible  <bruno@clisp.org>
12953
12954         waitpid: Fix link error in C++ mode.
12955         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12956
12957 2010-12-31  Bruno Haible  <bruno@clisp.org>
12958
12959         isnan: Use GCC built-ins when possible.
12960         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12961         __builtin_isnan.
12962         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12963         (isnan): Define using GCC built-ins for GCC >= 4.0.
12964
12965 2010-12-31  Bruno Haible  <bruno@clisp.org>
12966
12967         isnand: Fix mistake.
12968         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12969         __builtin_isnand.
12970
12971 2010-12-31  Bruno Haible  <bruno@clisp.org>
12972
12973         open: Avoid C++ error on HP-UX 11.
12974         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12975
12976 2010-12-31  Bruno Haible  <bruno@clisp.org>
12977
12978         time_r: Add missing declarations on HP-UX 11.
12979         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12980         instead of HAVE_LOCALTIME_R.
12981         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12982         HAVE_LOCALTIME_R always.
12983         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12984         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12985         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12986         HAVE_LOCALTIME_R.
12987         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12988         * doc/posix-functions/localtime_r.texi: Likewise.
12989
12990 2010-12-29  Eric Blake  <eblake@redhat.com>
12991
12992         mountlist: tweak previous commit
12993         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12994         Reported by Paul Eggert.
12995
12996         mountlist: fix local drive detection on cygwin
12997         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12998         that works for cygwin.
12999
13000 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13001
13002         ftoastr, snprintf: ftoastr + snprintf module
13003         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13004         since the snprintf module now should be good enough here.
13005         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13006         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13007         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13008         GNULIB_SNPRINTF only for the test directory, and the latter
13009         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13010         seems to suffice by itself.
13011
13012 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13013
13014         alloca: one step towards thread-safety
13015         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13016         need for a static variable.  All callers changed.  This does not
13017         make the alloca replacement thread-safe, but it's one step.
13018
13019         tests: minor indenting change
13020         * tests/init.sh: Sync from coreutils housekeeping patch
13021         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13022         to keep lines within 80 columns.
13023
13024 2010-12-28  Jim Meyering  <meyering@redhat.com>
13025
13026         regex: don't infloop on persistent failing calloc
13027         * lib/regexec.c (build_trtable): Return failure indication upon
13028         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13029         In glibc, this was fixed for version 2.13:
13030         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13031
13032 2010-12-28  Bruno Haible  <bruno@clisp.org>
13033             Paul Eggert <eggert@cs.ucla.edu>
13034
13035         linkat: Make implementation robust against system behaviour variations.
13036         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13037         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13038         way, and to -2 if it needs a generic runtime test.
13039         * lib/linkat.c (solaris_optimized_link_immediate,
13040         solaris_optimized_link_follow): New functions.
13041         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13042         (check_same_link): Use it.
13043
13044 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13045
13046         New module 'unigbrk/base'.
13047         * modules/unigbrk/base: New file.
13048         * lib/unigbrk.in.h: New file.
13049
13050         New module 'unigbrk/uc-gbrk-prop'.
13051         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13052         * modules/unigbrk/uc-gbrk-prop: New file.
13053         * lib/unigbrk/gbrkprop.h: New file.
13054         * lib/unigbrk/uc-gbrk-prop.c: New file.
13055
13056         New module 'unigbrk/uc-is-grapheme-break'.
13057         * modules/unigbrk/uc-is-grapheme-break: New file.
13058         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13059         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13060         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13061         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13062         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13063
13064         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13065
13066 2010-12-27  Bruno Haible  <bruno@clisp.org>
13067
13068         linkat test: Avoid failure on Solaris 11 2010-11.
13069         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13070
13071 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13072
13073         utimens: work around glibc rounding bug on more platforms
13074         * lib/utimens.c (fdutimens): Work around rounding bug even if
13075         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13076         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13077
13078 2010-12-27  Bruno Haible  <bruno@clisp.org>
13079
13080         select tests: Improve comments.
13081         * tests/test-select.c (do_select): Add comments.
13082
13083 2010-12-27  Bruno Haible  <bruno@clisp.org>
13084
13085         select tests: Safer way of handling timeout.
13086         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13087         at every invocation.
13088
13089 2010-12-27  Bruno Haible  <bruno@clisp.org>
13090
13091         select tests: Use 'bool' where appropriate.
13092         * tests/test-select.c (connect_to_socket): Change argument type to
13093         'bool'.
13094
13095 2010-12-27  Bruno Haible  <bruno@clisp.org>
13096
13097         select tests: Use existing modules.
13098         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13099         (configure.ac): Don't test for unistd.h.
13100         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13101         declared in <unistd.h>.
13102
13103 2010-12-27  Bruno Haible  <bruno@clisp.org>
13104
13105         mbrtowc: Work around a Solaris 7 bug.
13106         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13107         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13108         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13109         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13110         MBRTOWC_NULL_ARG1_BUG.
13111         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13112         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13113         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13114         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13115
13116 2010-12-27  Jim Meyering  <meyering@redhat.com>
13117
13118         read-file.c: tweak syntax
13119         * lib/read-file.c (fread_file): Remove space after "*" in function
13120         definitions.
13121
13122 2010-12-27  Bruno Haible  <bruno@clisp.org>
13123
13124         times test: Avoid gcc warnings on OSF/1.
13125         * tests/test-times.c (main): Cast printf arguments from clock_t to
13126         'long int'.
13127
13128 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13129
13130         utimens: work around glibc rounding bug on older Linux kernels
13131         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13132         on Linux with a glibc whose utimes might not work, then work
13133         around a longstanding glibc bug involving rounding rather than
13134         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13135         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13136
13137 2010-12-26  Bruno Haible  <bruno@clisp.org>
13138
13139         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13140         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13141         _GL_CXXALIAS_SYS.
13142         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13143
13144 2010-12-26  Bruno Haible  <bruno@clisp.org>
13145
13146         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13147         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13148         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13149         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13150         looking for the declaration.
13151         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13152         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13153         problem.
13154         * doc/posix-functions/inet_pton.texi: Likewise.
13155
13156 2010-12-26  Bruno Haible  <bruno@clisp.org>
13157
13158         arpa_inet: Use the common idioms with C++ support.
13159         * lib/arpa_inet.in.h: Include c++defs.h.
13160         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13161         support.
13162         * modules/arpa_inet (Depends-on): Add c++defs.
13163         (Makefile.am): Substitute the contents of c++defs.h.
13164         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13165         * modules/arpa_inet-c++-tests: New file.
13166         * tests/test-arpa_inet-c++.cc: New file.
13167
13168 2010-12-25  Bruno Haible  <bruno@clisp.org>
13169
13170         Fix more C++ link errors on Solaris 8.
13171         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13172         $(LIB_EACCESS).
13173         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13174         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13175         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13176         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13177         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13178
13179 2010-12-25  Bruno Haible  <bruno@clisp.org>
13180
13181         printf-posix: Fix link error when a non-GCC compiler is used.
13182         * lib/stdio.in.h (printf): When not using GCC, override printf
13183         correctly.
13184         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13185
13186 2010-12-25  Bruno Haible  <bruno@clisp.org>
13187
13188         strerror_r-posix: Update doc.
13189         * doc/posix-functions/strerror_r.texi: Update doc about the return
13190         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13191
13192 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13193
13194         utimens: simplify the logic of the previous change
13195         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13196         This should not affect whether the test succeeds or fails.
13197
13198         utimens: configure better on hosts with NFS clock skew
13199         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13200         uses the clock of the local host.  It might use the clock of the
13201         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13202         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13203
13204 2010-12-25  Bruno Haible  <bruno@clisp.org>
13205
13206         ptsname test: Avoid failure on Solaris.
13207         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13208         open a pseudo-terminal; don't use BSD-style ptys.
13209         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13210
13211 2010-12-25  Bruno Haible  <bruno@clisp.org>
13212
13213         ptsname: Avoid ERANGE failure on some systems.
13214         * lib/ptsname.c (buffer): Increase size.
13215
13216 2010-12-25  Bruno Haible  <bruno@clisp.org>
13217
13218         rename, renameat: Avoid test failures at NFS mounted locations.
13219         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13220         so that subsequent mkdir calls succeed.
13221
13222 2010-12-25  Bruno Haible  <bruno@clisp.org>
13223
13224         iswblank: Fix C++ link error on Solaris 8.
13225         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13226         _GL_FUNCDECL_SYS.
13227
13228 2010-12-25  Bruno Haible  <bruno@clisp.org>
13229
13230         unistd: Fix C++ link error on Solaris 8.
13231         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13232
13233 2010-12-25  Bruno Haible  <bruno@clisp.org>
13234
13235         readlink doc: Mention an old glibc bug.
13236         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13237
13238 2010-12-25  Bruno Haible  <bruno@clisp.org>
13239
13240         fcntl-h: Fix for use of C++ on glibc systems.
13241         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13242         also on glibc systems in C++ mode.
13243         Reported by Gary V. Vaughan <gary@gnu.org>.
13244
13245 2010-12-25  Bruno Haible  <bruno@clisp.org>
13246
13247         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13248         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13249
13250 2010-12-25  Bruno Haible  <bruno@clisp.org>
13251
13252         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13253         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13254         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13255         test whether truncl works according to ISO C 99 with IEC 60559.
13256         * m4/truncl-ieee.m4: New file.
13257         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13258         m4/signbit.m4.
13259         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13260
13261 2010-12-25  Bruno Haible  <bruno@clisp.org>
13262
13263         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13264         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13265         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13266         test whether ceill works according to ISO C 99 with IEC 60559.
13267         * m4/ceill-ieee.m4: New file.
13268         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13269         m4/signbit.m4.
13270         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13271
13272 2010-12-25  Bruno Haible  <bruno@clisp.org>
13273
13274         Ensure all prerequisites of <wchar.h> are included.
13275         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13276         before <wchar.h>.
13277         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13278         gl_MBRLEN_NUL_RETVAL): Likewise.
13279         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13280         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13281         AC_FUNC_MBRTOWC): Likewise.
13282         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13283         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13284         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13285         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13286         Likewise.
13287         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13288         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13289         (gl_WCHAR_H): Improve comments.
13290         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13291
13292 2010-12-25  Bruno Haible  <bruno@clisp.org>
13293
13294         strtok_r: Fix C syntax error in autoconf macro.
13295         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13296         characters in test program.
13297
13298 2010-12-24  Bruno Haible  <bruno@clisp.org>
13299
13300         ceil, trunc, round: Fix gcc warnings.
13301         * lib/ceil.c (MIN): Undefine before redefining.
13302         * lib/trunc.c (MIN): Likewise.
13303         * lib/round.c (MIN): Likewise.
13304         Include <math.h> first.
13305
13306 2010-12-24  Bruno Haible  <bruno@clisp.org>
13307
13308         select tests: Avoid failures on OSF/1 5.1.
13309         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13310         failure of closing the last socket; it may fail with ECONNRESET.
13311
13312 2010-12-24  Eric Blake  <eblake@redhat.com>
13313
13314         stdint: avoid HP-UX 10.20 preprocessor bug
13315         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13316         than #if.
13317         * tests/test-floor2.c (main): Likewise.
13318         Reported by Peter O'Gorman.
13319
13320         pipe: make obsoletion transition easier
13321         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13322         * modules/pipe (Files): Include revived file.
13323         (Include): Drop reference, to mirror getdate's behavior.
13324
13325 2010-12-24  Bruno Haible  <bruno@clisp.org>
13326
13327         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13328         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13329         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13330         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13331
13332 2010-12-24  Bruno Haible  <bruno@clisp.org>
13333
13334         gethostname: Ensure declaration on NonStop Kernel.
13335         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13336         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13337
13338 2010-12-24  Bruno Haible  <bruno@clisp.org>
13339
13340         sys_select: Ensure all necessary types on NonStop Kernel.
13341         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13342         include <sys/time.h>.
13343         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13344         NonStop Kernel.
13345         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13346
13347 2010-12-24  Bruno Haible  <bruno@clisp.org>
13348
13349         sys_select: Remove unneeded include.
13350         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13351         have <sys/select.h>.
13352
13353 2010-12-24  Bruno Haible  <bruno@clisp.org>
13354
13355         gethostname: Provide a fallback for HOST_NAME_MAX.
13356         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13357         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13358         instead.
13359         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13360
13361 2010-12-24  Bruno Haible  <bruno@clisp.org>
13362
13363         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13364         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13365         (SA_RESTART): Likewise.
13366         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13367
13368 2010-12-24  Bruno Haible  <bruno@clisp.org>
13369
13370         signal: Define NSIG.
13371         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13372         * tests/test-signal.c (nsig): New variable.
13373         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13374
13375 2010-12-24  Bruno Haible  <bruno@clisp.org>
13376
13377         rename, renameat: Avoid test failures on OSF/1 5.1.
13378         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13379         alternative error codes.
13380         * tests/test-renameat.c (main): Likewise.
13381
13382 2010-12-24  Bruno Haible  <bruno@clisp.org>
13383
13384         *printf: Detect large precisions bug on Solaris 10/SPARC.
13385         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13386         by Paul Eggert.
13387         * tests/test-snprintf-posix.h (test_function): Add this test code here
13388         too.
13389         * tests/test-sprintf-posix.h (test_function): Likewise.
13390         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13391         * tests/test-vasprintf-posix.c (test_function): Likewise.
13392         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13393         around by gnulib.
13394         * doc/posix-functions/printf.texi: Likewise.
13395         * doc/posix-functions/snprintf.texi: Likewise.
13396         * doc/posix-functions/sprintf.texi: Likewise.
13397         * doc/posix-functions/vfprintf.texi: Likewise.
13398         * doc/posix-functions/vprintf.texi: Likewise.
13399         * doc/posix-functions/vsnprintf.texi: Likewise.
13400         * doc/posix-functions/vsprintf.texi: Likewise.
13401         * doc/posix-functions/dprintf.texi: Undo last commit.
13402         * doc/posix-functions/vdprintf.texi: Likewise.
13403
13404 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13405
13406         tests: port test-fdutimensat.c to Solaris 8
13407         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13408         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13409         On Solaris 8, it fails with errno == ENOSYS, because there is no
13410         futimens (so it can't use the fd), and there is no lutimens (so it
13411         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13412
13413         vsnprintf: make more consistent with snprintf; doc fixes
13414
13415         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13416         the byte count return problem was promoted from the snprintf-posix
13417         to the snprintf module.
13418         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13419         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13420         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13421         * tests/test-snprintf.c (main): Check the byte count returned.
13422         * tests/test-vsnprintf.c (main): Likewise.
13423
13424 2010-12-23  Eric Blake  <eblake@redhat.com>
13425
13426         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13427         * modules/sigpipe (License): Relax license.
13428
13429 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13430
13431         doc: document Solaris printf bug with large float precisions
13432         * doc/posix-functions/dprintf.texi (dprintf):
13433         * doc/posix-functions/fprintf.texi (fprintf):
13434         * doc/posix-functions/printf.texi (printf):
13435         * doc/posix-functions/snprintf.texi (snprintf):
13436         * doc/posix-functions/sprintf.texi (sprintf):
13437         * doc/posix-functions/vdprintf.texi (vdprintf):
13438         * doc/posix-functions/vfprintf.texi (vfprintf):
13439         * doc/posix-functions/vprintf.texi (vprintf):
13440         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13441         * doc/posix-functions/vsprintf.texi (vsprintf):
13442         Mention that these functions mishandle large floating point
13443         precisions on Solaris 10.  The same bug is also present in Solaris
13444         8, and I assume earlier.  This causes "cd gnulib-tests; make
13445         check" to fail on Solaris 8 (and I assume, later) when building
13446         the latest coreutils, in test-vasprintf-posix's call to
13447         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13448         the wide flavors (e.g., wprintf) so this patch just updates the
13449         documentation for the narrow ones.
13450
13451         test-posixtm.c: add two tests
13452         * tests/test-posixtm.c: Add two tests, to highlight the
13453         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13454         around this bug; this is merely to document it.
13455
13456 2010-12-22  Bruno Haible  <bruno@clisp.org>
13457
13458         getlogin_r: Work around portability problem on OSF/1.
13459         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13460         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13461         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13462         test for a truncated result.
13463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13464         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13465         * modules/getlogin_r (Depends-on): Add memchr.
13466         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13467
13468 2010-12-22  Bruno Haible  <bruno@clisp.org>
13469
13470         ptsname: Avoid test failure on OSF/1 5.1.
13471         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13472         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13473         (same_slave): New function.
13474         (main): Use it to compare ptsname's result with the expected file name.
13475
13476 2010-12-22  Bruno Haible  <bruno@clisp.org>
13477
13478         Port extended stdio modules to HP NonStop Kernel.
13479         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13480         macros.
13481         * lib/fbufmode.c: Update comments.
13482         * lib/fflush.c: Likewise.
13483         * lib/fpurge.c: Likewise.
13484         * lib/freadable.c: Likewise.
13485         * lib/freadahead.c: Likewise.
13486         * lib/freading.c: Likewise.
13487         * lib/freadptr.c: Likewise.
13488         * lib/freadseek.c: Likewise.
13489         * lib/fseeko.c: Likewise.
13490         * lib/fseterr.c: Likewise.
13491         * lib/fwritable.c: Likewise.
13492         * lib/fwriting.c: Likewise.
13493         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13494
13495 2010-12-22  Bruno Haible  <bruno@clisp.org>
13496
13497         ttyname_r: Work around bug on OSF/1 5.1.
13498         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13499         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13500         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13501         present.
13502         * lib/ttyname_r.c (ttyname_r): Update comments.
13503
13504 2010-12-22  Bruno Haible  <bruno@clisp.org>
13505
13506         round: Implement result sign according to IEEE 754.
13507         * lib/round.c (MIN, MINUS_ZERO): New macros.
13508         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13509         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13510         * tests/test-round-ieee.c (main): Likewise.
13511         * tests/test-roundl-ieee.c (main): Likewise.
13512
13513         trunc: Implement result sign according to IEEE 754.
13514         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13515         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13516         * tests/test-trunc2.c: Include minus-zero.h.
13517         (MINUS_ZERO): New macro.
13518         (trunc_reference): Keep in sync with lib/trunc.c.
13519         * tests/test-truncf2.c: Include minus-zero.h.
13520         (MINUS_ZERO): New macro.
13521         (truncf_reference): Keep in sync with lib/trunc.c.
13522         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13523         * tests/test-trunc-ieee.c (main): Likewise.
13524         * tests/test-truncl-ieee.c (main): Likewise.
13525
13526         ceil: Implement result sign according to IEEE 754.
13527         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13528         (FUNC): Return -0.0 for -1 < x < 0.
13529         * tests/test-ceil2.c: Include minus-zero.h.
13530         (MINUS_ZERO): New macro.
13531         (ceil_reference): Keep in sync with lib/ceil.c.
13532         * tests/test-ceilf2.c: Include minus-zero.h.
13533         (MINUS_ZERO): New macro.
13534         (ceilf_reference): Keep in sync with lib/ceil.c.
13535         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13536         * tests/test-ceil-ieee.c (main): Likewise.
13537         * tests/test-ceill-ieee.c (main): Likewise.
13538
13539         floor: Implement result sign according to IEEE 754.
13540         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13541         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13542         * tests/test-floorf2.c (floorf_reference): Likewise.
13543         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13544         * tests/test-floor-ieee.c (main): Likewise.
13545         * tests/test-floorl-ieee.c (main): Likewise.
13546
13547 2010-12-22  Bruno Haible  <bruno@clisp.org>
13548
13549         getaddrinfo: Update doc.
13550         * doc/posix-functions/gai_strerror.texi: Return type is also different
13551         on AIX and HP-UX.
13552
13553 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13554
13555         getaddrinfo, inet_ntop: Update doc for Solaris.
13556         * doc/posix-functions/gai_strerror.texi: Return type is also an
13557         issue on Solaris 9 and earlier.
13558         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13559         on Solaris 10 and earlier.
13560
13561 2010-12-21  Bruno Haible  <bruno@clisp.org>
13562
13563         New module 'roundl-ieee'.
13564         * modules/roundl-ieee: New file.
13565         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13566         test whether roundl works according to ISO C 99 with IEC 60559.
13567         * m4/roundl-ieee.m4: New file.
13568         * modules/roundl-ieee-tests: New file.
13569         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13570         * tests/test-roundl.c (main): Remove signbit tests.
13571         * modules/roundl-tests (Depends-on): Remove signbit.
13572         * doc/posix-functions/roundl.texi: Mention the new module.
13573
13574 2010-12-21  Bruno Haible  <bruno@clisp.org>
13575
13576         New module 'truncl-ieee'.
13577         * modules/truncl-ieee: New file.
13578         * modules/truncl-ieee-tests: New file.
13579         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13580         * tests/test-truncl.c (main): Remove signbit tests.
13581         * modules/truncl-tests (Depends-on): Remove signbit.
13582         * doc/posix-functions/truncl.texi: Mention the new module.
13583
13584 2010-12-21  Bruno Haible  <bruno@clisp.org>
13585
13586         New module 'ceill-ieee'.
13587         * modules/ceill-ieee: New file.
13588         * modules/ceill-ieee-tests: New file.
13589         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13590         * tests/test-ceill.c (main): Remove signbit tests.
13591         * modules/ceill-tests (Depends-on): Remove signbit.
13592         * doc/posix-functions/ceill.texi: Mention the new module.
13593
13594 2010-12-21  Bruno Haible  <bruno@clisp.org>
13595
13596         New module 'floorl-ieee'.
13597         * modules/floorl-ieee: New file.
13598         * modules/floorl-ieee-tests: New file.
13599         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13600         * tests/test-floorl.c (main): Remove signbit tests.
13601         * modules/floorl-tests (Depends-on): Remove signbit.
13602         * doc/posix-functions/floorl.texi: Mention the new module.
13603
13604 2010-12-21  Bruno Haible  <bruno@clisp.org>
13605
13606         New module 'round-ieee'.
13607         * modules/round-ieee: New file.
13608         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13609         whether round works according to ISO C 99 with IEC 60559.
13610         * m4/round-ieee.m4: New file.
13611         * modules/round-ieee-tests: New file.
13612         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13613         * tests/test-round1.c (main): Remove signbit tests.
13614         * modules/round-tests (Depends-on): Remove 'signbit'.
13615         * doc/posix-functions/round.texi: Mention the new module.
13616
13617 2010-12-21  Bruno Haible  <bruno@clisp.org>
13618
13619         New module 'trunc-ieee'.
13620         * modules/trunc-ieee: New file.
13621         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13622         whether trunc works according to ISO C 99 with IEC 60559.
13623         * m4/trunc-ieee.m4: New file.
13624         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13626         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13627         * modules/trunc-ieee-tests: New file.
13628         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13629         * tests/test-trunc1.c (main): Remove signbit tests.
13630         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13631         * doc/posix-functions/trunc.texi: Mention the new module.
13632
13633 2010-12-21  Bruno Haible  <bruno@clisp.org>
13634
13635         New module 'ceil-ieee'.
13636         * modules/ceil-ieee: New file.
13637         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13638         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13639         ISO C 99 with IEC 60559.
13640         * m4/ceil-ieee.m4: New file.
13641         * modules/ceil (Files): Add lib/ceil.c.
13642         (Depends-on): Add 'float'.
13643         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13644         * lib/math.in.h (ceil): New declaration.
13645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13646         REPLACE_CEIL.
13647         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13648         * modules/ceil-ieee-tests: New file.
13649         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13650         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13651         * doc/posix-functions/ceil.texi: Mention the new module.
13652
13653 2010-12-21  Bruno Haible  <bruno@clisp.org>
13654
13655         New module 'floor-ieee'.
13656         * modules/floor-ieee: New file.
13657         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13658         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13659         ISO C 99 with IEC 60559.
13660         * m4/floor-ieee.m4: New file.
13661         * modules/floor (Files): Add lib/floor.c.
13662         (Depends-on): Add 'float'.
13663         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13664         * lib/math.in.h (floor): New declaration.
13665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13666         REPLACE_FLOOR.
13667         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13668         * modules/floor-ieee-tests: New file.
13669         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13670         * tests/test-math-c++.cc: Check the signature of 'floor'.
13671         * doc/posix-functions/floor.texi: Mention the new module.
13672
13673 2010-12-21  Bruno Haible  <bruno@clisp.org>
13674
13675         New module 'roundf-ieee'.
13676         * modules/roundf-ieee: New file.
13677         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13678         test whether roundf works according to ISO C 99 with IEC 60559.
13679         * m4/roundf-ieee.m4: New file.
13680         * modules/roundf-ieee-tests: New file.
13681         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13682         * tests/test-roundf1.c (main): Remove signbit tests.
13683         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13684         * doc/posix-functions/roundf.texi: Mention the new module.
13685
13686 2010-12-21  Bruno Haible  <bruno@clisp.org>
13687
13688         New module 'truncf-ieee'.
13689         * modules/truncf-ieee: New file.
13690         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13691         test whether truncf works according to ISO C 99 with IEC 60559.
13692         * m4/truncf-ieee.m4: New file.
13693         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13695         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13696         * modules/truncf-ieee-tests: New file.
13697         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13698         * tests/test-truncf1.c (main): Remove signbit tests.
13699         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13700         * doc/posix-functions/truncf.texi: Mention the new module.
13701
13702 2010-12-21  Bruno Haible  <bruno@clisp.org>
13703
13704         New module 'ceilf-ieee'.
13705         * modules/ceilf-ieee: New file.
13706         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13707         test whether ceilf works according to ISO C 99 with IEC 60559.
13708         * m4/ceilf-ieee.m4: New file.
13709         * modules/ceilf-ieee-tests: New file.
13710         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13711         * tests/test-ceilf1.c (main): Remove signbit tests.
13712         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13713         * doc/posix-functions/ceilf.texi: Mention the new module.
13714
13715 2010-12-21  Bruno Haible  <bruno@clisp.org>
13716
13717         New module 'floorf-ieee'.
13718         * modules/floorf-ieee: New file.
13719         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13720         test whether floorf works according to ISO C 99 with IEC 60559.
13721         * m4/floorf-ieee.m4: New file.
13722         * modules/floorf-ieee-tests: New file.
13723         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13724         * tests/test-floorf1.c (main): Remove signbit tests.
13725         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13726         * doc/posix-functions/floorf.texi: Mention the new module.
13727
13728 2010-12-21  Bruno Haible  <bruno@clisp.org>
13729
13730         Support for minus zero in autoconf macros.
13731         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13732         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13733         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13734         * tests/minus-zero.h: Update comments.
13735
13736 2010-12-21  Bruno Haible  <bruno@clisp.org>
13737
13738         Tests for module 'ceil'.
13739         * modules/ceil-tests: New file.
13740         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13741         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13742
13743 2010-12-21  Bruno Haible  <bruno@clisp.org>
13744
13745         Tests for module 'floor'.
13746         * modules/floor-tests: New file.
13747         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13748         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13749
13750 2010-12-21  Bruno Haible  <bruno@clisp.org>
13751
13752         math: Fix indentation.
13753         * lib/math.in.h (floorf): Fix indentation.
13754
13755 2010-12-21  Bruno Haible  <bruno@clisp.org>
13756
13757         Fix cross-compilation guesses on Solaris.
13758         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13759         not match "solaris2.10".
13760         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13761         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13762         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13763
13764 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13765
13766         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13767         This fixes a problem observed with the latest coreutils snapshot
13768         that caused a test to fail on Solaris 8.  src/csplit.c's call
13769         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13770         earlier, instead of returning the number of bytes that would have
13771         been generated; this causes csplit to incorrectly report memory
13772         exhaustion.
13773         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13774         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13775         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13776         comments to match.
13777         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13778         Fix typo in matching older versions of Solaris: "solaris2.10"
13779         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13780         only for guessing while cross-compiling.
13781         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13782
13783 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13784
13785         ftoastr: fix comment again
13786         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13787         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13788         Also, simplify example a bit by using flags = 0.
13789
13790 2010-12-20  Bruno Haible  <bruno@clisp.org>
13791
13792         round*, trunc*: Update documentation regarding glibc.
13793         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13794         * doc/posix-functions/round.texi: Likewise.
13795         * doc/posix-functions/roundl.texi: Likewise.
13796         * doc/posix-functions/truncf.texi: Likewise.
13797         * doc/posix-functions/trunc.texi: Likewise.
13798         * doc/posix-functions/truncl.texi: Likewise.
13799
13800 2010-12-20  Bruno Haible  <bruno@clisp.org>
13801
13802         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13803         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13804         * doc/posix-functions/round.texi: Likewise.
13805         * doc/posix-functions/roundl.texi: Likewise.
13806
13807 2010-12-20  Bruno Haible  <bruno@clisp.org>
13808
13809         ttyname_r: Add missing declaration on HP-UX 11.
13810         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13811         HAVE_TTYNAME_R.
13812         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13813         declared. Set HAVE_TTYNAME_R always.
13814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13815         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13816         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13817         HAVE_TTYNAME_R.
13818         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13819
13820 2010-12-20  Bruno Haible  <bruno@clisp.org>
13821
13822         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13823         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13824         * doc/posix-functions/getlogin_r.texi: Likewise.
13825         * tests/test-getlogin.c: Include <errno.h>.
13826         (main): Avoid test failure on HP-UX 11.11.
13827         * tests/test-getlogin_r.c (main): Likewise.
13828
13829 2010-12-20  Bruno Haible  <bruno@clisp.org>
13830
13831         getlogin_r: Add missing declaration on HP-UX 11.
13832         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13833         declared also when it exists as a function.
13834         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13835
13836 2010-12-20  Bruno Haible  <bruno@clisp.org>
13837
13838         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13839         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13840         through wcrtomb.
13841
13842 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13843
13844         ftoastr: fix comment
13845         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13846         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13847
13848 2010-12-19  Bruno Haible  <bruno@clisp.org>
13849
13850         isnan: Ensure it is a macro.
13851         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13852         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13853         Solaris.
13854
13855 2010-12-19  Bruno Haible  <bruno@clisp.org>
13856
13857         ldexpl test: Fix link error on OSF/1 5.1.
13858         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13859
13860 2010-12-19  Bruno Haible  <bruno@clisp.org>
13861
13862         wctype: Make it work in C++ mode on OSF/1 5.1.
13863         * lib/wctype.in.h (iswblank): Declare but not define here.
13864         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13865         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13866         * modules/wctype (Files): Add lib/iswblank.c.
13867
13868 2010-12-19  Bruno Haible  <bruno@clisp.org>
13869
13870         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13871         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13872         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13873
13874 2010-12-19  Bruno Haible  <bruno@clisp.org>
13875
13876         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13877         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13878         _POSIX_PII_SOCKET.
13879         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13880         * doc/posix-functions/recvfrom.texi: Likewise.
13881         * doc/posix-functions/send.texi: Likewise.
13882         * doc/posix-functions/sendto.texi: Likewise.
13883
13884 2010-12-19  Bruno Haible  <bruno@clisp.org>
13885
13886         tcgetsid: Add missing declaration on OSF/1 5.1.
13887         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13888         HAVE_TCGETSID.
13889         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13890         Don't set HAVE_TCGETSID.
13891         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13892         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13893         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13894         HAVE_TCGETSID.
13895         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13896
13897 2010-12-19  Bruno Haible  <bruno@clisp.org>
13898
13899         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13900         * lib/stdio.in.h: During the include_next statement, let recursive
13901         includes of this file include only the system header file.
13902
13903 2010-12-19  Bruno Haible  <bruno@clisp.org>
13904
13905         iconv_open: Fix regression from 2010-12-04.
13906         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13907         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13908
13909 2010-12-19  Bruno Haible  <bruno@clisp.org>
13910
13911         stdbool test: Avoid a gcc warning.
13912         * tests/test-stdbool.c (main): Fail if e1 is false.
13913         Reported by Jim Meyering.
13914
13915 2010-12-19  Jim Meyering  <meyering@redhat.com>
13916
13917         setenv: restore to working order
13918         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13919         mistakenly removed.
13920         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13921         HAVE_SETENV.
13922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13923         HAVE_SETENV.
13924
13925 2010-12-19  Bruno Haible  <bruno@clisp.org>
13926
13927         Document some different function declarations on OSF/1 5.1.
13928         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13929         * doc/posix-functions/inet_ntop.texi: Likewise.
13930         * doc/posix-functions/gethostname.texi: Likewise.
13931         * lib/unistd.in.h (gethostname): Update comment.
13932
13933 2010-12-19  Bruno Haible  <bruno@clisp.org>
13934
13935         doc: Mention vasprintf-posix module.
13936         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13937         the 'vasprintf-posix' module.
13938         * doc/glibc-functions/vasprintf.texi: Likewise.
13939
13940 2010-12-19  Bruno Haible  <bruno@clisp.org>
13941
13942         unsetenv: Add missing declaration on OSF/1 5.1.
13943         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13944         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13945         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13947         not HAVE_UNSETENV.
13948         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13949         HAVE_UNSETENV.
13950         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13951
13952 2010-12-19  Bruno Haible  <bruno@clisp.org>
13953
13954         setenv: Add missing declaration on OSF/1 5.1.
13955         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13956         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13957         declared. Don't set HAVE_SETENV.
13958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13959         not HAVE_SETENV.
13960         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13961         HAVE_SETENV.
13962         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13963
13964 2010-12-19  Bruno Haible  <bruno@clisp.org>
13965
13966         nl_langinfo tests: Avoid gcc warning.
13967         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13968
13969 2010-12-19  Bruno Haible  <bruno@clisp.org>
13970
13971         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13972         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13973         _GL_CXXALIAS_SYS.
13974
13975 2010-12-19  Bruno Haible  <bruno@clisp.org>
13976
13977         stdbool: Relax test.
13978         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13979         address to 'bool' work in static initializer, for compilers other than
13980         GCC.
13981
13982 2010-12-19  Bruno Haible  <bruno@clisp.org>
13983
13984         ftello: Add missing declaration on OSF/1 5.1.
13985         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13986         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13988         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13989         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13990
13991 2010-12-19  Bruno Haible  <bruno@clisp.org>
13992
13993         fseeko: Add missing declaration on OSF/1 5.1.
13994         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13995         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13997         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13998         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13999
14000 2010-12-19  Bruno Haible  <bruno@clisp.org>
14001
14002         fchdir: Add missing declaration on OSF/1 5.1.
14003         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14006         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14007         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14008
14009 2010-12-19  Bruno Haible  <bruno@clisp.org>
14010
14011         relocatable-prog-wrapper: Separate from relocatable-prog.
14012         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14013         uninstall-relocwrapper rule here.
14014         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14015         Reported by Ian Beckwith <ianb@erislabs.net>.
14016
14017 2010-12-19  Bruno Haible  <bruno@clisp.org>
14018
14019         unistr/u8-mbsnlen: Add missing dependency.
14020         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14021         Reported by Ian Beckwith <ianb@erislabs.net>.
14022
14023 2010-12-19  Bruno Haible  <bruno@clisp.org>
14024
14025         iconv: Make it possible again to use this module without 'iconv-h'.
14026         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14027         if it is not defined.
14028         Reported by Ian Beckwith <ianb@erislabs.net>.
14029
14030 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14031
14032         acl: port to Solaris 8 when copying from tmpfs to ufs
14033         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14034         error number.  Problem observed on Solaris 8 with latest
14035         coreutils, with "mv A B", where A is on a tmpfs file system and B
14036         is on a ufs file system.  This caused coreutils' mv/part-symlink
14037         test to fail.
14038
14039         tests: set fail=0 at start
14040         * tests/init.sh (setup_): Move fail=0 initialization here ...
14041         (mktempd_): ... from here, so that tests can rely on fail being
14042         set to 0 initially.  This fixes a problem in coreutils; see:
14043         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14044
14045 2010-12-18  Bruno Haible  <bruno@clisp.org>
14046
14047         memmem-simple: Stylistic changes.
14048         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14049         Fix preprocessor directive indentation.
14050
14051 2010-12-15  Pádraig Brady <P@draigBrady.com>
14052
14053         memmem, memmem-simple: reorganize and expand empty needle check
14054         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14055         functional checks to memmem-simple so that one has a fully functional
14056         memmem by using just this module.
14057         Restrict the performance only check to the memmem module.
14058         Also expand the empty needle check to ensure the correct
14059         pointer is returned, not just a non NULL pointer.
14060         * doc/glibc-functions/memmem.texi: Rearrange the portability
14061         documentation to correlate with the rearranged checks.
14062         Clarify exactly how the memmem and memmem-simple modules
14063         relate to each other.
14064
14065 2010-12-15  Pádraig Brady <P@draigBrady.com>
14066             Bruno Haible  <bruno@clisp.org>
14067
14068         Improve cross-compilation guesses for uClibc.
14069         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14070         that uClibc does not have the glibc bug.
14071         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14072         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14073
14074 2010-12-14  Eric Blake  <eblake@redhat.com>
14075
14076         configmake: provide fallbacks for oldest supported autotools
14077         * m4/configmake.m4: New file.
14078         * modules/configmake (Files): Ship it.
14079         (configure.ac): Use it to guarantee fallbacks.
14080
14081 2010-12-13  Pádraig Brady <P@draigBrady.com>
14082
14083         read-file: Improve handling of large files
14084         * lib/read-file.c (fread_file): Minimize realloc()s
14085         for regular files, and better manage sizes around SIZE_MAX.
14086
14087 2010-12-13  Eric Blake  <eblake@redhat.com>
14088
14089         cloexec, fcntl: relax license
14090         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14091         consent from all contributors.
14092         * modules/fcntl (License): Likewise.
14093
14094 2010-12-10  Bruno Haible  <bruno@clisp.org>
14095
14096         Tests for module 'pipe-posix'.
14097         * modules/pipe-posix-tests: New file.
14098         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14099
14100 2010-12-10  Bruno Haible  <bruno@clisp.org>
14101
14102         pipe-posix: Make it work in C++ mode.
14103         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14104         (pipe): Use common idiom, not a macro definition.
14105         * lib/pipe.c: New file.
14106         * m4/pipe.m4: New file.
14107         * modules/pipe-posix (Description): Enhance.
14108         (Files): Add lib/pipe.c, m4/pipe.m4.
14109         (configure.ac): Invoke gl_FUNC_PIPE.
14110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14111         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14112         * tests/test-unistd-c++.cc: Check the signature of pipe.
14113
14114 2010-12-10  Bruno Haible  <bruno@clisp.org>
14115
14116         Rename module 'pipe' to 'spawn-pipe'.
14117         * modules/spawn-pipe: New file, renamed from modules/pipe.
14118         (Files, configure.ac, Makefile.am): Update.
14119         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14120         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14121         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14122         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14123         "spawn-pipe.h" instead of "pipe.h".
14124         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14125         to gl_SPAWN_PIPE.
14126         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14127         (Files, Makefile.am): Update.
14128         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14129         Update.
14130         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14131         Include "spawn-pipe.h" instead of "pipe.h".
14132         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14133         * lib/javacomp.c: Likewise.
14134         * lib/javaversion.c: Likewise.
14135         * lib/pipe-filter-gi.c: Likewise.
14136         * lib/pipe-filter-ii.c: Likewise.
14137         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14138         * modules/javacomp (Depends-on): Likewise.
14139         * modules/javaversion (Depends-on): Likewise.
14140         * modules/pipe-filter-gi (Depends-on): Likewise.
14141         * modules/pipe-filter-ii (Depends-on): Likewise.
14142         * MODULES.html.sh (Executing programs): Update.
14143         * NEWS: Mention the change.
14144
14145 2010-12-10  Eric Blake  <eblake@redhat.com>
14146
14147         pipe-posix: new module
14148         * modules/pipe-posix: New file.
14149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14150         (gl_UNISTD_H): Check for declaration.
14151         * modules/unistd (Makefile.am): Substitute it.
14152         * lib/unistd.in.h (pipe): Provide it for mingw.
14153         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14154         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14155
14156 2010-12-07  Bruno Haible  <bruno@clisp.org>
14157
14158         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14159         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14160         u8_strcmp_gnu.
14161         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14162
14163 2010-12-06  Bruno Haible  <bruno@clisp.org>
14164
14165         Update internal documentation.
14166         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14167
14168 2010-12-04  Bruno Haible  <bruno@clisp.org>
14169
14170         Put more information about failed tests into the test return codes.
14171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14172         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14173         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14174         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14175         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14176         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14177         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14178         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14179         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14181         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14182         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14183         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14184         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14185         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14186         returns a bit mask.
14187         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14188         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14189         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14190         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14191         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14192         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14194         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14195         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14196         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14197         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14198         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14199         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14200         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14201         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14202         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14203         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14204         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14205         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14206         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14207         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14208         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14209         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14210         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14211         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14212         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14213         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14214         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14215         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14216         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14217         gl_PRINTF_PRECISION): Likewise.
14218         * m4/regex.m4 (gl_REGEX): Likewise.
14219         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14220         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14221         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14222         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14223         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14225         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14226         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14227         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14228         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14229         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14230         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14231         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14232         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14233         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14234         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14235         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14236         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14238         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14239         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14240         enumerated value.
14241         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14242
14243 2010-12-04  Bruno Haible  <bruno@clisp.org>
14244
14245         Update for Solaris 11 2010-11.
14246         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14247         Express, released in November 2010.
14248
14249 2010-12-04  Bruno Haible  <bruno@clisp.org>
14250
14251         nproc: Relax license.
14252         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14253         and Paul Eggert.
14254         Requested by Ludovic Courtès <ludo@gnu.org>.
14255
14256 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14257
14258         utimecmp: fine-grained src to nearby coarse-grained dest
14259
14260         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14261         and the source is on a file system with higher-resolution time
14262         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14263         not work, and the time stamps are close together, the algorithm to
14264         determine the exact resolution from the read-back mtime was buggy:
14265         it had a "!=" where it should have had an "==".  This bug has been
14266         in the code ever since it was introduced to gnulib.
14267         Problem reported by Dan Jacobson in
14268         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14269
14270 2010-11-30  Bruno Haible  <bruno@clisp.org>
14271
14272         strerror_r-posix: Fix autoconf test.
14273         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14274
14275 2010-11-28  Bruno Haible  <bruno@clisp.org>
14276             Paul Eggert  <eggert@cs.ucla.edu>
14277
14278         Tests for module 'getdomainname'.
14279         * modules/getdomainname-tests: New file.
14280         * tests/test-getdomainname.c: New file, based on
14281         tests/test-gethostname.c.
14282
14283 2010-11-28  Bruno Haible  <bruno@clisp.org>
14284             Paul Eggert  <eggert@cs.ucla.edu>
14285
14286         getdomainname: Use the system function when possible.
14287         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14288         (getdomainname): Replace if needed. Provide the declaration if it is
14289         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14290         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14291         (getdomainname): When the system has getdomainname, call the system
14292         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14293         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14294         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14295         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14296         the function if its second argument is of type 'int' or if it is found
14297         in libnsl.
14298         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14299         <sys/systeminfo.h> and sysinfo().
14300         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14302         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14303         HAVE_GETDOMAINNAME.
14304         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14305         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14306         * doc/glibc-functions/getdomainname.texi: Document the problems with
14307         the getdomainname declaration.
14308
14309 2010-11-28  Bruno Haible  <bruno@clisp.org>
14310
14311         sys_socket: Ensure ss_family field on AIX.
14312         * lib/sys_socket.in.h (ss_family): New macro definition.
14313         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14314         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14315         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14316         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14317         * modules/sys_socket (Makefile.am): Substitute
14318         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14319         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14320
14321 2010-11-27  Bruno Haible  <bruno@clisp.org>
14322
14323         readline: Improve configure output.
14324         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14325         "checking for readline..." result understandable.
14326
14327 2010-11-27  Bruno Haible  <bruno@clisp.org>
14328
14329         *printf-posix: Detect a bug on Solaris 10/x86.
14330         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14331         for floating-point output.
14332         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14333         directive.
14334         * tests/test-snprintf-posix.h (test_function): Likewise.
14335         * tests/test-sprintf-posix.h (test_function): Likewise.
14336         * tests/test-vasprintf-posix.c (test_function): Likewise.
14337         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14338         * doc/posix-functions/printf.texi: Likewise.
14339         * doc/posix-functions/snprintf.texi: Likewise.
14340         * doc/posix-functions/sprintf.texi: Likewise.
14341         * doc/posix-functions/vfprintf.texi: Likewise.
14342         * doc/posix-functions/vprintf.texi: Likewise.
14343         * doc/posix-functions/vsnprintf.texi: Likewise.
14344         * doc/posix-functions/vsprintf.texi: Likewise.
14345         * doc/glibc-functions/obstack_printf.texi: Likewise.
14346         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14347
14348 2010-11-27  Bruno Haible  <bruno@clisp.org>
14349
14350         Fix link error when module libunistring-optional is in use.
14351         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14352         * modules/striconveha-tests (Makefile.am): Likewise.
14353
14354 2010-11-27  Bruno Haible  <bruno@clisp.org>
14355
14356         regex: Mention link dependencies.
14357         * modules/regex (Link): New section.
14358         * modules/rpmatch (Link): Likewise.
14359         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14360
14361 2010-11-27  Bruno Haible  <bruno@clisp.org>
14362
14363         ftoastr: Fix compilation error on Solaris.
14364         * lib/ftoastr.c: Include <config.h>.
14365
14366 2010-11-27  Bruno Haible  <bruno@clisp.org>
14367
14368         getloadavg: Update documentation.
14369         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14370
14371 2010-11-27  Bruno Haible  <bruno@clisp.org>
14372
14373         sys_socket: Fix test whether the functions are declared.
14374         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14375         not <sys/select.h>.
14376
14377 2010-11-27  Bruno Haible  <bruno@clisp.org>
14378
14379         getpass: Make sure to get system declaration on some platforms.
14380         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14381         gl_USE_SYSTEM_EXTENSIONS.
14382         * modules/getpass (Depends-on): Add extensions.
14383
14384 2010-11-26  Bruno Haible  <bruno@clisp.org>
14385
14386         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14387         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14388         'iconv' module is present.
14389         (ICONV_CONST): New macro.
14390         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14391         ICONV_CONST.
14392         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14393         set ICONV_CONST.
14394         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14395         here.
14396         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14397         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14398         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14399         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14400         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14401         present.
14402
14403 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14404
14405         ftoastr: comment fix
14406         * lib/ftoastr.c: "little" -> "little or no" in comment
14407
14408 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14409
14410         stdint: port to GCC 4.3 + OSX + Octave
14411         On this platform, stdint.h is buggy and defines int64_t to long
14412         long int.  The replacement defined it to long int, causing
14413         problems with C++ style name mangling.  Instead, trust the system
14414         definition if INT64_MAX is defined, and likewise for the unsigned
14415         variant.   Problem reported by Jarno Rajahalme in
14416         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14417         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14418         and don't mess with int64_t and INT64_MAX in this case.
14419         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14420
14421 2010-11-24  Bruno Haible  <bruno@clisp.org>
14422
14423         doc: Corrections regarding MacOS X 10.4 and 10.5.
14424         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14425         MacOS X.
14426         Reported by Simon Josefsson.
14427
14428 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14429
14430         Uninstall ".bin" files installed by relocwrapper.
14431         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14432         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14433         unless it is already there.
14434
14435 2010-11-21  Bruno Haible  <bruno@clisp.org>
14436
14437         Update for NetBSD 5.0.
14438         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14439         NetBSD; the test fails on NetBSD 5.0.
14440         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14441         about NetBSD.
14442
14443 2010-11-21  Bruno Haible  <bruno@clisp.org>
14444
14445         Update for HP-UX 11.23 and HP-UX 11.31.
14446         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14447         HP-UX.
14448
14449 2010-11-21  Bruno Haible  <bruno@clisp.org>
14450
14451         Update for MacOS X 10.5.
14452         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14453         MacOS X; the test fails on MacOS X 10.5.8.
14454         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14455         about MacOS X.
14456
14457 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14458
14459         bootstrap: add bootstrap_sync option.
14460         See discussion at
14461         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14462         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14463         * build-aux/bootstrap: Accept --bootstrap-sync to update
14464         bootstrap if it is not identical to the local gnulib's
14465         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14466         enable this by default.  Accept --no-bootstrap-sync to disable
14467         it.
14468
14469 2010-11-20  Bruno Haible  <bruno@clisp.org>
14470
14471         Ensure that <features.h> is included before __GLIBC__ is tested.
14472         * lib/printf-parse.h: Include <features.h>.
14473         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14474         Reported by Mike Frysinger <vapier@gentoo.org>.
14475
14476         Ensure that <features.h> is included before __GLIBC__ is tested.
14477         * lib/wchar.in.h: Include <features.h>.
14478         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14479         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14480         Reported by Mike Frysinger <vapier@gentoo.org>.
14481
14482         Ensure that <features.h> is included before __GLIBC__ is tested.
14483         * lib/arpa_inet.in.h: Include <features.h>.
14484         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14485         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14486         Reported by Mike Frysinger <vapier@gentoo.org>.
14487
14488         Ensure that <features.h> is included before __GLIBC__ is tested.
14489         * build-aux/link-warning.h: Include <features.h>.
14490         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14491         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14492         Reported by Mike Frysinger <vapier@gentoo.org>.
14493
14494         Ensure that <features.h> is included before __GLIBC__ is tested.
14495         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14496         Reported by Mike Frysinger <vapier@gentoo.org>.
14497
14498 2010-11-20  Bruno Haible  <bruno@clisp.org>
14499
14500         memmem: Fix autoconf test.
14501         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14502
14503 2010-11-20  Bruno Haible  <bruno@clisp.org>
14504
14505         Port to uClibc.
14506         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14507         * lib/fcntl.in.h: Likewise.
14508         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14509         * lib/mbrtowc.c (mbrtowc): Likewise.
14510         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14511         * lib/strerror_r.c: Likewise.
14512         * lib/unistr/u8-strnlen.c: Likewise.
14513         * lib/vasnprintf.c (decimal_point_char): Likewise.
14514         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14515         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14516         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14517         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14518         * tests/test-sigaction.c (handler, main): Likewise.
14519         * lib/freading.h: Treat uClibc like a non-glibc platform.
14520         * lib/freading.c: Likewise.
14521         * lib/gettext.h: Likewise.
14522         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14523         Likewise.
14524         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14525         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14526         * lib/propername.c (proper_name_utf8): Likewise.
14527         * lib/spawn.in.h: Likewise.
14528         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14529         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14530         mem_cd_iconveh_internal): Likewise.
14531         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14532         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14533         strstr, strcasestr): Likewise.
14534         * lib/unicodeio.c (unicode_to_mb): Likewise.
14535         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14536         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14537         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14538         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14539         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14540         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14541         * lib/unistr/u8-stpncpy.c: Likewise.
14542         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14543         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14544         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14545         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14546         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14547         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14548         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14549         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14550         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14551         Likewise.
14552         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14553         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14554         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14556         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14557         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14558         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14559         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14560         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14561         * tests/test-striconveha.c (main): Likewise.
14562         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14563         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14564         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14565         * doc/posix-functions/getline.texi: Likewise.
14566         Reported by Mike Frysinger <vapier@gentoo.org>.
14567
14568 2010-11-20  Bruno Haible  <bruno@clisp.org>
14569
14570         nproc: Fix condition.
14571         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14572         HAVE_PTHREAD_AFFINITY_NP.
14573
14574 2010-11-20  Bruno Haible  <bruno@clisp.org>
14575
14576         Fix a comment.
14577         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14578
14579 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14580
14581         ftoastr: don't assume snprintf
14582         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14583         Implement a subset of snprintf here, by using sprintf safely.
14584         * modules/ftoastr (Depends-on): Remove snprintf.
14585
14586 2010-11-19  Jim Meyering  <meyering@redhat.com>
14587
14588         test-rename.h: fix compilation failure
14589         * tests/test-rename.h (test_rename): Add omitted "}".
14590
14591 2010-11-17  Jim Meyering  <meyering@redhat.com>
14592
14593         maint.mk: add a URL discussing the no-@acronym policy
14594         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14595
14596 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14597
14598         ftoastr: depend on snprintf, improve comments
14599         * lib/ftoastr.c: Also mention Loitsch's draft.
14600         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14601         needed in the current implementation, but it might simplify
14602         speeding up the code later.
14603         * modules/ftoastr: Depend on snprintf; this improves portability.
14604         Suggested by Bruno Haible in the same email.
14605
14606         ftoastr: port to hosts lacking strtof and strtold
14607         Problem reported by Bruno Haible in
14608         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14609         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14610         environment and strtold (and presumably strtof) are not available.
14611         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14612         (configure.ac): Require gl_C99_STRTOLD.
14613
14614 2010-11-18  Bruno Haible  <bruno@clisp.org>
14615
14616         c-strtold: Avoid link error on AIX 7.
14617         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14618         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14619         (gl_C_STRTOLD): Test whether strtold_l exists.
14620         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14621
14622 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14623
14624         intprops: new macro INT_BITS_STRLEN_BOUND
14625         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14626         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14627         not exposed.  Also, it uses a slightly tighter bound than before;
14628         though this makes no practical difference, we might as well be as
14629         tight as we easily can.
14630
14631         ftoastr: new module, for lossless conversion of floats to short strings
14632         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14633         * modules/ftoastr: New files.
14634
14635 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14636
14637         bootstrap: port to Solaris sed
14638         * build-aux/bootstrap (get_version): Port to Solaris sed.
14639         See Ralf Wildenhues's note in
14640         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14641
14642 2010-11-14  Jim Meyering  <meyering@redhat.com>
14643
14644         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14645         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14646         and move definition closer to sole use.
14647
14648 2010-11-13  Jim Meyering  <meyering@redhat.com>
14649
14650         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14651         Now we require at least autoconf-2.59, which means the work-around
14652         is no longer needed.
14653         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14654         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14655         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14656         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14657         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14658
14659 2010-11-13  Bruno Haible  <bruno@clisp.org>
14660
14661         rename, renameat: Avoid test failures at NFS mounted locations.
14662         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14663         functions.
14664         (test_rename): Use assert_nonexistent.
14665         * tests/test-rename.c: Include <dirent.h>.
14666         * tests/test-renameat.c: Likewise.
14667         Reported by Gary V. Vaughan <gary@gnu.org>.
14668
14669         rename, renameat: Document Linux bug with NFS
14670         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14671         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14672         * doc/posix-functions/renameat.texi: Likewise.
14673         Suggested by Eric Blake.
14674
14675 2010-11-13  Bruno Haible  <bruno@clisp.org>
14676
14677         rename test: Add comments.
14678         * tests/test-rename.h (test_rename): Add structure and comments.
14679
14680 2010-11-13  Eric Blake  <eblake@redhat.com>
14681
14682         maintainer-makefile: cover a few more files
14683         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14684         scripts generated within C files, for libvirt.
14685
14686 2010-11-13  Bruno Haible  <bruno@clisp.org>
14687
14688         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14689         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14690         character, return the number of bytes that belong together, not always
14691         1.
14692         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14693         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14694         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14695         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14696         number of bytes of an invalid character.
14697         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14698         (main): Invoke it.
14699         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14700         results.
14701         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14702         malformed byte sequences.
14703         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14704         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14705         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14706         Reported by Ben Pfaff and Paolo Bonzini.
14707
14708 2010-11-13  Bruno Haible  <bruno@clisp.org>
14709
14710         openat: Work around glibc bug with fchownat() and empty file names.
14711         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14712         (gl_FUNC_FCHOWNAT): Invoke it.
14713         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14714         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14715         Reported by Gary V. Vaughan <gary@gnu.org>.
14716
14717 2010-11-13  Bruno Haible  <bruno@clisp.org>
14718
14719         openat: Ensure autoconf macro ordering.
14720         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14721         gl_USE_SYSTEM_EXTENSIONS.
14722         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14723
14724 2010-11-13  Bruno Haible  <bruno@clisp.org>
14725
14726         Update comments.
14727         * lib/unistr/u8-check.c: Update file name in comments.
14728         * lib/unistr/u8-mblen.c: Likewise.
14729         * lib/unistr/u8-prev.c: Likewise.
14730         * lib/unistr/u8-strmblen.c: Likewise.
14731         * lib/unistr/u8-strmbtouc.c: Likewise.
14732
14733 2010-11-13  Jim Meyering  <meyering@redhat.com>
14734
14735         tests: avoid test failure on Solaris 10 due to lack of PATH export
14736         * tests/test-update-copyright.sh: Don't forget to export PATH.
14737
14738         init.sh: ensure that IFS is defined, just in case...
14739         * tests/init.sh (setup_): Ensure that IFS is defined,
14740         so that saving and restoring it works as expected.  This
14741         appears to be useful at least for an old version of dash
14742         from a long time ago (RH 6).  See here for details:
14743         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14744
14745         maint.mk: tighten "test a == b" check
14746         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14747         test to files that contain something like #!/bin/sh.
14748         Without this, coreutils would get two false positives in
14749         the comments of C source files.
14750
14751 2010-11-12  Eric Blake  <eblake@redhat.com>
14752
14753         bootstrap: fix typo in previous attempt
14754         * build-aux/bootstrap (buildreq): Correct the grouping.
14755         Reported by Paul Eggert.
14756
14757         maintainer-makefile: prohibit test x == x
14758         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14759         Based on a report by Matthias Bolte.
14760
14761         bootstrap: allow FreeBSD gzip
14762         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14763         which has no '.' and goes to stderr.
14764         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14765         Reported by Matthias Bolte.
14766
14767         maintainer-makefile: check for i18n setup
14768         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14769         will likely work.
14770
14771 2010-11-12  Bruno Haible  <bruno@clisp.org>
14772
14773         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14774         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14775         * lib/nanosleep.c (nanosleep): Likewise.
14776
14777 2010-11-11  Bruno Haible  <bruno@clisp.org>
14778
14779         fcntl-h: Fix for use of C++ on glibc systems.
14780         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14781         also on glibc systems in C++ mode.
14782         Reported by Gary V. Vaughan <gary@gnu.org>.
14783
14784 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14785
14786         mknod: avoid false failure with dash
14787         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14788
14789 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14790
14791         unlink: Fix "is it should" typo in diagnostic.
14792         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14793         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14794
14795 2010-11-11  Bruno Haible  <bruno@clisp.org>
14796
14797         Tests for module 'strerror_r-posix'.
14798         * modules/strerror_r-posix-tests: New file.
14799         * tests/test-strerror_r.c: New file.
14800         * tests/test-string-c++.cc: Check the signature of strerror_r.
14801
14802         New module 'strerror_r-posix'.
14803         * lib/string.in.h (strerror_r): New declaration.
14804         * lib/strerror_r.c: New file.
14805         * m4/strerror_r.m4: New file.
14806         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14807         of strerror_r.
14808         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14809         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14810         * modules/strerror_r-posix: New file.
14811         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14812         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14813         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14814         portability problems.
14815
14816 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14817
14818         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14819         line is also considered for output. Quoted function name in shell
14820         command, so temporary files for functions like MyClass::operator()
14821         are removed correctly without errors.
14822
14823 2010-11-09  Bruno Haible  <bruno@clisp.org>
14824
14825         * doc/posix-functions/strerror.texi: List more failing platforms.
14826
14827         * doc/posix-functions/strerror.texi: Add a comment.
14828
14829 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14830
14831         fdopendir: fix bug on MacOS X when low on file descriptors
14832
14833         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14834         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14835         All callers changed.
14836         (fdopendir): Invoke save_cwd at the top level, not after using
14837         multiple dup() calls to use up file descriptors.  Then retry
14838         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14839         less than the maximum number of open file descriptors, because
14840         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14841         on Mac OS X 10.6.4 for tar 1.24
14842         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14843         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14844         and for tar 1.25
14845         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14846
14847 2010-11-07  Bruno Haible  <bruno@clisp.org>
14848
14849         vasnprintf: Support I flag on glibc systems.
14850         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14851         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14852         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14853         snprintf function.
14854         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14855         glibc systems.
14856         * tests/test-vasnprintf-posix3.c: New file.
14857         * modules/vasnprintf-posix-tests (Files): Add it.
14858         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14859
14860 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14861
14862         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14863         * MODULES.html.sh: For compiler warnings, use name
14864         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14865
14866 2010-11-05  Eric Blake  <eblake@redhat.com>
14867
14868         ceil, floor: avoid spurious failure with icc
14869         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14870         [denormals-as-zero] when optimizing without -mieee-fp option.
14871         * tests/test-floorf2.c (floorf_reference): Likewise.
14872         * tests/test-ceilf1.c (dummy): New function.
14873         (main): Use it to outsmart icc's optimization.
14874         * tests/test-floorf1.c (dummy, main): Likewise.
14875
14876         tests: require working signbit
14877         * modules/ceilf-tests (Depends-on): Add signbit.
14878         * modules/ceill-tests (Depends-on): Likewise.
14879         * modules/floorf-tests (Depends-on): Likewise.
14880         * modules/floorl-tests (Depends-on): Likewise.
14881         * modules/round-tests (Depends-on): Likewise.
14882         * modules/roundf-tests (Depends-on): Likewise.
14883         * modules/roundl-tests (Depends-on): Likewise.
14884         * modules/trunc-tests (Depends-on): Likewise.
14885         * modules/truncf-tests (Depends-on): Likewise.
14886         * modules/truncl-tests (Depends-on): Likewise.
14887
14888         strtod: work around icc bug
14889         * lib/strtod.c (minus_zero): Define to working value.
14890         (strtod): Use it to avoid icc bug.
14891
14892         copysign: enhance tests
14893         * modules/copysign-tests (Files): Add minus-zero.h.
14894         * tests/test-copysign.c (main): Also test zeros.
14895
14896 2010-11-04  Eric Blake  <eblake@redhat.com>
14897
14898         ceil, floor, round, trunc: enhance tests of -0
14899         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14900         * tests/test-ceill.c (main): Likewise.
14901         * tests/test-floorf1.c (main): Likewise.
14902         * tests/test-floorl.c (main): Likewise.
14903         * tests/test-round1.c (main): Likewise.
14904         * tests/test-roundf1.c (main): Likewise.
14905         * tests/test-roundl.c (main): Likewise.
14906         * tests/test-trunc1.c (main): Likewise.
14907         * tests/test-truncf1.c (main): Likewise.
14908         * tests/test-truncl.c (main): Likewise.
14909
14910 2010-11-04  Eric Blake  <eblake@redhat.com>
14911
14912         frexp, tests: work around ICC bug with -zero
14913         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14914         works with more compilers.
14915         * tests/minus-zero.h: New file.
14916         * modules/ceilf-tests (Files): Include it.
14917         * modules/ceill-tests (Files): Likewise.
14918         * modules/floorf-tests (Files): Likewise.
14919         * modules/floorl-tests (Files): Likewise.
14920         * modules/frexp-nolibm-tests (Files): Likewise.
14921         * modules/frexp-tests (Files): Likewise.
14922         * modules/frexpl-nolibm-tests (Files): Likewise.
14923         * modules/frexpl-tests (Files): Likewise.
14924         * modules/isnan-tests (Files): Likewise.
14925         * modules/isnand-nolibm-tests (Files): Likewise.
14926         * modules/isnand-tests (Files): Likewise.
14927         * modules/isnanf-nolibm-tests (Files): Likewise.
14928         * modules/isnanf-tests (Files): Likewise.
14929         * modules/isnanl-nolibm-tests (Files): Likewise.
14930         * modules/isnanl-tests (Files): Likewise.
14931         * modules/round-tests (Files): Likewise.
14932         * modules/roundf-tests (Files): Likewise.
14933         * modules/roundl-tests (Files): Likewise.
14934         * modules/ldexpl-tests (Files): Likewise.
14935         * modules/signbit-tests (Files): Likewise.
14936         * modules/snprintf-posix-tests (Files): Likewise.
14937         * modules/sprintf-posix-tests (Files): Likewise.
14938         * modules/strtod-tests (Files): Likewise.
14939         * modules/trunc-tests (Files): Likewise.
14940         * modules/truncf-tests (Files): Likewise.
14941         * modules/truncl-tests (Files): Likewise.
14942         * modules/vsnprintf-posix-tests (Files): Likewise.
14943         * modules/vsprintf-posix-tests (Files): Likewise.
14944         * modules/vasnprintf-posix-tests (Files): Likewise.
14945         * modules/vasprintf-posix-tests (Files): Likewise.
14946         * tests/test-ceilf1.c (main): Use it.
14947         * tests/test-ceill.c (main): Likewise.
14948         * tests/test-floorf1.c (main): Likewise.
14949         * tests/test-floorl.c (main): Likewise.
14950         * tests/test-frexp.c (main): Likewise.
14951         * tests/test-frexpl.c (main): Likewise.
14952         * tests/test-isnan.c (main): Likewise.
14953         * tests/test-isnand.h (main): Likewise.
14954         * tests/test-isnanf.h (main): Likewise.
14955         * tests/test-isnanl.h (main): Likewise.
14956         * tests/test-ldexpl.c (main): Likewise.
14957         * tests/test-round.c (main): Likewise.
14958         * tests/test-roundf.c (main): Likewise.
14959         * tests/test-roundl.c (main): Likewise.
14960         * tests/test-signbit.c (test_signbitf, test_signbitd)
14961         (test_signbitl): Likewise.
14962         * tests/test-snprintf-posix.h (test_function): Likewise.
14963         * tests/test-sprintf-posix.h (test_function): Likewise.
14964         * tests/test-strtod.c (main): Likewise.
14965         * tests/test-trunc1.c (main): Likewise.
14966         * tests/test-truncf1.c (main): Likewise.
14967         * tests/test-truncl.c (main): Likewise.
14968
14969         isnanl: work around icc bug
14970         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14971
14972 2010-11-03  Eric Blake  <eblake@redhat.com>
14973
14974         tests: fix compiler warnings
14975         * tests/test-getopt.h (test_getopt): Fix condition.
14976         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14977         * tests/test-pipe2.c (main): Likewise.
14978         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14979
14980         utimens: fix broken m4 test
14981         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14982
14983 2010-10-28  Bruno Haible  <bruno@clisp.org>
14984
14985         posix_spawn*, getdtablesize: Relax license.
14986         * modules/posix_spawn (License): Change to LGPLv2+.
14987         * modules/posix_spawnp (License): Likewise.
14988         * modules/posix_spawn-internal (License): Likewise.
14989         * modules/posix_spawnattr_init (License): Likewise.
14990         * modules/posix_spawnattr_getflags (License): Likewise.
14991         * modules/posix_spawnattr_setflags (License): Likewise.
14992         * modules/posix_spawnattr_getpgroup (License): Likewise.
14993         * modules/posix_spawnattr_setpgroup (License): Likewise.
14994         * modules/posix_spawnattr_getschedparam (License): Likewise.
14995         * modules/posix_spawnattr_setschedparam (License): Likewise.
14996         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14997         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14998         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14999         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15000         * modules/posix_spawnattr_getsigmask (License): Likewise.
15001         * modules/posix_spawnattr_setsigmask (License): Likewise.
15002         * modules/posix_spawnattr_destroy (License): Likewise.
15003         * modules/posix_spawn_file_actions_init (License): Likewise.
15004         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15005         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15006         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15007         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15008         * modules/getdtablesize (License): Likewise.
15009         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15010
15011 2010-10-26  Bruno Haible  <bruno@clisp.org>
15012
15013         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15014         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15015         Cygwin and mingw.
15016         Suggested by Eric Blake.
15017
15018 2010-10-26  Bruno Haible  <bruno@clisp.org>
15019
15020         stdio: Work around compilation error due to renameat() on Solaris 10.
15021         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15022         * lib/renameat.c: Don't include <unistd.h> here.
15023         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15024         Reported by Paul Eggert and Eric Blake.
15025
15026 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15027
15028         renameat: port to Solaris 10, which declares renameat in unistd.h
15029
15030         * lib/renameat.c: Include unistd.h before stdio.h, because
15031         Solaris 10 declares renameat in unistd.h.  Problem encountered
15032         when building GNU tar 1.24 on Solaris 10.
15033
15034 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15035
15036         fdopendir: fix C89 compilation
15037         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15038         compilers.
15039
15040 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15041
15042         inttostr: simplify by removing unnecessary redundancy
15043         * lib/anytostr.c: Don't include verify.h.
15044         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15045         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15046         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15047         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15048         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15049         Likewise.
15050         * modules/inttostr (Depends-on): Remove 'verify'.
15051
15052 2010-10-23  Bruno Haible  <bruno@clisp.org>
15053
15054         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15055         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15056         Reported by Eric Blake.
15057
15058 2010-10-23  Bruno Haible  <bruno@clisp.org>
15059
15060         Tests: Fix LOCALE_JA on MirBSD 10.
15061         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15062         to an UTF-8 locale.
15063         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15064         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15065         Reported by Eric Blake.
15066
15067 2010-10-21  Bruno Haible  <bruno@clisp.org>
15068
15069         nl_langinfo test: Avoid test failure on NetBSD 5.
15070         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15071         Reported by Eric Blake.
15072
15073 2010-10-21  Eric Blake  <eblake@redhat.com>
15074
15075         c-stack: work around libsigsegv 2.8 bug
15076         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15077         overflow on at least PowerPC64.
15078
15079 2010-10-17  Bruno Haible  <bruno@clisp.org>
15080
15081         userspec: Drop redundant file.
15082         * modules/userspec (Files): Remove lib/inttostr.h.
15083
15084 2010-10-17  Bruno Haible  <bruno@clisp.org>
15085
15086         nl_langinfo tests: Silence some warnings.
15087         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15088         Reported by Jim Meyering.
15089
15090 2010-10-17  Bruno Haible  <bruno@clisp.org>
15091
15092         Make use of GCC's attribute __alloc_size__.
15093         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15094         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15095         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15096         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15097         __alloc_size__.
15098         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15099         Suggested by Jim Meyering.
15100
15101 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15102
15103         bootstrap: anchor .gitignore entries.
15104         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15105         with...
15106         (insert_vc_ignore): ... this new function, which prepends `/' to
15107         all .gitignore entries before passing them to
15108         insert_sorted_if_absent.
15109
15110 2010-10-16  Bruno Haible  <bruno@clisp.org>
15111
15112         nextafter: Fix configure check.
15113         * modules/nextafter (configure.ac): Correct expected prototype.
15114
15115 2010-10-16  Bruno Haible  <bruno@clisp.org>
15116
15117         termios: Update documentation.
15118         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15119
15120 2010-10-16  Bruno Haible  <bruno@clisp.org>
15121
15122         tests: Make them compile with TinyCC.
15123         * tests/test-strstr.c (main): Remove parentheses around array
15124         initializer.
15125
15126 2010-10-15  Eric Blake  <eblake@redhat.com>
15127
15128         ignore-value: make header idempotent
15129         * lib/ignore-value.h: Add double-inclusion guards.
15130         Reported by Stefan Berger.
15131
15132 2010-10-15  Jim Meyering  <meyering@redhat.com>
15133
15134         GNUmakefile: handle "stable" target, not "major"
15135         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15136         lists in maint.mk and announce-gen.  Without this, "make stable"
15137         would fail to ensure that $(VERSION) is up to date.
15138
15139 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15140
15141         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15142         & co.
15143
15144 2010-10-14  Bruno Haible  <bruno@clisp.org>
15145
15146         vasnprintf: Don't set errno to 0.
15147         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15148         block that sets it to 0.
15149         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15150
15151 2010-10-14  Bruno Haible  <bruno@clisp.org>
15152
15153         socketlib: Fix.
15154         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15155         gl_PREREQ_SYS_H_WINSOCK2.
15156         Reported by Ian Beckwith <ianb@erislabs.net>.
15157
15158 2010-10-13  Jim Meyering  <meyering@redhat.com>
15159
15160         test-select-stdin.c: avoid warn_unused_result warnings
15161         * tests/test-select-stdin.c: Include "macros.h".
15162         ASSERT that read and fflush succeed.
15163
15164 2010-10-13  Jim Meyering  <meyering@redhat.com>
15165
15166         git-version-gen: do require git-VC'd files in cwd
15167         * build-aux/git-version-gen: Reject a git version string
15168         if there are no commits associated with the current directory.
15169         This avoids an unlikely false-positive (unrelated dir whose parent
15170         repository also contains a tag matching v*), as pointed out
15171         by Giuseppe Scrivano in
15172         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15173
15174 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15175
15176         argv-iter: omit nonconforming declaration
15177         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15178         enum arg_iter_err declaration, which doesn't conform to C99.
15179         Solaris 10 cc warns about this.
15180
15181 2010-10-13  Eric Blake  <eblake@redhat.com>
15182
15183         termios: fix compilation on mingw
15184         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15185         (gl_TERMIOS_H): Adjust it on mingw.
15186         * modules/termios (Makefile.am): Substitute new key.
15187         * lib/termios.in.h (includes): Make include_next conditional.
15188         * doc/posix-headers/termios.texi (termios.h): Update
15189         documentation.
15190         Reported by Daniel P. Berrange.
15191
15192 2010-10-13  Jim Meyering  <meyering@redhat.com>
15193
15194         git-version-gen: don't require that .git/ be in the current dir
15195         * build-aux/git-version-gen: Adjust this script so that it works
15196         when run from any working directory beneath the top-level .git/-
15197         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15198         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15199
15200         test-select: avoid warn_unused_result warnings
15201         * tests/test-select.c: Include "macros.h".
15202         ASSERT that each call to read, write, and pipe succeeds.
15203         While not technically required, also check each "close".
15204         * modules/select-tests (Files): Add tests/macros.h.
15205
15206         test-symlinkat: remove declaration of unused local
15207         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15208
15209         test-inttostr: avoid shadowing warnings
15210         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15211         and use malloc rather than the stack for the same reason as
15212         mentioned in the comment justifying the other allocation.
15213
15214 2010-10-11  Bruno Haible  <bruno@clisp.org>
15215
15216         stdlib: Allow multiple gnulib generated replacements to coexist.
15217         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15218         Reported by Sam Steingold <sds@gnu.org>.
15219
15220 2010-10-11  Jim Meyering  <meyering@redhat.com>
15221
15222         fix a documentation typo
15223         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15224
15225 2010-10-11  Eric Blake  <eblake@redhat.com>
15226
15227         futimens: work around Solaris 11 bug
15228         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15229         * tests/test-futimens.h (test_futimens): Enhance, rather than
15230         weaken test.
15231         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15232
15233 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15234
15235         Indentation.
15236         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15237         higher-level operators more to the left.
15238
15239 2010-10-11  Jim Meyering  <meyering@redhat.com>
15240
15241         test-futimens: avoid unwarranted test failure on Solaris 5.11
15242         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15243         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15244         because it tries to dereference the NULL name argument.
15245
15246 2010-10-11  Bruno Haible  <bruno@clisp.org>
15247
15248         Indentation.
15249         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15250         indentation.
15251
15252 2010-10-11  Jim Meyering  <meyering@redhat.com>
15253
15254         spawn.in.h: make indentation consistent with parentheses
15255         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15256         Make indentation consistent with parentheses.
15257
15258 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15259
15260         Fix mismatched parens in previous commit
15261         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15262         parens.
15263
15264 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15265
15266         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15267
15268         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15269         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15270         * lib/malloca.c: Include "verify.h".
15271         (verify1): Remove, replacing with a verify call.
15272         * lib/relocwrapper.c (verify1): Likewise.
15273         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15274         Likewise.
15275         * modules/malloca (Depends-on): Add 'verify'.
15276         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15277         * modules/vasnprintf (Depends-on): Add 'verify'.
15278         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15279         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15280         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15281         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15282         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15283         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15284         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15285
15286         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15287
15288         Formerly the style was sometimes 2*X - 1, because the C standard
15289         was wrongly thought to disallow ?: in integral constant expressions.
15290         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15291         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15292         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15293         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15294         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15295         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15296         verify that time_t cannot be floating.
15297
15298 2010-10-08  Eric Blake  <eblake@redhat.com>
15299
15300         time: enforce recent POSIX ruling that time_t is integral
15301         * lib/time.in.h (__time_t_must_be_integral): Detect any
15302         problematic systems, allowing the rest of gnulib to assume POSIX.
15303
15304 2010-10-08  Jim Meyering  <meyering@redhat.com>
15305
15306         fdopendir: fix a bug on systems lacking openat and /proc support
15307         OpenBSD 4.7 is one such system.  The most noticeable effect was
15308         failure of any application making nontrivial use of fts: rm, du,
15309         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15310           ./rm: traversal failed: `a': Bad file descriptor
15311         Debugging that, you see that even though FD 6 was closed just
15312         prior to the opendir call in fd_clone_opendir, its resulting
15313         dir->dd_fd was 8, rather than the expected value of 6:
15314
15315         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15316         93                close (fd);
15317         (gdb) n
15318         94                dir = fd_clone_opendir (dupfd);
15319         (gdb) n
15320         95                saved_errno = errno;
15321         (gdb) p dir->dd_fd
15322         $11 = 8
15323
15324         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15325         The problem is that on OpenBSD, fd_clone_opendir has to resort
15326         to using the old-style save/restore CWD mechanism, due to its
15327         lack of openat/proc support, and *that* would steal the FD (6)
15328         that opendir was supposed to use.
15329
15330         The fix is to squirrel away the desired FD so that save_cwd uses a
15331         different one, and then free the dest FD right before calling opendir.
15332         That guarantees opendir will use the required file descriptor.
15333
15334         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15335
15336 2010-10-08  Bruno Haible  <bruno@clisp.org>
15337
15338         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15339         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15340
15341 2010-10-08  Bruno Haible  <bruno@clisp.org>
15342
15343         nanosleep: Make replacement POSIX compliant.
15344         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15345         is out of range.
15346         Reported by Jim Meyering.
15347
15348 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15349
15350         bootstrap: add hook for altering gnulib.mk, for Bison
15351         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15352         the Bison bootstrapping process can rewrite file names and variables
15353         in this file before later parts of 'bootstrap' use the file.
15354         Bison wants to include lib/gnulib.mk from the top-level makefile,
15355         so it needs the file names in this file to be relative to the top
15356         level, not relative to lib; plus it needs variable names to be
15357         rewritten.
15358         (slurp): Use the new function.
15359
15360         bootstrap: reformat for readability
15361         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15362
15363 2010-10-08  Eric Blake  <eblake@redhat.com>
15364
15365         docs: update cygwin progress
15366         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15367         1.7.7.
15368         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15369         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15370         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15371         * doc/posix-functions/carg.texi (carg): Likewise.
15372         * doc/posix-functions/cargf.texi (cargf): Likewise.
15373         * doc/posix-functions/casin.texi (casin): Likewise.
15374         * doc/posix-functions/casinf.texi (casinf): Likewise.
15375         * doc/posix-functions/casinh.texi (casinh): Likewise.
15376         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15377         * doc/posix-functions/catan.texi (catan): Likewise.
15378         * doc/posix-functions/catanf.texi (catanf): Likewise.
15379         * doc/posix-functions/catanh.texi (catanh): Likewise.
15380         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15381         * doc/posix-functions/ccos.texi (ccos): Likewise.
15382         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15383         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15384         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15385         * doc/posix-functions/cexp.texi (cexp): Likewise.
15386         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15387         * doc/posix-functions/cimag.texi (cimag): Likewise.
15388         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15389         * doc/posix-functions/clog.texi (clog): Likewise.
15390         * doc/posix-functions/clogf.texi (clogf): Likewise.
15391         * doc/posix-functions/conj.texi (conj): Likewise.
15392         * doc/posix-functions/conjf.texi (conjf): Likewise.
15393         * doc/posix-functions/cpow.texi (cpow): Likewise.
15394         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15395         * doc/posix-functions/cproj.texi (cproj): Likewise.
15396         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15397         * doc/posix-functions/creal.texi (creal): Likewise.
15398         * doc/posix-functions/crealf.texi (crealf): Likewise.
15399         * doc/posix-functions/csin.texi (csin): Likewise.
15400         * doc/posix-functions/csinf.texi (csinf): Likewise.
15401         * doc/posix-functions/csinh.texi (csinh): Likewise.
15402         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15403         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15404         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15405         * doc/posix-functions/ctan.texi (ctan): Likewise.
15406         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15407         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15408         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15409         * doc/posix-headers/complex.texi (complex.h): Likewise.
15410
15411 2010-10-07  Jim Meyering  <meyering@redhat.com>
15412
15413         parse-datetime: avoid compilation failure on OpenBSD 4.7
15414         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15415         This works around a compilation failure on OpenBSD 4.7:
15416         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15417
15418 2010-10-07  Eric Blake  <eblake@redhat.com>
15419
15420         docs: update cygwin progress
15421         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15422         1.7.6.
15423         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15424         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15425         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15426         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15427         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15428         Likewise.
15429         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15430         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15431         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15432         Likewise.
15433         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15434         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15435         Likewise.
15436         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15437         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15438         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15439         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15440         Likewise.
15441         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15442         Likewise.
15443         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15444
15445         docs: update parse-datetime history
15446         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15447         documentation of this function's history and alternatives.
15448
15449         cygwin: use more robust version check
15450         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15451         exclude an eventual cygwin 1.9.1.
15452         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15453         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15454         (gl_FUNC_STRCASESTR): Likewise.
15455         Reported by Bruno Haible.
15456
15457 2010-10-06  Bruno Haible  <bruno@clisp.org>
15458
15459         string, sys_select: Avoid #including large headers unless necessary.
15460         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15461         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15462         OSF/1, BeOS, Haiku.
15463         Reported by Jim Meyering.
15464
15465 2010-10-05  Eric Blake  <eblake@redhat.com>
15466
15467         memmem, strstr, strcasestr: fix bug with long periodic needle
15468         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15469         periodic needle having false positive.
15470         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15471         and cygwin 1.7.7.
15472         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15473         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15474         (gl_FUNC_STRCASESTR): Likewise.
15475         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15476         * tests/test-memmem.c (main): Expose the bug.
15477         * tests/test-strcasestr.c (main): Likewise.
15478         * tests/test-strstr.c (main): Likewise.
15479         * tests/test-c-strcasestr.c (main): Likewise.
15480         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15481         * doc/posix-functions/strstr.texi (strstr): Likewise.
15482         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15483         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15484
15485 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15486
15487         parse-datetime: do some more renaming
15488         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15489         parse_datetime, not get_date.  Mention the renaming.
15490         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15491         in comments.
15492         * m4/bison.m4: Likewise.
15493
15494 2010-10-05  Eric Blake  <eblake@redhat.com>
15495
15496         parse-datetime: better name than get_date
15497         * NEWS: Reword the deprecation notice.
15498         * modules/get_date: Rename to modules/parse-datetime.
15499         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15500         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15501         * lib/get_date.y: Rename to lib/parse-datetime.y.
15502         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15503         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15504         * doc/getdate.texi: Provide fallback wrapper.
15505         * lib/getdate.h: Move guts, and wrap...
15506         * lib/parse-datetime.h: ...new file.
15507         * lib/parse-datetime.y (get_date): Rename...
15508         (parse_datetime): ...to this.
15509         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15510         (gl_PARSE_DATETIME): ...to this.
15511         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15512         documentation.
15513         * modules/getdate (Files): Provide fallback docs and header.
15514         (Notice, Depends-on): Update references.
15515         * tests/test-parse-datetime.c: Likewise.
15516         * DEPENDENCIES: Likewise.
15517         * MODULES.html.sh (Date and time <time.h>): Likewise.
15518         * doc/parse-datetime.texi (Date input formats)
15519         (Authors of parse_datetime): Likewise.
15520         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15521         (Include): Likewise.
15522         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15523         * gnulib-tool: Likewise.
15524         * m4/bison.m4 (gl_BISON): Likewise.
15525         Suggested by Bruno Haible.
15526
15527 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15528
15529         more ports to Solaris tr, which needs [] around ranges
15530         * gnulib-tool: Solaris tr needs [] around ranges.
15531         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15532         * tests/test-pipe-filter-gi1.c (main): Likewise.
15533         * tests/test-pipe-filter-ii1.c (main): Likewise.
15534
15535 2010-10-05  Eric Blake  <eblake@redhat.com>
15536
15537         bootstrap: fix Solaris regression
15538         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15539         around ranges.
15540         Reported by Pádraig Brady.
15541
15542         bootstrap: work with pkg-config
15543         * build-aux/bootstrap (check_versions): Also transliterate - in
15544         prerequisite name.
15545         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15546         prerequisites that were already found, to avoid confusion.
15547         Reported by Justin Clift.
15548
15549         faccessat: remove unused wrappers
15550         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15551         presence of these wrappers dragged in -lgen on Solaris.
15552         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15553
15554 2010-10-05  Jim Meyering  <meyering@redhat.com>
15555
15556         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15557         * Makefile (sc_pragma_columns): New syntax-check rule.
15558
15559 2010-10-04  Bruno Haible  <bruno@clisp.org>
15560
15561         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15562         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15563         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15564         Reported by Bruce Korb and Eric Blake.
15565
15566 2010-10-04  Bruno Haible  <bruno@clisp.org>
15567
15568         threadlib: Make option --with-libpth-prefix work.
15569         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15570         use $LIBPTH, not just -lpth.
15571
15572 2010-10-04  Bruno Haible  <bruno@clisp.org>
15573
15574         Avoid line length limitation from HP NonStop system header files.
15575         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15576         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15577         * lib/ctype.in.h: Likewise.
15578         * lib/dirent.in.h: Likewise.
15579         * lib/errno.in.h: Likewise.
15580         * lib/fcntl.in.h: Likewise.
15581         * lib/float.in.h: Likewise.
15582         * lib/getopt.in.h: Likewise.
15583         * lib/iconv.in.h: Likewise.
15584         * lib/inttypes.in.h: Likewise.
15585         * lib/langinfo.in.h: Likewise.
15586         * lib/locale.in.h: Likewise.
15587         * lib/math.in.h: Likewise.
15588         * lib/netdb.in.h: Likewise.
15589         * lib/netinet_in.in.h: Likewise.
15590         * lib/poll.in.h: Likewise.
15591         * lib/pthread.in.h: Likewise.
15592         * lib/pty.in.h: Likewise.
15593         * lib/sched.in.h: Likewise.
15594         * lib/se-selinux.in.h: Likewise.
15595         * lib/search.in.h: Likewise.
15596         * lib/signal.in.h: Likewise.
15597         * lib/spawn.in.h: Likewise.
15598         * lib/stdarg.in.h: Likewise.
15599         * lib/stddef.in.h: Likewise.
15600         * lib/stdint.in.h: Likewise.
15601         * lib/stdio.in.h: Likewise.
15602         * lib/stdlib.in.h: Likewise.
15603         * lib/string.in.h: Likewise.
15604         * lib/strings.in.h: Likewise.
15605         * lib/sys_file.in.h: Likewise.
15606         * lib/sys_ioctl.in.h: Likewise.
15607         * lib/sys_select.in.h: Likewise.
15608         * lib/sys_socket.in.h: Likewise.
15609         * lib/sys_stat.in.h: Likewise.
15610         * lib/sys_time.in.h: Likewise.
15611         * lib/sys_times.in.h: Likewise.
15612         * lib/sys_utsname.in.h: Likewise.
15613         * lib/sys_wait.in.h: Likewise.
15614         * lib/sysexits.in.h: Likewise.
15615         * lib/termios.in.h: Likewise.
15616         * lib/time.in.h: Likewise.
15617         * lib/unistd.in.h: Likewise.
15618         * lib/wchar.in.h: Likewise.
15619         * lib/wctype.in.h: Likewise.
15620         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15621         * modules/ctype (Makefile.am): Likewise.
15622         * modules/dirent (Makefile.am): Likewise.
15623         * modules/errno (Makefile.am): Likewise.
15624         * modules/fcntl-h (Makefile.am): Likewise.
15625         * modules/float (Makefile.am): Likewise.
15626         * modules/getopt-posix (Makefile.am): Likewise.
15627         * modules/iconv-h (Makefile.am): Likewise.
15628         * modules/inttypes (Makefile.am): Likewise.
15629         * modules/langinfo (Makefile.am): Likewise.
15630         * modules/locale (Makefile.am): Likewise.
15631         * modules/math (Makefile.am): Likewise.
15632         * modules/netdb (Makefile.am): Likewise.
15633         * modules/netinet_in (Makefile.am): Likewise.
15634         * modules/poll-h (Makefile.am): Likewise.
15635         * modules/pthread (Makefile.am): Likewise.
15636         * modules/pty (Makefile.am): Likewise.
15637         * modules/sched (Makefile.am): Likewise.
15638         * modules/search (Makefile.am): Likewise.
15639         * modules/selinux-h (Makefile.am): Likewise.
15640         * modules/signal (Makefile.am): Likewise.
15641         * modules/spawn (Makefile.am): Likewise.
15642         * modules/stdarg (Makefile.am): Likewise.
15643         * modules/stddef (Makefile.am): Likewise.
15644         * modules/stdint (Makefile.am): Likewise.
15645         * modules/stdio (Makefile.am): Likewise.
15646         * modules/stdlib (Makefile.am): Likewise.
15647         * modules/string (Makefile.am): Likewise.
15648         * modules/strings (Makefile.am): Likewise.
15649         * modules/sys_file (Makefile.am): Likewise.
15650         * modules/sys_ioctl (Makefile.am): Likewise.
15651         * modules/sys_select (Makefile.am): Likewise.
15652         * modules/sys_socket (Makefile.am): Likewise.
15653         * modules/sys_stat (Makefile.am): Likewise.
15654         * modules/sys_time (Makefile.am): Likewise.
15655         * modules/sys_times (Makefile.am): Likewise.
15656         * modules/sys_utsname (Makefile.am): Likewise.
15657         * modules/sys_wait (Makefile.am): Likewise.
15658         * modules/sysexits (Makefile.am): Likewise.
15659         * modules/termios (Makefile.am): Likewise.
15660         * modules/time (Makefile.am): Likewise.
15661         * modules/unistd (Makefile.am): Likewise.
15662         * modules/wchar (Makefile.am): Likewise.
15663         * modules/wctype (Makefile.am): Likewise.
15664
15665 2010-10-04  Bruno Haible  <bruno@clisp.org>
15666
15667         read-file tests: Avoid a test failure on NonStop Kernel.
15668         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15669         a regular file.
15670         Reported by Joachim Schmitz <schmitz@hp.com>.
15671
15672 2010-10-03  Bruno Haible  <bruno@clisp.org>
15673
15674         gnulib-tool: Fixes for --create-testdir with --libtool.
15675         * gnulib-tool (func_get_automake_snippet): Don't augment
15676         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15677         an executable.
15678         (func_create_testdir): Handle module 'alloca' like func_import.
15679         Reported by Bruce Korb <bruce.korb@gmail.com>.
15680
15681 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15682
15683         Avoid some lines longer than 80 characters.
15684         * lib/stdint.in.h: Break long comment lines.
15685         * lib/math.in.h: Likewise.
15686         (_GL_NUM_UINT_WORDS): New macro, for readability.
15687         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15688         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15689         * lib/stdlib.in.h: Likewise.
15690         * lib/spawn.in.h: Likewise.
15691         * lib/sys_socket.in.h: Update an URL.
15692         * lib/sys_stat.in.h: Break long line.
15693
15694 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15695
15696         Improve pmccabe2html.
15697         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15698         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15699         when the sources change. Remove the line in the HTML about "Used
15700         ranges" (which implied that there might be other unused ranges),
15701         rename "Resume" to "Summary" (easier to understand for more users).
15702         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15703         styles, and some unnecessary blank lines.
15704
15705 2010-10-03  Bruno Haible  <bruno@clisp.org>
15706             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15707
15708         acl: Add support for ACLs on NonStop Kernel.
15709         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15710         Check whether the function aclsort() exists.
15711         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15712         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15713         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15714         (acl_nontrivial [HAVE_ACLSORT]: New function.
15715         (file_has_acl): Implement for NonStop Kernel.
15716         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15717         (qset_acl): Implement for NonStop Kernel.
15718         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15719         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15720         (main): Implement for NonStop Kernel.
15721         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15722         Kernel. Handle this flavor.
15723         * tests/test-set-mode-acl.sh: Likewise.
15724         * tests/test-copy-acl.sh: Likewise.
15725         * tests/test-copy-file.sh: Likewise.
15726
15727 2010-10-03  Bruno Haible  <bruno@clisp.org>
15728
15729         Info about ACLs on NonStop Kernel.
15730         * doc/acl-resources.txt: Add info about NonStop Kernel.
15731         References by Joachim Schmitz <schmitz@hp.com>.
15732
15733 2010-10-02  Bruno Haible  <bruno@clisp.org>
15734
15735         Define missing EDQUOT on NonStop Kernel.
15736         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15737         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15738         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15739         missing.
15740         * doc/posix-headers/errno.texi: Mention the NSK bug.
15741         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15742         Reported by Joachim Schmitz <schmitz@hp.com>.
15743
15744 2010-10-02  Bruno Haible  <bruno@clisp.org>
15745
15746         Update doc for POSIX:2008.
15747         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15748         Update URL of POSIX specification.
15749
15750 2010-10-02  Bruno Haible  <bruno@clisp.org>
15751
15752         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15753         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15754         from gnulib, not from Automake.
15755
15756 2010-10-02  Bruno Haible  <bruno@clisp.org>
15757
15758         New module 'system-posix'.
15759         * modules/system-posix: New file.
15760         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15761         module is present.
15762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15763         GNULIB_SYSTEM_POSIX.
15764         * modules/stdlib (Depends-on): Remove sys_wait.
15765         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15766         * doc/posix-functions/system.texi: Mention the new module.
15767         * doc/posix-headers/stdlib.texi: Likewise.
15768         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15769         define test_sys_wait_macros to a no-op.
15770         Reported by Sam Steingold <sds@gnu.org>.
15771
15772 2010-09-30  Bruno Haible  <bruno@clisp.org>
15773
15774         More renaming from 'getdate' to 'get_date'.
15775         * doc/get_date.texi: Renamed from doc/getdate.texi.
15776         * modules/get_date (Files): Update.
15777         * MODULES.html.sh (Date and time <time.h>): Update.
15778         * DEPENDENCIES: Update.
15779         * gnulib-tool: Update comment.
15780         * m4/bison.m4 (gl_BISON): Likewise.
15781         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15782
15783 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15784
15785         bootstrap: support ACLOCAL_FLAGS during aclocal
15786         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15787         can add additional -I dir for third-party .m4 files.
15788
15789 2010-09-30  Eric Blake  <eblake@redhat.com>
15790
15791         bootstrap: use glibtoolize on MacOS
15792         * build-aux/bootstrap (check_versions): Convert libtool into
15793         libtoolize.
15794         (tool search): Move libtool check earlier, and look for
15795         glibtoolize for MacOS.
15796         (gnulib_tool_options): Auto-add --libtool when appropriate.
15797         Reported by Justin Clift.
15798
15799         poll: fix typo that broke test on MacOS
15800         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15801         Reported by Justin Clift.
15802
15803         getdate: rename to get_date
15804         Note: getdate.h is not renamed, to minimize client impact.
15805         * modules/getdate: Mark obsolete.  Move old contents...
15806         * modules/get_date: ...to new module name.
15807         * modules/getdate-tests: Move...
15808         * modules/get_date-tests: ...here.
15809         * m4/getdate.m4: Move...
15810         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15811         * lib/getdate.y: Move...
15812         * lib/get_date.y: ...here.
15813         * tests/test-getdate.c: Move...
15814         * tests/test-get_date.c: ...here.
15815         * doc/posix-functions/getdate.texi (getdate): Update name.
15816         * NEWS: Mention the change.
15817
15818 2010-09-29  Bruno Haible  <bruno@clisp.org>
15819
15820         Separate the module 'waitpid' from the module 'sys_wait'.
15821         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15822         present.
15823         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15824         gl_MODULE_INDICATOR_FOR_TESTS.
15825         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15826         * modules/sys_wait (Depends-on): Remove waitpid.
15827         (Makefile.am): Substitute GNULIB_WAITPID.
15828         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15829         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15830         signature only if the 'waitpid' module is present.
15831         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15832         * NEWS: Mention the change.
15833         * modules/grantpt (Depends-on): Add waitpid.
15834         * modules/wait-process (Depends-on): Likewise.
15835
15836 2010-09-29  Bruno Haible  <bruno@clisp.org>
15837
15838         More tests for module 'sys_wait'.
15839         * modules/sys_wait-c++-tests: New file.
15840         * tests/test-sys_wait-c++.cc: New file.
15841         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15842         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15843
15844 2010-09-29  Bruno Haible  <bruno@clisp.org>
15845
15846         New module 'waitpid'.
15847         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15848         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15849         Don't include <process.h>.
15850         (waitpid): Declare only, using modern idiom.
15851         * m4/waitpid.m4: New file.
15852         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15853         * modules/waitpid: New file.
15854         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15855         (Makefile.am): Update.
15856         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15857
15858 2010-09-28  Bruno Haible  <bruno@clisp.org>
15859
15860         poll: Assume ANSI C.
15861         * lib/poll.c (poll): Use an ANSI C declaration.
15862
15863 2010-09-28  Bruno Haible  <bruno@clisp.org>
15864
15865         poll-h: Create poll.h on all platforms.
15866         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15867         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15868         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15869         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15870         (gl_REPLACE_POLL_H): Don't set POLL_H.
15871         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15872         * modules/poll-h (Depends-on): Add include_next.
15873         (Makefile.am): Create poll.h unconditionally. Substitute also
15874         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15875
15876 2010-09-28  Bruno Haible  <bruno@clisp.org>
15877
15878         Tests for module 'poll-h'.
15879         * modules/poll-h-c++-tests: New file.
15880         * tests/test-poll-h-c++.cc: New file.
15881
15882         Tests for module 'poll-h'.
15883         * modules/poll-h-tests: New file.
15884         * tests/test-poll-h.c: New file.
15885
15886 2010-09-28  Bruno Haible  <bruno@clisp.org>
15887
15888         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15889         * modules/poll-h (Depends-on): Add 'extensions'.
15890
15891 2010-09-28  Bruno Haible  <bruno@clisp.org>
15892
15893         New module 'poll-h'.
15894         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15895         (poll): Use modern idiom.
15896         * modules/poll-h: New file.
15897         * modules/poll (Files): Remove lib/poll.in.h.
15898         (Depends-on): Add poll-h.
15899         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15900         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15901         * m4/poll_h.m4: New file.
15902         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15903         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15904         and invoke gl_REPLACE_POLL_H.
15905         * lib/poll.c: Use common idiom.
15906         * tests/test-poll.c: Likewise.
15907         * doc/posix-headers/poll.texi: Mention the poll-h module.
15908         Suggested by Eric Blake.
15909
15910 2010-09-26  Bruno Haible  <bruno@clisp.org>
15911
15912         sys_wait: Implement WSTOPSIG.
15913         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15914         Reported by Simon Josefsson.
15915
15916 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15917
15918         stdlib, sys_wait: Avoid compilation error on mingw.
15919         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15920
15921 2010-09-26  Bruno Haible  <bruno@clisp.org>
15922
15923         stdlib tests: Avoid code duplication.
15924         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15925         * modules/sys_wait-tests (Files): Likewise.
15926         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15927         * tests/test-stdlib.c: Include test-sys_wait.h.
15928         (main): Invoke test_sys_wait_macros.
15929         * tests/test-sys_wait.c: Include test-sys_wait.h.
15930         (main): Invoke test_sys_wait_macros.
15931
15932 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15933
15934         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15935         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15936         sure Windows sockets are working before calling getaddrinfo.
15937         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15938         * doc/gnulib.texi (Windows sockets): Fix typo.
15939
15940 2010-09-25  Bruno Haible  <bruno@clisp.org>
15941
15942         Tests for module 'regex-quote'.
15943         * modules/regex-quote-tests: New file.
15944         * tests/test-regex-quote.c: New file.
15945
15946         New module 'regex-quote'.
15947         * lib/regex-quote.h: New file.
15948         * lib/regex-quote.c: New file.
15949         * modules/regex-quote: New file.
15950         Suggested by Reuben Thomas <rrt@sc3d.org>.
15951
15952 2010-09-24  Bruno Haible  <bruno@clisp.org>
15953
15954         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15955         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15956
15957 2010-09-23  Bruno Haible  <bruno@clisp.org>
15958
15959         setenv: Relax license.
15960         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15961         Blake.
15962         Requested by Eric Blake.
15963
15964 2010-09-22  Bruno Haible  <bruno@clisp.org>
15965
15966         termios: Relax license.
15967         * modules/termios (License): Change to LGPLv2+.
15968         Requested by Eric Blake.
15969
15970 2010-09-22  Bruno Haible  <bruno@clisp.org>
15971
15972         threadlib: Allow the package to change the default to 'no'.
15973         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15974         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15975         Reported by Paul Eggert.
15976
15977 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15978             Bruno Haible  <bruno@clisp.org>
15979
15980         Fix endless loop in mbmemcasecoll.
15981         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15982         byte.
15983         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15984
15985 2010-09-22  Bruno Haible  <bruno@clisp.org>
15986
15987         Tests for module 'memcoll'.
15988         * modules/memcoll-tests: New file.
15989         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15990
15991         memcoll, xmemcoll: Clarify size vs. length.
15992         * modules/memcoll.c (memcoll0): Clarify specification.
15993         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15994         passed to collate_error.
15995
15996 2010-09-22  Bruno Haible  <bruno@clisp.org>
15997
15998         Tests for module 'memcasecmp'.
15999         * modules/memcasecmp-tests: New file.
16000         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16001
16002 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16003
16004         * lib/pthread.in.h: Add split double-inclusion guard, and include
16005         system <pthread.h> if there is one.  Use @@-style as in other
16006         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16007         pthread.h doesn't.
16008         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16009         (pthread_mutexattr_settype, pthread_mutex_trylock):
16010         New static inline functions, if there's no system <pthread.h>.
16011         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16012         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16013         Approximate with mutexes if the system lacks spinlocks, as in
16014         MacOS.
16015         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16016         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16017         @@-style.  Check for spinlocks separately.
16018         (gl_PTHREAD_DEFAULTS): New macro.
16019         * modules/pthread: Redo to use a more typical style for in.h files.
16020
16021 2010-09-21  Eric Blake  <eblake@redhat.com>
16022
16023         net_if: enhance tests
16024         * tests/test-net_if.c (main): Move signature checks earlier.
16025         Print failures to stderr.
16026         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16027         Document the bug that we do not yet fix.
16028
16029 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16030
16031         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16032         about gnulib, not GSS.
16033
16034 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16035
16036         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16037         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16038         for Emacs.
16039         * build-aux/pmccabe2html: Make Makefile.am example code more
16040         cut-and-paste friendly.
16041
16042 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16043
16044         * tests/test-net_if.c: New file.
16045         * modules/net_if-tests: New file.
16046
16047 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16048
16049         pthread: add pthread_spin_destroy
16050         * lib/pthread.in.h (pthread_spin_destroy): New function.
16051
16052 2010-09-19  Bruno Haible  <bruno@clisp.org>
16053
16054         gnulib-tool: Fix --help output.
16055         * gnulib-tool (func_usage): Fix help message.
16056         Reported by Reuben Thomas <rrt@sc3d.org>.
16057
16058 2010-09-18  Jim Meyering  <meyering@redhat.com>
16059
16060         maint.mk: avoid unexpanded \n in two diagnostics
16061         * top/maint.mk (sc_prohibit_always_true_header_tests):
16062         Don't use a literal \n in a halt=... assignment.  It would not be
16063         expanded, and the two \n bytes would appear in the diagnostic output
16064         rather than the desired newline.  Use halt=$$(printf ... instead.
16065         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16066
16067 2010-09-18  Bruno Haible  <bruno@clisp.org>
16068
16069         netinet_in: Doc tweak.
16070         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16071         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16072
16073 2010-09-18  Jim Meyering  <meyering@redhat.com>
16074
16075         init.sh: correct an outdated comment
16076         * tests/init.sh (create_exe_shims_):  s/function/alias/
16077
16078         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16079         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16080         a file named "*.exe" is removed between the glob expansion and the
16081         processing of that oddly named file.
16082
16083 2010-09-17  Eric Blake  <eblake@redhat.com>
16084
16085         mirbsd: add some more support
16086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16087         in BSD family.
16088         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16089         devices as OpenBSD.
16090         * m4/host-os.m4 (mirbsd): Add MirBSD.
16091
16092         tests: fix unportable assumption on sys/wait.h
16093         * tests/test-sys_wait.c (main): Relax test.
16094         * tests/test-stdlib.c (main): Likewise.
16095
16096         init.sh: accomodate directory with no .exes
16097         * tests/init.sh: Accomodate directory containing only scripts.
16098
16099         tests: avoid compiler warning
16100         * tests/test-stdlib.c (main): Use the variable.
16101
16102         fdutimens, fdutimensat: update signature, again
16103         * lib/utimens.h (gl_futimens): Delete, and move signature...
16104         (fdutimens): ...here.
16105         (fdutimensat): Rearrange signature.
16106         (lutimensat): Rename variable for clarity.
16107         * lib/fdutimensat.c (fdutimensat): Update signature.
16108         * lib/utimens.c (fdutimens): Likewise.
16109         (gl_futimens): Delete.
16110         (utimens, lutimens): Update callers.
16111         * lib/futimens.c (futimens): Likewise.
16112         * tests/test-fdutimensat.c: Likewise.
16113         * tests/test-utimens.c: Likewise.
16114         * tests/test-futimens.h: Update comment.
16115         * NEWS: Mention this.
16116         Suggested by Paul Eggert.
16117
16118 2010-09-17  Bruno Haible  <bruno@clisp.org>
16119
16120         Take over the maintenance of some older macros from Autoconf.
16121         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16122         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16123         GNU Autoconf.
16124         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16125         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16126
16127 2010-09-17  Eric Blake  <eblake@redhat.com>
16128
16129         fdutimensat: drop atflag validation
16130         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16131         with valid fd, to close a race scenario where futimens is
16132         unsupported and FILE was replaced by a symlink.
16133         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16134         accordingly.
16135         Suggested by Paul Eggert.
16136
16137 2010-09-16  Bruno Haible  <bruno@clisp.org>
16138
16139         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16140         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16141
16142 2010-09-16  Bruno Haible  <bruno@clisp.org>
16143
16144         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16145         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16146         login_tty exists.
16147         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16148
16149 2010-09-16  Bruno Haible  <bruno@clisp.org>
16150
16151         login_tty: Make the replacement code work on BSD systems.
16152         * lib/login_tty.c: Include <sys/ioctl.h>.
16153         (login_tty): Use ioctl TIOCSCTTY when available.
16154         * modules/login_tty (Depends-on): Add sys_ioctl.
16155         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16156
16157 2010-09-16  Bruno Haible  <bruno@clisp.org>
16158
16159         login_tty: Stricter unit test.
16160         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16161         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16162         and tcgetsid() after login_tty.
16163         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16164
16165 2010-09-16  Bruno Haible  <bruno@clisp.org>
16166
16167         New module 'tcgetsid'.
16168         * lib/tcgetsid.c: New file.
16169         * m4/tcgetsid.m4: New file.
16170         * modules/tcgetsid: New file.
16171         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16172         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16173         GNULIB_TCGETSID, HAVE_TCGETSID.
16174         * lib/termios.in.h: Include <sys/types.h>.
16175         (tcgetsid): New declaration.
16176         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16177         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16178         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16179         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16180
16181 2010-09-16  Bruno Haible  <bruno@clisp.org>
16182
16183         Tests for module 'termios'.
16184         * modules/termios-c++-tests: New file.
16185         * modules/termios-tests: New file.
16186         * tests/test-termios-c++.cc: New file.
16187         * tests/test-termios.c: New file.
16188
16189         New module 'termios'.
16190         * modules/termios: New file.
16191         * lib/termios.in.h: New file.
16192         * m4/termios_h.m4: New file.
16193         * doc/posix-headers/termios.texi: Mention the new module.
16194
16195 2010-09-16  Eric Blake  <eblake@redhat.com>
16196
16197         fdutimensat: add an atflag parameter
16198         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16199         * lib/utimens.h (fdutimensat): Update prototype.
16200         * tests/test-fdutimensat.c: Adjust test to match.
16201         * NEWS: Document the change.
16202         Suggested by Paul Eggert.
16203
16204 2010-09-16  Bruno Haible  <bruno@clisp.org>
16205
16206         Fix typos in comments.
16207         * lib/striconveh.h: Fix typo in comment.
16208         * lib/login_tty.c (login_tty): Likewise.
16209
16210 2010-09-15  Bruno Haible  <bruno@clisp.org>
16211
16212         stdlib: clarify MirBSD WEXITSTATUS bug
16213         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16214         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16215
16216 2010-09-15  Eric Blake  <eblake@redhat.com>
16217
16218         stdlib: work around MirBSD WEXITSTATUS bug
16219         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16220         * modules/stdlib (Depends-on): Add sys_wait.
16221         * tests/test-sys_wait.c (main): Enhance test.
16222         * tests/test-stdlib.c (main): Likewise.
16223         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16224
16225         docs: mention MacOS issue with WEXITSTATUS(constant)
16226         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16227         issue.
16228         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16229
16230         strnlen: add tests
16231         * modules/strnlen-tests: New file.
16232         * tests/test-strnlen.c: Likewise.
16233
16234 2010-09-14  Bruno Haible  <bruno@clisp.org>
16235
16236         unistr/base: Avoid link errors when module 'libunistring' is also used.
16237         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16238         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16239         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16240         Declare also when HAVE_LIBUNISTRING is set.
16241         Reported by Pádraig Brady <P@draigbrady.com>.
16242
16243 2010-09-14  Eric Blake  <eblake@redhat.com>
16244
16245         test-rawmemchr: make more robust
16246         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16247         (Depends-on, configure.ac): Add needed prerequisites to use it.
16248         * modules/memchr-tests (Files, Depends-on, configure.ac):
16249         Likewise, to avoid implicit reliance on memchr module prereqs.
16250         * tests/test-memchr.c (main): Ensure proper masking.
16251         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16252         reads.
16253
16254         memchr: detect glibc Alpha bug
16255         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16256         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16257         Alpha.
16258         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16259         * tests/test-memchr.c (main): Enhance test.
16260         Reported by Nelson H. F. Beebe.
16261
16262 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16263
16264         fts, getcwd, glob: audit for dirfd returning -1
16265         * lib/fts.c (opendir): Remove #define; no longer used.
16266         (opendirat): New arg PDIR_FD.  All callers changed.
16267         (fts_build, _opendir2): Use new opendirat to avoid the need for
16268         dirfd, or for checking whether dirfd returns a negative value.
16269         Don't use opendir; always use openat followed by fdopendir.
16270         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16271         it.
16272         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16273         returns -1 here.
16274         * modules/fts (Depends-on): Remove dirfd.
16275         * modules/getcwd (Depends-on): Likewise.
16276
16277 2010-09-13  Eric Blake  <eblake@redhat.com>
16278
16279         float: fix broken MirBSD header
16280         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16281         * doc/posix-headers/float.texi (float.h): Document it.
16282
16283 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16284
16285         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16286         * lib/fts.c (opendirat): New arg extra_flags.
16287         (__opendir2): Use it to avoid following symlinks when opening
16288         a directory, if symlinks are not supposed to be followed.  See
16289         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16290
16291         fdopendir: preserve argument fd before returning
16292         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16293         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16294         (fdopendir): Use them, arranging for FD to be open to the same
16295         directory that it was when it started.  (It might be temporarily
16296         closed while fdopendir is running, so this not thread- or
16297         signal-safe.)  Be careful to do the right thing even when file
16298         descriptors are scarce and dup fails with errno == EMFILE.  See
16299         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16300
16301 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16302
16303         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16304         * NEWS: Document change.
16305         * m4/regex.m4: Disable test for regoff_t size.
16306
16307 2010-09-13  Jim Meyering  <meyering@redhat.com>
16308
16309         fts: don't operate on an invalid file descriptor after failed dup
16310         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16311         negative file descriptor.
16312
16313 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16314
16315         savedir: add streamsavedir, deprecate fdsavedir
16316         * NEWS: Mention deprecation of fdsavedir.
16317         * lib/savedir.c (streamsavedir): New extern function, whose name
16318         ends in "savedir" to be consistent with the others.  This differs
16319         from savedirstream in that it doesn't close its argument.  The
16320         next version of GNU tar will use this instead of fdsavedir, to
16321         avoid some race conditions and conserve file descriptors.
16322         (savedirstream): Reimplement as a wrapper around streamsavedir.
16323         (fdsavedir): Add a comment deprecating this function.  As far as
16324         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16325         * lib/savedir.h (streamsavedir): New decl.
16326         (fdsavedir): Add a comment deprecating this.
16327
16328 2010-09-10  Bruno Haible  <bruno@clisp.org>
16329
16330         langinfo: Fix last commit.
16331         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16332         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16333         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16334
16335 2010-09-10  Bruno Haible  <bruno@clisp.org>
16336
16337         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16338         * lib/progreloc.c (O_EXEC): Define fallback.
16339
16340 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16341
16342         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16343         * NEWS: Document recent changes to fcntl-h.
16344         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16345         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16346         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16347         Similarly for O_SEARCH; this last was already true, but not documented.
16348         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16349         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16350         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16351         Likewise.
16352         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16353         is zero, not whether it is defined.
16354         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16355         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16356         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16357
16358 2010-09-10  Bruno Haible  <bruno@clisp.org>
16359
16360         langinfo, nl_langinfo: Fix for IRIX 5.3.
16361         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16362         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16363         HAVE_LANGINFO_YESEXPR.
16364         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16365         HAVE_LANGINFO_YESEXPR.
16366         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16367         HAVE_LANGINFO_T_FMT_AMPM is 0.
16368         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16369         HAVE_LANGINFO_YESEXPR is 0.
16370         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16371         NOEXPR.
16372         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16373         * doc/posix-functions/nl_langinfo.texi: Likewise.
16374         Reported by Eric Blake.
16375
16376 2010-09-10  Bruno Haible  <bruno@clisp.org>
16377
16378         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16379         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16380         on FreeBSD 8.0 and OpenBSD 4.6.
16381         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16382         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16383         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16384         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16385         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16386         ac_includes_default.
16387         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16388
16389 2010-09-09  Eric Blake  <eblake@redhat.com>
16390
16391         strsignal: work around NetBSD bug
16392         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16393         * lib/string.in.h (includes): Likewise.
16394         * doc/posix-functions/strsignal.texi (strsignal): Document the
16395         bug.
16396         Reported by Nelson H. F. Beebe.
16397
16398         gnulib-tool: work with NetBSD /bin/sh
16399         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16400         (func_get_description, func_get_comment, func_get_status)
16401         (func_get_notice, func_get_applicability, func_get_filelist)
16402         (func_get_dependencies, func_get_autoconf_early_snippet)
16403         (func_get_autoconf_snippet, func_get_automake_snippet)
16404         (func_get_include_directive, func_get_link_directive)
16405         (func_get_license, func_get_maintainer, func_import): Avoid
16406         shell syntax errors from parsing syntax extensions.
16407
16408 2010-09-09  Bruno Haible  <bruno@clisp.org>
16409
16410         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16411         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16412         a reliable way to determine whether the 'alias' command works.
16413
16414 2010-09-08  Jim Meyering  <meyering@redhat.com>
16415
16416         init.sh: penalize a set-x-impaired shell; don't disqualify it
16417         * tests/init.sh: Too many shells corrupt application stderr when
16418         you set -x, so we can't afford to disqualify them, since at least
16419         on Irix-6.5, that would disqualify all bourne shells.
16420         Instead, use a two-pass approach.
16421         On the first pass, try to find a shell that meets the stricter
16422         condition that set -x does not corrupt stderr.
16423         If no shell meets the stricter condition, retest each candidate
16424         shell, but without that extra condition.  Finally, when
16425         VERBOSE=yes is requested and set -x might cause trouble, simply
16426         issue a warning and refrain from enabling debug output.
16427
16428 2010-09-08  Eric Blake  <eblake@redhat.com>
16429
16430         unsetenv: fix OpenBSD bug
16431         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16432         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16433         documentation.
16434         Reported by Jim Meyering.
16435
16436         strtod: work around IRIX 6.5 bug
16437         * lib/strtod.c (strtod): Reparse number on shorter string if
16438         exponent parse was invalid.
16439         * tests/test-strtod.c (main): Add check for "0x1p 2".
16440         Reported by Tom G. Christensen.
16441
16442         getopt: optimize previous patch
16443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16444         empty variable.  Speed up awk script.
16445         Reported by Paolo Bonzini.
16446
16447 2010-09-08  Jim Meyering  <meyering@redhat.com>
16448
16449         test.sh: disqualify shells for which set -x corrupts stderr
16450         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16451         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16452         appear in stderr output.  For example, this command:
16453             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16454         prints "P=1" on those two systems:
16455
16456 2010-09-08  Bruno Haible  <bruno@clisp.org>
16457
16458         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16459         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16460         commands, because some shells ignore redirections when there is an
16461         error in the command lookup.
16462         Reported by Eric Blake.
16463
16464 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16465
16466         * lib/regex.h: Fix a mention of `regex_compile' (should be
16467         `re_compile_pattern').
16468         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16469         (re_set_registers): Correct name of parameter in comment.
16470
16471         * doc/regex.texi: Add documentation for missing syntax flags.
16472         Remove commented-out documentation of defunct syntax option
16473         RE_NO_EMPTY_ALTS.
16474         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16475         Add documentation of re_set_registers.
16476         Document trick to re-use a pattern buffer by setting fastmap manually.
16477         Update documentation of struct re_pattern_buffer per public members.
16478         Uncomment documentation of equivalence class operators and
16479         collating symbol operators, since they are now implemented,
16480         Explain leftmost-longest matching in relation to alternatives.
16481         Tidy documentation of substring matching.
16482         Remove POSIX documentation, which is done better in
16483         glibc, and refer the reader there. Keep BSD API documentation, as
16484         that is not readily available elsewhere.
16485
16486 2010-09-07  Eric Blake  <eblake@redhat.com>
16487
16488         getopt: handle POSIXLY_CORRECT set but not exported
16489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16490         export state of POSIXLY_CORRECT, due to bash set -o posix.
16491         Reported by Dustin J. Mitchell.
16492
16493 2010-09-05  Bruno Haible  <bruno@clisp.org>
16494
16495         gnulib-tool: Highlight the changed options.
16496         * gnulib-tool (func_usage): Display the --import, --add-import,
16497         --remove-import explanations in bold font.
16498
16499 2010-09-06  Karl Berry  <karl@gnu.org>
16500
16501         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16502
16503 2010-09-05  Bruno Haible  <bruno@clisp.org>
16504
16505         uniwidth/width: Update comment.
16506         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16507         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16508
16509 2010-09-05  Bruno Haible  <bruno@clisp.org>
16510
16511         isinf, isnan: Relax license.
16512         * modules/isinf (License): Change from GPL to LGPL, with consent from
16513         Ben Pfaff.
16514         * modules/isnan (License): Likewise.
16515         Requested by Ludovic Courtès.
16516
16517 2010-09-04  Bruno Haible  <bruno@clisp.org>
16518
16519         gnulib-tool: Help migration from --import to --add-import or --update.
16520         * gnulib-tool: Emit a verbose error message when --import is used
16521         without any module name.
16522
16523 2010-09-04  Bruno Haible  <bruno@clisp.org>
16524
16525         Update doc about gnulib-tool.
16526         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16527         'gnulib-tool --update' in more detail.
16528         Reported by Eric Blake.
16529
16530 2010-09-04  Bruno Haible  <bruno@clisp.org>
16531
16532         gnulib-tool: Change --import. New options --add/remove-import.
16533         * gnulib-tool: New options --add-import, --remove-import.
16534         (func_usage): Document them.
16535         (have_associative): Define always.
16536         (func_import): In import mode, don't merge the specified settings with
16537         the cached settings. Implement remove-import mode.
16538         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16539         Explain when to use them versus --import.
16540         (Simple update): Use --add-import instead of --import.
16541         * NEWS: Mention the change.
16542
16543 2010-09-04  Bruno Haible  <bruno@clisp.org>
16544
16545         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16546         separate gnulib.mk.
16547
16548 2010-09-04  Bruno Haible  <bruno@clisp.org>
16549
16550         gnulib-tool: Don't talk about CVS any more.
16551         * gnulib-tool (func_usage, func_import): Write "version control"
16552         instead of CVS.
16553
16554 2010-09-04  Jim Meyering  <meyering@redhat.com>
16555
16556         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16557         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16558         false positives (whose names may be ill-chosen) when searching
16559         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16560         would cause a false-positive.
16561
16562         avoid coreutils "make distcheck" failure
16563         Coreutils tests with an absolute build directory name that contains
16564         a space.  Not quoting this directory name caused a failure.
16565         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16566         * tests/test-vc-list-files-cvs.sh: Likewise.
16567
16568 2010-09-04  Bruno Haible  <bruno@clisp.org>
16569
16570         gnulib-tool: Avoid error when run in a package without Makefile.am.
16571         * gnulib-tool: When collecting the m4dirs in a package that does not
16572         have a Makefile.am, eliminate those directories that contain no
16573         gnulib-cache.m4. Fix expression that counts these directories.
16574
16575 2010-09-04  Bruno Haible  <bruno@clisp.org>
16576
16577         update-copyright test: Improve output when perl is missing or too old.
16578         * tests/test-update-copyright.sh: Move test of Perl version down after
16579         the test whether Perl exists. Provide an explanation relating Perl's
16580         error message to Automake's SKIP: message.
16581
16582 2010-09-04  Bruno Haible  <bruno@clisp.org>
16583
16584         Don't augment PATH in TESTS_ENVIRONMENT.
16585         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16586         set abs_aux_dir instead of augmenting PATH.
16587         * modules/vc-list-files-tests (Makefile.am): Likewise.
16588         * tests/test-update-copyright.sh: Augment PATH here.
16589         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16590         path_prepend_.
16591         * tests/test-vc-list-files-git.sh: Likewise.
16592
16593 2010-09-04  Jim Meyering  <meyering@redhat.com>
16594
16595         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16596         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16597
16598 2010-09-04  Bruno Haible  <bruno@clisp.org>
16599
16600         strdup: Fix compilation error in C++ mode.
16601         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16602         the macro.
16603
16604 2010-09-04  Bruno Haible  <bruno@clisp.org>
16605
16606         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16607         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16608         macro into a function.
16609         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16610
16611 2010-09-04  Bruno Haible  <bruno@clisp.org>
16612
16613         Set PATH_SEPARATOR the same way autoconf does.
16614         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16615         the value of PATH_SEPARATOR the same way autoconf-generated configure
16616         scripts do.
16617         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16618         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16619
16620 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16621
16622         Set PATH_SEPARATOR the same way autoconf does.
16623         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16624         the same way autoconf-generated configure scripts do.
16625         * posix-modules: Likewise.
16626
16627 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16628
16629         hash: fix safe_hasher const typo
16630         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16631         const; otherwise, there is a type error later.
16632
16633 2010-09-02  Jim Meyering  <meyering@redhat.com>
16634
16635         test-update-copyright.sh: require perl 5.8.0
16636         * tests/test-update-copyright.sh: Require 5.8.0,
16637         which Tom G. Christensen has confirmed is adequate,
16638         while 5.6.1 is not.
16639
16640 2010-09-02  Eric Blake  <eblake@redhat.com>
16641
16642         tests: init.sh improvements for re-exec'ing with zsh
16643         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16644         -vx through shell re-exec.
16645         Reported by Tom G. Christensen.
16646
16647         wctype: fix typo in previous commit
16648         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16649         Reported by Ludovic Courtès.
16650
16651 2010-09-02  Jim Meyering  <meyering@redhat.com>
16652
16653         test-update-copyright.sh: skip test if Perl is too old
16654         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16655         Reported by Tom G. Christensen.
16656
16657 2010-09-02  Bruno Haible  <bruno@clisp.org>
16658
16659         wctype: Avoid compilation error on IRIX 6.5.30.
16660         * lib/wctype.in.h (iswblank): Declare with a replacement if
16661         REPLACE_ISWBLANK is set.
16662         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16663         declared. Set REPLACE_ISWBLANK.
16664         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16665         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16666         * doc/posix-headers/wctype.texi: Likewise.
16667         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16668
16669 2010-09-01  Bruno Haible  <bruno@clisp.org>
16670
16671         New module 'socketlib'.
16672         * modules/socketlib: New file.
16673         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16674         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16675         * modules/sockets (Depends-on): Add socketlib.
16676         Suggested by Sam Steingold <sds@gnu.org>.
16677
16678 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16679
16680         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16681
16682         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16683         when one needs search access to a directory but not read access.
16684         On systems where it is available, it works in some cases where
16685         O_RDONLY does not, namely on directories that are searchable but
16686         not readable, and which need only to be searchable.  If O_SEARCH
16687         is not available, fall back to the traditional method of using
16688         O_RDONLY.
16689
16690         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16691         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16692         when opening a directory that needs only to be searchable.
16693         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16694         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16695         * lib/openat-proc.c (openat_proc_name): Likewise.
16696         * lib/openat.c (openat_needs_fchdir): Likewise.
16697         * lib/save-cwd.c (save_cwd): Likewise.
16698         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16699
16700 2010-08-28  Bruno Haible  <bruno@clisp.org>
16701
16702         New module 'host-cpu-c-abi'.
16703         * modules/host-cpu-c-abi: New file.
16704         * m4/host-cpu-c-abi.m4: New file, based on part of
16705         clisp/src/m4/general.m4.
16706         Requested by Sam Steingold <sds@gnu.org>.
16707
16708 2010-08-31  Eric Blake  <eblake@redhat.com>
16709         and Jim Meyering  <meyering@redhat.com>
16710
16711         hash: factor, and guard against misbehaving hasher function
16712         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16713         of table->hasher's return value.  Also protect against a hash value
16714         so large that adding it to table->bucket results in a NULL pointer.
16715         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16716         Use it in place of open-coded check-and-abort.
16717
16718 2010-08-30  Bruno Haible  <bruno@clisp.org>
16719
16720         hash: silence spurious clang warning
16721         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16722         Reported by Eric Blake.
16723
16724 2010-08-30  Eric Blake  <eblake@redhat.com>
16725
16726         strstr, memmem, strcasestr: avoid leaked shell message
16727         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16728         FreeBSD.
16729         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16730         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16731
16732         tests: silence clang warning
16733         * tests/test-malloca.c (do_allocation): Avoid dead store.
16734
16735 2010-08-29  Bruno Haible  <bruno@clisp.org>
16736
16737         gettext: Fix recent mistake.
16738         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16739
16740 2010-08-29  Bruno Haible  <bruno@clisp.org>
16741
16742         selinux-h: Offer a --without-selinux option.
16743         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16744         --without-selinux was specified, skip all tests and define
16745         HAVE_SELINUX_SELINUX_H to 0.
16746         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16747         set LIB_SELINUX to empty.
16748         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16749         gl_LIBSELINUX. If --without-selinux was specified, replace
16750         selinux/context.h.
16751         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16752
16753 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16754             Bruno Haible  <bruno@clisp.org>
16755
16756         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16757         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16758         of HAVE_REALLOC.
16759         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16760         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16761         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16762         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16763
16764 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16765             Bruno Haible  <bruno@clisp.org>
16766
16767         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16768         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16769         HAVE_CALLOC.
16770         * lib/xmalloc.c: Update accordingly.
16771         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16772         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16773         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16774
16775 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16776             Bruno Haible  <bruno@clisp.org>
16777
16778         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16779         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16780         HAVE_MALLOC.
16781         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16782         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16783         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16784
16785 2010-08-29  Bruno Haible  <bruno@clisp.org>
16786
16787         Update modules list.
16788         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16789         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16790         (String handling <string.h>): Add astrxfrm.
16791         (File system functions): Add readlinkat.
16792
16793 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16794
16795         Tests for module 'realloc-gnu'.
16796         * modules/realloc-gnu-tests: New file.
16797         * tests/test-realloc-gnu.c: New file.
16798
16799         Tests for module 'calloc-gnu'.
16800         * modules/calloc-gnu-tests: New file.
16801         * tests/test-calloc-gnu.c: New file.
16802
16803         Tests for module 'malloc-gnu'.
16804         * modules/malloc-gnu-tests: New file.
16805         * tests/test-malloc-gnu.c: New file.
16806
16807 2010-08-28  Bruno Haible  <bruno@clisp.org>
16808
16809         Rename module 'realloc' -> 'realloc-gnu'.
16810         * modules/realloc-gnu: New file, copied from modules/realloc.
16811         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16812         obsolete.
16813         * modules/mgetgroups (Depends-on): Update.
16814         * doc/posix-functions/realloc.texi: Update.
16815         * NEWS: Mention the change.
16816
16817         Rename module 'calloc' -> 'calloc-gnu'.
16818         * modules/calloc-gnu: New file, copied from modules/calloc.
16819         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16820         obsolete.
16821         * doc/posix-functions/calloc.texi: Update.
16822         * NEWS: Mention the change.
16823
16824         Rename module 'malloc' -> 'malloc-gnu'.
16825         * modules/malloc-gnu: New file, copied from modules/malloc.
16826         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16827         obsolete.
16828         * modules/argp (Depends-on): Update.
16829         * modules/regex (Depends-on): Update.
16830         * doc/posix-functions/malloc.texi: Update.
16831         * NEWS: Mention the change.
16832
16833 2010-08-28  Eric Blake  <eblake@redhat.com>
16834
16835         pread, pwrite: add missing dependency
16836         * modules/pread (Depends-on): Add extensions.
16837         * modules/pwrite (Depends-on): Likewise.
16838
16839 2010-08-28  Bruno Haible  <bruno@clisp.org>
16840
16841         unistr/u*-strchr: Fix tests dependencies.
16842         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16843         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16844         Reported by Ian Beckwith <ianb@erislabs.net>.
16845
16846 2010-08-28  Bruno Haible  <bruno@clisp.org>
16847
16848         read-file: Don't occupy too much unused memory.
16849         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16850
16851 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16852             Eric Blake  <eblake@redhat.com>
16853             Bruno Haible  <bruno@clisp.org>
16854
16855         read-file: Avoid memory reallocations with regular files.
16856         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16857         (fread_file): With regular files, use the remaining length as the
16858         initial buffer size.  Check against overflow.
16859         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16860         sys_stat.
16861
16862 2010-08-28  Bruno Haible  <bruno@clisp.org>
16863
16864         ftello: Relax license.
16865         * modules/ftello (License): Relax to LGPLv2+.
16866         Reported by Eric Blake.
16867
16868 2010-08-28  Bruno Haible  <bruno@clisp.org>
16869
16870         Avoid relocwrapper link errors due to gnulib replacement functions.
16871         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16872         function.
16873         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16874
16875 2010-08-28  Bruno Haible  <bruno@clisp.org>
16876
16877         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16878         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16879         defined.
16880         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16881         Suggested by Eric Blake.
16882
16883 2010-08-28  Bruno Haible  <bruno@clisp.org>
16884
16885         sys_socket, netdb: Ensure socklen_t gets defined.
16886         * modules/sys_socket (Depends-on): Add socklen.
16887         * modules/netdb (Depends-on): Likewise.
16888         * modules/getaddrinfo (Depends-on): Remove socklen.
16889         * modules/getsockopt (Depends-on): Likewise.
16890         * modules/setsockopt (Depends-on): Likewise.
16891         * tests/test-sys_socket.c: Check that socklen_t is defined.
16892         * tests/test-netdb.c: Likewise.
16893         * m4/socklen.m4: Update comments.
16894         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16895
16896 2010-08-27  Eric Blake  <eblake@redhat.com>
16897
16898         login_tty: add missing dependency
16899         * modules/login_tty (Depends-on): Add pty.
16900
16901 2010-08-26  Eric Blake  <eblake@redhat.com>
16902
16903         lib-symbol-versions: fix m4 quoting
16904         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16905         format for AC_LINK_IFELSE.
16906
16907         glob: fix compile test
16908         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16909
16910         btowc: fix missing file
16911         * modules/btowc (Files): Also ship locale-fr.m4.
16912
16913         lseek: fix link test
16914         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16915         AC_LINK_IFELSE.
16916
16917         include_next: silence autoconf 2.68 warning
16918         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16919         AC_COMPILE_IFELSE as special.
16920         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16921         autoconf < 2.68.
16922
16923         acl: fix compilation test
16924         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16925         AC_COMPILE_IFELSE.
16926
16927 2010-08-26  Bruno Haible  <bruno@clisp.org>
16928
16929         Modernize AC_TRY_RUN invocations.
16930         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16931         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16932         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16933         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16934         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16935         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16936         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16938         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16939         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16940         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16941         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16942         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16943         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16944         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16945         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16946         gl_MBRLEN_NUL_RETVAL): Likewise.
16947         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16948         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16949         Likewise.
16950         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16951         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16952         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16953         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16954         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16955         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16956         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16957         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16958         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16959         Likewise.
16960         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16961         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16962         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16963         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16964         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16965         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16966         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16967         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16968         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16970
16971 2010-08-26  Bruno Haible  <bruno@clisp.org>
16972
16973         Modernize AC_TRY_LINK invocations.
16974         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16975         AC_TRY_LINK.
16976         * m4/argp.m4 (gl_ARGP): Likewise.
16977         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16978         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16979         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16980         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16981         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16982         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16983         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16984         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16985         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16986         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16987         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16988         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16989         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16990         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16991         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16992         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16993         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16994         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16995         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16996         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16997         Likewise.
16998         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16999         Likewise.
17000         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17001         Likewise.
17002         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17003         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17004         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17005         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17006         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17007         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17008         * m4/servent.m4 (gl_SERVENT): Likewise.
17009         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17010         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17011         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17012         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17013         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17014         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17015         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17016         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17017         * modules/tsearch-tests (configure.ac): Likewise.
17018
17019 2010-08-26  Bruno Haible  <bruno@clisp.org>
17020
17021         Modernize AC_TRY_COMPILE invocations.
17022         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17023         AC_TRY_COMPILE.
17024         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17025         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17026         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17027         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17028         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17029         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17030         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17031         * m4/lock.m4 (gl_LOCK): Likewise.
17032         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17033         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17034         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17035         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17036         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17037         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17038         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17039         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17040         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17041         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17042         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17043         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17044         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17045         extraneous semicolon.
17046
17047 2010-08-26  Jim Meyering  <meyering@redhat.com>
17048
17049         stat-time: relax license LGPL
17050         * modules/stat-time (License): Change from GPL to LGPL,
17051         with consent from all contributors, for use in libguile.
17052         Requested by Ludovic Courtès.
17053
17054 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17055
17056         poll: return immediately on POLLHUP.
17057         * lib/poll.c (poll): Always set timeout before wait_timeout is
17058         computed.
17059
17060 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17061
17062         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17063         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17064         rmdir ("dir/.//"), unlinkat.
17065
17066 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17067
17068         stdbool: avoid spurious failure with modern xlc
17069         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17070
17071 2010-08-24  Bruno Haible  <bruno@clisp.org>
17072
17073         getloadavg: simplify code
17074         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17075         gl_have_func. Update comments.
17076
17077 2010-08-24  Eric Blake  <eblake@redhat.com>
17078
17079         getloadavg: don't define SVR4 on cygwin
17080         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17081         only define SVR4 when -lkvm is required.
17082         Reported by Yaakov Selkowitz.
17083
17084 2010-08-24  Bruno Haible  <bruno@clisp.org>
17085
17086         priv-set: fix comment
17087         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17088
17089 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17090
17091         priv-set: fix comments
17092         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17093         to match code, as suggested by David Bartley in:
17094         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17095
17096 2010-08-23  Eric Blake  <eblake@redhat.com>
17097
17098         stdbool: avoid rejecting clang
17099         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17100         * tests/test-stdbool.c: Enable more tests if using the system
17101         <stdbool.h> instead of the gnulib replacement.
17102         (main): Move xlc bug test to a runtime test for all compilers.
17103         Reported by Anders Kaseorg.
17104
17105         argz: fix shell quoting issue
17106         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17107         Reported by Charles Wilson.
17108
17109 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17110             Erik Faye-Lund <kusmabite@gmail.com>
17111
17112         poll, select: handle ERROR_BROKEN_PIPE.
17113         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17114         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17115         * lib/select.c (win32_compute_revents): Do not mark a pipe
17116         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17117
17118 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17119
17120         fts: allow compilation with C++
17121         * lib/fts_.h: Specify extern "C" linkage with C++.
17122
17123 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17124
17125         Fix gnulib-tool sed script de-commentation for AIX sed.
17126         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17127         sed.
17128
17129 2010-08-17  Eric Blake  <eblake@redhat.com>
17130
17131         test-stddef: test for (some) offsetof bugs
17132         * tests/test-stddef.c: Enhance test to ensure correct type of
17133         offsetof.
17134         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17135         that we are not fixing at this time.
17136
17137 2010-08-15  Bruno Haible  <bruno@clisp.org>
17138
17139         stpncpy: Allow stpncpy to be defined as a macro.
17140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17141         if it's already correctly declared.
17142         * lib/string.in.h (stpncpy): Undefine before redefining.
17143         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17144
17145 2010-08-14  Bruno Haible  <bruno@clisp.org>
17146
17147         Rename module 'memxfrm' to 'amemxfrm'.
17148         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17149         (amemxfrm): Renamed from memxfrm.
17150         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17151         (amemxfrm): Renamed from memxfrm.
17152         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17153         * NEWS: Mention the change.
17154         * MODULES.html.sh (String handling <string.h>): Update.
17155         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17156         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17157         * lib/unicase/u16-casexfrm.c: Likewise.
17158         * lib/unicase/u32-casexfrm.c: Likewise.
17159         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17160         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17161         * lib/uninorm/u16-normxfrm.c: Likewise.
17162         * lib/uninorm/u32-normxfrm.c: Likewise.
17163         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17164         memxfrm.
17165         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17166         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17167         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17168         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17169         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17170         Suggested by Paul Eggert.
17171
17172 2010-08-14  Bruno Haible  <bruno@clisp.org>
17173
17174         Tests for module 'astrxfrm'.
17175         * modules/astrxfrm-tests: New file.
17176         * tests/test-astrxfrm.c: New file.
17177
17178         New module 'astrxfrm'.
17179         * lib/astrxfrm.h: New file.
17180         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17181         * modules/astrxfrm: New file.
17182
17183 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17184
17185         regex: Tweak doc.
17186         * doc/regex.texi (Overview): Don't mention regex.c.
17187         (GNU Regular Expression Compiling): Likewise.
17188         (Match-end-of-line Operator): Mention 'not_eol'.
17189
17190 2010-08-14  Brian Gough  <bjg@gnu.org>
17191             Bruno Haible  <bruno@clisp.org>
17192
17193         git-merge-changelog: add doc relating to use with bzr and hg.
17194         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17195
17196 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17197
17198         pthread: fix pthread.h creation for srcdir != builddir
17199         * modules/pthread (Makefile.am): Fix the rule to work also in a
17200         non-srcdir build.
17201
17202 2010-08-13  Karl Berry  <karl@gnu.org>
17203
17204         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17205         * doc/posix-*/*: force line break before @url of POSIX
17206         specifications.
17207         Suggested by Werner Lemberg.
17208
17209 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17210
17211         strtod: fix const diagnostic
17212         * lib/strtod.c (strtod): Don't assign const char * to char *,
17213         as this elicits a warning from GCC when warnings are enabled.
17214
17215 2010-08-10  Pádraig Brady <P@draigbrady.com>
17216         and Eric Blake  <eblake@redhat.com>
17217
17218         copy-acl: ignore ENOTSUP on HP-UX
17219         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17220         so that it is available for HP-UX.
17221         * lib/copy-acl.c (qcopy_acl): Use it.
17222         Reported by Patrick M. Callahan.
17223
17224 2010-08-10  Eric Blake  <eblake@redhat.com>
17225
17226         open, chown: relax license
17227         * modules/open (License): Change to LGPLv2+, with consent by all
17228         authors, for use in augeas.
17229         * modules/chown (License): Likewise.
17230         * modules/lchown (Likewise): Likewise.
17231         Requested by Adam Stokes.
17232
17233 2010-08-09  Karl Berry  <karl@gnu.org>
17234
17235         * build-aux/ar-lib: new file, import from Automake.
17236         * config/srclist.txt: autocheck for updates.
17237
17238 2010-08-09  Eric Blake  <eblake@redhat.com>
17239
17240         readlinkat: adjust client modules
17241         * modules/areadlinkat (Depends-on): Use readlinkat, not
17242         symlinkat.
17243         * modules/areadlinkat-with-size (Depends-on): Likewise.
17244
17245         mknod: be more vocal about danger of running tests as root
17246         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17247         root, since that is just asking for problems.
17248         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17249
17250         readlinkat: split into its own module
17251         * modules/symlinkat: Split readlinkat...
17252         * modules/readlinkat: ...into separate module.
17253         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17254         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17255         * lib/symlinkat.c (readlinkat): Move...
17256         * lib/readlinkat.c: ...into new file.
17257         * modules/symlinkat-tests: Split readlinkat test...
17258         * modules/readlinkat-tests: ...into separate module.
17259         * tests/test-symlinkat.c: Split...
17260         * tests/test-readlinkat.c: ...into new file.
17261         * NEWS: Document the split.
17262         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17263         * lib/unistd.in.h (readlinkat): Likewise.
17264         Suggested by Bruno Haible.
17265
17266 2010-08-08  Bruno Haible  <bruno@clisp.org>
17267
17268         memxfrm: Speed up.
17269         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17270         that usually only one call to strxfrm is necessary for each string
17271         part.
17272         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17273
17274 2010-08-07  Karl Berry  <karl@gnu.org>
17275
17276         * doc/posix-headers/limits.texi,
17277         * doc/posix-functions/malloc.texi,
17278         * doc/posix-functions/strsignal.texi: missing @item.
17279         * doc/ld-version-script.texi: spurious leading i.
17280         * doc/regex.texi (Interval Operators): no commas inside @var.
17281
17282 2010-08-01  Bruno Haible  <bruno@clisp.org>
17283
17284         Integrate the regex documentation.
17285         * doc/gnulib.texi: Define 'cn' index.
17286         (Regular expressions): New a chapter that includes regex.texi and
17287         regexprops-generic.texi.
17288         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17289         syntax.
17290
17291         Whitespace cleanup.
17292         * doc/regex.texi: Remove trailing spaces.
17293
17294         Add regex documentation.
17295         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17296         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17297         Written by Kathy A. Hargreaves and Karl Berry.
17298
17299 2010-08-01  Bruno Haible  <bruno@clisp.org>
17300
17301         link: Update documentation.
17302         * doc/posix-functions/link.texi: Update regarding Solaris.
17303
17304 2010-07-31  Bruno Haible  <bruno@clisp.org>
17305
17306         Update modules list.
17307         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17308         (String handling <string.h>): Add memcmp2, memxfrm.
17309         (Container data structures): Add xlist, xsublist, xoset.
17310         (Core language properties): Add alignof, unused-parameter.
17311         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17312         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17313         (Unibyte characters <ctype.h>): New section.
17314         (String handling <string.h>): New section.
17315         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17316         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17317         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17318         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17319         tan, tanh, tanl, y0, y1, yn.
17320         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17321         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17322         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17323         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17324         unlockpt, vdprintf, vdprintf-posix.
17325         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17326         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17327         xconcat-filename.
17328         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17329         getdtablesize, pipe2, pipe2-safer.
17330         (Security): New section.
17331         (Networking functions): Add accept4.
17332         (Signal handling): Add sigpipe.
17333         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17334         mbmemcasecoll.
17335         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17336         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17337         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17338         pipe-filter-ii.
17339         (Misc): Add argp-version-etc, login_tty, parse-duration.
17340
17341 2010-07-31  Bruno Haible  <bruno@clisp.org>
17342
17343         Improve doc in MODULES.html.
17344         * modules/linkat (Description): Add the word "function".
17345         * modules/mkfifo (Description): Likewise.
17346         * modules/mknod (Description): Likewise.
17347         * modules/remove (Description): Likewise.
17348         * modules/renameat (Description): Likewise.
17349         * modules/stat (Description): Likewise.
17350         * modules/symlink (Description): Likewise.
17351         * modules/unlink (Description): Likewise.
17352
17353 2010-07-31  Bruno Haible  <bruno@clisp.org>
17354
17355         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17356         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17357         option --enable/disable-c++ instead of --enable/disable-cxx.
17358         * NEWS: Mention the change.
17359
17360 2010-07-31  Bruno Haible  <bruno@clisp.org>
17361
17362         readlink, areadlink: Relax test a bit.
17363         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17364         alternative to ENOTDIR.
17365         * tests/test-areadlink.h (test_areadlink): Likewise.
17366         Reported by Rainer Tammer.
17367
17368 2010-07-31  Bruno Haible  <bruno@clisp.org>
17369
17370         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17371         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17372         character, perform the search using U_STRCHR.
17373         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17374         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17375         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17376         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17377         Suggested by Paolo Bonzini.
17378
17379 2010-07-31  Bruno Haible  <bruno@clisp.org>
17380
17381         unistr/u*-strstr: Fix dependencies.
17382         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17383         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17384         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17385
17386 2010-07-31  Bruno Haible  <bruno@clisp.org>
17387
17388         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17389         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17390         the beginning of the loop.
17391         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17392         cases in 'switch' statement.
17393
17394         unistr/u8-strchr: Fix several bugs.
17395         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17396         the string. When not found, return NULL, not a pointer near the end.
17397
17398         More tests for unistr/u8-strchr.
17399         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17400         that the function does not read past the first occurrence of the byte
17401         being searched.
17402         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17403         * tests/unistr/test-u16-strchr.c (main): New function.
17404         * tests/unistr/test-u32-strchr.c (main): New function.
17405
17406 2010-07-31  Bruno Haible  <bruno@clisp.org>
17407
17408         posix-modules: Ignore backup files of documentation files.
17409         * posix-modules: grep only through files named *.texi.
17410
17411 2010-07-31  Bruno Haible  <bruno@clisp.org>
17412
17413         symlinkat: Fix documentation.
17414         * doc/posix-functions/readlinkat.texi: Fix module name.
17415
17416 2010-07-31  Bruno Haible  <bruno@clisp.org>
17417
17418         fchownat: Replace also when chown has the trailing slash bug.
17419         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17420         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17421         introduced on 2010-04-10.
17422         Reported by Rainer Tammer.
17423
17424 2010-07-31  Bruno Haible  <bruno@clisp.org>
17425
17426         linkat: Work around AIX 7.1 bug.
17427         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17428         whether linkat handles trailing slash correctly. If not, replace linkat
17429         and define LINKAT_TRAILING_SLASH_BUG.
17430         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17431         check whether (fd1,file1) points to a directory if file1 or file2 ends
17432         in a slash. Code taken from lib/link.c.
17433         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17434         Reported by Rainer Tammer.
17435
17436 2010-07-31  Bruno Haible  <bruno@clisp.org>
17437
17438         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17439         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17440         This disables an xlc optimization that was causing wrong test results.
17441         Reported by Rainer Tammer.
17442
17443 2010-07-31  Bruno Haible  <bruno@clisp.org>
17444
17445         iconv: Work around AIX 6.1..7.1 bug.
17446         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17447         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17448         cross-compiling, guess no on all versions of AIX.
17449         Reported by Rainer Tammer.
17450
17451 2010-07-31  Bruno Haible  <bruno@clisp.org>
17452
17453         readlink: Relax test a bit.
17454         * tests/test-readlink.h (test_readlink): Allow different errno value
17455         when readlink is called with a file name that ends in / and refers to
17456         a file.
17457         Suggested by Eric Blake.
17458         Reported by Rainer Tammer.
17459
17460 2010-07-31  Bruno Haible  <bruno@clisp.org>
17461
17462         copysign: Does not require -lm on glibc systems.
17463         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17464         gl_COMMON_DOUBLE_MATHFUNC.
17465         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17466
17467 2010-07-31  Bruno Haible  <bruno@clisp.org>
17468
17469         duplocale: Work around AIX 7.1 bug.
17470         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17471         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17472         * lib/duplocale.c (rpl_duplocale): Update comment.
17473         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17474         Reported by Rainer Tammer.
17475
17476 2010-07-30  Bruno Haible  <bruno@clisp.org>
17477
17478         dirfd: Avoid link error on AIX 7.1.
17479         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17480         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17481         exist, set REPLACE_DIRFD.
17482         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17483         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17484         * doc/posix-functions/dirfd.texi: Update.
17485         Reported by Rainer Tammer.
17486
17487 2010-07-30  Eric Blake  <eblake@redhat.com>
17488
17489         strtod: next round of AIX fixes
17490         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17491         exponent.
17492         * tests/test-strtod.c (main): Enhance tests.
17493         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17494         Reported by Rainer Tammer.
17495
17496         futimens: fix configure check
17497         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17498         Reported by Bruno Haible.
17499
17500 2010-07-30  Bruno Haible  <bruno@clisp.org>
17501
17502         getline: Update regarding AIX.
17503         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17504         Reported by Rainer Tammer.
17505
17506 2010-07-30  Bruno Haible  <bruno@clisp.org>
17507
17508         wcwidth: Drop replacement on AIX 7.
17509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17510         AIX 7.
17511         Reported by Rainer Tammer.
17512
17513 2010-07-30  Bruno Haible  <bruno@clisp.org>
17514
17515         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17516         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17517         a 'char *'.
17518         Reported by Rainer Tammer.
17519
17520 2010-07-30  Bruno Haible  <bruno@clisp.org>
17521
17522         unlink: Update regarding AIX.
17523         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17524         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17525         Reported by Rainer Tammer.
17526
17527 2010-07-30  Bruno Haible  <bruno@clisp.org>
17528
17529         symlink: Update regarding AIX.
17530         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17531         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17532         Reported by Rainer Tammer.
17533
17534 2010-07-30  Bruno Haible  <bruno@clisp.org>
17535
17536         strndup: Update regarding AIX.
17537         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17538         AIX 7.
17539         Reported by Rainer Tammer.
17540
17541 2010-07-30  Bruno Haible  <bruno@clisp.org>
17542
17543         stat: Update regarding AIX.
17544         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17545         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17546         Reported by Rainer Tammer.
17547
17548 2010-07-30  Bruno Haible  <bruno@clisp.org>
17549
17550         truncl: Fix autoconf test.
17551         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17552         whether truncl works.
17553         Reported by Rainer Tammer.
17554
17555 2010-07-30  Bruno Haible  <bruno@clisp.org>
17556
17557         round: Update regarding AIX.
17558         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17559         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17560         Reported by Rainer Tammer.
17561
17562 2010-07-30  Bruno Haible  <bruno@clisp.org>
17563
17564         rename: Update regarding AIX.
17565         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17566         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17567         Reported by Rainer Tammer.
17568
17569 2010-07-30  Bruno Haible  <bruno@clisp.org>
17570
17571         printf.m4: Update regarding AIX.
17572         * m4/printf.m4: Update comments regarding AIX.
17573         Reported by Rainer Tammer.
17574
17575 2010-07-30  Bruno Haible  <bruno@clisp.org>
17576
17577         iconv: Update regarding AIX.
17578         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17579         AIX 7.
17580         Reported by Rainer Tammer.
17581
17582 2010-07-30  Bruno Haible  <bruno@clisp.org>
17583
17584         getopt: Update regarding AIX.
17585         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17586         no on AIX.
17587         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17588         Reported by Rainer Tammer.
17589
17590 2010-07-30  Bruno Haible  <bruno@clisp.org>
17591
17592         ldexpl; Update regarding AIX.
17593         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17594         on AIX 7.
17595         Reported by Rainer Tammer.
17596
17597 2010-07-30  Bruno Haible  <bruno@clisp.org>
17598
17599         frexpl: Update regarding AIX.
17600         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17601         on AIX 7.
17602         Reported by Rainer Tammer.
17603
17604 2010-07-30  Bruno Haible  <bruno@clisp.org>
17605
17606         open, fopen: Update regarding AIX.
17607         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17608         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17609         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17610         * doc/posix-functions/fopen.texi: Likewise.
17611         Reported by Rainer Tammer.
17612
17613 2010-07-30  Bruno Haible  <bruno@clisp.org>
17614
17615         chown: Update doc regarding AIX.
17616         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17617         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17618         Reported by Rainer Tammer.
17619
17620 2010-07-30  Eric Blake  <eblake@redhat.com>
17621
17622         strtod: fix bug in replacement function on AIX
17623         * lib/strtod.c (strtod): Special case broken "0x" parse in
17624         underlying strtod.
17625         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17626         * doc/posix-functions/strtod.texi (strtod): Likewise.
17627         Reported by Rainer Tammer.
17628
17629 2010-07-30  Bruno Haible  <bruno@clisp.org>
17630
17631         mbrlen: Fix cross-compilation guess for AIX.
17632         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17633         guess. Leftover from 2008-12-22.
17634
17635 2010-07-30  Bruno Haible  <bruno@clisp.org>
17636
17637         mbrtowc: Fix cross-compilation guess for AIX.
17638         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17639         guess. Leftover from 2008-12-21.
17640
17641 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17642
17643         init.sh: work around trap limitation of some shells
17644         * tests/init.sh (setup_): Move exit trap outside of shell function.
17645
17646 2010-07-29  Eric Blake  <eblake@redhat.com>
17647
17648         strtod: aid debugging
17649         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17650         understanding why strtod is rejected.
17651
17652 2010-07-28  Bruno Haible  <bruno@clisp.org>
17653
17654         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17655         * lib/unistr/u8-chr.c: Include <string.h>.
17656         * tests/unistr/test-u8-chr.c: Likewise.
17657         * tests/unistr/test-u16-chr.c: Likewise.
17658         * tests/unistr/test-u32-chr.c: Likewise.
17659         * tests/unistr/test-u8-strchr.c: Likewise.
17660         * tests/unistr/test-u16-strchr.c: Likewise.
17661         * tests/unistr/test-u32-strchr.c: Likewise.
17662         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17663         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17664         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17665         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17666
17667 2010-07-28  Bruno Haible  <bruno@clisp.org>
17668
17669         Use spaces for indentation, not tabs.
17670         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17671
17672 2010-07-27  Bruno Haible  <bruno@clisp.org>
17673
17674         mbspcasecmp: Fix function specification.
17675         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17676         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17677         Reported by Eric Blake <eblake@redhat.com>.
17678
17679 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17680
17681         timespec: use cast and not conditional, as truncation isn't possible
17682         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17683         instead of a conditional.  Comment about the situation in more detail.
17684         This undoes most of the 2009-10-29 patch.
17685
17686 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17687
17688         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17689         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17690         * lib/unistr/u8-strchr.c: Likewise.
17691         * modules/unistr/u8-chr: Depend on memchr.
17692
17693         unistr/u*-strchr: add tests
17694         * modules/unistr/u8-strchr-tests: New file.
17695         * modules/unistr/u16-strchr-tests: New file.
17696         * modules/unistr/u32-strchr-tests: New file.
17697         * tests/unistr/test-strchr.h: New file.
17698         * tests/unistr/test-u8-strchr.c: New file.
17699         * tests/unistr/test-u16-strchr.c: New file.
17700         * tests/unistr/test-u32-strchr.c: New file.
17701
17702         unistr/u*-chr: test multibyte sequences more
17703         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17704         test vector.
17705         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17706         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17707         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17708
17709         unistr/u*-chr: test multibyte sequences
17710         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17711
17712         unistr/u*-chr: prepare for multibyte tests
17713         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17714         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17715         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17716         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17717         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17718         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17719
17720 2010-07-18  Bruno Haible  <bruno@clisp.org>
17721
17722         unistr/u8-strchr: Optimize non-ASCII argument case.
17723         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17724         because the first byte often matches anyway.
17725         Reported by Pádraig Brady <P@draigbrady.com>.
17726
17727 2010-07-15  Karl Berry  <karl@gnu.org>
17728
17729         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17730
17731 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17732
17733         getcwd: on Solaris, work better if ancestors are inaccessible
17734         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17735         buffer and size, try again with a large buffer.  This works better
17736         on Solaris, since its getcwd succeeds even if the path to the root
17737         is inaccessible, and this is helpful in common cases such as .zfs
17738         hidden directories.  Problem reported by J Chapman Flack in
17739         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17740         Use system getcwd if it's declared, not merely if it's partly
17741         working; use the partly-working test only to avoid needless effort
17742         if the system getcwd fails.
17743         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17744         comment that was already obsolete and is now even more obsolete.
17745         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17746         now might call strdup.
17747
17748 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17749
17750         pthread: Add enough so that coreutils/src/sort.c compiles.
17751         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17752         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17753         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17754         Include <sys/types.h>, in case it defines pthread_t.
17755         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17756         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17757         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17758         (pthread_rwlockattr_t, pthread_spinlock_t):
17759         New typedefs, if HAVE_PTHREAD_T is not defined.
17760         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17761         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17762         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17763         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17764         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17765         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17766         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17767         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17768         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17769         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17770         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17771         New macros.
17772         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17773         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17774         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17775         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17776         (pthread_spin_unlock): New dummy functions.
17777         (pthread_create): Return EAGAIN; don't set errno.
17778         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17779         require AC_C_INLINE.
17780         * modules/pthread (Depends-on): Add sched, time.
17781         (pthread.h): Use AM_V_GEN.
17782
17783 2010-07-13  Bruno Haible  <bruno@clisp.org>
17784
17785         striconveh: Don't malloc memory if the result buffer is sufficient.
17786         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17787         buffer if its size is sufficient.
17788         Reported by Ludovic Courtès <ludo@gnu.org>.
17789
17790 2010-07-13  Bruno Haible  <bruno@clisp.org>
17791
17792         strtod: Add safety check.
17793         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17794
17795 2010-07-12  Bruno Haible  <bruno@clisp.org>
17796
17797         Unify tests that set gl_cv_func_ldexpl_no_libm.
17798         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17799         gl_FUNC_LDEXPL.
17800         (gl_FUNC_LDEXPL): Invoke it.
17801         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17802
17803 2010-07-12  Bruno Haible  <bruno@clisp.org>
17804
17805         Unify tests that set gl_cv_func_ldexp_no_libm.
17806         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17807         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17808         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17809         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17810         * modules/strtod (Files): Add m4/ldexp.m4.
17811
17812 2010-07-12  Bruno Haible  <bruno@clisp.org>
17813
17814         Unify tests that set gl_cv_func_frexpl_no_libm.
17815         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17816         gl_FUNC_FREXPL_NO_LIBM.
17817         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17818         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17819
17820 2010-07-12  Bruno Haible  <bruno@clisp.org>
17821
17822         Unify tests that set gl_cv_func_frexp_no_libm.
17823         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17824         gl_FUNC_FREXP_NO_LIBM.
17825         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17826         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17827
17828 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17829
17830         memcoll: clarify sizes versus lengths, document better, and tweak perf
17831         * lib/memcoll.c (strcoll_loop, memcoll0):
17832         Improve quality of descriptive comments.  Name variables
17833         consistently as to whether they are lengths (which do not include
17834         terminating null) versus sizes (which do).
17835         * lib/xmemcoll.c (xmemcoll0): Likewise.
17836         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17837         returned when s1size == 0; this is easier to compile and saves
17838         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17839
17840 2010-07-12  Bruno Haible  <bruno@clisp.org>
17841
17842         Tests for module '_Exit'.
17843         * modules/_Exit-tests: New file.
17844         * tests/test-_Exit.sh: New file.
17845         * tests/test-_Exit.c: New file.
17846
17847         New module '_Exit'.
17848         * lib/stdlib.in.h (__attribute__): New macro.
17849         (_Exit): New declaration.
17850         * lib/_Exit.c: New file.
17851         * m4/_Exit.m4: New file.
17852         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17853         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17854         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17855         * modules/_Exit: New file.
17856         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17857         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17858
17859 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17860
17861         strtod: make it more-accurate typically, and don't require libm
17862         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17863         Include limits.h.  Don't include string.h.
17864         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17865         (locale_isspace): New function, so that no casts are needed to
17866         check whether *s is a space.
17867         (ldexp): Provide an unused dummy if not available.
17868         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17869         (strtod): Use them.  This implementation prefers to use the
17870         underlying strtod if available, falling back on our own code
17871         only to fix known bugs.  This is more likely to produce an
17872         accurate result.  Also, it avoids the use of libm functions.
17873         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17874         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17875         was absent, but it caused a test failure with coreutils.
17876         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17877         with libm.
17878         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17879         * modules/strtod-tests (Makefile.am): Likewise.
17880
17881 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17882             Bruno Haible  <bruno@clisp.org>
17883
17884         unistr/u8-strchr: Optimize ASCII argument case.
17885         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17886
17887 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17888
17889         (x)memcoll: minor tweaks
17890         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17891         is after the type that it qualifies.
17892         (memcoll0): Likewise.
17893         * lib/memcoll.h (memcoll0): Likewise.
17894         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17895         * lib/xmemcoll.h (xmemcoll0): Likewise.
17896         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17897         differs from memcoll in that the NUL byte is part of the argument.
17898         Omit the abort-checks, as performance is a real issue here.  Plus,
17899         the checks were wrong anyway (an off-by-one error).  Omit local
17900         variable 'diff', as it's a bit clearer that way.
17901         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17902         no longer needed.
17903
17904 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17905
17906         (x)memcoll: speedup when input is known to be NUL delimited
17907         * lib/memcoll.c: Include stdlib.
17908         (memcoll0): New function.
17909         (strcoll_loop): New function, refactored for use in both memcoll
17910         and memcoll0.
17911         * lib/memcoll.h (memcoll0): Add prototype.
17912         * lib/xmemcoll.c (xmemcoll0): New function.
17913         (collate_error): New function, refactored for use in both xmemcoll
17914         and xmemcoll0.
17915         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17916         * m4/memcoll.m4: add inline invocation.
17917
17918 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17919
17920         * build-aux/bootstrap: Remove any local translations
17921         from the translation project synchronization directory,
17922         so that local only translations are not distributed.
17923
17924 2010-07-04  Bruno Haible  <bruno@clisp.org>
17925
17926         fsusage: Clarify which code applies to which platforms.
17927         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17928         platform.
17929         * lib/fsusage.c (get_fs_usage): Likewise.
17930
17931 2010-07-04  Bruno Haible  <bruno@clisp.org>
17932
17933         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17934         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17935         Reported by Martin Lambers <marlam@marlam.de>.
17936
17937 2010-07-04  Jim Meyering  <meyering@redhat.com>
17938
17939         hash: once again explicitly disallow insertion of NULL
17940         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17941         inserting a NULL pointer cannot work with these functions.
17942         Add a comment with details.
17943         This reverts part of the 2010-07-01 commit, 5bef1a35
17944         "hash: extend module to deal with non-pointer keys".
17945
17946 2010-07-01  Bruno Haible  <bruno@clisp.org>
17947
17948         stdbool: Update doc.
17949         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17950         Info from Christian Weisgerber <naddy@mips.inka.de>.
17951
17952 2010-07-01  Jim Meyering  <meyering@redhat.com>
17953
17954         hash: extend module to deal with non-pointer keys
17955         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17956         but that allows insertion of non-pointer entries.
17957         Do not disallow an ENTRY value of NULL.
17958         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17959         * lib/hash.h (hash_insert0): Declare.
17960
17961 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17962
17963         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17964         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17965         not present (i.e. with autoconf 2.59 and when using gettextize, not
17966         gnulib), require AC_GNU_SOURCE instead.
17967
17968 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17969
17970         idpriv-drop: Fix tests.
17971         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17972         not to the test-idpriv-droptemp program.
17973
17974 2010-06-29  Bruno Haible  <bruno@clisp.org>
17975
17976         string: Fix syntax error with g++ 2.96.
17977         * lib/string.in.h (__pure__): Remove definition.
17978         (_GL_ATTRIBUTE_PURE): New macro.
17979         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17980         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17981         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17982
17983 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17984
17985         unitypes: Fix bug introduced on 2010-05-18.
17986         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17987
17988 2010-06-22  Eric Blake  <eblake@redhat.com>
17989
17990         memmem: slight optimization
17991         * lib/str-two-way.h (critical_factorization): Update comments.
17992         Reduce work during factorization phase.
17993         Reported by Carlos Bueno <carlos@bueno.org>.
17994
17995 2010-06-21  Bruno Haible  <bruno@clisp.org>
17996
17997         Fix HAVE_CALLOC_POSIX misnomer.
17998         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17999         !HAVE_CALLOC_POSIX.
18000         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18001         HAVE_CALLOC_POSIX.
18002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18003         instead of HAVE_CALLOC_POSIX.
18004         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18005         HAVE_CALLOC_POSIX.
18006
18007         Use modern idiom for calloc() replacement.
18008         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18009         AC_FUNC_CALLOC.
18010         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18011         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18012         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18013         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18014         (gl_REPLACE_CALLOC): New macro.
18015
18016 2010-06-21  Bruno Haible  <bruno@clisp.org>
18017
18018         Fix HAVE_REALLOC_POSIX misnomer.
18019         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18020         !HAVE_REALLOC_POSIX.
18021         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18022         HAVE_REALLOC_POSIX.
18023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18024         instead of HAVE_REALLOC_POSIX.
18025         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18026         HAVE_REALLOC_POSIX.
18027
18028         Use modern idiom for realloc() replacement.
18029         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18030         AC_FUNC_REALLOC.
18031         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18032         Autoconf's AC_FUNC_REALLOC.
18033         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18034         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18035         (gl_REPLACE_REALLOC): New macro.
18036         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18037
18038 2010-06-21  Bruno Haible  <bruno@clisp.org>
18039
18040         Fix HAVE_MALLOC_POSIX misnomer.
18041         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18042         !HAVE_MALLOC_POSIX.
18043         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18044         HAVE_MALLOC_POSIX.
18045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18046         instead of HAVE_MALLOC_POSIX.
18047         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18048         HAVE_MALLOC_POSIX.
18049
18050         Use modern idiom for malloc() replacement.
18051         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18052         AC_FUNC_MALLOC.
18053         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18054         Autoconf's AC_FUNC_MALLOC.
18055         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18056         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18057         (gl_REPLACE_MALLOC): New macro.
18058         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18059
18060 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18061
18062         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18063         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18064         This macro takes 3 arguments, not 4.
18065
18066 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18067
18068         ipv6: fix detection under mingw
18069         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18070         in6_addr.
18071
18072 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18073
18074         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18075         that strtod() works when cross-compiling to a glibc version known
18076         to work.
18077
18078 2010-06-15  Bruno Haible  <bruno@clisp.org>
18079
18080         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18081
18082 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18083
18084         select: Correct timeout.
18085         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18086
18087 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18088
18089         git-version-gen: init shell var to avoid env var influence
18090         * build-aux/git-version-gen (v): Init shell var to empty.
18091
18092 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18093
18094         priv-set: Don't assume that priv.h exists merely because getppriv does.
18095         See Jan Andersen's bug report about AIX 5L in
18096         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18097         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18098         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18099         * lib/priv-set.h: Likewise.
18100         * tests/test-priv-set.c: Likewise.
18101
18102 2010-06-13  Bruno Haible  <bruno@clisp.org>
18103
18104         relocatable: Make it easier to test whether to install wrappers.
18105         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18106         RELOCATABLE_VIA_WRAPPER.
18107
18108 2010-06-13  Bruno Haible  <bruno@clisp.org>
18109
18110         gnulib-tool: Display specified modules and dependencies differently.
18111         * gnulib-tool (func_show_module_list): New function.
18112         (func_import, func_create_testdir): Invoke it.
18113         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18114
18115 2010-06-13  Bruno Haible  <bruno@clisp.org>
18116
18117         gnulib-tool: Align code of func_import and func_create_testdir.
18118         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18119         specified_modules.
18120
18121 2010-06-12  Jim Meyering  <meyering@redhat.com>
18122
18123         test-inttostr: avoid spurious failure on Solaris 9
18124         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18125         to accept "%ju".  Reported by Bruno Haible.
18126
18127 2010-06-11  Jim Meyering  <meyering@redhat.com>
18128
18129         test-sys_socket: mark variables as used more readably
18130         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18131         as "used" explicitly via (void) statement casts.  This is more
18132         readable than using them in an artificial return expression.
18133         Suggestion from Bruno Haible.
18134
18135 2010-06-11  Bruno Haible  <bruno@clisp.org>
18136
18137         Avoid some more warnings from "gcc -Wwrite-strings".
18138         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18139         to 'const char *'.
18140         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18141         * tests/test-c-strcasestr.c (main): Likewise.
18142         * tests/test-mbscasestr1.c (main): Likewise.
18143         * tests/test-mbscasestr2.c (main): Likewise.
18144         * tests/test-memmem.c (main): Likewise.
18145         * tests/test-strstr.c (main): Likewise.
18146         * tests/test-strcasestr.c (main): Likewise.
18147
18148 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18149
18150         init.sh: change framework_failure_ to fail with status 99, not 1
18151         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18152         automake's parallel-tests rule that this is an unexpected failure,
18153         even if the test is listed in XFAIL_TESTS.
18154
18155 2010-06-11  Jim Meyering  <meyering@redhat.com>
18156
18157         test-inttostr: avoid warnings about 4-6KB literal strings
18158         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18159         Include "macros.h", for its definition of ASSERT.
18160         (CK): s/assert/ASSERT/
18161         * modules/inttostr-tests (Files): Add macros.h.
18162
18163         init.sh: don't use $ME_ or skip_ before they are defined
18164         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18165         their first uses.  Also hoist their companions: warn_, fail_,
18166         framework_failure_, $stderr_fileno.  Prompted by a patch from
18167         Stefano Lattarini.
18168
18169         test-sys_socket: avoid set-but-not-used warnings from gcc
18170         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18171         avoid warning about set-but-not-used variables.
18172
18173         test-xvasprintf: avoid 'const' discard warnings
18174         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18175         "const" when assigning from literal strings.
18176         (test_xasprintf): Add "void" in function argument list to placate
18177         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18178
18179         tests: avoid compilation warnings in argmatch and exclude tests...
18180         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18181         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18182         Since it always exits, declare with the "noreturn" attribute.
18183         * tests/test-argmatch.c: Likewise.
18184
18185         tests: avoid 'const' discard warnings in mbsstr tests
18186         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18187         * tests/test-mbsstr2.c (main): Likewise.
18188
18189         test-verify: avoid warning from gcc's -Wmissing-declarations
18190         * tests/test-verify.c (function): Declare to be static.
18191
18192         test-inttostr.c: include <string.h> for use of strcmp
18193         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18194
18195         test-linkat: avoid failed assertion on "other" architectures
18196         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18197         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18198         sparc: https://bugs.launchpad.net/bugs/591968
18199
18200 2010-06-11  Jim Meyering  <meyering@redhat.com>
18201
18202         printf.m4: avoid autoconf's "Expanded Before Required" warning
18203         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18204         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18205         autoconf warning.
18206
18207 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18208
18209         Replacement header templates are now named with ".in", not "_".
18210         * doc/gnulib-intro.texi: Correct.
18211
18212 2010-06-10  Jim Meyering  <meyering@redhat.com>
18213
18214         inttostr-tests: depend on snprintf, not snprintf-posix
18215         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18216         snprintf-posix, to avoid this aclocal failure:
18217           missing file gnulib-tests/vasnprintf.c
18218           configure.ac:45: error: expected source file, required through \
18219           AC_LIBSOURCES, not found
18220
18221 2010-06-10  Jim Meyering  <meyering@redhat.com>
18222
18223         inttostr: add a new function, inttostr, and tests
18224         The namesake function was not available.  The existence of the
18225         template file, inttostr.c makes its addition nontrivial.
18226         * lib/anytostr.c: Rename from inttostr.c.
18227         (anytostr): Rename from inttostr.
18228         * lib/inttostr.c: New file.
18229         * modules/inttostr (Files): Add anytostr.c.
18230         (Makefile.am): Set lib_SOURCES instead of ...
18231         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18232         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18233         * lib/offtostr.c: Likewise.
18234         * lib/uinttostr.c: Likewise.
18235         * lib/umaxtostr.c: Likewise.
18236         * modules/inttostr-tests: New file.
18237         * tests/test-inttostr.c: New file.  Test these functions.
18238
18239 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18240             Bruno Haible  <bruno@clisp.org>
18241
18242         Add "Extending Gnulib" chapter to manual.
18243         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18244         chapter.
18245         (Extending Gnulib): New chapter.
18246         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18247         chapter.
18248
18249 2010-06-09  Bruno Haible  <bruno@clisp.org>
18250
18251         Avoid relocwrapper link errors due to gnulib replacement functions.
18252         * lib/areadlink.c: Use the system's malloc, realloc functions.
18253         (areadlink): Set errno to ENOMEM explicitly.
18254         * modules/areadlink (Depends-on): Remove malloc-posix.
18255         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18256
18257 2010-06-09  Bruno Haible  <bruno@clisp.org>
18258
18259         Avoid relocwrapper link errors due to gnulib replacement functions.
18260         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18261         * lib/malloca.c: Likewise.
18262         * lib/relocatable.c: Likewise.
18263         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18264         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18265         * lib/setenv.c: Use the system's malloc, realloc functions.
18266         * lib/strerror.c: Use the system's sprintf function.
18267         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18268
18269 2010-06-04  Bruno Haible  <bruno@clisp.org>
18270
18271         Prefer documented low-level autoconf macro names.
18272         * m4/lib-link.m4: Use m4_translit instead of translit.
18273         * m4/environ.m4: Likewise.
18274         * m4/mathfunc.m4: Likewise.
18275         * m4/onceonly.m4: Likewise.
18276         * m4/stdint.m4: Likewise.
18277         Suggested by Eric Blake.
18278
18279 2010-06-04  Martin Lambers  <marlam@marlam.de>
18280             Bruno Haible  <bruno@clisp.org>
18281
18282         havelib: Allow library names with '+' characters.
18283         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18284         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18285
18286 2010-06-09  Bruno Haible  <bruno@clisp.org>
18287
18288         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18289         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18290         realloc failed.
18291
18292 2010-06-08  Peter Simons  <simons@cryp.to>
18293
18294         maint.mk: make the news-check rule more configurable
18295         * top/maint.mk (news-check-lines-spec): New variable.
18296         (news-check): Use "sed -n 1,10p" in place of "head".
18297
18298 2010-06-07  Jim Meyering  <meyering@redhat.com>
18299
18300         do-release-commit-and-tag: fix typo in --help
18301         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18302
18303         regex: avoid new dead-code warning with gcc-4.6.0
18304         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18305         if-block containing a while-loop.  It's been unused for at least
18306         5 years.
18307
18308 2010-06-05  Bruno Haible  <bruno@clisp.org>
18309
18310         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18311         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18312
18313 2010-06-04  Bruno Haible  <bruno@clisp.org>
18314
18315         Update to GNU gettext 0.18.1.
18316         * modules/gettext (configure.ac): Require gettext infrastructure from
18317         version 0.18.1.
18318
18319 2010-06-03  Bruno Haible  <bruno@clisp.org>
18320
18321         Don't use AC_LIBOBJ with file names in subdirectories.
18322         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18323         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18324         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18325         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18326         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18327         gl_LIBUNISTRING_LIBSOURCE.
18328         (Makefile.am): Augment lib_SOURCES here, conditionally.
18329         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18330
18331 2010-06-03  Bruno Haible  <bruno@clisp.org>
18332
18333         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18334         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18335         expansion does not end with a newline.
18336         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18337         unnecessary newline.
18338
18339 2010-06-03  Bruno Haible  <bruno@clisp.org>
18340
18341         Reduce dependencies.
18342         * tests/test-quotearg.h: New file, extracted from
18343         tests/test-quotearg.c.
18344         * tests/test-quotearg-simple.c: New file, extracted from
18345         tests/test-quotearg.c.
18346         * tests/test-quotearg.c: Don't include <ctype.h>.
18347         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18348         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18349         use_quote_double_quotes, use_quotearg_colon): Moved to
18350         tests/test-quotearg.h.
18351         (results_g, flag_results, custom_quotes, custom_results): Moved
18352         to tests/test-quotearg-simple.c.
18353         (main): Moved the part that does not depend on gettext to
18354         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18355         performed.
18356         * modules/quotearg-simple: New file.
18357         * modules/quotearg-simple-tests: New file.
18358         * modules/quotearg (Depends-on): Add quotearg-simple.
18359         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18360         (Files): Add tests/test-quotearg.h.
18361         Reported by Paolo Bonzini.
18362
18363 2010-06-03  Bruno Haible  <bruno@clisp.org>
18364
18365         Reduce dependencies.
18366         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18367
18368 2010-06-03  Bruno Haible  <bruno@clisp.org>
18369
18370         time: Undefine more broken macros.
18371         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18372         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18373         Reported by Eric Blake.
18374
18375 2010-06-03  Bruno Haible  <bruno@clisp.org>
18376
18377         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18378         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18379         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18380         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18381         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18382         Reported by Ludovic Courtès <ludo@gnu.org>.
18383
18384 2010-06-02  Eric Blake  <eblake@redhat.com>
18385
18386         time: work with mingw + pthreads-win32 library
18387         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18388         if timespec is defined only in pthread.h.
18389         * modules/time (Makefile.am): Substitute it.
18390         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18391         <pthread.h>, when needed.
18392         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18393         from the library.
18394
18395 2010-05-31  Bruno Haible  <bruno@clisp.org>
18396
18397         Avoid expanding two macros in the wrong order.
18398         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18399         gl_LIBUNISTRING if it is defined.
18400         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18401         autoconf >= 2.64.
18402         Reported by Ludovic Courtès <ludo@gnu.org>.
18403
18404 2010-05-27  Jim Meyering  <meyering@redhat.com>
18405
18406         maint.mk: also prohibit "#undef" of always-defined symbols
18407         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18408         Allow more than one space before the symbol name.
18409         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18410         the regexp uses alternation.
18411
18412 2010-05-26  Eric Blake  <eblake@redhat.com>
18413
18414         maint.mk: avoid echo -e
18415         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18416         Convert all uses of echo -* to printf.
18417         Reported by Matthias Bolte.
18418
18419 2010-05-25  Bruno Haible  <bruno@clisp.org>
18420
18421         Update to GNU gettext 0.18, part 2.
18422         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18423         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18424
18425 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18426
18427         Add missing include in test-pwrite.c.
18428         * tests/test-pwrite.c: Include string.h, for strcmp.
18429
18430 2010-05-24  Bruno Haible  <bruno@clisp.org>
18431
18432         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18433
18434 2010-05-24  Bruno Haible  <bruno@clisp.org>
18435
18436         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18437         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18438         iconveh_error argument.
18439         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18440         U_STRCONV_TO_LOCALE.
18441         * lib/unistr/u16-strcoll.c: Likewise.
18442         * lib/unistr/u32-strcoll.c: Likewise.
18443         * modules/unistr/u8-strcoll (Depends-on): Add
18444         uniconv/u8-strconv-to-enc, localcharset. Remove
18445         uniconv/u8-strconv-to-locale.
18446         (configure.ac): Bump version number.
18447         * modules/unistr/u16-strcoll (Depends-on): Add
18448         uniconv/u16-strconv-to-enc, localcharset. Remove
18449         uniconv/u16-strconv-to-locale.
18450         (configure.ac): Bump version number.
18451         * modules/unistr/u32-strcoll (Depends-on): Add
18452         uniconv/u32-strconv-to-enc, localcharset. Remove
18453         uniconv/u32-strconv-to-locale.
18454         (configure.ac): Bump version number.
18455
18456 2010-05-24  Bruno Haible  <bruno@clisp.org>
18457
18458         Avoid a test failure on NetBSD 5.0.
18459         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18460         an iconv() bug.
18461
18462 2010-05-24  Bruno Haible  <bruno@clisp.org>
18463
18464         Adjust #include directive style.
18465         * modules/regex (Includes): Recommend to write <regex.h>.
18466
18467 2010-05-24  Bruno Haible  <bruno@clisp.org>
18468
18469         regex: Don't require alloca.
18470         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18471         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18472         only inside if (0).
18473
18474 2010-05-23  Jim Meyering  <meyering@redhat.com>
18475
18476         test-renameat.c: include <sys/stat.h>
18477         * tests/test-renameat.c: Include <sys/stat.h>; required for
18478         definition of S_IS* macros.
18479
18480 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18481
18482         Update maintainer documentation for 'relocatable-prog' module.
18483         * doc/relocatable-maint.texi: Update.
18484         Comments by Bruno Haible.
18485
18486 2010-05-23  Bruno Haible  <bruno@clisp.org>
18487
18488         git-merge-changelog: Enable --split-merged-entry by default.
18489         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18490         (usage): Don't mention this option any more.
18491         Reported by Ralf Wildenhues.
18492
18493 2010-05-23  Jim Meyering  <meyering@redhat.com>
18494
18495         test-pwrite: do not leave behind a test file named "out"
18496         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18497         The trivial-looking use of init.sh is really necessary.
18498         It ensures that the temporary file, "out", is created in
18499         a temporary directory, and removed upon termination.
18500         * tests/test-pwrite.sh: Re-add file.
18501         * modules/pwrite-tests: Reference it.
18502
18503 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18504
18505         Fix output redirection buglet in init.sh.
18506         * tests/init.sh: Fix redirection of stderr.
18507
18508 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18509
18510         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18511
18512 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18513
18514         * modules/valgrind-tests: New file.
18515         * m4/valgrind-tests.m4: New file.
18516         * doc/valgrind-tests.texi: New file.
18517         * doc/gnulib.texi (Running self-tests under valgrind): New
18518         section.
18519
18520 2010-05-19  Bruno Haible  <bruno@clisp.org>
18521
18522         Clean up dead code in recent commit.
18523         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18524         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18525         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18526         Suggested by Paolo Bonzini.
18527
18528 2010-05-19  Bruno Haible  <bruno@clisp.org>
18529
18530         Avoid valgrind error reports from libunistring.
18531         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18532         * modules/libunistring (Files): Add it.
18533         * modules/libunistring-optional (Files): Likewise.
18534
18535 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18536             Bruno Haible  <bruno@clisp.org>
18537
18538         New module 'libunistring-optional'.
18539         * modules/libunistring-optional: New file.
18540         * m4/libunistring-base.m4: New file.
18541         * m4/libunistring-optional.m4: New file.
18542         * lib/unicase.in.h: Renamed from lib/unicase.h.
18543         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18544         * lib/unictype.in.h: Renamed from lib/unictype.h.
18545         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18546         * lib/uniname.in.h: Renamed from lib/uniname.h.
18547         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18548         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18549         * lib/unistr.in.h: Renamed from lib/unistr.h.
18550         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18551         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18552         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18553         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18554         gl_LIBUNISTRING. If the library was found, determine the installed
18555         version and set LIBUNISTRING_VERSION.
18556         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18557         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18558         handle a configuration option --with-included-libunistring.
18559         * modules/libunistring (Files): Add m4/absolute-header.m4.
18560         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18561         Add m4/libunistring-base.m4.
18562         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18563         (Makefile.am): Build unicase.h from unicase.in.h.
18564         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18565         Add m4/libunistring-base.m4.
18566         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18567         (Makefile.am): Build uniconv.h from uniconv.in.h.
18568         * modules/unictype/base (Files): Use unictype.in.h instead of
18569         unictype.h. Add m4/libunistring-base.m4.
18570         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18571         (Makefile.am): Build unictype.h from unictype.in.h.
18572         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18573         Add m4/libunistring-base.m4.
18574         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18575         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18576         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18577         Add m4/libunistring-base.m4.
18578         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18579         (Makefile.am): Build uniname.h from uniname.in.h.
18580         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18581         Add m4/libunistring-base.m4.
18582         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18583         (Makefile.am): Build uninorm.h from uninorm.in.h.
18584         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18585         unistdio.h. Add m4/libunistring-base.m4.
18586         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18587         (Makefile.am): Build unistdio.h from unistdio.in.h.
18588         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18589         Add m4/libunistring-base.m4.
18590         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18591         (Makefile.am): Build unistr.h from unistr.in.h.
18592         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18593         Add m4/libunistring-base.m4.
18594         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18595         (Makefile.am): Build unitypes.h from unitypes.in.h.
18596         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18597         Add m4/libunistring-base.m4.
18598         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18599         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18600         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18601         uniwidth.h. Add m4/libunistring-base.m4.
18602         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18603         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18604         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18605         instead of augmenting lib_SOURCES.
18606         * modules/unicase/empty-suffix-context: Likewise.
18607         * modules/unicase/locale-language: Likewise.
18608         * modules/unicase/tolower: Likewise.
18609         * modules/unicase/totitle: Likewise.
18610         * modules/unicase/toupper: Likewise.
18611         * modules/unicase/u8-casecmp: Likewise.
18612         * modules/unicase/u8-casecoll: Likewise.
18613         * modules/unicase/u8-casefold: Likewise.
18614         * modules/unicase/u8-casexfrm: Likewise.
18615         * modules/unicase/u8-ct-casefold: Likewise.
18616         * modules/unicase/u8-ct-tolower: Likewise.
18617         * modules/unicase/u8-ct-totitle: Likewise.
18618         * modules/unicase/u8-ct-toupper: Likewise.
18619         * modules/unicase/u8-is-cased: Likewise.
18620         * modules/unicase/u8-is-casefolded: Likewise.
18621         * modules/unicase/u8-is-lowercase: Likewise.
18622         * modules/unicase/u8-is-titlecase: Likewise.
18623         * modules/unicase/u8-is-uppercase: Likewise.
18624         * modules/unicase/u8-prefix-context: Likewise.
18625         * modules/unicase/u8-suffix-context: Likewise.
18626         * modules/unicase/u8-tolower: Likewise.
18627         * modules/unicase/u8-totitle: Likewise.
18628         * modules/unicase/u8-toupper: Likewise.
18629         * modules/unicase/u16-casecmp: Likewise.
18630         * modules/unicase/u16-casecoll: Likewise.
18631         * modules/unicase/u16-casefold: Likewise.
18632         * modules/unicase/u16-casexfrm: Likewise.
18633         * modules/unicase/u16-ct-casefold: Likewise.
18634         * modules/unicase/u16-ct-tolower: Likewise.
18635         * modules/unicase/u16-ct-totitle: Likewise.
18636         * modules/unicase/u16-ct-toupper: Likewise.
18637         * modules/unicase/u16-is-cased: Likewise.
18638         * modules/unicase/u16-is-casefolded: Likewise.
18639         * modules/unicase/u16-is-lowercase: Likewise.
18640         * modules/unicase/u16-is-titlecase: Likewise.
18641         * modules/unicase/u16-is-uppercase: Likewise.
18642         * modules/unicase/u16-prefix-context: Likewise.
18643         * modules/unicase/u16-suffix-context: Likewise.
18644         * modules/unicase/u16-tolower: Likewise.
18645         * modules/unicase/u16-totitle: Likewise.
18646         * modules/unicase/u16-toupper: Likewise.
18647         * modules/unicase/u32-casecmp: Likewise.
18648         * modules/unicase/u32-casecoll: Likewise.
18649         * modules/unicase/u32-casefold: Likewise.
18650         * modules/unicase/u32-casexfrm: Likewise.
18651         * modules/unicase/u32-ct-casefold: Likewise.
18652         * modules/unicase/u32-ct-tolower: Likewise.
18653         * modules/unicase/u32-ct-totitle: Likewise.
18654         * modules/unicase/u32-ct-toupper: Likewise.
18655         * modules/unicase/u32-is-cased: Likewise.
18656         * modules/unicase/u32-is-casefolded: Likewise.
18657         * modules/unicase/u32-is-lowercase: Likewise.
18658         * modules/unicase/u32-is-titlecase: Likewise.
18659         * modules/unicase/u32-is-uppercase: Likewise.
18660         * modules/unicase/u32-prefix-context: Likewise.
18661         * modules/unicase/u32-suffix-context: Likewise.
18662         * modules/unicase/u32-tolower: Likewise.
18663         * modules/unicase/u32-totitle: Likewise.
18664         * modules/unicase/u32-toupper: Likewise.
18665         * modules/unicase/ulc-casecmp: Likewise.
18666         * modules/unicase/ulc-casecoll: Likewise.
18667         * modules/unicase/ulc-casexfrm: Likewise.
18668         * modules/uniconv/u8-conv-from-enc: Likewise.
18669         * modules/uniconv/u8-conv-to-enc: Likewise.
18670         * modules/uniconv/u8-strconv-from-enc: Likewise.
18671         * modules/uniconv/u8-strconv-from-locale: Likewise.
18672         * modules/uniconv/u8-strconv-to-enc: Likewise.
18673         * modules/uniconv/u8-strconv-to-locale: Likewise.
18674         * modules/uniconv/u16-conv-from-enc: Likewise.
18675         * modules/uniconv/u16-conv-to-enc: Likewise.
18676         * modules/uniconv/u16-strconv-from-enc: Likewise.
18677         * modules/uniconv/u16-strconv-from-locale: Likewise.
18678         * modules/uniconv/u16-strconv-to-enc: Likewise.
18679         * modules/uniconv/u16-strconv-to-locale: Likewise.
18680         * modules/uniconv/u32-conv-from-enc: Likewise.
18681         * modules/uniconv/u32-conv-to-enc: Likewise.
18682         * modules/uniconv/u32-strconv-from-enc: Likewise.
18683         * modules/uniconv/u32-strconv-from-locale: Likewise.
18684         * modules/uniconv/u32-strconv-to-enc: Likewise.
18685         * modules/uniconv/u32-strconv-to-locale: Likewise.
18686         * modules/unictype/bidicategory-byname: Likewise.
18687         * modules/unictype/bidicategory-name: Likewise.
18688         * modules/unictype/bidicategory-of: Likewise.
18689         * modules/unictype/bidicategory-test: Likewise.
18690         * modules/unictype/block-list: Likewise.
18691         * modules/unictype/block-test: Likewise.
18692         * modules/unictype/category-C: Likewise.
18693         * modules/unictype/category-Cc: Likewise.
18694         * modules/unictype/category-Cf: Likewise.
18695         * modules/unictype/category-Cn: Likewise.
18696         * modules/unictype/category-Co: Likewise.
18697         * modules/unictype/category-Cs: Likewise.
18698         * modules/unictype/category-L: Likewise.
18699         * modules/unictype/category-Ll: Likewise.
18700         * modules/unictype/category-Lm: Likewise.
18701         * modules/unictype/category-Lo: Likewise.
18702         * modules/unictype/category-Lt: Likewise.
18703         * modules/unictype/category-Lu: Likewise.
18704         * modules/unictype/category-M: Likewise.
18705         * modules/unictype/category-Mc: Likewise.
18706         * modules/unictype/category-Me: Likewise.
18707         * modules/unictype/category-Mn: Likewise.
18708         * modules/unictype/category-N: Likewise.
18709         * modules/unictype/category-Nd: Likewise.
18710         * modules/unictype/category-Nl: Likewise.
18711         * modules/unictype/category-No: Likewise.
18712         * modules/unictype/category-P: Likewise.
18713         * modules/unictype/category-Pc: Likewise.
18714         * modules/unictype/category-Pd: Likewise.
18715         * modules/unictype/category-Pe: Likewise.
18716         * modules/unictype/category-Pf: Likewise.
18717         * modules/unictype/category-Pi: Likewise.
18718         * modules/unictype/category-Po: Likewise.
18719         * modules/unictype/category-Ps: Likewise.
18720         * modules/unictype/category-S: Likewise.
18721         * modules/unictype/category-Sc: Likewise.
18722         * modules/unictype/category-Sk: Likewise.
18723         * modules/unictype/category-Sm: Likewise.
18724         * modules/unictype/category-So: Likewise.
18725         * modules/unictype/category-Z: Likewise.
18726         * modules/unictype/category-Zl: Likewise.
18727         * modules/unictype/category-Zp: Likewise.
18728         * modules/unictype/category-Zs: Likewise.
18729         * modules/unictype/category-and: Likewise.
18730         * modules/unictype/category-and-not: Likewise.
18731         * modules/unictype/category-byname: Likewise.
18732         * modules/unictype/category-name: Likewise.
18733         * modules/unictype/category-none: Likewise.
18734         * modules/unictype/category-of: Likewise.
18735         * modules/unictype/category-or: Likewise.
18736         * modules/unictype/category-test: Likewise.
18737         * modules/unictype/combining-class: Likewise.
18738         * modules/unictype/ctype-alnum: Likewise.
18739         * modules/unictype/ctype-alpha: Likewise.
18740         * modules/unictype/ctype-blank: Likewise.
18741         * modules/unictype/ctype-cntrl: Likewise.
18742         * modules/unictype/ctype-digit: Likewise.
18743         * modules/unictype/ctype-graph: Likewise.
18744         * modules/unictype/ctype-lower: Likewise.
18745         * modules/unictype/ctype-print: Likewise.
18746         * modules/unictype/ctype-punct: Likewise.
18747         * modules/unictype/ctype-space: Likewise.
18748         * modules/unictype/ctype-upper: Likewise.
18749         * modules/unictype/ctype-xdigit: Likewise.
18750         * modules/unictype/decimal-digit: Likewise.
18751         * modules/unictype/digit: Likewise.
18752         * modules/unictype/mirror: Likewise.
18753         * modules/unictype/numeric: Likewise.
18754         * modules/unictype/property-alphabetic: Likewise.
18755         * modules/unictype/property-ascii-hex-digit: Likewise.
18756         * modules/unictype/property-bidi-arabic-digit: Likewise.
18757         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18758         * modules/unictype/property-bidi-block-separator: Likewise.
18759         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18760         * modules/unictype/property-bidi-common-separator: Likewise.
18761         * modules/unictype/property-bidi-control: Likewise.
18762         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18763         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18764         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18765         * modules/unictype/property-bidi-european-digit: Likewise.
18766         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18767         * modules/unictype/property-bidi-left-to-right: Likewise.
18768         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18769         * modules/unictype/property-bidi-other-neutral: Likewise.
18770         * modules/unictype/property-bidi-pdf: Likewise.
18771         * modules/unictype/property-bidi-segment-separator: Likewise.
18772         * modules/unictype/property-bidi-whitespace: Likewise.
18773         * modules/unictype/property-byname: Likewise.
18774         * modules/unictype/property-combining: Likewise.
18775         * modules/unictype/property-composite: Likewise.
18776         * modules/unictype/property-currency-symbol: Likewise.
18777         * modules/unictype/property-dash: Likewise.
18778         * modules/unictype/property-decimal-digit: Likewise.
18779         * modules/unictype/property-default-ignorable-code-point: Likewise.
18780         * modules/unictype/property-deprecated: Likewise.
18781         * modules/unictype/property-diacritic: Likewise.
18782         * modules/unictype/property-extender: Likewise.
18783         * modules/unictype/property-format-control: Likewise.
18784         * modules/unictype/property-grapheme-base: Likewise.
18785         * modules/unictype/property-grapheme-extend: Likewise.
18786         * modules/unictype/property-grapheme-link: Likewise.
18787         * modules/unictype/property-hex-digit: Likewise.
18788         * modules/unictype/property-hyphen: Likewise.
18789         * modules/unictype/property-id-continue: Likewise.
18790         * modules/unictype/property-id-start: Likewise.
18791         * modules/unictype/property-ideographic: Likewise.
18792         * modules/unictype/property-ids-binary-operator: Likewise.
18793         * modules/unictype/property-ids-trinary-operator: Likewise.
18794         * modules/unictype/property-ignorable-control: Likewise.
18795         * modules/unictype/property-iso-control: Likewise.
18796         * modules/unictype/property-join-control: Likewise.
18797         * modules/unictype/property-left-of-pair: Likewise.
18798         * modules/unictype/property-line-separator: Likewise.
18799         * modules/unictype/property-logical-order-exception: Likewise.
18800         * modules/unictype/property-lowercase: Likewise.
18801         * modules/unictype/property-math: Likewise.
18802         * modules/unictype/property-non-break: Likewise.
18803         * modules/unictype/property-not-a-character: Likewise.
18804         * modules/unictype/property-numeric: Likewise.
18805         * modules/unictype/property-other-alphabetic: Likewise.
18806         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18807         * modules/unictype/property-other-grapheme-extend: Likewise.
18808         * modules/unictype/property-other-id-continue: Likewise.
18809         * modules/unictype/property-other-id-start: Likewise.
18810         * modules/unictype/property-other-lowercase: Likewise.
18811         * modules/unictype/property-other-math: Likewise.
18812         * modules/unictype/property-other-uppercase: Likewise.
18813         * modules/unictype/property-paired-punctuation: Likewise.
18814         * modules/unictype/property-paragraph-separator: Likewise.
18815         * modules/unictype/property-pattern-syntax: Likewise.
18816         * modules/unictype/property-pattern-white-space: Likewise.
18817         * modules/unictype/property-private-use: Likewise.
18818         * modules/unictype/property-punctuation: Likewise.
18819         * modules/unictype/property-quotation-mark: Likewise.
18820         * modules/unictype/property-radical: Likewise.
18821         * modules/unictype/property-sentence-terminal: Likewise.
18822         * modules/unictype/property-soft-dotted: Likewise.
18823         * modules/unictype/property-space: Likewise.
18824         * modules/unictype/property-terminal-punctuation: Likewise.
18825         * modules/unictype/property-test: Likewise.
18826         * modules/unictype/property-titlecase: Likewise.
18827         * modules/unictype/property-unassigned-code-value: Likewise.
18828         * modules/unictype/property-unified-ideograph: Likewise.
18829         * modules/unictype/property-uppercase: Likewise.
18830         * modules/unictype/property-variation-selector: Likewise.
18831         * modules/unictype/property-white-space: Likewise.
18832         * modules/unictype/property-xid-continue: Likewise.
18833         * modules/unictype/property-xid-start: Likewise.
18834         * modules/unictype/property-zero-width: Likewise.
18835         * modules/unictype/scripts: Likewise.
18836         * modules/unictype/syntax-c-ident: Likewise.
18837         * modules/unictype/syntax-c-whitespace: Likewise.
18838         * modules/unictype/syntax-java-ident: Likewise.
18839         * modules/unictype/syntax-java-whitespace: Likewise.
18840         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18841         * modules/unilbrk/u8-width-linebreaks: Likewise.
18842         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18843         * modules/unilbrk/u16-width-linebreaks: Likewise.
18844         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18845         * modules/unilbrk/u32-width-linebreaks: Likewise.
18846         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18847         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18848         * modules/uniname/uniname: Likewise.
18849         * modules/uninorm/canonical-decomposition: Likewise.
18850         * modules/uninorm/composition: Likewise.
18851         * modules/uninorm/decomposing-form: Likewise.
18852         * modules/uninorm/decomposition: Likewise.
18853         * modules/uninorm/filter: Likewise.
18854         * modules/uninorm/nfc: Likewise.
18855         * modules/uninorm/nfd: Likewise.
18856         * modules/uninorm/nfkc: Likewise.
18857         * modules/uninorm/nfkd: Likewise.
18858         * modules/uninorm/u8-normalize: Likewise.
18859         * modules/uninorm/u8-normcmp: Likewise.
18860         * modules/uninorm/u8-normcoll: Likewise.
18861         * modules/uninorm/u8-normxfrm: Likewise.
18862         * modules/uninorm/u16-normalize: Likewise.
18863         * modules/uninorm/u16-normcmp: Likewise.
18864         * modules/uninorm/u16-normcoll: Likewise.
18865         * modules/uninorm/u16-normxfrm: Likewise.
18866         * modules/uninorm/u32-normalize: Likewise.
18867         * modules/uninorm/u32-normcmp: Likewise.
18868         * modules/uninorm/u32-normcoll: Likewise.
18869         * modules/uninorm/u32-normxfrm: Likewise.
18870         * modules/unistdio/u8-asnprintf: Likewise.
18871         * modules/unistdio/u8-asprintf: Likewise.
18872         * modules/unistdio/u8-snprintf: Likewise.
18873         * modules/unistdio/u8-sprintf: Likewise.
18874         * modules/unistdio/u8-u8-asnprintf: Likewise.
18875         * modules/unistdio/u8-u8-asprintf: Likewise.
18876         * modules/unistdio/u8-u8-snprintf: Likewise.
18877         * modules/unistdio/u8-u8-sprintf: Likewise.
18878         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18879         * modules/unistdio/u8-u8-vasprintf: Likewise.
18880         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18881         * modules/unistdio/u8-u8-vsprintf: Likewise.
18882         * modules/unistdio/u8-vasnprintf: Likewise.
18883         * modules/unistdio/u8-vasprintf: Likewise.
18884         * modules/unistdio/u8-vsnprintf: Likewise.
18885         * modules/unistdio/u8-vsprintf: Likewise.
18886         * modules/unistdio/u16-asnprintf: Likewise.
18887         * modules/unistdio/u16-asprintf: Likewise.
18888         * modules/unistdio/u16-snprintf: Likewise.
18889         * modules/unistdio/u16-sprintf: Likewise.
18890         * modules/unistdio/u16-u16-asnprintf: Likewise.
18891         * modules/unistdio/u16-u16-asprintf: Likewise.
18892         * modules/unistdio/u16-u16-snprintf: Likewise.
18893         * modules/unistdio/u16-u16-sprintf: Likewise.
18894         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18895         * modules/unistdio/u16-u16-vasprintf: Likewise.
18896         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18897         * modules/unistdio/u16-u16-vsprintf: Likewise.
18898         * modules/unistdio/u16-vasnprintf: Likewise.
18899         * modules/unistdio/u16-vasprintf: Likewise.
18900         * modules/unistdio/u16-vsnprintf: Likewise.
18901         * modules/unistdio/u16-vsprintf: Likewise.
18902         * modules/unistdio/u32-asnprintf: Likewise.
18903         * modules/unistdio/u32-asprintf: Likewise.
18904         * modules/unistdio/u32-snprintf: Likewise.
18905         * modules/unistdio/u32-sprintf: Likewise.
18906         * modules/unistdio/u32-u32-asnprintf: Likewise.
18907         * modules/unistdio/u32-u32-asprintf: Likewise.
18908         * modules/unistdio/u32-u32-snprintf: Likewise.
18909         * modules/unistdio/u32-u32-sprintf: Likewise.
18910         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18911         * modules/unistdio/u32-u32-vasprintf: Likewise.
18912         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18913         * modules/unistdio/u32-u32-vsprintf: Likewise.
18914         * modules/unistdio/u32-vasnprintf: Likewise.
18915         * modules/unistdio/u32-vasprintf: Likewise.
18916         * modules/unistdio/u32-vsnprintf: Likewise.
18917         * modules/unistdio/u32-vsprintf: Likewise.
18918         * modules/unistdio/ulc-asnprintf: Likewise.
18919         * modules/unistdio/ulc-asprintf: Likewise.
18920         * modules/unistdio/ulc-fprintf: Likewise.
18921         * modules/unistdio/ulc-snprintf: Likewise.
18922         * modules/unistdio/ulc-sprintf: Likewise.
18923         * modules/unistdio/ulc-vasnprintf: Likewise.
18924         * modules/unistdio/ulc-vasprintf: Likewise.
18925         * modules/unistdio/ulc-vfprintf: Likewise.
18926         * modules/unistdio/ulc-vsnprintf: Likewise.
18927         * modules/unistdio/ulc-vsprintf: Likewise.
18928         * modules/unistr/u8-check: Likewise.
18929         * modules/unistr/u8-chr: Likewise.
18930         * modules/unistr/u8-cmp: Likewise.
18931         * modules/unistr/u8-cmp2: Likewise.
18932         * modules/unistr/u8-cpy: Likewise.
18933         * modules/unistr/u8-cpy-alloc: Likewise.
18934         * modules/unistr/u8-endswith: Likewise.
18935         * modules/unistr/u8-mblen: Likewise.
18936         * modules/unistr/u8-mbsnlen: Likewise.
18937         * modules/unistr/u8-mbtouc: Likewise.
18938         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18939         * modules/unistr/u8-mbtoucr: Likewise.
18940         * modules/unistr/u8-move: Likewise.
18941         * modules/unistr/u8-next: Likewise.
18942         * modules/unistr/u8-prev: Likewise.
18943         * modules/unistr/u8-set: Likewise.
18944         * modules/unistr/u8-startswith: Likewise.
18945         * modules/unistr/u8-stpcpy: Likewise.
18946         * modules/unistr/u8-stpncpy: Likewise.
18947         * modules/unistr/u8-strcat: Likewise.
18948         * modules/unistr/u8-strchr: Likewise.
18949         * modules/unistr/u8-strcmp: Likewise.
18950         * modules/unistr/u8-strcoll: Likewise.
18951         * modules/unistr/u8-strcpy: Likewise.
18952         * modules/unistr/u8-strcspn: Likewise.
18953         * modules/unistr/u8-strdup: Likewise.
18954         * modules/unistr/u8-strlen: Likewise.
18955         * modules/unistr/u8-strmblen: Likewise.
18956         * modules/unistr/u8-strmbtouc: Likewise.
18957         * modules/unistr/u8-strncat: Likewise.
18958         * modules/unistr/u8-strncmp: Likewise.
18959         * modules/unistr/u8-strncpy: Likewise.
18960         * modules/unistr/u8-strnlen: Likewise.
18961         * modules/unistr/u8-strpbrk: Likewise.
18962         * modules/unistr/u8-strrchr: Likewise.
18963         * modules/unistr/u8-strspn: Likewise.
18964         * modules/unistr/u8-strstr: Likewise.
18965         * modules/unistr/u8-strtok: Likewise.
18966         * modules/unistr/u8-to-u16: Likewise.
18967         * modules/unistr/u8-to-u32: Likewise.
18968         * modules/unistr/u8-uctomb: Likewise.
18969         * modules/unistr/u16-check: Likewise.
18970         * modules/unistr/u16-chr: Likewise.
18971         * modules/unistr/u16-cmp: Likewise.
18972         * modules/unistr/u16-cmp2: Likewise.
18973         * modules/unistr/u16-cpy: Likewise.
18974         * modules/unistr/u16-cpy-alloc: Likewise.
18975         * modules/unistr/u16-endswith: Likewise.
18976         * modules/unistr/u16-mblen: Likewise.
18977         * modules/unistr/u16-mbsnlen: Likewise.
18978         * modules/unistr/u16-mbtouc: Likewise.
18979         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18980         * modules/unistr/u16-mbtoucr: Likewise.
18981         * modules/unistr/u16-move: Likewise.
18982         * modules/unistr/u16-next: Likewise.
18983         * modules/unistr/u16-prev: Likewise.
18984         * modules/unistr/u16-set: Likewise.
18985         * modules/unistr/u16-startswith: Likewise.
18986         * modules/unistr/u16-stpcpy: Likewise.
18987         * modules/unistr/u16-stpncpy: Likewise.
18988         * modules/unistr/u16-strcat: Likewise.
18989         * modules/unistr/u16-strchr: Likewise.
18990         * modules/unistr/u16-strcmp: Likewise.
18991         * modules/unistr/u16-strcoll: Likewise.
18992         * modules/unistr/u16-strcpy: Likewise.
18993         * modules/unistr/u16-strcspn: Likewise.
18994         * modules/unistr/u16-strdup: Likewise.
18995         * modules/unistr/u16-strlen: Likewise.
18996         * modules/unistr/u16-strmblen: Likewise.
18997         * modules/unistr/u16-strmbtouc: Likewise.
18998         * modules/unistr/u16-strncat: Likewise.
18999         * modules/unistr/u16-strncmp: Likewise.
19000         * modules/unistr/u16-strncpy: Likewise.
19001         * modules/unistr/u16-strnlen: Likewise.
19002         * modules/unistr/u16-strpbrk: Likewise.
19003         * modules/unistr/u16-strrchr: Likewise.
19004         * modules/unistr/u16-strspn: Likewise.
19005         * modules/unistr/u16-strstr: Likewise.
19006         * modules/unistr/u16-strtok: Likewise.
19007         * modules/unistr/u16-to-u32: Likewise.
19008         * modules/unistr/u16-to-u8: Likewise.
19009         * modules/unistr/u16-uctomb: Likewise.
19010         * modules/unistr/u32-check: Likewise.
19011         * modules/unistr/u32-chr: Likewise.
19012         * modules/unistr/u32-cmp: Likewise.
19013         * modules/unistr/u32-cmp2: Likewise.
19014         * modules/unistr/u32-cpy: Likewise.
19015         * modules/unistr/u32-cpy-alloc: Likewise.
19016         * modules/unistr/u32-endswith: Likewise.
19017         * modules/unistr/u32-mblen: Likewise.
19018         * modules/unistr/u32-mbsnlen: Likewise.
19019         * modules/unistr/u32-mbtouc: Likewise.
19020         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19021         * modules/unistr/u32-mbtoucr: Likewise.
19022         * modules/unistr/u32-move: Likewise.
19023         * modules/unistr/u32-next: Likewise.
19024         * modules/unistr/u32-prev: Likewise.
19025         * modules/unistr/u32-set: Likewise.
19026         * modules/unistr/u32-startswith: Likewise.
19027         * modules/unistr/u32-stpcpy: Likewise.
19028         * modules/unistr/u32-stpncpy: Likewise.
19029         * modules/unistr/u32-strcat: Likewise.
19030         * modules/unistr/u32-strchr: Likewise.
19031         * modules/unistr/u32-strcmp: Likewise.
19032         * modules/unistr/u32-strcoll: Likewise.
19033         * modules/unistr/u32-strcpy: Likewise.
19034         * modules/unistr/u32-strcspn: Likewise.
19035         * modules/unistr/u32-strdup: Likewise.
19036         * modules/unistr/u32-strlen: Likewise.
19037         * modules/unistr/u32-strmblen: Likewise.
19038         * modules/unistr/u32-strmbtouc: Likewise.
19039         * modules/unistr/u32-strncat: Likewise.
19040         * modules/unistr/u32-strncmp: Likewise.
19041         * modules/unistr/u32-strncpy: Likewise.
19042         * modules/unistr/u32-strnlen: Likewise.
19043         * modules/unistr/u32-strpbrk: Likewise.
19044         * modules/unistr/u32-strrchr: Likewise.
19045         * modules/unistr/u32-strspn: Likewise.
19046         * modules/unistr/u32-strstr: Likewise.
19047         * modules/unistr/u32-strtok: Likewise.
19048         * modules/unistr/u32-to-u16: Likewise.
19049         * modules/unistr/u32-to-u8: Likewise.
19050         * modules/unistr/u32-uctomb: Likewise.
19051         * modules/uniwbrk/u8-wordbreaks: Likewise.
19052         * modules/uniwbrk/u16-wordbreaks: Likewise.
19053         * modules/uniwbrk/u32-wordbreaks: Likewise.
19054         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19055         * modules/uniwbrk/wordbreak-property: Likewise.
19056         * modules/uniwidth/u8-strwidth: Likewise.
19057         * modules/uniwidth/u8-width: Likewise.
19058         * modules/uniwidth/u16-strwidth: Likewise.
19059         * modules/uniwidth/u16-width: Likewise.
19060         * modules/uniwidth/u32-strwidth: Likewise.
19061         * modules/uniwidth/u32-width: Likewise.
19062         * modules/uniwidth/width: Likewise.
19063         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19064         with $(LIBUNISTRING).
19065         * modules/unicase/ignorable-tests: Likewise.
19066         * modules/unicase/locale-language-tests: Likewise.
19067         * modules/unicase/tolower-tests: Likewise.
19068         * modules/unicase/totitle-tests: Likewise.
19069         * modules/unicase/toupper-tests: Likewise.
19070         * modules/unicase/u8-casecmp-tests: Likewise.
19071         * modules/unicase/u8-casecoll-tests: Likewise.
19072         * modules/unicase/u8-casefold-tests: Likewise.
19073         * modules/unicase/u8-is-cased-tests: Likewise.
19074         * modules/unicase/u8-is-casefolded-tests: Likewise.
19075         * modules/unicase/u8-is-lowercase-tests: Likewise.
19076         * modules/unicase/u8-is-titlecase-tests: Likewise.
19077         * modules/unicase/u8-is-uppercase-tests: Likewise.
19078         * modules/unicase/u8-tolower-tests: Likewise.
19079         * modules/unicase/u8-totitle-tests: Likewise.
19080         * modules/unicase/u8-toupper-tests: Likewise.
19081         * modules/unicase/u16-casecmp-tests: Likewise.
19082         * modules/unicase/u16-casecoll-tests: Likewise.
19083         * modules/unicase/u16-casefold-tests: Likewise.
19084         * modules/unicase/u16-is-cased-tests: Likewise.
19085         * modules/unicase/u16-is-casefolded-tests: Likewise.
19086         * modules/unicase/u16-is-lowercase-tests: Likewise.
19087         * modules/unicase/u16-is-titlecase-tests: Likewise.
19088         * modules/unicase/u16-is-uppercase-tests: Likewise.
19089         * modules/unicase/u16-tolower-tests: Likewise.
19090         * modules/unicase/u16-totitle-tests: Likewise.
19091         * modules/unicase/u16-toupper-tests: Likewise.
19092         * modules/unicase/u32-casecmp-tests: Likewise.
19093         * modules/unicase/u32-casecoll-tests: Likewise.
19094         * modules/unicase/u32-casefold-tests: Likewise.
19095         * modules/unicase/u32-is-cased-tests: Likewise.
19096         * modules/unicase/u32-is-casefolded-tests: Likewise.
19097         * modules/unicase/u32-is-lowercase-tests: Likewise.
19098         * modules/unicase/u32-is-titlecase-tests: Likewise.
19099         * modules/unicase/u32-is-uppercase-tests: Likewise.
19100         * modules/unicase/u32-tolower-tests: Likewise.
19101         * modules/unicase/u32-totitle-tests: Likewise.
19102         * modules/unicase/u32-toupper-tests: Likewise.
19103         * modules/unicase/ulc-casecmp-tests: Likewise.
19104         * modules/unicase/ulc-casecoll-tests: Likewise.
19105         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19106         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19107         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19108         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19109         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19110         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19111         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19112         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19113         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19114         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19115         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19116         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19117         * modules/unictype/bidicategory-byname-tests: Likewise.
19118         * modules/unictype/bidicategory-name-tests: Likewise.
19119         * modules/unictype/bidicategory-of-tests: Likewise.
19120         * modules/unictype/bidicategory-test-tests: Likewise.
19121         * modules/unictype/block-list-tests: Likewise.
19122         * modules/unictype/block-of-tests: Likewise.
19123         * modules/unictype/block-test-tests: Likewise.
19124         * modules/unictype/category-C-tests: Likewise.
19125         * modules/unictype/category-Cc-tests: Likewise.
19126         * modules/unictype/category-Cf-tests: Likewise.
19127         * modules/unictype/category-Cn-tests: Likewise.
19128         * modules/unictype/category-Co-tests: Likewise.
19129         * modules/unictype/category-Cs-tests: Likewise.
19130         * modules/unictype/category-L-tests: Likewise.
19131         * modules/unictype/category-Ll-tests: Likewise.
19132         * modules/unictype/category-Lm-tests: Likewise.
19133         * modules/unictype/category-Lo-tests: Likewise.
19134         * modules/unictype/category-Lt-tests: Likewise.
19135         * modules/unictype/category-Lu-tests: Likewise.
19136         * modules/unictype/category-M-tests: Likewise.
19137         * modules/unictype/category-Mc-tests: Likewise.
19138         * modules/unictype/category-Me-tests: Likewise.
19139         * modules/unictype/category-Mn-tests: Likewise.
19140         * modules/unictype/category-N-tests: Likewise.
19141         * modules/unictype/category-Nd-tests: Likewise.
19142         * modules/unictype/category-Nl-tests: Likewise.
19143         * modules/unictype/category-No-tests: Likewise.
19144         * modules/unictype/category-P-tests: Likewise.
19145         * modules/unictype/category-Pc-tests: Likewise.
19146         * modules/unictype/category-Pd-tests: Likewise.
19147         * modules/unictype/category-Pe-tests: Likewise.
19148         * modules/unictype/category-Pf-tests: Likewise.
19149         * modules/unictype/category-Pi-tests: Likewise.
19150         * modules/unictype/category-Po-tests: Likewise.
19151         * modules/unictype/category-Ps-tests: Likewise.
19152         * modules/unictype/category-S-tests: Likewise.
19153         * modules/unictype/category-Sc-tests: Likewise.
19154         * modules/unictype/category-Sk-tests: Likewise.
19155         * modules/unictype/category-Sm-tests: Likewise.
19156         * modules/unictype/category-So-tests: Likewise.
19157         * modules/unictype/category-Z-tests: Likewise.
19158         * modules/unictype/category-Zl-tests: Likewise.
19159         * modules/unictype/category-Zp-tests: Likewise.
19160         * modules/unictype/category-Zs-tests: Likewise.
19161         * modules/unictype/category-and-not-tests: Likewise.
19162         * modules/unictype/category-and-tests: Likewise.
19163         * modules/unictype/category-byname-tests: Likewise.
19164         * modules/unictype/category-name-tests: Likewise.
19165         * modules/unictype/category-none-tests: Likewise.
19166         * modules/unictype/category-of-tests: Likewise.
19167         * modules/unictype/category-or-tests: Likewise.
19168         * modules/unictype/category-test-withtable-tests: Likewise.
19169         * modules/unictype/combining-class-tests: Likewise.
19170         * modules/unictype/ctype-alnum-tests: Likewise.
19171         * modules/unictype/ctype-alpha-tests: Likewise.
19172         * modules/unictype/ctype-blank-tests: Likewise.
19173         * modules/unictype/ctype-cntrl-tests: Likewise.
19174         * modules/unictype/ctype-digit-tests: Likewise.
19175         * modules/unictype/ctype-graph-tests: Likewise.
19176         * modules/unictype/ctype-lower-tests: Likewise.
19177         * modules/unictype/ctype-print-tests: Likewise.
19178         * modules/unictype/ctype-punct-tests: Likewise.
19179         * modules/unictype/ctype-space-tests: Likewise.
19180         * modules/unictype/ctype-upper-tests: Likewise.
19181         * modules/unictype/ctype-xdigit-tests: Likewise.
19182         * modules/unictype/decimal-digit-tests: Likewise.
19183         * modules/unictype/digit-tests: Likewise.
19184         * modules/unictype/mirror-tests: Likewise.
19185         * modules/unictype/numeric-tests: Likewise.
19186         * modules/unictype/property-alphabetic-tests: Likewise.
19187         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19188         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19189         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19190         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19191         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19192         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19193         * modules/unictype/property-bidi-control-tests: Likewise.
19194         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19195         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19196         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19197         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19198         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19199         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19200         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19201         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19202         * modules/unictype/property-bidi-pdf-tests: Likewise.
19203         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19204         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19205         * modules/unictype/property-byname-tests: Likewise.
19206         * modules/unictype/property-combining-tests: Likewise.
19207         * modules/unictype/property-composite-tests: Likewise.
19208         * modules/unictype/property-currency-symbol-tests: Likewise.
19209         * modules/unictype/property-dash-tests: Likewise.
19210         * modules/unictype/property-decimal-digit-tests: Likewise.
19211         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19212         * modules/unictype/property-deprecated-tests: Likewise.
19213         * modules/unictype/property-diacritic-tests: Likewise.
19214         * modules/unictype/property-extender-tests: Likewise.
19215         * modules/unictype/property-format-control-tests: Likewise.
19216         * modules/unictype/property-grapheme-base-tests: Likewise.
19217         * modules/unictype/property-grapheme-extend-tests: Likewise.
19218         * modules/unictype/property-grapheme-link-tests: Likewise.
19219         * modules/unictype/property-hex-digit-tests: Likewise.
19220         * modules/unictype/property-hyphen-tests: Likewise.
19221         * modules/unictype/property-id-continue-tests: Likewise.
19222         * modules/unictype/property-id-start-tests: Likewise.
19223         * modules/unictype/property-ideographic-tests: Likewise.
19224         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19225         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19226         * modules/unictype/property-ignorable-control-tests: Likewise.
19227         * modules/unictype/property-iso-control-tests: Likewise.
19228         * modules/unictype/property-join-control-tests: Likewise.
19229         * modules/unictype/property-left-of-pair-tests: Likewise.
19230         * modules/unictype/property-line-separator-tests: Likewise.
19231         * modules/unictype/property-logical-order-exception-tests: Likewise.
19232         * modules/unictype/property-lowercase-tests: Likewise.
19233         * modules/unictype/property-math-tests: Likewise.
19234         * modules/unictype/property-non-break-tests: Likewise.
19235         * modules/unictype/property-not-a-character-tests: Likewise.
19236         * modules/unictype/property-numeric-tests: Likewise.
19237         * modules/unictype/property-other-alphabetic-tests: Likewise.
19238         * modules/unictype/property-other-default-ignorable-code-point-tests:
19239         Likewise.
19240         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19241         * modules/unictype/property-other-id-continue-tests: Likewise.
19242         * modules/unictype/property-other-id-start-tests: Likewise.
19243         * modules/unictype/property-other-lowercase-tests: Likewise.
19244         * modules/unictype/property-other-math-tests: Likewise.
19245         * modules/unictype/property-other-uppercase-tests: Likewise.
19246         * modules/unictype/property-paired-punctuation-tests: Likewise.
19247         * modules/unictype/property-paragraph-separator-tests: Likewise.
19248         * modules/unictype/property-pattern-syntax-tests: Likewise.
19249         * modules/unictype/property-pattern-white-space-tests: Likewise.
19250         * modules/unictype/property-private-use-tests: Likewise.
19251         * modules/unictype/property-punctuation-tests: Likewise.
19252         * modules/unictype/property-quotation-mark-tests: Likewise.
19253         * modules/unictype/property-radical-tests: Likewise.
19254         * modules/unictype/property-sentence-terminal-tests: Likewise.
19255         * modules/unictype/property-soft-dotted-tests: Likewise.
19256         * modules/unictype/property-space-tests: Likewise.
19257         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19258         * modules/unictype/property-test-tests: Likewise.
19259         * modules/unictype/property-titlecase-tests: Likewise.
19260         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19261         * modules/unictype/property-unified-ideograph-tests: Likewise.
19262         * modules/unictype/property-uppercase-tests: Likewise.
19263         * modules/unictype/property-variation-selector-tests: Likewise.
19264         * modules/unictype/property-white-space-tests: Likewise.
19265         * modules/unictype/property-xid-continue-tests: Likewise.
19266         * modules/unictype/property-xid-start-tests: Likewise.
19267         * modules/unictype/property-zero-width-tests: Likewise.
19268         * modules/unictype/scripts-tests: Likewise.
19269         * modules/unictype/syntax-c-ident-tests: Likewise.
19270         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19271         * modules/unictype/syntax-java-ident-tests: Likewise.
19272         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19273         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19274         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19275         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19276         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19277         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19278         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19279         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19280         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19281         * modules/uniname/uniname-tests: Likewise.
19282         * modules/uninorm/canonical-decomposition-tests: Likewise.
19283         * modules/uninorm/compat-decomposition-tests: Likewise.
19284         * modules/uninorm/composition-tests: Likewise.
19285         * modules/uninorm/decomposing-form-tests: Likewise.
19286         * modules/uninorm/decomposition-tests: Likewise.
19287         * modules/uninorm/filter-tests: Likewise.
19288         * modules/uninorm/nfc-tests: Likewise.
19289         * modules/uninorm/nfd-tests: Likewise.
19290         * modules/uninorm/nfkc-tests: Likewise.
19291         * modules/uninorm/nfkd-tests: Likewise.
19292         * modules/uninorm/u8-normcmp-tests: Likewise.
19293         * modules/uninorm/u8-normcoll-tests: Likewise.
19294         * modules/uninorm/u16-normcmp-tests: Likewise.
19295         * modules/uninorm/u16-normcoll-tests: Likewise.
19296         * modules/uninorm/u32-normcmp-tests: Likewise.
19297         * modules/uninorm/u32-normcoll-tests: Likewise.
19298         * modules/unistdio/u8-asnprintf-tests: Likewise.
19299         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19300         * modules/unistdio/u8-vasprintf-tests: Likewise.
19301         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19302         * modules/unistdio/u8-vsprintf-tests: Likewise.
19303         * modules/unistdio/u16-asnprintf-tests: Likewise.
19304         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19305         * modules/unistdio/u16-vasprintf-tests: Likewise.
19306         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19307         * modules/unistdio/u16-vsprintf-tests: Likewise.
19308         * modules/unistdio/u32-asnprintf-tests: Likewise.
19309         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19310         * modules/unistdio/u32-vasprintf-tests: Likewise.
19311         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19312         * modules/unistdio/u32-vsprintf-tests: Likewise.
19313         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19314         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19315         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19316         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19317         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19318         * modules/unistr/u8-check-tests: Likewise.
19319         * modules/unistr/u8-chr-tests: Likewise.
19320         * modules/unistr/u8-cmp-tests: Likewise.
19321         * modules/unistr/u8-cmp2-tests: Likewise.
19322         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19323         * modules/unistr/u8-cpy-tests: Likewise.
19324         * modules/unistr/u8-mblen-tests: Likewise.
19325         * modules/unistr/u8-mbsnlen-tests: Likewise.
19326         * modules/unistr/u8-mbtouc-tests: Likewise.
19327         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19328         * modules/unistr/u8-mbtoucr-tests: Likewise.
19329         * modules/unistr/u8-move-tests: Likewise.
19330         * modules/unistr/u8-next-tests: Likewise.
19331         * modules/unistr/u8-prev-tests: Likewise.
19332         * modules/unistr/u8-set-tests: Likewise.
19333         * modules/unistr/u8-stpcpy-tests: Likewise.
19334         * modules/unistr/u8-stpncpy-tests: Likewise.
19335         * modules/unistr/u8-strcat-tests: Likewise.
19336         * modules/unistr/u8-strcmp-tests: Likewise.
19337         * modules/unistr/u8-strcoll-tests: Likewise.
19338         * modules/unistr/u8-strcpy-tests: Likewise.
19339         * modules/unistr/u8-strdup-tests: Likewise.
19340         * modules/unistr/u8-strlen-tests: Likewise.
19341         * modules/unistr/u8-strmblen-tests: Likewise.
19342         * modules/unistr/u8-strmbtouc-tests: Likewise.
19343         * modules/unistr/u8-strncat-tests: Likewise.
19344         * modules/unistr/u8-strncmp-tests: Likewise.
19345         * modules/unistr/u8-strncpy-tests: Likewise.
19346         * modules/unistr/u8-strnlen-tests: Likewise.
19347         * modules/unistr/u8-to-u16-tests: Likewise.
19348         * modules/unistr/u8-to-u32-tests: Likewise.
19349         * modules/unistr/u8-uctomb-tests: Likewise.
19350         * modules/unistr/u16-check-tests: Likewise.
19351         * modules/unistr/u16-chr-tests: Likewise.
19352         * modules/unistr/u16-cmp-tests: Likewise.
19353         * modules/unistr/u16-cmp2-tests: Likewise.
19354         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19355         * modules/unistr/u16-cpy-tests: Likewise.
19356         * modules/unistr/u16-mblen-tests: Likewise.
19357         * modules/unistr/u16-mbsnlen-tests: Likewise.
19358         * modules/unistr/u16-mbtouc-tests: Likewise.
19359         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19360         * modules/unistr/u16-mbtoucr-tests: Likewise.
19361         * modules/unistr/u16-move-tests: Likewise.
19362         * modules/unistr/u16-next-tests: Likewise.
19363         * modules/unistr/u16-prev-tests: Likewise.
19364         * modules/unistr/u16-set-tests: Likewise.
19365         * modules/unistr/u16-stpcpy-tests: Likewise.
19366         * modules/unistr/u16-stpncpy-tests: Likewise.
19367         * modules/unistr/u16-strcat-tests: Likewise.
19368         * modules/unistr/u16-strcmp-tests: Likewise.
19369         * modules/unistr/u16-strcoll-tests: Likewise.
19370         * modules/unistr/u16-strcpy-tests: Likewise.
19371         * modules/unistr/u16-strdup-tests: Likewise.
19372         * modules/unistr/u16-strlen-tests: Likewise.
19373         * modules/unistr/u16-strmblen-tests: Likewise.
19374         * modules/unistr/u16-strmbtouc-tests: Likewise.
19375         * modules/unistr/u16-strncat-tests: Likewise.
19376         * modules/unistr/u16-strncmp-tests: Likewise.
19377         * modules/unistr/u16-strncpy-tests: Likewise.
19378         * modules/unistr/u16-strnlen-tests: Likewise.
19379         * modules/unistr/u16-to-u32-tests: Likewise.
19380         * modules/unistr/u16-to-u8-tests: Likewise.
19381         * modules/unistr/u16-uctomb-tests: Likewise.
19382         * modules/unistr/u32-check-tests: Likewise.
19383         * modules/unistr/u32-chr-tests: Likewise.
19384         * modules/unistr/u32-cmp-tests: Likewise.
19385         * modules/unistr/u32-cmp2-tests: Likewise.
19386         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19387         * modules/unistr/u32-cpy-tests: Likewise.
19388         * modules/unistr/u32-mblen-tests: Likewise.
19389         * modules/unistr/u32-mbsnlen-tests: Likewise.
19390         * modules/unistr/u32-mbtouc-tests: Likewise.
19391         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19392         * modules/unistr/u32-mbtoucr-tests: Likewise.
19393         * modules/unistr/u32-move-tests: Likewise.
19394         * modules/unistr/u32-next-tests: Likewise.
19395         * modules/unistr/u32-prev-tests: Likewise.
19396         * modules/unistr/u32-set-tests: Likewise.
19397         * modules/unistr/u32-stpcpy-tests: Likewise.
19398         * modules/unistr/u32-stpncpy-tests: Likewise.
19399         * modules/unistr/u32-strcat-tests: Likewise.
19400         * modules/unistr/u32-strcmp-tests: Likewise.
19401         * modules/unistr/u32-strcoll-tests: Likewise.
19402         * modules/unistr/u32-strcpy-tests: Likewise.
19403         * modules/unistr/u32-strdup-tests: Likewise.
19404         * modules/unistr/u32-strlen-tests: Likewise.
19405         * modules/unistr/u32-strmblen-tests: Likewise.
19406         * modules/unistr/u32-strmbtouc-tests: Likewise.
19407         * modules/unistr/u32-strncat-tests: Likewise.
19408         * modules/unistr/u32-strncmp-tests: Likewise.
19409         * modules/unistr/u32-strncpy-tests: Likewise.
19410         * modules/unistr/u32-strnlen-tests: Likewise.
19411         * modules/unistr/u32-to-u16-tests: Likewise.
19412         * modules/unistr/u32-to-u8-tests: Likewise.
19413         * modules/unistr/u32-uctomb-tests: Likewise.
19414         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19415         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19416         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19417         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19418         * modules/uniwidth/u8-strwidth-tests: Likewise.
19419         * modules/uniwidth/u8-width-tests: Likewise.
19420         * modules/uniwidth/u16-strwidth-tests: Likewise.
19421         * modules/uniwidth/u16-width-tests: Likewise.
19422         * modules/uniwidth/u32-strwidth-tests: Likewise.
19423         * modules/uniwidth/u32-width-tests: Likewise.
19424         * modules/uniwidth/width-tests: Likewise.
19425
19426 2010-05-18  Richard Jones  <rjones@redhat.com>
19427
19428         doc: users.txt: list hivex
19429         * users.txt: Add hivex.
19430
19431 2010-05-18  Richard Jones  <rjones@redhat.com>
19432
19433         doc: users.txt: list febootstrap
19434         * users.txt: Add febootstrap.
19435
19436 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19437
19438         bootstrap: fix an error when gnulib is not used as a git submodule
19439         * build-aux/bootstrap (gnulib_path): If its length is zero then
19440         assign "gnulib" to it.
19441         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19442
19443 2010-05-16  Bruno Haible  <bruno@clisp.org>
19444
19445         Avoid autoconf warnings about AM_ICONV.
19446         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19447         2.64.
19448
19449 2010-05-16  Bruno Haible  <bruno@clisp.org>
19450
19451         absolute-header: Make the macro usable in more situations.
19452         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19453         from gl_ABSOLUTE_HEADER.
19454         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19455
19456 2010-05-16  James Youngman  <jay@gnu.org>
19457
19458         doc: update users.txt
19459         * users.txt: Add CSSC.
19460
19461 2010-05-16  Jim Meyering  <meyering@redhat.com>
19462
19463         init.sh: fix an error in the previous change; add more comments
19464         * tests/init.sh: Compare exit code in loop against 9, not 2.
19465         Patch by Bruno Haible.
19466         Make the two tests more similar by adding an empty "then" clause.
19467         Add comments.
19468
19469         init.sh: avoid unnecessary shell re-exec
19470         * tests/init.sh: Improve the re-exec-required check to first test the
19471         current shell.  If it passes the test, do not search for a shell that
19472         does pass, and do not re-exec.  This test is particularly contorted to
19473         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19474         of $(...) evokes a syntax error and causes immediate shell exit with
19475         status 2.  Bruno Haible reported that the re-exec made it impossible
19476         to single-step through any init.sh-using script.
19477
19478 2010-05-16  Bruno Haible  <bruno@clisp.org>
19479
19480         Fix collision between gnulib's and libintl's printf replacements.
19481         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19482         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19483         (printf): When using GNU C, map the __printf__ function to rpl_printf
19484         via __asm__. When not using GNU C, define rpl_printf instead of
19485         __printf__.
19486         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19487         commit.
19488         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19489         commit.
19490         * m4/asm-underscore.m4: New file.
19491         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19492         * modules/stdio (Files): Add m4/asm-underscore.m4.
19493         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19494         Reported by Ben Pfaff.
19495
19496 2010-05-16  Bruno Haible  <bruno@clisp.org>
19497
19498         verify: Avoid skipping the test on openSUSE 11.0.
19499         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19500
19501 2010-05-13  Bruno Haible  <bruno@clisp.org>
19502
19503         Avoid useless warnings from G++.
19504         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19505         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19506         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19507
19508 2010-05-11  Jim Meyering  <meyering@redhat.com>
19509
19510         maint.mk: tweak preceding change
19511         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19512         regexps tighter by anchoring at EOL, and make the new group "shy"
19513         for slightly decreased overhead.
19514
19515 2010-05-11  Eric Blake  <eblake@redhat.com>
19516
19517         maint.mk: gnulib doesn't guarantee NSIG
19518         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19519
19520 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19521
19522         test-pwrite.c: Remove unused variable declaration.
19523         * tests/test-pwrite.c (main): Remove read_buf declaration.
19524
19525         Remove useless test-pwrite.sh file.
19526         * tests/test-pwrite.sh: Delete file.
19527         * modules/pwrite-tests: Remove references.
19528         Reported by Bruno Haible.
19529
19530 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19531
19532         init.sh: fix a typo
19533         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19534
19535 2010-05-10  Jim Meyering  <meyering@redhat.com>
19536
19537         maint.mk: avoid using a temporary file in the always-defined-macros check
19538         * top/maint.mk (.re-defmac): Remove rule.
19539         (gl_trap_): Remove definition.
19540         (sc_prohibit_always-defined_macros): Rewrite not to create and
19541         depend on a temporary file.  Instead, depend on GNU grep's ability
19542         to read a list of regular expressions from stdin when given "-f -".
19543
19544 2010-05-09  Bruno Haible  <bruno@clisp.org>
19545
19546         Update to GNU gettext 0.18, part 1.
19547         * m4/gettext.m4: Update to GNU gettext 0.18.
19548         * m4/intl.m4: Likewise.
19549         * m4/po.m4: Likewise.
19550         * modules/gettext (Files): Add m4/fcntl-o.m4.
19551         (configure.ac): Require gettext infrastructure from version 0.18.
19552
19553 2010-05-09  Jim Meyering  <meyering@redhat.com>
19554
19555         init.sh: enable MALLOC_PERTURB_
19556         * tests/init.sh: Enable glibc's malloc-perturbing option.
19557
19558         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19559         With my recent change in init.sh from the two-line form:
19560             -#   : ${srcdir=.}
19561             -#   . "$srcdir/init.sh"; path_prepend_ .
19562             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19563         I noticed that using the one-line form would cause this test
19564         to fail with a false-positive, or to stop working altogether,
19565         depending on whether help-version changed or all the tests did.
19566         * top/maint.mk (_hv_regex): Remove this definition.
19567         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19568         (_hv_regex_strong): Use a stronger regex to check for conformance.
19569         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19570         Give a separate diagnostic for lack of conforming use.
19571
19572         maint.mk: prohibit definition of symbols defined by gnulib
19573         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19574         definition of symbols defined by gnulib.
19575
19576 2010-05-09  Bruno Haible  <bruno@clisp.org>
19577
19578         acl: Avoid test failure on Cygwin-hosted mingw.
19579         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19580
19581 2010-05-09  Bruno Haible  <bruno@clisp.org>
19582
19583         error: Use system's fcntl function.
19584         * lib/error.c (fcntl): Undefine.
19585
19586 2010-05-09  Jim Meyering  <meyering@redhat.com>
19587
19588         verify: adjust formatting to be more consistent
19589         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19590         argument-list '('s, and after one comma.
19591
19592 2010-05-09  Bruno Haible  <bruno@clisp.org>
19593
19594         error: More reliable output on mingw.
19595         * lib/error.c: Include <windows.h>.
19596         (is_open): New function.
19597         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19598         defined.
19599
19600 2010-05-09  Bruno Haible  <bruno@clisp.org>
19601
19602         vasnprintf: Fix syntax errors in libintl build on mingw.
19603         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19604         pad_ourselves and prec_ourselves after use.
19605
19606 2010-05-08  Bruno Haible  <bruno@clisp.org>
19607
19608         * lib/config.charset: Update comments for Cygwin 1.7.
19609         * lib/localcharset.c: Likewise.
19610
19611 2010-05-07  Jim Meyering  <meyering@redhat.com>
19612
19613         init.sh: improve comments
19614         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19615         . "${srcdir=.}/init.sh"; path_prepend_ .
19616         Add a note about path_prepend_ and the alternative of using
19617         TESTS_ENVIRONMENT.
19618
19619 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19620
19621         exclude: Unescape hashed patterns in wildcard mode.
19622         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19623         to the hash list.
19624         * tests/test-exclude8.sh: New test case.
19625         * modules/exclude-tests: Add new test.
19626
19627 2010-05-05  Eric Blake  <eblake@redhat.com>
19628
19629         verify: automate tests
19630         * modules/verify-tests: New module.
19631         * tests/test-verify.sh: New file.
19632         * tests/test-verify.c: Guard each negative test with a unique id.
19633         Also avoid warning about unused left hand of comma expressions.
19634
19635 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19636
19637         Further improvements to verify.h, suggested by Eric Blake.
19638         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19639         the GL_* versions, to avoid collision with OpenGL.
19640         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19641         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19642         than testing merely whether it's defined.
19643
19644         Modify verify.h to pacify gcc -Wredundant_decls.
19645         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19646         These use the prefix "GL_" since they're likely to be useful elsewhere.
19647         We may need to break them out into a different .h file.
19648         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19649         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19650         of verify_function__.
19651
19652 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19653
19654         Tests for module pwrite.
19655         * modules/pwrite-tests: New file.
19656         * tests/test-pwrite.sh: New file.
19657         * tests/test-pwrite.c: New file.
19658
19659         New module pwrite.
19660         * lib/unistd.in.h (pwrite): New declaration.
19661         * lib/pwrite.c: New file, from glibc with modifications.
19662         * m4/pwrite.m4: New file.
19663         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19664         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19665         REPLACE_PWRITE.
19666         * modules/pwrite: New file.
19667         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19668         REPLACE_PWRITE.
19669         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19670         * doc/posix-functions/pwrite.texi: Mention the new module.
19671
19672 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19673
19674         pread: Update documentation.
19675         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19676
19677 2010-05-04  Eric Blake  <eblake@redhat.com>
19678
19679         docs: update cygwin progress
19680         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19681         this bug.
19682         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19683         Added in cygwin 1.7.2.
19684         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19685         Likewise.
19686         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19687         Likewise.
19688         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19689         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19690         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19691         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19692         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19693         Mention nproc module.
19694         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19695         bug in cygwin 1.7.5 addition.
19696         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19697         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19698         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19699         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19700         1.7.5.
19701         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19702         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19703         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19704         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19705         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19706         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19707         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19708         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19709         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19710         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19711         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19712         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19713         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19714         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19715         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19716         Likewise.
19717         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19718         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19719         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19720         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19721         Likewise.
19722         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19723         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19724         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19725         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19726         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19727         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19728         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19729         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19730         Likewise.
19731         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19732         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19733         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19734         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19735         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19736         Likewise.
19737         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19738         Likewise.
19739         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19740         Likewise.
19741         * doc/glibc-functions/xdrrec_endofrecord.texi
19742         (xdrrec_endofrecord): Likewise.
19743         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19744         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19745         Likewise.
19746         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19747         Likewise.
19748
19749 2010-05-04  Jim Meyering  <meyering@redhat.com>
19750
19751         gendocs.sh: make its "-s FILE" option more useful
19752         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19753         $PACKAGE to reflect the probably-different basename of "FILE".
19754
19755 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19756
19757         bootstrap: don't ignore download_po_files failure
19758         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19759         failure.
19760
19761 2010-05-03  Jim Meyering  <meyering@redhat.com>
19762
19763         maint.mk: allow to pass options to gendocs.sh
19764         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19765         (gendocs_options_): New overridable variable.
19766
19767         gnu-web-doc-update: don't ignore configure or build failure
19768         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19769
19770         announce-gen: backslash-escape '@'s in --help output
19771         * build-aux/announce-gen: Fix syntax errors.
19772
19773         maint.mk, announce-gen: allow project-specific announcement mail headers
19774         * top/maint.mk (translation_project_): Define default.
19775         (announcement_Cc_, announcement_mail_headers_): Likewise.
19776         (announcement): Invoke announce-gen with new --mail-headers option.
19777         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19778
19779         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19780         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19781         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19782         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19783         line in the "err2" output file when running "make check" in verbose
19784         mode (i.e., with set -x enabled).
19785
19786 2010-05-03  Bruno Haible  <bruno@clisp.org>
19787
19788         wctob: Fix for weird platforms.
19789         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19790         argument value.
19791
19792 2010-05-03  Jim Meyering  <meyering@redhat.com>
19793
19794         maint.mk: prohibit unwarranted use of <strings.h>
19795         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19796         strings.h in a file that does not also use strcasecmp, strncasecmp,
19797         ffs or ffsll.
19798
19799         maint.mk: remove obsolete comments
19800         * top/maint.mk: Remove stale, commented-out rules.
19801
19802 2010-05-02  Bruno Haible  <bruno@clisp.org>
19803
19804         wcwidth: Declare also when it's aliased.
19805         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19806         macro.
19807
19808 2010-05-02  Bruno Haible  <bruno@clisp.org>
19809
19810         Fix regression from 2010-04-25.
19811         * gnulib-tool (func_modules_transitive_closure): Check the status of
19812         all modules, not only of the tests that are of the form foo-tests where
19813         foo is a module.
19814
19815 2010-05-02  Bruno Haible  <bruno@clisp.org>
19816
19817         wctob: Work around nasty Cygwin 1.7.2 bug.
19818         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19819         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19820
19821 2010-05-01  Bruno Haible  <bruno@clisp.org>
19822
19823         fpurge: Sharper test.
19824         * tests/test-fpurge.c (main): Add one more ftell check.
19825         * modules/fpurge-tests (Depends-on): Add ftell.
19826         Suggested by Eric Blake.
19827
19828 2010-05-01  Bruno Haible  <bruno@clisp.org>
19829
19830         ftello: Another test.
19831         * tests/test-ftello3.c: New file.
19832         * modules/ftello-tests (Files): Add it.
19833         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19834         MOSTLYCLEANFILES.
19835
19836         ftell: Another test.
19837         * tests/test-ftell3.c: New file.
19838         * modules/ftell-tests (Files): Add it.
19839         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19840         MOSTLYCLEANFILES.
19841
19842 2010-05-01  Bruno Haible  <bruno@clisp.org>
19843
19844         ftell, ftello: Work around Solaris bug.
19845         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19846         * lib/ftello.c: Include stdio-impl.h.
19847         (ftello): On Solaris, when _IOWRT is set, compute the result without
19848         looking at _IOREAD.
19849         * modules/ftello (Files): Add lib/stdio-impl.h.
19850         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19851         * doc/posix-functions/ftello.texi: Likewise.
19852         Reported by Eric Blake.
19853
19854 2010-05-01  Bruno Haible  <bruno@clisp.org>
19855
19856         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19857         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19858         the _IOWRT flag is also set.
19859
19860 2010-05-01  Bruno Haible  <bruno@clisp.org>
19861
19862         Fix doc about a HP-UX stdio bug.
19863         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19864         * doc/posix-functions/ftello.texi: Likewise.
19865
19866 2010-05-01  Bruno Haible  <bruno@clisp.org>
19867
19868         lseek test: Fix failure on Solaris.
19869         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19870         output.
19871
19872 2010-04-30  Jim Meyering  <meyering@redhat.com>
19873
19874         bootstrap: don't ignore failure to generate po*/Makevars
19875         * build-aux/bootstrap (with_gettext): Don't ignore failure
19876         to create po/Makevars or runtime-po/Makevars.
19877
19878 2010-04-29  Eric Blake  <eblake@redhat.com>
19879
19880         headers: relax license to LGPLv2+
19881         * modules/fcntl-h (License): Relax license.
19882         * modules/getopt-posix (License): Likewise.
19883         * modules/locale (License): Likewise.
19884         * modules/math (License): Likewise.
19885         * modules/pty (License): Likewise.
19886         * modules/sched (License): Likewise.
19887         * modules/search (License): Likewise.
19888         * modules/spawn (License): Likewise.
19889         * modules/stdarg (License): Likewise.
19890         * modules/sysexits (License): Likewise.
19891
19892 2010-04-29  Jim Meyering  <meyering@redhat.com>
19893
19894         inttypes: relax license to LGPLv2+
19895         * modules/inttypes (License): Relax license.
19896
19897 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19898
19899         * top/maint.mk (indent): Run twice to produce idempotent results.
19900
19901 2010-04-28  Bruno Haible  <bruno@clisp.org>
19902
19903         getdate: Generate getdate.c in the source directory.
19904         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19905         MOSTLYCLEANFILES.
19906         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19907
19908 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19909
19910         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19911         is not declared as a const *; avoid warnings in that case.
19912
19913 2010-04-28  Eric Blake  <eblake@redhat.com>
19914
19915         canonicalize-lgpl: avoid compiler warning
19916         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19917         declaration' / 'extraneous semicolon' warning with some compilers.
19918         Reported by Andreas Gruenbacher.
19919
19920 2010-04-28  Jim Meyering  <meyering@redhat.com>
19921
19922         init.sh: ensure a more reliable exit status when exiting via trap
19923         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19924         Inspired by patches from Dmitry V. Levin.
19925         Also trap on signal 3 (SIGQUIT).
19926
19927 2010-04-27  Bruno Haible  <bruno@clisp.org>
19928
19929         Update doc about utimes().
19930         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19931         'utimens' module.
19932         Reported by Andreas Gruenbacher <agruen@suse.de>.
19933
19934 2010-04-27  Eric Blake  <eblake@redhat.com>
19935
19936         full-read, full-write: relax license
19937         * modules/full-read (License): Drop to LGPLv2+.
19938         * modules/full-write (License): Likewise.
19939         * modules/safe-read (License): Likewise.
19940         * modules/safe-write (License): Likewise.
19941
19942         pthread: mention library for linking
19943         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19944
19945 2010-04-27  Jim Meyering  <meyering@redhat.com>
19946
19947         maint.mk: fix a bug introduced in last change
19948         * top/maint.mk (gl_assured_headers_): Now that all names are on
19949         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19950         is not anchored to end of word, it should be adequate.
19951
19952         maint.mk: avoid side-effect in latest syntax-check
19953         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19954         to run commands via $(shell...), and hence to incur cost only when
19955         the new rule is actually run.
19956
19957         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19958         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19959         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19960         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19961         (gl_assured_headers_, az_, AZ_): Define.
19962         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19963
19964 2010-04-26  Jim Meyering  <jim@meyering.net>
19965             Bruno Haible  <bruno@clisp.org>
19966
19967         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19968         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19969         Prompted by an exchange with Gilles Espinasse.
19970
19971 2010-04-26  Jim Meyering  <meyering@redhat.com>
19972
19973         git-version-gen: aesthetic tweak
19974         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19975         so that the command remains on a single line.
19976
19977 2010-04-26  Eric Blake  <eblake@redhat.com>
19978
19979         git-version-gen: allow use on EBCDIC hosts
19980         * build-aux/git-version-gen (dirty): Use literal rather than tying
19981         ourselves to ascii.
19982         Reported by Steve Goetze.
19983
19984 2010-04-25  Bruno Haible  <bruno@clisp.org>
19985
19986         netdb: Add support for GNULIB_POSIXCHECK.
19987         * lib/netdb.in.h: Include warn-on-use.h.
19988         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19989         functions are used when GNULIB_POSIXCHECK is defined and the
19990         getaddrinfo module is not in use.
19991         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19992         freeaddrinfo, gai_strerror, getnameinfo are declared.
19993         * modules/netdb (Depends-on): Add warn-on-use.
19994         (Makefile.am): Include warn-on-use.h in netdb.h.
19995
19996 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19997
19998         build: avoid "make check" failure without .git/ directory
19999         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20000         there is no .git/ directory.
20001
20002 2010-04-25  Bruno Haible  <bruno@clisp.org>
20003
20004         ptsname: Fix misuse of ttyname_r.
20005         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20006         of errno.
20007
20008 2010-04-25  Bruno Haible  <bruno@clisp.org>
20009
20010         ttyname_r: Make it work on Solaris 10.
20011         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20012         if the system function has the POSIX declaration. Test whether the
20013         function fails if the buffer is less than 128 bytes large.
20014         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20015         system's ttyname_r function. Provide a reasonably large buffer.
20016         * modules/ttyname_r (Depends-on): Add extensions.
20017         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20018
20019 2010-04-25  Bruno Haible  <bruno@clisp.org>
20020
20021         Use the 'extensions' module for some more functions on Solaris.
20022         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20023         module.
20024         * doc/posix-functions/ctime_r.texi: Likewise.
20025         * doc/posix-functions/getgrgid_r.texi: Likewise.
20026         * doc/posix-functions/getgrnam_r.texi: Likewise.
20027         * doc/posix-functions/getpwnam_r.texi: Likewise.
20028         * doc/posix-functions/getpwuid_r.texi: Likewise.
20029         * doc/posix-functions/readdir_r.texi: Likewise.
20030         * doc/posix-functions/sigwait.texi: Likewise.
20031         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20032         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20033
20034 2010-04-25  Bruno Haible  <bruno@clisp.org>
20035
20036         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20037         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20038         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20039         * lib/ttyname_r.c: Include <limits.h>.
20040         (ttyname_r): Define using the system's ttyname_r function, if it exists
20041         and not on Solaris.
20042         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20043         set.
20044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20045         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20046         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20047         Reported by Simon Josefsson.
20048
20049 2010-04-25  Bruno Haible  <bruno@clisp.org>
20050
20051         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20052         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20053         * doc/posix-functions/ctime_r.texi: Likewise.
20054         * doc/posix-functions/getgrgid_r.texi: Likewise.
20055         * doc/posix-functions/getgrnam_r.texi: Likewise.
20056         * doc/posix-functions/getlogin_r.texi: Likewise.
20057         * doc/posix-functions/getpwnam_r.texi: Likewise.
20058         * doc/posix-functions/getpwuid_r.texi: Likewise.
20059         * doc/posix-functions/readdir_r.texi: Likewise.
20060         * doc/posix-functions/sigwait.texi: Likewise.
20061         * doc/posix-functions/ttyname_r.texi: Likewise.
20062         Reported by Simon Josefsson.
20063
20064 2010-04-25  Bruno Haible  <bruno@clisp.org>
20065
20066         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20067         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20068         also to --create-testdir.
20069         (func_acceptable): Don't consider the status of *-tests modules here.
20070         (func_modules_transitive_closure): Consider it here, before including a
20071         test module.
20072         (func_import, func_create_testdir): Set inc_all_direct_tests,
20073         inc_all_indirect_tests.
20074         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20075         --create-testdir and --create-megatestdir.
20076
20077 2010-04-25  Bruno Haible  <bruno@clisp.org>
20078
20079         gnulib-tool: Add --without-*-tests options.
20080         * gnulib-tool (func_usage): Document the --without-*-tests options.
20081         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20082         excl_unportable_tests): New variables.
20083         Fail if they are specified with --import or --update.
20084         (func_acceptable): Respect the excl_*_tests variables.
20085         (func_import): Set the excl_*_tests variables to empty.
20086
20087 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20088             Bruno Haible  <bruno@clisp.org>
20089
20090         Work around a MacOS X 10.4 bug with openpty.
20091         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20092         * tests/test-openpty.c (main): Close the master side explicitly.
20093
20094 2010-04-25  Bruno Haible  <bruno@clisp.org>
20095
20096         strnlen: Fix a C++ test error on MacOS X and Solaris.
20097         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20098         the function is not declared.
20099         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20100         Simon Josefsson.
20101
20102 2010-04-24  Bruno Haible  <bruno@clisp.org>
20103
20104         Avoid a gcc warning.
20105         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20106         of correct type for %08lx directive.
20107         Reported by Eric Blake.
20108
20109 2010-04-24  Bruno Haible  <bruno@clisp.org>
20110
20111         vasnprintf: Correct errno value in case of out-of-memory.
20112         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20113         or sprintf. Use the errno value from SNPRINTF or sprintf.
20114         Reported by Ian Beckwith <ianb@erislabs.net>.
20115
20116 2010-04-24  Bruno Haible  <bruno@clisp.org>
20117
20118         ansi-c++-opt: Find correct compiler when cross-compiling.
20119         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20120         AC_CHECK_PROGS.
20121         Reported by Simon Josefsson.
20122
20123 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20124
20125         vc-list-files: Add support for subversion
20126         * build-aux/vc-list-files: Use "svn list" to generate the list of
20127         files controlled by subversion.
20128
20129 2010-04-23  Jim Meyering  <meyering@redhat.com>
20130
20131         vc-list-files tests: convert to use init.sh
20132         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20133         path_prepend_.
20134         Use Exit, not exit.
20135         Use skip_ rather than open coding it.
20136         Remove trap set-up and compare definitions.
20137         * tests/test-vc-list-files-git.sh: Likewise.
20138         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20139
20140 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20141
20142         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20143         backup files.
20144
20145 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20146
20147         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20148
20149 2010-04-20  Eric Blake  <eblake@redhat.com>
20150
20151         tests: be robust to ignored SIGPIPE
20152         * tests/test-select-in.sh: Consume all output.
20153         * tests/test-lseek.sh: Check correct exit status, while avoiding
20154         EPIPE.
20155
20156 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20157             Bruno Haible  <bruno@clisp.org>
20158
20159         visibility: Don't use -fvisibility if it leads to a warning.
20160         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20161         yes, don't pretend that visibility works if it leads to a warning.
20162         Reported by Mike Gran <spk121@yahoo.com>.
20163
20164 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20165
20166         * build-aux/bootstrap: Use "git -h" for testing for supported options
20167         instead of "git --help".  The short-form option only shows a summary,
20168         and doesn't layout the full man page.  Grep for the full option name
20169         in the summary, too.
20170
20171 2010-04-19  Bruno Haible  <bruno@clisp.org>
20172
20173         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20174         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20175         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20176         mention of RELOCATABLE_STRIP.
20177         Reported by Sylvain Beucler <beuc@beuc.net>.
20178
20179 2010-04-19  Bruno Haible  <bruno@clisp.org>
20180
20181         * lib/diffseq.h: Fix typo in comment.
20182         Reported by Eric Blake.
20183
20184 2010-04-19  Bruno Haible  <bruno@clisp.org>
20185
20186         ioctl: Move autoconf macro to a .m4 file.
20187         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20188         * modules/ioctl (Files): Add it.
20189         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20190         Reported by Ian Beckwith <ianb@erislabs.net>.
20191
20192 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20193             Bruno Haible  <bruno@clisp.org>
20194
20195         diffseq: Accommodate use-case with abstract arrays.
20196         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20197         is not defined.
20198         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20199         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20200
20201 2010-04-18  Bruno Haible  <bruno@clisp.org>
20202
20203         * doc/posix-headers/stdbool.texi: More precise wording.
20204
20205 2010-04-17  Jim Meyering  <meyering@redhat.com>
20206
20207         maint.mk: use gnu-style indentation in an embedded perl script
20208         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20209         Rename variable: s/two/last_two_bytes/
20210
20211 2010-04-16  Eric Blake  <eblake@redhat.com>
20212
20213         test-stdbool: skip test that fails with Solaris CC
20214         * tests/test-stdbool.c (f): Skip test that causes compilation
20215         error under buggy C++ compiler.
20216         * lib/stdbool.in.h: Document the limitation.
20217         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20218
20219         setenv: allow compilation with C++
20220         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20221         register keyword.
20222
20223         stdint: allow test to pass with C++
20224         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20225
20226         getopt: allow compilation with C++
20227         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20228         struct.
20229         * lib/getopt.c (_getopt_internal_r): Use correct type.
20230         Reported by Dagobert Michelson, via Joel E. Denny.
20231
20232 2010-04-16  Bruno Haible  <bruno@clisp.org>
20233
20234         Override netdb.h always.
20235         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20236         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20237         Reported by Ludovic Courtès <ludo@gnu.org>.
20238
20239 2010-04-15  Bruno Haible  <bruno@clisp.org>
20240
20241         openpty: Fix mistake from 2010-03-21.
20242         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20243         Reported by Simon Josefsson.
20244
20245 2010-04-15  Eric Blake  <eblake@redhat.com>
20246
20247         test-forkpty: fix expected signature
20248         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20249         Reported by Simon Josefsson.
20250
20251 2010-04-15  Jim Meyering  <meyering@redhat.com>
20252
20253         maint.mk: texinfo_suffix_re_: correct the default regexp
20254         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20255
20256         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20257         make it configurable via texinfo_suffix_re_.
20258
20259 2010-04-14  Eric Blake  <eblake@redhat.com>
20260
20261         strtok_r: relax license to LGPLv2+
20262         * modules/strtok_r (License): Relax license.
20263         Reported by Matthias Bolte.
20264
20265 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20266
20267         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20268         version 1.4.4 by default instead of requiring the libgcrypt
20269         version used during build.  This makes it possible to use the
20270         application with older but still binary compatible libgcrypt
20271         versions.
20272
20273 2010-04-13  Eric Blake  <eblake@redhat.com>
20274
20275         getopt-gnu: match recent glibc fixes and posix ruling
20276         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20277         '+' handling, when requesting extensions.
20278         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20279         'W;' handling.
20280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20281         * doc/posix-functions/getopt.texi (getopt): Document this.
20282         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20283         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20284         Likewise.
20285
20286         getopt: merge bug fixes from glibc
20287         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20288         diagnostics.  Honor '+:' correctly.  Reject ';'.
20289
20290         getopt-posix: detect MacOS bug
20291         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20292         optind when missing a required argument.
20293         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20294         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20295         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20296         Likewise.
20297
20298         getopt-posix: avoid spurious failure on Solaris
20299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20300         an indicator that setting optind=1 is sufficient for reset.
20301
20302         getopt-posix: avoid spurious failure on FreeBSD
20303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20304         in POSIX mode, since the m4 test uses it.
20305
20306         gnulib-tool: silence warning on BSD sh
20307         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20308
20309 2010-04-13  Jim Meyering  <meyering@redhat.com>
20310
20311         doc: users.txt: GNU patch now uses gnulib
20312         * users.txt: Add patch.
20313
20314 2010-04-12  Jim Meyering  <meyering@redhat.com>
20315
20316         maint.mk: generate more concise timing data for syntax-check rules
20317         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20318         " done" from each line that reports a syntax-check test duration.
20319
20320 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20321
20322         git-version-gen: use "git update-index..." rather than "git status"
20323         * build-aux/git-version-gen: Use git update-index --refresh, not
20324         "git status".  With some versions of git, "git status" would fail
20325         to update the index and result in an unwarranted "-dirty" suffix.
20326
20327 2010-04-11  Jim Meyering  <meyering@redhat.com>
20328
20329         openat: correct formatting (no semantic change)
20330         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20331         Suggested by Bruno Haible.
20332
20333 2010-04-11  Bruno Haible  <bruno@clisp.org>
20334
20335         Stricter declaration checking in testdirs.
20336         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20337         If for_tests is true, augment AM_CPPFLAGS to define
20338         GNULIB_STRICT_CHECKING.
20339         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20340         GNULIB_STRICT_CHECKING is defined, verify that the function is
20341         declared.
20342
20343 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20344             Bruno Haible  <bruno@clisp.org>
20345
20346         libunistring: Improve configure output.
20347         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20348         Don't say "consider installing GNU libunistring" when checking again
20349         with libiconv.
20350
20351 2010-04-11  Bruno Haible  <bruno@clisp.org>
20352
20353         libunistring: Correct value of $LTLIBUNISTRING.
20354         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20355         correct the value of $LTLIBUNISTRING.
20356
20357 2010-04-11  Bruno Haible  <bruno@clisp.org>
20358
20359         havelib: Add static libraries to LIBS in the right order.
20360         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20361         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20362
20363 2010-04-11  Bruno Haible  <bruno@clisp.org>
20364
20365         libunistring: Detect libunistring also when it depends on libiconv.
20366         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20367         the second AC_LIB_HAVE_LINKFLAGS invocation.
20368
20369 2010-04-11  James Youngman  <jay@gnu.org>
20370
20371         close-stream: declare local scalars to be "const"
20372         * lib/close-stream.c (close_stream): Make boolean variables const
20373         to document the fact that we set but do not change them.
20374
20375 2010-04-11  Bruno Haible  <bruno@clisp.org>
20376
20377         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20378
20379 2010-04-11  Jim Meyering  <meyering@redhat.com>
20380
20381         maint.mk: don't include dist-check.mk
20382         * top/maint.mk: Remove bogus include directive.
20383
20384         maint.mk: improve empty-line-at-EOF check
20385         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20386         solution, rather than tail+Perl-based one.  The latter would read
20387         a few kilobytes from the end of each file, and did not handle empty
20388         files properly.
20389
20390         maint.mk: print the elapsed time for each syntax-check rule
20391         * top/maint.mk (sc_m_rules_): Save start time in a file.
20392         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20393         (local-check): Interpose the .z rules
20394
20395 2010-04-11  Jim Meyering  <meyering@redhat.com>
20396
20397         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20398         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20399         empty file with one that ends in an empty line.
20400
20401 2010-04-10  Bruno Haible  <bruno@clisp.org>
20402
20403         mkdir: Make it work on mingw64.
20404         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20405         * lib/mkdir.c: Update comment.
20406         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20407
20408 2010-04-10  Bruno Haible  <bruno@clisp.org>
20409
20410         Don't override improved macro from newer autoconf.
20411         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20412         autoconf >= 2.62.
20413         Reported by Joel E. Denny <jdenny@clemson.edu>.
20414
20415 2010-04-10  Jim Meyering  <meyering@redhat.com>
20416
20417         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20418         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20419
20420         maint.mk: correct a diagnostic
20421         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20422         in diagnostic; now use $prohibit.
20423
20424 2010-04-10  Bruno Haible  <address@hidden>
20425
20426         fchownat: Fix a C++ test error on Solaris 8.
20427         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20428         the function does not exist.
20429
20430 2010-04-10  Bruno Haible  <bruno@clisp.org>
20431
20432         vasnprintf: Add more tests.
20433         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20434         (test_function): Test converting an invalid wide string.
20435
20436         vasnprintf: Correct handling of unconvertible wide string arguments.
20437         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20438         VASNPRINTF.
20439         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20440         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20441         smaller than the expected maximum need for the directive. Set errno to
20442         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20443         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20444         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20445         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20446         * modules/vasnprintf (Files): Add m4/printf.m4.
20447         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20448
20449 2010-04-10  Bruno Haible  <bruno@clisp.org>
20450
20451         vasnprintf: Fix crash in %ls directive.
20452         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20453         string is passed as argument to %ls, with no precision and no width.
20454         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20455
20456 2010-04-10  Bruno Haible  <bruno@clisp.org>
20457
20458         vasnprintf: Fix multiple test failures on mingw.
20459         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20460         _snprintf, or snwprintf, not _snwprintf.
20461
20462 2010-04-10  Bruno Haible  <bruno@clisp.org>
20463
20464         write: Fix a C++ test error on mingw.
20465         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20466
20467 2010-04-10  Bruno Haible  <bruno@clisp.org>
20468
20469         vasnprintf test: Reduce code duplication.
20470         * tests/test-vasnprintf.c (test_function): New function, extracted from
20471         test_vasnprintf.
20472         (test_vasnprintf, test_asnprintf): Invoke it.
20473
20474 2010-04-10  Bruno Haible  <bruno@clisp.org>
20475
20476         strnlen: Fix warning in C++ mode on MacOS X.
20477         * lib/string.in.h (strnlen): Use the modern idiom.
20478         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20479         defining strnlen as a macro already in <config.h>.
20480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20481         REPLACE_STRNLEN.
20482         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20483         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20484
20485 2010-04-08  James Youngman  <jay@gnu.org>
20486
20487         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20488         the example.
20489
20490 2010-04-09  Jim Meyering  <meyering@redhat.com>
20491
20492         maint.mk: print better diagnostic when there is no $(_hv_file)
20493         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20494         announce that when $(_hv_file) (aka help-version) does not exist.
20495
20496         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20497         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20498         not try to interpret its random input bytes.  Jarno Rajahalme reported
20499         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20500         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20501         (mktempd_): Likewise, just in case.
20502
20503         ftruncate: add two years to projected module removal date: 2012
20504         * m4/ftruncate.m4: Adjust comments.
20505
20506         ftruncate: mark module as obsolete; even MinGW provides it, now
20507         * modules/ftruncate (Status): Obsolete.
20508         (Notice): Say that.
20509         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20510         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20511
20512 2010-04-08  Bruno Haible  <bruno@clisp.org>
20513
20514         Fix side effects from tests-related modules.
20515         * modules/dprintf-posix (Comment): New section.
20516         * modules/fprintf-posix (Comment): Likewise.
20517         * modules/obstack-printf-posix (Comment): Likewise.
20518         * modules/printf-posix (Comment): Likewise.
20519         * modules/snprintf-posix (Comment): Likewise.
20520         * modules/sprintf-posix (Comment): Likewise.
20521         * modules/vasnprintf-posix (Comment): Likewise.
20522         * modules/vasprintf-posix (Comment): Likewise.
20523         * modules/vdprintf-posix (Comment): Likewise.
20524         * modules/vfprintf-posix (Comment): Likewise.
20525         * modules/vprintf-posix (Comment): Likewise.
20526         * modules/vsnprintf-posix (Comment): Likewise.
20527         * modules/vsprintf-posix (Comment): Likewise.
20528         * modules/xprintf-posix (Comment): Likewise.
20529         * modules/xvasprintf-posix (Comment): Likewise.
20530         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20531         * modules/floorf-tests (Depends-on): Likewise.
20532         * modules/round-tests (Depends-on): Likewise.
20533         * modules/roundf-tests (Depends-on): Likewise.
20534         * modules/trunc-tests (Depends-on): Likewise.
20535         * modules/truncf-tests (Depends-on): Likewise.
20536         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20537         'fprintf-posix' module is not present.
20538         * tests/test-floorf2.c (check): Likewise.
20539         * tests/test-trunc2.c (check): Likewise.
20540         * tests/test-truncf2.c (check): Likewise.
20541         * tests/test-round2.c (equal): Likewise.
20542         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20543
20544 2010-04-07  Karl Berry  <karl@gnu.org>
20545
20546         * config/srclist.txt,
20547         * config/srclistvars.sh,
20548         * config/srclist-update: doc fixes.
20549
20550 2010-04-07  Jim Meyering  <meyering@redhat.com>
20551
20552         maint.mk: add a PATH crosschecking syntax-check rule
20553         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20554         Useful if you use a test like the one in help-version (coreutils,
20555         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20556         printed by prog --version.
20557
20558 2010-04-06  Bruno Haible  <bruno@clisp.org>
20559
20560         Fix link error on mingw.
20561         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20562         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20563
20564 2010-04-06  Bruno Haible  <bruno@clisp.org>
20565
20566         Assume rmdir exists.
20567         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20568
20569 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20570
20571         doc: update users.txt
20572         * users.txt: Add gcal.
20573
20574 2010-04-06  Jim Meyering  <meyering@redhat.com>
20575
20576         init.sh: simply unset TMPDIR rather than risking env -i
20577         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20578         although it probably works fine on all Unix-based systems, some
20579         systems (Cygwin?) cannot tolerate a totally cleared environment.
20580         Suggestion from Eric Blake.
20581
20582 2010-04-06  Jim Meyering  <meyering@redhat.com>
20583
20584         init.sh: portability fix: use env's POSIX-specified -i option not -u
20585         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20586         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20587
20588 2010-04-05  Bruno Haible  <bruno@clisp.org>
20589
20590         btowc: Work around Cygwin 1.7.2 bug.
20591         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20592         does not map NUL to 0.
20593         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20594
20595 2010-04-05  Bruno Haible  <bruno@clisp.org>
20596
20597         Make the multithread modules work on Cygwin 1.7.2.
20598         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20599         imported symbols can be declared weak, so that it returns "no" on
20600         Cygwin 1.7.2.
20601
20602 2010-04-05  Bruno Haible  <bruno@clisp.org>
20603
20604         Use the module 'strncat'.
20605         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20606
20607         Tests for module 'strncat'.
20608         * modules/strncat-tests: New file.
20609         * tests/test-strncat.c: New file.
20610
20611         New module 'strncat'.
20612         * lib/string.in.h (strncat): New declaration.
20613         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20614         * m4/strncat.m4: New file, based on m4/memchr.m4.
20615         * modules/strncat: New file.
20616         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20617         is declared.
20618         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20619         REPLACE_STRNCAT.
20620         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20621         REPLACE_STRNCAT.
20622         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20623         module.
20624         * tests/test-string-c++.cc: Check signature of strncat.
20625
20626 2010-04-05  Jim Meyering  <meyering@redhat.com>
20627
20628         xstrtoumax-tests: convert to use init.sh
20629         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20630         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20631         Use Exit, not exit.
20632         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20633
20634         xstrtoimax-tests: convert to use init.sh
20635         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20636         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20637         Use Exit, not exit.
20638         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20639
20640 2010-04-05  Bruno Haible  <bruno@clisp.org>
20641
20642         sys_socket: Avoid #define replacements in C++ mode.
20643         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20644         warning to the function if possible, rather than #defining the symbol
20645         to a dysfunctional alias.
20646
20647 2010-04-05  Bruno Haible  <bruno@clisp.org>
20648
20649         fseeko: Fix C++ test error on mingw.
20650         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20651         gl_FUNC_FSEEKO.
20652         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20653         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20654         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20655         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20656
20657 2010-04-05  Bruno Haible  <bruno@clisp.org>
20658
20659         duplocale: Improve test output.
20660         * tests/test-duplocale.c (main): Print reason for skipped test.
20661
20662 2010-04-05  Bruno Haible  <bruno@clisp.org>
20663
20664         Assume rmdir exists.
20665         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20666         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20667
20668 2010-04-05  Bruno Haible  <bruno@clisp.org>
20669
20670         Fix link error on Solaris 8 with cc.
20671         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20672
20673 2010-04-05  Bruno Haible  <bruno@clisp.org>
20674
20675         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20676         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20677
20678 2010-04-05  Bruno Haible  <bruno@clisp.org>
20679
20680         vasprintf: Update documentation.
20681         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20682
20683 2010-04-05  Bruno Haible  <bruno@clisp.org>
20684
20685         ptsname: Improve test.
20686         * tests/test-ptsname.c (main): Also try the various master names of BSD
20687         systems.
20688
20689 2010-04-05  Bruno Haible  <bruno@clisp.org>
20690
20691         memchr: Avoid a possible C++ test error.
20692         * lib/string.in.h (memchr): Provide declaration if function is missing.
20693         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20694         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20696         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20697
20698 2010-04-05  Bruno Haible  <bruno@clisp.org>
20699
20700         strtok_r: Improve idiom.
20701         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20702         AC_LIBOBJ is used.
20703
20704 2010-04-05  Bruno Haible  <bruno@clisp.org>
20705
20706         strdup: Improve idiom.
20707         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20708         AC_LIBOBJ is used.
20709         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20710         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20711         when AC_LIBOBJ is used.
20712
20713 2010-04-05  Bruno Haible  <bruno@clisp.org>
20714
20715         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20716         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20717         don't set REPLACE_MBSINIT to 1.
20718         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20719         don't set REPLACE_MBRTOWC to 1.
20720         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20721         exist, don't set REPLACE_MBSRTOWCS to 1.
20722         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20723         exist, don't set REPLACE_MBSNRTOWCS to 1.
20724         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20725         don't set REPLACE_WCRTOMB to 1.
20726         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20727         exist, don't set REPLACE_WCSRTOMBS to 1.
20728         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20729         exist, don't set REPLACE_WCSNRTOMBS to 1.
20730
20731 2010-04-05  Bruno Haible  <bruno@clisp.org>
20732
20733         ldexpl: Improve idiom.
20734         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20735         make sure to set HAVE_DECL_LDEXPL to 0.
20736
20737 2010-04-05  Jim Meyering  <meyering@redhat.com>
20738
20739         xstrtol-tests: convert to use init.sh
20740         * modules/xstrtol-tests (Files): Add tests/init.sh.
20741         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20742         Use Exit, not exit.
20743         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20744
20745         atexit-tests: convert to use init.sh
20746         * modules/atexit-tests (Files): Add tests/init.sh.
20747         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20748         Use Exit, not exit.
20749         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20750
20751         init.sh: fix typo
20752         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20753
20754         init.sh: make it easier for a test script to write to the tty, ...
20755         when using automake's parallel-tests mode.
20756         * tests/init.sh (stderr_fileno_): Define overridable variable.
20757         (warn_): New function, to use it.
20758         (fail_, skip_, framework_failure_): Use warn_.
20759
20760 2010-04-04  Bruno Haible  <bruno@clisp.org>
20761
20762         btowc: Avoid warning.
20763         * lib/btowc.c: Include <stdlib.h>.
20764         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20765
20766 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20767             Bruno Haible  <bruno@clisp.org>
20768
20769         wchar: Port to NetBSD 1.5.
20770         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20771         * lib/wctype.in.h (WEOF): Likewise.
20772
20773 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20774             Bruno Haible  <bruno@clisp.org>
20775
20776         Port extended stdio to NetBSD 1.5.
20777         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20778         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20779         older.
20780
20781 2010-04-04  Bruno Haible  <bruno@clisp.org>
20782
20783         string: Remove unused substitution.
20784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20785         HAVE_DECL_STRERROR.
20786         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20787
20788 2010-04-04  Bruno Haible  <bruno@clisp.org>
20789
20790         strtod: Avoid a possible C++ test error.
20791         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20792         set REPLACE_STRTOD.
20793
20794 2010-04-04  Bruno Haible  <bruno@clisp.org>
20795
20796         strerror: Update documentation.
20797         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20798
20799 2010-04-04  Bruno Haible  <bruno@clisp.org>
20800
20801         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20802         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20803         _GL_CXXALIAS_SYS_CAST.
20804
20805 2010-04-04  Bruno Haible  <bruno@clisp.org>
20806
20807         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20808         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20809         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20810         REPLACE_FREXPL to 1.
20811         * doc/posix-functions/frexpl.texi: Update documentation.
20812
20813 2010-04-04  Bruno Haible  <bruno@clisp.org>
20814
20815         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20816         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20817
20818 2010-04-04  Bruno Haible  <bruno@clisp.org>
20819
20820         Implement nanosleep for native Windows.
20821         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20822
20823 2010-04-04  Bruno Haible  <bruno@clisp.org>
20824
20825         math: Fix some C++ test errors on Solaris 8.
20826         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20827
20828 2010-04-04  Bruno Haible  <bruno@clisp.org>
20829
20830         math: Fix some C++ test errors on Cygwin.
20831         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20832         truncl): Provide declaration if the system does not have it.
20833         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20834         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20835         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20836         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20837         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20838         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20839         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20840         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20841         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20842         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20843         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20844         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20845         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20846         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20847         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20848         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20850         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20851         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20852         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20853         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20854         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20855
20856 2010-04-04  Bruno Haible  <bruno@clisp.org>
20857
20858         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20859         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20860         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20861         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20862         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20863         * m4/isinf.m4 (gl_ISINF): Likewise.
20864         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20865
20866 2010-04-04  Bruno Haible  <bruno@clisp.org>
20867
20868         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20869         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20870
20871 2010-04-04  Bruno Haible  <bruno@clisp.org>
20872
20873         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20874         * modules/tmpfile (configure.ac): Update.
20875
20876         tmpfile: Fix C++ test error on mingw.
20877         * lib/stdio.in.h (tmpfile): New declaration.
20878         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20879         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20880         * modules/tmpfile (Depends-on): Add stdio.
20881         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20882         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20883         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20884         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20885         REPLACE_TMPFILE.
20886         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20887
20888 2010-04-04  Bruno Haible  <bruno@clisp.org>
20889
20890         ioctl: Fix C++ test error on mingw.
20891         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20892         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20893         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20894
20895 2010-04-03  Bruno Haible  <bruno@clisp.org>
20896
20897         wcwidth: Fix C++ test error on mingw.
20898         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20900         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20901
20902 2010-04-03  Bruno Haible  <bruno@clisp.org>
20903
20904         nanosleep: Fix C++ test error on mingw.
20905         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20906         * lib/time.in.h (nanosleep): Use modern idiom.
20907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20908         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20909         REPLACE_NANOSLEEP to 1.
20910         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20911         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20912
20913 2010-04-03  Bruno Haible  <bruno@clisp.org>
20914
20915         strptime: Fix C++ test error on mingw.
20916         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20917         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20918         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20919         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20920         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20921         not REPLACE_STRPTIME.
20922         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20923         REPLACE_STRPTIME.
20924
20925 2010-04-03  Bruno Haible  <bruno@clisp.org>
20926
20927         timegm: Fix C++ test error on mingw.
20928         * lib/time.in.h (timegm): Use modern idiom.
20929         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20930         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20931         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20932         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20933
20934 2010-04-03  Bruno Haible  <bruno@clisp.org>
20935
20936         timegm: Assume declaration if function exists.
20937         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20938         if it exists. Don't clobber ac_cv_func_timegm.
20939
20940 2010-04-03  Bruno Haible  <bruno@clisp.org>
20941
20942         time_r: Fix C++ test error on mingw.
20943         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20944         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20945         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20946         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20947         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20948
20949 2010-04-03  Bruno Haible  <bruno@clisp.org>
20950
20951         time_r: Minor updates.
20952         * modules/time_r (Description): Mention the provided functions.
20953         * lib/time_r.c: Don't include <string.h>.
20954         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20955         * doc/posix-functions/localtime_r.texi: Likewise.
20956
20957 2010-04-03  Bruno Haible  <bruno@clisp.org>
20958
20959         time: Fix regression introduced on 2010-03-08.
20960         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20961         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20962
20963 2010-04-03  Jim Meyering  <meyering@redhat.com>
20964
20965         maint.mk: don't silently disable project-specific syntax-check rules
20966         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20967         that they need to convert their project-specific syntax-check rules
20968         to use the new _sc_search_regexp.
20969
20970 2010-04-03  Bruno Haible  <bruno@clisp.org>
20971
20972         fchdir: Fix regression introduced on 2010-03-08.
20973         * lib/unistd.in.h (fchdir): Fix declaration.
20974         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20976         REPLACE_FCHDIR.
20977         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20978         REPLACE_FCHDIR.
20979
20980 2010-04-03  Bruno Haible  <bruno@clisp.org>
20981
20982         getpagesize: Fix C++ test error on mingw.
20983         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20984         system does not declare the function.
20985         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20986         declared.
20987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20988         HAVE_DECL_GETPAGESIZE.
20989         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20990
20991 2010-04-03  Bruno Haible  <bruno@clisp.org>
20992
20993         stdio: Make C++ tests work on mingw.
20994         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20995         does not declare the function.
20996
20997 2010-04-03  Bruno Haible  <bruno@clisp.org>
20998
20999         ftello: Fix C++ test error on mingw.
21000         * lib/stdio.in.h (ftello): Use modern idiom.
21001         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21002         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21003         is missing and that it needs to be replaced.
21004         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21006         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21007
21008 2010-04-03  Bruno Haible  <bruno@clisp.org>
21009
21010         fseeko: Fix C++ test error on mingw.
21011         * lib/stdio.in.h (fseeko): Use modern idiom.
21012         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21013         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21014         is missing and that it needs to be replaced.
21015         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21017         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21018
21019 2010-04-03  Bruno Haible  <bruno@clisp.org>
21020
21021         mkstemp: Fix C++ test error on mingw.
21022         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21023         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21024         function is missing and that it needs to be replaced.
21025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21026         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21027
21028 2010-04-03  Bruno Haible  <bruno@clisp.org>
21029
21030         stpncpy: Fix C++ test error on mingw.
21031         * lib/string.in.h (stpncpy): Use modern idiom.
21032         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21033         function is missing and that it needs to be replaced.
21034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21035         REPLACE_STPNCPY.
21036         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21037
21038 2010-04-03  Bruno Haible  <bruno@clisp.org>
21039
21040         sys_stat: Fix C++ test error on mingw.
21041         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21042         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21043
21044 2010-04-03  Bruno Haible  <bruno@clisp.org>
21045
21046         pty: Update doc.
21047         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21048
21049 2010-04-03  Bruno Haible  <bruno@clisp.org>
21050
21051         unistd: Fix C++ test error on mingw.
21052         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21053
21054 2010-04-03  Bruno Haible  <bruno@clisp.org>
21055
21056         Update doc regarding mingw.
21057         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21058         * doc/glibc-functions/login_tty.texi: Likewise.
21059         * doc/glibc-functions/forkpty.texi: Likewise.
21060
21061 2010-04-03  Bruno Haible  <bruno@clisp.org>
21062
21063         stdlib: Avoid compilation failure of c-strtold on mingw.
21064         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21065
21066 2010-04-03  Bruno Haible  <bruno@clisp.org>
21067
21068         locale: Make C++ tests work on Cygwin and mingw.
21069         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21070         cannot provide the function.
21071         Reported by Simon Josefsson.
21072
21073 2010-04-03  Bruno Haible  <bruno@clisp.org>
21074
21075         localename: Port to MacOS X 10.6.
21076         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21077         memory layout of the locales in MacOS X 10.6 as well.
21078         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21079
21080 2010-04-02  Bruno Haible  <bruno@clisp.org>
21081
21082         gnulib-tool: Ensure that long-running tests are executed last.
21083         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21084         running tests after the one for the other tests.
21085
21086 2010-04-02  Bruno Haible  <bruno@clisp.org>
21087
21088         gnulib-tool: Ensure the tests in the main directory are executed first.
21089         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21090         start with the current directory.
21091
21092 2010-04-02  Bruno Haible  <bruno@clisp.org>
21093
21094         Tests for module 'havelib', moved here from GNU gettext.
21095         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21096         modifications.
21097         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21098         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21099         with modifications.
21100         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21101         modifications.
21102         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21103         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21104         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21105         with modifications.
21106         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21107         with modifications.
21108         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21109         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21110         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21111         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21112         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21113         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21114         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21115         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21116         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21117         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21118         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21119         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21120         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21121         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21122         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21123         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21124         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21125         with modifications.
21126         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21127         with modifications.
21128         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21129         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21130         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21131         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21132         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21133         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21134         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21135         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21136         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21137         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21138         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21139         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21140         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21141         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21142         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21143         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21144         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21145         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21146         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21147         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21148         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21149         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21150         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21151         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21152         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21153         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21154         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21155         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21156         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21157         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21158         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21159         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21160         * tests/havelib/rpathx/rpathx.c: New file, from
21161         gettext/autoconf-lib-link.
21162         * tests/havelib/rpathx/Makefile.am: New file, from
21163         gettext/autoconf-lib-link.
21164         * tests/havelib/rpathx/configure.ac: New file, from
21165         gettext/autoconf-lib-link with modifications.
21166         * tests/havelib/rpathy/rpathy.c: New file, from
21167         gettext/autoconf-lib-link.
21168         * tests/havelib/rpathy/Makefile.am: New file, from
21169         gettext/autoconf-lib-link.
21170         * tests/havelib/rpathy/configure.ac: New file, from
21171         gettext/autoconf-lib-link with modifications.
21172         * tests/havelib/rpathz/rpathz.c: New file, from
21173         gettext/autoconf-lib-link.
21174         * tests/havelib/rpathz/Makefile.am: New file, from
21175         gettext/autoconf-lib-link.
21176         * tests/havelib/rpathz/configure.ac: New file, from
21177         gettext/autoconf-lib-link with modifications.
21178         * tests/havelib/rpathlx/usex.c: New file, from
21179         gettext/autoconf-lib-link.
21180         * tests/havelib/rpathlx/Makefile.am: New file, from
21181         gettext/autoconf-lib-link.
21182         * tests/havelib/rpathlx/configure.ac: New file, from
21183         gettext/autoconf-lib-link with modifications.
21184         * tests/havelib/rpathly/usey.c: New file, from
21185         gettext/autoconf-lib-link.
21186         * tests/havelib/rpathly/Makefile.am: New file, from
21187         gettext/autoconf-lib-link.
21188         * tests/havelib/rpathly/configure.ac: New file, from
21189         gettext/autoconf-lib-link with modifications.
21190         * tests/havelib/rpathlz/usez.c: New file, from
21191         gettext/autoconf-lib-link.
21192         * tests/havelib/rpathlz/Makefile.am: New file, from
21193         gettext/autoconf-lib-link.
21194         * tests/havelib/rpathlz/configure.ac: New file, from
21195         gettext/autoconf-lib-link with modifications.
21196         * tests/havelib/rpathlyx/usey.c: New file, from
21197         gettext/autoconf-lib-link.
21198         * tests/havelib/rpathlyx/Makefile.am: New file, from
21199         gettext/autoconf-lib-link.
21200         * tests/havelib/rpathlyx/configure.ac: New file, from
21201         gettext/autoconf-lib-link with modifications.
21202         * tests/havelib/rpathlzyx/usez.c: New file, from
21203         gettext/autoconf-lib-link.
21204         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21205         gettext/autoconf-lib-link.
21206         * tests/havelib/rpathlzyx/configure.ac: New file, from
21207         gettext/autoconf-lib-link with modifications.
21208         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21209         with modifications.
21210
21211 2010-04-02  Bruno Haible  <bruno@clisp.org>
21212
21213         gnulib-tool: Create distributed built sources also for the tests.
21214         * gnulib-tool (func_create_testdir): Also generate distributed built
21215         sources in the tests directory.
21216
21217 2010-04-02  Bruno Haible  <bruno@clisp.org>
21218
21219         gnulib-tool: Obey user's environment variables.
21220         * gnulib-tool (func_create_testdir): When creating built sources,
21221         respect the environment variables for autoconf, automake, etc. given by
21222         the user.
21223
21224 2010-04-02  Bruno Haible  <bruno@clisp.org>
21225
21226         gnulib-tool: Provide the value of --m4-base to modules.
21227         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21228         of gl_m4_base.
21229
21230 2010-04-02  Eric Blake  <eblake@redhat.com>
21231
21232         maint.mk: fix some fallout
21233         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21234         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21235
21236 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21237
21238         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21239         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21240         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21241         (sc_cast_of_x_alloc_return_value): Likewise.
21242         (sc_cast_of_alloca_return_value): Likewise.
21243         (sc_space_tab): Likewise.
21244         (sc_prohibit_atoi_atof): Likewise.
21245         (sc_prohibit_magic_number_exit): Likewise.
21246         (sc_error_exit_success): Likewise.
21247         (sc_file_system): Likewise.
21248         (sc_prohibit_have_config_h): Likewise.
21249         (sc_require_config_h): Likewise.
21250         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21251         (sc_obsolete_symbols): Likewise.
21252         (sc_changelog): Likewise.
21253         (sc_program_name): Likewise.
21254         (sc_the_the): Likewise.
21255         (sc_trailing_blank): Likewise.
21256         (sc_two_space_separator_in_usage): Likewise.
21257         (sc_useless_cpp_parens): Likewise.
21258         (sc_GPL_version): Likewise.
21259         (sc_GFDL_version): Likewise.
21260         (sc_texinfo_acronym): Likewise.
21261         (sc_prohibit_cvs_keyword): Likewise.
21262         (sc_prohibit_stat_st_blocks): Likewise.
21263         (sc_prohibit_S_IS_definition): Likewise.
21264         (sc_redundant_const): Likewise.
21265         (sc_makefile_TAB_only_indentation): Likewise.
21266         (sc_m4_quote_check): Likewise.
21267         (sc_makefile_path_separator_check): Likewise.
21268         (sc_copyright_check): Likewise.
21269         (sc_Wundef_boolean): Likewise.
21270         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21271
21272         maint.mk: match 0 or more whitespace-before-function-call '('
21273         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21274         that have zero or two-and-more spaces between the function name
21275         and the open parenthesis.
21276         (sc_error_message_warn_fatal): Likewise.
21277         (sc_error_message_uppercase): Likewise.
21278         (sc_error_message_period): Likewise.
21279
21280 2010-03-31  Eric Blake  <eblake@redhat.com>
21281
21282         maint.mk: check for [ as well as test
21283         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21284         Based on a libvirt report by Matthias Bolte.
21285
21286         gnumakefile: don't squelch _version output
21287         * top/GNUmakefile (_version): Create one-shot dependency rather
21288         than using $(shell) when version must be regenerated.
21289         (_autoreconf): Run verbosely, by default.
21290
21291         sys_time: avoid compiler warnings
21292         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21293         unconditional, fixing regression from 2010-03-29.
21294         Reported by Simon Josefsson.
21295
21296 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21297
21298         maint.mk: s/_header_without_use/_sc_header_without_use/
21299         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21300         (sc_prohibit_assert_without_use): Use the new name.
21301         (sc_prohibit_close_stream_without_use): Likewise.
21302         (sc_prohibit_getopt_without_use): Likewise.
21303         (sc_prohibit_quotearg_without_use): Likewise.
21304         (sc_prohibit_quote_without_use): Likewise.
21305         (sc_prohibit_long_options_without_use): Likewise.
21306         (sc_prohibit_inttostr_without_use): Likewise.
21307         (sc_prohibit_ignore_value_without_use): Likewise.
21308         (sc_prohibit_error_without_use): Likewise.
21309         (sc_prohibit_xalloc_without_use): Likewise.
21310         (sc_prohibit_hash_without_use): Likewise.
21311         (sc_prohibit_hash_pjw_without_use): Likewise.
21312         (sc_prohibit_safe_read_without_use): Likewise.
21313         (sc_prohibit_argmatch_without_use): Likewise.
21314         (sc_prohibit_canonicalize_without_use): Likewise.
21315         (sc_prohibit_root_dev_ino_without_use): Likewise.
21316         (sc_prohibit_openat_without_use): Likewise.
21317         (sc_prohibit_c_ctype_without_use): Likewise.
21318         (sc_prohibit_signal_without_use): Likewise.
21319         (sc_prohibit_intprops_without_use): Likewise.
21320
21321 2010-03-30  Eric Blake  <eblake@redhat.com>
21322
21323         maint: improve module indicators
21324         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21325         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21326         columns, and avoid extra macro expansion.
21327
21328         fdopendir: work around FreeBSD bug
21329         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21330         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21331         * modules/dirent (Makefile.am): Substitute it.
21332         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21333         declaration.
21334         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21335         fix.
21336         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21337
21338 2010-03-29  Bruno Haible  <bruno@clisp.org>
21339
21340         Emit #pragma system_header after the inclusion guard, not before.
21341         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21342         guard that spans the entire file, not before. This enables an
21343         optimization in GCC's preprocessor.
21344         * lib/ctype.in.h: Likewise.
21345         * lib/dirent.in.h: Likewise.
21346         * lib/errno.in.h: Likewise.
21347         * lib/float.in.h: Likewise.
21348         * lib/getopt.in.h: Likewise.
21349         * lib/iconv.in.h: Likewise.
21350         * lib/langinfo.in.h: Likewise.
21351         * lib/locale.in.h: Likewise.
21352         * lib/math.in.h: Likewise.
21353         * lib/netdb.in.h: Likewise.
21354         * lib/netinet_in.in.h: Likewise.
21355         * lib/pty.in.h: Likewise.
21356         * lib/sched.in.h: Likewise.
21357         * lib/se-selinux.in.h: Likewise.
21358         * lib/search.in.h: Likewise.
21359         * lib/spawn.in.h: Likewise.
21360         * lib/stdarg.in.h: Likewise.
21361         * lib/stdint.in.h: Likewise.
21362         * lib/string.in.h: Likewise.
21363         * lib/strings.in.h: Likewise.
21364         * lib/sys_file.in.h: Likewise.
21365         * lib/sys_ioctl.in.h: Likewise.
21366         * lib/sys_time.in.h: Likewise.
21367         * lib/sys_times.in.h: Likewise.
21368         * lib/sys_utsname.in.h: Likewise.
21369         * lib/sys_wait.in.h: Likewise.
21370         * lib/sysexits.in.h: Likewise.
21371         * lib/wctype.in.h: Likewise.
21372
21373 2010-03-28  James Youngman  <jay@gnu.org>
21374
21375         save-cwd: don't leak a file descriptor when the caller execs.
21376         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21377         saved file descriptor.
21378         * modules/save-cwd (Depends-on): Depend on cloexec.
21379
21380 2010-03-29  Bruno Haible  <bruno@clisp.org>
21381
21382         Remove vestiges of fts-lgpl module.
21383         * lib/fts_.h: Assume GNULIB_FTS is 1.
21384         * lib/fts.c: Likewise.
21385         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21386
21387 2010-03-28  Bruno Haible  <bruno@clisp.org>
21388
21389         Fix definition of tests witness macro.
21390         * gnulib-tool (func_import): Fix definition of witness macro.
21391
21392 2010-03-28  Bruno Haible  <bruno@clisp.org>
21393
21394         Fix ioctl's protoype on glibc systems.
21395         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21396         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21397         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21398         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21399         signature. If not, arrange to replace the ioctl function.
21400         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21401         REPLACE_IOCTL.
21402         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21403         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21404         Reported by Ludovic Courtès <ludo@gnu.org>.
21405
21406 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21407
21408         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21409         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21410         made it so grep -r --include=GLOB* ... did not work.
21411
21412 2010-03-26  Jim Meyering  <meyering@redhat.com>
21413             Eric Blake  <eblake@redhat.com>
21414
21415         maint.mk: prohibit use of test's -o and -a operators
21416         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21417
21418 2010-03-28  Bruno Haible  <bruno@clisp.org>
21419
21420         Remove unused GNULIB_XYZ macro definitions.
21421         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21422         invocation.
21423
21424 2010-03-28  Bruno Haible  <bruno@clisp.org>
21425
21426         Mark privileged tests modules.
21427         * modules/idpriv-drop-tests (Status): New section.
21428         * modules/idpriv-droptemp-tests (Status): New section.
21429
21430 2010-03-28  Bruno Haible  <bruno@clisp.org>
21431
21432         Split C++ tests into separate tests modules.
21433         * modules/dirent-c++-tests: New file, extracted from
21434         modules/dirent-tests.
21435         * modules/dirent-tests: Depend on it.
21436         * modules/fcntl-h-c++-tests: New file, extracted from
21437         modules/fcntl-h-tests.
21438         * modules/fcntl-h-tests: Depend on it.
21439         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21440         * modules/glob-tests: Depend on it.
21441         * modules/iconv-h-c++-tests: New file, extracted from
21442         modules/iconv-h-tests.
21443         * modules/iconv-h-tests: Depend on it.
21444         * modules/langinfo-c++-tests: New file, extracted from
21445         modules/langinfo-tests.
21446         * modules/langinfo-tests: Depend on it.
21447         * modules/locale-c++-tests: New file, extracted from
21448         modules/locale-tests.
21449         * modules/locale-tests: Depend on it.
21450         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21451         * modules/math-tests: Depend on it.
21452         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21453         * modules/pty-tests: Depend on it.
21454         * modules/search-c++-tests: New file, extracted from
21455         modules/search-tests.
21456         * modules/search-tests: Depend on it.
21457         * modules/signal-c++-tests: New file, extracted from
21458         modules/signal-tests.
21459         * modules/signal-tests: Depend on it.
21460         * modules/spawn-c++-tests: New file, extracted from
21461         modules/spawn-tests.
21462         * modules/spawn-tests: Depend on it.
21463         * modules/stdio-c++-tests: New file, extracted from
21464         modules/stdio-tests.
21465         * modules/stdio-tests: Depend on it.
21466         * modules/stdlib-c++-tests: New file, extracted from
21467         modules/stdlib-tests.
21468         * modules/stdlib-tests: Depend on it.
21469         * modules/string-c++-tests: New file, extracted from
21470         modules/string-tests.
21471         * modules/string-tests: Depend on it.
21472         * modules/sys_ioctl-c++-tests: New file, extracted from
21473         modules/sys_ioctl-tests.
21474         * modules/sys_ioctl-tests: Depend on it.
21475         * modules/sys_select-c++-tests: New file, extracted from
21476         modules/sys_select-tests.
21477         * modules/sys_select-tests: Depend on it.
21478         * modules/sys_socket-c++-tests: New file, extracted from
21479         modules/sys_socket-tests.
21480         * modules/sys_socket-tests: Depend on it.
21481         * modules/sys_stat-c++-tests: New file, extracted from
21482         modules/sys_stat-tests.
21483         * modules/sys_stat-tests: Depend on it.
21484         * modules/sys_time-c++-tests: New file, extracted from
21485         modules/sys_time-tests.
21486         * modules/sys_time-tests: Depend on it.
21487         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21488         * modules/time-tests: Depend on it.
21489         * modules/unistd-c++-tests: New file, extracted from
21490         modules/unistd-tests.
21491         * modules/unistd-tests: Depend on it.
21492         * modules/wchar-c++-tests: New file, extracted from
21493         modules/wchar-tests.
21494         * modules/wchar-tests: Depend on it.
21495         * modules/wctype-c++-tests: New file, extracted from
21496         modules/wctype-tests.
21497         * modules/wctype-tests: Depend on it.
21498         Reported by Simon Josefsson.
21499
21500 2010-03-28  Bruno Haible  <bruno@clisp.org>
21501
21502         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21503         * gnulib-tool (func_exists_module): New function, extracted from
21504         func_verify_module.
21505         (func_verify_module): Use it.
21506         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21507         'foo' only if 'foo' exists.
21508         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21509         module.
21510
21511 2010-03-28  Bruno Haible  <bruno@clisp.org>
21512
21513         gnulib-tool: Add support for special categories of tests.
21514         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21515         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21516         (func_usage): Document them.
21517         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21518         inc_unportable_tests, inc_all_tests): New variables.
21519         (func_acceptable): Consider these variables.
21520         (func_modules_transitive_closure): Make it work when the 'Status' field
21521         consists of multiple words.
21522         (func_import): Store and restore the values of inc_cxx_tests,
21523         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21524         inc_all_tests in gnulib-comp.m4.
21525         (func_create_testdir): Set inc_all_tests to true.
21526         * doc/gnulib.texi (Extra tests modules): New section.
21527         Suggested by Jim Meyering.
21528
21529 2010-03-28  Bruno Haible  <bruno@clisp.org>
21530
21531         ansi-c++-opt: Allow turning off the C++ build by default.
21532         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21533         gl_CXX_CHOICE_DEFAULT_NO is defined.
21534         Requested by Eric Blake.
21535
21536 2010-03-28  Bruno Haible  <bruno@clisp.org>
21537
21538         unistd: Avoid #define replacements in C++ mode.
21539         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21540         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21541         setsockopt, shutdown, select): In C++, attach a warning to the function
21542         if possible, rather than #defining the symbol to a dysfunctional alias.
21543         Reported by John W. Eaton <jwe@gnu.org>.
21544
21545 2010-03-28  Bruno Haible  <bruno@clisp.org>
21546
21547         Fix link errors on mingw.
21548         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21549         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21550         $(LIBSOCKET).
21551         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21552         $(LIBSOCKET).
21553
21554 2010-03-28  Bruno Haible  <bruno@clisp.org>
21555             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21556
21557         lib-ignore: Determine different options for different compilers.
21558         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21559         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21560         Add comments.
21561         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21562         * NEWS: Mention the change.
21563
21564 2010-03-27  Bruno Haible  <bruno@clisp.org>
21565
21566         Remove unused GNULIB_XYZ macro definitions.
21567         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21568         * modules/fseek (configure.ac): Likewise.
21569         * modules/ioctl (configure.ac): Likewise.
21570         * modules/open (configure.ac): Likewise.
21571         * modules/stdlib-safer (configure.ac): Likewise.
21572
21573 2010-03-27  Bruno Haible  <bruno@clisp.org>
21574
21575         Add a remark about certain modules.
21576         * modules/malloc (Comment): New section.
21577         * modules/realloc (Comment): Likewise.
21578         * modules/sigpipe (Comment): Likewise.
21579
21580 2010-03-27  Bruno Haible  <bruno@clisp.org>
21581
21582         Resolve conflict between the two kinds of module indicators.
21583         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21584         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21585         * modules/canonicalize (configure.ac): Invoke
21586         gl_MODULE_INDICATOR_FOR_TESTS.
21587         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21588         GNULIB_XYZ.
21589         * tests/test-dirent-c++.cc: Likewise.
21590         * tests/test-dirent-safer.c: Likewise.
21591         * tests/test-dup2.c: Likewise.
21592         * tests/test-fchdir.c: Likewise.
21593         * tests/test-fcntl-h-c++.cc: Likewise.
21594         * tests/test-getopt.c: Likewise.
21595         * tests/test-getopt.h: Likewise.
21596         * tests/test-langinfo-c++.cc: Likewise.
21597         * tests/test-locale-c++.cc: Likewise.
21598         * tests/test-math-c++.cc: Likewise.
21599         * tests/test-pty-c++.cc: Likewise.
21600         * tests/test-search-c++.cc: Likewise.
21601         * tests/test-signal-c++.cc: Likewise.
21602         * tests/test-spawn-c++.cc: Likewise.
21603         * tests/test-stdio-c++.cc: Likewise.
21604         * tests/test-stdlib-c++.cc: Likewise.
21605         * tests/test-string-c++.cc: Likewise.
21606         * tests/test-sys_ioctl-c++.cc: Likewise.
21607         * tests/test-sys_select-c++.cc: Likewise.
21608         * tests/test-sys_socket-c++.cc: Likewise.
21609         * tests/test-sys_stat-c++.cc: Likewise.
21610         * tests/test-sys_time-c++.cc: Likewise.
21611         * tests/test-time-c++.cc: Likewise.
21612         * tests/test-unistd-c++.cc: Likewise.
21613         * tests/test-wchar-c++.cc: Likewise.
21614         * tests/uninorm/test-u8-nfc.c: Likewise.
21615         * tests/uninorm/test-u8-nfd.c: Likewise.
21616         * tests/uninorm/test-u8-nfkc.c: Likewise.
21617         * tests/uninorm/test-u8-nfkd.c: Likewise.
21618         * tests/uninorm/test-u16-nfc.c: Likewise.
21619         * tests/uninorm/test-u16-nfd.c: Likewise.
21620         * tests/uninorm/test-u16-nfkc.c: Likewise.
21621         * tests/uninorm/test-u16-nfkd.c: Likewise.
21622         * tests/uninorm/test-u32-nfc.c: Likewise.
21623         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21624         * tests/uninorm/test-u32-nfd.c: Likewise.
21625         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21626         * tests/uninorm/test-u32-nfkc.c: Likewise.
21627         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21628         * tests/uninorm/test-u32-nfkd.c: Likewise.
21629         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21630         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21631
21632 2010-03-27  Bruno Haible  <bruno@clisp.org>
21633
21634         Distinguish two kinds of module indicators.
21635         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21636         gl_MODULE_INDICATOR.
21637         (gl_MODULE_INDICATOR): New macro.
21638         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21639         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21640         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21641         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21642         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21643         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21644         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21645         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21646         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21647         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21648         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21649         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21650         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21651         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21652         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21653         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21654         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21655         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21656         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21657         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21658         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21659         * modules/cloexec (configure.ac): Likewise.
21660         * modules/getopt-gnu (configure.ac): Likewise.
21661         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21662         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21663         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21664         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21665
21666 2010-03-27  Bruno Haible  <bruno@clisp.org>
21667
21668         New module description field 'Comment'.
21669         * gnulib-tool: New option --extract-comment.
21670         (func_usage): Document it.
21671         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21672         (func_get_comment): New function.
21673         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21674
21675 2010-03-27  Bruno Haible  <bruno@clisp.org>
21676
21677         Addendum to 2010-02-07 commit.
21678         * gnulib-tool (func_usage): Document --extract-applicability option.
21679
21680 2010-03-27  Bruno Haible  <bruno@clisp.org>
21681
21682         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21683         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21684         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21685         rather than link errors.
21686
21687 2010-03-27  Bruno Haible  <bruno@clisp.org>
21688
21689         Avoid side effects from tests-related modules on the compilation of lib.
21690         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21691         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21692         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21693         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21694         macro.
21695         (func_import): Define a witness macro. Assign it a value that depends
21696         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21697         tests-related modules.
21698         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21699         Reported by Jim Meyering.
21700
21701 2010-03-27  Bruno Haible  <bruno@clisp.org>
21702
21703         Factorize common .m4 code.
21704         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21705         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21706         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21707         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21708         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21709         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21710         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21711         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21712         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21713         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21714         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21715         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21716         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21717         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21718         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21719         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21720         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21721         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21723         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21724         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21725         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21726         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21727         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21728         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21729         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21730         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21731         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21732         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21733         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21734         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21735         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21736
21737 2010-03-27  Bruno Haible  <bruno@clisp.org>
21738
21739         Fix a compilation error on Cygwin with g++ >= 4.3.
21740         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21741         if it is undefined or if we alias it to chmod.
21742         (lstat): Don't warn about the use of this function if it is undefined
21743         or if we alias it to stat.
21744         Reported by Simon Josefsson.
21745
21746 2010-03-27  Bruno Haible  <bruno@clisp.org>
21747
21748         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21749         * modules/getlogin (configure.ac): Update.
21750
21751         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21752         * modules/getlogin_r (configure.ac): Update.
21753
21754         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21755         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21756         * modules/inet_ntop (configure.ac): Update.
21757
21758         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21759         * modules/inet_pton (configure.ac): Update.
21760
21761         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21762         * modules/mbslen (configure.ac): Update.
21763
21764         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21765         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21766         * modules/forkpty (configure.ac): Update.
21767         * modules/openpty (configure.ac): Update.
21768
21769 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21770
21771         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21772         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21773
21774 2010-03-25  Eric Blake  <eblake@redhat.com>
21775
21776         maint: use pragma consistently across replacement headers
21777         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21778         * lib/dirent.in.h (system_header): Likewise.
21779         * lib/errno.in.h (system_header): Likewise.
21780         * lib/float.in.h (system_header): Likewise.
21781         * lib/getopt.in.h (system_header): Likewise.
21782         * lib/iconv.in.h (system_header): Likewise.
21783         * lib/inttypes.in.h (system_header): Likewise.
21784         * lib/langinfo.in.h (system_header): Likewise.
21785         * lib/locale.in.h (system_header): Likewise.
21786         * lib/math.in.h (system_header): Likewise.
21787         * lib/netdb.in.h (system_header): Likewise.
21788         * lib/netinet_in.in.h (system_header): Likewise.
21789         * lib/pty.in.h (system_header): Likewise.
21790         * lib/sched.in.h (system_header): Likewise.
21791         * lib/se-selinux.in.h (system_header): Likewise.
21792         * lib/search.in.h (system_header): Likewise.
21793         * lib/spawn.in.h (system_header): Likewise.
21794         * lib/stdarg.in.h (system_header): Likewise.
21795         * lib/stdint.in.h (system_header): Likewise.
21796         * lib/string.in.h (system_header): Likewise.
21797         * lib/strings.in.h (system_header): Likewise.
21798         * lib/sys_file.in.h (system_header): Likewise.
21799         * lib/sys_ioctl.in.h (system_header): Likewise.
21800         * lib/sys_socket.in.h (system_header): Likewise.
21801         * lib/sys_times.in.h (system_header): Likewise.
21802         * lib/sys_utsname.in.h (system_header): Likewise.
21803         * lib/sys_wait.in.h (system_header): Likewise.
21804         * lib/sysexits.in.h (system_header): Likewise.
21805         * lib/unistd.in.h (system_header): Likewise.
21806         * lib/wctype.in.h (system_header): Likewise.
21807
21808         arpa/inet: fix mingw compilation warning
21809         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21810         Reported by Matthew Bolte.
21811
21812 2010-03-25  Bruno Haible  <bruno@clisp.org>
21813
21814         Avoid collision between gnulib wrapper and libintl wrapper.
21815         * lib/printf.c (printf): Don't define if a printf wrapper is already
21816         defined in intl/printf.c.
21817         Reported by Michel Boaventura <michel@michelboaventura.com>.
21818
21819 2010-03-25  Bruno Haible  <bruno@clisp.org>
21820
21821         Use ANSI C.
21822         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21823
21824 2010-03-25  Bruno Haible  <bruno@clisp.org>
21825
21826         Minor formatting changes.
21827         * lib/acosl.c: Insert space before function argument list.
21828         * lib/argz.c: Likewise.
21829         * lib/asinl.c: Likewise.
21830         * lib/expl.c: Likewise.
21831         * lib/gen-uni-tables.c: Likewise.
21832         * lib/gettext.h: Likewise.
21833         * lib/glthread/lock.h: Likewise.
21834         * lib/tanl.c: Likewise.
21835         * lib/uniname/uniname.c: Likewise.
21836         * tests/test-idpriv-drop.c: Likewise.
21837         * tests/test-idpriv-droptemp.c: Likewise.
21838         * tests/test-lock.c: Likewise.
21839         * tests/test-tls.c: Likewise.
21840         * lib/argp-help.c: Insert space before function-like macro argument
21841         list.
21842         * lib/memcmp.c: Likewise.
21843         * tests/test-base64.c: Likewise.
21844         * lib/localename.c: Insert space before sizeof's argument list.
21845         * lib/safe-alloc.h: Likewise.
21846         * lib/file-set.h: Insert space before macro argument list.
21847         * tests/test-argp.c: Likewise.
21848         * lib/argp-namefrob.h: Insert space before function parameter list.
21849         * lib/getaddrinfo.c: Likewise.
21850         * lib/netdb.in.h: Likewise.
21851         * lib/parse-duration.h: Likewise.
21852         * lib/parse-duration.c: Likewise.
21853         * lib/poll.c: Likewise.
21854         * lib/select.c: Likewise.
21855         * lib/trim.h: Likewise.
21856         * tests/test-usleep.c: Likewise.
21857         * lib/ldexpl.c: Insert space before function parameter list and before
21858         function argument list.
21859         * lib/logl.c: Likewise.
21860         * lib/sqrtl.c: Likewise.
21861         * lib/trim.c: Likewise.
21862         * lib/cosl.c: Use GNU style indentation. Insert space before function
21863         argument list.
21864         * lib/sinl.c: Likewise.
21865         * lib/tsearch.c: Insert space after 'for'.
21866         Reported by Jim Meyering.
21867
21868 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21869
21870         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21871         config header before grepping, as it's not present before
21872         autoreconf/configure are run.  Reported by Simon Josefsson.
21873
21874 2010-03-23  Bruno Haible  <bruno@clisp.org>
21875
21876         pt_chown: Make it work with automake < 1.11.
21877         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21878         Reported by Simon Josefsson.
21879
21880 2010-03-23  Bruno Haible  <bruno@clisp.org>
21881
21882         pt_chown: Don't depend on GPLed modules.
21883         * lib/pt_chown.c: Don't include idpriv.h.
21884         (main): Don't drop privileges.
21885         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21886         Reported by Simon Josefsson.
21887
21888 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21889
21890         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21891         suggestions from karl@freefriends.org (Karl Berry).
21892
21893 2010-03-22  Eric Blake  <eblake@redhat.com>
21894
21895         gethostname: further tweaks
21896         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21897         are overriding gethostname.
21898         Suggested by Bruno Haible.
21899
21900 2010-03-21  Bruno Haible  <bruno@clisp.org>
21901
21902         Fix comments.
21903         * lib/forkpty.c (rpl_forkpty): Fix comment.
21904         * lib/openpty.c (rpl_openpty): Likewise.
21905         Reported by Eric Blake.
21906
21907 2010-03-22  Eric Blake  <eblake@redhat.com>
21908
21909         gethostname: fix build on mingw
21910         * lib/unistd.in.h (includes): Work around fact that mingw
21911         <winsock2.h> re-includes <unistd.h>, by avoiding any
21912         redeclarations if we are being included by <winsock2.h>.
21913         Reported by Matthias Bolte.
21914
21915 2010-03-21  Bruno Haible  <bruno@clisp.org>
21916
21917         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21918         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21919         modifications.
21920         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21921         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21922         provide the replacement.
21923         * modules/forkpty (Depends-on): Add openpty, login_tty.
21924         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21925         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21926         * doc/glibc-functions/forkpty.texi: More supported platforms.
21927         * config/srclist.txt: Add forkpty.c (commented).
21928
21929 2010-03-21  Bruno Haible  <bruno@clisp.org>
21930
21931         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21932         (Makefile.am): Verify that PTY_LIB is defined.
21933
21934         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21935
21936 2010-03-21  Bruno Haible  <bruno@clisp.org>
21937
21938         Tests for module 'login_tty'.
21939         * modules/login_tty-tests: New file.
21940         * tests/test-login_tty.c: New file.
21941
21942         New module 'login_tty'.
21943         * lib/login_tty.c: New file.
21944         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21945         * modules/login_tty: New file.
21946         * doc/glibc-functions/login_tty.texi: Mention the new module.
21947
21948 2010-03-21  Bruno Haible  <bruno@clisp.org>
21949
21950         login_tty: Documentation.
21951         * doc/glibc-functions/login_tty.texi: New file.
21952         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21953
21954 2010-03-21  Bruno Haible  <bruno@clisp.org>
21955
21956         pty: Consistent macro naming.
21957         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21958         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21959         * modules/pty (configure.ac): Update.
21960
21961 2010-03-21  Bruno Haible  <bruno@clisp.org>
21962
21963         Tests for openpty: Make stricter.
21964         * tests/test-openpty.c (main): Add test of canonical processing and
21965         erase.
21966         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21967
21968         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21969         * lib/openpty.c (openpty): New replacement function.
21970         * lib/pty.in.h: Include <termios.h>.
21971         (openpty): Update declaration. Add comments.
21972         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21973         is not declared, arrange to provide the replacement. Check for _getpty
21974         and posix_openpt.
21975         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21976         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21977         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21978         * modules/pty-tests (test_pty_c___LDADD): New variable.
21979         * doc/glibc-functions/openpty.texi: More supported platforms.
21980
21981 2010-03-21  Bruno Haible  <bruno@clisp.org>
21982
21983         setenv: Tweaks.
21984         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21985         the test program.
21986         * doc/posix-functions/setenv.texi: Update platforms list.
21987
21988 2010-03-21  Bruno Haible  <bruno@clisp.org>
21989
21990         New module 'unlockpt'.
21991         * lib/unlockpt.c: New file, from glibc with modifications.
21992         * m4/unlockpt.m4: New file.
21993         * modules/unlockpt: New file.
21994         * lib/stdlib.in.h (unlockpt): New declaration.
21995         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21996         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21997         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21998         HAVE_UNLOCKPT.
21999         * doc/posix-functions/unlockpt.texi: Mention the new module.
22000         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22001         * config/srclist.txt: Add unlockpt.c (commented).
22002
22003 2010-03-21  Jim Meyering  <meyering@redhat.com>
22004
22005         maint.mk: prohibit inclusion of "intprops.h" without use
22006         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22007
22008 2010-03-21  Bruno Haible  <bruno@clisp.org>
22009
22010         New module 'grantpt'.
22011         * lib/grantpt.c: New file, from glibc with modifications.
22012         * m4/grantpt.m4: New file.
22013         * modules/grantpt: New file.
22014         * lib/stdlib.in.h (grantpt): New declaration.
22015         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22016         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22017         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22018         HAVE_GRANTPT.
22019         * doc/posix-functions/grantpt.texi: Mention the new module.
22020         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22021         * config/srclist.txt: Add grantpt.c (commented).
22022
22023 2010-03-21  Bruno Haible  <bruno@clisp.org>
22024
22025         New module 'pt_chown'.
22026         * lib/pt_chown.c: New file, from glibc with modifications.
22027         * lib/pty-private.h: New file, from glibc with modifications.
22028         * modules/pt_chown: New file.
22029         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22030
22031 2010-03-21  Bruno Haible  <bruno@clisp.org>
22032
22033         Tests for module 'ptsname'.
22034         * modules/ptsname-tests: New file.
22035         * tests/test-ptsname.c: New file.
22036
22037         New module 'ptsname'.
22038         * lib/ptsname.c: New file, from glibc with modifications.
22039         * m4/ptsname.m4: New file.
22040         * modules/ptsname: New file.
22041         * lib/stdlib.in.h (ptsname): New declaration.
22042         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22043         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22044         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22045         HAVE_PTSNAME.
22046         * doc/posix-functions/ptsname.texi: Mention the new module.
22047         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22048         * config/srclist.txt: Add ptsname.c (commented).
22049
22050 2010-03-21  Bruno Haible  <bruno@clisp.org>
22051
22052         Tests for module 'ttyname_r'.
22053         * modules/ttyname_r-tests: New file.
22054         * tests/test-ttyname_r.c: New file.
22055
22056         New module 'ttyname_r'.
22057         * lib/ttyname_r.c: New file.
22058         * m4/ttyname_r.m4: New file.
22059         * modules/ttyname_r: New file.
22060         * lib/unistd.in.h (ttyname_r): New declaration.
22061         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22062         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22063         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22064         HAVE_TTYNAME_R.
22065         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22066         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22067
22068 2010-03-20  Bruno Haible  <bruno@clisp.org>
22069
22070         signal: Undefine macro definitions in C++ mode.
22071         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22072         sigfillset): Undefine macro definitions from the system header in C++
22073         mode.
22074         Reported by John W. Eaton <jwe@gnu.org>.
22075
22076 2010-03-20  Bruno Haible  <bruno@clisp.org>
22077
22078         Ensure no #include statements inside extern "C" { ... }.
22079         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22080         contain #include statements.
22081         * lib/time.in.h: Likewise.
22082
22083 2010-03-20  Bruno Haible  <bruno@clisp.org>
22084
22085         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22086         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22087         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22088         Reported by John W. Eaton <jwe@gnu.org>.
22089
22090 2010-03-20  Bruno Haible  <bruno@clisp.org>
22091
22092         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22093         Reported by Jim Meyering.
22094
22095 2010-03-20  Bruno Haible  <bruno@clisp.org>
22096
22097         pipe: Set errno upon failure.
22098         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22099         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22100         errno value in error message.
22101
22102 2010-03-20  Bruno Haible  <bruno@clisp.org>
22103             Jim Meyering  <meyering@redhat.com>
22104
22105         lchown: Avoid "unused variable" warning.
22106         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22107
22108 2010-03-20  Bruno Haible  <bruno@clisp.org>
22109
22110         Work around unlink() bug on MacOS X 10.5.6.
22111         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22112         attempting to unlink a parent directory.
22113         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22114         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22115         activate for the replacement function.
22116         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22117
22118 2010-03-20  Bruno Haible  <bruno@clisp.org>
22119
22120         Fix link errors on Solaris 8.
22121         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22122         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22123
22124 2010-03-19  Jim Meyering  <meyering@redhat.com>
22125
22126         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22127         The _LIBC implementation of build_range_exp correctly honors the
22128         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22129         However, the non-_LIBC implementation would ignore that syntax-bit
22130         flag and return REG_ERANGE unconditionally.
22131         This change makes it honor that flag.
22132         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22133         Make two pointer parameters "const".
22134         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22135         (parse_bracket_exp): Update caller.
22136
22137         regex.m4: correct the reversed range endpoint ([b-a]) test
22138         * m4/regex.m4: When requiring that [b-a] evoke failure,
22139         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22140         test pass once again for x86-based systems.
22141
22142 2010-03-19  Bruno Haible  <bruno@clisp.org>
22143
22144         scandir: Fix link error on Solaris 8.
22145         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22146         macros.
22147
22148 2010-03-19  Bruno Haible  <bruno@clisp.org>
22149
22150         getusershell: Fix documentation.
22151         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22152         module.
22153         * doc/glibc-functions/setusershell.texi: Likewise.
22154
22155         getusershell: Provide declaration, missing on Solaris 9.
22156         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22157         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22158         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22159         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22161         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22162         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22163         HAVE_GETUSERSHELL.
22164         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22165
22166 2010-03-19  Bruno Haible  <bruno@clisp.org>
22167
22168         wctype: Provide iswblank function.
22169         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22170         exists and is fine.
22171         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22172         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22173         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22174         * doc/posix-functions/iswblank.texi: Update.
22175
22176 2010-03-19  Bruno Haible  <bruno@clisp.org>
22177
22178         Tests of module 'pty' in C++ mode.
22179         * modules/pty-tests: New file.
22180         * tests/test-pty-c++.cc: New file.
22181         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22182
22183 2010-03-19  Eric Blake  <eblake@redhat.com>
22184
22185         logb: fix documentation
22186         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22187         1.5 declaration bug.
22188
22189         forkpty, openpty: prefer glibc's const-safe prototype
22190         * lib/forkpty.c (rpl_forkpty): New file.
22191         * lib/openpty.c (rpl_openpty): Likewise.
22192         * modules/forkpty (Files): Distribute it.
22193         * modules/openpty (Files): Likewise.
22194         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22195         check...
22196         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22197         replacement for for non-const BSD signature.
22198         * modules/pty (Makefile.am): Substitute witnesses.
22199         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22200         * tests/test-forkpty.c: Update signature check.
22201         * tests/test-openpty.c: Likewise.
22202         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22203         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22204
22205         forkpty, openpty: split functions into new modules
22206         * modules/pty (Makefile.am): Substitute new witnesses.
22207         (Libraries): Move library detection...
22208         * modules/forkpty: ...into new module.
22209         * modules/openpty: Another new module.
22210         * modules/pty-tests: Rename and split...
22211         * modules/forkpty-tests: ...to this...
22212         * modules/openpty-tests: ...and this.
22213         * tests/test-pty.c: Rename and split...
22214         * tests/test-forkpty.c: ...to this...
22215         * tests/test-openpty.c: ...and this.
22216         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22217         (gl_PTY): Split library searching...
22218         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22219         (gl_FORKPTY, gl_OPENPTY): New macros.
22220         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22221         * NEWS: Mention the split.
22222         * MODULES.html.sh (Misc): Document the modules.
22223         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22224         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22225
22226         pty: improve replacement header
22227         * lib/pty.in.h: New file.
22228         * modules/pty (Files): Ship it.
22229         (Makefile.am): Always build replacement.
22230         * m4/pty.m4: Rename...
22231         * m4/pty_h.m4: ...to this.
22232         (gl_PTY): Modernize setting of witness macros; update check of
22233         forkpty to take proper advantage of cache.
22234         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22235
22236         getopt: avoid compiler warning
22237         * lib/getopt.c (attribute_hidden): Remove unused macro.
22238
22239 2010-03-18  Bruno Haible  <bruno@clisp.org>
22240
22241         Fix link errors on Solaris 8.
22242         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22243         * modules/search-tests (test_search_c___LDADD): Likewise.
22244         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22245         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22246         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22247         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22248         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22249         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22250         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22251
22252 2010-03-18  Bruno Haible  <bruno@clisp.org>
22253
22254         Fix bug introduced on 2010-03-14.
22255         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22256         (gl_SPAWN_H): Require it.
22257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22258         Reported by Simon Josefsson.
22259
22260 2010-03-18  Bruno Haible  <bruno@clisp.org>
22261
22262         Fix typo introduced on 2009-12-31.
22263         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22264         posix_spawn_file_actions_adddup2.
22265
22266 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22267         and Eric Blake  <eblake@redhat.com>
22268
22269         test-vc-list-files-git: make more robust
22270         * tests/test-vc-list-files-git.sh: Unset problematic environment
22271         variables.  Chain commands together.
22272
22273 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22274
22275         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22276         `AC_CHECK_DECL' invocation.
22277
22278 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22279
22280         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22281         appears before executable statements. Suggested by Petr Sumbera
22282         <Petr.Sumbera@Sun.COM>.
22283
22284 2010-03-14  Bruno Haible  <bruno@clisp.org>
22285
22286         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22287         portability problems. Instead use a simpler test.
22288         (main): Check that invalid arguments are rejected only on Linux.
22289
22290 2010-03-14  Bruno Haible  <bruno@clisp.org>
22291
22292         Fix bug introduced on 2009-12-31.
22293         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22294         gl_PREREQ_SYS_H_WINSOCK2 always.
22295         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22296         SYS_SOCKET_H variable.
22297         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22298         Update comments.
22299         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22300         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22301         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22302         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22303         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22304
22305 2010-03-14  Bruno Haible  <bruno@clisp.org>
22306
22307         Fix values returned by sinl, cosl.
22308         * lib/trigl.h: Add specification comments.
22309         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22310         that combines the values from the precomputed table with the values of
22311         the Chebyshev polynomials.
22312
22313 2010-03-14  Bruno Haible  <bruno@clisp.org>
22314
22315         Fix compilation error when modules 'posix_spawn[p]' are not used.
22316         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22317         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22318
22319 2010-03-14  Bruno Haible  <bruno@clisp.org>
22320
22321         Fix compilation error on mingw when module 'time_r' is not used.
22322         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22323         is 1.
22324         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22325         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22326         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22327         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22328
22329 2010-03-14  Bruno Haible  <bruno@clisp.org>
22330
22331         Fix compilation error with Sun C.
22332         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22333         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22334         instead of GCC specific ULONG_LONG_MAX.
22335         * lib/xstrtoll.c: Likewise.
22336         * lib/xstrtoull.c: Likewise.
22337
22338 2010-03-13  Bruno Haible  <bruno@clisp.org>
22339
22340         Allow the user to disable C++ code and tests.
22341         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22342         (gl_PROG_ANSI_CXX): Require it.
22343
22344 2010-03-13  Bruno Haible  <bruno@clisp.org>
22345
22346         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22347         cases.
22348
22349 2010-03-13  Bruno Haible  <bruno@clisp.org>
22350
22351         Test that gnulib does not break the standard C++ headers.
22352         * tests/test-locale-c++2.cc: New file.
22353         * modules/locale-tests (Files): Add it.
22354         (Makefile.am): Compile it for test-locale-c++.
22355         * tests/test-math-c++2.cc: New file.
22356         * modules/math-tests (Files): Add it.
22357         (Makefile.am): Compile it for test-math-c++.
22358         * tests/test-signal-c++2.cc: New file.
22359         * modules/signal-tests (Files): Add it.
22360         (Makefile.am): Compile it for test-signal-c++.
22361         * tests/test-stdio-c++2.cc: New file.
22362         * modules/stdio-tests (Files): Add it.
22363         (Makefile.am): Compile it for test-stdio-c++.
22364         * tests/test-stdlib-c++2.cc: New file.
22365         * modules/stdlib-tests (Files): Add it.
22366         (Makefile.am): Compile it for test-stdlib-c++.
22367         * tests/test-string-c++2.cc: New file.
22368         * modules/string-tests (Files): Add it.
22369         (Makefile.am): Compile it for test-string-c++.
22370         * tests/test-time-c++2.cc: New file.
22371         * modules/time-tests (Files): Add it.
22372         (Makefile.am): Compile it for test-time-c++.
22373         Reported by John W. Eaton <jwe@gnu.org>.
22374
22375 2010-03-13  Bruno Haible  <bruno@clisp.org>
22376
22377         * gnulib-tool (func_usage): Clarify which options are available for
22378         --create-testdir and --create-megatestdir.
22379
22380 2010-03-13  Bruno Haible  <bruno@clisp.org>
22381
22382         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22383         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22384         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22385         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22386         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22387         when appropriate.
22388         Reported by Jim Meyering.
22389
22390 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22391
22392         * gnulib-tool (func_import): Explain origin of code.
22393
22394 2010-03-12  Bruno Haible  <bruno@clisp.org>
22395
22396         Fix problem with automake's definition of CXXLINK.
22397         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22398         Reported by Simon Josefsson and Ludovic Courtès.
22399
22400 2010-03-12  Bruno Haible  <bruno@clisp.org>
22401
22402         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22403         stable releases.
22404
22405 2010-03-11  Bruno Haible  <bruno@clisp.org>
22406
22407         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22408         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22409         whether the system provides one variant or multiple variants of the
22410         function.
22411         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22412         C++ compilers.
22413         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22414         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22415         Reported by Jim Meyering.
22416
22417 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22418
22419         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22420
22421 2010-03-08  Bruno Haible  <bruno@clisp.org>
22422
22423         gnulib-tool: Add support for --libtool in --create-testdir.
22424         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22425         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22426
22427 2010-03-08  Eric Blake  <eblake@redhat.com>
22428
22429         gnulib-tool.texi: mention possibility of git submodule
22430         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22431         submodules.
22432         * doc/.gitignore: Ignore another generated file.
22433
22434 2010-03-08  Karl Berry  <karl@gnu.org>
22435
22436         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22437         of committing gnulib files while skipping others.
22438
22439 2010-03-07  Bruno Haible  <bruno@clisp.org>
22440
22441         Tests of module 'wctype' in C++ mode.
22442         * tests/test-wctype-c++.cc: New file.
22443         * modules/wctype-tests (Files): Add it and tests/signature.h.
22444         (Depends-on): Add ansi-c++-opt.
22445         (Makefile.am): Arrange to compile and run test-wctype-c++.
22446
22447         Tests of module 'wchar' in C++ mode.
22448         * tests/test-wchar-c++.cc: New file.
22449         * modules/wchar-tests (Files): Add it and tests/signature.h.
22450         (Depends-on): Add ansi-c++-opt.
22451         (Makefile.am): Arrange to compile and run test-wchar-c++.
22452         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22453         gl_MODULE_INDICATOR.
22454
22455         Tests of module 'unistd' in C++ mode.
22456         * tests/test-unistd-c++.cc: New file.
22457         * modules/unistd-tests (Files): Add it and tests/signature.h.
22458         (Depends-on): Add ansi-c++-opt.
22459         (Makefile.am): Arrange to compile and run test-unistd-c++.
22460         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22461         gl_MODULE_INDICATOR.
22462
22463         Tests of module 'time' in C++ mode.
22464         * tests/test-time-c++.cc: New file.
22465         * modules/time-tests (Files): Add it and tests/signature.h.
22466         (Depends-on): Add ansi-c++-opt.
22467         (Makefile.am): Arrange to compile and run test-time-c++.
22468         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22469
22470         Tests of module 'sys_time' in C++ mode.
22471         * tests/test-sys_time-c++.cc: New file.
22472         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22473         (Depends-on): Add ansi-c++-opt.
22474         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22475         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22476         gl_MODULE_INDICATOR.
22477
22478         Tests of module 'sys_stat' in C++ mode.
22479         * tests/test-sys_stat-c++.cc: New file.
22480         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22481         (Depends-on): Add ansi-c++-opt.
22482         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22483         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22484         gl_MODULE_INDICATOR.
22485
22486         Tests of module 'sys_socket' in C++ mode.
22487         * tests/test-sys_socket-c++.cc: New file.
22488         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22489         (Depends-on): Add ansi-c++-opt.
22490         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22491         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22492         gl_MODULE_INDICATOR.
22493
22494         Tests of module 'sys_select' in C++ mode.
22495         * tests/test-sys_select-c++.cc: New file.
22496         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22497         (Depends-on): Add ansi-c++-opt.
22498         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22499         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22500         gl_MODULE_INDICATOR.
22501
22502         Tests of module 'sys_ioctl' in C++ mode.
22503         * tests/test-sys_ioctl-c++.cc: New file.
22504         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22505         (Depends-on): Add ansi-c++-opt.
22506         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22507         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22508         gl_MODULE_INDICATOR.
22509
22510         Tests of module 'string' in C++ mode.
22511         * tests/test-string-c++.cc: New file.
22512         * modules/string-tests (Files): Add it and tests/signature.h.
22513         (Depends-on): Add ansi-c++-opt.
22514         (Makefile.am): Arrange to compile and run test-string-c++.
22515         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22516         gl_MODULE_INDICATOR.
22517
22518         Tests of module 'stdlib' in C++ mode.
22519         * tests/test-stdlib-c++.cc: New file.
22520         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22521         (Depends-on): Add ansi-c++-opt.
22522         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22523         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22524         gl_MODULE_INDICATOR.
22525
22526         Tests of module 'stdio' in C++ mode.
22527         * tests/test-stdio-c++.cc: New file.
22528         * modules/stdio-tests (Files): Add it and tests/signature.h.
22529         (Depends-on): Add ansi-c++-opt.
22530         (Makefile.am): Arrange to compile and run test-stdio-c++.
22531         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22532         gl_MODULE_INDICATOR.
22533
22534         Tests of module 'spawn' in C++ mode.
22535         * tests/test-spawn-c++.cc: New file.
22536         * modules/spawn-tests (Files): Add it and tests/signature.h.
22537         (Depends-on): Add ansi-c++-opt.
22538         (Makefile.am): Arrange to compile and run test-spawn-c++.
22539         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22540         gl_MODULE_INDICATOR.
22541
22542         Tests of module 'signal' in C++ mode.
22543         * tests/test-signal-c++.cc: New file.
22544         * modules/signal-tests (Files): Add it and tests/signature.h.
22545         (Depends-on): Add ansi-c++-opt.
22546         (Makefile.am): Arrange to compile and run test-signal-c++.
22547         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22548         gl_MODULE_INDICATOR.
22549
22550         Tests of module 'search' in C++ mode.
22551         * tests/test-search-c++.cc: New file.
22552         * modules/search-tests (Files): Add it and tests/signature.h.
22553         (Depends-on): Add ansi-c++-opt.
22554         (Makefile.am): Arrange to compile and run test-search-c++.
22555         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22556         gl_MODULE_INDICATOR.
22557
22558         Tests of module 'math' in C++ mode.
22559         * tests/test-math-c++.cc: New file.
22560         * modules/math-tests (Files): Add it and tests/signature.h.
22561         (Depends-on): Add ansi-c++-opt.
22562         (Makefile.am): Arrange to compile and run test-math-c++.
22563         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22564
22565         Tests of module 'locale' in C++ mode.
22566         * tests/test-locale-c++.cc: New file.
22567         * modules/locale-tests (Files): Add it and tests/signature.h.
22568         (Depends-on): Add ansi-c++-opt.
22569         (Makefile.am): Arrange to compile and run test-locale-c++.
22570         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22571         gl_MODULE_INDICATOR.
22572
22573         Tests of module 'langinfo' in C++ mode.
22574         * tests/test-langinfo-c++.cc: New file.
22575         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22576         (Depends-on): Add ansi-c++-opt.
22577         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22578         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22579         gl_MODULE_INDICATOR.
22580
22581         Tests of module 'iconv-h' in C++ mode.
22582         * tests/test-iconv-h-c++.cc: New file.
22583         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22584         (Depends-on): Add ansi-c++-opt.
22585         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22586
22587         Tests of module 'glob' in C++ mode.
22588         * tests/test-glob-c++.cc: New file.
22589         * modules/glob-tests (Files): Add it.
22590         (Depends-on): Add ansi-c++-opt.
22591         (Makefile.am): Arrange to compile and run test-glob-c++.
22592
22593         Tests of module 'fcntl-h' in C++ mode.
22594         * tests/test-fcntl-h-c++.cc: New file.
22595         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22596         (Depends-on): Add ansi-c++-opt.
22597         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22598         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22599         gl_MODULE_INDICATOR.
22600
22601         Tests of module 'dirent' in C++ mode.
22602         * tests/test-dirent-c++.cc: New file.
22603         * modules/dirent-tests (Files): Add it and tests/signature.h.
22604         (Depends-on): Add ansi-c++-opt.
22605         (Makefile.am): Arrange to compile and run test-dirent-c++.
22606         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22607         gl_MODULE_INDICATOR.
22608
22609         New module 'ansi-c++-opt'.
22610         * modules/ansi-c++-opt: New file.
22611         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22612
22613         Document C++ namespace mode.
22614         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22615
22616         wctype: Avoid #define replacements in C++ mode.
22617         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22618         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22619         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22620         In C++, define a namespaced alias symbol.
22621         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22622         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22623         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22624         rule.
22625
22626         wchar: Avoid #define replacements in C++ mode.
22627         * lib/wchar.in.h: Include c++defs.h.
22628         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22629         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22630         symbol.
22631         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22632         * modules/wchar (Depends-on): Add c++defs.
22633         (Makefile.am): Update wchar.h rule.
22634
22635         unistd: Avoid #define replacements in C++ mode.
22636         * lib/unistd.in.h: Include c++defs.h.
22637         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22638         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22639         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22640         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22641         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22642         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22643         symbol.
22644         (environ): Update.
22645         * modules/unistd (Depends-on): Add c++defs.
22646         (Makefile.am): Update unistd.h rule.
22647
22648         time: Avoid #define replacements in C++ mode.
22649         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22650         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22651         define a namespaced alias symbol.
22652         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22653         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22654         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22655         * modules/time (Depends-on): Add c++defs, warn-on-use.
22656         (Makefile.am): Update time.h rule.
22657         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22658         * modules/nanosleep (configure.ac): Likewise.
22659         * modules/strptime (configure.ac): Likewise.
22660         * modules/timegm (configure.ac): Likewise.
22661
22662         sys_time: Avoid #define replacements in C++ mode.
22663         * lib/sys_time.in.h: Include c++defs.h.
22664         (gettimeofday): In C++, define a namespaced alias symbol.
22665         * modules/sys_time (Depends-on): Add c++defs.
22666         (Makefile.am): Update sys/time.h rule.
22667
22668         sys_stat: Avoid #define replacements in C++ mode.
22669         * lib/sys_stat.in.h: Include c++defs.h.
22670         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22671         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22672         namespaced alias symbol.
22673         In C++, define a namespaced alias symbol.
22674         * modules/sys_stat (Depends-on): Add c++defs.
22675         (Makefile.am): Update sys/stat.h rule.
22676
22677         sys_socket: Avoid #define replacements in C++ mode.
22678         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22679         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22680         definitions also when the system has a <sys/socket.h>.
22681         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22682         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22683         In C++, define a namespaced alias symbol.
22684         * modules/sys_socket (Depends-on): Add c++defs.
22685         (Makefile.am): Update sys/socket.h rule.
22686
22687         sys_select: Avoid #define replacements in C++ mode.
22688         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22689         definitions also when the system has a <sys/select.h>.
22690         (select): In C++, define a namespaced alias symbol.
22691         * modules/sys_select (Depends-on): Add c++defs.
22692         (Makefile.am): Update sys/select.h rule.
22693
22694         sys_ioctl: Avoid #define replacements in C++ mode.
22695         * lib/sys_ioctl.in.h: Include c++defs.h.
22696         (ioctl): In C++, define a namespaced alias symbol.
22697         * modules/sys_ioctl (Depends-on): Add c++defs.
22698         (Makefile.am): Update sys/ioctl.h rule.
22699
22700         string: Avoid #define replacements in C++ mode.
22701         * lib/string.in.h: Include c++defs.h.
22702         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22703         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22704         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22705         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22706         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22707         * modules/string (Depends-on): Add c++defs.
22708         (Makefile.am): Update string.h rule.
22709
22710         stdlib: Avoid #define replacements in C++ mode.
22711         * lib/stdlib.in.h: Include c++defs.h.
22712         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22713         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22714         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22715         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22716         symbol.
22717         * modules/stdlib (Depends-on): Add c++defs.
22718         (Makefile.am): Update stdlib.h rule.
22719
22720         stdio: Avoid #define replacements in C++ mode.
22721         * lib/stdio.in.h: Include c++defs.h.
22722         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22723         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22724         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22725         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22726         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22727         namespaced alias symbol.
22728         * modules/stdio (Depends-on): Add c++defs.
22729         (Makefile.am): Update stdio.h rule.
22730
22731         spawn: Avoid #define replacements in C++ mode.
22732         * lib/spawn.in.h: Include c++defs.h.
22733         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22734         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22735         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22736         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22737         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22738         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22739         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22740         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22741         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22742         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22743         In C++, define a namespaced alias symbol.
22744         * modules/spawn (Depends-on): Add c++defs.
22745         (Makefile.am): Update spawn.h rule.
22746
22747         signal: Avoid #define replacements in C++ mode.
22748         * lib/signal.in.h: Include c++defs.h.
22749         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22750         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22751         namespaced alias symbol.
22752         * modules/signal (Depends-on): Add c++defs.
22753         (Makefile.am): Update signal.h rule.
22754
22755         search: Avoid #define replacements in C++ mode.
22756         * lib/search.in.h: Include c++defs.h.
22757         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22758         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22759         symbol.
22760         * modules/search (Depends-on): Add c++defs.
22761         (Makefile.am): Update search.h rule.
22762
22763         math: Avoid #define replacements in C++ mode.
22764         * lib/math.in.h: Include c++defs.h.
22765         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22766         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22767         trunc, truncl): In C++, define a namespaced alias symbol.
22768         * modules/math (Depends-on): Add c++defs.
22769         (Makefile.am): Update math.h rule.
22770
22771         locale: Avoid #define replacements in C++ mode.
22772         * lib/locale.in.h: Include c++defs.h.
22773         (duplocale): In C++, define a namespaced alias symbol.
22774         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22775         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22776         * modules/locale (Depends-on): Add c++defs.
22777         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22778
22779         langinfo: Avoid #define replacements in C++ mode.
22780         * lib/langinfo.in.h: Include c++defs.h.
22781         (nl_langinfo): In C++, define a namespaced alias symbol.
22782         * modules/langinfo (Depends-on): Add c++defs.
22783         (Makefile.am): Update langinfo.h rule.
22784
22785         iconv-h: Avoid #define replacements in C++ mode.
22786         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22787         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22788         symbol.
22789         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22790         whenever iconv is present.
22791         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22792         (Makefile.am): Update iconv.h rule.
22793
22794         glob: Avoid #define replacements in C++ mode.
22795         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22796         (_gl_glob_errfunc_fn): New type.
22797         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22798         symbol.
22799         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22800         (Makefile.am): Update glob.h rule.
22801
22802         fcntl-h: Avoid #define replacements in C++ mode.
22803         * lib/fcntl.in.h: Include c++defs.h.
22804         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22805         * modules/fcntl-h (Depends-on): Add c++defs.
22806         (Makefile.am): Update fcntl.h rule.
22807
22808         dirent: Avoid #define replacements in C++ mode.
22809         * lib/dirent.in.h: Include c++defs.h.
22810         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22811         namespaced alias symbol.
22812         (dirfd): Update declaration.
22813         * modules/dirent (Depends-on): Add c++defs.
22814         (Makefile.am): Update dirent.h rule.
22815
22816         ctype: Make it usable in C++ code.
22817         * lib/ctype.in.h: Include c++defs.h.
22818         (isblank): Declare as extern "C".
22819         * modules/ctype (Depends-on): Add c++defs.
22820         (Makefile.am): Update ctype.h rule.
22821
22822         New module 'c++defs'.
22823         * modules/c++defs: New file.
22824         * build-aux/c++defs.h: New file.
22825         Reported by John W. Eaton <jwe@gnu.org>.
22826
22827 2010-03-07  Bruno Haible  <bruno@clisp.org>
22828
22829         logb: Provide missing declaration for Cygwin.
22830         * lib/math.in.h (logb): New declaration.
22831         * m4/logb.m4: New file.
22832         * modules/logb (Files): Add m4/logb.m4.
22833         (Depends-on): Add math.
22834         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22835         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22837         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22838         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22839
22840 2010-03-07  Bruno Haible  <bruno@clisp.org>
22841
22842         Fix test-cond link error.
22843         * tests/test-cond.c: Include <stdio.h>.
22844
22845 2010-03-07  Bruno Haible  <bruno@clisp.org>
22846
22847         Fix test-dirent-safer link error.
22848         * modules/dirent-safer-tests (Makefile.am): Define
22849         test_dirent_safer_LDADD.
22850
22851 2010-03-07  Bruno Haible  <bruno@clisp.org>
22852
22853         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22854         among default module list.
22855
22856 2010-03-07  Bruno Haible  <bruno@clisp.org>
22857
22858         Fix link error on platforms with GNU libiconv.
22859         * modules/unistr/u8-strcoll-tests (Makefile): Define
22860         test_u8_strcoll_LDADD.
22861         * modules/unistr/u16-strcoll-tests (Makefile): Define
22862         test_u16_strcoll_LDADD.
22863         * modules/unistr/u32-strcoll-tests (Makefile): Define
22864         test_u32_strcoll_LDADD.
22865
22866 2010-03-07  Bruno Haible  <bruno@clisp.org>
22867
22868         Use POSIX declarations for socket functions.
22869         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22870         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22871         rpl_sendto): Change declaration to match POSIX.
22872         * lib/connect.c (rpl_connect): Likewise.
22873         * lib/accept.c (rpl_accept): Likewise.
22874         * lib/bind.c (rpl_bind): Likewise.
22875         * lib/getpeername.c (rpl_getpeername): Likewise.
22876         * lib/getsockname.c (rpl_getsockname): Likewise.
22877         * lib/recv.c (rpl_recv): Likewise.
22878         * lib/send.c (rpl_send): Likewise.
22879         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22880         * lib/sendto.c (rpl_sendto): Likewise.
22881
22882 2010-03-06  Bruno Haible  <bruno@clisp.org>
22883
22884         Clarify access, euidaccess, faccessat.
22885         * doc/posix-functions/faccessat.texi: Mention security problem under
22886         "Other problems", not "Portability problems".
22887         * doc/posix-functions/access.texi: Likewise. Mention a related security
22888         problem.
22889         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22890         * lib/euidaccess.c: Add comments about platforms.
22891         * lib/unistd.in.h (access, euidaccess): Add warnings.
22892
22893 2010-03-07  Bruno Haible  <bruno@clisp.org>
22894
22895         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22896         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22897         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22898         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22899         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22900         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22901         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22902         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22903         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22904         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22905         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22906         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22907         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22908         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22909         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22910         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22911         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22912         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22913         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22914         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22915         Likewise.
22916         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22917         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22918         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22919         Likewise.
22920         * tests/test-spawn.c (main): Make it work when
22921         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22922
22923 2010-03-07  Bruno Haible  <bruno@clisp.org>
22924
22925         Fix incorrect Makefile.am generation in German locale.
22926         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22927         Execute sed command with character range in C locale.
22928
22929 2010-03-06  Bruno Haible  <bruno@clisp.org>
22930
22931         Tests for module 'iconv-h'.
22932         * modules/iconv-h-tests: New file.
22933         * tests/test-iconv-h.c: New file.
22934
22935         New module 'iconv-h'.
22936         * modules/iconv-h: New file.
22937         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22938         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22939         (configure.ac): Remove gl_ICONV_H.
22940         (Makefile.am): Remove rule for iconv.h.
22941
22942 2010-03-06  Bruno Haible  <bruno@clisp.org>
22943
22944         More consistent naming of *.m4 files.
22945         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22946         * modules/wctype (Files): Update.
22947
22948         More consistent naming of *.m4 files.
22949         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22950         * modules/wchar (Files): Update.
22951
22952 2010-03-06  Jim Meyering  <meyering@redhat.com>
22953
22954         euidaccess: relax license to LGPLv2+
22955         * modules/euidaccess (License): Relax to LGPLv2+.
22956
22957 2010-03-06  Bruno Haible  <bruno@clisp.org>
22958
22959         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22960         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22961         (Makefile.am): Augment lib_SOURCES instead.
22962
22963 2010-03-04  Jim Meyering  <meyering@redhat.com>
22964
22965         utime: remove obsolete module
22966         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22967         unnecessary for years, and has been marked as obsolete for 10 months.
22968         * modules/utime: Remove file.
22969         * lib/utime.c: Remove file.
22970         * m4/utime.m4: Remove file.
22971         * m4/utimes-null.m4: Remove file.
22972         * doc/posix-functions/utime.texi (utime): Remove reference to
22973         the module.  Move the sole "fixed by gnulib" item into the
22974         "problems not fixed by Gnulib" list.
22975         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22976
22977 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22978
22979         * modules/exit (License): Relax license to LGPLv2+.
22980         (Status): Mark as obsolete.
22981         * NEWS: Mention deprecated 'exit' module.
22982         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22983         of now obsolete 'exit'.
22984
22985 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22986
22987         fts-lgpl: remove unused module
22988         * modules/fts-lgpl: Remove.
22989         * MODULES.html.sh (func_all_modules): Adjust.
22990         * check-module (find_included_lib_files): Adjust.
22991         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22992
22993 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22994
22995         copy-acl: enhance Solaris ACL error handling
22996         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22997         * lib/set-mode-acl.c (qset_acl): Likewise.
22998
22999 2010-03-02  Bruno Haible  <bruno@clisp.org>
23000
23001         spawn: Don't override the system defined values on FreeBSD 8.
23002         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23003         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23004         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23005         if HAVE_POSIX_SPAWN is 1.
23006         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23007
23008 2010-03-01  Bruno Haible  <bruno@clisp.org>
23009
23010         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23011         regarding Automake.
23012
23013 2010-02-25  Bruno Haible  <bruno@clisp.org>
23014
23015         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23016         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23017         setting, not afterwards.
23018         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23019
23020 2010-02-24  Eric Blake  <eblake@redhat.com>
23021
23022         bootstrap, git-version-gen: use timestamp
23023         * build-aux/git-version-gen (scriptversion): Force UTC.
23024         * build-aux/bootstrap (scriptversion): New variable.
23025
23026         bootstrap: allow older git
23027         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23028         older than 1.6.4.  Requested by the libvirt project.
23029
23030 2010-02-23  Eric Blake  <eblake@redhat.com>
23031
23032         warn-on-use: work with old autoconf
23033         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23034         AS_VAR semantics of autoconf 2.60.
23035         Reported by Bruno Haible.
23036
23037         bootstrap: improve some comments
23038         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23039         clarification comments.
23040
23041         gettimeofday: provide correct function
23042         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23043         when replacement is declared, otherwise provide gettimeofday.
23044         Reported by Michael Goffioul.
23045
23046 2010-02-23  Jim Meyering  <meyering@redhat.com>
23047
23048         lib-ignore: relax license to "unlimited", not LGPLv2+
23049         * modules/lib-ignore (License): Relax to "unlimited".
23050
23051 2010-02-23  Jim Meyering  <meyering@redhat.com>
23052
23053         lib-ignore: relax license to LGPLv2+
23054         * modules/lib-ignore (License): Relax to LGPLv2+.
23055
23056 2010-02-22  Eric Blake  <eblake@redhat.com>
23057
23058         lseek: avoid bash 3.2 broken pipe bug
23059         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23060         warning from bash 3.2.
23061         Reported by Ben Pfaff, with analysis from Bruno Haible.
23062
23063         bootstrap: support non-FSF copyright holder
23064         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23065         bootstrap.conf override of COPYRIGHT_HOLDER.
23066         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23067
23068         bootstrap: interoperate with gettext 0.14.1
23069         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23070
23071         bootstrap: allow for alternate submodule location
23072         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23073         hardcoding submodule location.
23074         (gnulib_mk): Allow direct use of Makefile.am.
23075
23076         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23077         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23078         rather than reconfiguring where the submodule points.
23079
23080         gettimeofday: restore support for platforms that lack function
23081         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23082         replacement if function is missing.
23083         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23084         * modules/sys_time (Makefile.am): Substitute it.
23085         * lib/sys_time.in.h (gettimeofday): Check it.
23086         Reported by Michael Goffioul.
23087
23088 2010-02-21  Bruno Haible  <bruno@clisp.org>
23089
23090         * lib/stdio.in.h (obstack_printf): Fix typo.
23091
23092 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23093
23094         vc-list-files: use bzr ls's -R option
23095         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23096         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23097
23098 2010-02-21  Jim Meyering  <meyering@redhat.com>
23099
23100         init.sh: fix EXEEXT shims to work also for names like test-prog
23101         * tests/init.sh: Re-exec a better shell, when needed.
23102         If the current shell lacks support for posix $(...), an init.sh-using
23103         test will now try to find a shell that supports that.  If EXEEXT is
23104         nonempty, we also require support for hyphen-in-alias-name and shell
23105         substitutions like ${var#glob}.  Failure to find such a shell results
23106         in a skipped test.
23107
23108 2010-02-21  Bruno Haible  <bruno@clisp.org>
23109
23110         Really work around around "broken pipe" error message from bash 3.2.
23111         * gnulib-tool (func_reset_sigpipe): Remove function.
23112         (echo): In bash 3.2, define to a function that uses printf.
23113         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23114
23115 2010-02-20  Bruno Haible  <bruno@clisp.org>
23116
23117         Restore support for automake 1.9.6 with autoconf 2.61.
23118         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23119         Reported by James Youngman <jay@gnu.org>.
23120
23121 2010-02-20  Bruno Haible  <bruno@clisp.org>
23122
23123         Improve *printf warning condition.
23124         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23125         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23126         and the function is overridden due to SIGPIPE emulation.
23127
23128 2010-02-20  Bruno Haible  <bruno@clisp.org>
23129
23130         * lib/stdio.in.h: Tweak comments.
23131
23132 2010-02-19  Bruno Haible  <bruno@clisp.org>
23133
23134         Make it easier to find modules. New gnulib-tool option '--find'.
23135         * gnulib-tool: New option --find.
23136         (func_usage): Document it.
23137         (func_sanitize_modulelist): New function, extracted from
23138         func_all_modules.
23139         (func_all_modules): Invoke it.
23140         * doc/gnulib-tool.texi (Which modules?): New node.
23141
23142 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23143
23144         * lib/sys_select.in.h: Provide select replacement even if
23145         sys/select.h exists on a system, for Interix.
23146
23147 2010-02-18  Jim Meyering  <meyering@redhat.com>
23148
23149         init.sh: don't use $(...) just yet
23150         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23151         to accommodate e.g., Solaris' /bin/sh.
23152
23153 2010-02-17  Bruno Haible  <bruno@clisp.org>
23154
23155         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23156         Reported by Ludovic Courtès <ludo@gnu.org>.
23157
23158 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23159
23160         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23161         linking with -lintl.
23162
23163 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23164
23165         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23166         if not provided by the system's netdb.h.  Reported by
23167         ludo@gnu.org (Ludovic Courtès).
23168
23169 2010-02-15  Jim Meyering  <meyering@redhat.com>
23170
23171         init.sh: improve portability and efficiency
23172         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23173         "dummy" in a for loop.
23174         Use '!', not '^' to select the complement of a character set used
23175         in a "case" statement.
23176         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23177         Suggestions from Eric Blake.
23178
23179         init.sh: automatically accommodate programs with the .exe suffix
23180         Automatically arrange for an invocation of "prog" to execute the
23181         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23182         may use the simpler "prog", yet still work when built on a system
23183         that requires specifying the added suffix.
23184         Do this by constructing a function named "prog" that invokes
23185         "prog.exe" for each .exe file in selected directories.
23186         * tests/init.sh (find_exe_basenames_): New function.
23187         (create_exe_shim_functions_): New function.
23188         (path_prepend_): Use it.
23189
23190         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23191         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23192         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23193
23194 2010-02-14  Jim Meyering  <meyering@redhat.com>
23195
23196         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23197         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23198         (sc_prohibit_hash_pjw_without_use): New rule.
23199
23200         maint.mk: allow the default upload destination dir to be overridden
23201         * top/maint.mk (upload_dest_dir_): Define with a default that
23202         preserves the status quo.
23203         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23204         Reported by Peter Simons.
23205
23206         maint.mk: prohibit inclusion of "hash.h" without_use
23207         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23208
23209 2010-02-10  Jim Meyering  <meyering@redhat.com>
23210
23211         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23212         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23213
23214 2010-02-09  Eric Blake  <ebb9@byu.net>
23215         and Bruno Haible  <bruno@clisp.org>
23216
23217         obstack-printf-posix: ensure declaration
23218         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23219         extracted from gl_FUNC_OBSTACK_PRINTF.
23220         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23221         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23222         Likewise.
23223         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23224         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23225         0.
23226
23227 2010-02-08  Bruno Haible  <bruno@clisp.org>
23228
23229         gnulib-tool: Fix typo in 2010-02-07 commit.
23230         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23231         Reported by Eric Blake.
23232
23233 2010-02-07  Bruno Haible  <bruno@clisp.org>
23234
23235         gnulib-tool: Fix up caching patches.
23236         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23237         option --no-cache. Use associative arrays when supported by the shell.
23238         (sed_comments): New variable.
23239         (modcache): Renamed from do_cache.
23240         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23241         abbreviate unnecessarily.
23242         (have_associative): New variable.
23243         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23244         way also for ksh and zsh.
23245         (func_init_sed_convert_to_cache_statements): New function, extracted
23246         from func_cache_lookup_module. Add support for associative arrays.
23247         Don't set the c_MODULE_cached variable here. Ignore all lines before
23248         the first field header. Remove only the final newline, not all trailing
23249         newlines. Support empty fields correctly. Limit the use of 'eval' to
23250         assignments.
23251         (func_get_description, func_get_status, func_get_notice,
23252         func_get_applicability, func_get_filelist, func_get_dependencies,
23253         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23254         func_get_automake_snippet, func_get_include_directive,
23255         func_get_link_directive, func_get_license, func_get_maintainer):
23256         Update documentation. List the unoptimized code first. Add support for
23257         associative arrays. Limit the use of 'eval' to assignments.
23258         (func_get_applicability): Undo stylistic pessimisations.
23259         (func_get_automake_snippet, func_get_include_directive): Reduce code
23260         duplication.
23261         (func_modules_transitive_closure, func_modules_add_dummy,
23262         func_modules_notice, func_modules_to_filelist, func_add_file,
23263         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23264         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23265         func_create_testdir, func_create_megatestdir): Update documentation.
23266
23267 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23268
23269         * gnulib-tool (func_cache_lookup_module): Store the module name
23270         belonging to the cache variable; error out if two different
23271         module names map to the same cache variable name.
23272
23273 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23274
23275         gnulib-tool: Make caching optional.
23276         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23277         Update matching short versions of --no-changelog.
23278         (func_usage): Update.
23279         (sed_extract_cache_prog): Renamed from ...
23280         (sed_extract_prog): ... this; revert to old extraction script.
23281         (func_get_description, func_get_status)
23282         (func_get_notice, func_get_applicability, func_get_filelist)
23283         (func_get_dependencies, func_get_autoconf_early_snippet)
23284         (func_get_autoconf_snippet, func_get_automake_snippet)
23285         (func_get_include_directive, func_get_link_directive)
23286         (func_get_license, func_get_maintainer): If $do_cache is false,
23287         use old, non-caching extraction scripts.
23288         Suggestion by Bruno Haible.
23289
23290 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23291
23292         gnulib-tool: cache module metainformation.
23293         * gnulib-tool (sed_extract_prog): Match newline before each
23294         header, and rewrite header to a shell variable suffix.
23295         (func_cache_var, func_cache_lookup_module): New functions,
23296         to turn a module name into a cache variable prefix, and to
23297         look up and cache module metainformation.
23298         (func_get_description, func_get_status)
23299         (func_get_notice, func_get_applicability, func_get_filelist)
23300         (func_get_dependencies, func_get_autoconf_early_snippet)
23301         (func_get_autoconf_snippet, func_get_automake_snippet)
23302         (func_get_include_directive, func_get_link_directive)
23303         (func_get_license, func_get_maintainer): Use
23304         func_cache_lookup_module.
23305
23306 2010-02-07  Bruno Haible  <bruno@clisp.org>
23307
23308         fnctl: Fix missing dependency.
23309         * modules/fcntl (Depends-on): Add getdtablesize.
23310         Reported by John W. Eaton <jwe@gnu.org>.
23311
23312 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23313
23314         Argp: fix recognition of short alias options.
23315
23316         * lib/argp-parse.c (convert_options): Fix improper use of
23317         `|' between character values.
23318         * tests/test-argp.c (group1_option): New alias option
23319         --read (-r).
23320         (group1_parser): Special handling for 'r'.
23321         (test15): New test case.
23322         (test_fun): Add test15.
23323         * tests/test-argp-2.sh: Update expected --help and --usage
23324         outputs.
23325
23326 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23327
23328         * tests/test-argp.c: Fix indentation.
23329
23330 2010-02-04  Eric Blake  <ebb9@byu.net>
23331
23332         gettimeofday: expose type of second argument
23333         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23334         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23335         * tests/test-gettimeofday.c: Use it to silence warning.
23336         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23337         the issue.
23338
23339 2010-02-03  Jim Meyering  <meyering@redhat.com>
23340
23341         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23342         * lib/regcomp.c (TYPE_SIGNED): Define.
23343         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23344
23345         regcomp.c: avoid a new -Wshadow warning
23346         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23347
23348 2010-02-01  Jim Meyering  <meyering@redhat.com>
23349
23350         removing useless parentheses in cpp #define directives
23351         For motivation, see commit c0221df4, "define STREQ(a,b)
23352         consistently, removing useless parentheses"
23353         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23354         * lib/mountlist.c (MNT_IGNORE): Likewise.
23355         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23356
23357 2010-02-01  Eric Blake  <ebb9@byu.net>
23358
23359         sys_time: use link-warning
23360         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23361         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23362         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23363         * modules/sys_time (Depends-on): Add warn-on-use.
23364         (Makefile.am): Always build replacement.
23365         (configure.ac): Update substitutions.
23366         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23367         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23368         bother with SYS_TIME_H.
23369         * modules/gettimeofday (configure.ac): Declare indicator.
23370         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23371         in use.
23372
23373         closein-tests: silence compiler warning
23374         * tests/test-closein.c (main): Ignore fread result.
23375         * modules/closein-tests (Depends-on): Add ignore-value.
23376
23377         tests: silence warning about system return
23378         * tests/test-areadlink-with-size.c (main): Ignore system result.
23379         * tests/test-areadlink.c (main): Likewise.
23380         * tests/test-areadlinkat-with-size.c (main): Likewise.
23381         * tests/test-areadlinkat.c (main): Likewise.
23382         * tests/test-canonicalize-lgpl.c (main): Likewise.
23383         * tests/test-canonicalize.c (main): Likewise.
23384         * tests/test-chown.c (main): Likewise.
23385         * tests/test-fchownat.c (main): Likewise.
23386         * tests/test-fdutimensat.c (main): Likewise.
23387         * tests/test-fstatat.c (main): Likewise.
23388         * tests/test-futimens.c (main): Likewise.
23389         * tests/test-lchown.c (main): Likewise.
23390         * tests/test-link.c (main): Likewise.
23391         * tests/test-linkat.c (main): Likewise.
23392         * tests/test-lstat.c (main): Likewise.
23393         * tests/test-mkdir.c (main): Likewise.
23394         * tests/test-mkdirat.c (main): Likewise.
23395         * tests/test-mkfifo.c (main): Likewise.
23396         * tests/test-mkfifoat.c (main): Likewise.
23397         * tests/test-mknod.c (main): Likewise.
23398         * tests/test-readlink.c (main): Likewise.
23399         * tests/test-remove.c (main): Likewise.
23400         * tests/test-rename.c (main): Likewise.
23401         * tests/test-renameat.c (main): Likewise.
23402         * tests/test-rmdir.c (main): Likewise.
23403         * tests/test-symlink.c (main): Likewise.
23404         * tests/test-symlinkat.c (main): Likewise.
23405         * tests/test-unlink.c (main): Likewise.
23406         * tests/test-unlinkat.c (main): Likewise.
23407         * tests/test-utimens.c (main): Likewise.
23408         * tests/test-utimensat.c (main): Likewise.
23409         * modules/areadlink-tests (Depends-on): Add ignore-value.
23410         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23411         * modules/areadlinkat-tests (Depends-on): Likewise.
23412         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23413         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23414         * modules/canonicalize-tests (Depends-on): Likewise.
23415         * modules/chown-tests (Depends-on): Likewise.
23416         * modules/fdutimensat-tests (Depends-on): Likewise.
23417         * modules/futimens-tests (Depends-on): Likewise.
23418         * modules/lchown-tests (Depends-on): Likewise.
23419         * modules/link-tests (Depends-on): Likewise.
23420         * modules/linkat-tests (Depends-on): Likewise.
23421         * modules/lstat-tests (Depends-on): Likewise.
23422         * modules/mkdir-tests (Depends-on): Likewise.
23423         * modules/mkfifo-tests (Depends-on): Likewise.
23424         * modules/mkfifoat-tests (Depends-on): Likewise.
23425         * modules/mknod-tests (Depends-on): Likewise.
23426         * modules/openat-tests (Depends-on): Likewise.
23427         * modules/readlink-tests (Depends-on): Likewise.
23428         * modules/remove-tests (Depends-on): Likewise.
23429         * modules/rename-tests (Depends-on): Likewise.
23430         * modules/renameat-tests (Depends-on): Likewise.
23431         * modules/rmdir-tests (Depends-on): Likewise.
23432         * modules/symlink-tests (Depends-on): Likewise.
23433         * modules/symlinkat-tests (Depends-on): Likewise.
23434         * modules/unlink-tests (Depends-on): Likewise.
23435         * modules/utimens-tests (Depends-on): Likewise.
23436         * modules/utimensat-tests (Depends-on): Likewise.
23437
23438 2010-01-31  Bruno Haible  <bruno@clisp.org>
23439
23440         Perform the same test for many <math.h> functions.
23441         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23442         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23443         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23444         of gl_MATHFUNC.
23445         * modules/acos (configure.ac): Likewise.
23446         * modules/asin (configure.ac): Likewise.
23447         * modules/atan (configure.ac): Likewise.
23448         * modules/atan2 (configure.ac): Likewise.
23449         * modules/cbrt (configure.ac): Likewise.
23450         * modules/copysign (configure.ac): Likewise.
23451         * modules/cos (configure.ac): Likewise.
23452         * modules/cosh (configure.ac): Likewise.
23453         * modules/erf (configure.ac): Likewise.
23454         * modules/erfc (configure.ac): Likewise.
23455         * modules/exp (configure.ac): Likewise.
23456         * modules/fmod (configure.ac): Likewise.
23457         * modules/hypot (configure.ac): Likewise.
23458         * modules/j0 (configure.ac): Likewise.
23459         * modules/j1 (configure.ac): Likewise.
23460         * modules/jn (configure.ac): Likewise.
23461         * modules/lgamma (configure.ac): Likewise.
23462         * modules/log (configure.ac): Likewise.
23463         * modules/log10 (configure.ac): Likewise.
23464         * modules/log1p (configure.ac): Likewise.
23465         * modules/pow (configure.ac): Likewise.
23466         * modules/remainder (configure.ac): Likewise.
23467         * modules/sin (configure.ac): Likewise.
23468         * modules/sinh (configure.ac): Likewise.
23469         * modules/tan (configure.ac): Likewise.
23470         * modules/tanh (configure.ac): Likewise.
23471         * modules/y0 (configure.ac): Likewise.
23472         * modules/y1 (configure.ac): Likewise.
23473         * modules/yn (configure.ac): Likewise.
23474         Suggested by Paolo Bonzini.
23475
23476 2010-01-31  Bruno Haible  <bruno@clisp.org>
23477
23478         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23479
23480 2010-01-31  Bruno Haible  <bruno@clisp.org>
23481
23482         Work around getdelim() bug on FreeBSD 8.0.
23483         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23484         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23485         not work.
23486         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23487         is 1.
23488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23489         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23490         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23491         a non-zero size.
23492         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23493
23494 2010-01-31  Bruno Haible  <bruno@clisp.org>
23495
23496         Work around getline() bug on FreeBSD 8.0.
23497         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23498         and a non-zero size.
23499         * tests/test-getline.c (main): Likewise.
23500         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23501         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23502
23503 2010-01-28  Eric Blake  <ebb9@byu.net>
23504
23505         regex: fix build failure
23506         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23507         platforms.
23508
23509 2010-01-28  Jim Meyering  <meyering@redhat.com>
23510
23511         regex: do not ignore memory allocation failure
23512         * lib/regex_internal.c (create_cd_newstate): Detect
23513         re_node_set_init_copy failure.   Extracted from glibc commit
23514         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23515
23516         regex: sync more white-space changes from libc
23517         * lib/regex_internal.c: White-space only changes.
23518         * lib/regexec.c: Likewise.
23519
23520         regex: add many uses of __attribute_warn_unused_result__
23521         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23522         * lib/regexec.c: Likewise.
23523         Extracted from a messy glibc commit.
23524
23525         regcomp.c: spelling and merge-artifact from glibc
23526         * lib/regcomp.c: Merge remainder of glibc's
23527         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23528
23529         regcomp.c: sync white-space changes from glibc
23530         * lib/regcomp.c: Merge to accommodate white space
23531         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23532
23533         regcomp.c: do not ignore internal return values
23534         * lib/regcomp.c: Do not ignore internal return values.
23535         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23536         but without its white-space changes and spelling fixes.
23537
23538         regex_internal.h: define __attribute_warn_unused_result__
23539         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23540
23541         maint: add a syntax-check rule to check for vulnerable Makefile.in
23542         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23543
23544 2010-01-27  Jim Meyering  <meyering@redhat.com>
23545
23546         ncftpput-ftp: clean up spaces
23547         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23548         Remove trailing blanks.
23549
23550 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23551
23552         * build-aux/git-version-gen: Fix copyright statement.
23553         * build-aux/gnupload: Likewise.
23554         * tests/test-arcfour.c: Likewise.
23555         * tests/test-arctwo.c: Likewise.
23556         * tests/test-count-one-bits.c: Likewise.
23557         * tests/test-crc.c: Likewise.
23558         * tests/test-des.c: Likewise.
23559         * tests/test-gc-arcfour.c: Likewise.
23560         * tests/test-gc-arctwo.c: Likewise.
23561         * tests/test-gc-des.c: Likewise.
23562         * tests/test-gc-hmac-md5.c: Likewise.
23563         * tests/test-gc-hmac-sha1.c: Likewise.
23564         * tests/test-gc-md2.c: Likewise.
23565         * tests/test-gc-md4.c: Likewise.
23566         * tests/test-gc-md5.c: Likewise.
23567         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23568         * tests/test-gc-rijndael.c: Likewise.
23569         * tests/test-gc-sha1.c: Likewise.
23570         * tests/test-gc.c: Likewise.
23571         * tests/test-gethostname.c: Likewise.
23572         * tests/test-gettimeofday.c: Likewise.
23573         * tests/test-hash.c: Likewise.
23574         * tests/test-hmac-md5.c: Likewise.
23575         * tests/test-hmac-sha1.c: Likewise.
23576         * tests/test-md2.c: Likewise.
23577         * tests/test-md4.c: Likewise.
23578         * tests/test-md5.c: Likewise.
23579         * tests/test-memchr.c: Likewise.
23580         * tests/test-memchr2.c: Likewise.
23581         * tests/test-memcmp.c: Likewise.
23582         * tests/test-memmem.c: Likewise.
23583         * tests/test-memrchr.c: Likewise.
23584         * tests/test-rawmemchr.c: Likewise.
23585         * tests/test-read-file.c: Likewise.
23586         * tests/test-rijndael.c: Likewise.
23587         * tests/test-sockets.c: Likewise.
23588         * tests/test-strchrnul.c: Likewise.
23589         * tests/test-strstr.c: Likewise.
23590         * tests/test-strtod.c: Likewise.
23591         * build-aux/ncftpput-ftp: Likewise.
23592
23593 2010-01-26  Eric Blake  <ebb9@byu.net>
23594
23595         ignore-value: update recommended header name
23596         * modules/ignore-value (Include): Only use <> for headers that
23597         exist in glibc.
23598
23599 2010-01-26  Jim Meyering  <meyering@redhat.com>
23600
23601         test-userspec.c: avoid compiler warnings
23602         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23603         and "initialization discards qualifiers..." warnings.
23604         Put the first "uid" in its own scope, and make char* members "const".
23605
23606 2010-01-25  Bruno Haible  <bruno@clisp.org>
23607
23608         gnulib-tool: Make warning diagnostics consistent.
23609         * gnulib-tool (func_warning): New function.
23610         Use it everywhere where gnulib-tool produces output to stderr and it is
23611         not a fatal error.
23612
23613 2010-01-25  Bruno Haible  <bruno@clisp.org>
23614
23615         Fix test dependencies.
23616         * modules/xstrtol-tests (Depends-on): Add inttypes.
23617         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23618
23619 2010-01-25 Pádraig Brady <P@draigBrady.com>
23620
23621         syntax-check: detect incorrect boolean macro values in config.h
23622         * modules/maintainer-makefile (configure.ac): Parameterize the location
23623         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23624         The logic is from Eric Blake and the location indicated by Jim Meyering.
23625         Note the more natural CONFIG_HEADER name is prohibited by automake
23626         for backwards compatibility reasons.
23627         * top/maint.mk (sc_Wundef_boolean): New rule.
23628
23629 2010-01-25  Jim Meyering  <meyering@redhat.com>
23630
23631         bootstrap: detect MacOS 10.6's shasum, too
23632         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23633         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23634
23635 2010-01-23  Jim Meyering  <meyering@redhat.com>
23636
23637         xstrtoll: new module
23638         * modules/xstrtoll: New file.
23639         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23640         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23641         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23642         ./configure fails if you use this module and lack "long long".
23643         * modules/xstrtoll-tests: New module.
23644         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23645         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23646         new init.sh-based test framework.
23647
23648 2010-01-24  Bruno Haible  <bruno@clisp.org>
23649
23650         Tests for module 'yn'.
23651         * modules/yn-tests: New file.
23652         * tests/test-yn.c: New file.
23653
23654         Tests for module 'y1'.
23655         * modules/y1-tests: New file.
23656         * tests/test-y1.c: New file.
23657
23658         Tests for module 'y0'.
23659         * modules/y0-tests: New file.
23660         * tests/test-y0.c: New file.
23661
23662         Tests for module 'tanh'.
23663         * modules/tanh-tests: New file.
23664         * tests/test-tanh.c: New file.
23665
23666         Tests for module 'tan'.
23667         * modules/tan-tests: New file.
23668         * tests/test-tan.c: New file.
23669
23670         Tests for module 'sqrt'.
23671         * modules/sqrt-tests: New file.
23672         * tests/test-sqrt.c: New file.
23673
23674         Tests for module 'sinh'.
23675         * modules/sinh-tests: New file.
23676         * tests/test-sinh.c: New file.
23677
23678         Tests for module 'sin'.
23679         * modules/sin-tests: New file.
23680         * tests/test-sin.c: New file.
23681
23682         Tests for module 'rint'.
23683         * modules/rint-tests: New file.
23684         * tests/test-rint.c: New file.
23685
23686         Tests for module 'remainder'.
23687         * modules/remainder-tests: New file.
23688         * tests/test-remainder.c: New file.
23689
23690         Tests for module 'pow'.
23691         * modules/pow-tests: New file.
23692         * tests/test-pow.c: New file.
23693
23694         Tests for module 'nextafter'.
23695         * modules/nextafter-tests: New file.
23696         * tests/test-nextafter.c: New file.
23697
23698         Tests for module 'modf'.
23699         * modules/modf-tests: New file.
23700         * tests/test-modf.c: New file.
23701
23702         Tests for module 'logb'.
23703         * modules/logb-tests: New file.
23704         * tests/test-logb.c: New file.
23705
23706         Tests for module 'log1p'.
23707         * modules/log1p-tests: New file.
23708         * tests/test-log1p.c: New file.
23709
23710         Tests for module 'log10'.
23711         * modules/log10-tests: New file.
23712         * tests/test-log10.c: New file.
23713
23714         Tests for module 'log'.
23715         * modules/log-tests: New file.
23716         * tests/test-log.c: New file.
23717
23718         Tests for module 'lgamma'.
23719         * modules/lgamma-tests: New file.
23720         * tests/test-lgamma.c: New file.
23721
23722         Tests for module 'ldexp'.
23723         * modules/ldexp-tests: New file.
23724         * tests/test-ldexp.c: New file.
23725
23726         Tests for module 'jn'.
23727         * modules/jn-tests: New file.
23728         * tests/test-jn.c: New file.
23729
23730         Tests for module 'j1'.
23731         * modules/j1-tests: New file.
23732         * tests/test-j1.c: New file.
23733
23734         Tests for module 'j0'.
23735         * modules/j0-tests: New file.
23736         * tests/test-j0.c: New file.
23737
23738         Tests for module 'hypot'.
23739         * modules/hypot-tests: New file.
23740         * tests/test-hypot.c: New file.
23741
23742         Tests for module 'fmod'.
23743         * modules/fmod-tests: New file.
23744         * tests/test-fmod.c: New file.
23745
23746         Tests for module 'fabs'.
23747         * modules/fabs-tests: New file.
23748         * tests/test-fabs.c: New file.
23749
23750         Tests for module 'exp'.
23751         * modules/exp-tests: New file.
23752         * tests/test-exp.c: New file.
23753
23754         Tests for module 'erfc'.
23755         * modules/erfc-tests: New file.
23756         * tests/test-erfc.c: New file.
23757
23758         Tests for module 'erf'.
23759         * modules/erf-tests: New file.
23760         * tests/test-erf.c: New file.
23761
23762         Tests for module 'cosh'.
23763         * modules/cosh-tests: New file.
23764         * tests/test-cosh.c: New file.
23765
23766         Tests for module 'cos'.
23767         * modules/cos-tests: New file.
23768         * tests/test-cos.c: New file.
23769
23770         Tests for module 'copysign'.
23771         * modules/copysign-tests: New file.
23772         * tests/test-copysign.c: New file.
23773
23774         Tests for module 'cbrt'.
23775         * modules/cbrt-tests: New file.
23776         * tests/test-cbrt.c: New file.
23777
23778         Tests for module 'atan2'.
23779         * modules/atan2-tests: New file.
23780         * tests/test-atan2.c: New file.
23781
23782         Tests for module 'atan'.
23783         * modules/atan-tests: New file.
23784         * tests/test-atan.c: New file.
23785
23786         Tests for module 'asin'.
23787         * modules/asin-tests: New file.
23788         * tests/test-asin.c: New file.
23789
23790         Tests for module 'acos'.
23791         * modules/acos-tests: New file.
23792         * tests/test-acos.c: New file.
23793
23794 2010-01-24  Bruno Haible  <bruno@clisp.org>
23795
23796         Fix tests for common <math.h> functions.
23797         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23798         code snippet that references the function pointer, rather than merely
23799         calling the function. Substitute the FUNC_LIBM variable.
23800         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23801         * modules/acos (configure.ac): Likewise.
23802         * modules/asin (configure.ac): Likewise.
23803         * modules/atan (configure.ac): Likewise.
23804         * modules/atan2 (configure.ac): Likewise.
23805         * modules/cbrt (configure.ac): Likewise.
23806         * modules/copysign (configure.ac): Likewise.
23807         * modules/cos (configure.ac): Likewise.
23808         * modules/cosh (configure.ac): Likewise.
23809         * modules/erf (configure.ac): Likewise.
23810         * modules/erfc (configure.ac): Likewise.
23811         * modules/exp (configure.ac): Likewise.
23812         * modules/fabs (configure.ac): Likewise.
23813         * modules/fmod (configure.ac): Likewise.
23814         * modules/hypot (configure.ac): Likewise.
23815         * modules/j0 (configure.ac): Likewise.
23816         * modules/j1 (configure.ac): Likewise.
23817         * modules/jn (configure.ac): Likewise.
23818         * modules/ldexp (configure.ac): Likewise.
23819         * modules/lgamma (configure.ac): Likewise.
23820         * modules/log (configure.ac): Likewise.
23821         * modules/log10 (configure.ac): Likewise.
23822         * modules/log1p (configure.ac): Likewise.
23823         * modules/logb (configure.ac): Likewise.
23824         * modules/modf (configure.ac): Likewise.
23825         * modules/nextafter (configure.ac): Likewise.
23826         * modules/pow (configure.ac): Likewise.
23827         * modules/remainder (configure.ac): Likewise.
23828         * modules/rint (configure.ac): Likewise.
23829         * modules/sin (configure.ac): Likewise.
23830         * modules/sinh (configure.ac): Likewise.
23831         * modules/tan (configure.ac): Likewise.
23832         * modules/tanh (configure.ac): Likewise.
23833         * modules/y0 (configure.ac): Likewise.
23834         * modules/y1 (configure.ac): Likewise.
23835         * modules/yn (configure.ac): Likewise.
23836
23837 2010-01-24  Bruno Haible  <bruno@clisp.org>
23838
23839         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23840         * tests/test-acosl.c (x): New variable.
23841         (main): Store argument in x and fetch it from x.
23842         * tests/test-asinl.c (x): New variable.
23843         (main): Store argument in x and fetch it from x.
23844         * tests/test-atanl.c (x): New variable.
23845         (main): Store argument in x and fetch it from x.
23846         * tests/test-cosl.c (x): New variable.
23847         (main): Store argument in x and fetch it from x.
23848         * tests/test-expl.c (x): New variable.
23849         (main): Store argument in x and fetch it from x.
23850         * tests/test-logl.c (x): New variable.
23851         (main): Store argument in x and fetch it from x.
23852         * tests/test-sinl.c (x): New variable.
23853         (main): Store argument in x and fetch it from x.
23854         * tests/test-sqrtl.c (x): New variable.
23855         (main): Store argument in x and fetch it from x.
23856         * tests/test-tanl.c (x): New variable.
23857         (main): Store argument in x and fetch it from x.
23858
23859 2010-01-24  Bruno Haible  <bruno@clisp.org>
23860
23861         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23862         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23863         assignments to the initial TESTS_ENVIRONMENT.
23864         * doc/gnulib.texi (Unit test modules): Document it.
23865         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23866         TESTS_ENVIRONMENT.
23867         * modules/btowc-tests (Makefile.am): Likewise.
23868         * modules/c-stack-tests (Makefile.am): Likewise.
23869         * modules/c-strcase-tests (Makefile.am): Likewise.
23870         * modules/copy-file-tests (Makefile.am): Likewise.
23871         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23872         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23873         * modules/mbrtowc-tests (Makefile.am): Likewise.
23874         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23875         * modules/mbscasestr-tests (Makefile.am): Likewise.
23876         * modules/mbschr-tests (Makefile.am): Likewise.
23877         * modules/mbscspn-tests (Makefile.am): Likewise.
23878         * modules/mbsinit-tests (Makefile.am): Likewise.
23879         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23880         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23881         * modules/mbspbrk-tests (Makefile.am): Likewise.
23882         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23883         * modules/mbsrchr-tests (Makefile.am): Likewise.
23884         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23885         * modules/mbsspn-tests (Makefile.am): Likewise.
23886         * modules/mbsstr-tests (Makefile.am): Likewise.
23887         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23888         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23889         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23890         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23891         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23892         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23893         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23894         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23895         * modules/wcrtomb-tests (Makefile.am): Likewise.
23896         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23897         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23898         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23899         assignments from TESTS_ENVIRONMENT.
23900         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23901         augmentation.
23902         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23903         * modules/atexit-tests (Makefile.am): Likewise.
23904         * modules/binary-io-tests (Makefile.am): Likewise.
23905         * modules/closein-tests (Makefile.am): Likewise.
23906         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23907         * modules/exclude-tests (Makefile.am): Likewise.
23908         * modules/fflush-tests (Makefile.am): Likewise.
23909         * modules/fpending-tests (Makefile.am): Likewise.
23910         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23911         * modules/freadahead-tests (Makefile.am): Likewise.
23912         * modules/freadptr-tests (Makefile.am): Likewise.
23913         * modules/freadseek-tests (Makefile.am): Likewise.
23914         * modules/fseek-tests (Makefile.am): Likewise.
23915         * modules/fseeko-tests (Makefile.am): Likewise.
23916         * modules/ftell-tests (Makefile.am): Likewise.
23917         * modules/ftello-tests (Makefile.am): Likewise.
23918         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23919         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23920         * modules/lseek-tests (Makefile.am): Likewise.
23921         * modules/parse-duration-tests (Makefile.am): Likewise.
23922         * modules/perror-tests (Makefile.am): Likewise.
23923         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23924         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23925         * modules/pipe-tests (Makefile.am): Likewise.
23926         * modules/pread-tests (Makefile.am): Likewise.
23927         * modules/printf-posix-tests (Makefile.am): Likewise.
23928         * modules/select-tests (Makefile.am): Likewise.
23929         * modules/sigpipe-tests (Makefile.am): Likewise.
23930         * modules/tsearch-tests (Makefile.am): Likewise.
23931         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23932         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23933         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23934         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23935         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23936         * modules/version-etc-tests (Makefile.am): Likewise.
23937         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23938         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23939         * modules/xalloc-die-tests (Makefile.am): Likewise.
23940         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23941         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23942         * modules/xstrtol-tests (Makefile.am): Likewise.
23943         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23944         * modules/yesno-tests (Makefile.am): Likewise.
23945         Suggested by Jim Meyering.
23946
23947 2010-01-24  Bruno Haible  <bruno@clisp.org>
23948
23949         More documentation.
23950         * doc/gnulib.texi (Writing modules): New chapter.
23951         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23952         the new chapter.
23953
23954 2010-01-24  Jim Meyering  <meyering@redhat.com>
23955
23956         maint.mk: do not prepend "./" after filtering
23957         * top/maint.mk (_prepend_srcdir_prefix): New variable
23958         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23959         "./" when $(srcdir) is ".".
23960
23961         define STREQ(a,b) consistently, removing useless parentheses
23962         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23963         since the only risk is that "a" or "b" contains an unparenthesized
23964         comma, but if either did that, STREQ would have 3 or more arguments.
23965         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23966         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23967         * lib/hash-triple.c (STREQ): Likewise.
23968         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23969         * lib/getugroups.c (STREQ): Likewise.
23970
23971 2010-01-23  Jim Meyering  <meyering@redhat.com>
23972
23973         maint.mk: fix syntax-check in a non-srcdir build directory
23974         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23975         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23976
23977 2010-01-22  Jim Meyering  <meyering@redhat.com>
23978
23979         userspec: add unit tests
23980         * tests/test-userspec.c: New file.
23981         * modules/userspec-tests: Likewise.
23982
23983 2010-01-21  Jim Meyering  <meyering@redhat.com>
23984
23985         maint.mk: handle source file names containing "." robustly
23986         * top/maint.mk (_dot_escaped_srcdir): Define.
23987         (VC_LIST): Use it in LHS of sed substitution.
23988
23989 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23990
23991         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23992         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23993         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23994         from a non-srcdir build.
23995
23996 2010-01-20  Eric Blake  <ebb9@byu.net>
23997
23998         warn-on-use: use instead of link-warning
23999         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24000         * modules/unistd (Depends-on, Makefile.am): Likewise.
24001         * modules/arpa_inet (Depends-on): Replace link-warning with
24002         warn-on-use.
24003         (Makefile.am): Update rules accordingly.
24004         * modules/ctype (Depends-on, Makefile.am): Likewise.
24005         * modules/dirent (Depends-on, Makefile.am): Likewise.
24006         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24007         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24008         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24009         * modules/locale (Depends-on, Makefile.am): Likewise.
24010         * modules/math (Depends-on, Makefile.am): Likewise.
24011         * modules/search (Depends-on, Makefile.am): Likewise.
24012         * modules/signal (Depends-on, Makefile.am): Likewise.
24013         * modules/spawn (Depends-on, Makefile.am): Likewise.
24014         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24015         * modules/string (Depends-on, Makefile.am): Likewise.
24016         * modules/strings (Depends-on, Makefile.am): Likewise.
24017         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24018         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24019         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24020         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24021         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24022         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24023         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24024         * modules/wchar (Depends-on, Makefile.am): Likewise.
24025         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24026         should be poisoned.
24027         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24028         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24029         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24030         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24031         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24032         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24033         * m4/math_h.m4 (gl_MATH_H): Likewise.
24034         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24035         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24036         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24037         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24038         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24039         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24040         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24041         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24042         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24043         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24044         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24045         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24046         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24047         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24048         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24049         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24050         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24051         GL_LINK_WARNING.
24052         * lib/ctype.in.h: Likewise.
24053         * lib/dirent.in.h: Likewise.
24054         * lib/fcntl.in.h: Likewise.
24055         * lib/inttypes.in.h: Likewise.
24056         * lib/langinfo.in.h: Likewise.
24057         * lib/locale.in.h: Likewise.
24058         * lib/math.in.h: Likewise.
24059         * lib/search.in.h: Likewise.
24060         * lib/signal.in.h: Likewise.
24061         * lib/spawn.in.h: Likewise.
24062         * lib/stdio.in.h: Likewise.
24063         * lib/stdlib.in.h: Likewise.
24064         * lib/string.in.h: Likewise.
24065         * lib/strings.in.h: Likewise.
24066         * lib/sys_file.in.h: Likewise.
24067         * lib/sys_ioctl.in.h: Likewise.
24068         * lib/sys_select.in.h: Likewise.
24069         * lib/sys_socket.in.h: Likewise.
24070         * lib/sys_stat.in.h: Likewise.
24071         * lib/sys_times.in.h: Likewise.
24072         * lib/sys_utsname.in.h: Likewise.
24073         * lib/unistd.in.h: Likewise.
24074         * lib/wchar.in.h: Likewise.
24075
24076 2010-01-20  Bruno Haible  <bruno@clisp.org>
24077
24078         Avoid duplicate -lm.
24079         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24080         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24081         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24082         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24083         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24084         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24085         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24086         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24087         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24088         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24089         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24090         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24091         Reported by Paolo Bonzini.
24092
24093 2010-01-19  Bruno Haible  <bruno@clisp.org>
24094
24095         langinfo, nl_langinfo: Relicense under LGPLv2+.
24096         * modules/langinfo (License): Change to LGPLv2+.
24097         * modules/nl_langinfo (License): Likewise.
24098         Patch by David Lutterkort <lutter@redhat.com>.
24099
24100 2010-01-19  Bruno Haible  <bruno@clisp.org>
24101
24102         Avoid compilation error with cc on OSF/1 5.1.
24103         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24104         statement, not before.
24105         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24106
24107 2010-01-18  Bruno Haible  <bruno@clisp.org>
24108
24109         Avoid a link error due to the __printf__ symbol.
24110         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24111         and 2.6.x.
24112         (__format__, __printf__): Remove definitions.
24113         * lib/argp-fmtstream.h: Likewise.
24114         * lib/argp.h: Likewise.
24115         * lib/error.h: Likewise.
24116         * lib/vasnprintf.h: Likewise.
24117         * lib/xprintf.h: Likewise.
24118         * lib/xvasprintf.h: Likewise.
24119         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24120
24121 2010-01-18  Bruno Haible  <bruno@clisp.org>
24122
24123         Tests for module 'tanl'.
24124         * modules/tanl-tests: New file.
24125         * tests/test-tanl.c: New file.
24126
24127         Tests for module 'sqrtl'.
24128         * modules/sqrtl-tests: New file.
24129         * tests/test-sqrtl.c: New file.
24130
24131         Tests for module 'sinl'.
24132         * modules/sinl-tests: New file.
24133         * tests/test-sinl.c: New file.
24134
24135         Tests for module 'logl'.
24136         * modules/logl-tests: New file.
24137         * tests/test-logl.c: New file.
24138
24139         Tests for module 'expl'.
24140         * modules/expl-tests: New file.
24141         * tests/test-expl.c: New file.
24142
24143         Tests for module 'cosl'.
24144         * modules/cosl-tests: New file.
24145         * tests/test-cosl.c: New file.
24146
24147         Tests for module 'atanl'.
24148         * modules/atanl-tests: New file.
24149         * tests/test-atanl.c: New file.
24150
24151         Tests for module 'asinl'.
24152         * modules/asinl-tests: New file.
24153         * tests/test-asinl.c: New file.
24154
24155         Tests for module 'acosl'.
24156         * modules/acosl-tests: New file.
24157         * tests/test-acosl.c: New file.
24158
24159         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24160         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24161         tanl): Use the standard gnulib idiom.
24162         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24163         * lib/sinl.c: Likewise.
24164         * lib/tanl.c: Don't include trigl.c.
24165         (kernel_tanl): Make static.
24166         * lib/sincosl.c: Include trigl.h first.
24167         * lib/trigl.c: Likewise.
24168         * m4/acosl.m4: New file.
24169         * m4/asinl.m4: New file.
24170         * m4/atanl.m4: New file.
24171         * m4/cosl.m4: New file.
24172         * m4/expl.m4: New file.
24173         * m4/logl.m4: New file.
24174         * m4/sinl.m4: New file.
24175         * m4/sqrtl.m4: New file.
24176         * m4/tanl.m4: New file.
24177         * m4/mathl.m4: Remove file.
24178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24179         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24180         Don't initialize GNULIB_MATHL.
24181         * modules/acosl: New file.
24182         * modules/asinl: New file.
24183         * modules/atanl: New file.
24184         * modules/cosl: New file.
24185         * modules/expl: New file.
24186         * modules/logl: New file.
24187         * modules/sinl: New file.
24188         * modules/sqrtl: New file.
24189         * modules/tanl: New file.
24190         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24191         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24192         substitute GNULIB_MATHL.
24193         * modules/mathl: Rewritten.
24194         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24195         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24196         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24197         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24198         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24199         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24200         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24201         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24202         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24203
24204 2010-01-18  Bruno Haible  <bruno@clisp.org>
24205
24206         sqrt: Make gl_FUNC_SQRT requirable.
24207         * m4/sqrt.m4: New file.
24208         * modules/sqrt (Files): Add it.
24209         (configure.ac): Invoke gl_FUNC_SQRT.
24210
24211 2010-01-18  Bruno Haible  <bruno@clisp.org>
24212
24213         New modules for common <math.h> functions.
24214         * m4/mathfunc.m4: New file.
24215         * modules/acos: New file.
24216         * modules/asin: New file.
24217         * modules/atan: New file.
24218         * modules/atan2: New file.
24219         * modules/cbrt: New file.
24220         * modules/copysign: New file.
24221         * modules/cos: New file.
24222         * modules/cosh: New file.
24223         * modules/erf: New file.
24224         * modules/erfc: New file.
24225         * modules/exp: New file.
24226         * modules/fabs: New file.
24227         * modules/fmod: New file.
24228         * modules/hypot: New file.
24229         * modules/j0: New file.
24230         * modules/j1: New file.
24231         * modules/jn: New file.
24232         * modules/ldexp: New file.
24233         * modules/lgamma: New file.
24234         * modules/log: New file.
24235         * modules/log10: New file.
24236         * modules/log1p: New file.
24237         * modules/logb: New file.
24238         * modules/modf: New file.
24239         * modules/nextafter: New file.
24240         * modules/pow: New file.
24241         * modules/remainder: New file.
24242         * modules/rint: New file.
24243         * modules/sin: New file.
24244         * modules/sinh: New file.
24245         * modules/sqrt: New file.
24246         * modules/tan: New file.
24247         * modules/tanh: New file.
24248         * modules/y0: New file.
24249         * modules/y1: New file.
24250         * modules/yn: New file.
24251         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24252         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24253         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24254         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24255         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24256         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24257         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24258         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24259         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24260         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24261         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24262         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24263         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24264         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24265         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24266         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24267         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24268         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24269         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24270         * doc/posix-functions/log.texi: Mention the 'log' module.
24271         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24272         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24273         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24274         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24275         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24276         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24277         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24278         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24279         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24280         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24281         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24282         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24283         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24284         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24285         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24286         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24287
24288 2010-01-18  Jim Meyering  <meyering@redhat.com>
24289
24290         ignore-value: relax license to LGPLv2+
24291         * modules/ignore-value (License): Relax to LGPLv2+.
24292
24293         getdate: don't leak when TZ contains two or more '"'s
24294         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24295         double quote in TZ after the first one.
24296
24297         readtokens: do not leak internal token_lengths buffer
24298         * lib/readtokens.c (readtokens): Free the local, lengths,
24299         when the supplied "token_lengths" parameter is NULL.
24300
24301 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24302
24303         Fix a couple of missing LIBTHREAD link failures on AIX.
24304         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24305         $(LIBTHREAD).
24306         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24307
24308         Link test-poll against INET_PTON_LIB.
24309         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24310         for inet_pton on Solaris 10.
24311
24312 2010-01-17  Bruno Haible  <bruno@clisp.org>
24313
24314         unistdio/*-sprintf: Fix typo in module description.
24315         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24316         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24317         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24318         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24319         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24320         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24321         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24322         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24323
24324 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24325
24326         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24327         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24328         variables in shell case patterns, for AIX and HP-UX ksh.
24329
24330         Split large sed scripts, for HP-UX sed.
24331         * modules/stdio: Split sed scripts around 50 sed commands,
24332         to avoid HP-UX limit of 99 commands, in the near future.
24333         * modules/string: Likewise.
24334         * modules/unistd: Likewise.
24335
24336         gnulib-tool: avoid writing in the current directory.
24337         * gnulib-tool (func_emit_lib_Makefile_am)
24338         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24339         not in the current directory, so concurrent gnulib-tool
24340         instances do not interfere.
24341
24342 2010-01-16  Jim Meyering  <meyering@redhat.com>
24343
24344         doc: update users.txt
24345         * users.txt: Add grep.
24346         (diffutils, gzip): Update URLs.
24347
24348 2010-01-12  Bruno Haible  <bruno@clisp.org>
24349
24350         posix_spawn: Avoid test failure on Cygwin.
24351         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24352         characters.
24353         Reported by Simon Josefsson.
24354
24355 2010-01-12  Bruno Haible  <bruno@clisp.org>
24356
24357         * tests/test-cond.c (main): When skipping the test, show the reason.
24358
24359 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24360
24361         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24362
24363 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24364
24365         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24366         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24367
24368 2010-01-12  Eric Blake  <ebb9@byu.net>
24369
24370         build: guarantee AS_VAR_IF
24371         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24372         (gl_AS_VAR_IF): Move...
24373         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24374         Reported by Simon Josefsson.
24375
24376 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24377
24378         * lib/stdio.in.h: Fix typo.
24379
24380 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24381
24382         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24383         libgpg-error.
24384
24385 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24386
24387         * tests/test-xalloc-die.sh: Use $EXEEXT.
24388
24389 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24390             Bruno Haible  <bruno@clisp.org>
24391
24392         getlogin, getlogin_r: Avoid test failure.
24393         * tests/test-getlogin.c: Include <stdio.h>.
24394         (main): Skip the test when the function fails because stdin is not a
24395         tty.
24396         * tests/test-getlogin_r.c: Include <stdio.h>.
24397         (main): Skip the test when the function fails because stdin is not a
24398         tty.
24399
24400 2010-01-11  Eric Blake  <ebb9@byu.net>
24401
24402         tests: avoid more large file warnings
24403         * tests/test-fflush.c: Avoid warning about ftell use.
24404         * tests/test-fseek.c: Avoid warning about fseek use.
24405
24406 2010-01-10  Bruno Haible  <bruno@clisp.org>
24407
24408         nproc: Work better on Linux when /proc and /sys are not mounted.
24409         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24410         as lower bound when, on glibc/Linux systems,
24411         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24412         Suggested by Pádraig Brady <P@draigbrady.com>.
24413         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24414
24415         nproc: Refactor.
24416         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24417         extracted from num_processors.
24418         (num_processors): Call it.
24419
24420 2010-01-11  Jim Meyering  <meyering@redhat.com>
24421
24422         utimecmp: avoid new warning from upcoming gcc-4.5.0
24423         * lib/utimecmp.c (BILLION): Define using #define rather than an
24424         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24425
24426 2010-01-11  Eric Blake  <ebb9@byu.net>
24427
24428         math: add portability warnings for classification macros
24429         * modules/math (Depends-on): Add warn-on-use.
24430         (Makefile.am): Provide new substitutions.
24431         * m4/math_h.m4 (gl_MATH_H): Require inline.
24432         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24433         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24434         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24435         implement warnings.
24436
24437         unistd: warn on use of environ without module
24438         * modules/unistd (Depends-on): Add warn-on-use.
24439         (Makefile.am): Provide new substitutions.
24440         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24441         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24442
24443         stdio: warn on suspicious uses
24444         * modules/stdio (Depends-on): Add warn-on-use.
24445         (Makefile.am): Provide new substitutions.
24446         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24447         fseeko.
24448         * lib/stdio.in.h (gets): Always warn on use.
24449         (fseek, ftell): Adjust when warnings are issued, and honor
24450         _GL_NO_LARGE_FILES as a way to silence the warning.
24451         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24452         any warning about large file offsets.
24453         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24454         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24455         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24456         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24457         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24458         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24459         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24460         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24461
24462         warn-on-use: new module
24463         * modules/warn-on-use: New file.
24464         * build-aux/warn-on-use.h: Likewise.
24465         * m4/warn-on-use.m4: Likewise.
24466         * MODULES.html.sh (Support for building): Mention it.
24467
24468 2010-01-10  Bruno Haible  <bruno@clisp.org>
24469
24470         Tests for module 'unistr/u32-strdup'.
24471         * modules/unistr/u32-strdup-tests: New file.
24472         * tests/unistr/test-u32-strdup.c: New file.
24473
24474         Tests for module 'unistr/u16-strdup'.
24475         * modules/unistr/u16-strdup-tests: New file.
24476         * tests/unistr/test-u16-strdup.c: New file.
24477
24478         Tests for module 'unistr/u8-strdup'.
24479         * modules/unistr/u8-strdup-tests: New file.
24480         * tests/unistr/test-u8-strdup.c: New file.
24481         * tests/unistr/test-strdup.h: New file.
24482
24483         Tests for module 'unistr/u32-strncmp'.
24484         * modules/unistr/u32-strncmp-tests: New file.
24485         * tests/unistr/test-u32-strncmp.c: New file.
24486
24487         Tests for module 'unistr/u16-strncmp'.
24488         * modules/unistr/u16-strncmp-tests: New file.
24489         * tests/unistr/test-u16-strncmp.c: New file.
24490
24491         Tests for module 'unistr/u8-strncmp'.
24492         * modules/unistr/u8-strncmp-tests: New file.
24493         * tests/unistr/test-u8-strncmp.c: New file.
24494         * tests/unistr/test-strncmp.h: New file.
24495
24496         Tests for module 'unistr/u32-strcoll'.
24497         * modules/unistr/u32-strcoll-tests: New file.
24498         * tests/unistr/test-u32-strcoll.c: New file.
24499
24500         Tests for module 'unistr/u16-strcoll'.
24501         * modules/unistr/u16-strcoll-tests: New file.
24502         * tests/unistr/test-u16-strcoll.c: New file.
24503
24504         Tests for module 'unistr/u8-strcoll'.
24505         * modules/unistr/u8-strcoll-tests: New file.
24506         * tests/unistr/test-u8-strcoll.c: New file.
24507
24508         Tests for module 'unistr/u32-strcmp'.
24509         * modules/unistr/u32-strcmp-tests: New file.
24510         * tests/unistr/test-u32-strcmp.c: New file.
24511         * tests/unistr/test-u32-strcmp.h: New file.
24512
24513         Tests for module 'unistr/u16-strcmp'.
24514         * modules/unistr/u16-strcmp-tests: New file.
24515         * tests/unistr/test-u16-strcmp.c: New file.
24516         * tests/unistr/test-u16-strcmp.h: New file.
24517
24518         Tests for module 'unistr/u8-strcmp'.
24519         * modules/unistr/u8-strcmp-tests: New file.
24520         * tests/unistr/test-u8-strcmp.c: New file.
24521         * tests/unistr/test-u8-strcmp.h: New file.
24522         * tests/unistr/test-strcmp.h: New file.
24523
24524         Tests for module 'unistr/u32-strncat'.
24525         * modules/unistr/u32-strncat-tests: New file.
24526         * tests/unistr/test-u32-strncat.c: New file.
24527
24528         Tests for module 'unistr/u16-strncat'.
24529         * modules/unistr/u16-strncat-tests: New file.
24530         * tests/unistr/test-u16-strncat.c: New file.
24531
24532         Tests for module 'unistr/u8-strncat'.
24533         * modules/unistr/u8-strncat-tests: New file.
24534         * tests/unistr/test-u8-strncat.c: New file.
24535         * tests/unistr/test-strncat.h: New file.
24536
24537         Tests for module 'unistr/u32-strcat'.
24538         * modules/unistr/u32-strcat-tests: New file.
24539         * tests/unistr/test-u32-strcat.c: New file.
24540
24541         Tests for module 'unistr/u16-strcat'.
24542         * modules/unistr/u16-strcat-tests: New file.
24543         * tests/unistr/test-u16-strcat.c: New file.
24544
24545         Tests for module 'unistr/u8-strcat'.
24546         * modules/unistr/u8-strcat-tests: New file.
24547         * tests/unistr/test-u8-strcat.c: New file.
24548         * tests/unistr/test-strcat.h: New file.
24549
24550         Tests for module 'unistr/u32-stpncpy'.
24551         * modules/unistr/u32-stpncpy-tests: New file.
24552         * tests/unistr/test-u32-stpncpy.c: New file.
24553
24554         Tests for module 'unistr/u16-stpncpy'.
24555         * modules/unistr/u16-stpncpy-tests: New file.
24556         * tests/unistr/test-u16-stpncpy.c: New file.
24557
24558         Tests for module 'unistr/u8-stpncpy'.
24559         * modules/unistr/u8-stpncpy-tests: New file.
24560         * tests/unistr/test-u8-stpncpy.c: New file.
24561         * tests/unistr/test-stpncpy.h: New file.
24562
24563         Tests for module 'unistr/u32-strncpy'.
24564         * modules/unistr/u32-strncpy-tests: New file.
24565         * tests/unistr/test-u32-strncpy.c: New file.
24566
24567         Tests for module 'unistr/u16-strncpy'.
24568         * modules/unistr/u16-strncpy-tests: New file.
24569         * tests/unistr/test-u16-strncpy.c: New file.
24570
24571         Tests for module 'unistr/u8-strncpy'.
24572         * modules/unistr/u8-strncpy-tests: New file.
24573         * tests/unistr/test-u8-strncpy.c: New file.
24574         * tests/unistr/test-strncpy.h: New file.
24575
24576         Tests for module 'unistr/u32-stpcpy'.
24577         * modules/unistr/u32-stpcpy-tests: New file.
24578         * tests/unistr/test-u32-stpcpy.c: New file.
24579
24580         Tests for module 'unistr/u16-stpcpy'.
24581         * modules/unistr/u16-stpcpy-tests: New file.
24582         * tests/unistr/test-u16-stpcpy.c: New file.
24583
24584         Tests for module 'unistr/u8-stpcpy'.
24585         * modules/unistr/u8-stpcpy-tests: New file.
24586         * tests/unistr/test-u8-stpcpy.c: New file.
24587         * tests/unistr/test-stpcpy.h: New file.
24588
24589         Tests for module 'unistr/u32-strcpy'.
24590         * modules/unistr/u32-strcpy-tests: New file.
24591         * tests/unistr/test-u32-strcpy.c: New file.
24592
24593         Tests for module 'unistr/u16-strcpy'.
24594         * modules/unistr/u16-strcpy-tests: New file.
24595         * tests/unistr/test-u16-strcpy.c: New file.
24596
24597         Tests for module 'unistr/u8-strcpy'.
24598         * modules/unistr/u8-strcpy-tests: New file.
24599         * tests/unistr/test-u8-strcpy.c: New file.
24600         * tests/unistr/test-strcpy.h: New file.
24601
24602         Tests for module 'unistr/u32-strnlen'.
24603         * modules/unistr/u32-strnlen-tests: New file.
24604         * tests/unistr/test-u32-strnlen.c: New file.
24605
24606         Tests for module 'unistr/u16-strnlen'.
24607         * modules/unistr/u16-strnlen-tests: New file.
24608         * tests/unistr/test-u16-strnlen.c: New file.
24609
24610         Tests for module 'unistr/u8-strnlen'.
24611         * modules/unistr/u8-strnlen-tests: New file.
24612         * tests/unistr/test-u8-strnlen.c: New file.
24613         * tests/unistr/test-strnlen.h: New file.
24614
24615         Tests for module 'unistr/u32-strlen'.
24616         * modules/unistr/u32-strlen-tests: New file.
24617         * tests/unistr/test-u32-strlen.c: New file.
24618
24619         Tests for module 'unistr/u16-strlen'.
24620         * modules/unistr/u16-strlen-tests: New file.
24621         * tests/unistr/test-u16-strlen.c: New file.
24622
24623         Tests for module 'unistr/u8-strlen'.
24624         * modules/unistr/u8-strlen-tests: New file.
24625         * tests/unistr/test-u8-strlen.c: New file.
24626
24627         Tests for module 'unistr/u32-prev'.
24628         * modules/unistr/u32-prev-tests: New file.
24629         * tests/unistr/test-u32-prev.c: New file.
24630
24631         Tests for module 'unistr/u16-prev'.
24632         * modules/unistr/u16-prev-tests: New file.
24633         * tests/unistr/test-u16-prev.c: New file.
24634
24635         Tests for module 'unistr/u8-prev'.
24636         * modules/unistr/u8-prev-tests: New file.
24637         * tests/unistr/test-u8-prev.c: New file.
24638
24639         Tests for module 'unistr/u32-next'.
24640         * modules/unistr/u32-next-tests: New file.
24641         * tests/unistr/test-u32-next.c: New file.
24642
24643         Tests for module 'unistr/u16-next'.
24644         * modules/unistr/u16-next-tests: New file.
24645         * tests/unistr/test-u16-next.c: New file.
24646
24647         Tests for module 'unistr/u8-next'.
24648         * modules/unistr/u8-next-tests: New file.
24649         * tests/unistr/test-u8-next.c: New file.
24650
24651         Tests for module 'unistr/u32-strmbtouc'.
24652         * modules/unistr/u32-strmbtouc-tests: New file.
24653         * tests/unistr/test-u32-strmbtouc.c: New file.
24654
24655         Tests for module 'unistr/u16-strmbtouc'.
24656         * modules/unistr/u16-strmbtouc-tests: New file.
24657         * tests/unistr/test-u16-strmbtouc.c: New file.
24658
24659         Tests for module 'unistr/u8-strmbtouc'.
24660         * modules/unistr/u8-strmbtouc-tests: New file.
24661         * tests/unistr/test-u8-strmbtouc.c: New file.
24662
24663         Tests for module 'unistr/u32-strmblen'.
24664         * modules/unistr/u32-strmblen-tests: New file.
24665         * tests/unistr/test-u32-strmblen.c: New file.
24666
24667         Tests for module 'unistr/u16-strmblen'.
24668         * modules/unistr/u16-strmblen-tests: New file.
24669         * tests/unistr/test-u16-strmblen.c: New file.
24670
24671         Tests for module 'unistr/u8-strmblen'.
24672         * modules/unistr/u8-strmblen-tests: New file.
24673         * tests/unistr/test-u8-strmblen.c: New file.
24674
24675         Tests for module 'unistr/u32-cpy-alloc'.
24676         * modules/unistr/u32-cpy-alloc-tests: New file.
24677         * tests/unistr/test-u32-cpy-alloc.c: New file.
24678
24679         Tests for module 'unistr/u16-cpy-alloc'.
24680         * modules/unistr/u16-cpy-alloc-tests: New file.
24681         * tests/unistr/test-u16-cpy-alloc.c: New file.
24682
24683         Tests for module 'unistr/u8-cpy-alloc'.
24684         * modules/unistr/u8-cpy-alloc-tests: New file.
24685         * tests/unistr/test-u8-cpy-alloc.c: New file.
24686         * tests/unistr/test-cpy-alloc.h: New file.
24687
24688         Tests for module 'unistr/u32-mbsnlen'.
24689         * modules/unistr/u32-mbsnlen-tests: New file.
24690         * tests/unistr/test-u32-mbsnlen.c: New file.
24691
24692         Tests for module 'unistr/u16-mbsnlen'.
24693         * modules/unistr/u16-mbsnlen-tests: New file.
24694         * tests/unistr/test-u16-mbsnlen.c: New file.
24695
24696         Tests for module 'unistr/u8-mbsnlen'.
24697         * modules/unistr/u8-mbsnlen-tests: New file.
24698         * tests/unistr/test-u8-mbsnlen.c: New file.
24699
24700         Tests for module 'unistr/u32-chr'.
24701         * modules/unistr/u32-chr-tests: New file.
24702         * tests/unistr/test-u32-chr.c: New file.
24703
24704         Tests for module 'unistr/u16-chr'.
24705         * modules/unistr/u16-chr-tests: New file.
24706         * tests/unistr/test-u16-chr.c: New file.
24707
24708         Tests for module 'unistr/u8-chr'.
24709         * modules/unistr/u8-chr-tests: New file.
24710         * tests/unistr/test-u8-chr.c: New file.
24711         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24712
24713         Tests for module 'unistr/u32-cmp2'.
24714         * modules/unistr/u32-cmp2-tests: New file.
24715         * tests/unistr/test-u32-cmp2.c: New file.
24716
24717         Tests for module 'unistr/u16-cmp2'.
24718         * modules/unistr/u16-cmp2-tests: New file.
24719         * tests/unistr/test-u16-cmp2.c: New file.
24720
24721         Tests for module 'unistr/u8-cmp2'.
24722         * modules/unistr/u8-cmp2-tests: New file.
24723         * tests/unistr/test-u8-cmp2.c: New file.
24724         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24725
24726         Tests for module 'unistr/u32-cmp'.
24727         * modules/unistr/u32-cmp-tests: New file.
24728         * tests/unistr/test-u32-cmp.c: New file.
24729
24730         Tests for module 'unistr/u16-cmp'.
24731         * modules/unistr/u16-cmp-tests: New file.
24732         * tests/unistr/test-u16-cmp.c: New file.
24733
24734         Tests for module 'unistr/u8-cmp'.
24735         * modules/unistr/u8-cmp-tests: New file.
24736         * tests/unistr/test-u8-cmp.c: New file.
24737         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24738
24739         Tests for module 'unistr/u32-set'.
24740         * modules/unistr/u32-set-tests: New file.
24741         * tests/unistr/test-u32-set.c: New file.
24742
24743         Tests for module 'unistr/u16-set'.
24744         * modules/unistr/u16-set-tests: New file.
24745         * tests/unistr/test-u16-set.c: New file.
24746
24747         Tests for module 'unistr/u8-set'.
24748         * modules/unistr/u8-set-tests: New file.
24749         * tests/unistr/test-u8-set.c: New file.
24750         * tests/unistr/test-set.h: New file.
24751
24752         Tests for module 'unistr/u32-move'.
24753         * modules/unistr/u32-move-tests: New file.
24754         * tests/unistr/test-u32-move.c: New file.
24755
24756         Tests for module 'unistr/u16-move'.
24757         * modules/unistr/u16-move-tests: New file.
24758         * tests/unistr/test-u16-move.c: New file.
24759
24760         Tests for module 'unistr/u8-move'.
24761         * modules/unistr/u8-move-tests: New file.
24762         * tests/unistr/test-u8-move.c: New file.
24763         * tests/unistr/test-move.h: New file.
24764
24765         Tests for module 'unistr/u32-cpy'.
24766         * modules/unistr/u32-cpy-tests: New file.
24767         * tests/unistr/test-u32-cpy.c: New file.
24768
24769         Tests for module 'unistr/u16-cpy'.
24770         * modules/unistr/u16-cpy-tests: New file.
24771         * tests/unistr/test-u16-cpy.c: New file.
24772
24773         Tests for module 'unistr/u8-cpy'.
24774         * modules/unistr/u8-cpy-tests: New file.
24775         * tests/unistr/test-u8-cpy.c: New file.
24776         * tests/unistr/test-cpy.h: New file.
24777
24778 2010-01-09  Bruno Haible  <bruno@clisp.org>
24779
24780         Tests for module 'unistr/u32-uctomb'.
24781         * modules/unistr/u32-uctomb-tests: New file.
24782         * tests/unistr/test-u32-uctomb.c: New file.
24783
24784         Tests for module 'unistr/u16-uctomb'.
24785         * modules/unistr/u16-uctomb-tests: New file.
24786         * tests/unistr/test-u16-uctomb.c: New file.
24787
24788         Tests for module 'unistr/u8-uctomb'.
24789         * modules/unistr/u8-uctomb-tests: New file.
24790         * tests/unistr/test-u8-uctomb.c: New file.
24791
24792         Tests for module 'unistr/u32-mbtoucr'.
24793         * modules/unistr/u32-mbtoucr-tests: New file.
24794         * tests/unistr/test-u32-mbtoucr.c: New file.
24795
24796         Tests for module 'unistr/u16-mbtoucr'.
24797         * modules/unistr/u16-mbtoucr-tests: New file.
24798         * tests/unistr/test-u16-mbtoucr.c: New file.
24799
24800         Tests for module 'unistr/u8-mbtoucr'.
24801         * modules/unistr/u8-mbtoucr-tests: New file.
24802         * tests/unistr/test-u8-mbtoucr.c: New file.
24803
24804         Tests for module 'unistr/u32-mbtouc'.
24805         * modules/unistr/u32-mbtouc-tests: New file.
24806         * tests/unistr/test-u32-mbtouc.c: New file.
24807
24808         Tests for module 'unistr/u16-mbtouc'.
24809         * modules/unistr/u16-mbtouc-tests: New file.
24810         * tests/unistr/test-u16-mbtouc.c: New file.
24811
24812         Tests for module 'unistr/u8-mbtouc'.
24813         * modules/unistr/u8-mbtouc-tests: New file.
24814         * tests/unistr/test-u8-mbtouc.c: New file.
24815
24816         Tests for module 'unistr/u32-mbtouc-unsafe'.
24817         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24818         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24819         * tests/unistr/test-u32-mbtouc.h: New file.
24820
24821         Tests for module 'unistr/u16-mbtouc-unsafe'.
24822         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24823         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24824         * tests/unistr/test-u16-mbtouc.h: New file.
24825
24826         Tests for module 'unistr/u8-mbtouc-unsafe'.
24827         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24828         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24829         * tests/unistr/test-u8-mbtouc.h: New file.
24830
24831         Tests for module 'unistr/u32-mblen'.
24832         * modules/unistr/u32-mblen-tests: New file.
24833         * tests/unistr/test-u32-mblen.c: New file.
24834
24835         Tests for module 'unistr/u16-mblen'.
24836         * modules/unistr/u16-mblen-tests: New file.
24837         * tests/unistr/test-u16-mblen.c: New file.
24838
24839         Tests for module 'unistr/u8-mblen'.
24840         * modules/unistr/u8-mblen-tests: New file.
24841         * tests/unistr/test-u8-mblen.c: New file.
24842
24843         Tests for module 'unistr/u32-to-u16'.
24844         * modules/unistr/u32-to-u16-tests: New file.
24845         * tests/unistr/test-u32-to-u16.c: New file.
24846
24847         Tests for module 'unistr/u32-to-u8'.
24848         * modules/unistr/u32-to-u8-tests: New file.
24849         * tests/unistr/test-u32-to-u8.c: New file.
24850
24851         Tests for module 'unistr/u16-to-u32'.
24852         * modules/unistr/u16-to-u32-tests: New file.
24853         * tests/unistr/test-u16-to-u32.c: New file.
24854
24855         Tests for module 'unistr/u16-to-u8'.
24856         * modules/unistr/u16-to-u8-tests: New file.
24857         * tests/unistr/test-u16-to-u8.c: New file.
24858
24859         Tests for module 'unistr/u8-to-u32'.
24860         * modules/unistr/u8-to-u32-tests: New file.
24861         * tests/unistr/test-u8-to-u32.c: New file.
24862
24863         Tests for module 'unistr/u8-to-u16'.
24864         * modules/unistr/u8-to-u16-tests: New file.
24865         * tests/unistr/test-u8-to-u16.c: New file.
24866
24867         Tests for module 'unistr/u32-check'.
24868         * modules/unistr/u32-check-tests: New file.
24869         * tests/unistr/test-u32-check.c: New file.
24870
24871         Tests for module 'unistr/u16-check'.
24872         * modules/unistr/u16-check-tests: New file.
24873         * tests/unistr/test-u16-check.c: New file.
24874
24875         Tests for module 'unistr/u8-check'.
24876         * modules/unistr/u8-check-tests: New file.
24877         * tests/unistr/test-u8-check.c: New file.
24878
24879         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24880         (category_equals): New function.
24881         (main): Add more tests.
24882         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24883
24884         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24885
24886 2010-01-10  Bruno Haible  <bruno@clisp.org>
24887
24888         unistr/u*-strcoll: Try harder to distinguish different strings.
24889         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24890         compare s1 and s2 to see if they are different.
24891
24892 2010-01-10  Bruno Haible  <bruno@clisp.org>
24893
24894         unistr/u*-stpncpy: Fix the return value.
24895         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24896         description of the return value consistent with stpncpy in glibc.
24897         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24898         written non-NUL unit.
24899
24900 2010-01-10  Bruno Haible  <bruno@clisp.org>
24901
24902         unistr/u*-next: Add missing dependencies.
24903         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24904         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24905         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24906
24907 2010-01-10  Bruno Haible  <bruno@clisp.org>
24908
24909         unistr/u8-mbsnlen: Fix return value for incomplete character.
24910         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24911         u8_mblen.
24912         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24913         Remove unistr/u8-mblen.
24914         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24915         u16_mblen.
24916         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24917         Remove unistr/u16-mblen.
24918
24919 2010-01-10  Bruno Haible  <bruno@clisp.org>
24920
24921         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24922         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24923         Reported by Brian Gough <bjg@gnu.org> and
24924         Chris Clayton <chris2553@googlemail.com> via
24925         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24926
24927 2010-01-09  Bruno Haible  <bruno@clisp.org>
24928
24929         unistr/u16-to-u32: Reject invalid input.
24930         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24931         u16_mbtouc.
24932         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24933         Remove unistr/u16-mbtouc.
24934
24935         unistr/u16-to-u8: Reject invalid input.
24936         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24937         u16_mbtouc.
24938         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24939         Remove unistr/u16-mbtouc.
24940
24941         unistr/u8-to-u32: Reject invalid input.
24942         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24943         u8_mbtouc.
24944         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24945         Remove unistr/u8-mbtouc.
24946
24947         unistr/u8-to-u16: Reject invalid input.
24948         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24949         u8_mbtouc.
24950         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24951         Remove unistr/u8-mbtouc.
24952
24953 2010-01-09  Bruno Haible  <bruno@clisp.org>
24954
24955         Tests for module 'getlogin'.
24956         * modules/getlogin-tests: New file.
24957         * tests/test-getlogin.c: New file.
24958
24959         New module 'getlogin'.
24960         * lib/unistd.in.h (getlogin): New declaration.
24961         * lib/getlogin.c: New file.
24962         * m4/getlogin.m4: New file.
24963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24964         HAVE_GETLOGIN.
24965         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24966         HAVE_GETLOGIN.
24967         * modules/getlogin: New file.
24968         * doc/posix-functions/getlogin.texi: Mention the new module.
24969         Reported by John W. Eaton <jwe@gnu.org>.
24970
24971 2010-01-09  Bruno Haible  <bruno@clisp.org>
24972
24973         getlogin_r: Support for native Windows.
24974         * lib/getlogin_r.c: Include <windows.h>
24975         (getlogin_r): Implement for native Windows.
24976         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24977         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24978         via John W. Eaton <jwe@gnu.org>.
24979
24980 2010-01-09  Bruno Haible  <bruno@clisp.org>
24981
24982         getlogin_r: Small fixes.
24983         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24984         succeeds.
24985         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24986         before testing whether getlogin_r is declared. No need to set
24987         HAVE_DECL_GETLOGIN_R to 1.
24988         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24989
24990 2010-01-09  Bruno Haible  <bruno@clisp.org>
24991
24992         * lib/unistd.in.h (getlogin_r): Add comment.
24993
24994 2010-01-09  Bruno Haible  <bruno@clisp.org>
24995
24996         Tests for module 'getlogin_r'.
24997         * modules/getlogin_r-tests: New file.
24998         * tests/test-getlogin_r.c: New file.
24999
25000 2010-01-09  Jim Meyering  <meyering@redhat.com>
25001
25002         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25003         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25004         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25005
25006 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25007
25008         * lib/dup2.c (rpl_dup2): Improve comment.
25009
25010 2010-01-08  Eric Blake  <ebb9@byu.net>
25011
25012         maint.mk: allow packages to add makefile @@ exceptions
25013         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25014         (sc_makefile_check): Rename...
25015         (sc_makefile_at_at_check): ...to this, and use hook.
25016
25017         dup2: work around mingw bug
25018         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25019         Reported by Simon Josefsson.
25020
25021 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25022
25023         glob: Fix C++ compilation.
25024         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25025         C++.
25026
25027 2010-01-07  Bruno Haible  <bruno@clisp.org>
25028
25029         Fix indentation of wctype.in.h, broken since 2007-01-06.
25030         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25031
25032 2010-01-07  Bruno Haible  <bruno@clisp.org>
25033
25034         mbslen: Avoid collision with system function.
25035         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25036         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25037         * m4/mbslen.m4: New file.
25038         * modules/mbslen (Files): Add it.
25039         (configure.ac): Invoke gl_MBSLEN.
25040         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25041         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25042         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25043         via Ian Beckwith <ianb@erislabs.net>.
25044
25045 2010-01-07  Bruno Haible  <bruno@clisp.org>
25046
25047         dirent: Document the last fix.
25048         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25049
25050 2010-01-07  Bruno Haible  <bruno@clisp.org>
25051
25052         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25053         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25054         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25055         va_list are defined.
25056         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25057         Reported by Eric Blake.
25058
25059 2010-01-07  Bruno Haible  <bruno@clisp.org>
25060
25061         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25062         * modules/xlist (Depends-on): Add 'list',
25063         * modules/xoset (Depends-on): Add 'oset'.
25064         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25065
25066 2010-01-07  Bruno Haible  <bruno@clisp.org>
25067
25068         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25069         * doc/posix-functions/strncasecmp.texi: Likewise.
25070
25071 2010-01-07  Bruno Haible  <bruno@clisp.org>
25072
25073         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25074
25075 2010-01-07  John W. Eaton  <jwe@octave.org>
25076
25077         wctype: allow C++ use
25078         * lib/wctype.in.h: Add extern "C" block for C++.
25079
25080 2010-01-06  Eric Blake  <ebb9@byu.net>
25081
25082         maint.mk: detect incorrect GFDL usage
25083         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25084
25085 2010-01-06  Jim Meyering  <meyering@redhat.com>
25086         and Eric Blake  <ebb9@byu.net>
25087
25088         maint.mk: ignore multi-line copyright in NEWS
25089         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25090
25091 2010-01-06  Eric Blake  <ebb9@byu.net>
25092
25093         select: add missing dependency
25094         * modules/select-tests (Depends-on): Move sockets dependency...
25095         * modules/select (Depends-on): ...here.
25096         Reported by Ian Beckwith.
25097
25098         doc: regenerate INSTALL
25099         * doc/INSTALL: Reflect recent autoconf update.
25100         * doc/INSTALL.ISO: Likewise.
25101         * doc/INSTALL.UTF-8: Likewise.
25102
25103         pread: fix compilation on glibc
25104         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25105         Reported by Ralf Wildenhues.
25106
25107         dirent: fix test failure
25108         * lib/dirent.in.h (includes): Guarantee ino_t.
25109         Reported by Ralf Wildenhues.
25110
25111 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25112
25113         linkat, renameat: avoid bad free
25114         * lib/at-func2.c (at_func2): Fix typo.
25115         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25116
25117 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25118
25119         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25120         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25121         to avoid failure of symlink test later.
25122
25123 2010-01-06  Eric Blake  <ebb9@byu.net>
25124
25125         stdio, unistd: guarantee ssize_t
25126         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25127         2008 are exposed when needed.
25128         * lib/stdio.in.h (includes): Likewise.
25129         Reported by Ralf Wildenhues.
25130
25131 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25132
25133         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25134         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25135         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25136
25137 2010-01-06  Jim Meyering  <meyering@redhat.com>
25138
25139         readtokens: this module *does* require xalloc.h
25140         It uses only functions that were omitted by the old syntax-check rule.
25141         * lib/readtokens.c: Include "xalloc.h" once again.
25142         * modules/readtokens (Depends-on): Add xalloc.
25143         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25144
25145 2010-01-05  Eric Blake  <ebb9@byu.net>
25146
25147         maint: support 'make announcement' from a VPATH build
25148         * top/maint.mk (announcement): Look for correct NEWS file.
25149
25150 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25151
25152         utimens (fdutimens): ignore a negative FD, per contract
25153         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25154         when we have a valid file descriptor.  Otherwise, using a brand
25155         new glibc (with just-patched futimens that now fails with EBADF)
25156         would cause this function to fail with ENOSYS.
25157         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25158         See also http://bugzilla.redhat.com/552320.
25159
25160 2010-01-05  Eric Blake  <ebb9@byu.net>
25161
25162         strcase: document what it provides
25163         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25164         gnulib module.
25165         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25166         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25167
25168 2010-01-05  Jim Meyering  <meyering@redhat.com>
25169
25170         maint: remove useless inclusions of "xalloc.h"
25171         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25172         * lib/readtokens.c: Likewise.
25173         * lib/same.c: Likewise.
25174         * modules/getloadavg (Depends-on): Remove xalloc.
25175         * modules/readtokens: Likewise.
25176         * modules/same: Likewise.
25177
25178         maint.mk: include 4 more function names in alloca.h-checking regexp
25179         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25180         regexp.  Before, we would give a false-positive (saying alloca.h
25181         is included unnecessarily) when the only uses involved omitted symbols.
25182
25183         xalloc.h: use consistent formatting
25184         * lib/xalloc.h: Move declarations to start in the first column.
25185
25186 2010-01-05  Eric Blake  <ebb9@byu.net>
25187
25188         mkdir: avoid xalloc
25189         * lib/mkdir.c (includes): Drop unused header.
25190         Reported by John W. Eaton.
25191
25192 2010-01-04  Jim Meyering  <meyering@redhat.com>
25193
25194         nl_langinfo: avoid configure-time syntax error
25195         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25196         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25197         the empty string.  Don't let that provoke a shell syntax error.
25198
25199         regcomp, regexec, fnmatch: avoid array bounds read error
25200         * lib/regcomp.c (build_equiv_class): From glibc:
25201         Use only the low 24 bits of a findidx return value as an index
25202         into the weights array.  Patch by Ulrich Drepper:
25203         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25204         * lib/regexec.c (check_node_accept_bytes): Likewise.
25205         * lib/fnmatch_loop.c (FCT): Likewise.
25206
25207         regcomp: skip collseq lookup when there are no rules
25208         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25209         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25210
25211         regcomp: recognize ill-formed { } expressions
25212         * lib/regcomp.c (parse_dup_op): From glibc:
25213         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25214
25215         regcomp: fix typo in comment
25216         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25217         s/satisfy/satisfies/.
25218
25219         regcomp: sync from glibc: remove dead store
25220         * lib/regcomp.c (duplicate_node_closure): Remove useless
25221         search_duplicated_node call and dead store.
25222
25223         regcomp: sync from glibc; always use nl_langinfo
25224         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25225         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25226         * modules/regex (Depends-on): Add nl_langinfo.
25227
25228 2010-01-04  Eric Blake  <ebb9@byu.net>
25229
25230         fdopendir: fix configure test
25231         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25232
25233 2010-01-01  Bruno Haible  <bruno@clisp.org>
25234
25235         wchar: Remove unused configure check.
25236         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25237
25238 2010-01-01  Eric Blake  <ebb9@byu.net>
25239
25240         headers: make check of system header explicit
25241         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25242         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25243         ourselves.
25244         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25246         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25247         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25248         internals.
25249         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25250         missing.
25251         Suggested by Bruno Haible.
25252
25253 2010-01-01  Jim Meyering  <meyering@redhat.com>
25254
25255         ChangeLog: tweak to eliminate unnecessary copyright line
25256         * ChangeLog: Remove a copyright line that was mistakenly updated
25257         by today's update-copyright run.  Reported by Eric Blake.
25258
25259         test-update-copyright: don't let envvar setting cause test failure
25260         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25261
25262 2010-01-01  Bruno Haible  <bruno@clisp.org>
25263
25264         localename: Avoid gcc warning.
25265         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25266         function if it is not used.
25267
25268 2010-01-01  Jim Meyering  <meyering@redhat.com>
25269
25270         update nearly all FSF copyright year lists to include 2010
25271         Use the same procedure as for 2009, outlined in
25272         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25273
25274         version-etc: set COPYRIGHT_YEAR to 2010
25275         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25276
25277 2009-12-31  Eric Blake  <ebb9@byu.net>
25278
25279         doc: correct availability of cygwin 1.5.x getopt
25280         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25281         variables.
25282         * doc/posix-functions/opterr.texi (opterr): Likewise.
25283         * doc/posix-functions/optind.texi (optind): Likewise.
25284         * doc/posix-functions/optopt.texi (optopt): Likewise.
25285         * doc/posix-functions/tzname.texi (tzname): Likewise.
25286
25287         openat: update maintainer
25288         * modules/openat (Maintainer): Add myself.
25289
25290         utimens: avoid shadowing warning
25291         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25292         buffers into one, to avoid shadowing, as well as avoiding a
25293         redundant stat.
25294         Reported by Jim Meyering.
25295
25296         test-dup2: avoid compiler warning
25297         * tests/test-dup2.c (is_inheritable): Only define if used.
25298
25299 2010-01-01  Bruno Haible  <bruno@clisp.org>
25300
25301         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25302         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25303         defined, use wctomb instead of wcrtomb.
25304
25305 2010-01-01  Bruno Haible  <bruno@clisp.org>
25306
25307         iconv: Reject native Solaris iconv.
25308         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25309         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25310
25311 2009-12-31  Bruno Haible  <bruno@clisp.org>
25312
25313         * tests/test-signal.c (main): Remove test of 'SIG'.
25314
25315 2009-12-31  Bruno Haible  <bruno@clisp.org>
25316
25317         spawn: Fix incomplete fix.
25318         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25319         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25320         warnings for GNULIB_POSIXCHECK again.
25321         Reported by Eric Blake.
25322
25323 2009-12-31  Bruno Haible  <bruno@clisp.org>
25324
25325         Avoid namespace pollution on glibc systems.
25326         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25327         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25328         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25329         glibc systems.
25330
25331 2009-12-31  Bruno Haible  <bruno@clisp.org>
25332
25333         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25334         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25335         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25336         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25337         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25338         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25339         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25340
25341 2009-12-31  Bruno Haible  <bruno@clisp.org>
25342
25343         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25344         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25345         afterwards.
25346
25347 2009-12-31  Bruno Haible  <bruno@clisp.org>
25348
25349         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25350         SYS_UTSNAME_H.
25351
25352 2009-12-31  Bruno Haible  <bruno@clisp.org>
25353
25354         spawn: Fix misapplied patch.
25355         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25356         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25357         warnings for GNULIB_POSIXCHECK.
25358
25359 2009-12-31  Bruno Haible  <bruno@clisp.org>
25360
25361         times: Update after sys_times changed.
25362         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25363         * modules/times (Files): Add it.
25364         (configure.ac): Invoke gl_FUNC_TIMES.
25365
25366 2009-12-31  Bruno Haible  <bruno@clisp.org>
25367
25368         Use AC_C_INLINE where necessary.
25369         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25370         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25371         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25372         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25373         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25374         * m4/mbiter.m4 (gl_MBITER): Likewise.
25375         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25376         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25377         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25378         * modules/u64 (configure.ac): Likewise.
25379
25380 2009-12-31  Bruno Haible  <bruno@clisp.org>
25381
25382         Use AC_C_INLINE instead of module 'inline' where possible.
25383         * modules/inline (Description): Clarify purpose.
25384         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25385         * modules/count-one-bits (Depends-on): Remove inline.
25386         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25387         * modules/openat (Depends-on): Remove inline.
25388         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25389         instead of depending on module 'inline'.
25390         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25391         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25392         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25393         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25394         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25395         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25396         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25397         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25398         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25399         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25400         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25401         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25402         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25403         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25404         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25405         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25406         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25407         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25408         Likewise.
25409         * modules/unictype/property-ascii-hex-digit (Depends-on,
25410         configure.ac): Likewise.
25411         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25412         configure.ac): Likewise.
25413         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25414         configure.ac): Likewise.
25415         * modules/unictype/property-bidi-block-separator (Depends-on,
25416         configure.ac): Likewise.
25417         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25418         configure.ac): Likewise.
25419         * modules/unictype/property-bidi-common-separator (Depends-on,
25420         configure.ac): Likewise.
25421         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25422         Likewise.
25423         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25424         configure.ac): Likewise.
25425         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25426         configure.ac): Likewise.
25427         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25428         configure.ac): Likewise.
25429         * modules/unictype/property-bidi-european-digit (Depends-on,
25430         configure.ac): Likewise.
25431         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25432         configure.ac): Likewise.
25433         * modules/unictype/property-bidi-left-to-right (Depends-on,
25434         configure.ac): Likewise.
25435         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25436         configure.ac): Likewise.
25437         * modules/unictype/property-bidi-other-neutral (Depends-on,
25438         configure.ac): Likewise.
25439         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25440         Likewise.
25441         * modules/unictype/property-bidi-segment-separator (Depends-on,
25442         configure.ac): Likewise.
25443         * modules/unictype/property-bidi-whitespace (Depends-on,
25444         configure.ac): Likewise.
25445         * modules/unictype/property-combining (Depends-on, configure.ac):
25446         Likewise.
25447         * modules/unictype/property-composite (Depends-on, configure.ac):
25448         Likewise.
25449         * modules/unictype/property-currency-symbol (Depends-on,
25450         configure.ac): Likewise.
25451         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25452         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25453         Likewise.
25454         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25455         configure.ac): Likewise.
25456         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25457         Likewise.
25458         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25459         Likewise.
25460         * modules/unictype/property-extender (Depends-on, configure.ac):
25461         Likewise.
25462         * modules/unictype/property-format-control (Depends-on, configure.ac):
25463         Likewise.
25464         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25465         Likewise.
25466         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25467         Likewise.
25468         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25469         Likewise.
25470         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25471         Likewise.
25472         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25473         Likewise.
25474         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25475         Likewise.
25476         * modules/unictype/property-id-start (Depends-on, configure.ac):
25477         Likewise.
25478         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25479         Likewise.
25480         * modules/unictype/property-ids-binary-operator (Depends-on,
25481         configure.ac): Likewise.
25482         * modules/unictype/property-ids-trinary-operator (Depends-on,
25483         configure.ac): Likewise.
25484         * modules/unictype/property-ignorable-control (Depends-on,
25485         configure.ac): Likewise.
25486         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25487         Likewise.
25488         * modules/unictype/property-join-control (Depends-on, configure.ac):
25489         Likewise.
25490         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25491         Likewise.
25492         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25493         Likewise.
25494         * modules/unictype/property-logical-order-exception (Depends-on,
25495         configure.ac): Likewise.
25496         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25497         Likewise.
25498         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25499         * modules/unictype/property-non-break (Depends-on, configure.ac):
25500         Likewise.
25501         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25502         Likewise.
25503         * modules/unictype/property-numeric (Depends-on, configure.ac):
25504         Likewise.
25505         * modules/unictype/property-other-alphabetic (Depends-on,
25506         configure.ac): Likewise.
25507         * modules/unictype/property-other-default-ignorable-code-point
25508         (Depends-on, configure.ac): Likewise.
25509         * modules/unictype/property-other-grapheme-extend (Depends-on,
25510         configure.ac): Likewise.
25511         * modules/unictype/property-other-id-continue (Depends-on,
25512         configure.ac): Likewise.
25513         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25514         Likewise.
25515         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25516         Likewise.
25517         * modules/unictype/property-other-math (Depends-on, configure.ac):
25518         Likewise.
25519         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25520         Likewise.
25521         * modules/unictype/property-paired-punctuation (Depends-on,
25522         configure.ac): Likewise.
25523         * modules/unictype/property-paragraph-separator (Depends-on,
25524         configure.ac): Likewise.
25525         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25526         Likewise.
25527         * modules/unictype/property-pattern-white-space (Depends-on,
25528         configure.ac): Likewise.
25529         * modules/unictype/property-private-use (Depends-on, configure.ac):
25530         Likewise.
25531         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25532         Likewise.
25533         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25534         Likewise.
25535         * modules/unictype/property-radical (Depends-on, configure.ac):
25536         Likewise.
25537         * modules/unictype/property-sentence-terminal (Depends-on,
25538         configure.ac): Likewise.
25539         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25540         Likewise.
25541         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25542         * modules/unictype/property-terminal-punctuation (Depends-on,
25543         configure.ac): Likewise.
25544         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25545         Likewise.
25546         * modules/unictype/property-unassigned-code-value (Depends-on,
25547         configure.ac): Likewise.
25548         * modules/unictype/property-unified-ideograph (Depends-on,
25549         configure.ac): Likewise.
25550         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25551         Likewise.
25552         * modules/unictype/property-variation-selector (Depends-on,
25553         configure.ac): Likewise.
25554         * modules/unictype/property-white-space (Depends-on, configure.ac):
25555         Likewise.
25556         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25557         Likewise.
25558         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25559         Likewise.
25560         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25561         Likewise.
25562         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25563         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25564         Likewise.
25565
25566 2009-12-31  Bruno Haible  <bruno@clisp.org>
25567
25568         Remove unnecessary AC_C_INLINE invocation.
25569         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25570         since 2009-08-21.
25571
25572 2009-12-31  Jim Meyering  <meyering@redhat.com>
25573
25574         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25575         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25576         With this change, we can all remove the gpg_key_ID = ... definition
25577         from our respective cfg.mk files.
25578
25579         maint.mk: create announcement template in ~/, not in /tmp
25580         * top/maint.mk (emit_upload_commands): Adjust.
25581         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25582         Remove temporary file, .ci-msg.
25583
25584 2009-12-31  Eric Blake  <ebb9@byu.net>
25585
25586         link-warning: always build headers with link warnings
25587         * modules/arpa_inet (Makefile.am): Always build replacement
25588         header.
25589         * modules/ctype (Makefile.am): Likewise.
25590         * modules/dirent (Makefile.am): Likewise.
25591         * modules/inttypes (Makefile.am): Likewise.
25592         * modules/langinfo (Makefile.am): Likewise.
25593         * modules/locale (Makefile.am): Likewise.
25594         * modules/spawn (Makefile.am): Likewise.
25595         * modules/sys_file (Makefile.am): Likewise.
25596         * modules/sys_ioctl (Makefile.am): Likewise.
25597         * modules/sys_select (Makefile.am): Likewise.
25598         * modules/sys_socket (Makefile.am): Likewise.
25599         * modules/sys_times (Makefile.am): Likewise.
25600         * modules/sys_utsname (Makefile.am): Likewise.
25601         * modules/sys_wait (Makefile.am): Likewise.
25602         * modules/wchar (Makefile.am): Likewise.
25603         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25604         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25605         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25606         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25607         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25608         Likewise.
25609         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25610         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25611         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25612         Likewise.
25613         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25614         Likewise.
25615         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25616         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25617         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25618         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25619         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25620         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25621         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25622         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25623         (gl_WCHAR_H_DEFAULTS): Likewise.
25624
25625 2009-12-31  Eric Blake  <ebb9@byu.net>
25626
25627         signal, spawn: use link warnings
25628         * lib/signal.in.h (sigset_t): Make unconditional.
25629         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25630         (sigpending, sigprocmask, sigaction): Add link warnings.
25631         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25632         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25633         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25634         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25635         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25636         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25637         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25638         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25639         (posix_spawn_file_actions_destroy)
25640         (posix_spawn_file_actions_addopen)
25641         (posix_spawn_file_actions_addclose)
25642         (posix_spawn_file_actions_adddup2): Likewise.
25643         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25644         * tests/test-signal.c (main): Enhance test.
25645
25646         spawn: improve wrapper support
25647         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25648         (gl_SPAWN_H_DEFAULTS): New defaults.
25649         * modules/spawn (Makefile.am): Substitute them.
25650         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25651         Only declare if missing or broken.
25652
25653         sys_times, sys_utsname: use include_next
25654         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25655         header.
25656         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25657         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25658         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25659         * modules/sys_times (Depends-on): Add include_next.
25660         (Makefile.am): Substitute additional values.
25661         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25662         * lib/sys_times.in.h (includes): Include native header, if
25663         available.
25664         * lib/sys_utsname.in.h (includes): Likewise.
25665         * tests/test-sys_times.c (main): Enhance test.
25666
25667         fdutimensat: revert prior patch
25668         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25669         utimens.h.
25670         Reported by Bruno Haible.
25671
25672 2009-12-30  Eric Blake  <ebb9@byu.net>
25673
25674         sys_wait: drop link-warning dependency
25675         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25676         link-warning efforts.
25677         * lib/sys_wait.in.h: Likewise.
25678
25679         fdutimensat: remove bogus dependency
25680         * modules/fdutimensat (Depends-on): Drop inline.
25681
25682         unistd: fix typo
25683         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25684
25685 2009-12-30  Bruno Haible  <bruno@clisp.org>
25686
25687         Fix compilation error with Solaris cc.
25688         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25689         * lib/unicase/u16-is-invariant.c: Likewise.
25690         * lib/unicase/u32-is-invariant.c: Likewise.
25691         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25692
25693 2009-12-30  Bruno Haible  <bruno@clisp.org>
25694
25695         Fix test crash.
25696         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25697         locales.
25698         Reported by Simon Josefsson <simon@josefsson.org>.
25699
25700 2009-12-30  Bruno Haible  <bruno@clisp.org>
25701
25702         Fix compilation error on most platforms.
25703         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25704         Reported by Simon Josefsson <simon@josefsson.org>
25705         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25706
25707 2009-12-30  Eric Blake  <ebb9@byu.net>
25708
25709         futimens, utimensat: work around ntfs-3g bug
25710         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25711         a ctime bug is present, and expand workaround to cover ntfs-3g.
25712         * lib/utimens.c (fdutimens, lutimens): Likewise.
25713         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25714         (validate_timespec): Adjust return value.
25715         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25716         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25717         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25718
25719 2009-12-29  Eric Blake  <ebb9@byu.net>
25720
25721         link-warning: make usage consistent
25722         * modules/ctype (Depends-on): Add link-warning.
25723         (Makefile.am): Update rules accordingly.
25724         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25725         * modules/locale (Depends-on, Makefile.am): Likewise.
25726         * modules/sys_file (Makefile.am): Likewise.
25727         * modules/getopt-posix (Makefile.am): Delete unused link warning
25728         efforts.
25729         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25730         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25731         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25732         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25733
25734         stdio: remove unused variables
25735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25736         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25737         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25738
25739         tests: test more substitute headers
25740         * modules/ctype-tests: New file.
25741         * modules/dirent-tests: Likewise.
25742         * modules/spawn-tests: Likewise.
25743         * modules/sys_file-tests: Likewise.
25744         * modules/sys_ioctl-tests: Likewise.
25745         * modules/sys_wait-tests: Likewise.
25746         * tests/test-ctype.c: Likewise.
25747         * tests/test-dirent.c: Likewise.
25748         * tests/test-spawn.c: Likewise.
25749         * tests/test-sys_file.c: Likewise.
25750         * tests/test-sys_ioctl.c: Likewise.
25751         * tests/test-sys_wait.c: Likewise.
25752         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25753         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25754         whether or not flock is in use.
25755
25756         tests: remove License section from module
25757         * modules/arpa_inet-tests: Remove unneeded section.
25758         * modules/byteswap-tests: Likewise.
25759         * modules/ceilf-tests: Likewise.
25760         * modules/ceill-tests: Likewise.
25761         * modules/crypto/des-tests: Likewise.
25762         * modules/crypto/gc-arcfour-tests: Likewise.
25763         * modules/crypto/gc-arctwo-tests: Likewise.
25764         * modules/crypto/gc-des-tests: Likewise.
25765         * modules/crypto/gc-hmac-md5-tests: Likewise.
25766         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25767         * modules/crypto/gc-md2-tests: Likewise.
25768         * modules/crypto/gc-md4-tests: Likewise.
25769         * modules/crypto/gc-md5-tests: Likewise.
25770         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25771         * modules/crypto/gc-rijndael-tests: Likewise.
25772         * modules/crypto/gc-sha1-tests: Likewise.
25773         * modules/crypto/gc-tests: Likewise.
25774         * modules/crypto/md2-tests: Likewise.
25775         * modules/crypto/md4-tests: Likewise.
25776         * modules/fcntl-h-tests: Likewise.
25777         * modules/floorf-tests: Likewise.
25778         * modules/floorl-tests: Likewise.
25779         * modules/frexp-nolibm-tests: Likewise.
25780         * modules/frexp-tests: Likewise.
25781         * modules/frexpl-nolibm-tests: Likewise.
25782         * modules/frexpl-tests: Likewise.
25783         * modules/getaddrinfo-tests: Likewise.
25784         * modules/inttypes-tests: Likewise.
25785         * modules/isfinite-tests: Likewise.
25786         * modules/isinf-tests: Likewise.
25787         * modules/ldexpl-tests: Likewise.
25788         * modules/locale-tests: Likewise.
25789         * modules/math-tests: Likewise.
25790         * modules/netdb-tests: Likewise.
25791         * modules/netinet_in-tests: Likewise.
25792         * modules/printf-frexp-tests: Likewise.
25793         * modules/printf-frexpl-tests: Likewise.
25794         * modules/priv-set-tests: Likewise.
25795         * modules/random_r-tests: Likewise.
25796         * modules/round-tests: Likewise.
25797         * modules/roundf-tests: Likewise.
25798         * modules/roundl-tests: Likewise.
25799         * modules/search-tests: Likewise.
25800         * modules/select-tests: Likewise.
25801         * modules/signal-tests: Likewise.
25802         * modules/stdbool-tests: Likewise.
25803         * modules/stddef-tests: Likewise.
25804         * modules/stdint-tests: Likewise.
25805         * modules/stdio-tests: Likewise.
25806         * modules/stdlib-tests: Likewise.
25807         * modules/string-tests: Likewise.
25808         * modules/strings-tests: Likewise.
25809         * modules/sys_select-tests: Likewise.
25810         * modules/sys_socket-tests: Likewise.
25811         * modules/sys_stat-tests: Likewise.
25812         * modules/sys_time-tests: Likewise.
25813         * modules/sys_utsname-tests: Likewise.
25814         * modules/sysexits-tests: Likewise.
25815         * modules/time-tests: Likewise.
25816         * modules/trunc-tests: Likewise.
25817         * modules/truncf-tests: Likewise.
25818         * modules/truncl-tests: Likewise.
25819         * modules/tsearch-tests: Likewise.
25820         * modules/unistd-tests: Likewise.
25821         * modules/wchar-tests: Likewise.
25822         * modules/wctype-tests: Likewise.
25823
25824         tests: fix license on several tests
25825         * tests/test-des.c: Update to GPLv3+.
25826         * tests/test-flock.c: Likewise.
25827         * tests/test-fsync.c: Likewise.
25828         * tests/test-futimens.h: Likewise.
25829         * tests/test-gc-arcfour.c: Likewise.
25830         * tests/test-gc-arctwo.c: Likewise.
25831         * tests/test-gc-des.c: Likewise.
25832         * tests/test-gc-hmac-md5.c: Likewise.
25833         * tests/test-gc-hmac-sha1.c: Likewise.
25834         * tests/test-gc-md2.c: Likewise.
25835         * tests/test-gc-md4.c: Likewise.
25836         * tests/test-gc-md5.c: Likewise.
25837         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25838         * tests/test-gc-rijndael.c: Likewise.
25839         * tests/test-gc-sha1.c: Likewise.
25840         * tests/test-gc.c: Likewise.
25841         * tests/test-getcwd.c: Likewise.
25842         * tests/test-link.c: Likewise.
25843         * tests/test-link.h: Likewise.
25844         * tests/test-lutimens.h: Likewise.
25845         * tests/test-md2.c: Likewise.
25846         * tests/test-md4.c: Likewise.
25847         * tests/test-mkdir.h: Likewise.
25848         * tests/test-rename.c: Likewise.
25849         * tests/test-rename.h: Likewise.
25850         * tests/test-safe-alloc.c: Likewise.
25851         * tests/test-utimens-common.h: Likewise.
25852         * tests/test-utimens.h: Likewise.
25853
25854         maint: sync license texts
25855         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25856         * doc/gpl-3.0.texi: Revert copyright year update.
25857         * doc/lgpl-3.0.texi: Likewise.
25858
25859 2009-12-29  Jim Meyering  <meyering@redhat.com>
25860
25861         update nearly all FSF copyright year lists to include 2009
25862         The files named by the following are exempted:
25863             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25864               test -f "$dst" && { echo "$dst"; continue; }
25865               test -d "$dst" || continue
25866               echo "$dst"/$(basename "$src")
25867             done > exempt
25868             git ls-files tests/unictype >> exempt
25869         In the remaining files, convert to all-interval notation if
25870         - there is already at least one year interval like 2000-2003
25871         - the file is maintained by me
25872         - the file is in lib/uni*/, where that style already prevails
25873         Otherwise, use update-copyright's default.
25874
25875 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25876         and Eric Blake  <ebb9@byu.net>
25877
25878         tests: don't require debug system() to pass
25879         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25880         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25881         * tests/test-unlink.h (test_unlink_func): Likewise.
25882         * tests/test-fstatat.c (main): ...into callers.
25883         * tests/test-lstat.c (main): Likewise.
25884         * tests/test-rmdir.c (main): Likewise.
25885         * tests/test-unlink.c (main): Likewise.
25886         * tests/test-unlinkat.c (main): Likewise.
25887         * tests/test-areadlink-with-size.c (main): Don't require a
25888         debug-only system call to pass, aiding cross-testing to mingw.
25889         * tests/test-areadlink.c (main): Likewise.
25890         * tests/test-areadlinkat-with-size.c (main): Likewise.
25891         * tests/test-areadlinkat.c (main): Likewise.
25892         * tests/test-canonicalize-lgpl.c (main): Likewise.
25893         * tests/test-canonicalize.c (main): Likewise.
25894         * tests/test-chown.c (main): Likewise.
25895         * tests/test-fchownat.c (main): Likewise.
25896         * tests/test-lchown.c (main): Likewise.
25897         * tests/test-fdutimensat.c (main): Likewise.
25898         * tests/test-futimens.c (main): Likewise.
25899         * tests/test-link.c (main): Likewise.
25900         * tests/test-linkat.c (main): Likewise.
25901         * tests/test-mkdir.c (main): Likewise.
25902         * tests/test-mkdirat.c (main): Likewise.
25903         * tests/test-mkfifo.c (main): Likewise.
25904         * tests/test-mkfifoat.c (main): Likewise.
25905         * tests/test-mknod.c (main): Likewise.
25906         * tests/test-readlink.c (main): Likewise.
25907         * tests/test-remove.c (main): Likewise.
25908         * tests/test-rename.c (main): Likewise.
25909         * tests/test-renameat.c (main): Likewise.
25910         * tests/test-symlink.c (main): Likewise.
25911         * tests/test-symlinkat.c (main): Likewise.
25912         * tests/test-utimens.c (main): Likewise.
25913         * tests/test-utimensat.c (main): Likewise.
25914
25915 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25916
25917         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25918         on $(UNUSED_PARAMETER_H) to avoid build failure.
25919
25920 2009-12-28  Jim Meyering  <meyering@redhat.com>
25921
25922         update-copyright: you may specify a max. line length other than 72
25923         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25924
25925         maint: use consistent FSF copyright line syntax
25926         * lib/posixtm.c: Add missing comma in FSF copyright line.
25927         * lib/posixtm.h: Likewise.
25928         * lib/getugroups.c: Add missing ", Inc.".
25929
25930         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25931         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25932         FSF copyright line.  Remove trailing blanks.
25933
25934 2009-12-28  Eric Blake  <ebb9@byu.net>
25935
25936         test-dup2: reduce dependencies
25937         * modules/cloexec (Configure.ac): Set witness.
25938         * modules/dup2-tests (Depends-on): Drop cloexec.
25939         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25940         not present.
25941         Suggested by Bruno Haible.
25942
25943 2009-12-26  Bruno Haible  <bruno@clisp.org>
25944
25945         Remove an unneeded dependency.
25946         * modules/fseterr (Depends-on): Remove dup2.
25947
25948 2009-12-26  Eric Blake  <ebb9@byu.net>
25949
25950         tests: use macros.h in more places
25951         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25952         (ASSERT_STREAM): Provide default of stderr.
25953         * tests/test-dirent-safer.c: Include macros.h, using alternate
25954         stream for assertions.
25955         * tests/test-dup-safer.c: Likewise.
25956         * tests/test-freopen-safer.c: Likewise.
25957         * tests/test-getopt.c: Likewise.
25958         * tests/test-openat-safer.c: Likewise.
25959         * tests/test-pipe.c: Likewise.
25960         * tests/test-popen-safer.c: Likewise.
25961         * modules/dirent-safer-tests (Files): Include macros.h.
25962         * modules/unistd-safer-tests (Files): Likewise.
25963         * modules/freopen-safer-tests (Files): Likewise.
25964         * modules/getopt-posix-tests (Files): Likewise.
25965         * modules/openat-safer-tests (Files): Likewise.
25966         * modules/pipe-tests (Files): Likewise.
25967
25968 2009-12-26  Bruno Haible  <bruno@clisp.org>
25969
25970         javacomp: Portability fix.
25971         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25972         that it also works on Solaris.
25973
25974 2009-12-26  Bruno Haible  <bruno@clisp.org>
25975
25976         localename: Fix storage allocation of gl_locale_name_thread's result.
25977         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25978         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25979         all platforms that have 'uselocale'.
25980         (gl_locale_name_thread_unsafe): New function, extracted from
25981         gl_locale_name_thread.
25982         (gl_locale_name_thread): Call struniq on all platforms that have
25983         'uselocale'.
25984         * tests/test-localename.c (test_locale_name_thread): Check that the
25985         resulting strings are permanently allocated.
25986         * modules/localename-tests (Depends-on): Add strdup.
25987
25988 2009-12-26  Bruno Haible  <bruno@clisp.org>
25989
25990         * tests/test-localename.c (categories): Fill in the strings.
25991
25992 2009-12-26  Jim Meyering  <meyering@redhat.com>
25993
25994         isdir: complete the removal of m4/isdir.m4
25995         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25996
25997         isdir: clean up, since at least grep still uses it
25998         * lib/isdir.c: Include "isdir.h".
25999         (S_ISDIR): Remove now-unneeded definition.
26000         * modules/isdir (Files): Add lib/isdir.h.
26001         * lib/isdir.h: New file, with declaration.
26002         * m4/isdir.m4: Remove file -- unneeded.
26003
26004 2009-12-25  Bruno Haible  <bruno@clisp.org>
26005
26006         selinux-h: Make generated .h files standalone.
26007         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26008         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26009         * lib/se-selinux.in.h: Likewise.
26010         * modules/selinux-h (Depends-on): Add unused-parameter.
26011         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26012         selinux/selinux.h and selinux/context.h.
26013         Suggested by Eric Blake.
26014
26015 2009-12-25  Bruno Haible  <bruno@clisp.org>
26016
26017         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26018         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26019         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26020         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26021         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26022
26023 2009-12-24  Bruno Haible  <bruno@clisp.org>
26024
26025         openat: Fix warning.
26026         * lib/openat-proc.c: Include <unistd.h>.
26027
26028 2009-12-24  Bruno Haible  <bruno@clisp.org>
26029
26030         New module 'unused-parameter'.
26031         * build-aux/unused-parameter.h: New file, extracted from earlier
26032         gnulib-common.m4.
26033         * modules/unused-parameter: New file.
26034         * lib/unistr.h: Include unused-parameter.h.
26035         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26036         _GL_UNUSED.
26037         * modules/unistr/base (Depends-on): Add unused-parameter.
26038
26039 2009-12-24  Bruno Haible  <bruno@clisp.org>
26040
26041         Add missing dependencies to 'extensions' module.
26042         * m4/extensions.m4: Add comment.
26043         * modules/accept4 (Depends-on): Add extensions.
26044         * modules/dup3 (Depends-on): Likewise.
26045         * modules/fcntl (Depends-on): Likewise.
26046         * modules/futimens (Depends-on): Likewise.
26047         * modules/mknod (Depends-on): Likewise.
26048         * modules/pipe2 (Depends-on): Likewise.
26049         * modules/stat-time (Depends-on): Likewise.
26050         * modules/strcasestr-simple (Depends-on): Likewise.
26051         * modules/strsignal (Depends-on): Likewise.
26052         * modules/utimensat (Depends-on): Likewise.
26053         * modules/localcharset (Depends-on): Likewise. Needed because of
26054         gl_FCNTL_O_FLAGS.
26055         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26056         AC_TYPE_MBSTATE_T.
26057         * modules/wcsnrtombs (Depends-on): Likewise.
26058         * modules/wcsrtombs (Depends-on): Likewise.
26059
26060 2009-12-24  Bruno Haible  <bruno@clisp.org>
26061
26062         binary-io: Avoid gcc warning due to SET_BINARY.
26063         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26064         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26065
26066 2009-12-24  Bruno Haible  <bruno@clisp.org>
26067
26068         Avoid future namespace pollution on glibc systems.
26069         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26070         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26071         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26072         glibc systems.
26073
26074 2009-12-24  Bruno Haible  <bruno@clisp.org>
26075
26076         Refactor common macros used in tests.
26077         * tests/macros.h: New file.
26078         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26079         and/or <stdlib.h>, if appropriate.
26080         (ASSERT, SIZEOF): Remove macros.
26081         * tests/test-areadlink-with-size.c: Likewise.
26082         * tests/test-areadlinkat.c: Likewise.
26083         * tests/test-areadlinkat-with-size.c: Likewise.
26084         * tests/test-argmatch.c: Likewise.
26085         * tests/test-argv-iter.c: Likewise.
26086         * tests/test-array-mergesort.c: Likewise.
26087         * tests/test-array_list.c: Likewise.
26088         * tests/test-array_oset.c: Likewise.
26089         * tests/test-avltree_list.c: Likewise.
26090         * tests/test-avltree_oset.c: Likewise.
26091         * tests/test-avltreehash_list.c: Likewise.
26092         * tests/test-base64.c: Likewise.
26093         * tests/test-binary-io.c: Likewise.
26094         * tests/test-bitrotate.c: Likewise.
26095         * tests/test-btowc.c: Likewise.
26096         * tests/test-byteswap.c: Likewise.
26097         * tests/test-c-ctype.c: Likewise.
26098         * tests/test-c-stack.c: Likewise.
26099         * tests/test-c-strcasecmp.c: Likewise.
26100         * tests/test-c-strcasestr.c: Likewise.
26101         * tests/test-c-strncasecmp.c: Likewise.
26102         * tests/test-c-strstr.c: Likewise.
26103         * tests/test-canonicalize-lgpl.c: Likewise.
26104         * tests/test-canonicalize.c: Likewise.
26105         * tests/test-carray_list.c: Likewise.
26106         * tests/test-ceilf1.c: Likewise.
26107         * tests/test-ceilf2.c: Likewise.
26108         * tests/test-ceill.c: Likewise.
26109         * tests/test-chown.c: Likewise.
26110         * tests/test-cloexec.c: Likewise.
26111         * tests/test-copy-acl.c: Likewise.
26112         * tests/test-copy-file.c: Likewise.
26113         * tests/test-count-one-bits.c: Likewise.
26114         * tests/test-dprintf-posix.c: Likewise.
26115         * tests/test-dup2.c: Likewise.
26116         * tests/test-dup3.c: Likewise.
26117         * tests/test-duplocale.c: Likewise.
26118         * tests/test-fbufmode.c: Likewise.
26119         * tests/test-fchdir.c: Likewise.
26120         * tests/test-fchownat.c: Likewise.
26121         * tests/test-fcntl-safer.c: Likewise.
26122         * tests/test-fcntl.c: Likewise.
26123         * tests/test-fdopendir.c: Likewise.
26124         * tests/test-fdutimensat.c: Likewise.
26125         * tests/test-fflush2.c: Likewise.
26126         * tests/test-file-has-acl.c: Likewise.
26127         * tests/test-filevercmp.c: Likewise.
26128         * tests/test-flock.c: Likewise.
26129         * tests/test-floorf1.c: Likewise.
26130         * tests/test-floorf2.c: Likewise.
26131         * tests/test-floorl.c: Likewise.
26132         * tests/test-fnmatch.c: Likewise.
26133         * tests/test-fopen.h: Likewise.
26134         * tests/test-fpending.c: Likewise.
26135         * tests/test-fprintf-posix.c: Likewise.
26136         * tests/test-fpurge.c: Likewise.
26137         * tests/test-freadable.c: Likewise.
26138         * tests/test-freadahead.c: Likewise.
26139         * tests/test-freading.c: Likewise.
26140         * tests/test-freadptr.c: Likewise.
26141         * tests/test-freadptr2.c: Likewise.
26142         * tests/test-freadseek.c: Likewise.
26143         * tests/test-freopen.c: Likewise.
26144         * tests/test-frexp.c: Likewise.
26145         * tests/test-frexpl.c: Likewise.
26146         * tests/test-fseek.c: Likewise.
26147         * tests/test-fseeko.c: Likewise.
26148         * tests/test-fstatat.c: Likewise.
26149         * tests/test-fstrcmp.c: Likewise.
26150         * tests/test-fsync.c: Likewise.
26151         * tests/test-ftell.c: Likewise.
26152         * tests/test-ftello.c: Likewise.
26153         * tests/test-func.c: Likewise.
26154         * tests/test-futimens.c: Likewise.
26155         * tests/test-fwritable.c: Likewise.
26156         * tests/test-fwriting.c: Likewise.
26157         * tests/test-getcwd.c: Likewise.
26158         * tests/test-getdate.c: Likewise.
26159         * tests/test-getdelim.c: Likewise.
26160         * tests/test-getdtablesize.c: Likewise.
26161         * tests/test-getgroups.c: Likewise.
26162         * tests/test-getline.c: Likewise.
26163         * tests/test-getndelim2.c: Likewise.
26164         * tests/test-glob.c: Likewise.
26165         * tests/test-hash.c: Likewise.
26166         * tests/test-i-ring.c: Likewise.
26167         * tests/test-iconv-utf.c: Likewise.
26168         * tests/test-iconv.c: Likewise.
26169         * tests/test-idpriv-drop.c: Likewise.
26170         * tests/test-idpriv-droptemp.c: Likewise.
26171         * tests/test-inet_ntop.c: Likewise.
26172         * tests/test-inet_pton.c: Likewise.
26173         * tests/test-isblank.c: Likewise.
26174         * tests/test-isfinite.c: Likewise.
26175         * tests/test-isinf.c: Likewise.
26176         * tests/test-isnan.c: Likewise.
26177         * tests/test-isnand.h: Likewise.
26178         * tests/test-isnanf.h: Likewise.
26179         * tests/test-isnanl.h: Likewise.
26180         * tests/test-lchown.c: Likewise.
26181         * tests/test-ldexpl.c: Likewise.
26182         * tests/test-link.c: Likewise.
26183         * tests/test-linkat.c: Likewise.
26184         * tests/test-linked_list.c: Likewise.
26185         * tests/test-linkedhash_list.c: Likewise.
26186         * tests/test-localename.c: Likewise.
26187         * tests/test-lseek.c: Likewise.
26188         * tests/test-lstat.c: Likewise.
26189         * tests/test-mbmemcasecmp.c: Likewise.
26190         * tests/test-mbmemcasecoll.c: Likewise.
26191         * tests/test-mbrtowc.c: Likewise.
26192         * tests/test-mbscasecmp.c: Likewise.
26193         * tests/test-mbscasestr1.c: Likewise.
26194         * tests/test-mbscasestr2.c: Likewise.
26195         * tests/test-mbscasestr3.c: Likewise.
26196         * tests/test-mbscasestr4.c: Likewise.
26197         * tests/test-mbschr.c: Likewise.
26198         * tests/test-mbscspn.c: Likewise.
26199         * tests/test-mbsinit.c: Likewise.
26200         * tests/test-mbsncasecmp.c: Likewise.
26201         * tests/test-mbsnrtowcs.c: Likewise.
26202         * tests/test-mbspbrk.c: Likewise.
26203         * tests/test-mbspcasecmp.c: Likewise.
26204         * tests/test-mbsrchr.c: Likewise.
26205         * tests/test-mbsrtowcs.c: Likewise.
26206         * tests/test-mbsspn.c: Likewise.
26207         * tests/test-mbsstr1.c: Likewise.
26208         * tests/test-mbsstr2.c: Likewise.
26209         * tests/test-mbsstr3.c: Likewise.
26210         * tests/test-memchr.c: Likewise.
26211         * tests/test-memchr2.c: Likewise.
26212         * tests/test-memcmp.c: Likewise.
26213         * tests/test-memmem.c: Likewise.
26214         * tests/test-memrchr.c: Likewise.
26215         * tests/test-mkdir.c: Likewise.
26216         * tests/test-mkdirat.c: Likewise.
26217         * tests/test-mkfifo.c: Likewise.
26218         * tests/test-mkfifoat.c: Likewise.
26219         * tests/test-mknod.c: Likewise.
26220         * tests/test-nanosleep.c: Likewise.
26221         * tests/test-nl_langinfo.c: Likewise.
26222         * tests/test-obstack-printf.c: Likewise.
26223         * tests/test-open.c: Likewise.
26224         * tests/test-openat.c: Likewise.
26225         * tests/test-pipe-filter-gi1.c: Likewise.
26226         * tests/test-pipe-filter-gi2-main.c: Likewise.
26227         * tests/test-pipe-filter-ii1.c: Likewise.
26228         * tests/test-pipe-filter-ii2-main.c: Likewise.
26229         * tests/test-pipe2.c: Likewise.
26230         * tests/test-popen.h: Likewise.
26231         * tests/test-posixtm.c: Likewise.
26232         * tests/test-pread.c: Likewise.
26233         * tests/test-printf-frexp.c: Likewise.
26234         * tests/test-printf-frexpl.c: Likewise.
26235         * tests/test-printf-posix.c: Likewise.
26236         * tests/test-priv-set.c: Likewise.
26237         * tests/test-quotearg.c: Likewise.
26238         * tests/test-random_r.c: Likewise.
26239         * tests/test-rawmemchr.c: Likewise.
26240         * tests/test-rbtree_list.c: Likewise.
26241         * tests/test-rbtree_oset.c: Likewise.
26242         * tests/test-rbtreehash_list.c: Likewise.
26243         * tests/test-readlink.c: Likewise.
26244         * tests/test-remove.c: Likewise.
26245         * tests/test-rename.c: Likewise.
26246         * tests/test-renameat.c: Likewise.
26247         * tests/test-rmdir.c: Likewise.
26248         * tests/test-round1.c: Likewise.
26249         * tests/test-roundf1.c: Likewise.
26250         * tests/test-roundl.c: Likewise.
26251         * tests/test-safe-alloc.c: Likewise.
26252         * tests/test-sameacls.c: Likewise.
26253         * tests/test-set-mode-acl.c: Likewise.
26254         * tests/test-setenv.c: Likewise.
26255         * tests/test-sigaction.c: Likewise.
26256         * tests/test-signbit.c: Likewise.
26257         * tests/test-sleep.c: Likewise.
26258         * tests/test-snprintf-posix.c: Likewise.
26259         * tests/test-snprintf.c: Likewise.
26260         * tests/test-sprintf-posix.c: Likewise.
26261         * tests/test-stat-time.c: Likewise.
26262         * tests/test-stat.c: Likewise.
26263         * tests/test-strcasestr.c: Likewise.
26264         * tests/test-strchrnul.c: Likewise.
26265         * tests/test-strerror.c: Likewise.
26266         * tests/test-striconv.c: Likewise.
26267         * tests/test-striconveh.c: Likewise.
26268         * tests/test-striconveha.c: Likewise.
26269         * tests/test-strsignal.c: Likewise.
26270         * tests/test-strstr.c: Likewise.
26271         * tests/test-strtod.c: Likewise.
26272         * tests/test-strverscmp.c: Likewise.
26273         * tests/test-symlink.c: Likewise.
26274         * tests/test-symlinkat.c: Likewise.
26275         * tests/test-trunc1.c: Likewise.
26276         * tests/test-trunc2.c: Likewise.
26277         * tests/test-truncf1.c: Likewise.
26278         * tests/test-truncf2.c: Likewise.
26279         * tests/test-truncl.c: Likewise.
26280         * tests/test-uname.c: Likewise.
26281         * tests/test-unlink.c: Likewise.
26282         * tests/test-unlinkat.c: Likewise.
26283         * tests/test-unsetenv.c: Likewise.
26284         * tests/test-usleep.c: Likewise.
26285         * tests/test-utimens.c: Likewise.
26286         * tests/test-utimensat.c: Likewise.
26287         * tests/test-vasnprintf-posix.c: Likewise.
26288         * tests/test-vasnprintf-posix2.c: Likewise.
26289         * tests/test-vasnprintf.c: Likewise.
26290         * tests/test-vasprintf-posix.c: Likewise.
26291         * tests/test-vasprintf.c: Likewise.
26292         * tests/test-vdprintf-posix.c: Likewise.
26293         * tests/test-vfprintf-posix.c: Likewise.
26294         * tests/test-vprintf-posix.c: Likewise.
26295         * tests/test-vsnprintf-posix.c: Likewise.
26296         * tests/test-vsnprintf.c: Likewise.
26297         * tests/test-vsprintf-posix.c: Likewise.
26298         * tests/test-wcrtomb.c: Likewise.
26299         * tests/test-wcsnrtombs.c: Likewise.
26300         * tests/test-wcsrtombs.c: Likewise.
26301         * tests/test-wctype.c: Likewise.
26302         * tests/test-wcwidth.c: Likewise.
26303         * tests/test-xfprintf-posix.c: Likewise.
26304         * tests/test-xmemdup0.c: Likewise.
26305         * tests/test-xprintf-posix.c: Likewise.
26306         * tests/test-xvasprintf.c: Likewise.
26307         * tests/unicase/test-locale-language.c: Likewise.
26308         * tests/unicase/test-mapping-part1.h: Likewise.
26309         * tests/unicase/test-predicate-part1.h: Likewise.
26310         * tests/unicase/test-u8-casecmp.c: Likewise.
26311         * tests/unicase/test-u8-casecoll.c: Likewise.
26312         * tests/unicase/test-u8-casefold.c: Likewise.
26313         * tests/unicase/test-u8-is-cased.c: Likewise.
26314         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26315         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26316         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26317         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26318         * tests/unicase/test-u8-tolower.c: Likewise.
26319         * tests/unicase/test-u8-totitle.c: Likewise.
26320         * tests/unicase/test-u8-toupper.c: Likewise.
26321         * tests/unicase/test-u16-casecmp.c: Likewise.
26322         * tests/unicase/test-u16-casecoll.c: Likewise.
26323         * tests/unicase/test-u16-casefold.c: Likewise.
26324         * tests/unicase/test-u16-is-cased.c: Likewise.
26325         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26326         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26327         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26328         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26329         * tests/unicase/test-u16-tolower.c: Likewise.
26330         * tests/unicase/test-u16-totitle.c: Likewise.
26331         * tests/unicase/test-u16-toupper.c: Likewise.
26332         * tests/unicase/test-u32-casecmp.c: Likewise.
26333         * tests/unicase/test-u32-casecoll.c: Likewise.
26334         * tests/unicase/test-u32-casefold.c: Likewise.
26335         * tests/unicase/test-u32-is-cased.c: Likewise.
26336         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26337         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26338         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26339         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26340         * tests/unicase/test-u32-tolower.c: Likewise.
26341         * tests/unicase/test-u32-totitle.c: Likewise.
26342         * tests/unicase/test-u32-toupper.c: Likewise.
26343         * tests/unicase/test-ulc-casecmp.c: Likewise.
26344         * tests/unicase/test-ulc-casecoll.c: Likewise.
26345         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26346         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26347         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26348         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26349         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26350         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26351         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26352         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26353         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26354         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26355         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26356         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26357         * tests/unictype/test-bidi_byname.c: Likewise.
26358         * tests/unictype/test-bidi_name.c: Likewise.
26359         * tests/unictype/test-bidi_of.c: Likewise.
26360         * tests/unictype/test-bidi_test.c: Likewise.
26361         * tests/unictype/test-block_list.c: Likewise.
26362         * tests/unictype/test-block_of.c: Likewise.
26363         * tests/unictype/test-block_test.c: Likewise.
26364         * tests/unictype/test-categ_and.c: Likewise.
26365         * tests/unictype/test-categ_and_not.c: Likewise.
26366         * tests/unictype/test-categ_byname.c: Likewise.
26367         * tests/unictype/test-categ_name.c: Likewise.
26368         * tests/unictype/test-categ_none.c: Likewise.
26369         * tests/unictype/test-categ_of.c: Likewise.
26370         * tests/unictype/test-categ_or.c: Likewise.
26371         * tests/unictype/test-categ_test_withtable.c: Likewise.
26372         * tests/unictype/test-combining.c: Likewise.
26373         * tests/unictype/test-decdigit.c: Likewise.
26374         * tests/unictype/test-digit.c: Likewise.
26375         * tests/unictype/test-mirror.c: Likewise.
26376         * tests/unictype/test-numeric.c: Likewise.
26377         * tests/unictype/test-pr_byname.c: Likewise.
26378         * tests/unictype/test-pr_test.c: Likewise.
26379         * tests/unictype/test-predicate-part1.h: Likewise.
26380         * tests/unictype/test-scripts.c: Likewise.
26381         * tests/unictype/test-sy_c_ident.c: Likewise.
26382         * tests/unictype/test-sy_java_ident.c: Likewise.
26383         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26384         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26385         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26386         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26387         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26388         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26389         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26390         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26391         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26392         * tests/uninorm/test-compat-decomposition.c: Likewise.
26393         * tests/uninorm/test-composition.c: Likewise.
26394         * tests/uninorm/test-decomposing-form.c: Likewise.
26395         * tests/uninorm/test-decomposition.c: Likewise.
26396         * tests/uninorm/test-u8-nfc.c: Likewise.
26397         * tests/uninorm/test-u8-nfd.c: Likewise.
26398         * tests/uninorm/test-u8-nfkc.c: Likewise.
26399         * tests/uninorm/test-u8-nfkd.c: Likewise.
26400         * tests/uninorm/test-u8-normcmp.c: Likewise.
26401         * tests/uninorm/test-u8-normcoll.c: Likewise.
26402         * tests/uninorm/test-u16-nfc.c: Likewise.
26403         * tests/uninorm/test-u16-nfd.c: Likewise.
26404         * tests/uninorm/test-u16-nfkc.c: Likewise.
26405         * tests/uninorm/test-u16-nfkd.c: Likewise.
26406         * tests/uninorm/test-u16-normcmp.c: Likewise.
26407         * tests/uninorm/test-u16-normcoll.c: Likewise.
26408         * tests/uninorm/test-u32-nfc.c: Likewise.
26409         * tests/uninorm/test-u32-nfd.c: Likewise.
26410         * tests/uninorm/test-u32-nfkc.c: Likewise.
26411         * tests/uninorm/test-u32-nfkd.c: Likewise.
26412         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26413         * tests/uninorm/test-u32-normcmp.c: Likewise.
26414         * tests/uninorm/test-u32-normcoll.c: Likewise.
26415         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26416         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26417         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26418         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26419         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26420         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26421         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26422         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26423         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26424         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26425         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26426         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26427         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26428         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26429         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26430         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26431         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26432         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26433         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26434         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26435         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26436         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26437         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26438         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26439         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26440         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26441         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26442         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26443         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26444         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26445         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26446         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26447         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26448         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26449         * tests/uniwidth/test-u8-width.c: Likewise.
26450         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26451         * tests/uniwidth/test-u16-width.c: Likewise.
26452         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26453         * tests/uniwidth/test-u32-width.c: Likewise.
26454         * tests/uniwidth/test-uc_width.c: Likewise.
26455         * tests/uniwidth/test-uc_width2.c: Likewise.
26456         * modules/acl-tests (Files): Add tests/macros.h.
26457         * modules/areadlink-tests (Files): Likewise.
26458         * modules/areadlink-with-size-tests (Files): Likewise.
26459         * modules/areadlinkat-tests (Files): Likewise.
26460         * modules/areadlinkat-with-size-tests (Files): Likewise.
26461         * modules/argmatch-tests (Files): Likewise.
26462         * modules/argv-iter-tests (Files): Likewise.
26463         * modules/array-list-tests (Files): Likewise.
26464         * modules/array-mergesort-tests (Files): Likewise.
26465         * modules/array-oset-tests (Files): Likewise.
26466         * modules/avltree-list-tests (Files): Likewise.
26467         * modules/avltree-oset-tests (Files): Likewise.
26468         * modules/avltreehash-list-tests (Files): Likewise.
26469         * modules/base64-tests (Files): Likewise.
26470         * modules/binary-io-tests (Files): Likewise.
26471         * modules/bitrotate-tests (Files): Likewise.
26472         * modules/btowc-tests (Files): Likewise.
26473         * modules/byteswap-tests (Files): Likewise.
26474         * modules/c-ctype-tests (Files): Likewise.
26475         * modules/c-stack-tests (Files): Likewise.
26476         * modules/c-strcase-tests (Files): Likewise.
26477         * modules/c-strcasestr-tests (Files): Likewise.
26478         * modules/c-strstr-tests (Files): Likewise.
26479         * modules/canonicalize-lgpl-tests (Files): Likewise.
26480         * modules/canonicalize-tests (Files): Likewise.
26481         * modules/carray-list-tests (Files): Likewise.
26482         * modules/ceilf-tests (Files): Likewise.
26483         * modules/ceill-tests (Files): Likewise.
26484         * modules/chown-tests (Files): Likewise.
26485         * modules/cloexec-tests (Files): Likewise.
26486         * modules/copy-file-tests (Files): Likewise.
26487         * modules/count-one-bits-tests (Files): Likewise.
26488         * modules/dprintf-posix-tests (Files): Likewise.
26489         * modules/dup2-tests (Files): Likewise.
26490         * modules/dup3-tests (Files): Likewise.
26491         * modules/duplocale-tests (Files): Likewise.
26492         * modules/fbufmode-tests (Files): Likewise.
26493         * modules/fchdir-tests (Files): Likewise.
26494         * modules/fcntl-safer-tests (Files): Likewise.
26495         * modules/fcntl-tests (Files): Likewise.
26496         * modules/fdopendir-tests (Files): Likewise.
26497         * modules/fdutimensat-tests (Files): Likewise.
26498         * modules/fflush-tests (Files): Likewise.
26499         * modules/filevercmp-tests (Files): Likewise.
26500         * modules/flock-tests (Files): Likewise.
26501         * modules/floorf-tests (Files): Likewise.
26502         * modules/floorl-tests (Files): Likewise.
26503         * modules/fnmatch-tests (Files): Likewise.
26504         * modules/fopen-safer-tests (Files): Likewise.
26505         * modules/fopen-tests (Files): Likewise.
26506         * modules/fpending-tests (Files): Likewise.
26507         * modules/fprintf-posix-tests (Files): Likewise.
26508         * modules/fpurge-tests (Files): Likewise.
26509         * modules/freadable-tests (Files): Likewise.
26510         * modules/freadahead-tests (Files): Likewise.
26511         * modules/freading-tests (Files): Likewise.
26512         * modules/freadptr-tests (Files): Likewise.
26513         * modules/freadseek-tests (Files): Likewise.
26514         * modules/freopen-tests (Files): Likewise.
26515         * modules/frexp-nolibm-tests (Files): Likewise.
26516         * modules/frexp-tests (Files): Likewise.
26517         * modules/frexpl-nolibm-tests (Files): Likewise.
26518         * modules/frexpl-tests (Files): Likewise.
26519         * modules/fseek-tests (Files): Likewise.
26520         * modules/fseeko-tests (Files): Likewise.
26521         * modules/fstrcmp-tests (Files): Likewise.
26522         * modules/fsync-tests (Files): Likewise.
26523         * modules/ftell-tests (Files): Likewise.
26524         * modules/ftello-tests (Files): Likewise.
26525         * modules/func-tests (Files): Likewise.
26526         * modules/futimens-tests (Files): Likewise.
26527         * modules/fwritable-tests (Files): Likewise.
26528         * modules/fwriting-tests (Files): Likewise.
26529         * modules/getcwd-tests (Files): Likewise.
26530         * modules/getdate-tests (Files): Likewise.
26531         * modules/getdelim-tests (Files): Likewise.
26532         * modules/getdtablesize-tests (Files): Likewise.
26533         * modules/getgroups-tests (Files): Likewise.
26534         * modules/getline-tests (Files): Likewise.
26535         * modules/getndelim2-tests (Files): Likewise.
26536         * modules/glob-tests (Files): Likewise.
26537         * modules/hash-tests (Files): Likewise.
26538         * modules/i-ring-tests (Files): Likewise.
26539         * modules/iconv-tests (Files): Likewise.
26540         * modules/iconv_open-utf-tests (Files): Likewise.
26541         * modules/idpriv-drop-tests (Files): Likewise.
26542         * modules/idpriv-droptemp-tests (Files): Likewise.
26543         * modules/inet_ntop-tests (Files): Likewise.
26544         * modules/inet_pton-tests (Files): Likewise.
26545         * modules/isblank-tests (Files): Likewise.
26546         * modules/isfinite-tests (Files): Likewise.
26547         * modules/isinf-tests (Files): Likewise.
26548         * modules/isnan-tests (Files): Likewise.
26549         * modules/isnand-nolibm-tests (Files): Likewise.
26550         * modules/isnand-tests (Files): Likewise.
26551         * modules/isnanf-nolibm-tests (Files): Likewise.
26552         * modules/isnanf-tests (Files): Likewise.
26553         * modules/isnanl-nolibm-tests (Files): Likewise.
26554         * modules/isnanl-tests (Files): Likewise.
26555         * modules/lchown-tests (Files): Likewise.
26556         * modules/ldexpl-tests (Files): Likewise.
26557         * modules/link-tests (Files): Likewise.
26558         * modules/linkat-tests (Files): Likewise.
26559         * modules/linked-list-tests (Files): Likewise.
26560         * modules/linkedhash-list-tests (Files): Likewise.
26561         * modules/localename-tests (Files): Likewise.
26562         * modules/lseek-tests (Files): Likewise.
26563         * modules/lstat-tests (Files): Likewise.
26564         * modules/mbmemcasecmp-tests (Files): Likewise.
26565         * modules/mbmemcasecoll-tests (Files): Likewise.
26566         * modules/mbrtowc-tests (Files): Likewise.
26567         * modules/mbscasecmp-tests (Files): Likewise.
26568         * modules/mbscasestr-tests (Files): Likewise.
26569         * modules/mbschr-tests (Files): Likewise.
26570         * modules/mbscspn-tests (Files): Likewise.
26571         * modules/mbsinit-tests (Files): Likewise.
26572         * modules/mbsncasecmp-tests (Files): Likewise.
26573         * modules/mbsnrtowcs-tests (Files): Likewise.
26574         * modules/mbspbrk-tests (Files): Likewise.
26575         * modules/mbspcasecmp-tests (Files): Likewise.
26576         * modules/mbsrchr-tests (Files): Likewise.
26577         * modules/mbsrtowcs-tests (Files): Likewise.
26578         * modules/mbsspn-tests (Files): Likewise.
26579         * modules/mbsstr-tests (Files): Likewise.
26580         * modules/memchr-tests (Files): Likewise.
26581         * modules/memchr2-tests (Files): Likewise.
26582         * modules/memcmp-tests (Files): Likewise.
26583         * modules/memmem-tests (Files): Likewise.
26584         * modules/memrchr-tests (Files): Likewise.
26585         * modules/mkdir-tests (Files): Likewise.
26586         * modules/mkfifo-tests (Files): Likewise.
26587         * modules/mkfifoat-tests (Files): Likewise.
26588         * modules/mknod-tests (Files): Likewise.
26589         * modules/nanosleep-tests (Files): Likewise.
26590         * modules/nl_langinfo-tests (Files): Likewise.
26591         * modules/obstack-printf-tests (Files): Likewise.
26592         * modules/open-tests (Files): Likewise.
26593         * modules/openat-tests (Files): Likewise.
26594         * modules/pipe-filter-gi-tests (Files): Likewise.
26595         * modules/pipe-filter-ii-tests (Files): Likewise.
26596         * modules/pipe2-tests (Files): Likewise.
26597         * modules/popen-safer-tests (Files): Likewise.
26598         * modules/popen-tests (Files): Likewise.
26599         * modules/posixtm-tests (Files): Likewise.
26600         * modules/pread-tests (Files): Likewise.
26601         * modules/printf-frexp-tests (Files): Likewise.
26602         * modules/printf-frexpl-tests (Files): Likewise.
26603         * modules/printf-posix-tests (Files): Likewise.
26604         * modules/priv-set-tests (Files): Likewise.
26605         * modules/quotearg-tests (Files): Likewise.
26606         * modules/random_r-tests (Files): Likewise.
26607         * modules/rawmemchr-tests (Files): Likewise.
26608         * modules/rbtree-list-tests (Files): Likewise.
26609         * modules/rbtree-oset-tests (Files): Likewise.
26610         * modules/rbtreehash-list-tests (Files): Likewise.
26611         * modules/readlink-tests (Files): Likewise.
26612         * modules/remove-tests (Files): Likewise.
26613         * modules/rename-tests (Files): Likewise.
26614         * modules/renameat-tests (Files): Likewise.
26615         * modules/rmdir-tests (Files): Likewise.
26616         * modules/round-tests (Files): Likewise.
26617         * modules/roundf-tests (Files): Likewise.
26618         * modules/roundl-tests (Files): Likewise.
26619         * modules/safe-alloc-tests (Files): Likewise.
26620         * modules/setenv-tests (Files): Likewise.
26621         * modules/sigaction-tests (Files): Likewise.
26622         * modules/signbit-tests (Files): Likewise.
26623         * modules/sleep-tests (Files): Likewise.
26624         * modules/snprintf-posix-tests (Files): Likewise.
26625         * modules/snprintf-tests (Files): Likewise.
26626         * modules/sprintf-posix-tests (Files): Likewise.
26627         * modules/stat-tests (Files): Likewise.
26628         * modules/stat-time-tests (Files): Likewise.
26629         * modules/strcasestr-tests (Files): Likewise.
26630         * modules/strchrnul-tests (Files): Likewise.
26631         * modules/strerror-tests (Files): Likewise.
26632         * modules/striconv-tests (Files): Likewise.
26633         * modules/striconveh-tests (Files): Likewise.
26634         * modules/striconveha-tests (Files): Likewise.
26635         * modules/strsignal-tests (Files): Likewise.
26636         * modules/strstr-tests (Files): Likewise.
26637         * modules/strtod-tests (Files): Likewise.
26638         * modules/strverscmp-tests (Files): Likewise.
26639         * modules/symlink-tests (Files): Likewise.
26640         * modules/symlinkat-tests (Files): Likewise.
26641         * modules/trunc-tests (Files): Likewise.
26642         * modules/truncf-tests (Files): Likewise.
26643         * modules/truncl-tests (Files): Likewise.
26644         * modules/uname-tests (Files): Likewise.
26645         * modules/unicase/cased-tests (Files): Likewise.
26646         * modules/unicase/ignorable-tests (Files): Likewise.
26647         * modules/unicase/locale-language-tests (Files): Likewise.
26648         * modules/unicase/tolower-tests (Files): Likewise.
26649         * modules/unicase/totitle-tests (Files): Likewise.
26650         * modules/unicase/toupper-tests (Files): Likewise.
26651         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26652         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26653         * modules/unicase/u8-casefold-tests (Files): Likewise.
26654         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26655         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26656         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26657         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26658         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26659         * modules/unicase/u8-tolower-tests (Files): Likewise.
26660         * modules/unicase/u8-totitle-tests (Files): Likewise.
26661         * modules/unicase/u8-toupper-tests (Files): Likewise.
26662         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26663         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26664         * modules/unicase/u16-casefold-tests (Files): Likewise.
26665         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26666         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26667         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26668         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26669         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26670         * modules/unicase/u16-tolower-tests (Files): Likewise.
26671         * modules/unicase/u16-totitle-tests (Files): Likewise.
26672         * modules/unicase/u16-toupper-tests (Files): Likewise.
26673         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26674         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26675         * modules/unicase/u32-casefold-tests (Files): Likewise.
26676         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26677         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26678         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26679         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26680         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26681         * modules/unicase/u32-tolower-tests (Files): Likewise.
26682         * modules/unicase/u32-totitle-tests (Files): Likewise.
26683         * modules/unicase/u32-toupper-tests (Files): Likewise.
26684         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26685         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26686         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26687         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26688         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26689         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26690         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26691         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26692         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26693         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26694         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26695         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26696         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26697         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26698         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26699         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26700         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26701         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26702         * modules/unictype/block-list-tests (Files): Likewise.
26703         * modules/unictype/block-of-tests (Files): Likewise.
26704         * modules/unictype/block-test-tests (Files): Likewise.
26705         * modules/unictype/category-C-tests (Files): Likewise.
26706         * modules/unictype/category-Cc-tests (Files): Likewise.
26707         * modules/unictype/category-Cf-tests (Files): Likewise.
26708         * modules/unictype/category-Cn-tests (Files): Likewise.
26709         * modules/unictype/category-Co-tests (Files): Likewise.
26710         * modules/unictype/category-Cs-tests (Files): Likewise.
26711         * modules/unictype/category-L-tests (Files): Likewise.
26712         * modules/unictype/category-Ll-tests (Files): Likewise.
26713         * modules/unictype/category-Lm-tests (Files): Likewise.
26714         * modules/unictype/category-Lo-tests (Files): Likewise.
26715         * modules/unictype/category-Lt-tests (Files): Likewise.
26716         * modules/unictype/category-Lu-tests (Files): Likewise.
26717         * modules/unictype/category-M-tests (Files): Likewise.
26718         * modules/unictype/category-Mc-tests (Files): Likewise.
26719         * modules/unictype/category-Me-tests (Files): Likewise.
26720         * modules/unictype/category-Mn-tests (Files): Likewise.
26721         * modules/unictype/category-N-tests (Files): Likewise.
26722         * modules/unictype/category-Nd-tests (Files): Likewise.
26723         * modules/unictype/category-Nl-tests (Files): Likewise.
26724         * modules/unictype/category-No-tests (Files): Likewise.
26725         * modules/unictype/category-P-tests (Files): Likewise.
26726         * modules/unictype/category-Pc-tests (Files): Likewise.
26727         * modules/unictype/category-Pd-tests (Files): Likewise.
26728         * modules/unictype/category-Pe-tests (Files): Likewise.
26729         * modules/unictype/category-Pf-tests (Files): Likewise.
26730         * modules/unictype/category-Pi-tests (Files): Likewise.
26731         * modules/unictype/category-Po-tests (Files): Likewise.
26732         * modules/unictype/category-Ps-tests (Files): Likewise.
26733         * modules/unictype/category-S-tests (Files): Likewise.
26734         * modules/unictype/category-Sc-tests (Files): Likewise.
26735         * modules/unictype/category-Sk-tests (Files): Likewise.
26736         * modules/unictype/category-Sm-tests (Files): Likewise.
26737         * modules/unictype/category-So-tests (Files): Likewise.
26738         * modules/unictype/category-Z-tests (Files): Likewise.
26739         * modules/unictype/category-Zl-tests (Files): Likewise.
26740         * modules/unictype/category-Zp-tests (Files): Likewise.
26741         * modules/unictype/category-Zs-tests (Files): Likewise.
26742         * modules/unictype/category-and-not-tests (Files): Likewise.
26743         * modules/unictype/category-and-tests (Files): Likewise.
26744         * modules/unictype/category-byname-tests (Files): Likewise.
26745         * modules/unictype/category-name-tests (Files): Likewise.
26746         * modules/unictype/category-none-tests (Files): Likewise.
26747         * modules/unictype/category-of-tests (Files): Likewise.
26748         * modules/unictype/category-or-tests (Files): Likewise.
26749         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26750         * modules/unictype/combining-class-tests (Files): Likewise.
26751         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26752         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26753         * modules/unictype/ctype-blank-tests (Files): Likewise.
26754         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26755         * modules/unictype/ctype-digit-tests (Files): Likewise.
26756         * modules/unictype/ctype-graph-tests (Files): Likewise.
26757         * modules/unictype/ctype-lower-tests (Files): Likewise.
26758         * modules/unictype/ctype-print-tests (Files): Likewise.
26759         * modules/unictype/ctype-punct-tests (Files): Likewise.
26760         * modules/unictype/ctype-space-tests (Files): Likewise.
26761         * modules/unictype/ctype-upper-tests (Files): Likewise.
26762         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26763         * modules/unictype/decimal-digit-tests (Files): Likewise.
26764         * modules/unictype/digit-tests (Files): Likewise.
26765         * modules/unictype/mirror-tests (Files): Likewise.
26766         * modules/unictype/numeric-tests (Files): Likewise.
26767         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26768         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26769         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26770         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26771         Likewise.
26772         * modules/unictype/property-bidi-block-separator-tests (Files):
26773         Likewise.
26774         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26775         Likewise.
26776         * modules/unictype/property-bidi-common-separator-tests (Files):
26777         Likewise.
26778         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26779         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26780         Likewise.
26781         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26782         Likewise.
26783         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26784         Likewise.
26785         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26786         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26787         Likewise.
26788         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26789         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26790         Likewise.
26791         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26792         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26793         * modules/unictype/property-bidi-segment-separator-tests (Files):
26794         Likewise.
26795         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26796         * modules/unictype/property-byname-tests (Files): Likewise.
26797         * modules/unictype/property-combining-tests (Files): Likewise.
26798         * modules/unictype/property-composite-tests (Files): Likewise.
26799         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26800         * modules/unictype/property-dash-tests (Files): Likewise.
26801         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26802         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26803         Likewise.
26804         * modules/unictype/property-deprecated-tests (Files): Likewise.
26805         * modules/unictype/property-diacritic-tests (Files): Likewise.
26806         * modules/unictype/property-extender-tests (Files): Likewise.
26807         * modules/unictype/property-format-control-tests (Files): Likewise.
26808         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26809         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26810         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26811         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26812         * modules/unictype/property-hyphen-tests (Files): Likewise.
26813         * modules/unictype/property-id-continue-tests (Files): Likewise.
26814         * modules/unictype/property-id-start-tests (Files): Likewise.
26815         * modules/unictype/property-ideographic-tests (Files): Likewise.
26816         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26817         * modules/unictype/property-ids-trinary-operator-tests (Files):
26818         Likewise.
26819         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26820         * modules/unictype/property-iso-control-tests (Files): Likewise.
26821         * modules/unictype/property-join-control-tests (Files): Likewise.
26822         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26823         * modules/unictype/property-line-separator-tests (Files): Likewise.
26824         * modules/unictype/property-logical-order-exception-tests (Files):
26825         Likewise.
26826         * modules/unictype/property-lowercase-tests (Files): Likewise.
26827         * modules/unictype/property-math-tests (Files): Likewise.
26828         * modules/unictype/property-non-break-tests (Files): Likewise.
26829         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26830         * modules/unictype/property-numeric-tests (Files): Likewise.
26831         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26832         * modules/unictype/property-other-default-ignorable-code-point-tests
26833         (Files): Likewise.
26834         * modules/unictype/property-other-grapheme-extend-tests (Files):
26835         Likewise.
26836         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26837         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26838         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26839         * modules/unictype/property-other-math-tests (Files): Likewise.
26840         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26841         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26842         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26843         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26844         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26845         * modules/unictype/property-private-use-tests (Files): Likewise.
26846         * modules/unictype/property-punctuation-tests (Files): Likewise.
26847         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26848         * modules/unictype/property-radical-tests (Files): Likewise.
26849         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26850         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26851         * modules/unictype/property-space-tests (Files): Likewise.
26852         * modules/unictype/property-terminal-punctuation-tests (Files):
26853         Likewise.
26854         * modules/unictype/property-test-tests (Files): Likewise.
26855         * modules/unictype/property-titlecase-tests (Files): Likewise.
26856         * modules/unictype/property-unassigned-code-value-tests (Files):
26857         Likewise.
26858         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26859         * modules/unictype/property-uppercase-tests (Files): Likewise.
26860         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26861         * modules/unictype/property-white-space-tests (Files): Likewise.
26862         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26863         * modules/unictype/property-xid-start-tests (Files): Likewise.
26864         * modules/unictype/property-zero-width-tests (Files): Likewise.
26865         * modules/unictype/scripts-tests (Files): Likewise.
26866         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26867         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26868         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26869         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26870         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26871         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26872         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26873         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26874         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26875         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26876         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26877         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26878         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26879         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26880         * modules/uninorm/composition-tests (Files): Likewise.
26881         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26882         * modules/uninorm/decomposition-tests (Files): Likewise.
26883         * modules/uninorm/filter-tests (Files): Likewise.
26884         * modules/uninorm/nfc-tests (Files): Likewise.
26885         * modules/uninorm/nfd-tests (Files): Likewise.
26886         * modules/uninorm/nfkc-tests (Files): Likewise.
26887         * modules/uninorm/nfkd-tests (Files): Likewise.
26888         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26889         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26890         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26891         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26892         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26893         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26894         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26895         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26896         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26897         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26898         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26899         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26900         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26901         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26902         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26903         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26904         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26905         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26906         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26907         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26908         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26909         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26910         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26911         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26912         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26913         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26914         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26915         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26916         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26917         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26918         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26919         * modules/uniwidth/u8-width-tests (Files): Likewise.
26920         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26921         * modules/uniwidth/u16-width-tests (Files): Likewise.
26922         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26923         * modules/uniwidth/u32-width-tests (Files): Likewise.
26924         * modules/uniwidth/width-tests (Files): Likewise.
26925         * modules/unlink-tests (Files): Likewise.
26926         * modules/unsetenv-tests (Files): Likewise.
26927         * modules/usleep-tests (Files): Likewise.
26928         * modules/utimens-tests (Files): Likewise.
26929         * modules/utimensat-tests (Files): Likewise.
26930         * modules/vasnprintf-posix-tests (Files): Likewise.
26931         * modules/vasnprintf-tests (Files): Likewise.
26932         * modules/vasprintf-posix-tests (Files): Likewise.
26933         * modules/vasprintf-tests (Files): Likewise.
26934         * modules/vdprintf-posix-tests (Files): Likewise.
26935         * modules/vfprintf-posix-tests (Files): Likewise.
26936         * modules/vprintf-posix-tests (Files): Likewise.
26937         * modules/vsnprintf-posix-tests (Files): Likewise.
26938         * modules/vsnprintf-tests (Files): Likewise.
26939         * modules/vsprintf-posix-tests (Files): Likewise.
26940         * modules/wcrtomb-tests (Files): Likewise.
26941         * modules/wcsnrtombs-tests (Files): Likewise.
26942         * modules/wcsrtombs-tests (Files): Likewise.
26943         * modules/wctype-tests (Files): Likewise.
26944         * modules/wcwidth-tests (Files): Likewise.
26945         * modules/xmemdup0-tests (Files): Likewise.
26946         * modules/xprintf-posix-tests (Files): Likewise.
26947         * modules/xvasprintf-tests (Files): Likewise.
26948
26949 2009-12-24  Eric Blake  <ebb9@byu.net>
26950
26951         test-nanosleep: fix typo
26952         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26953         patch.
26954         Reported by Bruno Haible.
26955
26956 2009-12-24  Bruno Haible  <bruno@clisp.org>
26957
26958         Reduce namespace pollution on glibc systems.
26959         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26960         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26961         systems.
26962         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26963         <getopt.h> on glibc systems.
26964         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26965         systems.
26966         * lib/fcntl.c: Include <unistd.h> here instead.
26967
26968 2009-12-24  Bruno Haible  <bruno@clisp.org>
26969
26970         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26971
26972 2009-12-24  Eric Blake  <ebb9@byu.net>
26973
26974         tests: add signature checks
26975         * tests/signature.h (SIGNATURE_CHECK): New file.
26976         * modules/atexit-tests (Files): Use it.
26977         * modules/btowc-tests (Files): Likewise.
26978         * modules/canonicalize-lgpl-tests (Files): Likewise.
26979         * modules/ceilf-tests (Files): Likewise.
26980         * modules/ceill-tests (Files): Likewise.
26981         * modules/chown-tests (Files): Likewise.
26982         * modules/dprintf-posix-tests (Files): Likewise.
26983         * modules/dup2-tests (Files): Likewise.
26984         * modules/dup3-tests (Files): Likewise.
26985         * modules/duplocale-tests (Files): Likewise.
26986         * modules/fchdir-tests (Files): Likewise.
26987         * modules/fcntl-tests (Files): Likewise.
26988         * modules/fdopendir-tests (Files): Likewise.
26989         * modules/fflush-tests (Files): Likewise.
26990         * modules/flock-tests (Files): Likewise.
26991         * modules/floorf-tests (Files): Likewise.
26992         * modules/floorl-tests (Files): Likewise.
26993         * modules/fnmatch-tests (Files): Likewise.
26994         * modules/fopen-tests (Files): Likewise.
26995         * modules/fprintf-posix-tests (Files): Likewise.
26996         * modules/freopen-tests (Files): Likewise.
26997         * modules/frexp-nolibm-tests (Files): Likewise.
26998         * modules/frexp-tests (Files): Likewise.
26999         * modules/frexpl-nolibm-tests (Files): Likewise.
27000         * modules/frexpl-tests (Files): Likewise.
27001         * modules/fseek-tests (Files): Likewise.
27002         * modules/fseeko-tests (Files): Likewise.
27003         * modules/fsync-tests (Files): Likewise.
27004         * modules/ftell-tests (Files): Likewise.
27005         * modules/ftello-tests (Files): Likewise.
27006         * modules/futimens-tests (Files): Likewise.
27007         * modules/getaddrinfo-tests (Files): Likewise.
27008         * modules/getcwd-tests (Files): Likewise.
27009         * modules/getdelim-tests (Files): Likewise.
27010         * modules/getdtablesize-tests (Files): Likewise.
27011         * modules/getgroups-tests (Files): Likewise.
27012         * modules/gethostname-tests (Files): Likewise.
27013         * modules/getline-tests (Files): Likewise.
27014         * modules/getopt-posix-tests (Files): Likewise.
27015         * modules/gettimeofday-tests (Files): Likewise.
27016         * modules/glob-tests (Files): Likewise.
27017         * modules/iconv-tests (Files): Likewise.
27018         * modules/inet_ntop-tests (Files): Likewise.
27019         * modules/inet_pton-tests (Files): Likewise.
27020         * modules/isblank-tests (Files): Likewise.
27021         * modules/lchown-tests (Files): Likewise.
27022         * modules/ldexpl-tests (Files): Likewise.
27023         * modules/link-tests (Files): Likewise.
27024         * modules/linkat-tests (Files): Likewise.
27025         * modules/lseek-tests (Files): Likewise.
27026         * modules/lstat-tests (Files): Likewise.
27027         * modules/mbrtowc-tests (Files): Likewise.
27028         * modules/mbsinit-tests (Files): Likewise.
27029         * modules/mbsnrtowcs-tests (Files): Likewise.
27030         * modules/mbsrtowcs-tests (Files): Likewise.
27031         * modules/memchr-tests (Files): Likewise.
27032         * modules/memcmp-tests (Files): Likewise.
27033         * modules/memmem-tests (Files): Likewise.
27034         * modules/memrchr-tests (Files): Likewise.
27035         * modules/mkdir-tests (Files): Likewise.
27036         * modules/mkfifo-tests (Files): Likewise.
27037         * modules/mkfifoat-tests (Files): Likewise.
27038         * modules/mknod-tests (Files): Likewise.
27039         * modules/nanosleep-tests (Files): Likewise.
27040         * modules/nl_langinfo-tests (Files): Likewise.
27041         * modules/obstack-printf-tests (Files): Likewise.
27042         * modules/open-tests (Files): Likewise.
27043         * modules/openat-tests (Files): Likewise.
27044         * modules/perror-tests (Files): Likewise.
27045         * modules/pipe2-tests (Files): Likewise.
27046         * modules/poll-tests (Files): Likewise.
27047         * modules/popen-tests (Files): Likewise.
27048         * modules/posix_spawn-tests (Files): Likewise.
27049         * modules/posix_spawnp-tests (Files): Likewise.
27050         * modules/pread-tests (Files): Likewise.
27051         * modules/printf-posix-tests (Files): Likewise.
27052         * modules/pty-tests (Files): Likewise.
27053         * modules/random_r-tests (Files): Likewise.
27054         * modules/rawmemchr-tests (Files): Likewise.
27055         * modules/readlink-tests (Files): Likewise.
27056         * modules/remove-tests (Files): Likewise.
27057         * modules/rename-tests (Files): Likewise.
27058         * modules/renameat-tests (Files): Likewise.
27059         * modules/rmdir-tests (Files): Likewise.
27060         * modules/round-tests (Files): Likewise.
27061         * modules/roundf-tests (Files): Likewise.
27062         * modules/roundl-tests (Files): Likewise.
27063         * modules/select-tests (Files): Likewise.
27064         * modules/setenv-tests (Files): Likewise.
27065         * modules/sigaction-tests (Files): Likewise.
27066         * modules/sleep-tests (Files): Likewise.
27067         * modules/snprintf-posix-tests (Files): Likewise.
27068         * modules/snprintf-tests (Files): Likewise.
27069         * modules/sprintf-posix-tests (Files): Likewise.
27070         * modules/stat-tests (Files): Likewise.
27071         * modules/strcasestr-tests (Files): Likewise.
27072         * modules/strchrnul-tests (Files): Likewise.
27073         * modules/strerror-tests (Files): Likewise.
27074         * modules/strsignal-tests (Files): Likewise.
27075         * modules/strstr-tests (Files): Likewise.
27076         * modules/strtod-tests (Files): Likewise.
27077         * modules/strverscmp-tests (Files): Likewise.
27078         * modules/symlink-tests (Files): Likewise.
27079         * modules/symlinkat-tests (Files): Likewise.
27080         * modules/times-tests (Files): Likewise.
27081         * modules/trunc-tests (Files): Likewise.
27082         * modules/truncf-tests (Files): Likewise.
27083         * modules/truncl-tests (Files): Likewise.
27084         * modules/tsearch-tests (Files): Likewise.
27085         * modules/uname-tests (Files): Likewise.
27086         * modules/unlink-tests (Files): Likewise.
27087         * modules/unsetenv-tests (Files): Likewise.
27088         * modules/usleep-tests (Files): Likewise.
27089         * modules/utimensat-tests (Files): Likewise.
27090         * modules/vasprintf-tests (Files): Likewise.
27091         * modules/vdprintf-posix-tests (Files): Likewise.
27092         * modules/vfprintf-posix-tests (Files): Likewise.
27093         * modules/vprintf-posix-tests (Files): Likewise.
27094         * modules/vsnprintf-posix-tests (Files): Likewise.
27095         * modules/vsnprintf-tests (Files): Likewise.
27096         * modules/vsprintf-posix-tests (Files): Likewise.
27097         * modules/wcrtomb-tests (Files): Likewise.
27098         * modules/wcsnrtombs-tests (Files): Likewise.
27099         * modules/wcsrtombs-tests (Files): Likewise.
27100         * modules/wcwidth-tests (Files): Likewise.
27101         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27102         * tests/test-isinf.c (isinf): Likewise.
27103         * tests/test-isnan.c (isnan): Likewise.
27104         * tests/test-signbit.c (signbit): Likewise.
27105         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27106         declaration, either as macro or with correct signature.
27107         (select): Ensure function under test is declared with correct
27108         signature in correct header.
27109         * tests/test-atexit.c (atexit): Likewise.
27110         * tests/test-btowc.c (btowc): Likewise.
27111         * tests/test-canonicalize-lgpl.c (realpath)
27112         (canonicalize_file_name): Likewise.
27113         * tests/test-ceilf1.c (ceilf): Likewise.
27114         * tests/test-ceill.c (ceill): Likewise.
27115         * tests/test-chown.c (chown): Likewise.
27116         * tests/test-dprintf-posix.c (dprintf): Likewise.
27117         * tests/test-dup2.c (dup2): Likewise.
27118         * tests/test-dup3.c (dup3): Likewise.
27119         * tests/test-duplocale.c (duplocale): Likewise.
27120         * tests/test-fchdir.c (fchdir): Likewise.
27121         * tests/test-fchownat.c (fchownat): Likewise.
27122         * tests/test-fcntl.c (fcntl): Likewise.
27123         * tests/test-fdopendir.c (fdopendir): Likewise.
27124         * tests/test-fflush.c (fflush): Likewise.
27125         * tests/test-flock.c (flock): Likewise.
27126         * tests/test-floorf1.c (floorf): Likewise.
27127         * tests/test-floorl.c (floorl): Likewise.
27128         * tests/test-fnmatch.c (fnmatch): Likewise.
27129         * tests/test-fopen.c (fopen): Likewise.
27130         * tests/test-fprintf-posix.c (fprintf): Likewise.
27131         * tests/test-freopen.c (freopen): Likewise.
27132         * tests/test-frexp.c (frexp): Likewise.
27133         * tests/test-frexpl.c (frexpl): Likewise.
27134         * tests/test-fseek.c (fseek): Likewise.
27135         * tests/test-fseeko.c (fseeko): Likewise.
27136         * tests/test-fstatat.c (fstatat): Likewise.
27137         * tests/test-fsync.c (fsync): Likewise.
27138         * tests/test-ftell.c (ftell): Likewise.
27139         * tests/test-ftello.c (ftello): Likewise.
27140         * tests/test-futimens.c (futimens): Likewise.
27141         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27142         (gai_strerror): Likewise.
27143         * tests/test-getcwd.c (getcwd): Likewise.
27144         * tests/test-getdelim.c (getdelim): Likewise.
27145         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27146         * tests/test-getgroups.c (getgroups): Likewise.
27147         * tests/test-gethostname.c (gethostname): Likewise.
27148         * tests/test-getline.c (getline): Likewise.
27149         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27150         Likewise.
27151         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27152         * tests/test-glob.c (glob, globfree): Likewise.
27153         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27154         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27155         * tests/test-inet_pton.c (inet_pton): Likewise.
27156         * tests/test-isblank.c (isblank): Likewise.
27157         * tests/test-lchown.c (lchown): Likewise.
27158         * tests/test-ldexpl.c (ldexpl): Likewise.
27159         * tests/test-link.c (link): Likewise.
27160         * tests/test-linkat.c (linkat): Likewise.
27161         * tests/test-lseek.c (lseek): Likewise.
27162         * tests/test-lstat.c (lstat): Likewise.
27163         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27164         * tests/test-mbsinit.c (mbsinit): Likewise.
27165         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27166         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27167         * tests/test-memchr.c (memchr): Likewise.
27168         * tests/test-memcmp.c (memcmp): Likewise.
27169         * tests/test-memmem.c (memmem): Likewise.
27170         * tests/test-memrchr.c (memrchr): Likewise.
27171         * tests/test-mkdir.c (mkdir): Likewise.
27172         * tests/test-mkdirat.c (mkdirat): Likewise.
27173         * tests/test-mkfifo.c (mkfifo): Likewise.
27174         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27175         * tests/test-mknod.c (mknod): Likewise.
27176         * tests/test-nanosleep.c (nanosleep): Likewise.
27177         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27178         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27179         Likewise.
27180         * tests/test-open.c (open): Likewise.
27181         * tests/test-openat.c (openat): Likewise.
27182         * tests/test-perror.c (perror): Likewise.
27183         * tests/test-pipe2.c (pipe2): Likewise.
27184         * tests/test-poll.c (poll): Likewise.
27185         * tests/test-popen.c (popen, pclose): Likewise.
27186         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27187         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27188         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27189         (posix_spawn_file_actions_destroy)
27190         (posix_spawn_file_actions_addclose)
27191         (posix_spawn_file_actions_addopen)
27192         (posix_spawn_file_actions_adddup2): Likewise.
27193         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27194         * tests/test-pread.c (pread): Likewise.
27195         * tests/test-printf-posix.c (printf): Likewise.
27196         * tests/test-pty.c (openpty, forkpty): Likewise.
27197         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27198         (random_r): Likewise.
27199         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27200         * tests/test-readlink.c (readlink): Likewise.
27201         * tests/test-remove.c (remove): Likewise.
27202         * tests/test-rename.c (rename): Likewise.
27203         * tests/test-renameat.c (renameat): Likewise.
27204         * tests/test-rmdir.c (rmdir): Likewise.
27205         * tests/test-round1.c (round): Likewise.
27206         * tests/test-roundf1.c (roundf): Likewise.
27207         * tests/test-roundl.c (roundl): Likewise.
27208         * tests/test-setenv.c (setenv): Likewise.
27209         * tests/test-sigaction.c (sigaction): Likewise.
27210         * tests/test-sleep.c (sleep): Likewise.
27211         * tests/test-snprintf.c (snprintf): Likewise.
27212         * tests/test-sprintf-posix.c (sprintf): Likewise.
27213         * tests/test-stat.c (stat): Likewise.
27214         * tests/test-stpncpy.c (stpncpy): Likewise.
27215         * tests/test-strcasestr.c (strcasestr): Likewise.
27216         * tests/test-strchrnul.c (strchrnul): Likewise.
27217         * tests/test-strerror.c (strerror): Likewise.
27218         * tests/test-strsignal.c (strsignal): Likewise.
27219         * tests/test-strstr.c (strstr): Likewise.
27220         * tests/test-strtod.c (strtod): Likewise.
27221         * tests/test-strverscmp.c (strverscmp): Likewise.
27222         * tests/test-symlink.c (symlink): Likewise.
27223         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27224         * tests/test-times.c (times): Likewise.
27225         * tests/test-trunc1.c (trunc): Likewise.
27226         * tests/test-truncf1.c (truncf): Likewise.
27227         * tests/test-truncl.c (truncl): Likewise.
27228         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27229         Likewise.
27230         * tests/test-uname.c (uname): Likewise.
27231         * tests/test-unlink.c (unlink): Likewise.
27232         * tests/test-unlinkat.c (unlinkat): Likewise.
27233         * tests/test-unsetenv.c (unsetenv): Likewise.
27234         * tests/test-usleep.c (usleep): Likewise.
27235         * tests/test-utimensat.c (utimensat): Likewise.
27236         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27237         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27238         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27239         * tests/test-vprintf-posix.c (vprintf): Likewise.
27240         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27241         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27242         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27243         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27244         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27245         * tests/test-wcwidth.c (wcwidth): Likewise.
27246
27247         build: pull in conditional headers during GNULIB_POSIXCHECK
27248         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27249         definitions from any conditionally-included headers.
27250         * lib/stdlib.in.h (includes): Likewise.
27251         * lib/unistd.in.h (includes): Likewise.
27252
27253 2009-12-24  Bruno Haible  <bruno@clisp.org>
27254
27255         * tests/test-argv-iter.c: Include header file being tested immediately
27256         after config.h.
27257         * tests/test-base64.c: Likewise.
27258         * tests/test-flock.c: Likewise.
27259         * tests/test-fsync.c: Likewise.
27260         * tests/test-getdate.c: Likewise.
27261         * tests/test-getndelim2.c: Likewise.
27262         * tests/test-isfinite.c: Likewise.
27263         * tests/test-isinf.c: Likewise.
27264         * tests/test-strerror.c: Likewise.
27265         * tests/test-strsignal.c: Likewise.
27266
27267 2009-12-23  Eric Blake  <ebb9@byu.net>
27268
27269         unistd: work around cygwin bug
27270         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27271         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27272         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27273
27274 2009-12-23  Bruno Haible  <bruno@clisp.org>
27275
27276         localename: More tests.
27277         * tests/test-localename.c (SIZEOF): New macro.
27278         (categories): New variable.
27279         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27280         test_locale_name_default): Add test w.r.t. thread locale.
27281         (test_locale_name_thread): New function.
27282         (main): Invoke it.
27283
27284         localename: Make aware of thread locale.
27285         * lib/localename.h (gl_locale_name_thread): New declaration.
27286         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27287         behaviour with respect to thread locale.
27288         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27289         <langinfo.h>, glthread/lock.h.
27290         (SIZE_BITS): New macro.
27291         (string_hash): New function.
27292         (struct hash_node): New type.
27293         (HASH_TABLE_SIZE): New macro.
27294         (struniq_hash_table, struniq_lock): New variables.
27295         (struniq): New function.
27296         (gl_locale_name_thread): New function.
27297         (gl_locale_name): Invoke it.
27298         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27299         * modules/localename (Depends-on): Add lock.
27300         Reported by Mike Gran <spk121@yahoo.com>.
27301
27302 2009-12-23  Eric Blake  <ebb9@byu.net>
27303
27304         va-args: new module
27305         * modules/va-args: New file.
27306         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27307         * MODULES.html.sh (Core language properties): Mention it.
27308
27309         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27310         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27311         named alias for __attribute__((__unused__)).
27312         * lib/chown.c: Update client.
27313         * lib/fchmodat.c: Likewise.
27314         * lib/fts.c: Likewise.
27315         * lib/getdate.y: Likewise.
27316         * lib/getgroups.c: Likewise.
27317         * lib/getopt.c: Likewise.
27318         * lib/getugroups.c: Likewise.
27319         * lib/mkdir.c: Likewise.
27320         * lib/mkfifo.c: Likewise.
27321         * lib/mkfifoat.c: Likewise.
27322         * lib/mknod.c: Likewise.
27323         * lib/mknodat.c: Likewise.
27324         * lib/readlink.c: Likewise.
27325         * lib/se-context.in.h: Likewise.
27326         * lib/se-selinux.in.h: Likewise.
27327         * lib/sockets.c: Likewise.
27328         * lib/symlink.c: Likewise.
27329         * lib/symlinkat.c: Likewise.
27330         * lib/unicodeio.c: Likewise.
27331         * lib/unistr.h: Likewise.
27332         * tests/test-areadlink.c: Likewise.
27333         * tests/test-areadlinkat.c: Likewise.
27334         * tests/test-filenamecat.c: Likewise.
27335         * tests/test-fseeko.c: Likewise.
27336         * tests/test-ftello.c: Likewise.
27337         * tests/test-getdate.c: Likewise.
27338         * tests/test-getgroups.c: Likewise.
27339         * tests/test-gethostname.c: Likewise.
27340         * tests/test-quotearg.c: Likewise.
27341         * tests/test-version-etc.c: Likewise.
27342         * tests/test-xalloc-die.c: Likewise.
27343         * tests/test-xfprintf-posix.c: Likewise.
27344         * tests/test-xprintf-posix.c: Likewise.
27345         * tests/test-xvasprintf.c: Likewise.
27346
27347         tests: avoid compiler warnings
27348         * tests/test-fcntl.c (main): Delete unused parameters.
27349         * tests/test-freopen-safer.c (main): Likewise.
27350         * tests/test-xalloc-die.c (main): Mark unused parameters.
27351         * tests/test-fseeko.c (main): Likewise.
27352         * tests/test-ftello.c (main): Likewise.
27353         * tests/test-nanosleep.c (main): Avoid declaration warning.
27354         * tests/test-sleep.c (main): Likewise.
27355         * tests/test-unsetenv.c (main): Silence warning about string
27356         literal.
27357         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27358
27359 2009-12-23  Bruno Haible  <bruno@clisp.org>
27360
27361         * tests/test-localename.c (test_locale_name): New function, extracted
27362         from main. Also test mixed situations.
27363         (test_locale_name_posix, test_locale_name_environ,
27364         test_locale_name_default): New functions.
27365         (main): Invoke them all.
27366         * modules/localename-tests (configure.ac): Test for newlocale.
27367
27368 2009-12-23  Bruno Haible  <bruno@clisp.org>
27369
27370         unistd: Ensure getcwd gets declared before being overridden.
27371         * lib/unistd.in.h: Conditionally include <io.h>.
27372
27373 2009-12-22  Bruno Haible  <bruno@clisp.org>
27374
27375         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27376         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27377         (gl_WCHAR_H): Invoke it.
27378         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27379         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27380         Reported by Karl Berry <karl@freefriends.org>.
27381
27382 2009-12-22  Eric Blake  <ebb9@byu.net>
27383
27384         math, unistd: avoid redundant includes
27385         * lib/math.in.h (isnan): No need to re-include <math.h>.
27386         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27387
27388         getsubopt: work around cygwin bug
27389         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27390         avoid conflicting with system getsubopt.
27391         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27392         bug.
27393
27394         getopt: synchronize from glibc
27395         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27396         parameter order.  Adjust all callers.
27397         (_getopt_internal_r, main): Adjust quoting in error messages.
27398         Drop considerations for outdated POSIX 1003.2 error message.
27399         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27400         callers.
27401         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27402
27403         test-getopt: test stderr behavior
27404         * modules/getopt-posix-tests (Depends-on): Add dup2.
27405         * tests/test-getopt.c (ASSERT): Avoid stderr.
27406         (main): Move stderr to a temporary file.
27407         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27408         Instead, add parameter to inform caller if output occurred.
27409         (test_getopt): Adjust all existing tests to expect silence, and
27410         add new tests of leading ":".
27411         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27412         glibc shortcomings with leading "-:" or "+:" in optstring.
27413         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27414         Likewise.
27415         * doc/posix-functions/getopt.texi (getopt): Likewise.
27416
27417         test-getopt: enhance test
27418         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27419         supports optind=0.
27420         * tests/test-getopt.c (OPTIND_MIN): Move...
27421         * tests/test-getopt.h (OPTIND_MIN): ...here.
27422         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27423         Require that optind=0 works, since modern BSD supports it in
27424         addition to optreset, and since coreutils expects it.
27425         (test_getopt_long_only): New test.
27426         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27427         glibc shortcomings with 'W;', and enforcement of optind=0.
27428         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27429         Likewise.
27430
27431 2009-12-21  Bruno Haible  <bruno@clisp.org>
27432
27433         localename: Improvements for MacOS X and Cygwin.
27434         * lib/localename.h (gl_locale_name_environ): New declaration.
27435         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27436         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27437         (gl_locale_name_posix): Invoke it.
27438         (gl_locale_name_default): Add comments. Use Windows native API also on
27439         Cygwin.
27440
27441 2009-12-21  Bruno Haible  <bruno@clisp.org>
27442
27443         Update list of Win32 locale ids.
27444         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27445         (LANG_SAMI): Renamed from LANG_SAAMI.
27446         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27447         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27448         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27449         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27450         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27451         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27452         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27453         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27454         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27455         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27456         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27457         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27458         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27459         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27460         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27461         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27462         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27463         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27464         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27465         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27466         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27467         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27468         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27469         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27470         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27471         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27472         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27473         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27474         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27475         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27476         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27477         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27478         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27479         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27480         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27481         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27482         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27483         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27484         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27485         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27486         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27487         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27488         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27489         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27490         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27491         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27492         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27493         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27494         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27495         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27496         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27497         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27498         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27499         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27500         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27501         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27502         Add more languages and countries for Sami, Sorbian. Add more countries
27503         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27504         for Pashto. Change country for Syriac, Tswana.
27505
27506 2009-12-21  Eric Blake  <ebb9@byu.net>
27507
27508         test-utimens: avoid spurious failure
27509         * tests/test-chown.h (nap): Factor...
27510         * tests/nap.h: ...into new file.
27511         * tests/test-lchown.h (nap): Avoid duplication.
27512         * tests/test-utimens-common.h (nap): Use shared implementation,
27513         necessary on file systems with 1-second resolution.
27514         * modules/chown-tests (Files): Include new file.
27515         * modules/fdutimensat-tests (Files): Likewise.
27516         * modules/futimens-tests (Files): Likewise.
27517         * modules/lchown-tests (Files): Likewise.
27518         * modules/openat-tests (Files): Likewise.
27519         * modules/utimens-tests (Files): Likewise.
27520         * modules/utimensat-tests (Files): Likewise.
27521
27522 2009-12-19  Eric Blake  <ebb9@byu.net>
27523
27524         futimens, utimensat: work around Linux bug
27525         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27526         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27527         * lib/utimensat.c (rpl_utimensat): Work around it.
27528         * lib/futimens.c (rpl_futimens): Adjust comment.
27529
27530         utimens: work around Linux ctime bug
27531         * lib/utimens.c (detect_ctime_bug): New helper function.
27532         (update_timespec): Differentiate between workaround needed for
27533         this bug vs. what is needed for systems that lack utimensat.
27534         (fdutimens, lutimens): Work around bug.
27535
27536         utimens: check for ctime update
27537         * tests/test-utimens-common.h (check_ctime): Define.
27538         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27539         * tests/test-futimens.h (test_futimens): Likewise.
27540         * tests/test-lutimens.h (test_lutimens): Likewise.
27541         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27542         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27543
27544 2009-12-19  Bruno Haible  <bruno@clisp.org>
27545
27546         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27547         * tests/test-dprintf-posix2.sh: New file.
27548         * tests/test-dprintf-posix2.c: New file.
27549         * modules/dprintf-posix-tests (Files): Add them.
27550         (configure.ac): Check for getrlimit and setrlimit.
27551         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27552
27553 2009-12-19  Bruno Haible  <bruno@clisp.org>
27554
27555         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27556         * tests/test-fprintf-posix3.sh: New file.
27557         * tests/test-fprintf-posix3.c: New file.
27558         * modules/fprintf-posix-tests (Files): Add them.
27559         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27560
27561 2009-12-19  Eric Blake  <ebb9@byu.net>
27562
27563         dirfd: fix prototype
27564         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27565         * lib/dirfd.c (dirfd): Likewise.
27566
27567         canonicalize: reduce memory usage
27568         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27569         allocation to size.
27570         Reported by Solar Designer <solar@openwall.com>.
27571
27572 2009-12-19  Bruno Haible  <bruno@clisp.org>
27573
27574         New module attribute 'Applicability'.
27575         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27576         * gnulib-tool: New option --extract-applicability.
27577         (func_usage): Document it.
27578         (sed_extract_prog): Recognize it.
27579         (func_get_applicability): New function.
27580         (func_import): Generalize handling of 'link-warning' module.
27581         * modules/link-warning (Applicability): New section.
27582         * modules/arg-nonnull (Applicability): New section.
27583         Repoted by Simon Josefsson <simon@josefsson.org>.
27584
27585 2009-12-19  Bruno Haible  <bruno@clisp.org>
27586
27587         fflush: tweak
27588         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27589         * lib/fseeko.c (rpl_fseeko): Likewise.
27590
27591 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27592
27593         * lib/gl_list.h: Fix typo in comment.
27594
27595 2009-12-16  Eric Blake  <ebb9@byu.net>
27596
27597         fcntl: use to simplify other modules
27598         * modules/cloexec (Depends-on): Add fcntl.
27599         * modules/fchdir (Depends-on): Likewise.
27600         * modules/fd-safer-flag (Depends-on): Likewise.
27601         * modules/unistd-safer (Depends-on): Likewise.
27602         * modules/dup3 (configure.ac): Set module indicator.
27603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27604         missing.
27605         * lib/fchdir.c (_gl_register_dup): Fix comment.
27606         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27607         * lib/dup-safer.c (dup_safer): Likewise.
27608         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27609         * lib/dup3.c (dup3): Likewise.
27610         * tests/test-fchdir.c (main): Enhance test.
27611         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27612
27613         fcntl: port portions of fcntl to mingw
27614         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27615         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27616         replacement for mingw.
27617         * modules/fcntl (Description): Update.
27618         (Depends-on): Add dup2.
27619         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27620         * modules/fcntl-h (Makefile.am): Substitute it.
27621         * lib/fcntl.in.h (fcntl): Update declaration.
27622         (F_DUPFD, F_GETFD): New macros, when needed.
27623         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27624         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27625         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27626         we now guarantee.
27627
27628         fcntl: work around cygwin bug in F_DUPFD
27629         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27630         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27631         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27632         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27633         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27634
27635         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27636         * modules/fcntl (Files): List new files.
27637         (configure.ac): Run a test.
27638         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27639         * lib/fcntl.c (rpl_fcntl): Likewise.
27640         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27641         (gl_FCNTL_H): Always replace fcntl.h.
27642         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27643         * lib/fcntl.in.h (fcntl): Declare replacement.
27644         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27645         needed, plus a witness.
27646         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27647         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27648         * tests/test-fcntl.c: New file.
27649         * modules/fcntl-tests: Likewise.
27650
27651         binary-io: avoid potential compilation warning
27652         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27653         directives.
27654
27655         fflush: avoid compilation error on NetBSD
27656         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27657         between off_t and fpos_t, since the latter is sometimes a struct.
27658         * lib/fseeko.c (rpl_fseeko): Likewise.
27659         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27660
27661 2009-12-15  Eric Blake  <ebb9@byu.net>
27662
27663         fcntl-h, stdio, sys_ioctl: fix declarations
27664         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27665         function must not take arguments.
27666         * lib/sys_ioctl.in.h (ioctl): Likewise.
27667         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27668         (open): Add a link warning.
27669
27670 2009-12-15  Jim Meyering  <meyering@redhat.com>
27671
27672         areadlink, areadlink-with-size: relax license to LGPLv2+
27673         * modules/areadlink (License): Relax to LGPLv2+.
27674         * modules/areadlink-with-size (License): Likewise.
27675
27676 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27677             Bruno Haible  <bruno@clisp.org>
27678
27679         *printf: Fix memory leak.
27680         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27681         * lib/vfprintf.c (vfprintf): Likewise.
27682         * lib/dprintf.c (dprintf): Likewise.
27683         * lib/vdprintf.c (vdprintf): Likewise.
27684
27685 2009-12-14  Eric Blake  <ebb9@byu.net>
27686
27687         accept4: adjust module dependencies
27688         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27689
27690         utimens: one more try at avoiding compiler warning
27691         * lib/utimens.c (lutimens): Lower scope of result.
27692
27693 2009-12-13  Bruno Haible  <bruno@clisp.org>
27694
27695         Move the malloc checking from module 'list' to new module 'xlist'.
27696         * modules/xlist: New file.
27697         * lib/gl_xlist.h: New file.
27698         * lib/gl_xlist.c: New file.
27699         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27700         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27701         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27702         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27703         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27704         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27705         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27706         gl_sortedlist_nx_add): New declarations.
27707         (struct gl_list_implementation): Rename and change methods accordingly.
27708         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27709         (gl_list_nx_create): Renamed from gl_list_create.
27710         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27711         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27712         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27713         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27714         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27715         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27716         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27717         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27718         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27719         gl_list_create_empty.
27720         (gl_list_nx_create): Renamed from gl_list_create.
27721         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27722         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27723         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27724         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27725         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27726         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27727         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27728         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27729         * lib/gl_array_list.c: Don't include xalloc.h.
27730         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27731         NULL upon out-of-memory.
27732         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27733         out-of-memory.
27734         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27735         Change return type to 'int'.
27736         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27737         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27738         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27739         upon out-of-memory.
27740         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27741         upon out-of-memory.
27742         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27743         upon out-of-memory.
27744         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27745         upon out-of-memory.
27746         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27747         out-of-memory.
27748         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27749         Update.
27750         (gl_array_list_implementation): Update.
27751         * lib/gl_carray_list.c: Don't include xalloc.h.
27752         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27753         Return NULL upon out-of-memory.
27754         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27755         out-of-memory.
27756         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27757         Change return type to 'int'.
27758         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27759         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27760         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27761         upon out-of-memory.
27762         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27763         upon out-of-memory.
27764         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27765         out-of-memory.
27766         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27767         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27768         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27769         Update.
27770         (gl_carray_list_implementation): Update.
27771         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27772         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27773         gl_linked_create_empty. Return NULL upon out-of-memory.
27774         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27775         out-of-memory.
27776         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27777         Change return type to 'int'. Return -1 upon out-of-memory.
27778         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27779         out-of-memory.
27780         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27781         upon out-of-memory.
27782         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27783         upon out-of-memory.
27784         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27785         NULL upon out-of-memory.
27786         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27787         upon out-of-memory.
27788         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27789         out-of-memory.
27790         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27791         Update.
27792         * lib/gl_linked_list.c: Don't include xalloc.h.
27793         (gl_linked_list_implementation): Update.
27794         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27795         (add_to_bucket): Change return type to 'int'.
27796         (gl_linkedhash_list_implementation): Update.
27797         * lib/gl_anytree_list1.h (free_subtree): New function.
27798         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27799         gl_tree_create_empty. Return NULL upon out-of-memory.
27800         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27801         Change return type to 'int'. Return -1 upon out-of-memory.
27802         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27803         out-of-memory.
27804         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27805         (gl_tree_remove_node): New function, moved here from
27806         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27807         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27808         Update.
27809         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27810         malloc, not xmalloc. Return NULL upon out-of-memory.
27811         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27812         out-of-memory.
27813         (gl_tree_remove_node_from_tree): New function, extracted from
27814         gl_tree_remove_node.
27815         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27816         upon out-of-memory.
27817         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27818         out-of-memory.
27819         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27820         upon out-of-memory.
27821         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27822         upon out-of-memory.
27823         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27824         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27825         not xmalloc. Return NULL upon out-of-memory.
27826         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27827         out-of-memory.
27828         (gl_tree_remove_node_from_tree): New function, extracted from
27829         gl_tree_remove_node.
27830         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27831         upon out-of-memory.
27832         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27833         out-of-memory.
27834         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27835         upon out-of-memory.
27836         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27837         upon out-of-memory.
27838         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27839         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27840         gl_anytree_list1.h before gl_anyavltree_list2.h.
27841         (gl_avltree_list_implementation): Update.
27842         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27843         gl_anytree_list1.h before gl_anyavltree_list2.h.
27844         (gl_rbtree_list_implementation): Update.
27845         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27846         Change return type to 'int'. Return -1 upon out-of-memory. Use
27847         __builtin_expect.
27848         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27849         (gl_avltreehash_list_implementation): Update.
27850         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27851         (gl_rbtreehash_list_implementation): Update.
27852         * modules/array-list (Depends-on): Remove xalloc.
27853         * modules/carray-list (Depends-on): Likewise.
27854         * modules/linked-list (Depends-on): Likewise.
27855         * modules/linkedhash-list (Depends-on): Likewise.
27856         * modules/avltree-list (Depends-on): Likewise.
27857         * modules/rbtree-list (Depends-on): Likewise.
27858         * modules/avltreehash-list (Depends-on): Likewise.
27859         * modules/rbtreehash-list (Depends-on): Likewise.
27860
27861         * modules/xsublist: New file.
27862         * lib/gl_xsublist.h: New file.
27863         * lib/gl_xsublist.c: New file.
27864         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27865         (gl_sublist_nx_create): New declaration.
27866         * lib/gl_sublist.c: Don't include xalloc.h.
27867         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27868         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27869         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27870         Change return type to 'int'. Return -1 upon out-of-memory.
27871         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27872         upon out-of-memory.
27873         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27874         NULL upon out-of-memory.
27875         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27876         upon out-of-memory.
27877         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27878         NULL upon out-of-memory.
27879         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27880         NULL upon out-of-memory.
27881         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27882         upon out-of-memory.
27883         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27884         (gl_sublist_list_implementation): Update.
27885         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27886         upon out-of-memory.
27887         * modules/sublist (Depends-on): Remove xalloc.
27888
27889         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27890         * tests/test-carray_list.c: Likewise.
27891         * tests/test-linked_list.c: Likewise.
27892         * tests/test-linkedhash_list.c: Likewise.
27893         * tests/test-avltree_list.c: Likewise.
27894         * tests/test-rbtree_list.c: Likewise.
27895         * tests/test-avltreehash_list.c: Likewise.
27896         * tests/test-rbtreehash_list.c: Likewise.
27897         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27898         * modules/carray-list-tests (Makefile.am): Likewise.
27899         * modules/linked-list-tests (Makefile.am): Likewise.
27900         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27901         * modules/avltree-list-tests (Makefile.am): Likewise.
27902         * modules/rbtree-list-tests (Makefile.am): Likewise.
27903         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27904         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27905
27906         * NEWS: Mention the changes.
27907
27908         * lib/clean-temp.c: Include gl_xlist.h.
27909         * modules/clean-temp (Depends-on): Add xlist.
27910
27911         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27912         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27913
27914         * tests/test-array_oset.c: Include gl_xlist.h.
27915         * modules/array-oset-tests (Depends-on): Add xlist.
27916
27917         Reported by José E. Marchesi <jemarch@gnu.org>.
27918
27919 2009-12-13  Bruno Haible  <bruno@clisp.org>
27920
27921         Move the malloc checking from module 'oset' to new module 'xoset'.
27922         * modules/xoset: New file.
27923         * lib/gl_xoset.h: New file.
27924         * lib/gl_xoset.c: New file.
27925         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27926         declarations.
27927         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27928         (struct gl_oset_implementation): Rename and change methods accordingly.
27929         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27930         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27931         'int'. Mark as __warn_unused_result__.
27932         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27933         gl_oset_create_empty.
27934         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27935         'int'.
27936         * lib/gl_array_oset.c: Don't include xalloc.h.
27937         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27938         malloc, not xmalloc.
27939         (grow): Change return type to 'int'. Don't call xalloc_die.
27940         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27941         to 'int'.
27942         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27943         'int'.
27944         (gl_array_oset_implementation): Update.
27945         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27946         gl_tree_create_empty.
27947         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27948         'int'.
27949         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27950         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27951         xmalloc.
27952         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27953         not xmalloc.
27954         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27955         xmalloc.
27956         (gl_avltree_oset_implementation): Update.
27957         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27958         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27959         xmalloc.
27960         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27961         not xmalloc.
27962         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27963         xmalloc.
27964         (gl_rbtree_oset_implementation): Update.
27965         * modules/array-oset (Depends-on): Remove xalloc.
27966         * modules/avltree-oset (Depends-on): Likewise.
27967         * modules/rbtree-oset (Depends-on): Likewise.
27968         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27969         * tests/test-avltree_oset.c: Likewise.
27970         * tests/test-rbtree_oset.c: Likewise.
27971         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27972         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27973         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27974         * NEWS: Mention the change.
27975
27976 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27977
27978         maint.mk: allow a project to override release-prep commands
27979         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27980         commands into a new rule.
27981         (release-prep): New rule.
27982         (release-prep-hook): New overridable variable.
27983
27984 2009-12-13  Bruno Haible  <bruno@clisp.org>
27985
27986         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27987
27988 2009-12-13  Jim Meyering  <meyering@redhat.com>
27989
27990         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27991         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27992
27993 2009-12-12  Bruno Haible  <bruno@clisp.org>
27994
27995         duplocale: Tweak.
27996         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27997
27998 2009-12-12  Karl Berry  <karl@gnu.org>
27999
28000         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28001
28002 2009-12-12  Bruno Haible  <bruno@clisp.org>
28003
28004         * m4/po.m4: Undo incorrect untabification.
28005
28006 2009-12-12  Bruno Haible  <bruno@clisp.org>
28007
28008         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28009         * modules/c-strtod (Depends-on): Add locale.
28010         * modules/c-strtold (Depends-on): Likewise.
28011
28012 2009-12-12  Bruno Haible  <bruno@clisp.org>
28013
28014         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28015
28016 2009-12-11  Eric Blake  <ebb9@byu.net>
28017
28018         setenv: relax requirement in light of POSIX ruling
28019         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28020         not NULL.
28021         * tests/test-setenv.c (main): Relax test.
28022         * tests/test-unsetenv.c (main): Likewise.
28023         * doc/posix-functions/setenv.texi (setenv): Document this.
28024         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28025
28026 2009-12-11  Bruno Haible  <bruno@clisp.org>
28027
28028         New module 'fd-safer-flag'.
28029         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28030         * lib/dup-safer.c (dup_safer_flag): Remove function.
28031         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28032         * lib/fd-safer.c (fd_safer_flag): Remove function.
28033         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28034         * modules/cloexec (configure.ac): Drop indicator macro.
28035         * modules/fd-safer-flag: New file.
28036         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28037         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28038         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28039
28040 2009-12-11  Bruno Haible  <bruno@clisp.org>
28041
28042         Tests for module 'nl_langinfo'.
28043         * modules/nl_langinfo-tests: New file.
28044         * tests/test-nl_langinfo.sh: New file.
28045         * tests/test-nl_langinfo.c: New file.
28046
28047         New module 'nl_langinfo'.
28048         * lib/nl_langinfo.c: New file.
28049         * m4/nl_langinfo.m4: New file.
28050         * modules/nl_langinfo: New file.
28051         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28052
28053 2009-12-11  Bruno Haible  <bruno@clisp.org>
28054
28055         Tests for module 'langinfo'.
28056         * modules/langinfo-tests: New file.
28057         * tests/test-langinfo.c: New file.
28058
28059         New module 'langinfo'.
28060         * lib/langinfo.in.h: New file.
28061         * m4/langinfo_h.m4: New file.
28062         * modules/langinfo: New file.
28063         * doc/posix-headers/langinfo.texi: Mention the new module.
28064
28065 2009-12-11  Bruno Haible  <bruno@clisp.org>
28066
28067         * lib/config.charset: Untabify.
28068
28069 2009-12-11  Bruno Haible  <bruno@clisp.org>
28070
28071         * modules/unistd-safer (configure.ac): Drop indicator macro.
28072
28073 2009-12-11  Bruno Haible  <bruno@clisp.org>
28074
28075         Move pipe2-safer code to its own file.
28076         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28077         * lib/pipe-safer.c (pipe2_safer): Remove function.
28078         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28079         (Makefile.am): Add it to lib_SOURCES.
28080
28081 2009-12-10  Bruno Haible  <bruno@clisp.org>
28082
28083         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28084
28085 2009-12-10  Bruno Haible  <bruno@clisp.org>
28086
28087         Declare which arguments expect non-NULL values, for GCC and clang.
28088         * build-aux/arg-nonnull.h: New file.
28089         * modules/arg-nonnull: New file.
28090         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28091         (inet_ntop, inet_pton): Use it.
28092         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28093         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28094         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28095         (open, openat): Use it.
28096         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28097         (fnmatch): Use it.
28098         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28099         (getopt, getopt_long, getopt_long_only): Use it.
28100         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28101         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28102         Use it.
28103         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28104         (iconv_open): Use it.
28105         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28106         (strtoimax, strtoumax): Use it.
28107         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28108         (duplocale): Use it.
28109         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28110         (frexp, frexpl): Use it.
28111         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28112         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28113         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28114         (tsearch, tfind, tdelete, twalk): Use it.
28115         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28116         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28117         sigpending): Use it.
28118         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28119         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28120         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28121         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28122         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28123         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28124         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28125         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28126         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28127         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28128         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28129         Use it.
28130         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28131         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28132         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28133         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28134         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28135         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28136         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28137         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28138         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28139         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28140         strtoull, unsetenv): Use it.
28141         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28142         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28143         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28144         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28145         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28146         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28147         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28148         (strcasecmp, strncasecmp): Use it.
28149         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28150         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28151         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28152         rpl_setsockopt): Use it.
28153         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28154         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28155         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28156         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28157         (gettimeofday): Use it.
28158         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28159         (times): Use it.
28160         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28161         (uname): Use it.
28162         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28163         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28164         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28165         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28166         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28167         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28168         unlinkat, write): Use it.
28169         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28170         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28171         * lib/argv-iter.h: Include arg-nonnull.h.
28172         (_ATTRIBUTE_NONNULL_): Remove macro.
28173         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28174         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28175         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28176         optimization.
28177         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28178         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28179         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28180         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28181         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28182         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28183         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28184         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28185         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28186         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28187         * modules/dirent (Depends-on): Add arg-nonnull.
28188         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28189         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28190         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28191         * modules/fnmatch (Depends-on): Add arg-nonnull.
28192         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28193         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28194         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28195         * modules/glob (Depends-on): Add arg-nonnull.
28196         (Makefile.am): Insert arg-nonnull.h into glob.h.
28197         * modules/iconv_open (Depends-on): Add arg-nonnull.
28198         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28199         * modules/inttypes (Depends-on): Add arg-nonnull.
28200         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28201         * modules/locale (Depends-on): Add arg-nonnull.
28202         (Makefile.am): Insert arg-nonnull.h into locale.h.
28203         * modules/math (Depends-on): Add arg-nonnull.
28204         (Makefile.am): Insert arg-nonnull.h into math.h.
28205         * modules/netdb (Depends-on): Add arg-nonnull.
28206         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28207         * modules/search (Depends-on): Add arg-nonnull.
28208         (Makefile.am): Insert arg-nonnull.h into search.h.
28209         * modules/signal (Depends-on): Add arg-nonnull.
28210         (Makefile.am): Insert arg-nonnull.h into signal.h.
28211         * modules/spawn (Depends-on): Add arg-nonnull.
28212         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28213         * modules/stdio (Depends-on): Add arg-nonnull.
28214         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28215         * modules/stdlib (Depends-on): Add arg-nonnull.
28216         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28217         * modules/string (Depends-on): Add arg-nonnull.
28218         (Makefile.am): Insert arg-nonnull.h into string.h.
28219         * modules/strings (Depends-on): Add arg-nonnull.
28220         (Makefile.am): Insert arg-nonnull.h into strings.h.
28221         * modules/sys_socket (Depends-on): Add arg-nonnull.
28222         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28223         * modules/sys_stat (Depends-on): Add arg-nonnull.
28224         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28225         * modules/sys_time (Depends-on): Add arg-nonnull.
28226         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28227         * modules/sys_times (Depends-on): Add arg-nonnull.
28228         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28229         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28230         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28231         * modules/time (Depends-on): Add arg-nonnull.
28232         (Makefile.am): Insert arg-nonnull.h into time.h.
28233         * modules/unistd (Depends-on): Add arg-nonnull.
28234         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28235         * modules/wchar (Depends-on): Add arg-nonnull.
28236         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28237         * modules/argv-iter (Depends-on): Add arg-nonnull.
28238         * tests/test-canonicalize.c (null_ptr): New function.
28239         (main): Use it.
28240         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28241         (main): Use it.
28242         * tests/test-memmem.c (null_ptr): New function.
28243         (main): Use it.
28244         Reported by Jim Meyering.
28245
28246 2009-12-10  Bruno Haible  <bruno@clisp.org>
28247
28248         Use spaces for indentation, not tabs.
28249         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28250         * m4/*.m4: Untabify.
28251         * build-aux/*.h: Untabify.
28252         * tests/**/*.[hc]: Untabify.
28253         * README: New section "Indent with spaces, not TABs", based on
28254         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28255         * NEWS: Mention the change.
28256
28257 2009-12-10  Bruno Haible  <bruno@clisp.org>
28258
28259         pty test: Fix link error.
28260         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28261         test_pty_LDADD.
28262
28263 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28264
28265         * modules/pty: New file.
28266         * modules/pty-tests: New file.
28267         * m4/pty.m4: New file.
28268         * tests/test-pty.c: New file.
28269         * doc/glibc-headers/pty.texi: Modified.
28270         * doc/glibc-functions/forkpty.texi: Modified.
28271         * doc/glibc-functions/openpty.texi: Modified.
28272
28273 2009-12-10  Bruno Haible  <bruno@clisp.org>
28274
28275         Avoid syntax error in C++ mode.
28276         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28277
28278 2009-12-10  Bruno Haible  <bruno@clisp.org>
28279
28280         Use sed with option -e.
28281         * gnulib-tool (func_version, func_emit_copyright_notice,
28282         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28283         option -e to sed.
28284         * modules/link-warning (Makefile.am): Likewise.
28285
28286 2009-12-10  Jim Meyering  <meyering@redhat.com>
28287
28288         mgetgroups: do not write bytes beyond end of malloc'd buffer
28289         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28290         username, we call getgroups with a one-element-shorter buffer,
28291         but still told it the length was original, max_n_groups.
28292
28293 2009-12-09  Eric Blake  <ebb9@byu.net>
28294
28295         cloexec: relax license
28296         * modules/cloexec (Maintainer): Add myself.
28297         (License): Use LGPL, not GPL.
28298
28299         link-warning: optimize generation
28300         * modules/link-warning (Makefile.am): Reduce process usage.
28301
28302 2009-12-09  Bruno Haible  <bruno@clisp.org>
28303
28304         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28305         workaround was added on 2009-11-17.
28306
28307 2009-12-09  Jim Meyering  <meyering@redhat.com>
28308             Bruno Haible  <bruno@clisp.org>
28309
28310         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28311         * modules/link-warning (Makefile.am): Make the comment-removing sed
28312         command more robust in the face of bootstrap-prepended comment lines.
28313
28314 2009-12-09  Bruno Haible  <bruno@clisp.org>
28315
28316         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28317         most one group.
28318
28319 2009-12-09  Simon Josefsson <simon@josefsson.org>
28320             Bruno Haible  <bruno@clisp.org>
28321
28322         * build-aux/link-warning.h: Add copyright notice.
28323         * modules/link-warning (Makefile.am): Generate link-warning.h from
28324         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28325         * NEWS: Mention change in link-warning module.
28326         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28327         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28328         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28329         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28330         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28331         * modules/math (Makefile.am): Add dependency to math.h.
28332         * modules/search (Makefile.am): Add dependency to search.h.
28333         * modules/signal (Makefile.am): Add dependency to signal.h.
28334         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28335         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28336         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28337         * modules/string (Makefile.am): Add dependency to string.h.
28338         * modules/strings (Makefile.am): Add dependency to strings.h.
28339         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28340         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28341         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28342         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28343         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28344         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28345         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28346         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28347         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28348
28349 2009-12-09  Bruno Haible  <bruno@clisp.org>
28350
28351         fchdir: Optimize away rpl_fstat when possible.
28352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28353         REPLACE_OPEN_DIRECTORY.
28354         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28355
28356 2009-12-09  Bruno Haible  <bruno@clisp.org>
28357
28358         * lib/fchdir.c: Update comment.
28359
28360 2009-12-09  Bruno Haible  <bruno@clisp.org>
28361
28362         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28363
28364 2009-12-08  Eric Blake  <ebb9@byu.net>
28365
28366         fchdir: avoid memory leak on re-registration.
28367         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28368
28369 2009-12-08  Jim Meyering  <meyering@redhat.com>
28370
28371         init.sh: avoid Solaris 10 /bin/sh portability problem
28372         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28373         sourced script:
28374           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28375           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28376           bar
28377         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28378         and two tests used that idiom.
28379         * tests/init.sh: Update suggested usage comments.
28380         (path_prepend_): New function, to be used in place
28381         of the --src-path=DIR option.
28382         (setup_): Move PATH-prepending code into path_prepend_.
28383         * tests/test-pread.sh: Adapt to new usage.
28384         * tests/test-xalloc-die.sh: Likewise.
28385
28386 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28387
28388         * doc/gnulib.texi (Glibc pty.h): Add.
28389         * doc/glibc-functions/forkpty.texi: Add.
28390         * doc/glibc-functions/openpty.texi: Add.
28391         Suggested by Bruno Haible.
28392
28393 2009-12-08  Eric Blake  <ebb9@byu.net>
28394
28395         fchdir: fix logic bugs
28396         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28397         * tests/test-fchdir.c (main): Enhance test.
28398         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28399         is in use.
28400
28401         dup2: fix logic bugs
28402         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28403         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28404         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28405         exists.
28406         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28407
28408 2009-12-07  Eric Blake  <ebb9@byu.net>
28409
28410         unlink: fix m4 detection
28411         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28412
28413         unistd-safer: add unit test
28414         * modules/unistd-safer-tests: New file.
28415         * tests/test-dup-safer.c: Likewise.
28416         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28417         * tests/test-dup2.c (setmode): Likewise.
28418         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28419
28420         cloexec: preserve text vs. binary across dup_cloexec
28421         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28422         mode.
28423         * modules/dup2-tests (Depends-on): Add binary-io.
28424         * modules/cloexec-tests (Depends-on): Likewise.
28425         * tests/test-dup2.c (setmode, is_mode): New helpers.
28426         (main): Add tests that translation mode is preserved.
28427         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28428         Reported by Bruno Haible.
28429
28430         mgetgroups: reduce duplicate listings
28431         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28432         resulting array.
28433         * tests/test-chown.h (test_chown): Simplify client.
28434         * tests/test-lchown.h (test_lchown): Likewise.
28435
28436 2009-12-06  Bruno Haible  <bruno@clisp.org>
28437
28438         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28439         value.
28440
28441 2009-12-06  Bruno Haible  <bruno@clisp.org>
28442
28443         * lib/progname.c: Include stdio.h, stdlib.h.
28444         (set_program_name): Reject a NULL argument.
28445
28446 2009-12-05  Eric Blake  <ebb9@byu.net>
28447
28448         pipe2-safer: new module
28449         * modules/pipe2-safer: New file.
28450         * lib/unistd-safer.h (pipe2_safer): New prototype.
28451         * lib/unistd--.h (pipe2): New wrapper.
28452         * lib/pipe-safer.c (pipe2_safer): New function.
28453         * modules/pipe (Depends-on): Add pipe2-safer.
28454         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28455
28456         stdlib-safer: preserve cloexec flag for mkostemp[s]
28457         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28458         fd_safer_flag.
28459
28460         unistd-safer: allow preservation of cloexec status via flag
28461         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28462         prototypes.
28463         * lib/dup-safer.c (dup_safer_flag): New function.
28464         * lib/fd-safer.c (fd_safer_flag): Likewise.
28465         * modules/cloexec (configure.ac): Set witness.
28466
28467         test-dup2: enhance test
28468         * modules/dup2-tests (Depends-on): Add cloexec.
28469         * tests/test-dup2.c (main): Enhance test.
28470
28471         cloexec: add dup_cloexec
28472         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28473         header and comments.
28474         * lib/cloexec.c (set_cloexec_flag): Add comments.
28475         (dup_cloexec): New function, with mingw implementation borrowed
28476         from...
28477         * lib/w32spawn.h (dup_noinherit): ...here.
28478         * modules/execute (Depends-on): Add cloexec.
28479         * modules/pipe (Depends-on): Likewise.
28480         * modules/cloexec (Depends-on): Add dup2.
28481         * modules/cloexec-tests (Files): New file.
28482         * tests/test-cloexec.c: Likewise.
28483
28484         test-xalloc-die: fix test for mingw
28485         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28486         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28487         directory and .exe suffix off argv[0] output.
28488
28489         test-fseeko: fix test for mingw
28490         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28491         than undefining fseek, so test will pass on mingw.
28492
28493 2009-12-05  Bruno Haible  <bruno@clisp.org>
28494
28495         * lib/progname.h (set_program_name): Clarify specification.
28496         * lib/progname.c (set_program_name): Likewise.
28497         Reported by Jim Meyering.
28498
28499 2009-12-05  Jim Meyering  <meyering@redhat.com>
28500
28501         maint.mk: backslash-escape parens in default regexp
28502         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28503         backslash-escape the literal parentheses.
28504
28505         maint.mk: news-date-check: use grep -E
28506         * top/maint.mk (today): Define a Make variable, not a...
28507         (news-date-check): ...shell variable.
28508         (news-date-regexp): Use the Make variable.
28509         Use grep's -E option.  Change the failing diagnostic to mention
28510         the variable, $(news-date-regexp).
28511
28512 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28513
28514         maintainer-makefile: allow customization of NEWS entry format
28515         * top/maint.mk (news-date-regexp): New overridable variable.
28516         (news-date-check): Use it.
28517
28518 2009-12-04  Eric Blake  <ebb9@byu.net>
28519
28520         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28521         * lib/mgetgroups.h (xgetgroups): New prototype.
28522         * lib/mgetgroups.c (xgetgroups): New wrapper.
28523         (mgetgroups): Handle ENOSYS.
28524         * modules/mgetgroups (Depends-on): Add realloc.
28525         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28526
28527         mgetgroups: avoid argument promotion issues with -1
28528         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28529         for invalid gid_t.
28530         * tests/test-chown.h (getegid, test_chown): Likewise.
28531         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28532
28533 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28534
28535         exclude: Fix header file problems.
28536         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28537
28538 2009-12-01  Jim Meyering  <meyering@redhat.com>
28539
28540         fts: fts_open: do not let an empty string cause immediate failure
28541         This is required in support of GNU rm, for which the command
28542         "rm A '' B" must process and remove both A and B, in spite of
28543         the empty string argument.
28544         * lib/fts.c (fts_open): Do not let the presence of an empty string
28545         cause fts_open to fail immediately.  Most fts-using tools must be
28546         able to process all arguments, in order, and can be expected to
28547         diagnose such arguments themselves.
28548
28549 2009-11-30  Eric Blake  <ebb9@byu.net>
28550
28551         utimens: fix compilation error
28552         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28553         Declare variable at right scope.
28554
28555 2009-11-29  Jim Meyering  <meyering@redhat.com>
28556
28557         bootstrap: handle perl-5.11's changed --version output
28558         * build-aux/bootstrap (get_version): Handle perl separately,
28559         since perl-5.11's --version output is different.
28560
28561 2009-11-28  Jim Meyering  <meyering@redhat.com>
28562
28563         userspec: depend on the inttostr module, too
28564         * modules/userspec (Depends-on): Add inttostr.
28565
28566         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28567         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28568         number of MAXUID when it evaluates to (uid_t) -1.
28569         Likewise for group ID.  Reported by Matt McCutchen in
28570         <http://savannah.gnu.org/bugs/?28113>
28571
28572         userspec: reformat to use spaces, not TABs
28573         * lib/userspec.c: Expand TABs to spaces.
28574         Add Emacs' "indent-tabs-mode: nil" hint.
28575
28576 2009-11-27  Eric Blake  <ebb9@byu.net>
28577
28578         getopt-gnu: flush out another BSD bug
28579         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28580         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28581         flush out BSD bug.
28582         * tests/test-getopt.h (test_getopt): End lists with NULL.
28583         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28584         (test_getopt_long_posix): Enhance test.
28585         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28586         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28587         getopt-gnu.
28588         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28589         Likewise.
28590
28591 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28592
28593         * modules/idpriv-droptemp-tests (Notice): Fix text.
28594
28595 2009-11-27  Jim Meyering  <meyering@redhat.com>
28596
28597         test-xalloc-die: avoid spurious failure due to libtool argv difference
28598         In a libtool-enabled project, this test would fail due to a difference
28599         in the emitted program name, e.g.,
28600         -test-xalloc-die: memory exhausted
28601         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28602         Use program to avoid that.
28603         * modules/xalloc-die-tests (Depends-on): Add progname.
28604         * tests/test-xalloc-die.c: Include progname.h".
28605         (program_name): Remove decl.
28606         (main): Call set_program_name.
28607         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28608
28609 2009-11-26  Richard Jones  <rjones@redhat.com>
28610
28611         w32sock: leave win32 error in place.
28612         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28613
28614 2009-11-26  Eric Blake  <ebb9@byu.net>
28615
28616         init.sh: suggest to use skip_ and fail_ functions in comments
28617         * tests/init.sh: Add a sentence.
28618
28619 2009-11-25  Bruno Haible  <bruno@clisp.org>
28620
28621         init.sh: add documentation in comments
28622         * tests/init.sh: Add some developer and user documentation.
28623
28624 2009-11-26  Jim Meyering  <meyering@redhat.com>
28625
28626         init.sh: accommodate even those who specify bogus srcdir manually
28627         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28628         configure-time tests to be sanitized, so that there is no need to
28629         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28630         (with no double quotes) suffices.  However, since tests may be
28631         invoked manually, and since you may explicitly set srcdir to the
28632         name of a directory containing spaces, do quote its uses here.
28633         * tests/test-pread.sh: Likewise.
28634         Suggested by Bruno Haible.
28635
28636         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28637         * tests/test-pread.sh: Write no data into the pipe, because
28638         test-pread actually reads none.  This avoids a diagnostic,
28639         "bash: echo: write error: Broken pipe", that arises in the unusual
28640         event something is ignoring SIGPIPE, and might be interpreted
28641         as some sort of failure.  Reported by Bruno Haible.
28642
28643 2009-11-25  Jim Meyering  <meyering@redhat.com>
28644
28645         test-pread: cover failure with ESPIPE and EINVAL
28646         * tests/test-pread.c (main): Test for failure, too.
28647         * tests/test-pread.sh: Invoke with stdin on a pipe.
28648         Suggested by Eric Blake.
28649
28650         pread: improvement and fix
28651         * modules/pread (Depends-on): Depend on lseek, for portability to
28652         e.g., mingw.  Suggested by Eric Blake.
28653         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28654
28655         unistd.in.h: correct declaration of pread
28656         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28657         Reported by Richard W.M. Jones.
28658
28659         test-pread.sh: distribute the test script
28660         * modules/pread-tests (Files): Include test-pread.sh.
28661
28662         test-pread.sh: clean up
28663         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28664         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28665         That is unnecessary, since it's always ".".
28666         Suggestion from Eric Blake.
28667
28668         test-pread.sh: make executable
28669         * tests/test-pread.sh: Set executable bit.
28670         Reported by Eric Blake.
28671
28672         correct typo in test-pread.sh
28673         * tests/test-pread.sh: Add #! line.
28674
28675         test pread
28676         * tests/test-pread.c: New file.
28677         * tests/test-pread.sh: Likewise.
28678         * modules/pread-tests: Likewise.
28679
28680         pread: new module
28681         * modules/pread: New file.
28682         * lib/unistd.in.h (pread): Define/declare.
28683         * lib/pread.c (pread): New file.
28684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28685         * modules/unistd (Makefile.am): Substitute witnesses.
28686         * doc/posix-functions/pread.texi (pread): Update.
28687         * MODULES.html.sh: Add pread.
28688
28689 2009-11-25  Jim Meyering  <meyering@redhat.com>
28690
28691         tests/init.sh: new file to be used via most *.sh tests
28692         * tests/init.sh: New file.
28693
28694 2009-11-25  Eric Blake  <ebb9@byu.net>
28695
28696         utimens: work around older Linux failure with symlinks
28697         * lib/utimens.c (lutimensat_works_really): New variable.
28698         (fdutimens, lutimens): Use it to manage kernels that support
28699         nanosecond times on files, but not on symlinks.
28700         Reported by OndÅ™ej Vašík.
28701
28702         utimes: fix configure grammar
28703         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28704
28705 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28706
28707         regex: Fix fastmap for multibyte character ranges.
28708         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28709         characters when a multibyte character range is included.
28710
28711 2009-11-22  Andy Wingo  <wingo@pobox.com>
28712
28713         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28714         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28715
28716 2009-11-24  Bruno Haible  <bruno@clisp.org>
28717
28718         doc: Most *_l functions exist in MacOS X 10.5.
28719         * doc/posix-functions/duplocale.texi: Update platforms list.
28720         * doc/posix-functions/freelocale.texi: Likewise.
28721         * doc/posix-functions/newlocale.texi: Likewise.
28722         * doc/posix-functions/uselocale.texi: Likewise.
28723         * doc/posix-functions/isalnum_l.texi: Likewise.
28724         * doc/posix-functions/isalpha_l.texi: Likewise.
28725         * doc/posix-functions/isblank_l.texi: Likewise.
28726         * doc/posix-functions/iscntrl_l.texi: Likewise.
28727         * doc/posix-functions/isdigit_l.texi: Likewise.
28728         * doc/posix-functions/isgraph_l.texi: Likewise.
28729         * doc/posix-functions/islower_l.texi: Likewise.
28730         * doc/posix-functions/isprint_l.texi: Likewise.
28731         * doc/posix-functions/ispunct_l.texi: Likewise.
28732         * doc/posix-functions/isspace_l.texi: Likewise.
28733         * doc/posix-functions/isupper_l.texi: Likewise.
28734         * doc/posix-functions/iswalnum_l.texi: Likewise.
28735         * doc/posix-functions/iswalpha_l.texi: Likewise.
28736         * doc/posix-functions/iswblank_l.texi: Likewise.
28737         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28738         * doc/posix-functions/iswctype_l.texi: Likewise.
28739         * doc/posix-functions/iswdigit_l.texi: Likewise.
28740         * doc/posix-functions/iswgraph_l.texi: Likewise.
28741         * doc/posix-functions/iswlower_l.texi: Likewise.
28742         * doc/posix-functions/iswprint_l.texi: Likewise.
28743         * doc/posix-functions/iswpunct_l.texi: Likewise.
28744         * doc/posix-functions/iswspace_l.texi: Likewise.
28745         * doc/posix-functions/iswupper_l.texi: Likewise.
28746         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28747         * doc/posix-functions/isxdigit_l.texi: Likewise.
28748         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28749         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28750         * doc/posix-functions/strcoll_l.texi: Likewise.
28751         * doc/posix-functions/strfmon_l.texi: Likewise.
28752         * doc/posix-functions/strftime_l.texi: Likewise.
28753         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28754         * doc/posix-functions/strxfrm_l.texi: Likewise.
28755         * doc/posix-functions/tolower_l.texi: Likewise.
28756         * doc/posix-functions/toupper_l.texi: Likewise.
28757         * doc/posix-functions/towctrans_l.texi: Likewise.
28758         * doc/posix-functions/towlower_l.texi: Likewise.
28759         * doc/posix-functions/towupper_l.texi: Likewise.
28760         * doc/posix-functions/wcscoll_l.texi: Likewise.
28761         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28762         * doc/posix-functions/wctrans_l.texi: Likewise.
28763         * doc/posix-functions/wctype_l.texi: Likewise.
28764         * doc/glibc-functions/strptime_l.texi: Likewise.
28765         * doc/glibc-functions/strtod_l.texi: Likewise.
28766         * doc/glibc-functions/strtof_l.texi: Likewise.
28767         * doc/glibc-functions/strtol_l.texi: Likewise.
28768         * doc/glibc-functions/strtold_l.texi: Likewise.
28769         * doc/glibc-functions/strtoll_l.texi: Likewise.
28770         * doc/glibc-functions/strtoul_l.texi: Likewise.
28771         * doc/glibc-functions/strtoull_l.texi: Likewise.
28772         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28773         * doc/glibc-functions/wcstod_l.texi: Likewise.
28774         * doc/glibc-functions/wcstof_l.texi: Likewise.
28775         * doc/glibc-functions/wcstol_l.texi: Likewise.
28776         * doc/glibc-functions/wcstold_l.texi: Likewise.
28777         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28778         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28779         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28780
28781 2009-11-24  Bruno Haible  <bruno@clisp.org>
28782
28783         duplocale: Fix logic bug.
28784         * lib/duplocale.c: Don't include <langinfo.h>.
28785         (_NL_LOCALE_NAME): Remove macro.
28786         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28787         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28788
28789 2009-11-23  Jim Meyering  <meyering@redhat.com>
28790
28791         test-update-copyright: don't hard-code /usr/bin/perl
28792         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28793         perl to print the current year.  Gilles Espinasse reported that
28794         the replaced use of perl was hard-coded as /usr/bin/perl.
28795
28796 2009-11-23  Bruno Haible  <bruno@clisp.org>
28797
28798         duplocale: Add support for glibc 2.3.x.
28799         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28800
28801 2009-11-22  Bruno Haible  <bruno@clisp.org>
28802
28803         vasnprintf: Tiny optimization.
28804         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28805         MacOS X.
28806
28807 2009-11-22  Bruno Haible  <bruno@clisp.org>
28808
28809         Tests for module 'duplocale'.
28810         * modules/duplocale-tests: New file.
28811         * tests/test-duplocale.c: New file.
28812
28813         New module 'duplocale'.
28814         * m4/duplocale.m4: New file.
28815         * lib/locale.in.h (duplocale): New declaration.
28816         * lib/duplocale.c: New file.
28817         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28818         gl_LOCALE_H_DEFAULTS): New macros.
28819         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28820         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28821         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28822         REPLACE_DUPLOCALE.
28823         * modules/duplocale: New file.
28824         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28825
28826 2009-11-22  Bruno Haible  <bruno@clisp.org>
28827
28828         * modules/locale-tests (configure.ac): Test for newlocale function.
28829         * tests/test-locale.c: When the system has extended locale functions,
28830         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28831
28832         locale: Make locale_t available when possible.
28833         * lib/locale.in.h: Include <xlocale.h> when it exists.
28834         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28835         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28836         * modules/locale (Depends-on): Add extensions.
28837         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28838         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28839
28840 2009-11-22  Bruno Haible  <bruno@clisp.org>
28841
28842         Add comments.
28843         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28844         invocation.
28845         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28846         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28847         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28848
28849 2009-11-22  Bruno Haible  <bruno@clisp.org>
28850
28851         error: account for the possibility of freopen (stdout).
28852         * lib/error.c: Include <unistd.h>.
28853         (flush_stdout): New function, extracted from error and error_at_line.
28854         Determine stdout's fd dynamically.
28855         (error, error_at_line): Invoke flush_stdout.
28856         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28857         * modules/error (Depends-on): Add unistd.
28858
28859 2009-11-22  Bruno Haible  <bruno@clisp.org>
28860
28861         diffseq: Add comment.
28862         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28863
28864 2009-11-22  Jim Meyering  <meyering@redhat.com>
28865
28866         c-stack: avoid defining an unused static function
28867         * lib/c-stack.c (find_stack_direction): Do not define this function
28868         when it will not be used.
28869
28870         diffseq: avoid spurious gcc warnings
28871         * lib/diffseq.h (IF_LINT2): Define.
28872         (compareseq): Use it to initialize two members of "part".
28873         This avoids two used-uninitialized warnings.
28874
28875 2009-11-21  Jim Meyering  <meyering@redhat.com>
28876
28877         c-stack: avoid "ignoring return value of `write'" warning
28878         * lib/c-stack.c: Include "ignore-value.h".
28879         (die): Explicitly ignore each write return value.
28880         * modules/c-stack (Depends-on): Add ignore-value.
28881
28882 2009-11-21  Bruno Haible  <bruno@clisp.org>
28883
28884         diffseq: reduce scope of variable 'best'.
28885         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28886         variable, earlier used for two different purposes.
28887
28888 2009-11-21  Jim Meyering  <meyering@redhat.com>
28889
28890         diffseq: remove useless assignment to "best"
28891         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28892         assignment.  At that point "best" is already guaranteed to be zero.
28893
28894 2009-11-20  Eric Blake  <ebb9@byu.net>
28895
28896         build: mention ftp redirector in release announcements
28897         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28898         values that used to come from cfg.mk; mention FTP redirect URL.
28899         * build-aux/announce-gen: Mention the mirror list.
28900         Suggested by Karl Berry.
28901
28902         nanosleep: improve port to mingw
28903         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28904         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28905         LIB_NANOSLEEP, but only when needed.
28906         * modules/select (Link): Document LIBSOCKET.
28907         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28908         enough.
28909
28910         nanosleep: work around cygwin bug
28911         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28912         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28913         bug.
28914         (getnow): Delete, not needed.
28915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28916         LIB_CLOCK_GETTIME.
28917         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28918         clock-time, gettime.
28919         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28920         bug.
28921         * modules/nanosleep-tests: New test.
28922         * tests/test-nanosleep.c: New file.
28923
28924         sleep: work around cygwin bug
28925         * lib/sleep.c (rpl_sleep): Work around the bug.
28926         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28927         (gl_PREREQ_SLEEP): Delete unused macro.
28928         * modules/sleep (Depends-on): Add verify.
28929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28930         * modules/unistd (Makefile.am): Substitute witness.
28931         * lib/unistd.in.h (sleep): Update prototype.
28932         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28933         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28934         * modules/sleep-tests (Depends-on): Check for alarm.
28935
28936 2009-11-20  Jim Meyering  <meyering@redhat.com>
28937
28938         maint.mk: improve sc_prohibit_magic_number_exit
28939         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28940         so it does not match uses like System.exit(1).
28941         Add comments showing how to correct all offenders.
28942
28943 2009-11-19  Eric Blake  <ebb9@byu.net>
28944
28945         xalloc-die-tests: add missing library
28946         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28947
28948         test-xvasprintf: silence compiler warnings
28949         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28950         empty string from gcc.
28951
28952 2009-11-19  Jim Meyering  <meyering@redhat.com>
28953
28954         xfreopen: new module, from coreutils
28955         * modules/xfreopen: New module.
28956         * lib/xfreopen.c: New file.
28957         * lib/xfreopen.h: New file.
28958         * MODULES.html.sh (File stream based Input/Output"): Add it.
28959
28960 2009-11-19  Eric Blake  <ebb9@byu.net>
28961
28962         manywarnings: depend on warnings
28963         * modules/manywarnings (Depends-on): Add warnings.
28964
28965         build: avoid compiler warnings
28966         * lib/select.c (rpl_select): Delete unused variable.
28967         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28968
28969 2009-11-18  Eric Blake  <ebb9@byu.net>
28970
28971         tests: avoid false negative with --with-packager
28972         * tests/test-version-etc.sh: Discard packager information.
28973         * tests/test-argp-version-etc-1.sh: Likewise.
28974         Reported by Mike Frysinger.
28975
28976         utimens: fix regression on Solaris
28977         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28978         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28979         can only change fd timestamps via futimesat.  Instead, use an
28980         additional witness macro to avoid BSD bug.
28981         Reported by Jim Meyering.
28982
28983 2009-11-17  Eric Blake  <ebb9@byu.net>
28984
28985         usleep: use it to simplify tests
28986         * modules/stat-time-tests (Depends-on): Add usleep.
28987         (configure.ac): Drop usleep check.
28988         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28989         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28990         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28991         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28992         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28993         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28994         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28995         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28996         Likewise.
28997         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28998         * tests/test-lchown.h (nap): Likewise.
28999         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29000         * tests/test-stat-time.c (nap): Likewise.
29001         * tests/test-utimens-common.h (nap): Update comments.
29002
29003         usleep: new module
29004         * modules/usleep: New file.
29005         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29006         * lib/usleep.c (usleep): Likewise.
29007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29008         * modules/unistd (Makefile.am): Substitute witnesses.
29009         * lib/unistd.in.h (usleep): Add declaration.
29010         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29011         * MODULES.html.sh (Date and time): Likewise.
29012         * modules/usleep-tests (Depends-on): New test.
29013         * tests/test-usleep.c: New file.
29014
29015         chown: work around OpenBSD bug
29016         * lib/chown.c (rpl_chown): Work around the bug.
29017         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29018         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29019         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29020         * modules/chown (Depends-on): Add stdbool.
29021         * modules/lchown (Depends-on): Likewise.
29022         * doc/posix-functions/chown.texi (chown): Document the bug.
29023         * doc/posix-functions/lchown.texi (lchown): Likewise.
29024         * tests/test-lchown.h (test_chown): Relax test.
29025
29026         mkstemp: avoid conflict with C++ keyword template
29027         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29028         * lib/mkostemp.c (mkostemp): Likewise.
29029         * lib/mkostemps.c (mkostemps): Likewise.
29030         * lib/mkstemp.c (mkstemp): Likewise.
29031         * lib/mkstemps.c (mkstemps): Likewise.
29032
29033         xalloc-die-tests: optimize
29034         * tests/test-xalloc-die.sh: Reduce number of processes.
29035
29036 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29037
29038         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29039         patch from ludo@gnu.org (Ludovic Courtès).
29040
29041 2009-11-17  Jim Meyering  <meyering@redhat.com>
29042
29043         version-etc: use proper license string
29044         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29045         * modules/version-etc-fsf: Likewise.
29046
29047 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29048
29049         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29050         printed to stdout.  Deal with EOL differences.
29051
29052 2009-11-17  Eric Blake  <ebb9@byu.net>
29053
29054         unsetenv: work around Solaris bug
29055         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29056         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29057         Reported by Jim Meyering.
29058
29059         vasnprintf: avoid compiler warnings
29060         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29061         variables.
29062         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29063
29064 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29065
29066         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29067         settings since xalloc-die is no longer the self test,
29068         xalloc-die.sh is.
29069
29070 2009-11-17  Jim Meyering  <meyering@redhat.com>
29071
29072         test-xalloc-die.sh: make the code agree with the commit log
29073         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29074         at the end, just in case you happen to have a test-xalloc-die
29075         program in some other PATH directory.
29076
29077         test-xalloc-die.sh: fix a portability bug
29078         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29079         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29080         Otherwise, argv[0] (as often seen in diagnostics) would be too
29081         system-dependent, sometimes with, and sometimes without the leading "./".
29082
29083         version-etc-fsf: relax license to LGPLv3+
29084         * modules/version-etc-fsf (License): Relax license.
29085
29086 2009-11-16  Eric Blake  <ebb9@byu.net>
29087
29088         xalloc-die-tests: avoid printing null pointer
29089         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29090         shell script.
29091         * tests/test-xalloc-die.c (program_name): Declare.
29092         * tests/test-xalloc-die.sh (tmpfiles): New file.
29093
29094         setenv, unsetenv: work around various bugs
29095         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29096         (setenv) [HAVE_SETENV]: Work around bugs.
29097         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29098         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29099         for bugs.
29100         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29101         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29103         * modules/stdlib (Makefile.am): Update substitutions.
29104         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29105         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29106         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29107         * modules/setenv-tests: New test.
29108         * modules/unsetenv-tests: Likewise.
29109         * tests/test-setenv.c: New file.
29110         * tests/test-unsetenv.c: Likewise.
29111
29112 2009-11-16  Jim Meyering  <meyering@redhat.com>
29113
29114         version-etc: relax license to LGPLv3+
29115         * modules/version-etc (License): Relax license.
29116
29117         better AC_REQUIRE expanded-before-required-warning avoidance
29118         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29119         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29120         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29121         which is no longer needed.
29122
29123 2009-11-16  Eric Blake  <ebb9@byu.net>
29124
29125         test-freading: clean up temporary file
29126         * tests/test-freading.c (main): Remove file on success, and use
29127         ASSERT more liberally.
29128         Reported by Jim Meyering.
29129
29130 2009-11-16  Jim Meyering  <meyering@redhat.com>
29131
29132         avoid new AC_REQUIRE expanded-before-required warnings
29133         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29134         merely using it.
29135         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29136         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29137
29138 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29139
29140         * tests/test-xalloc-die.c: New file.
29141         * modules/xalloc-die-tests: New file.
29142         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29143         XFAIL_TESTS so it can be appended by modules.
29144
29145 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29146
29147         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29148         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29149
29150 2009-11-14  Eric Blake  <ebb9@byu.net>
29151
29152         fnmatch: avoid compiler warning
29153         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29154         to silence compiler warning about mismatch signedness in ?:.
29155         Reported by Robert Millan.
29156
29157         intprops: add double-inclusion guard
29158         * lib/intprops.h: Allow idempotent includes.
29159         Suggested by Bruce Korb.
29160
29161         openat: detect Solaris fchownat bug
29162         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29163         penalizing glibc chownat when only lchownat is broken.
29164         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29165         trailing slash bugs.
29166         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29167         * modules/openat-tests (Files): Include more files.
29168         (Depends-on): Add mgetgroups, sleep, stat-time.
29169         (configure.ac): Add additional checks.
29170         (Makefile.am): Build new test.
29171         * tests/test-fchownat.c: New file.
29172
29173         lchown: detect Solaris and FreeBSD bug
29174         * lib/lchown.c (rpl_lchown): Work around bug.
29175         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29177         * modules/unistd (Makefile.am): Populate it.
29178         * lib/unistd.in.h (lchown): Update declaration.
29179         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29180         * modules/lchown-tests: New file.
29181         * tests/test-lchown.h (test_lchown): Likewise.
29182         * tests/test-lchown.c (main): Likewise.
29183
29184         chown: detect Solaris and FreeBSD bug
29185         * lib/chown.c (rpl_chown): Work around bug.
29186         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29187         (gl_PREREQ_CHOWN): Delete.
29188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29189         * modules/unistd (Makefile.am): Populate it.
29190         * lib/unistd.in.h (chown): Update declaration.
29191         * lib/lchown.c (chown): Update client.
29192         * modules/lchown (Depends-on): Add lstat.
29193         * doc/posix-functions/chown.texi (chown): Document the bug.
29194         * doc/posix-functions/getgroups.texi (getgroups): Document
29195         getgroups pitfall.
29196         * modules/chown-tests: New file.
29197         * tests/test-chown.h (test_chown): Likewise.
29198         * tests/test-chown.c (main): Likewise.
29199
29200 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29201
29202         gnulib-tool: correctly detect absence of m4 directories
29203         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29204
29205 2009-11-14  Jim Meyering  <meyering@redhat.com>
29206
29207         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29208         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29209
29210 2009-11-14  John W. Eaton  <jwe@gnu.org>
29211
29212         strftime.h: wrap funtion declaration in extern "C" block
29213         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29214
29215 2009-11-13  Eric Blake  <ebb9@byu.net>
29216
29217         getgroups: avoid compiler warning
29218         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29219
29220         getgroups: work around FreeBSD bug
29221         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29222         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29223         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29224         * tests/test-getgroups.c (main): Fix buffer overrun.
29225
29226         getgroups: avoid compilation failure
29227         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29228         * modules/getgroups (Depends-on): Add stdint.
29229
29230 2009-11-13  Jim Meyering  <meyering@redhat.com>
29231
29232         test-getgroups: avoid compilation failure
29233         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29234
29235 2009-11-13  Eric Blake  <ebb9@byu.net>
29236
29237         mgetgroups: new module, taken from coreutils
29238         * modules/mgetgroups: New file.
29239         * lib/mgetgroups.h: Likewise.
29240         * lib/mgetgroups.c (mgetgroups): Likewise.
29241         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29242         * MODULES.html.sh (Users and groups): Mention it.
29243
29244         getgroups: don't expose GETGROUPS_T to user
29245         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29246         an element at a time if GETGROUPS_T is wrong size.
29247         * lib/getugroups.h (getugroups): Change signature.
29248         * lib/unistd.in.h (getgroups): Likewise.
29249         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29250         signature needs fixing.
29251         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29252         AC_TYPE_GETGROUPS.
29253         * modules/group-member (Depends-on): Add getgroups.
29254         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29255         (group_member): Rely on getgroups replacement.
29256         * lib/getugroups.c (getugroups): Use gid_t.
29257         * tests/test-getgroups.c (main): Likewise.
29258         * NEWS: Mention the signature change.
29259         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29260         problem with signature.
29261         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29262         GETGROUPS_T is still useful for setgroups.
29263
29264         getgroups, getugroups: provide stubs for mingw
29265         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29266         * lib/getugroups.c (getugroups): Likewise.
29267         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29268         function.  Modernize replacement scheme.
29269         (gl_PREREQ_GETGROUPS): Delete.
29270         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29271         * modules/getgroups (configure.ac): Declare witness.
29272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29273         * modules/unistd (Depends-on): Substitute witness.
29274         * lib/unistd.in.h (getgroups): Declare replacement.
29275
29276         getgroups: avoid calling exit
29277         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29278         drop xalloc.
29279         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29280         dependencies.
29281         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29282         exiting, in the rare case of malloc failure.
29283
29284         getgroups: fix logic error
29285         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29286         has more than 20 groups.
29287         * modules/getgroups-tests: New test.
29288         * tests/test-getgroups.c: New file.
29289
29290 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29291
29292         * tests/test-base64.c: Improve.
29293
29294 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29295
29296         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29297         Blake <ebb9@byu.net>.
29298
29299 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29300
29301         * tests/test-xvasprintf.c: Add %s%s related checks.
29302
29303 2009-11-12  Eric Blake  <ebb9@byu.net>
29304
29305         version-etc: match standards.texi style
29306         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29307         and use <> only for URLs.
29308
29309 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29310
29311         fts: do not fail on a submount during traversal
29312         * lib/fts.c (fts_build): Read the stat info again after opening
29313         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29314         Original report at http://bugzilla.redhat.com/501848.
29315
29316 2009-11-12  Jim Meyering  <meyering@redhat.com>
29317
29318         bootstrap: sync from coreutils
29319         * build-aux/bootstrap (bootstrap_epilogue): New function.
29320         Use git_modules_config in one more place.  This make bootstrap's
29321         --gnulib-srcdir option more useful for testing.
29322
29323         bootstrap: generalize autoheader check
29324         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29325         AC_CONFIG_HEADERS.
29326
29327 2009-11-11  Eric Blake  <ebb9@byu.net>
29328
29329         mkfifoat: use new modules for Solaris and BSD bugs
29330         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29331         * lib/mkfifoat.c (mknodat): Split...
29332         * lib/mknodat.c (mknodat): ...into new file.
29333         * modules/mkfifoat (Files): Ship new file.
29334         (Depends-on): Add mkfifo, mknod.
29335         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29336         (Depends-on): Add symlink.
29337         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29338         redundant with test_mkfifo.h.
29339         (do_mkfifoat, do_mknodat): New helpers.
29340
29341         mknod: new module
29342         * modules/mknod: New file.
29343         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29344         * lib/mknod.c (mknod): Likewise.
29345         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29346         defaults.
29347         * modules/sys_stat (Makefile.am): Substitute them.
29348         * lib/sys_stat.in.h (mknod): Declare replacement.
29349         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29350         Document it.
29351         * doc/posix-functions/mknod.texi (mknod): Likewise.
29352         * modules/mknod-tests: New test.
29353         * tests/test-mknod.c: Likewise.
29354
29355         mkfifo: new module
29356         * modules/mkfifo: New file.
29357         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29358         * lib/mkfifo.c (mkfifo): Likewise.
29359         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29360         defaults.
29361         * modules/sys_stat (Makefile.am): Substitute them.
29362         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29363         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29364         Document it.
29365         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29366         * modules/mkfifo-tests: New test.
29367         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29368         from test-mkfifoat.c.
29369         * tests/test-mkfifo.c: New file.
29370
29371         readlink: detect FreeBSD bug
29372         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29373         slash on symlink.
29374         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29375         * tests/test-readlink.h (test_readlink): Enhance test.
29376
29377         symlink: detect FreeBSD bug
29378         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29379         slash on symlink.
29380         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29381         * tests/test-symlink.h (test_symlink): Enhance test.
29382
29383 2009-11-10  Eric Blake  <ebb9@byu.net>
29384
29385         link: detect FreeBSD bug
29386         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29387         symlink.
29388         * doc/posix-functions/link.texi (link): Document the bug.
29389         * tests/test-link.h (test_link): Enhance test.
29390         * tests/test-linkat.c (main): Update caller.
29391
29392         unlink, remove: detect FreeBSD bug
29393         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29394         slash on symlink.
29395         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29396         * doc/posix-functions/remove.texi (remove): Likewise.
29397         * tests/test-unlink.h (test_unlink): Enhance test.
29398         * tests/test-remove.c (main): Likewise.
29399
29400 2009-11-09  Eric Blake  <ebb9@byu.net>
29401
29402         rename: detect FreeBSD bug
29403         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29404         slash on symlink.
29405         * modules/renameat-tests (Depends-on): Add filenamecat.
29406         * tests/test-rename.h (test_rename): Allow one more errno.
29407         * tests/test-renameat.c (main): Likewise.
29408         * doc/posix-functions/rename.texi (rename): Document the bug.
29409
29410         open: detect FreeBSD bug
29411         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29412         symlink.
29413         * doc/posix-functions/open.texi (open): Document the bug.
29414         * doc/posix-functions/utimes.texi (utimes): Likewise.
29415         * tests/test-open.h (test_open): Add parameters, and test symlink
29416         handling.
29417         * tests/test-open.c (main): Adjust caller.
29418         * tests/test-fcntl-safer.c (main): Likewise.
29419         * modules/open-tests (Depends-on): Add stdbool, symlink.
29420         * modules/fcntl-safer-tests (Depends-on): Likewise.
29421         * tests/test-openat.c (main): Add test-open tests.
29422
29423         stat: detect FreeBSD bug
29424         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29425         symlink.
29426         * doc/posix-functions/stat.texi (stat): Document the bug.
29427         * tests/test-stat.h (test_stat_func): Add argument.
29428         * tests/test-stat.c (main): Adjust caller.
29429         * tests/test-fstatat.c (main): Likewise.
29430         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29431         Reported by Jim Meyering.
29432
29433 2009-11-09  James Youngman  <jay@gnu.org>
29434
29435         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29436         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29437
29438 2009-11-08  Jim Meyering  <meyering@redhat.com>
29439
29440         utimens: remove invalid futimesat call
29441         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29442         It used the file descriptor of the target file as the DIR_FD
29443         parameter and NULL as the file name.  That caused failure with
29444         errno == EFAULT on FreeBSD-8.0-rc2
29445
29446 2009-11-07  Eric Blake  <ebb9@byu.net>
29447
29448         fflush, freadseek: use fseeko, not fseek
29449         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29450         (clear_ungetc_buffer): Avoid potential problems on large files.
29451         * lib/freadseek.c (freadseek): Likewise.
29452         * modules/freadseek (Depends-on): Add fseeko.
29453         * modules/fseek (configure.ac): Set a witness.
29454         * tests/test-fflush.c (main): Use fseeko.
29455         * tests/test-fpurge.c (fseek): Disable link warning.
29456         * tests/test-freadable.c (fseek): Likewise.
29457         * tests/test-freading.c (fseek): Likewise.
29458         * tests/test-fseeko.c (fseek): Likewise.
29459         * tests/test-ftell.c (fseek): Likewise.
29460         * tests/test-ftello.c (fseek): Likewise.
29461         * tests/test-fwritable.c (fseek): Likewise.
29462         * tests/test-fwriting.c (fseek): Likewise.
29463
29464 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29465
29466         * modules/memchr (Depends-on): Drop getpagesize dependency.
29467
29468 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29469
29470         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29471         Reported by Ludovic Courtès.
29472         * build-aux/pmccabe2html: Improve example usage.
29473         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29474
29475 2009-11-06  Jim Meyering  <meyering@redhat.com>
29476
29477         do-release-commit-and-tag: New module.
29478         Automate the release-commit and tag process.
29479         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29480         * modules/do-release-commit-and-tag: New file.
29481         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29482
29483 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29484
29485         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29486         because test-select.c uses inet_pton.
29487
29488 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29489
29490         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29491         GETADDRINFO_LIB.  Bump serial number.
29492         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29493         Suggested by Eric Blake <ebb9@byu.net>.
29494
29495 2009-11-05  Eric Blake  <ebb9@byu.net>
29496
29497         strtod: detect darwin bug
29498         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29499         Reported by Leo Davis.
29500
29501         freopen-safer: new module
29502         * modules/freopen-safer: New module.
29503         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29504         * lib/freopen-safer.c (freopen_safer): New file.
29505         * lib/stdio-safer.h (freopen_safer): New declaration.
29506         * lib/stdio--.h (freopen): New override.
29507         * MODULES.html.sh (File stream based Input/Output): Mention it.
29508         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29509         freopen-safer module.
29510         * doc/posix-functions/stderr.texi (stderr): Likewise.
29511         * doc/posix-functions/stdin.texi (stdin): Likewise.
29512         * doc/posix-functions/stdout.texi (stdout): Likewise.
29513         * modules/freopen-safer-tests: New test.
29514         * tests/test-reopen-safer.c: New file.
29515
29516 2009-11-05  Jim Meyering  <meyering@redhat.com>
29517
29518         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29519         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29520
29521 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29522
29523         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29524
29525 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29526
29527         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29528
29529 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29530
29531         Fix link error.
29532         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29533         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29534
29535 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29536
29537         * tests/test-func.c: Also test value of __func__.
29538
29539 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29540
29541         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29542         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29543
29544 2009-11-05  Bruno Haible  <bruno@clisp.org>
29545
29546         Fix link error.
29547         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29548         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29549         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29550
29551 2009-11-05  Bruno Haible  <bruno@clisp.org>
29552
29553         Tests for module 'inet_pton'.
29554         * modules/inet_pton-tests: New file.
29555         * tests/test-inet_pton.c: New file.
29556
29557 2009-11-05  Bruno Haible  <bruno@clisp.org>
29558
29559         Tests for module 'inet_ntop'.
29560         * modules/inet_ntop-tests: New file.
29561         * tests/test-inet_ntop.c: New file.
29562
29563 2009-11-04  Eric Blake  <ebb9@byu.net>
29564
29565         stdlib-safer: wrap all mkstemp variants
29566         * modules/mkostemp (configure.ac): Set witness.
29567         * modules/mkostemps (configure.ac): Likewise.
29568         * modules/mkstemps (configure.ac): Likewise.
29569         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29570         (mkstemps_safer): Wrap more functions.
29571         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29572         wrapping.
29573         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29574         (mkstemps_safer): Implement the wrappers.
29575
29576         mkstemps, mkostemps: new modules
29577         * modules/mkostemps: New module.
29578         * modules/mkstemps: Likewise.
29579         * lib/mkostemps.c (mkostemps): New file.
29580         * lib/mkstemps.c (mkstemps): Likewise.
29581         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29582         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29584         * modules/stdlib (Makefile.am): Substitute them.
29585         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29586         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29587         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29588         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29589         * MODULES.html.sh (File system functions): Mention them.
29590
29591         tempname: resync from glibc
29592         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29593         same values for __GT_FILE as glibc.  Abort even when assertions
29594         are disabled.
29595         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29596         match its value otherwise.  Allow idempotent inclusion.
29597         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29598         * lib/mkostemp.c (mkostemp): Likewise.
29599         * lib/mkstemp.c (mkstemp): Likewise.
29600         * lib/tmpfile.c (tmpfile): Likewise.
29601         * NEWS: Document this.
29602
29603         utimens: fix use of futimens on older Linux
29604         * lib/utimens.c (fdutimens): Use updated, rather than original,
29605         timespec to avoid bug in older Linux kernel.
29606         Reported by Simon Josefsson.
29607
29608 2009-11-04  Bruno Haible  <bruno@clisp.org>
29609
29610         Make num_processors more flexible and consistent.
29611         * lib/nproc.h (enum nproc_query): New type.
29612         (num_processors): Add a 'query' argument.
29613         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29614         (num_processors): Add a 'query' argument. Test the value of the
29615         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29616         mingw, count the number of CPUs available for the current process.
29617         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29618         Check for sched_getaffinity and sched_getaffinity_np.
29619         * modules/nproc (Depends-on): Add c-ctype, extensions.
29620         * NEWS: Mention the change.
29621
29622 2009-11-03  Bruno Haible  <bruno@clisp.org>
29623
29624         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29625
29626 2009-11-03  Jim Meyering  <meyering@redhat.com>
29627
29628         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29629         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29630         if it is defined.
29631
29632 2009-11-02  Eric Blake  <ebb9@byu.net>
29633
29634         mktime, timegm: share common declaration
29635         * lib/mktime-internal.h: New file.
29636         * lib/mktime.c: Use it rather than open-coding a declaration.
29637         * lib/timegm.c: Likewise.
29638         * modules/mktime (Files): Ship it.
29639         * modules/timegm (Files): Likewise.
29640         Suggested by Bruno Haible.
29641
29642         test-update-copyright: update test to match script changes
29643         * tests/test-update-copyright.sh: Avoid hard-coding perl
29644         location.  Don't update *.bak created by earlier runs.
29645
29646 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29647             Simon Josefsson  <simon@josefsson.org>
29648             Bruno Haible  <bruno@clisp.org>
29649
29650         Fix link error on Solaris 8.
29651         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29652         also in libnsl. Define also INET_PTON_LIB.
29653         * modules/inet_pton (Link): New section.
29654
29655 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29656             Bruno Haible  <bruno@clisp.org>
29657
29658         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29659         * modules/inet_ntop (Link): New section.
29660         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29661
29662 2009-11-02  Eric Blake  <ebb9@byu.net>
29663
29664         maint: avoid compiler warnings in m4 macros
29665         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29666         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29667
29668 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29669
29670         * m4/pmccabe2html.m4: Remove file.
29671         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29672         function.  Change maintainer.
29673         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29674         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29675         Courtès).
29676
29677 2009-10-31  Eric Blake  <ebb9@byu.net>
29678
29679         fseeko: fix m4 regression
29680         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29681         regression from 2009-10-27.
29682         Reported by Ralf Wildenhues.
29683
29684 2009-10-31  Jim Meyering  <meyering@redhat.com>
29685
29686         inttostr: aesthetics and improved (compile-time) safety
29687         Define inttype_is_signed rather than inttype_is_unsigned,
29688         since the sole use is via "#if inttype_is_signed".
29689         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29690         inttype_is_unsigned.
29691         * lib/offtostr.c (inttype_is_signed): Likewise.
29692         * lib/uinttostr.c (inttype_is_signed): Likewise.
29693         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29694         * lib/inttostr.c (inttostr): Use verify to cross-check the
29695         inttype_is_signed value and the signedness of the actual type.
29696         * modules/inttostr (Depends-on): Add verify.
29697
29698 2009-10-30  Eric Blake  <ebb9@byu.net>
29699
29700         build: avoid compiler warnings
29701         * lib/fchmodat.c (lchmod): Mark unused variables.
29702         * lib/getopt.c (_getopt_initialize): Likewise.
29703         * lib/mktime.c (__mktime_internal): Provide prototype.
29704         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29705         older gcc that do not understand #pragma GCC diagnostic.
29706         * lib/uinttostr.c (inttype_is_unsigned): Define.
29707         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29708
29709 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29710
29711         stat: fix compilation on AIX
29712         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29713         only see struct stat64.
29714
29715 2009-10-30  Eric Blake  <ebb9@byu.net>
29716
29717         exclude: make more robust
29718         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29719         rather than masking a coding bug.
29720         Suggested by Bruno Haible.
29721
29722 2009-10-30  Jim Meyering  <meyering@redhat.com>
29723
29724         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29725         Rather than putting #!/usr/bin/perl on the first line,
29726         start with a variant of what's recommended by "man perlrun" that
29727         invokes the first "perl" program from your shell's search path.
29728         * build-aux/gitlog-to-changelog: Replace #!... as above.
29729         Add a "Local Variables" perl mode setting.
29730         Prompted by a patch from Ludovic Courtès.
29731         Improved by Eric Blake.
29732         * build-aux/useless-if-before-free: Likewise.
29733         * build-aux/announce-gen: Likewise.
29734         * build-aux/update-copyright: Likewise.
29735
29736 2009-10-29  Eric Blake  <ebb9@byu.net>
29737
29738         filenamecat-lgpl: adjust clients
29739         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29740         filenamecat.
29741         * modules/renameat (Depends-on): Likewise.
29742
29743         filenamecat: split into filenamecat-lgpl
29744         * modules/filenamecat-lgpl: New module.
29745         * modules/filenamecat (Files): Move library-safe files into
29746         filenamecat-lgpl.
29747         (Depends-on): Add filenamecat-lgpl.
29748         (configure.ac): Declare witness.
29749         * lib/filenamecat.h (file_name_concat): Only declare when using
29750         GPL module.
29751         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29752         Move...
29753         * lib/filenamecat-lgpl.c: ...into new file.
29754         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29755         (gl_FILE_NAME_CONCAT): Use it.
29756         * MODULES.html.sh (File system functions): Mention new module.
29757
29758         argp: avoid memory leak
29759         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29760         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29761         base_name, since the latter malloc()s and can call exit().
29762         Leak introduced 2006-07-03.
29763
29764         dirname-lgpl: adjust clients that don't need full dirname
29765         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29766         * modules/filenamecat (Depends-on): Likewise.
29767         * modules/linkat (Depends-on): Likewise.
29768         * modules/mkancesdirs (Depends-on): Likewise.
29769         * modules/mkdir (Depends-on): Likewise.
29770         * modules/openat (Depends-on): Likewise.
29771         * modules/savewd (Depends-on): Likewise.
29772         * modules/rename (Depends-on): Likewise.
29773         (License): Relax license.
29774         * modules/mkdir-tests (Depends-on): Drop progname.
29775         (Makefile.am): Delete unneeded LDADD.
29776         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29777
29778         dirname: split into dirname-lgpl
29779         * modules/dirname-lgpl: New module.
29780         * modules/dirname (Files): Move library-safe files into
29781         dirname-lgpl.
29782         (Depends-on): Add dirname-lgpl.
29783         (configure.ac): Declare witness.
29784         * modules/double-slash-root (License): Relax license.
29785         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29786         module.
29787         * lib/dirname.c (dir_len, mdir_name): Move...
29788         * lib/dirname-lgpl.c: ...into new file.
29789         * lib/basename.c (last_component, base_len): Move...
29790         * lib/basename-lgpl.c: ...into new file.
29791         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29792         (gl_DIRNAME): Use it.
29793         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29794         Mention new module.
29795         * modules/dirname-tests (Depends-on): Add progname.
29796         * tests/test-dirname.c (program_name): Delete.
29797
29798         mkdir: make safe for libraries
29799         * modules/mkdir (Depends-on): Drop xalloc.
29800         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29801         exit.
29802
29803         tests: avoid some compiler warnings
29804         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29805         literals.
29806         * tests/test-memchr.c (main): Avoid type mismatch.
29807         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29808         * tests/test-base64.c (main): Likewise.
29809         * tests/test-getdelim.c (main): Likewise.
29810         * tests/test-gethostname.c (main): Likewise.
29811         * tests/test-getline.c (main): Likewise.
29812         * tests/test-netinet_in.c (main): Likewise.
29813         * tests/test-select.c (open_server_socket, main): Likewise.
29814         * tests/test-select-stdin.c (main): Likewise.
29815         * tests/test-sockets.c (main): Likewise.
29816         * tests/test-strsignal.c (main): Likewise.
29817         * tests/test-sys_select.c (main): Likewise.
29818         * tests/test-sys_socket.c (main): Likewise.
29819         * tests/test-u64.c (main): Likewise.
29820         * tests/test-xfprintf-posix.c (main): Likewise.
29821         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29822
29823         sockets: avoid compiler warning
29824         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29825
29826         maint: detect usage(1) and other suspicious exits
29827         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29828
29829 2009-10-29  Jim Meyering  <meyering@redhat.com>
29830
29831         timespec: long-to-int truncation could make timespec_cmp malfunction
29832         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29833         a multiple of 2^32 nanoseconds as no difference.
29834
29835 2009-10-28  Jim Meyering  <meyering@redhat.com>
29836
29837         fprintftime: wrap macro code argument in "do {...} while(0)"
29838         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29839         cpy macro must be a statement that can be followed by a semicolon.
29840         Now that the else clause contains a comment and is hence longer
29841         than one line, I require curly braces.  That in turn requires
29842         that we wrap this code block in the standard do...while(0).
29843
29844         fprintftime: remove stray semicolon from previous change
29845         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29846
29847         fprintftime: avoid a warning about ignored fwrite return value
29848         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29849         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29850         that is unsafe.
29851         * modules/fprintftime (Depends-on): Add ignore-value.
29852
29853         exclude: avoid an unwarranted warning
29854         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29855
29856 2009-10-27  Eric Blake  <ebb9@byu.net>
29857
29858         fseek: avoid compilation failure when fflush is replaced
29859         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29860         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29861         module is in use.
29862         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29863         module is not in use; since REPLACE_FSEEK worked otherwise.
29864         (GNULIB_FTELLO): Likewise for ftell.
29865         Reported by Ian Beckwith and others.
29866
29867 2009-10-27  Bruno Haible  <bruno@clisp.org>
29868
29869         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29870         Reported by Jim Meyering.
29871
29872 2009-10-27  Jim Meyering  <jim@meyering.net>
29873             Bruno Haible  <bruno@clisp.org>
29874
29875         Avoid warning despite dropping the return value of fwrite.
29876         * lib/unicodeio.c: Include ignore-value.h.
29877         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29878         * modules/unicodeio (Depends-on): Add ignore-value.
29879
29880 2009-10-26  Eric Blake  <ebb9@byu.net>
29881
29882         areadlinkat: fix fallback path
29883         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29884         pointer and zero.
29885
29886 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29887
29888         Use a better IO block size for modern systems
29889         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29890         * lib/md2.c: Likewise.
29891         * lib/md4.c: Likewise.
29892         * lib/md5.c: Likewise.
29893         * lib/sha1.c: Likewise.
29894         * lib/sha256.c: Likewise.
29895         * lib/sha512.c: Likewise.
29896
29897 2009-10-22  Eric Blake  <ebb9@byu.net>
29898
29899         tests: avoid several compiler warnings
29900         * tests/test-getcwd.c (main): Avoid buffer underflow.
29901         * tests/test-getdate.c (main): String literals are not safe with
29902         putenv, so use setenv.  Declare unused argument.
29903         * modules/getdate-tests (Depends-on): Add setenv.
29904         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29905         problems with string literals in char *.
29906         * tests/test-hash.c (main): Avoid shadowing declaration.
29907         (insert_new): Treat string literals as char const *.
29908         * tests/test-getopt.h (test_getopt): Likewise.
29909         (getopt_loop): Alter types to minimize casting elsewhere.
29910         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29911         (test_getopt_long_posix): Likewise.
29912         (do_getopt_long): Add wrapper to minimize casting.
29913         * tests/test-atexit.c (clear_temp_file): Use void.
29914         * tests/test-areadlink-with-size.c (main): Declare unused
29915         arguments.
29916         * tests/test-areadlink.c (main): Likewise.
29917         * tests/test-areadlinkat-with-size.c (main): Likewise.
29918         * tests/test-areadlinkat.c (main): Likewise.
29919         * tests/test-canonicalize-lgpl.c (main): Likewise.
29920         * tests/test-canonicalize.c (main): Likewise.
29921         * tests/test-dirent-safer.c (main): Likewise.
29922         * tests/test-dirname.c (main): Likewise.
29923         * tests/test-dup2.c (main): Likewise.
29924         * tests/test-fchdir.c (main): Likewise.
29925         * tests/test-fcntl-h.c (main): Likewise.
29926         * tests/test-fcntl-safer.c (main): Likewise.
29927         * tests/test-fdopendir.c (main): Likewise.
29928         * tests/test-fdutimensat.c (main): Likewise.
29929         * tests/test-fflush.c (main): Likewise.
29930         * tests/test-filenamecat.c (main): Likewise.
29931         * tests/test-filevercmp.c (main): Likewise.
29932         * tests/test-fopen-safer.c (main): Likewise.
29933         * tests/test-fopen.c (main): Likewise.
29934         * tests/test-fpending.c (main): Likewise.
29935         * tests/test-fpurge.c (main): Likewise.
29936         * tests/test-freading.c (main): Likewise.
29937         * tests/test-fstatat.c (main): Likewise.
29938         * tests/test-fsync.c (main): Likewise.
29939         * tests/test-futimens.c (main): Likewise.
29940         * tests/test-getndelim2.c (main): Likewise.
29941         * tests/test-gettimeofday.c (main): Likewise.
29942         * tests/test-getopt.c (main): Likewise.
29943         * tests/test-i-ring.c (main): Likewise.
29944         * tests/test-inttypes.c (main): Likewise.
29945         * tests/test-link.c (main): Likewise.
29946         * tests/test-lstat.c (main): Likewise.
29947         * tests/test-math.c (main): Likewise.
29948         * tests/test-md5.c (main): Likewise.
29949         * tests/test-memchr2.c (main): Likewise.
29950         * tests/test-memrchr.c (main): Likewise.
29951         * tests/test-mkdir.c (main): Likewise.
29952         * tests/test-mkdirat.c (main): Likewise.
29953         * tests/test-mkfifoat.c (main): Likewise.
29954         * tests/test-open.c (main): Likewise.
29955         * tests/test-openat-safer.c (main): Likewise.
29956         * tests/test-openat.c (main): Likewise.
29957         * tests/test-quotearg.c (main): Likewise.
29958         * tests/test-rawmemchr.c (main): Likewise.
29959         * tests/test-readlink.c (main): Likewise.
29960         * tests/test-remove.c (main): Likewise.
29961         * tests/test-rename.c (main): Likewise.
29962         * tests/test-renameat.c (main): Likewise.
29963         * tests/test-rmdir.c (main): Likewise.
29964         * tests/test-sha1.c (main): Likewise.
29965         * tests/test-signal.c (main): Likewise.
29966         * tests/test-sigaction.c (main): Likewise.
29967         * tests/test-stat.c (main): Likewise.
29968         * tests/test-stat-time.c (main): Likewise.
29969         * tests/test-stddef.c (main): Likewise.
29970         * tests/test-stdint.c (main): Likewise.
29971         * tests/test-stdio.c (main): Likewise.
29972         * tests/test-stdlib.c (main): Likewise.
29973         * tests/test-strchrnul.c (main): Likewise.
29974         * tests/test-strerror.c (main): Likewise.
29975         * tests/test-string.c (main): Likewise.
29976         * tests/test-strtod.c (main): Likewise.
29977         * tests/test-strverscmp.c (main): Likewise.
29978         * tests/test-symlink.c (main): Likewise.
29979         * tests/test-symlinkat.c (main): Likewise.
29980         * tests/test-sys_stat.c (main): Likewise.
29981         * tests/test-sys_time.c (main): Likewise.
29982         * tests/test-time.c (main): Likewise.
29983         * tests/test-unistd.c (main): Likewise.
29984         * tests/test-unlink.c (main): Likewise.
29985         * tests/test-unlinkat.c (main): Likewise.
29986         * tests/test-utimens.c (main): Likewise.
29987         * tests/test-utimensat.c (main): Likewise.
29988         * tests/test-version-etc.c (main): Likewise.
29989         * tests/test-wchar.c (main): Likewise.
29990         * tests/test-wctype.c (main): Likewise.
29991         * tests/test-xprintf-posix.c (main): Likewise.
29992         * tests/test-posixtm.c (main): Likewise.
29993         (STREQ): Delete unused macro.
29994         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29995         shadowed variables.
29996         * tests/test-memchr.c (main): Likewise.
29997
29998 2009-10-21  Eric Blake  <ebb9@byu.net>
29999
30000         areadlinkat: avoid failure on older glibc
30001         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30002         rather than mis-comparing 0 against FUNC_RESULT of char*.
30003
30004 2009-10-21  Bruno Haible  <bruno@clisp.org>
30005
30006         * modules/stpncpy (License): Relicense under LGPLv2+.
30007         Reported by David Lutterkort <lutter@redhat.com>.
30008
30009 2009-10-20  Eric Blake  <ebb9@byu.net>
30010
30011         utimensat: work around Solaris 9 bug
30012         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30013         has trailing slash bugs.
30014         * tests/test-lutimens.h (test_lutimens): Enhance test.
30015         * tests/test-utimens.h (test_utimens): Likewise.
30016         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30017         * doc/posix-functions/utimes.texi (utimes): Likewise.
30018         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30019         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30020         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30021         * doc/posix-functions/futimens.texi (futimens): Likewise.
30022
30023         fdutimensat: new module
30024         * modules/fdutimensat: New file.
30025         * lib/fdutimensat.c (fdutimensat): Likewise.
30026         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30027         * MODULES.html.sh (File system functions): Mention module.
30028         * modules/fdutimensat-tests: New test.
30029         * tests/test-fdutimensat.c: Likewise.
30030
30031         doc: regenerate INSTALL
30032         * doc/INSTALL: Reflect recent autoconf update.
30033         * doc/INSTALL.ISO: Likewise.
30034         * doc/INSTALL.UTF-8: Likewise.
30035
30036 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30037
30038         acl: warn if ACL support is not detected
30039         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30040
30041 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30042
30043         * lib/nproc.h: Add extern "C" block for C++.
30044
30045 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30046             Bruno Haible  <bruno@clisp.org>
30047
30048         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30049         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30050         * doc/posix-functions/isalpha.texi: Likewise.
30051         * doc/posix-functions/isblank.texi: Likewise.
30052         * doc/posix-functions/iscntrl.texi: Likewise.
30053         * doc/posix-functions/isdigit.texi: Likewise.
30054         * doc/posix-functions/isgraph.texi: Likewise.
30055         * doc/posix-functions/islower.texi: Likewise.
30056         * doc/posix-functions/isprint.texi: Likewise.
30057         * doc/posix-functions/ispunct.texi: Likewise.
30058         * doc/posix-functions/isspace.texi: Likewise.
30059         * doc/posix-functions/isupper.texi: Likewise.
30060         * doc/posix-functions/isxdigit.texi: Likewise.
30061
30062 2009-10-18  Bruno Haible  <bruno@clisp.org>
30063
30064         Tests for module 'isblank'.
30065         * modules/isblank-tests: New file.
30066         * tests/test-isblank.c: New file.
30067
30068         New module 'isblank'.
30069         * lib/isblank.c: New file.
30070         * m4/isblank.m4: New file.
30071         * modules/isblank: New file.
30072         * doc/posix-functions/isblank.texi: Mention the new module.
30073
30074 2009-10-18  Bruno Haible  <bruno@clisp.org>
30075
30076         New module 'ctype'.
30077         * lib/ctype.in.h: New file.
30078         * m4/ctype.m4: New file.
30079         * modules/ctype: New file.
30080         * doc/posix-headers/ctype.texi: Mention the new module.
30081
30082 2009-10-18  Jim Meyering  <meyering@redhat.com>
30083
30084         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30085         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30086         right after its initialization, rather than farther down.
30087         Keeping these in close proximity makes it easier to ensure
30088         that each such variable is initialized.  E.g.,
30089
30090             LIB_CLOCK_GETTIME=
30091             AC_SUBST([LIB_CLOCK_GETTIME])
30092
30093         This change also increments these serial numbers.
30094         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30095         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30096         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30097
30098 2009-10-18  Bruno Haible  <bruno@clisp.org>
30099
30100         Don't let environment variables perturb build.
30101         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30102         (gl_PREREQ_GETHRXTIME): ... not here.
30103
30104 2009-10-18  Bruno Haible  <bruno@clisp.org>
30105
30106         Avoid symlink attack in localcharset module.
30107         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30108         (O_NOFOLLOW): Define fallback.
30109         (get_charset_aliases): Don't open the file if it is a symbolic link.
30110         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30111         gl_FCNTL_H.
30112         (gl_FCNTL_H): Require it.
30113         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30114         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30115         Reported by Fergal Glynn <fglynn@veracode.com>.
30116
30117 2009-10-18  Bruno Haible  <bruno@clisp.org>
30118
30119         Implement nproc for mingw.
30120         * lib/nproc.c: Include <windows.h>
30121         (num_processors): On native Windows platforms, try GetSystemInfo.
30122
30123 2009-10-18  Bruno Haible  <bruno@clisp.org>
30124
30125         Implement nproc for IRIX.
30126         * lib/nproc.c: Include <sys/sysmp.h>.
30127         (num_processors): On IRIX systems, try sysmp.
30128         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30129
30130 2009-10-18  Bruno Haible  <bruno@clisp.org>
30131
30132         Implement nproc for HP-UX.
30133         * lib/nproc.c: Include <sys/pstat.h>
30134         (num_processors): On HP-UX systems, try pstat_getdynamic.
30135         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30136         pstat_getdynamic.
30137
30138 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30139             Bruno Haible  <bruno@clisp.org>
30140
30141         Implement nproc for NetBSD, OpenBSD.
30142         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30143         (ARRAY_SIZE): New macro.
30144         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30145         * m4/nproc.m4: New file.
30146         * modules/nproc (Files): Add m4/nproc.m4.
30147         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30148         (Makefile.am): Instead, augment lib_SOURCES.
30149
30150 2009-10-18  Bruno Haible  <bruno@clisp.org>
30151
30152         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30153         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30154         sys/param.h.
30155
30156 2009-10-16  Eric Blake  <ebb9@byu.net>
30157
30158         utimensat: new module
30159         * modules/utimensat: New file.
30160         * lib/utimensat.c (utimensat): Likewise.
30161         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30162         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30163         so we can work around Linux bugs.
30164         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30165         * modules/sys_stat (Makefile.am): Substitute them.
30166         * lib/sys_stat.in.h (utimensat): Declare it.
30167         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30168         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30169         * modules/utimensat-tests: New test.
30170         * tests/test-utimensat.c: Likewise.
30171
30172         utimens: let lutimens work on non-symlinks
30173         * lib/utimens.c (lutimens): Fall back to utimens rather than
30174         failing with ENOSYS, when file is not a symlink.
30175         (utimens): Reduce redirection.
30176         * tests/test-lutimens.h (test_lutimens): Update test to cover
30177         non-symlinks.
30178         * tests/test-utimens.h (test_utimens): Update test to cover
30179         symlinks.
30180         * tests/test-utimens.c (main): Update caller.
30181
30182         utimens: cache whether utimensat syscall works
30183         * lib/utimens.c (utimensat_works_really): New cache variable.
30184         (fdutimens, lutimens): Use it to avoid failing syscall.
30185
30186         test-stat-time, test-utimens: improve portability
30187         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30188         ext4 on alpha, and for cygwin.
30189         * tests/test-utimens-common.h: New file.
30190         (nap): Factor delays into single function.
30191         * tests/test-lutimens.h (test_lutimens): Use new header.
30192         * tests/test-futimens.h (test_futimens): Likewise.
30193         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30194         timestamps to occur from same machine, as was done previously for
30195         test_utimens.
30196         * modules/utimens-tests (Files): Ship new file.
30197         * modules/futimens-tests (Files): Likewise.
30198         Reported in part by Jim Meyering.
30199
30200         sys_stat: sort replacement declarations
30201         * lib/sys_stat.in.h: Sort declarations.
30202         * lib/futimens.c (futimens): Fix typo.
30203
30204 2009-10-15  Jim Meyering  <meyering@redhat.com>
30205
30206         don't let environment settings perturb build
30207         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30208         could cause a configure-time and/or build-time malfunction.
30209         Typically, a configure-time function-in-library test is performed
30210         via code like this:
30211
30212           LIB_VAR=
30213           AC_SUBST([LIB_VAR])
30214           prefix_saved_LIBS=$LIBS
30215             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30216                        [test "$ac_cv_search_FUNC" = "none required" ||
30217                         LIB_VAR=$ac_cv_search_FUNC])
30218           LIBS=$prefix_saved_LIBS
30219
30220         However, in each of the files affected by this change, the LIB_VAR=
30221         initialization was omitted.  Thus, when set in the environment, its
30222         value would propagate into generated Makefiles when FUNC is not found
30223         in LIB_NAME.
30224         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30225         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30227
30228 2009-10-14  Eric Blake  <ebb9@byu.net>
30229
30230         fchdir: avoid infinite recursion in mingw
30231         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30232         recursing.
30233
30234         test-stat-time: port to mingw
30235         * tests/test-stat-time.c (force_unlink): Return a value.
30236         (test_ctime) [W32]: Fix compilation error.
30237         (nap): Don't call usleep with too large an argument.  Use
30238         force_unlink.
30239         * doc/pastposix-functions/usleep.texi (usleep): Document the
30240         portability issue.
30241
30242 2009-10-13  Jim Meyering  <meyering@redhat.com>
30243
30244         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30245         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30246         * modules/pipe-filter-ii: Likewise.
30247         * modules/sys_socket-tests: Likewise.
30248         * modules/tsearch-tests: Likewise.
30249         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30250         (check): Depend on it.
30251
30252 2009-10-12  Eric Blake  <ebb9@byu.net>
30253
30254         utimens-tests: port to NFS file systems
30255         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30256         comparisons to avoid spurious failures from timestamp drift
30257         between NFS machines.
30258
30259 2009-10-12  Eric Blake  <ebb9@byu.net>
30260
30261         stat-time-tests: minor cleanups
30262         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30263         * tests/test-stat-time.c (nap): Separate assignment from call.
30264         Suggested by Paolo Bonzini and Bruno Haible.
30265
30266         sys_stat: guarantee struct timespec
30267         * lib/sys_stat.in.h (includes): Always include <time.h>
30268         * modules/sys_stat (Depends-on): Add time.
30269         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30270         mode_t permission values.
30271         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30272         get at subsecond timestamps.
30273
30274 2009-10-10  Eric Blake  <ebb9@byu.net>
30275
30276         futimens: new module
30277         * modules/futimens: New file.
30278         * lib/futimens.c (futimens): Likewise.
30279         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30280         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30281         we can work around Linux bugs.
30282         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30283         * modules/sys_stat (Makefile.am): Substitute them.
30284         * lib/sys_stat.in.h (futimens): Declare it.
30285         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30286         * doc/posix-functions/futimens.texi (futimens): Likewise.
30287         * modules/futimens-tests: New test.
30288         * tests/test-futimens.c: Likewise.
30289
30290         utimens: introduce fdutimens
30291         * lib/utimens.h (fdutimens): New prototype.
30292         * lib/utimens.c (gl_futimens): Move guts...
30293         (fdutimens): ...to new interface.
30294         * tests/test-utimens.c (do_fdutimens): Use it.
30295
30296         utimens: add UTIME_NOW and UTIME_OMIT support
30297         * lib/utimens.c (validate_timespec, update_timespec): New helper
30298         functions.
30299         (gl_futimens, lutimens): Use them.
30300         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30301         stdbool, sys_stat.
30302         (Link): Mention resulting library dependency.
30303         * modules/utimecmp (Link): Likewise.
30304         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30305         (Makefile.am): Pick up library dependency.
30306         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30307         definition.
30308         * tests/test-sys_stat.c: Test the definitions.
30309         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30310         * NEWS: Document library dependency.
30311
30312         utimecmp: support symlink timestamps
30313         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30314         hashing when possible.  Use pathconf when available.
30315         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30316         * modules/utimecmp (Depends-on): Add lstat.
30317
30318         utimens: add lutimens interface
30319         * lib/utimens.c (lutimens): New function.
30320         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30321         * lib/utimens.h (lutimens): Declare new interface.
30322         * tests/test-utimens.c (main): Enhance test.
30323         * tests/test-lutimens.h (test_lutimens): New file.
30324         * modules/utimens-tests (Files): Distribute it.
30325         (Depends-on): Add symlink.
30326         (configure.ac): Check for usleep.
30327
30328         utimens: validate futimens usage
30329         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30330         fewer syscalls on failure later on.  Avoid compiler warning on
30331         mingw.
30332         * modules/utimens (Depends-on): Add dup2.
30333
30334         utimens: add test
30335         * modules/utimens-tests: New test.
30336         * tests/test-utimens.h: New file.
30337         * tests/test-futimens.h: Likewise.
30338         * tests/test-utimens.c: Likewise.
30339
30340         doc: mention timestamp portability issues
30341         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30342         instead.
30343         * doc/posix-functions/utime.texi (utime): Likewise.
30344         * doc/posix-functions/utimes.texi (utimes): Likewise.
30345         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30346         instead.
30347         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30348         module.
30349         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30350         Mention weakness with symlink timestamps.
30351         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30352         to utimensat/futimens instead.
30353         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30354
30355         test-dup2: enhance test
30356         * tests/test-dup2.c (main): Also check AT_FDCWD.
30357
30358         test-stat-time: avoid more spurious failures
30359         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30360         xfs; and avoid race if the two timestamps cross quantization edge.
30361
30362         relocatable: prefer 'file system' over 'filesystem'
30363         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30364         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30365         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30366         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30367         * lib/relocatable.c (compute_curr_prefix): Likewise.
30368
30369 2009-10-10  Jim Meyering  <meyering@redhat.com>
30370
30371         stat-time-tests: check for the usleep function
30372         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30373
30374 2009-10-10  Bruno Haible  <bruno@clisp.org>
30375
30376         * modules/xnanosleep: Put the Link section after the Include section.
30377
30378 2009-10-09  Eric Blake  <ebb9@byu.net>
30379
30380         dup2: work around FreeBSD 6.1 bug
30381         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30382         * doc/posix-functions/dup2.texi (dup2): Document it.
30383         Reported by Nelson H. F. Beebe and Jim Meyering.
30384
30385         test-stat-time: port to buggy NFS clients
30386         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30387         (test_ctime): Also skip test if mtime and ctime are skewed.
30388
30389         maint: prefer 'file system' over 'filesystem'
30390         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30391         * doc/posix-functions/lstat.texi (lstat): Likewise.
30392         * lib/file-has-acl.c (file_has_acl): Likewise.
30393         * lib/fwriteerror.c [TEST]: Likewise.
30394         * tests/test-areadlink.h (test_areadlink): Likewise.
30395         * tests/test-areadlinkat-with-size.c (main): Likewise.
30396         * tests/test-areadlinkat.c (main): Likewise.
30397         * tests/test-canonicalize-lgpl.c (main): Likewise.
30398         * tests/test-canonicalize.c (main): Likewise.
30399         * tests/test-fstatat.c (main): Likewise.
30400         * tests/test-linkat.c (main): Likewise.
30401         * tests/test-lstat.h (test_lstat_func): Likewise.
30402         * tests/test-mkdir.h (test_mkdir): Likewise.
30403         * tests/test-readlink.h (test_readlink): Likewise.
30404         * tests/test-remove.c (main): Likewise.
30405         * tests/test-rename.h (test_rename): Likewise.
30406         * tests/test-renameat.c (main): Likewise.
30407         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30408         * tests/test-symlink.h (test_symlink): Likewise.
30409         * tests/test-symlinkat.c (main): Likewise.
30410         * tests/test-unlink.h (test_unlink_func): Likewise.
30411         * tests/test-unlinkat.c (main): Likewise.
30412
30413         maint: make realtime library usage explicit
30414         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30415         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30416         * modules/settime (Link): Likewise.
30417         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30418
30419         test-stat-time: speed up execution
30420         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30421         warning on mingw.
30422         (nap): New helper function.
30423         (prepare_test): Use it to reduce sleep time.
30424         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30425         execution.
30426         * modules/stat-time-tests (configure.ac): Check for usleep.
30427
30428 2009-10-09  Jim Meyering  <meyering@redhat.com>
30429
30430         selinux-h: always use getfilecon wrappers
30431         * lib/getfilecon.c: New file.
30432         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30433         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30434         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30435         (fgetfilecon): Provide a stub.
30436         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30437         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30438         file unconditionally.
30439         When <selinux/selinux.h> is found, arrange to use wrappers.
30440         * modules/selinux-h (Files): Add getfilecon.c.
30441         (Makefile.am): Substitute include-next-related bits
30442         into the now-always-generated selinux/selinux.h file.
30443         * doc/glibc-functions/lgetfilecon.texi: New file.
30444         * doc/glibc-functions/fgetfilecon.texi: New file.
30445         * doc/glibc-functions/getfilecon.texi: New file.
30446         * doc/glibc-functions/getfilecon-desc.texi: New file.
30447         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30448         which to pull in the new files.
30449         * MODULES.html.sh (Misc): Add selinux-h.
30450
30451 2009-10-08  Jim Meyering  <meyering@redhat.com>
30452
30453         unistd: fix comment typo
30454         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30455
30456 2009-10-08  Eric Blake  <ebb9@byu.net>
30457
30458         areadlink: use SIZE_MAX consistently
30459         * modules/areadlink (Depends-on): Add stdint.
30460         * modules/areadlink-with-size (Depends-on): Likewise.
30461         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30462         gives NULL; drop sys/types, since unistd gives size_t; and add
30463         stdint for SIZE_MAX.
30464         (SIZE_MAX): Rely on headers.
30465         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30466         and add stdint.
30467         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30468         (SIZE_MAX): Likewise.
30469         (INITIAL_BUF_SIZE): Turn into enum.
30470         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30471
30472 2009-10-08  Jim Meyering  <meyering@redhat.com>
30473
30474         areadlinkat: avoid compilation failure
30475         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30476         Fix typo in comment.
30477
30478 2009-10-07  Eric Blake  <ebb9@byu.net>
30479
30480         areadlinkat-with-size: new module
30481         * modules/areadlinkat-with-size: New module.
30482         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30483         * lib/areadlink.h (areadlinkat): Declare it.
30484         * MODULES.html.sh (File system functions): Mention it.
30485         * modules/areadlinkat-with-size-tests: New test.
30486         * tests/test-areadlinkat-with-size.c: New file.
30487
30488         xreadlinkat: new module
30489         * modules/xreadlinkat: New module.
30490         * lib/xreadlinkat.c (xreadlinkat): New file.
30491         * lib/xreadlink.h (xreadlinkat): Declare it.
30492         * MODULES.html.sh (File system functions): Mention it.
30493
30494         areadlinkat: new module
30495         * lib/at-func.c (FUNC_FAIL): New define.
30496         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30497         * modules/areadlinkat: New module.
30498         * lib/linkat.c (areadlinkat): Move...
30499         * lib/areadlinkat.c (areadlinkat): ...to new file.
30500         * lib/areadlink.h (areadlinkat): Declare it.
30501         * modules/linkat (Depends-on): Add areadlinkat.
30502         * MODULES.html.sh (File system functions): Mention it.
30503         * modules/areadlinkat-tests: New test.
30504         * tests/test-areadlinkat.c: New file.
30505
30506         areadlink, areadlink-with-size: add tests
30507         * modules/areadlink-tests: New test.
30508         * modules/areadlink-with-size-tests: Likewise.
30509         * tests/test-areadlink.h: New file.
30510         * tests/test-areadlink.c: Likewise.
30511         * tests/test-areadlink-with-size.c: Likewise.
30512
30513         maint: minor cleanups
30514         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30515         _UNUSED_PARAMETER_ instead.
30516         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30517         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30518         * modules/linkat-tests (Files): Distribute test-link.h.
30519
30520         openat, utimens: whitespace cleanup
30521         * lib/openat.c: Prefer space throughout, rather than mix of 8
30522         spaces vs. tabs.
30523         * lib/at-func.c: Likewise.
30524         * lib/utimens.c: Likewise.
30525
30526         openat: avoid using wrong fd
30527         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30528         working directory chooses same fd.
30529         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30530
30531         mkdir, mkdirat: fix cygwin 1.5.x bug
30532         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30533         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30534         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30535         bug.
30536         (gl_PREREQ_MKDIR): Delete unused macro.
30537         * modules/mkdir (Files): Track file rename.
30538         (configure.ac): Update macro name.
30539         * modules/openat (Depends-on): Add mkdir.
30540         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30541
30542         mkdir, mkdirat: add tests
30543         * modules/mkdir-tests: New test.
30544         * tests/test-mkdir.h: New file.
30545         * tests/test-mkdir.c: Likewise.
30546         * tests/test-mkdirat.c: Likewise.
30547         * modules/openat-tests (Files): Add new files.
30548         (Makefile.am): Run new test.
30549
30550 2009-10-06  Eric Blake  <ebb9@byu.net>
30551
30552         doc: tweak *at function documentation
30553         * doc/posix-functions/faccessat.texi (faccessat): Mention
30554         known issue with replacement.
30555         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30556         * doc/posix-functions/linkat.texi (linkat): Likewise.
30557         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30558         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30559         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30560         * doc/posix-functions/renameat.texi (renameat): Likewise.
30561         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30562
30563         openat: fix GNU/Hurd bug in unlinkat
30564         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30565         broken.
30566         * doc/posix-functions/unlink.texi (unlink): Document this.
30567         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30568
30569         fdopendir: fix GNU/Hurd bug
30570         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30571         allowing non-directory fds.
30572         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30573         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30574         * modules/dirent (Makefile.am): Substitute it.
30575         * lib/dirent.in.h (fdopendir): Declare replacement.
30576         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30577         * tests/test-fdopendir.c (main): Test something other than
30578         /dev/null, since on Hurd that behaves like a directory.
30579
30580         test-symlink: port to GNU/Hurd
30581         * tests/test-symlink.h (test_symlink): Relax expected errno.
30582
30583         doc: tweak more cygwin information
30584         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30585         now compatible with glibc.
30586         * doc/posix-functions/getopt.texi (getopt): Likewise.
30587
30588         getopt-gnu: add another test
30589         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30590         guarantee behavior relied on by m4.
30591         * tests/test-getopt.c (main): Use it.
30592         * modules/getopt-posix-tests (Depends-on): Add setenv.
30593         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30594
30595         getopt: fix compilation on darwin
30596         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30597         include.
30598         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30599         Reported by Ludovic Courtès.
30600
30601 2009-10-06  Bruno Haible  <bruno@clisp.org>
30602
30603         * modules/size_max (Description): Discourage its use.
30604         Reported by Simon Josefsson.
30605
30606 2009-10-06  Jim Meyering  <meyering@redhat.com>
30607
30608         linkat: avoid compilation failure
30609         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30610
30611 2009-10-05  Eric Blake  <ebb9@byu.net>
30612
30613         linkat: support Linux 2.6.17
30614         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30615         linkat on Linux, but allow cache variable override.
30616         * lib/linkat.c (rpl_linkat): Define override.
30617         * modules/linkat (Depends-on): Add symlinkat.
30618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30619         * modules/unistd (Makefile.am): Substitute it.
30620         * lib/unistd.in.h (linkat): Declare replacement.
30621         Reported by Pádraig Brady.
30622
30623         quotearg: port test to systems with C.UTF-8 locale
30624         * tests/test-quotearg.c (struct result_strings): Add another
30625         member, differentiating between C.ASCII and C.UTF-8 handling.
30626         (compare_strings): Add parameter.
30627         (main): Adjust all callers.
30628
30629         getopt: avoid clash with FreeBSD _getopt_internal
30630         * lib/getopt.in.h (_getopt_internal): Override the name.
30631         * lib/getopt_int.h (includes): Pick up any overrides.
30632         Reported by Reuben Thomas.
30633
30634         hash: allow C89 compilation
30635         * lib/hash.c (check_tuning): Move declaration before statement.
30636         Reported by Reuben Thomas.
30637
30638 2009-10-05  Karl Berry  <karl@gnu.org>
30639
30640         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30641
30642 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30643             Bruno Haible  <bruno@clisp.org>
30644
30645         * lib/uname.c (uname): Use a table-driven algorithm to compute
30646         Windows NT versions.
30647
30648 2009-10-04  Bruno Haible  <bruno@clisp.org>
30649
30650         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30651         program_invocation_short_name.
30652         * modules/progname (configure.ac): Test for presence of
30653         program_invocation_short_name.
30654         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30655
30656 2009-10-04  Bruno Haible  <bruno@clisp.org>
30657
30658         * lib/progname.c (set_program_name): Fix comment.
30659         Reported by Jim Meyering.
30660
30661 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30662             Bruno Haible  <bruno@clisp.org>
30663
30664         * lib/uname.c: Include <string.h>.
30665         (uname): Do only one call to GetVersionEx in the common case.
30666
30667 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30668             Bruno Haible  <bruno@clisp.org>
30669
30670         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30671         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30672         (uname): Add support for Windows CE and various non-x86 CPU types.
30673
30674 2009-10-03  Bruno Haible  <bruno@clisp.org>
30675
30676         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30677         invocation to tests/configure.ac.
30678         Reported by Ian Beckwith <ianb@erislabs.net>.
30679
30680 2009-10-02  Eric Blake  <ebb9@byu.net>
30681
30682         fchdir: avoid compiler warning
30683         * lib/fchdir.c (canonicalize_file_name)
30684         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30685
30686         test-open: support mingw errno values
30687         * tests/test-open.h (test_open): Relax test.
30688         * tests/test-fopen.h (test_fopen): Likewise.
30689         * tests/test-openat-safer.c (main): Likewise.
30690
30691         open: fix opening directory on mingw
30692         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30693
30694         test-open: on GNU/Hurd, /dev/null is a directory
30695         * tests/test-fopen.h (main): Rename...
30696         (test_fopen): ...to this.  Use a guaranteed non-directory when
30697         confirming open behavior on trailing slash.
30698         * tests/test-openat-safer.c (main): Likewise.
30699         * tests/test-open.h (main): Likewise....
30700         (test_open): ...to this.
30701         * tests/test-fopen.c (main): Adjust caller.
30702         * tests/test-fopen-safer.c (main): Likewise.
30703         * tests/test-open.c (main): Likewise.
30704         * tests/test-fcntl-safer.c (main): Likewise.
30705         Reported by Samuel Thibault.
30706
30707         rename, fchdir: don't ignore chdir failure
30708         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30709         * lib/rename.c (rpl_rename) [W32]: Likewise.
30710         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30711         an empty destination directory if source cannot be renamed,
30712         although there is still possibility for failure.
30713         * doc/posix-functions/rename.texi (rename): Document the race.
30714         Reported by Jim Meyering.
30715
30716         maint: cleanup whitespace in recent commits
30717         * lib/rename.c (rpl_rename): Remove tabs.
30718         * tests/test-link.h (test_link): Likewise.
30719         * lib/fchdir.c (get_name): Likewise.
30720         Reported by Jim Meyering.
30721
30722 2009-10-02  Ben Pfaff  <blp@gnu.org>
30723
30724         relocatable-prog-wrapper: Add missing dependency on
30725         double-slash-root.
30726         * modules/relocatable-prog-wrapper: Add dependency.
30727         Reported by Ian Beckwith <ianb@erislabs.net>.
30728
30729 2009-10-02  Eric Blake  <ebb9@byu.net>
30730
30731         renameat: fix Solaris bugs
30732         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30733         needed fixing.
30734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30735         * modules/stdio (Makefile.am): Substitute it.
30736         * lib/stdio.in.h (renameat): Declare replacement.
30737         * lib/renameat.c (rpl_renameat): Implement fix.
30738
30739         renameat: new module
30740         * modules/renameat: New file.
30741         * lib/renameat.c (renameat): Likewise.
30742         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30744         * modules/stdio (Makefile.am): Substitute them.
30745         * lib/stdio.in.h (renameat): Declare it.
30746         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30747         * doc/posix-functions/renameat.texi (renameat): Likewise.
30748         * modules/renameat-tests: New test.
30749         * tests/test-renameat.c: Likewise.
30750
30751         rename: fix mingw bugs
30752         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30753         directory overwrite bugs.
30754
30755         rename: fix another cygwin 1.5 bug
30756         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30757         checks.
30758         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30759         unnecessary cygwin workarounds.  Also work around bug with moving
30760         full directory onto an empty one.
30761         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30762
30763         rename-dest-slash: merge into rename module
30764         * modules/rename-dest-slash (Status): Mark obsolete.
30765         (Depends-on): Add rename.
30766         (Files): Let rename do it all.
30767         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30768         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30769         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30770         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30771         * lib/rename.c (rpl_rename): Update comments.
30772
30773         rename: fix cygwin 1.5.x bugs
30774         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30775         * lib/rename.c (rpl_rename): Work around them.
30776         * modules/rename (Depends-on): Add same-inode.
30777
30778         rename: fix Solaris 10 bug
30779         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30780         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30781         was the only bug.
30782
30783         rename: fix Solaris 9 bug
30784         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30785         on non-directory.  Avoid calling exit.
30786         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30787         strdup.
30788         * modules/rename-tests (Depends-on): Drop lstat.
30789         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30790         (gl_PREREQ_RENAME): Delete unused macro.
30791
30792         rename-dest-slash: fix NetBSD bug
30793         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30794         links.
30795         * modules/rename-dest-slash (Depends-on): Add same-inode.
30796
30797         rename-tests: new test, exposes several platform bugs
30798         * modules/rename-tests: New file.
30799         * tests/test-rename.h: Likewise.
30800         * tests/test-rename.c: Likewise.
30801         * doc/posix-functions/rename.texi (rename): Improve documentation,
30802         including bugs that will eventually be fixed in gnulib.
30803
30804 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30805
30806         * lib/uname.c: Include <stdlib.h>
30807         (uname): Assume version info is available.
30808
30809 2009-10-02  Jim Meyering  <meyering@redhat.com>
30810
30811         gnu-web-doc-update: correct --help output
30812         * build-aux/gnu-web-doc-update: Make --help output relevant.
30813
30814         gnu-web-doc-update: add standard options
30815         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30816
30817         gnu-web-doc-update: New module.
30818         Use this script to automatically update the on-line web documentation
30819         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30820         * modules/gnu-web-doc-update: New file, from coreutils.
30821         * build-aux/gnu-web-doc-update: New script.
30822
30823 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30824
30825         link: LoadLibrary is not needed.
30826         * lib/link.c: Use GetModuleHandle.
30827
30828 2009-10-01  Eric Blake  <ebb9@byu.net>
30829
30830         getopt: bump serial number
30831         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30832         change.
30833
30834         tests: tighten link, rmdir, and remove tests
30835         * tests/test-link.h (includes): No need to use <config.h> here.
30836         Clean up if directory hard link was created, otherwise test for
30837         trailing '.'.
30838         * tests/test-linkat.c (main): Simplify.
30839         * tests/test-remove.c (main): Enhance test for trailing '.'.
30840         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30841
30842 2009-10-01  Jim Meyering  <meyering@redhat.com>
30843
30844         maint.mk: requiring "make major" was annoying, for a "minor" release.
30845         What is intended is "stable", to contrast with alpha and beta,
30846         so require "make stable", not "make major".
30847         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30848         (get_tool_versions): Likewise.
30849         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30850
30851 2009-09-30  Ben Pfaff  <blp@gnu.org>
30852
30853         Fix broken build of replacement for Windows tmpfile().
30854         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30855         flags argument added along with the 'mkostemp' module.
30856
30857 2009-09-28  Bruno Haible  <bruno@clisp.org>
30858
30859         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30860         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30861         to 'remove_elt'.
30862         (gl_list_remove): Update.
30863         * lib/gl_list.c (gl_list_remove): Update.
30864         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30865         to 'remove_elt'.
30866         (gl_oset_remove): Update.
30867         * lib/gl_list.c (gl_oset_remove): Update.
30868         Reported by Eric Blake.
30869
30870 2009-09-28  Eric Blake  <ebb9@byu.net>
30871
30872         doc: mention yet more cygwin 1.7 status
30873         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30874         cygwin.
30875         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30876         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30877
30878         argp: fix test failure
30879         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30880         that are not upper-case.  Pass correct range to tolower.
30881
30882 2009-09-27  Jim Meyering  <meyering@redhat.com>
30883
30884         test-yesno: work around sparc-dash here-document infelicity
30885         Without this change, the literal \177 byte in a here document
30886         would make dash 0.5.5.1-3 access uninitialized memory.
30887         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30888         Instead, use a marker, "@", and filter through tr to create the desired
30889         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30890
30891 2009-09-27  Bruno Haible  <bruno@clisp.org>
30892
30893         Disable untested support for new flavours of ACLs on AIX.
30894         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30895         progress.
30896         * lib/set-mode-acl.c (qset_acl): Likewise.
30897
30898 2008-12-07  Bruno Haible  <bruno@clisp.org>
30899
30900         Add support for new flavours of ACLs on AIX. (Untested.)
30901         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30902         (file_has_acl): Add support for newer AIX.
30903         * lib/set-mode-acl.c (qset_acl): Likewise.
30904         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30905         Rainer Tammer <tammer@tammer.net>.
30906
30907 2009-09-26  Eric Blake  <ebb9@byu.net>
30908
30909         argp: fix compilation of getopt
30910         * lib/getopt.in.h (includes): Use different guard than glibc.
30911         Reported by Sergey Poznyakoff.
30912
30913         doc: mention more cygwin 1.7 status
30914         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30915         bug.
30916         * doc/posix-functions/execl.texi (execl): Likewise.
30917         * doc/posix-functions/execle.texi (execle): Likewise.
30918         * doc/posix-functions/execlp.texi (execlp): Likewise.
30919         * doc/posix-functions/execv.texi (execv): Likewise.
30920         * doc/posix-functions/execve.texi (execve): Likewise.
30921         * doc/posix-functions/execvp.texi (execvp): Likewise.
30922         * doc/glibc-functions/canonicalize_file_name.texi
30923         (canonicalize_file_name): Cygwin 1.7 now provides this.
30924         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30925         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30926         on AT_SYMLINK_NOFOLLOW.
30927
30928 2009-09-24  Eric Blake  <ebb9@byu.net>
30929
30930         test-linkat: make test more robust
30931         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30932
30933         getopt: fix inclusion guards for cygwin
30934         * modules/getopt-posix (Depends-on): Add include-next.
30935         (Makefile.am): Substitute more items in replacement header.
30936         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30937         <getopt.h>.
30938         * lib/getopt.in.h (includes): Use split inclusion guard, and
30939         prefer <getopt.h> over include <unistd.h> when one is present.
30940         (option): Also override name of 'struct option'.
30941
30942         same-inode: revert prior change; it is not yet ready
30943         * NEWS: Undo mention of this change.
30944         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30945         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30946         * lib/cycle-check.c (cycle_check): Likewise.
30947         * lib/same.c (same_name): Likewise.
30948         * lib/at-func2.c (at_func2): Likewise.
30949
30950 2009-09-23  Eric Blake  <ebb9@byu.net>
30951
30952         linkat: new module
30953         * modules/linkat: New file.
30954         * lib/at-func2.c (at_func2): Likewise.
30955         * lib/linkat.c (linkat): Likewise.
30956         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30957         * lib/openat-priv.h (at_func2): Add declaration.
30958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30959         * modules/unistd (Makefile.am): Substitute them.
30960         * lib/unistd.in.h (linkat): Declare it.
30961         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30962         * doc/posix-functions/linkat.texi (linkat): Likewise.
30963         * doc/posix-functions/link.texi (link): Tweak wording.
30964         * tests/test-link.c (main): Move guts...
30965         * tests/test-link.h (test_link): ...into new file.
30966         * modules/linkat-tests: New test.
30967         * tests/test-linkat.c: Likewise.
30968         * modules/link-tests (Files): Ship new file.
30969         (Depends-on): Add stdbool.
30970
30971         dirname: add library-safe mdir_name
30972         * lib/dirname.h (mdir_name): New prototype.
30973         * lib/dirname.c (dir_name): Move guts...
30974         (mdir_name): ...to new function that avoids xalloc_die.
30975
30976         fchdir: another mingw fix
30977         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30978         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30979         on mingw (where it has not yet been ported), and make it optional
30980         elsewhere.
30981         (_gl_register_fd): Use it.
30982
30983         same-inode: make SAME_INODE tri-state, to port to mingw
30984         * NEWS: Mention this change.
30985         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30986         st_ino always being 0.
30987         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30988         * lib/cycle-check.c (cycle_check): Likewise.
30989         * lib/same.c (same_name): Likewise.
30990
30991         lstat: avoid mingw compilation error
30992         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30993         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30994         lstat ourselves.
30995         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30996         was adequate.
30997         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30998         the checks for lstat.
30999         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31000
31001         link: fix test failure on Solaris 9
31002         * lib/link.c (rpl_link): Don't assume link will catch bogus
31003         trailing slash on source.
31004
31005         test-symlinkat: enhance test
31006         * tests/test-readlink.c (main): Move guts...
31007         * tests/test-readlink.h (test_readlink): ...into new file.
31008         * tests/test-symlink.c (main): Move guts...
31009         * tests/test-symlink.h (test_symlink): ...into new file.
31010         * tests/test-symlinkat.c (main): Use new files for further
31011         coverage.
31012         (do_symlink, do_readlink): New helper functions.
31013         * modules/symlink-tests (Files): Ship new file.
31014         (Depends-on): Add stdbool.
31015         * modules/readlink-tests (Files): Ship new file.
31016         (Depends-on): Add stdbool.
31017         * modules/symlinkat-tests (Files): Use new files.
31018
31019 2009-09-23  Eric Blake  <ebb9@byu.net>
31020
31021         readlink: document portability issue with symlink length
31022         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31023         systems have bogus st_size on symlinks, and mention the
31024         areadlink-with-size module.
31025         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31026         * doc/posix-functions/readlink.texi (readlink): Mention the
31027         areadlink module, and ERANGE failure.
31028         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31029         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31030
31031         readlink: fix Solaris 9 bug with trailing slash
31032         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31033         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31034         * doc/posix-functions/readlink.texi (readlink): Document this.
31035         * modules/readlink-tests: New test.
31036         * tests/test-readlink.c: Likewise.
31037
31038         readlink: fix cygwin 1.5.x bug with return type
31039         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31040         * lib/unistd.in.h (readlink): Use ssize_t.
31041         * lib/readlink.c (readlink): Likewise.
31042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31043         * modules/unistd (Makefile.am): Substitute it.
31044         * lib/unistd.in.h (readlink): Declare replacement.
31045         * doc/posix-functions/readlink.texi (readlink): Document this.
31046
31047         symlink: use throughout gnulib
31048         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31049         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31050         symlink is not used.
31051         * modules/symlinkat (Depends-on): Add symlink.
31052         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31053         * modules/canonicalize-tests (Depends-on): Likewise.
31054         * modules/lstat-tests (Depends-on): Likewise.
31055         * modules/openat-tests (Depends-on): Likewise.
31056         * modules/remove-tests (Depends-on): Likewise.
31057         * modules/rmdir-tests (Depends-on): Likewise.
31058         * modules/unlink-tests (Depends-on): Likewise.
31059         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31060         * tests/test-canonicalize.c (symlink): Likewise.
31061         * tests/test-fstatat.c (symlink): Likewise.
31062         * tests/test-lstat.c (symlink): Likewise.
31063         * tests/test-remove.c (symlink): Likewise.
31064         * tests/test-rmdir.c (symlink): Likewise.
31065         * tests/test-unlink.c (symlink): Likewise.
31066         * tests/test-unlinkat.c (symlink): Likewise.
31067
31068         symlink: new module, for Solaris 9 bug
31069         * modules/symlink: New file.
31070         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31071         * lib/symlink.c: Likewise.
31072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31073         * modules/unistd (Makefile.am): Substitute them.
31074         * lib/unistd.in.h (symlink): Declare replacement.
31075         * MODULES.html.sh (File system functions): Mention it.
31076         * doc/posix-functions/symlink.texi (symlink): Likewise.
31077         * modules/symlink-tests: New test.
31078         * tests/test-symlink.c: Likewise.
31079
31080 2009-09-23  Bruno Haible  <bruno@clisp.org>
31081
31082         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31083         when needed.
31084         Test case: gnulib-tool --import --with-tests atexit inttypes.
31085         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31086
31087 2009-09-23  Bruno Haible  <bruno@clisp.org>
31088
31089         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31090         subcommand, not in a subshell.
31091
31092 2009-09-22  Eric Blake  <ebb9@byu.net>
31093
31094         unistd: sort replacement declarations
31095         * lib/unistd.in.h: Sort declarations.
31096
31097         open, openat: minor optimization
31098         * lib/open.c (open): If open succeeded, len is non-zero.
31099         * lib/openat.c (rpl_openat): Likewise.
31100
31101         link-follow: ensure correct result
31102         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31103         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31104         distinguish between possible failures.
31105
31106 2009-09-21  Eric Blake  <ebb9@byu.net>
31107
31108         fts: avoid compiler warning
31109         * lib/fts.c (dirent_inode_sort_may_be_useful)
31110         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31111
31112 2009-09-19  Bruno Haible  <bruno@clisp.org>
31113
31114         * lib/progreloc.c (canonicalize_file_name): New declaration.
31115
31116 2009-09-19  Eric Blake  <ebb9@byu.net>
31117
31118         link: fix quoting
31119         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31120
31121         openat: fix openat bugs on Solaris 9
31122         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31123         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31124         * modules/openat (Depends-on): Add open.
31125         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31126         * modules/fcntl-h (Makefile.am): Substitute it.
31127         * lib/fcntl.in.h (openat): Declare replacement.
31128         * doc/posix-functions/openat.texi (openat): Document this.
31129
31130         openat: move fstatat and unlinkat into correct files
31131         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31132         compiled.
31133         * lib/openat.c (fstatat, unlinkat): Move...
31134         * lib/fstatat.c (fstatat): ...into correct files.
31135         * lib/unlinkat.c (unlinkat): Likewise.
31136
31137         openat: fix unlinkat bugs on Solaris 9
31138         * lib/unlinkat.c (unlinkat): New file.
31139         * modules/openat (Depends-on): Add unlink.
31140         (Files): Distribute it.
31141         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31142         trailing slash behavior is broken.
31143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31144         * modules/unistd (Makefile.am): Substitute it.
31145         * lib/unistd.in.h (unlinkat): Declare replacement.
31146         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31147
31148         openat: fix fstatat bugs on Solaris 9
31149         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31150         stat.
31151         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31152
31153         test-unlinkat: enhance test, to expose Solaris 9 bug
31154         * tests/test-unlink.c (main): Factor guts...
31155         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31156         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31157         * tests/test-rmdir.c (main): Adjust caller.
31158         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31159         (unlinker): New helper function.
31160         (rmdirat): Enhance check.
31161         * modules/rmdir-tests (Depends-on): Add stdbool.
31162         * modules/unlink-tests (Depends-on): Likewise.
31163         (Files): Add test-unlink.h.
31164         * modules/openat-tests (Files): Likewise.
31165         (Depends-on): Add unlinkdir.
31166
31167         test-fstatat: new test, to expose Solaris 9 bugs
31168         * tests/test-stat.c (main): Factor guts...
31169         * tests/test-stat.h (test_stat_func): ...into new file.
31170         * tests/test-lstat.c (main): Factor guts...
31171         * tests/test-lstat.h (test_lstat_func): ...into new file.
31172         * tests/test-fstatat.c: New file.
31173         * modules/stat-tests (Files): Add test-stat.h.
31174         * modules/lstat-tests (Files): Add test-lstat.h.
31175         (Depends-on): Add stdbool.
31176         * modules/openat-tests (Depends-on): Add pathmax.
31177         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31178         (Makefile.am): Run new test.
31179
31180         remove: new module, for mingw and Solaris 9 bugs
31181         * modules/remove: New file.
31182         * lib/remove.c: Likewise.
31183         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31185         * modules/stdio (Makefile.am): Use them.
31186         * lib/stdio.in.h (remove): Declare replacement.
31187         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31188         * doc/posix-functions/remove.texi (remove): Likewise.
31189         * modules/remove-tests: New test.
31190         * tests/test-remove.c: Likewise.
31191
31192         unlink: new module, for Solaris 9 bug
31193         * modules/unlink: New file.
31194         * lib/unlink.c: Likewise.
31195         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31197         * modules/unistd (Makefile.am): Use them.
31198         * lib/unistd.in.h (stat): Declare replacement.
31199         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31200         * doc/posix-functions/unlink.texi (unlink): Likewise.
31201         * modules/unlink-tests: New test.
31202         * tests/test-unlink.c: Likewise.
31203
31204         lstat: fix Solaris 9 bug
31205         * lib/lstat.c (lstat): Also check for trailing slash on
31206         non-symlink, non-directories.  Use stat module to simplify logic.
31207         * doc/posix-functions/lstat.texi (lstat): Document it.
31208         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31209         (configure.ac): Check for symlink.
31210         * tests/test-lstat.c (main): Add more tests.
31211
31212         stat: add as dependency to other modules
31213         * modules/chown (Depends-on): Add stat.
31214         * modules/euidaccess (Depends-on): Likewise.
31215         * modules/fchdir (Depends-on): Likewise.
31216         * modules/isdir (Depends-on): Likewise.
31217         * modules/link (Depends-on): Likewise.
31218         * modules/lstat (Depends-on): Likewise.
31219         * modules/mkdir-p (Depends-on): Likewise.
31220         * modules/modechange (Depends-on): Likewise.
31221         * modules/open (Depends-on): Likewise.
31222         * modules/readlink (Depends-on): Likewise.
31223         * modules/same (Depends-on): Likewise.
31224
31225         stat: fix Solaris 9 bug
31226         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31227         slash.
31228         * lib/stat.c (rpl_stat): Work around it.
31229         * doc/posix-functions/stat.texi (stat): Update documentation.
31230
31231         stat: new module, for mingw bug
31232         * modules/stat: New file.
31233         * lib/stat.c: Likewise.
31234         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31235         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31236         * modules/sys_stat (Makefile.am): Use them.
31237         * lib/sys_stat.in.h (stat): Declare replacement.
31238         * lib/openat.c (fstatat): Deal with lstat and stat being function
31239         macros.
31240         * modules/openat (Depends-on): Add inline.
31241         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31242         * doc/posix-functions/stat.texi (stat): Likewise.
31243         * modules/stat-tests: New test.
31244         * tests/test-stat.c: Likewise.
31245
31246 2009-09-19  Jim Meyering  <meyering@redhat.com>
31247
31248         syntax-check: detect unnecessary inclusion of canonicalize.h
31249         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31250
31251 2009-09-19  Eric Blake  <ebb9@byu.net>
31252
31253         canonicalize-lgpl: adjust clients to use correct header
31254         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31255         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31256         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31257         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31258         * lib/progreloc.c (includes): Likewise.
31259
31260 2009-09-19  Jim Meyering  <meyering@redhat.com>
31261
31262         test-posixtm.c: correct a comment
31263         * tests/test-posixtm.c: Correct first-line comment.
31264         Spotted by Eric Blake.
31265
31266 2009-09-16  Jim Meyering  <meyering@redhat.com>
31267
31268         posixtm-tests: make T const-correct; add a test case
31269         * tests/test-posixtm.c (T): Declare const.
31270         Add a test for -(2^31+1).
31271         Remove useless can-succeed-only-in-2002 test.
31272
31273         posixtm-tests: adjust the sole failing test
31274         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31275         expected output matches what mktime now produces.  Cross-checked via
31276         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31277
31278         posixtm: move #ifdef'd tests into a new module
31279         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31280         * tests/test-posixtm.c: ... this new file.
31281         * modules/posixtm-tests: New module.
31282
31283 2009-09-19  Eric Blake  <ebb9@byu.net>
31284
31285         openat: simplify use of at-func.c
31286         * lib/at-func.c (includes): Include prerequisites here, to
31287         simplify requirements on client files.
31288         * lib/openat-priv.h: Add double-inclusion guard.
31289         * lib/faccessat.c (includes): Simplify.
31290         * lib/fchmodat.c (includes): Likewise.
31291         * lib/fchownat.c (includes): Likewise.
31292         * lib/mkdirat.c (includes): Likewise.
31293         * lib/mkfifoat.c (includes): Likewise.
31294         * lib/symlinkat.c (includes): Likewise.
31295
31296         openat: allow return of fd 0
31297         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31298         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31299         unistd-safer.
31300         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31301         <fcntl.h>; this module does not leak fds.
31302         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31303         must be allowed to return 0, leaving openat_safer to add the
31304         safety.
31305         (openat_permissive): Avoid writing to just-opened fd 2 if
31306         restoring the current directory fails.
31307         * lib/openat-die.c (openat_restore_fail): Add comment.
31308         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31309         (save_cwd): Guarantee safe fd, but without use of open_safer.
31310         * tests/test-openat.c: New test.
31311         * modules/openat-tests (Files, Makefile.am): Distribute and build
31312         new file.
31313
31314         relocatable-prog-wrapper: fix build
31315         * modules/relocatable-prog-wrapper (Files): Update name of
31316         canonicalize m4 file, broken on 2009-09-17.
31317         Reported by emad hajjar <aleppos@hotmail.com>.
31318
31319 2009-09-19  Bruno Haible  <bruno@clisp.org>
31320
31321         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31322         * lib/safe-alloc.c: Likewise.
31323         Reported by Ian Beckwith <ianb@erislabs.net>.
31324
31325 2009-09-18  Bruno Haible  <bruno@clisp.org>
31326
31327         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31328         Reported by <erobles@sensacd.com.mx>.
31329
31330 2009-09-17  Eric Blake  <ebb9@byu.net>
31331
31332         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31333         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31334         slashes when checking if last component is missing.
31335         * tests/test-canonicalize.c (main): Test this.
31336
31337         canonicalize, canonicalize-lgpl: honor // if distinct from /
31338         * modules/canonicalize (Files): Add double-slash-root.m4.
31339         * modules/canonicalize-lgpl (Files): Likewise.
31340         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31341         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31342         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31343         fallback definition.
31344         (canonicalize_filename_mode): Use it to protect //.
31345         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31346         (__realpath): Likewise.
31347         * tests/test-canonicalize.c (main): Test this.
31348         * tests/test-canonicalize-lgpl.c (main): Likewise.
31349         * modules/canonicalize-tests (Depends-on): Add same-inode.
31350         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31351
31352         canonicalize-lgpl: fix glibc bug with trailing slash
31353         * m4/canonicalize-lgpl.m4: Move contents...
31354         * m4/canonicalize.m4: ...here.
31355         (gl_CANONICALIZE_LGPL): Factor realpath check...
31356         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31357         glibc 2.3.5 bug, fixed 2005-04-27.
31358         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31359         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31360         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31361         * modules/canonicalize-lgpl (Files): Manage file rename.
31362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31363         * modules/stdlib (Makefile.am): Substitute witness.
31364         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31365         is needed.
31366         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31367         replacement is required.
31368         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31369         * doc/glibc-functions/canonicalize_file_name.texi
31370         (canonicalize_file_name): Document this.
31371         * doc/posix-functions/realpath.texi (realpath): Likewise.
31372
31373         canonicalize-lgpl: reject non-directory with trailing slash
31374         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31375         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31376         catches failures in glibc 2.3.5.
31377         * tests/test-canonicalize.c (main): Likewise.
31378
31379         canonicalize-lgpl: use native realpath if it works
31380         * lib/canonicalize-lgpl.c (realpath): Guard with
31381         FUNC_REALPATH_WORKS.
31382         * lib/stdlib.in.h (realpath): Make declaration optional based on
31383         HAVE_REALPATH.
31384         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31385         native realpath works.
31386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31387         * modules/stdlib (Makefile.am): Substitute witness.
31388
31389         canonicalize, canonicalize-lgpl: use <stdlib.h>
31390         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31391         (Include): Mention <stdlib.h>.
31392         (configure.ac): Mention functions we provide.
31393         * modules/canonicalize (configure.ac): Likewise.
31394         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31395         realpath if canonicalize_file_name is missing.
31396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31397         * modules/stdlib (Makefile.am): Substitute witnesses.
31398         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31399         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31400         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31401         * NEWS: Document this.
31402         * doc/glibc-functions/canonicalize_file_name.texi
31403         (canonicalize_file_name): Likewise.
31404         * doc/posix-functions/realpath.texi (realpath): Likewise.
31405         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31406
31407         test-canonicalize: consolidate into single C program
31408         * tests/test-canonicalize.sh: Delete; move setup into...
31409         * tests/test-canonicalize.c (main): ...the program, making it
31410         easier to run in debugger.  Add some tests.
31411         * modules/canonicalize-tests (Files): Remove unused file.
31412         (Depends-on): Add progname.
31413         (configure.ac, Makefile.am): Simplify.
31414
31415         test-canonicalize-lgpl: consolidate into single C program
31416         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31417         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31418         easier to run in debugger.  Add some tests.
31419         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31420         (configure.ac, Makefile.am): Simplify.
31421
31422         canonicalize: avoid resolvepath
31423         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31424         unnecessary checks.
31425         * lib/canonicalize.c (includes): Simplify.
31426         (canonicalize_file_name): Drop resolvepath implementation.
31427         * modules/canonicalize (Depends-on): Drop filenamecat.
31428
31429         canonicalize: don't lose errno
31430         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31431         over calls to free.
31432
31433         canonicalize: simplify errno handling
31434         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31435         assignment.
31436
31437         canonicalize, canonicalize-lgpl: update module dependencies
31438         * modules/canonicalize (Depends-on): Add extensions, lstat,
31439         pathmax, stdlib.
31440         (Files): Drop pathmax.h.
31441         (configure.ac): Adjust macro name.
31442         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31443         lstat, stdlib, sys_stat.
31444         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31445         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31446         extensions.
31447         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31448         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31449         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31450         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31451         declaration, if available.
31452         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31453         we can rely on the readlink module.
31454         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31455         (includes): Use <unistd.h> unconditionally.
31456
31457 2009-09-17  Eric Blake  <ebb9@byu.net>
31458
31459         maint: make Include sections of modules consistent
31460         * modules/alloca: Use only header name; no need to list #include.
31461         * modules/alloca-opt: Likewise.
31462         * modules/arpa_inet: Likewise.
31463         * modules/canon-host: Likewise.
31464         * modules/configmake: Likewise.
31465         * modules/dirent: Likewise.
31466         * modules/eealloc: Likewise.
31467         * modules/environ: Likewise.
31468         * modules/fchdir: Likewise.
31469         * modules/fcntl: Likewise.
31470         * modules/fcntl-h: Likewise.
31471         * modules/gethrxtime: Likewise.
31472         * modules/gettime: Likewise.
31473         * modules/ignore-value: Likewise.
31474         * modules/inet_ntop: Likewise.
31475         * modules/inet_pton: Likewise.
31476         * modules/inttypes: Likewise.
31477         * modules/isnand-nolibm: Likewise.
31478         * modules/isnanf-nolibm: Likewise.
31479         * modules/mbchar: Likewise.
31480         * modules/mbfile: Likewise.
31481         * modules/mbiter: Likewise.
31482         * modules/mbuiter: Likewise.
31483         * modules/netdb: Likewise.
31484         * modules/netinet_in: Likewise.
31485         * modules/nproc: Likewise.
31486         * modules/pagealign_alloc: Likewise.
31487         * modules/poll: Likewise.
31488         * modules/printf-frexp: Likewise.
31489         * modules/pthread: Likewise.
31490         * modules/putenv: Likewise.
31491         * modules/random_r: Likewise.
31492         * modules/relocatable-prog: Likewise.
31493         * modules/search: Likewise.
31494         * modules/select: Likewise.
31495         * modules/selinux-h: Likewise.
31496         * modules/settime: Likewise.
31497         * modules/signal: Likewise.
31498         * modules/size_max: Likewise.
31499         * modules/socklen: Likewise.
31500         * modules/ssize_t: Likewise.
31501         * modules/stdarg: Likewise.
31502         * modules/stdbool: Likewise.
31503         * modules/stddef: Likewise.
31504         * modules/stdint: Likewise.
31505         * modules/stdio: Likewise.
31506         * modules/stdlib: Likewise.
31507         * modules/string: Likewise.
31508         * modules/strings: Likewise.
31509         * modules/sys_file: Likewise.
31510         * modules/sys_ioctl: Likewise.
31511         * modules/sys_select: Likewise.
31512         * modules/sys_socket: Likewise.
31513         * modules/sys_stat: Likewise.
31514         * modules/sys_time: Likewise.
31515         * modules/sys_times: Likewise.
31516         * modules/sys_utsname: Likewise.
31517         * modules/sys_wait: Likewise.
31518         * modules/sysexits: Likewise.
31519         * modules/time: Likewise.
31520         * modules/times: Likewise.
31521         * modules/tmpfile: Likewise.
31522         * modules/trim: Likewise.
31523         * modules/unistd: Likewise.
31524         * modules/wchar: Likewise.
31525         * modules/wctype: Likewise.
31526
31527 2009-09-17  Bruno Haible  <bruno@clisp.org>
31528
31529         Make getdate.y compile on QNX and NetBSD 5 / i386.
31530         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31531         TIME_T_FITS_IN_LONG_INT.
31532         * lib/getdate.y (long_time_t): New type.
31533         (relative_time): Change type of 'seconds' field to long_time_t.
31534         (get_date): Update types of local variables. Check against overflow
31535         during conversion from long_time_t to time_t.
31536         Reported by Matt Kraai <kraai@ftbfs.org>
31537         and Hasso Tepper <hasso@netbsd.org>.
31538
31539 2009-09-17  Bruno Haible  <bruno@clisp.org>
31540
31541         * modules/COPYING: Update copyright years.
31542         * modules/README: Likeiwse.
31543         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31544         Reported by Ian Beckwith <ianb@erislabs.net>.
31545
31546 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31547
31548         * users.txt: Update references for gnuit package.
31549
31550 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31551
31552         * m4/getdelim.m4: Fix typo in copyright line.
31553
31554 2009-09-17  Bruno Haible  <bruno@clisp.org>
31555
31556         * lib/atoll.c: Use the standard header with GPL copyright.
31557         * lib/argz.in.h: Likewise.
31558         * lib/glob.c: Likewise.
31559         * lib/glob-libc.h: Likewise.
31560         * lib/random_r.c: Likewise.
31561         * lib/siglist.h: Likewise.
31562         * lib/strsignal.c: Likewise.
31563         Reported by Ian Beckwith <ianb@erislabs.net>.
31564
31565 2009-09-17  Eric Blake  <ebb9@byu.net>
31566
31567         rmdir: ensure correct dependency order
31568         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31569
31570 2009-09-17  Bruno Haible  <bruno@clisp.org>
31571
31572         Disable assertion that fails on NetBSD 5 / i386.
31573         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31574         Reported by Sam Steingold <sds@gnu.org>
31575         and Hasso Tepper <hasso@netbsd.org>.
31576
31577 2009-09-16  Eric Blake  <ebb9@byu.net>
31578
31579         unlinkdir: port to mingw
31580         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31581         on which no one can unlink a directory.
31582
31583         stdlib: sort witness names
31584         * modules/stdlib (Makefile.am): Sort replacements.
31585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31586         * lib/stdlib.in.h: Likewise.
31587
31588         parse-duration-tests: avoid link failure
31589         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31590         LIBINTL.
31591         Reported by Tom G. Christensen.
31592
31593         openat-tests: ensure unlinkat behaves like rmdir
31594         * tests/test-rmdir.c (main): Factor guts...
31595         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31596         * modules/rmdir-tests (Files): Ship new file.
31597         * modules/openat-tests: New test.
31598         * tests/test-unlinkat.c: Likewise.
31599
31600         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31601         * modules/rmdir-errno (Status, Notice): Now obsolete.
31602
31603         rmdir: work around cygwin 1.5.x and mingw bugs
31604         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31605         * lib/rmdir.c (rmdir): Work around it.
31606         * modules/rmdir (Status, Notice): No longer obsolete.
31607         (Files): Add dos.m4.
31608         (Depends-on): Add unistd.
31609         (configure.ac): Set witnesses.
31610         (License): Relax to LGPLv2+.
31611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31612         * modules/unistd (Makefile.am): Substitute witnesses.
31613         * lib/unistd.in.h (rmdir): Declare replacement.
31614         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31615         * modules/rmdir-tests: New tests.
31616         * tests/test-rmdir.c: Likewise.
31617
31618 2009-09-15  Eric Blake  <ebb9@byu.net>
31619
31620         fchdir: improve use of replacement functions
31621         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31622         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31623         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31624         REPLACE_CLOSEDIR.
31625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31626         * modules/sys_stat (Makefile.am): Substitute correct witness.
31627         * modules/dirent (Makefile.am): Likewise.
31628         * modules/unistd (Makefile.am): Likewise.
31629         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31630         * lib/unistd.in.h (dup): Likewise.
31631         * lib/sys_stat.in.h (fstat): Likewise.
31632
31633         maint: ignore gnulib-tool temp files
31634         * .gitignore: Ignore files created during gnulib-tool --test.
31635
31636 2009-09-13  Jim Meyering  <meyering@redhat.com>
31637
31638         posixtm: don't reject a time that specify "60" as the number of seconds
31639         * lib/posixtm.c (posixtime): The code to reject invalid dates
31640         would also reject a time specified with the .60 suffix.
31641         But POSIX allows that, in order to accommodate leap seconds.
31642         So don't reject it.
31643         (main): Adjust tests accordingly.
31644         * modules/posixtm (Depends-on): Add stpcpy.
31645
31646 2009-09-11  Jim Meyering  <meyering@redhat.com>
31647
31648         announce-gen: include [$release_type] in emitted Subject:
31649         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31650         e.g., [stable] in the emitted Subject: line.
31651
31652 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31653
31654         Remove obsolete macros from several modules.
31655         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31656         obsolete Autoconf macros with their modern counterparts.
31657         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31658         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31660         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31661         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31662         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31663         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31664         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31665         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31666         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31667         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31668         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31669         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31670         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31671         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31672         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31673         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31674         * m4/time_r.m4 (gl_TIME_R): Likewise.
31675         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31676         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31677         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31678
31679         Fix copyright header in build-aux scripts.
31680         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31681         recommendation.
31682         * build-aux/ncftpput-ftp: Likewise.
31683         * build-aux/update-copyright: Likewise.
31684
31685 2009-09-09  Eric Blake  <ebb9@byu.net>
31686
31687         test-link: allow Linux choice of errno
31688         * tests/test-link.c (main): Relax test for alternate error.
31689
31690         strndup: fix improper m4 caching
31691         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31692         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31693         (gl_PREREQ_STRNDUP): Delete.
31694         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31695         * modules/string (Makefile.am): Substitute it.
31696         * lib/string.in.h (strndup): Modernize prototype.
31697
31698         getcwd: port to mingw
31699         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31700         different from the POSIX assumptions made throughout the getcwd
31701         module; fortunately, the mingw getcwd does not need replacement.
31702         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31703         * modules/getcwd-tests: New test.
31704         * tests/test-getcwd.c: Likewise.
31705
31706         link: fix platform bugs
31707         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31708         * lib/link.c (link): Work around them.  Fix related mingw bug.
31709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31710         * modules/unistd (Makefile.am): Substitute it.
31711         * lib/unistd.in.h (link): Declare replacement.
31712         * doc/posix-functions/link.texi (link): Document this.
31713         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31714
31715         test-link: consolidate into single C program, test more cases
31716         * tests/test-link.sh: Delete.
31717         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31718         at least Cygwin and Solaris.
31719         * modules/link-tests (Files): Remove unused file.
31720         (Depends-on): Add errno, sys_stat.
31721         (Makefile.am): Simplify.
31722
31723 2009-09-08  Bruno Haible  <bruno@clisp.org>
31724
31725         Work around towlower, towupper bug on mingw.
31726         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31727         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31728         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31729         * doc/posix-functions/towupper.texi: Likewise.
31730         Reported by Eric Blake.
31731
31732 2009-09-08  Jim Meyering  <meyering@redhat.com>
31733
31734         build: don't try to run autoheader if we don't use it
31735         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31736         is not used in configure.ac.
31737
31738 2009-09-08  Eric Blake  <ebb9@byu.net>
31739
31740         euidaccess: fix compilation error
31741         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31742
31743         rawmemchr: relax license
31744         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31745         okay.
31746         Reported by Jim Meyering.
31747
31748         mkfifoat: new module
31749         * modules/mkfifoat: New file.
31750         * lib/mkfifoat.c: Likewise.
31751         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31752         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31753         * modules/sys_stat (Makefile.am): Use them.
31754         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31755         * MODULES.html.sh (File system functions): Mention module.
31756         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31757         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31758         * modules/mkfifoat-tests: New test.
31759         * tests/test-mkfifoat.c: Likewise.
31760
31761         strchrnul: relax license
31762         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31763         okay.
31764         Reported by Jim Meyering.
31765
31766 2009-09-08  Eric Blake  <ebb9@byu.net>
31767
31768         fstatat: fix compilation on Solaris
31769         * lib/fstatat.c (includes): Add fcntl.h.
31770         Reported by Pádraig Brady.
31771
31772 2009-09-07  Eric Blake  <ebb9@byu.net>
31773
31774         rename: modernize replacement
31775         * modules/rename (Depends-on): Add stdio.
31776         (configure.ac): Declare witness.
31777         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31778         stdio take care of replacement.
31779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31780         * modules/stdio (Makefile.am): Substitute them.
31781         * lib/stdio.in.h (rename): Declare replacement.
31782         * lib/rename.c (includes): Allow cross-compilation to non-windows
31783         machines.
31784         * doc/posix-functions/rename.texi (rename): Improve
31785         documentation.
31786
31787         stdio: sort witness names
31788         * modules/stdio (Makefile.am): Sort replacements.
31789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31790         * lib/stdio.in.h: Likewise.
31791
31792         getcwd: minor cleanups
31793         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31794         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31795
31796         openat: provide more convenience names
31797         * modules/faccessat (configure.ac): Add C witness.
31798         * lib/unistd.in.h (readlinkat): Fix typo.
31799         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31800         convenience wrappers.
31801         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31802         wrappers in syntax checks.
31803
31804 2009-09-06  Eric Blake  <ebb9@byu.net>
31805
31806         doc: fix comments in recent patches
31807         * lib/faccessat.c: Mention correct function.
31808         * lib/fchmodat.c: Likewise.
31809         * lib/fchownat.c: Likewise.
31810         * lib/symlinkat.c: Likewise.
31811         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31812         constants.
31813
31814         faccessat, symlinkat: continue cleanup of previous patch
31815         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31816         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31817         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31819         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31820         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31821         set.
31822
31823 2009-09-06  Bruno Haible  <bruno@clisp.org>
31824
31825         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31826         (fstatat): Declare if GNULIB_FSTATAT is set.
31827         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31828         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31829         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31830         * modules/fcntl-h (Files): Remove m4/openat.m4.
31831         * modules/sys_stat (Files): Remove m4/openat.m4.
31832         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31833         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31834         * modules/unistd (Files): Remove m4/openat.m4.
31835         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31836         GNULIB_OPENAT.
31837         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31838         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31839         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31840         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31841         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31842         gl_OPENAT_DEFAULTS.
31843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31844         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31845         Don't require gl_OPENAT_DEFAULTS.
31846         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31847         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31848         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31849         (gl_OPENAT_DEFAULTS): Remove macro.
31850
31851 2009-09-06  Bruno Haible  <bruno@clisp.org>
31852
31853         * modules/openat (configure.ac): Remove unneeded witness.
31854
31855 2009-09-06  Bruno Haible  <bruno@clisp.org>
31856
31857         Set errno to ENOSYS when a function is entirely unsupported.
31858         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31859         EOPNOTSUPP.
31860         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31861         * modules/chown (Depends-on): Remove errno.
31862
31863 2009-09-06  Bruno Haible  <bruno@clisp.org>
31864
31865         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31866
31867 2009-09-06  Bruno Haible  <bruno@clisp.org>
31868
31869         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31870
31871 2009-09-06  Ben Pfaff  <blp@gnu.org>
31872             Bruno Haible  <bruno@clisp.org>
31873
31874         Work around a glibc bug in strtok_r.
31875         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31876         Undefine if UNDEFINE_STRTOK_R is set.
31877         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31879         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31880         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31881         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31882         UNDEFINE_STRTOK_R.
31883         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31884
31885 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31886
31887         exclude: minor fix
31888         * lib/exclude.c: Include wctype.h
31889
31890 2009-09-06  Akim Demaille  <demaille@gostai.com>
31891
31892         bootstrap: improve error message
31893         * build-aux/bootstrap (find_tool): Upon failure, report the list
31894         of candidates.
31895         Honor the initial value of the envvar.
31896
31897 2009-09-05  Eric Blake  <ebb9@byu.net>
31898
31899         symlinkat: new module
31900         * modules/symlinkat: New file.
31901         * lib/symlinkat.c: Likewise.
31902         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31904         * modules/unistd (Makefile.am): Use them.
31905         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31906         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31907         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31908         * MODULES.html.sh (File system functions): Mention module.
31909         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31910         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31911         * modules/symlinkat-tests: New test.
31912         * tests/test-symlinkat.c: Likewise.
31913
31914         test-openat-safer: add more checks
31915         * tests/test-openat-safer.c (main): Check more code paths.
31916
31917 2009-09-05  Jim Meyering  <meyering@redhat.com>
31918
31919         syntax-check: detect unnecessary inclusion of openat.h
31920         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31921
31922 2009-09-05  Bruno Haible  <bruno@clisp.org>
31923
31924         Support towlower, towupper.
31925         * doc/posix-functions/towlower.texi: Mention module wctype.
31926         * doc/posix-functions/towupper.texi: Likewise.
31927         * lib/wctype.in.h (towlower, towupper): New functions.
31928         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31929         (ASSERT): New macro.
31930         (e): New variable.
31931         (main): Test also towlower, towupper. Test WEOF argument.
31932         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31933
31934 2009-09-05  Bruno Haible  <bruno@clisp.org>
31935
31936         Fix conversion behaviour when the input is invalid.
31937         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31938         mark occurring in first pass of indirect conversion.
31939         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31940         input.
31941         Found by clang's static analyzer.
31942
31943 2009-09-05  Bruno Haible  <bruno@clisp.org>
31944
31945         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31946         where direct conversion is possible.
31947
31948 2009-09-04  Eric Blake  <ebb9@byu.net>
31949
31950         openat: fail with ENOENT on empty name
31951         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31952         buffer.
31953
31954         link-follow: fix logic bug in prior patch
31955         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31956         reversed sense of yes and no in prior patch.  Avoid confusing
31957         compilation failure with desired semantics.
31958
31959         link-follow: accomodate mingw and cross-compilation
31960         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31961         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31962         cross-compilation results to -1, to make linkat easier to
31963         implement when cross-compiling.  Trivially support mingw.
31964         * modules/link-follow (configure.ac): Call new name.
31965         * NEWS: Mention this.
31966
31967 2009-09-03  Eric Blake  <ebb9@byu.net>
31968
31969         faccessat: compile replacement
31970         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31971         needed.
31972
31973         fts: fix compilation error
31974         * lib/fts.c (includes): Re-add "openat.h", for
31975         openat_needs_fchdir.
31976
31977         faccessat: new module
31978         * modules/faccessat: New file.
31979         * lib/faccessat.c: Likewise.
31980         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31982         * modules/unistd (Makefile.am): Use it.
31983         * lib/unistd.in.h (faccessat): Declare it.
31984         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31985         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31986         * MODULES.html.sh (File system functions): Mention it.
31987         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31988         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31989
31990         euidaccess: prefer POSIX over non-standard implementation
31991         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31992         * lib/euidaccess.c (euidaccess): Use it if available.
31993
31994         openat: make template easier to use
31995         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31996         AT_FUNC_F2 to be undefined.
31997         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31998         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31999         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32000         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32001         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32002         Likewise.
32003         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32004         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32005         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32006         Likewise.
32007
32008         openat: declare in POSIX headers
32009         * NEWS: Mention this.
32010         * modules/openat (configure.ac): Declare witnesses.
32011         (Depends-on): Add fcntl-h, sys_stat, unistd.
32012         (Include): Mention correct headers.
32013         * modules/fcntl-h (Depends-on): Add link-warning.
32014         (Files): Add openat.m4.
32015         (Makefile.am): Substitute witnesses.
32016         * modules/sys_stat (Files, Makefile.am): Likewise.
32017         * modules/unistd (Files, Makefile.am): Likewise.
32018         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32019         (gl_OPENAT_DEFAULTS): New macro.
32020         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32022         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32023         (SYS_STAT_H): Remove unused variable.
32024         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32025         * lib/fcntl--.h (includes): Remove unneeded header.
32026         * lib/openat-safer.c (includes): Likewise.
32027         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32028         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32029         appropriate headers.
32030         (__OPENAT_PREFIX): Delete.
32031         * lib/fcntl.in.h (openat): Provide declaration.
32032         (AT_FDCWD): Fix Solaris bug.
32033         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32034         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32035         * lib/fchmodat.c (includes):  Adjust to find declaration.
32036         * lib/fchownat.c (includes): Likewise.
32037         * lib/mkdirat.c (includes): Likewise.
32038         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32039         still visible.
32040
32041 2009-09-02  Eric Blake  <ebb9@byu.net>
32042
32043         errno: use consistently
32044         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32045         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32046         * lib/canonicalize.c (ELOOP): Likewise.
32047         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32048         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32049         * lib/lchown.c (EOPNOTSUPP): Likewise.
32050         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32051         * lib/savewd.c (ESTALE): Likewise.
32052         * lib/settime.c (ENOSYS): Likewise.
32053         * lib/utimens.c (ENOSYS): Likewise.
32054         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32055         * lib/chdir-safer.c (ELOOP): Likewise.
32056         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32057         * modules/c-stack (Depends-on): Add errno.
32058         * modules/canonicalize (Depends-on): Likewise.
32059         * modules/chdir-safer (Depends-on): Likewise.
32060         * modules/fdopendir (Depends-on): Likewise.
32061         * modules/inet_ntop (Depends-on): Likewise.
32062         * modules/inet_pton (Depends-on): Likewise.
32063         * modules/lchown (Depends-on): Likewise.
32064         * modules/openat (Depends-on): Likewise.
32065         * modules/savewd (Depends-on): Likewise.
32066         * modules/settime (Depends-on): Likewise.
32067         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32068
32069         fts: avoid leaking fds
32070         * modules/fts (Depends-on): Add cloexec.
32071         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32072         flag.
32073
32074         fts: make directory fds more robust
32075         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32076         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32077
32078         backupfile, chdir-long, fts, savedir: make safer
32079         * lib/backupfile.c (includes): Use "dirent--.h", since
32080         numbered_backup can write to stderr during readdir.
32081         * lib/savedir.c (includes): Likewise.
32082         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32083         emulation can write to stderr on failure.
32084         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32085         * lib/getcwd.c: Document why opendir_safer is unused.
32086         * lib/glob.c: Likewise.
32087         * lib/scandir.c: Likewise.
32088         * lib/openat-proc.c: Likewise, for open_safer.
32089         * modules/backupfile (Depends-on): Add dirent-safer.
32090         * modules/savedir (Depends-on): Likewise.
32091         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32092         * modules/chdir-long (Depends-on): Add openat-safer.
32093
32094         openat-safer: new module
32095         * modules/openat-safer: New file.
32096         * lib/openat-safer.c: Likewise.
32097         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32098         * lib/fcntl-safer.h (openat_safer): Declare.
32099         * lib/fcntl--.h (openat): Override.
32100         * MODULES.html.sh (File descriptor based I/O): Mention it.
32101         * lib/openat.h: Add double-inclusion guards.
32102         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32103         "fcntl--.h", so we can implement openat.
32104         * modules/openat-safer-tests: New test.
32105         * tests/test-openat-safer.c: New file.
32106
32107         dirent-safer: new module
32108         * modules/dirent-safer: New file.
32109         * lib/dirent--.h: Likewise.
32110         * lib/dirent-safer.h: Likewise.
32111         * lib/opendir-safer.c: Likewise.
32112         * m4/dirent-safer.m4: Likewise.
32113         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32114         * modules/dirent-safer-tests: New test.
32115         * tests/test-dirent-safer.c: New file.
32116         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32117
32118         fdopendir: optimize on mingw
32119         * lib/unistd.in.h (_gl_directory_name): New prototype.
32120         * lib/fchdir.c (_gl_directory_name): Implement it.
32121         (fchdir): Use it to simplify implementation.
32122         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32123         fchdir, when available, to avoid calling [f]chdir().
32124
32125         fdopendir: split into its own module
32126         * lib/openat.c (fdopendir): Move...
32127         * lib/fdopendir.c: ...into new file.
32128         * modules/fdopendir: New module.
32129         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32130         * modules/openat (Depends-on): Add fdopendir.
32131         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32132         fdopendir here.
32133         * modules/savedir (Depends-on): Only need fdopendir, not full
32134         openat.
32135         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32136         * lib/openat.h (fdopendir): Drop prototype.
32137         * lib/dirent.in.h (fdopendir): Provide prototype.
32138         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32139         * modules/dirent (Makefile.am): Substitute them.
32140         * MODULES.html.sh (File system functions): Mention it.
32141         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32142         * modules/fdopendir-tests: New file.
32143         * tests/test-fdopendir.c: Likewise.
32144
32145         fchdir: use more consistent macro convention
32146         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32147         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32148         REPLACE_FCHDIR, rather than relying on config.h macros.
32149         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32150         inside a single make-time REPLACE_FCHDIR block, rather than using
32151         the config.h FCHDIR_REPLACEMENT.
32152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32153         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32154         Manage fstat replacement.
32155         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32156         REPLACE_FCHDIR.
32157         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32158         (Makefile.am): Substitute REPLACE_FCHDIR.
32159         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32160         FCHDIR_REPLACEMENT.
32161         * lib/dup-safer.c (dup_safer): Likewise.
32162         * lib/dup2.c (rpl_dup2): Likewise.
32163         * lib/dup3.c (rpl_dup3): Likewise.
32164         * lib/open.c (rpl_open): Likewise.
32165
32166         fchdir: simplify error handling, and support dup3
32167         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32168         stdbool, malloc-posix, realloc-posix.
32169         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32170         (ensure_dirs_slot): Return false on allocation failure.
32171         (rpl_dup2): Delete.
32172         (_gl_register_dup): New function.
32173         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32174         (_gl_register_fd): Close fd on allocation failure.
32175         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32176         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32177         prototype.
32178         (rpl_dup2_fchdir): Delete prototype.
32179         * lib/open.c (open): Update caller.
32180         * lib/dup2.c (dup2): Track fchdir metadata.
32181         * lib/dup3.c (dup3): Likewise.
32182         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32184
32185 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32186
32187         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32188         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32189         don't pass arguments to AC_OUTPUT.
32190
32191 2009-09-02  Bruno Haible  <bruno@clisp.org>
32192
32193         * modules/mkdtemp (License): Relicense under LGPLv2+.
32194         Reported by Paolo Bonzini.
32195
32196 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32197
32198         Replace uses of obsolete autoconf macros in Jim's modules.
32199         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32200         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32201         can evoke a warning from autoconf when run with -Wobsolete
32202         enabled.  They were declared obsolete for good reasons (see
32203         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32204         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32205         should not continue using the deprecated macros.
32206         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32207         obsolete Autoconf macros with modern counterparts.
32208         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32209         * m4/dos.m4 (gl_AC_DOS): Likewise.
32210         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32211         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32212         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32213         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32214         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32215         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32216         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32217         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32218         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32219         Likewise.
32220         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32221         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32222         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32223         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32224         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32225         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32226
32227 2009-09-01  Eric Blake  <ebb9@byu.net>
32228
32229         fchdir: fix off-by-one bug in previous patch
32230         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32231         (_gl_unregister_fd): Delete useless if.
32232
32233 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32234
32235         maint.mk: sort the list of syntax-check rules
32236         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32237         easier to get a sense of progress when the rules are run sequentially
32238         and take a long time.
32239
32240 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32241
32242         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32243         * modules/netinet_in: Likewise.
32244         * modules/sys_file: Likewise.
32245         * modules/sys_ioctl: Likewise.
32246         * modules/sys_select: Likewise.
32247         * modules/sys_socket: Likewise.
32248         * modules/sys_stat: Likewise.
32249         * modules/sys_time: Likewise.
32250         * modules/sys_times: Likewise.
32251         * modules/sys_utsname: Likewise.
32252         * modules/sys_wait: Likewise.
32253
32254 2009-09-01  Jim Meyering  <meyering@redhat.com>
32255
32256         fts: help ensure that return values are not ignored
32257         * lib/fts_.h (__GNUC_PREREQ): Define.
32258         (__attribute_warn_unused_result__): Define.
32259         (fts_children, fts_close, fts_open, fts_read): Declare with
32260         __attribute_warn_unused_result__.
32261
32262         fts: fts_close now fails also when closing a dir file descriptor fails
32263         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32264         and propagate to caller, along with errno.
32265
32266         announce-gen: correct formatting in --help output
32267         * build-aux/announce-gen (usage): Move the one-line description in
32268         --help output "up", to where it belongs, just after Usage:.
32269
32270 2009-08-31  Eric Blake  <ebb9@byu.net>
32271
32272         fchdir: port to mingw
32273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32274         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32275         opened, then use a substitute.
32276         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32277         replacement.
32278         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32279         (_gl_register_fd): No need to check stat if open already filters
32280         all directories.
32281         (fchdir): Fix error condition to match POSIX.
32282         * modules/fchdir (Depends-on): Add sys_stat.
32283         * doc/posix-functions/open.texi (open): Document the limitation.
32284         * modules/fchdir-tests: New file.
32285         * tests/test-fchdir.c: Likewise.
32286
32287         canonicalize: allow cross-testing from cygwin to mingw
32288         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32289         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32290         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32291         Likewise.
32292         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32293         target does not support symlinks.
32294         * tests/test-canonicalize-lgpl.sh: Likewise.
32295
32296         chown: avoid compilation warning on mingw
32297         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32298         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32299         mingw.
32300         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32301         * modules/chown (Depends-on): Add errno.
32302
32303 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32304
32305         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32306         command.
32307
32308 2009-08-31  Jim Meyering  <meyering@redhat.com>
32309
32310         canonicalize: remove useless initialization
32311         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32312         initialization of local, "end".
32313
32314 2009-08-30  Bruno Haible  <bruno@clisp.org>
32315
32316         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32317         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32318         ENOSYS.
32319
32320 2009-08-30  Bruno Haible  <bruno@clisp.org>
32321
32322         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32323         /usr/xpg4/bin/tr when it exists.
32324         * tests/test-pipe-filter-gi1.sh: Likewise.
32325
32326 2009-08-30  Bruno Haible  <bruno@clisp.org>
32327
32328         Work around deficient /usr/bin/id program on Solaris.
32329         * tests/test-file-has-acl.sh (ID): New variable.
32330         * tests/test-set-mode-acl.sh (ID): Likewise.
32331         * tests/test-copy-acl.sh (ID): Likewise.
32332         * tests/test-copy-file.sh (ID): Likewise.
32333
32334 2009-08-30  Bruno Haible  <bruno@clisp.org>
32335
32336         New module 'xstriconveh'.
32337         * lib/xstriconveh.h: New file.
32338         * lib/xstriconveh.c: New file.
32339         * modules/xstriconveh: New file.
32340
32341 2009-08-30  Bruno Haible  <bruno@clisp.org>
32342
32343         Make it easier to use mem_cd_iconveh.
32344         * lib/striconveh.h (iconveh_t): New type.
32345         (iconveh_open, iconveh_close): New declarations.
32346         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32347         with a single 'const iconveh_t *' argument.
32348         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32349         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32350         with a single 'const iconveh_t *' argument.
32351         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32352         * tests/test-striconveh.c (main): Update.
32353         * NEWS: Mention the change.
32354
32355 2009-08-30  Bruno Haible  <bruno@clisp.org>
32356
32357         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32358         problem.
32359
32360 2009-08-30  Bruno Haible  <bruno@clisp.org>
32361
32362         Work around iconv_open problem on Solaris.
32363         * lib/iconv_open-solaris.gperf: New file.
32364         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32365         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32366         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32367         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32368         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32369         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32370
32371 2009-08-29  Jim Meyering  <meyering@redhat.com>
32372
32373         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32374         * top/maint.mk (cvs-check): Remove target; it was just an alias
32375         to the better-named vc-diff-check.
32376         (maintainer-distcheck): Remove rule.  It was used only from
32377         the (alpha/beta/major) target, and all of its commands but one
32378         were coreutils-specific.
32379         (vc-dist): Remove rule.
32380         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32381         Run vc-diff-check, not vc-dist.
32382         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32383
32384 2009-08-27  Bruno Haible  <bruno@clisp.org>
32385
32386         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32387         of 0.
32388
32389 2009-08-27  Bruno Haible  <bruno@clisp.org>
32390
32391         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32392         compilers.
32393         * doc/func.texi: Document the SunPRO C bug.
32394
32395 2009-08-27  Bruno Haible  <bruno@clisp.org>
32396
32397         Fix link error on Solaris.
32398         * tests/test-parse-duration.c (xstrdup): Remove function.
32399
32400 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32401
32402         ignore-value: handle pointer types, too
32403         * lib/ignore-value.h (__attribute__): Remove definition.
32404         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32405         of a more concise and more-often effective "(void) i" statement.
32406         (ignore_ptr): New function to suppress warnings from functions that
32407         return pointers, and to make it explicit that one function doesn't
32408         handle all cases.
32409
32410 2009-08-25  Bruno Haible  <bruno@clisp.org>
32411
32412         dup2: work around a Linux bug.
32413         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32414         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32415         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32416         Reported by Simon Josefsson.
32417
32418 2009-08-25  Jim Meyering  <meyering@redhat.com>
32419
32420         libguestfs uses gnulib
32421         * users.txt: Add libguestfs.
32422
32423 2009-08-24  Eric Blake  <ebb9@byu.net>
32424
32425         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32426         * lib/pipe2.c (includes): Add binary-io.h.
32427         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32428
32429 2009-08-24  Bruno Haible  <bruno@clisp.org>
32430
32431         Tolerate declared but missing accept4 syscall.
32432         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32433         available.
32434         * lib/sys_socket.in.h (accept4): If the function is already present,
32435         override it.
32436         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32437         * modules/accept4 (Makefile.am): Compile accept4.c always.
32438         Reported by Paolo Bonzini and Eric Blake.
32439
32440 2009-08-23  Bruno Haible  <bruno@clisp.org>
32441
32442         New module 'accept4'.
32443         * lib/sys_socket.in.h (accept4): New declaration.
32444         * lib/accept4.c: New file.
32445         * m4/accept4.m4: New file.
32446         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32447         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32448         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32449         HAVE_ACCEPT4.
32450         * modules/accept4: New file.
32451         * doc/glibc-functions/accept4.texi: Mention the new module.
32452
32453 2009-08-24  Jim Meyering  <meyering@redhat.com>
32454
32455         progname: also set global program_invocation_name, when possible
32456         Before this change, a libtool-enabled program that calls glibc's
32457         error function would report the program name as
32458         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32459         * modules/progname (configure.ac): Check for a declaration of
32460         program_invocation_name.
32461         * lib/progname.c:  Include <errno.h>.
32462         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32463         Set program_invocation_name.
32464
32465 2009-08-23  Bruno Haible  <bruno@clisp.org>
32466
32467         * lib/dup3.c: Include <string.h>.
32468
32469 2009-08-23  Bruno Haible  <bruno@clisp.org>
32470
32471         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32472         * lib/pipe2.c (pipe2): Likewise.
32473         Suggested by Eric Blake.
32474
32475 2009-08-23  Bruno Haible  <bruno@clisp.org>
32476
32477         Tolerate declared but missing dup3 syscall.
32478         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32479         * lib/unistd.in.h (dup3): If the function is already present,
32480         override it.
32481         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32482         * modules/dup3 (Makefile.am): Compile dup3.c always.
32483         Reported by Paolo Bonzini.
32484
32485 2009-08-23  Bruno Haible  <bruno@clisp.org>
32486
32487         Tolerate declared but missing pipe2 syscall.
32488         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32489         available.
32490         * lib/unistd.in.h (pipe2): If the function is already present,
32491         override it.
32492         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32493         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32494         Reported by Paolo Bonzini.
32495
32496 2009-08-23  Bruno Haible  <bruno@clisp.org>
32497
32498         * lib/pipe2.c (pipe2): Move #ifs inside function.
32499
32500 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32501
32502         quotearg: document limitations of quote_these_too
32503         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32504         those limitations are created.
32505         * lib/quotearg.h (set_char_quoting): Document that digits and
32506         letters that are special after backslash are not permitted.
32507         (quotearg_char): Cross-reference set_char_quoting documentation.
32508
32509 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32510
32511         quotearg: implement custom_quoting_style
32512         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32513         right_quote fields.
32514         (set_custom_quoting): New public function.
32515         (quotearg_buffer_restyled): Add left_quote and right_quote
32516         arguments, handle them very much like locale quoting, and update
32517         all uses.
32518         (quotearg_n_custom): New public function.
32519         (quotearg_n_custom_mem): New public function.
32520         (quotearg_custom): New public function.
32521         (quotearg_custom_mem): New public function.
32522         * lib/quotearg.h: Prototype and document new public functions.
32523         (enum quoting_style): For escape_quoting_style and
32524         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32525         ignored even though they're otherwise like c_quoting_style.
32526         Add custom_quoting_style member and document with comparison to
32527         clocale_quoting_style.
32528         * tests/test-quotearg.c (custom_quotes): New array.
32529         (custom_results): New array.
32530         (main): Extend to test custom quoting.
32531
32532 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32533
32534         quotearg: fix right quote escaping when it's in quote_these_too
32535         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32536         quote, be sure to prepend only one backslash.
32537         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32538         (main): Test it.
32539
32540 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32541
32542         quotearg-tests: test escaping of embedded locale quotes
32543         * tests/test-quotearg.c (struct result_strings): Add member for
32544         new input.
32545         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32546         (inputs): Add new input.
32547         (results_g): Add expected results.
32548         (flag_results): Likewise.
32549         (locale_results): Likewise.
32550         (compare_strings): Check those.
32551
32552 2009-08-23  Bruno Haible  <bruno@clisp.org>
32553
32554         Tests for module 'dup3'.
32555         * modules/dup3-tests: New file.
32556         * tests/test-dup3.c: New file.
32557
32558         New module 'dup3'.
32559         * lib/unistd.in.h (dup3): New declaration.
32560         * lib/dup3.c: New file.
32561         * m4/dup3.m4: New file.
32562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32563         HAVE_DUP3.
32564         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32565         * modules/dup3: New file.
32566         * doc/glibc-functions/dup3.texi: Mention the new module.
32567
32568 2009-08-23  Bruno Haible  <bruno@clisp.org>
32569
32570         Tweak the dup2 test.
32571         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32572         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32573         the test file is still empty. Fix argument order of lseek.
32574
32575 2009-08-23  Bruno Haible  <bruno@clisp.org>
32576
32577         Avoid test link errors when the modules getopt-gnu, gettext are used.
32578         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32580
32581 2009-08-23  Bruno Haible  <bruno@clisp.org>
32582
32583         Fix getdtablesize() on mingw.
32584         * lib/getdtablesize.c (getdtablesize): Implement differently.
32585         * lib/unistd.in.h (getdtablesize): Improve comment.
32586
32587 2009-08-23  Bruno Haible  <bruno@clisp.org>
32588
32589         New module 'mkostemp'.
32590         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32591         * lib/stdlib.in.h (mksotemp): New declaration.
32592         * lib/mkostemp.c: New file, from glibc with modifications.
32593         * lib/tempname.h (GT_FILE): Remove outdated comment.
32594         (gen_tempname): Add flags argument.
32595         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32596         (__GT_FILE): Map to 1.
32597         (small_open, large_open): Remove macros.
32598         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32599         * lib/mkstemp.c (mkstemp): Update.
32600         * lib/mkdtemp.c (mkdtemp): Likewise.
32601         * m4/mkostemp.m4: New file.
32602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32603         HAVE_MKOSTEMP.
32604         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32605         HAVE_MKOSTEMP.
32606         * modules/mkostemp: New file, based on modules/mkstemp.
32607         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32608         * NEWS: Mention the change.
32609
32610 2009-08-23  Bruno Haible  <bruno@clisp.org>
32611
32612         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32613         Reported by Eric Blake.
32614
32615 2009-08-23  Bruno Haible  <bruno@clisp.org>
32616
32617         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32618         Reported by Eric Blake.
32619
32620 2009-08-23  Bruno Haible  <bruno@clisp.org>
32621
32622         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32623         * modules/pipe2 (Depends-on): Likewise.
32624
32625 2009-08-23  Eric Blake  <ebb9@byu.net>
32626
32627         fcntl-h: add O_TTY_INIT support
32628         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32629         * tests/test-fcntl-h.c (o): Test it.
32630         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32631
32632         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32633         * modules/fcntl: Move <fcntl.h> header replacement...
32634         * modules/fcntl-h: ...to new name, so as not to collide with
32635         like-named function.
32636         * tests/test-fcntl.c: Rename...
32637         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32638         * modules/fcntl-tests: Rename...
32639         * modules/fcntl-h-tests: ...to this.  Update test file name.
32640         * modules/chdir-long (Depends-on): Update clients.
32641         * modules/chdir-safer (Depends-on): Likewise.
32642         * modules/fcntl-safer (Depends-on): Likewise.
32643         * modules/fts (Depends-on): Likewise.
32644         * modules/mkancesdirs (Depends-on): Likewise.
32645         * modules/mkdir-p (Depends-on): Likewise.
32646         * modules/open (Depends-on): Likewise.
32647         * modules/savewd (Depends-on): Likewise.
32648         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32649         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32650
32651 2009-08-22  Bruno Haible  <bruno@clisp.org>
32652
32653         * modules/binary-io (License): Relicense under LGPL.
32654         * modules/pipe2 (License): Likewise.
32655
32656 2009-08-22  Bruno Haible  <bruno@clisp.org>
32657
32658         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32659         return value.
32660         * lib/pipe-filter-gi.c (filter_init): Likewise.
32661         Reported by Eric Blake.
32662
32663 2009-08-22  Bruno Haible  <bruno@clisp.org>
32664
32665         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32666         * modules/pipe (Depends-on): Add pipe2.
32667
32668 2009-08-22  Bruno Haible  <bruno@clisp.org>
32669
32670         Tests for module 'pipe2'.
32671         * modules/pipe2-tests: New file.
32672         * tests/test-pipe2.c: New file.
32673
32674         New module 'pipe2'.
32675         * lib/unistd.in.h (pipe2): New declaration.
32676         * lib/pipe2.c: New file.
32677         * m4/pipe2.m4: New file.
32678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32679         HAVE_PIPE2.
32680         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32681         * modules/pipe2: New file.
32682         * doc/glibc-functions/pipe2.texi: Mention the new module.
32683
32684 2009-08-22  Bruno Haible  <bruno@clisp.org>
32685
32686         Reference some new glibc functions.
32687         * doc/glibc-functions/accept4.texi: New file.
32688         * doc/glibc-functions/dup3.texi: New file.
32689         * doc/glibc-functions/mkostemp.texi: New file.
32690         * doc/glibc-functions/pipe2.texi: New file.
32691         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32692         (Glibc sys/socket.h): Refer to accept4.
32693         (Glibc unistd.h): Refer to dup3, pipe2.
32694         Reported by Eric Blake.
32695
32696 2009-08-22  Jim Meyering  <meyering@redhat.com>
32697             Bruno Haible  <bruno@clisp.org>
32698
32699         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32700         This makes it so packages using automake-1.11's silent-rules option
32701         can print e.g., a single "GEN    configmake.h" line, rather than
32702         the 30+ statements that perform the job.  If you want to see the
32703         actual commands, you can still run "make V=1".
32704         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32705         so that make output is abbreviated when those variables are defined
32706         appropriately.
32707         * modules/argz: Likewise.
32708         * modules/arpa_inet: Likewise.
32709         * modules/byteswap: Likewise.
32710         * modules/configmake: Likewise.
32711         * modules/dirent: Likewise.
32712         * modules/errno: Likewise.
32713         * modules/fcntl: Likewise.
32714         * modules/float: Likewise.
32715         * modules/fnmatch: Likewise.
32716         * modules/getopt-posix: Likewise.
32717         * modules/glob: Likewise.
32718         * modules/iconv_open: Likewise.
32719         * modules/inttypes: Likewise.
32720         * modules/localcharset: Likewise.
32721         * modules/locale: Likewise.
32722         * modules/math: Likewise.
32723         * modules/netdb: Likewise.
32724         * modules/netinet_in: Likewise.
32725         * modules/poll: Likewise.
32726         * modules/posix_spawnp-tests: Likewise.
32727         * modules/sched: Likewise.
32728         * modules/search: Likewise.
32729         * modules/selinux-h: Likewise.
32730         * modules/signal: Likewise.
32731         * modules/spawn: Likewise.
32732         * modules/stdarg: Likewise.
32733         * modules/stdbool: Likewise.
32734         * modules/stddef: Likewise.
32735         * modules/stdint: Likewise.
32736         * modules/stdio: Likewise.
32737         * modules/stdlib: Likewise.
32738         * modules/string: Likewise.
32739         * modules/strings: Likewise.
32740         * modules/sys_file: Likewise.
32741         * modules/sys_ioctl: Likewise.
32742         * modules/sys_select: Likewise.
32743         * modules/sys_socket: Likewise.
32744         * modules/sys_stat: Likewise.
32745         * modules/sys_time: Likewise.
32746         * modules/sys_times: Likewise.
32747         * modules/sys_utsname: Likewise.
32748         * modules/sys_wait: Likewise.
32749         * modules/sysexits: Likewise.
32750         * modules/time: Likewise.
32751         * modules/unistd: Likewise.
32752         * modules/wchar: Likewise.
32753         * modules/wctype: Likewise.
32754
32755 2009-08-22  Jim Meyering  <meyering@redhat.com>
32756
32757         announce-gen: detect write failure
32758         * build-aux/announce-gen: Add Coda at end.
32759         Remove equivalent-but-more-verbose block at top.
32760
32761 2009-08-19  Akim Demaille  <demaille@gostai.com>
32762
32763         bootstrap: --help to stdout.
32764         * bootstrap (usage): Don't send --help to stderr.
32765         Use a here doc instead of a long string.
32766
32767 2009-08-21  Eric Blake  <ebb9@byu.net>
32768
32769         test-popen-safer: split from test-popen
32770         * tests/test-popen.c (main): Move...
32771         * tests/test-popen.h: ...into new file.
32772         * tests/test-popen-safer2.c: New file.
32773         * modules/popen-tests (Files): Add test-popen.h.
32774         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32775         Suggested by Bruno Haible.
32776
32777         test-fcntl-safer: split from test-open
32778         * tests/test-open.c (main): Move...
32779         * tests/test-open.h: ...into new file.
32780         * tests/test-fcntl-safer.c: New file.
32781         * modules/open-tests (Files): Add test-open.h.
32782         * modules/fcntl-safer-tests: New file.
32783         Suggested by Bruno Haible.
32784
32785         test-fopen-safer: split from test-fopen
32786         * tests/test-fopen.c (main): Move...
32787         * tests/test-fopen.h: ...into new file.
32788         * tests/test-fopen-safer.c: New file.
32789         * modules/fopen-tests (Files): Add test-fopen.h.
32790         * modules/fopen-safer-tests: New file.
32791         Suggested by Bruno Haible.
32792
32793 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32794
32795         popen-safer: test O_CLOEXEC at run-time.
32796         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32797
32798 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32799
32800         fcntl: move more flags to the header
32801         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32802         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32803         * lib/fcntl.in.h: Do both things here.
32804
32805 2009-08-21  Jim Meyering  <meyering@redhat.com>
32806
32807         consistently remove $@-t before redirecting to it
32808         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32809         * modules/alloca-opt: Likewise.
32810         * modules/byteswap: Likewise.
32811         * modules/fnmatch: Likewise.
32812         * modules/getopt-posix: Likewise.
32813         * modules/glob: Likewise.
32814         * modules/poll: Likewise.
32815         * modules/posix_spawnp-tests: Likewise.
32816         * modules/sys_socket: Likewise.
32817         * modules/sysexits: Likewise.
32818
32819 2009-08-21  Eric Blake  <ebb9@byu.net>
32820
32821         popen: simplify access to original popen
32822         * lib/popen.c (rpl_popen): No need to worry about popen being a
32823         macro.
32824         Reported by Bruno Haible.
32825
32826 2009-08-20  Eric Blake  <ebb9@byu.net>
32827
32828         build: avoid some compiler warnings
32829         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32830         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32831         type.
32832         (new_exclude_segment, excluded_file_pattern_p)
32833         (excluded_file_name_p): Reduce scope.
32834         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32835         old-style declaration.
32836
32837 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32838
32839         * tests/test-exclude1.sh: Handle Windows EOL.
32840         * tests/test-exclude2.sh: Likewise.
32841         * tests/test-exclude3.sh: Likewise.
32842         * tests/test-exclude4.sh: Likewise.
32843         * tests/test-exclude5.sh: Likewise.
32844         * tests/test-exclude6.sh: Likewise.
32845         * tests/test-exclude7.sh: Likewise.
32846
32847 2009-08-19  Akim Demaille  <demaille@gostai.com>
32848
32849         bootstrap: find sha1sum when named gsha1sum.
32850         * bootstrap (find_tool): New.
32851         ($SHA1SUM): New.
32852         Use it.
32853
32854 2009-08-20  Jim Meyering  <meyering@redhat.com>
32855
32856         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32857         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32858         expression that converts "." in a file name to "\." in the resulting
32859         regexp.  Start with a dummy statement, so that prior shell variable
32860         definitions are expanded portably.  Reported by Simon Josefsson.
32861
32862 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32863
32864         Fix polling for writeability of a screen buffer.
32865         * lib/poll.c: Distinguish input and screen buffers for the
32866         Win32 implementation.
32867         * lib/select.c: Likewise.
32868
32869 2009-08-19  Eric Blake  <ebb9@byu.net>
32870
32871         popen-safer: prevent popen from clobbering std descriptors
32872         * modules/popen-safer: New file.
32873         * lib/popen-safer.c: Likewise.
32874         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32875         * lib/stdio--.h (popen): Provide override.
32876         * lib/stdio-safer.h (popen_safer): Provide declaration.
32877         * tests/test-popen.c (includes): Partially test this.
32878         * modules/popen-safer-tests: New file, for more tests.
32879         * tests/test-popen-safer.c: Likewise.
32880         * MODULES.html.sh (file stream based Input/Output): Mention it.
32881
32882         tests: test some of the *-safer modules
32883         * modules/fopen-safer (Depends-on): Add fopen.
32884         * modules/fcntl-safer (Depends-on): Add fcntl.
32885         * modules/stdlib-safer (Depends-on): Add stdlib.
32886         (configure.ac): Set indicator.
32887         * modules/unistd-safer (configure.ac): Likewise.
32888         * modules/tmpfile-safer (configure.ac): Likewise.
32889         (Depends-on): Add tmpfile.
32890         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32891         active.
32892         * tests/test-fopen.c (includes): Test safer versions when they are
32893         in use.
32894         * tests/test-open.c (includes): Likewise.
32895
32896         popen: fix cygwin 1.5 bug when stdin closed
32897         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32898         * modules/popen: New file.
32899         * modules/popen-tests: Likewise.
32900         * tests/test-popen.c: Likewise.
32901         * m4/popen.m4: Likewise.
32902         * lib/popen.c: Likewise.
32903         * lib/stdio.in.h (popen): New declaration.
32904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32905         * modules/stdio (Makefile.am): Likewise.
32906         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32907
32908 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32909
32910         maint.mk: give full control over update-copyright exclusions
32911         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32912         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32913         (update-copyright): Don't force inclusion of top-level
32914         ChangeLog.  Don't force exclusion of all COPYING files, but make
32915         them the default exclusion instead.
32916
32917 2009-08-16  Bruno Haible  <bruno@clisp.org>
32918
32919         Fix test failures on Solaris 10.
32920         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32921         tests when Solaris iconv() is used.
32922         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32923         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32924         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32925         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32926         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32927
32928 2009-08-16  Bruno Haible  <bruno@clisp.org>
32929
32930         Fix test failures on Solaris 10.
32931         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32932         'tr' program and pass it as first argument.
32933         * tests/test-pipe-filter-gi1.sh: Likewise.
32934         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32935         program as first argument.
32936         * tests/test-pipe-filter-gi1.c (main): Likewise.
32937
32938 2009-08-16  Eric Blake  <ebb9@byu.net>
32939
32940         fpurge: fix previous commits
32941         * modules/fpurge (Makefile.am): Make replacement conditional,
32942         partially reverting 2007-04-29 change; missed in previous
32943         attempt.
32944         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32945         is missing.
32946
32947 2009-08-16  Bruno Haible  <bruno@clisp.org>
32948
32949         Clarify fpurge's effect on the file position.
32950         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32951         * tests/test-fpurge.c (main): Make a second pass for checking the file
32952         position.
32953
32954 2009-08-16  Bruno Haible  <bruno@clisp.org>
32955
32956         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32957         declaration of fpurge is missing.
32958         * tests/test-fpurge.c (main): Check that the file has not more contents
32959         than expected. Close the file before removing it.
32960
32961 2009-08-15  Eric Blake  <ebb9@byu.net>
32962
32963         fpurge: don't wrap working cygwin implementation
32964         * lib/fpurge.c (fpurge): Fix comment typo.
32965         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32966         1.7 to avoid replacement.
32967         * tests/test-fpurge.c (main): Enhance test.
32968
32969 2009-08-15  Eric Blake  <ebb9@byu.net>
32970         and Jim Meyering  <meyering@redhat.com>
32971
32972         test-update-copyright: skip if perl is insufficient
32973         * tests/test-update-copyright.sh: Failure to run maintainer tool
32974         should not cause testsuite failure on cygwin 1.5.
32975
32976 2009-08-14  Eric Blake  <ebb9@byu.net>
32977
32978         doc: mention more functions added in cygwin 1.7.0
32979         * doc/posix-headers/limits.texi (limits.h): Update for recent
32980         cygwin additions.
32981         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32982         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32983         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32984         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32985         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32986
32987 2009-08-14  Eric Blake  <ebb9@byu.net>
32988
32989         maint.mk: simplify update-copyright rule
32990         * top/maint.mk (update-copyright-local): Delete, and document how
32991         to do it in cfg.mk instead.
32992         (update-copyright-exclude-regexp): Delete, and document how to do
32993         it in .x-update-copyright instead.
32994         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32995         exclude ChangeLog.
32996
32997 2009-08-14  Bruno Haible  <bruno@clisp.org>
32998
32999         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33000
33001 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33002
33003         maint.mk: support update-copyright-env
33004         * top/maint.mk (update-copyright-env): Define place-holder.
33005         (update-copyright): Expand $(update-copyright-env) before
33006         invoking update-copyright.
33007
33008 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33009
33010         update-copyright: implement forced reformatting
33011         * build-aux/update-copyright: Implement and document
33012         UPDATE_COPYRIGHT_FORCE.
33013         * tests/test-update-copyright.sh: Test it.
33014
33015 2009-08-14  Eric Blake  <ebb9@byu.net>
33016         and Bruno Haible  <bruno@clisp.org>
33017
33018         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33019         * tests/test-locale.c: Revert previous patch related to NULL.
33020         * tests/test-stdio.c: Likewise.
33021         * tests/test-stdlib.c: Likewise.
33022         * tests/test-string.c: Likewise.
33023         * tests/test-unistd.c: Likewise.
33024         * modules/time-tests (Depends-on): Add verify.
33025         * modules/wchar-tests (Depends-on): Likewise.
33026         * tests/test-time.c: Test for NULL compliance.
33027         * tests/test-wchar.c: Likewise.
33028         * modules/locale (Depends-on): Add stddef.
33029         * modules/stdio (Depends-on): Likewise.
33030         * modules/stdlib (Depends-on): Likewise.
33031         * modules/string (Depends-on): Likewise.
33032         * modules/time (Depends-on): Likewise.
33033         * modules/unistd (Depends-on): Likewise.
33034         * modules/wchar (Depends-on): Likewise.
33035         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33036         * lib/stdlib.in.h (includes): Likewise.
33037         * lib/string.in.h (includes): Likewise.
33038         * lib/time.in.h (includes): Likewise.
33039         * lib/unistd.in.h (includes): Likewise.
33040         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33041         replaced.
33042         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33043         * m4/stddef_h.m4: New file.
33044         * modules/stddef: Likewise.
33045         * lib/stddef.in.h: Likewise.
33046         * modules/stddef-tests: Likewise.
33047         * tests/test-stddef.c: Likewise.
33048         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33049         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33050         * doc/posix-headers/locale.texi (locale.h): Likewise.
33051         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33052         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33053         * doc/posix-headers/string.texi (string.h): Likewise.
33054         * doc/posix-headers/time.texi (time.h): Likewise.
33055         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33056         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33057
33058 2009-08-14  Eric Blake  <ebb9@byu.net>
33059
33060         doc: improve git diff of texinfo files
33061         * .gitattributes: Add rule for *.texi files, with hint on how to
33062         use it.
33063         Copied from m4, and based on a report by Bruno Haible.
33064
33065 2009-08-14  Bruno Haible  <bruno@clisp.org>
33066
33067         Disable multithread support by default on Cygwin 1.5.x for real.
33068         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33069
33070 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33071
33072         update-copyright: much ado about intervals
33073         * build-aux/update-copyright: Implement and document
33074         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33075         of copyright year intervals.
33076         Also, document UPDATE_COPYRIGHT_YEAR.
33077         * tests/test-update-copyright.sh: Test it.
33078
33079         update-copyright: convert 2-digit to 4-digit years
33080         * build-aux/update-copyright: Implement and document.
33081         * tests/test-update-copyright.sh: Update.
33082
33083 2009-08-14  Jim Meyering  <meyering@redhat.com>
33084
33085         test-exclude: avoid coreutils "make check" failure
33086         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33087         just as in test-argmatch.c.
33088
33089 2009-08-13  Eric Blake  <ebb9@byu.net>
33090
33091         test-dup2: fix bad assumption
33092         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33093         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33094
33095         test-version-etc: fix CRLF portability issue
33096         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33097         recognize \r.
33098         * tests/test-argp-version-etc-1.sh: Likewise.
33099
33100         getopt: update client modules
33101         * modules/argp (Depends-on): Use getopt-gnu.
33102         * modules/git-merge-changelog (Depends-on): Likewise.
33103         * modules/long-options (Depends-on): Likewise.
33104         * modules/xstrtol (Depends-on): Likewise.
33105
33106 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33107
33108         * tests/test-version-etc.sh: Don't fail on different
33109         project/version.  Don't fail on CRLF differences.  Rewrite to use
33110         multiple -e instead of multiple sed forks, suggested by Eric Blake
33111         <ebb9@byu.net>.
33112         * tests/test-argp-version-etc-1.sh: Likewise.
33113
33114 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33115
33116         * tests/test-version-etc.sh: Don't fail on different
33117         project/version.
33118
33119 2009-08-12  Bruno Haible  <bruno@clisp.org>
33120
33121         Tests for modules 'getopt-posix', 'getopt-gnu'.
33122         * modules/getopt-posix-tests: New file.
33123         * tests/test-getopt.c: New file.
33124         * tests/test-getopt.h: New file.
33125         * tests/test-getopt_long.h: New file.
33126
33127         New modules 'getopt-posix', 'getopt-gnu'.
33128         * modules/getopt-gnu: New file, renamed from modules/getopt.
33129         * modules/getopt-posix: New file.
33130         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33131         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33132         (gl_GETOPT): Remove macro.
33133         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33134         Disable the test against BSD systems that declare optreset. Test
33135         against mingw bug. Test against lack of support of optional arguments
33136         on many platforms.
33137         * doc/glibc-headers/getopt.texi: Update module name and list of
33138         relevant platforms.
33139         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33140         'getopt-gnu' and more portability problems.
33141         * NEWS: Mention the changes.
33142
33143 2009-08-12  Bruno Haible  <bruno@clisp.org>
33144
33145         Ensure that optarg etc. get declared by <unistd.h>.
33146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33147         AC_USE_SYSTEM_EXTENSIONS.
33148         * modules/getopt (Depends-on): Add 'extensions'.
33149
33150 2009-08-12  Bruno Haible  <bruno@clisp.org>
33151
33152         Avoid test link errors.
33153         * modules/pipe-filter-ii-tests (Makefile.am): Define
33154         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33155         * modules/pipe-filter-gi-tests (Makefile.am): Define
33156         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33158
33159 2009-08-12  Bruno Haible  <bruno@clisp.org>
33160
33161         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33162         gl_GETOPT_SUBSTITUTE before.
33163         (gl_GETOPT): Use it.
33164         * m4/argp.m4 (gl_ARGP): Update.
33165         Reported by Sergey Poznyakoff.
33166
33167         * m4/getopt.m4: Reorder macros.
33168         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33169         (gl_GETOPT_SUBSTITUTE): Remove macro.
33170
33171 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33172
33173         Minor improvement in gitlog-to-changelog
33174
33175         * build-aux/gitlog-to-changelog: New option `--format' makes
33176         output format string configurable.
33177
33178 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33179
33180         Optimize exclude: use hash tables for non-wildcard patterns.
33181
33182         * lib/exclude.c: Include hash.h and mbuiter.h
33183         (struct exclude_pattern, exclude_segment): New data types.
33184         (struct exclude): Rewrite.
33185         (fnmatch_pattern_has_wildcards): New function.
33186         (new_exclude_segment, free_exclude_segment): New functions.
33187         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33188         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33189         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33190         * modules/exclude: Depend on hash and mbuiter.
33191
33192         * modules/exclude-tests: New file.
33193         * tests/test-exclude.c: New file.
33194         * tests/test-exclude1.sh: New file.
33195         * tests/test-exclude2.sh: New file.
33196         * tests/test-exclude3.sh: New file.
33197         * tests/test-exclude4.sh: New file.
33198         * tests/test-exclude5.sh: New file.
33199         * tests/test-exclude6.sh: New file.
33200         * tests/test-exclude7.sh: New file.
33201
33202 2009-08-12  Bruno Haible  <bruno@clisp.org>
33203
33204         Ensure that getopt() gets declared by <unistd.h>.
33205         * lib/unistd.in.h: Conditionally include getopt.h.
33206         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33207         Set GNULIB_UNISTD_H_GETOPT.
33208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33209         GNULIB_UNISTD_H_GETOPT.
33210         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33211
33212 2009-08-12  Bruno Haible  <bruno@clisp.org>
33213
33214         Clarify logic.
33215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33216         gl_replace_getopt instead of GETOPT_H.
33217
33218 2009-08-12  Bruno Haible  <bruno@clisp.org>
33219
33220         * m4/getopt.m4: Add comments.
33221
33222 2009-08-12  Bruno Haible  <bruno@clisp.org>
33223
33224         Disable multithread support by default on Cygwin 1.5.x.
33225         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33226         set gl_use_threads=no if not specified otherwise.
33227
33228 2009-08-11  Bruno Haible  <bruno@clisp.org>
33229
33230         Avoid compilation error on NetBSD 5.0.
33231         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33232         * tests/test-stdio.c: Likewise.
33233         * tests/test-stdlib.c: Likewise.
33234         * tests/test-string.c: Likewise.
33235         * tests/test-unistd.c: Likewise.
33236         Reported by Greg Troxel <gdt@ir.bbn.com>
33237         at <https://savannah.gnu.org/support/?106973>.
33238
33239 2009-08-11  Bruno Haible  <bruno@clisp.org>
33240
33241         * modules/dup2-tests (Depends-on): Remove close.
33242
33243         Undo 2009-07-19 commit.
33244         * modules/acl-tests (Depends-on): Remove close.
33245         * modules/binary-io-tests (Depends-on): Likewise.
33246         * modules/closein-tests (Depends-on): Likewise.
33247         * modules/flock-tests (Depends-on): Likewise.
33248         * modules/fsync-tests (Depends-on): Likewise.
33249         * modules/lseek-tests (Depends-on): Likewise.
33250         * modules/pipe-tests (Depends-on): Likewise.
33251         * modules/posix_spawn-tests (Depends-on): Likewise.
33252         * modules/posix_spawnp-tests (Depends-on): Likewise.
33253         * modules/stat-time-tests (Depends-on): Likewise.
33254         * modules/yesno-tests (Depends-on): Likewise.
33255
33256 2009-08-10  Bruno Haible  <bruno@clisp.org>
33257
33258         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33259
33260 2009-08-10  Bruno Haible  <bruno@clisp.org>
33261
33262         Fix a gcc warning.
33263         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33264
33265 2009-08-10  Bruno Haible  <bruno@clisp.org>
33266
33267         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33268         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33269         not only the first time.
33270         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33271         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33272         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33273         is 1, not only the the first time.
33274
33275 2009-08-10  Bruno Haible  <bruno@clisp.org>
33276
33277         Make it possible to use module 'gethostname' without module 'close'.
33278         * lib/unistd.in.h (close): Evoke a link error only if
33279         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33281         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33282         * modules/unistd (Makefile.am): Substitute
33283         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33284         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33285         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33286         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33287         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33288         * modules/sys_ioctl (Makefile.am): Substitute
33289         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33290         * modules/socket (configure.ac): On native Windows, set
33291         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33292         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33293         Reported by Sam Steingold <sds@gnu.org>.
33294
33295 2009-08-10  Bruno Haible  <bruno@clisp.org>
33296
33297         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33298         * modules/ioctl (configure.ac): Likewise.
33299
33300 2009-08-10  Bruno Haible  <bruno@clisp.org>
33301
33302         Avoid collision between gnulib wrapper and libintl wrapper.
33303         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33304         already defined in intl/printf.c.
33305         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33306         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33307
33308 2009-08-09  Bruno Haible  <bruno@clisp.org>
33309
33310         Make <sys/select.h> really self-contained, also on Solaris 10.
33311         * lib/sys_select.in.h: Include <string.h>.
33312         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33313         Solaris 10 problem.
33314         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33315         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33316         Reported by Jim Meyering.
33317
33318 2009-08-09  Bruno Haible  <bruno@clisp.org>
33319
33320         Avoid warnings from 'aclocal' that are due to a use of macro name
33321         AM_XGETTEXT_OPTION that is not defined in automake.
33322         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33323         automake.
33324         * modules/error (configure.ac): Likewise.
33325         * modules/propername (configure.ac): Likewise.
33326         * modules/vasprintf (configure.ac): Likewise.
33327         * modules/verror (configure.ac): Likewise.
33328         * modules/xprintf (configure.ac): Likewise.
33329         * modules/xvasprintf (configure.ac): Likewise.
33330
33331 2009-08-08  Bruno Haible  <bruno@clisp.org>
33332
33333         Avoid compilation error in C++ mode.
33334         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33335         Reported by Sam Steingold <sds@gnu.org>.
33336
33337 2009-08-08  Bruno Haible  <bruno@clisp.org>
33338
33339         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33340         for the various Unix platforms.
33341         * doc/posix-headers/limits.texi: Update platforms list regarding
33342         HOST_NAME_MAX.
33343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33344
33345 2009-08-07  Jim Meyering  <meyering@redhat.com>
33346
33347         selinux-at: fix typo in a comment
33348         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33349         Spotted by Paolo Bonzini.
33350
33351         selinux-at: remove redundant m4 code, add documentation
33352         * modules/selinux-at (configure.ac): Remove redundant code.
33353         LIB_SELINUX is already set via the dependent module, selinux-h.
33354         (Include): Add quotes around selinux-at.h.
33355         * lib/selinux-at.h: Add documentation.
33356         Reported by Bruno Haible in
33357         http://marc.info/?l=gnulib-bug&m=124958988300749
33358
33359 2009-08-07  Bruno Haible  <bruno@clisp.org>
33360
33361         Avoid link error on MacOS X 10.3 and 10.4.
33362         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33363         on non-ELF systems.
33364         * lib/argp-pv.c (argp_program_version): Likewise.
33365         Reported by Simon Josefsson.
33366
33367 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33368
33369         * tests/test-version-etc.sh: Use $EXEEXT.
33370
33371 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33372
33373         update-copyright: update documentation to point to maint.mk
33374         * build-aux/update-copyright: Here.
33375
33376 2009-08-06  Jim Meyering  <meyering@redhat.com>
33377
33378         maint.mk: support update-copyright-local
33379         * top/maint.mk (update-copyright-local): Define place-holder.
33380         (update-copyright): Depend on $(update-copyright-local).
33381
33382 2009-08-06  Jim Meyering  <meyering@redhat.com>
33383
33384         selinux-at: new module
33385         Initially written for coreutils, this module will soon be
33386         used by findutils, too.
33387         * MODULES.html.sh [Misc]: Add selinux-at.
33388         * lib/selinux-at.h: New file, from coreutils.
33389         * lib/selinux-at.c: Likewise.
33390         * modules/selinux-at: Likewise.
33391         (License): Change from LGPL to GPL, since it depends
33392         on the GPL'd openat module.
33393
33394         doc: update README
33395         * README: Remove references to cogito.
33396         Remove cvs-repo-updating instructions from 2007.
33397         Don't imply that CVS is better if you have limited disk space.
33398
33399 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33400
33401         update-copyright: support C-style comments
33402         * build-aux/update-copyright: Implement and document.
33403         * tests/test-update-copyright.sh: Test.
33404
33405 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33406
33407         update-copyright: support omitted "(C)"
33408         * build-aux/update-copyright: Implement and document.  Also,
33409         allow variable whitespace before "(C)".
33410         * tests/test-update-copyright.sh: Test.
33411
33412 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33413
33414         update-copyright: don't trip on non-FSF copyright statements
33415         * build-aux/update-copyright: Fix so that the first correctly
33416         formatted FSF copyright statement is recognized no matter what
33417         appears before it.  Update documentation.
33418         * tests/test-update-copyright.sh: Test that.
33419
33420 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33421
33422         update-copyright: clean up code a little
33423         * build-aux/update-copyright: Append "_re" to the name of any
33424         variable holding a regular expression.
33425         Replace "old" and "new" with "stmt" in variable names.
33426         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33427         handled correctly.
33428         Format code more consistently.
33429
33430 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33431
33432         update-copyright-tests: improve portability
33433         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33434         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33435
33436 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33437
33438         update-copyright: support @copyright{} and &copy;
33439         * build-aux/update-copyright: Implement and document.
33440         * tests/test-update-copyright.sh: Test.
33441
33442 2009-08-04  Jim Meyering  <meyering@redhat.com>
33443
33444         update-copyright-tests: correctly test EOL=\r\n handling
33445         * tests/test-update-copyright.sh: Put \r at the end of some lines
33446         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33447
33448         maint.mk: make update-copyright exclusion list more configurable
33449         * top/maint.mk (update-copyright): Default to excluding COPYING,
33450         but allow an override, in case someone does want to update that file.
33451
33452         maint.mk: don't update copyright date in COPYING
33453         * top/maint.mk (update-copyright): Exclude COPYING.
33454
33455         maint.mk: add a copyright-updating rule
33456         * top/maint.mk (update-copyright): New rule.
33457         Derived from coreutils/Makefile.am.
33458
33459         update-copyright: rename some variables
33460         * build-aux/update-copyright: Rename a few variables for clarity.
33461         Tweak syntax.  List Joel E. Denny as coauthor.
33462
33463 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33464
33465         update-copyright: fix bug for 2-digit last year and add tests
33466         * build-aux/update-copyright: Fix bug.
33467         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33468         specified.
33469         * modules/update-copyright-tests: New
33470         * tests/test-update-copyright.sh: New.
33471
33472 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33473
33474         update-copyright: handle leading tabs in line prefix
33475         * build-aux/update-copyright: Count leading tabs as 8 spaces
33476         when computing margin.  This helps with the formatting of
33477         ChangeLogs, for example.
33478         Fix documentation a little.
33479
33480 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33481
33482         update-copyright: support EOL=\r\n
33483         * build-aux/update-copyright: Implement that.
33484
33485 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33486
33487         update-copyright: automatically format copyright statements
33488         * build-aux/update-copyright: Implement that.
33489         Also, be a little more predictable and safer by always failing
33490         when the full copyright format is not perfectly recognized as an
33491         unbroken whole.  Discussed at
33492         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33493         Rewrite documentation.
33494
33495 2009-08-03  Bruno Haible  <bruno@clisp.org>
33496
33497         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33498
33499 2009-08-02  Bruno Haible  <bruno@clisp.org>
33500
33501         Tests for module 'uname'.
33502         * modules/uname-tests: New file.
33503         * tests/test-uname.c: New file.
33504
33505         New module 'uname'.
33506         * lib/uname.c: New file.
33507         * m4/uname.m4: New file.
33508         * modules/uname: New file.
33509         * doc/posix-functions/uname.texi: Mention the new module.
33510
33511 2009-08-02  Bruno Haible  <bruno@clisp.org>
33512
33513         Tests for module 'sys_utsname'.
33514         * modules/sys_utsname-tests: New file.
33515         * tests/test-sys_utsname.c: New file.
33516
33517         New module 'sys_utsname'.
33518         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33519         * m4/sys_utsname_h.m4: New file.
33520         * modules/sys_utsname: New file.
33521         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33522
33523 2009-08-02  Bruno Haible  <bruno@clisp.org>
33524
33525         Implicitly initialize the sockets library.
33526         * lib/gethostname.c: Include sockets.h.
33527         (rpl_gethostname): Invoke gl_sockets_startup.
33528         * lib/socket.c: Include sockets.h.
33529         (rpl_socket): Invoke gl_sockets_startup.
33530         * modules/gethostname (Depends-on): Add sockets.
33531         * modules/socket (Depends-on): Likewise.
33532         * tests/test-poll.c: Don't include sockets.h.
33533         (main): Don't invoke gl_sockets_startup.
33534         * tests/test-select.c: Don't include sockets.h.
33535         (main): Don't invoke gl_sockets_startup.
33536
33537 2009-08-02  Bruno Haible  <bruno@clisp.org>
33538
33539         Allow multiple calls to gl_sockets_startup.
33540         * lib/sockets.c (initialized_sockets_version): New variable.
33541         (gl_sockets_startup): Do nothing if already called for this or a higher
33542         version.
33543         (gl_sockets_cleanup): Reset initialized_sockets_version.
33544
33545 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33546
33547         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33548         different project/version.
33549
33550 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33551             Bruno Haible  <bruno@clisp.org>
33552
33553         Tests for module 'pipe-filter-gi'.
33554         * modules/pipe-filter-gi-tests: New file.
33555         * tests/test-pipe-filter-gi1.sh: New file.
33556         * tests/test-pipe-filter-gi1.c: New file.
33557         * tests/test-pipe-filter-gi2.sh: New file.
33558         * tests/test-pipe-filter-gi2-main.c: New file.
33559         * tests/test-pipe-filter-gi2-child.c: New file.
33560
33561         New module 'pipe-filter-gi'.
33562         * lib/pipe-filter-gi.c: New file.
33563         * modules/pipe-filter-gi: New file.
33564
33565 2009-08-02  Bruno Haible  <bruno@clisp.org>
33566             Paolo Bonzini  <bonzini@gnu.org>
33567
33568         Tests for module 'pipe-filter-ii'.
33569         * modules/pipe-filter-ii-tests: New file.
33570         * tests/test-pipe-filter-ii1.sh: New file.
33571         * tests/test-pipe-filter-ii1.c: New file.
33572         * tests/test-pipe-filter-ii2.sh: New file.
33573         * tests/test-pipe-filter-ii2-main.c: New file.
33574         * tests/test-pipe-filter-ii2-child.c: New file.
33575
33576         New module 'pipe-filter-ii'.
33577         * lib/pipe-filter.h: New file.
33578         * lib/pipe-filter-ii.c: New file.
33579         * lib/pipe-filter-aux.h: New file.
33580         * modules/pipe-filter-ii: New file.
33581
33582 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33583
33584         * lib/gc-libgcrypt.c: Change copyright to FSF.
33585         * lib/gc-gnulib.c: Likewise.
33586
33587 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33588
33589         * lib/gethostname.c: Include limits.h.
33590
33591 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33592             Bruno Haible  <bruno@clisp.org>
33593
33594         Ensure HOST_NAME_MAX as part of the gethostname module.
33595         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33596         define also HOST_NAME_MAX.
33597         * tests/test-gethostname.c: Include <limits.h>.
33598         (main): Check also HOST_NAME_MAX.
33599         * doc/posix-headers/limits.texi: Document the mingw problem.
33600
33601 2009-08-02  Bruno Haible  <bruno@clisp.org>
33602
33603         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33604         Add comments.
33605
33606 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33607
33608         * lib/gethostname.c: Add Windows wrapper.
33609         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33610         * modules/gethostname: Depend on sys_socket & errno, for also
33611         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33612         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33613
33614 2009-07-31  Jim Meyering  <meyering@redhat.com>
33615
33616         getloadavg: fix symbol name in comment
33617         * lib/getloadavg.c: Correct a typo I introduced when adding
33618         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33619         Matt Kraai spotted the problem.
33620
33621 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33622
33623         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33624         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33625         code also if ! defined N_NAME_POINTER.
33626         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33627         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33628         but the n_name member is a 12-byte array.
33629
33630 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33631
33632         update-copyright: generalize comment handling
33633         * build-aux/update-copyright: Handle copyright statements
33634         within more comment styles.
33635         Document usage.
33636         Report any file with an external copyright holder or parse failure.
33637
33638 2009-07-29  Jim Meyering  <meyering@redhat.com>
33639
33640         mktime: correct setting of REPLACE_MKTIME
33641         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33642
33643         update-copyright: new module
33644         * modules/update-copyright: New file.
33645         * build-aux/update-copyright: New file.
33646         * MODULES.html.sh (maint+release support): Add update-copyright.
33647
33648 2009-07-27  Bruno Haible  <bruno@clisp.org>
33649
33650         Fix compilation error when <ctime> is used and mktime is replaced.
33651         * lib/time.in.h (mktime): New declaration.
33652         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33653         REPLACE_MKTIME instead of defining mktime in config.h.
33654         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33655         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33656         Reported by Ross McFarland <rwmcfa1@neces.com>.
33657
33658 2009-07-27  Bruno Haible  <bruno@clisp.org>
33659
33660         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33661         Reported by Matt Kraai <mkraai@beckman.com>.
33662
33663 2009-07-25  Jim Meyering  <meyering@redhat.com>
33664
33665         maint.mk: avoid warnings about missing files
33666         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33667         diagnostic when .prev-version does not exist.
33668         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33669         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33670         nonexistent cfg.mk.
33671         Suggestions from Simon Josefsson.
33672
33673 2009-07-25  Bruno Haible  <bruno@clisp.org>
33674
33675         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33676         defined as macros. Needed on QNX 6.4.1.
33677         Reported by Matt Kraai <mkraai@beckman.com>.
33678
33679 2009-07-23  Jim Meyering  <meyering@redhat.com>
33680
33681         maint.mk: invoke "make dist" with a working value of XZ_OPT
33682         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33683
33684 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33685
33686         Make fseeko.c compile on QNX.
33687         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33688
33689 2009-07-22  Peter Simons  <simons@cryp.to>
33690
33691         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33692         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33693         * lib/md4.h: Likewise.
33694         * lib/md5.h: Likewise.
33695         * lib/sha1.h: Likewise.
33696         * lib/sha256.h: Likewise.
33697         * lib/sha512.h: Likewise.
33698
33699         tests-sha1: don't assign literal string to 'char *' variable
33700         * tests/test-sha1.c (main): Declare locals with "const" to match
33701         attributes of the right hand side.
33702
33703 2009-07-21  Eric Blake  <ebb9@byu.net>
33704
33705         dup2: fix more mingw problems
33706         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33707         fd to itself.
33708         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33709         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33710         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33711         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33712         care of mingw bugs.
33713
33714 2009-07-21  Jim Meyering  <meyering@redhat.com>
33715
33716         vc-list-files: avoid failure when /bin/sh is dash
33717         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33718         On some Debian based systems, /bin/sh is a symlink to dash, and running
33719         this command would omit the "/" following each 'tests' prefix:
33720           dash -x build-aux/vc-list-files -C . tests
33721         That is because bash and dash work differently:
33722           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33723           bash ok
33724           dash odd
33725
33726 2009-07-21  Eric Blake  <ebb9@byu.net>
33727
33728         dup2-tests: test previous patch
33729         * modules/dup2-tests: New file.
33730         * tests/test-dup2.c: Likewise.
33731         * tests/test-open.c (main): Avoid unspecified behavior.
33732         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33733         test.
33734
33735         dup2: work around mingw and cygwin 1.5 bug
33736         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33738         * modules/unistd (Makefile.am): Substitute it.
33739         * lib/unistd.in.h (dup2): Declare the replacement.
33740         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33741         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33742         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33743         * modules/execute (Depends-on): Add dup2.
33744         * modules/fseterr (Depends-on): Likewise.
33745         * modules/pipe (Depends-on): Likewise.
33746         * modules/posix_spawn-internal (Depends-on): Likewise.
33747
33748 2009-07-21  Bruno Haible  <bruno@clisp.org>
33749
33750         * modules/.gitattributes: New file.
33751
33752 2009-07-20  Bruno Haible  <bruno@clisp.org>
33753
33754         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33755         (main): Use it.
33756
33757 2009-07-20  Eric Blake  <ebb9@byu.net>
33758
33759         test-pipe: make a bit more robust.
33760         * tests/test-pipe.c (myerr): Allow error messages regardless of
33761         what we do to stderr.
33762         (test_pipe): Rearrange to avoid deadlock.
33763         (child_main): Try a larger read, to ensure we avoided deadlock.
33764         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33765         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33766         if misused.
33767
33768 2009-07-19  Jim Meyering  <meyering@redhat.com>
33769
33770         fts: avoid false-positive cycle-detection
33771         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33772         for each new command line argument.
33773
33774 2009-07-19  Bruno Haible  <bruno@clisp.org>
33775
33776         Fix build error on mingw with the modules sys_select and unistd.
33777         * modules/acl-tests (Depends-on): Add close.
33778         * modules/binary-io-tests (Depends-on): Likewise.
33779         * modules/closein-tests (Depends-on): Likewise.
33780         * modules/flock-tests (Depends-on): Likewise.
33781         * modules/fsync-tests (Depends-on): Likewise.
33782         * modules/lseek-tests (Depends-on): Likewise.
33783         * modules/pipe-tests (Depends-on): Likewise.
33784         * modules/posix_spawn-tests (Depends-on): Likewise.
33785         * modules/posix_spawnp-tests (Depends-on): Likewise.
33786         * modules/stat-time-tests (Depends-on): Likewise.
33787         * modules/yesno-tests (Depends-on): Likewise.
33788
33789 2009-07-19  Bruno Haible  <bruno@clisp.org>
33790
33791         Unify conditionals.
33792         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33793         macros, not at the compiler macros.
33794         * lib/pipe.c: Likewise.
33795         * lib/execute.c: Likewise.
33796         * lib/spawni.c: Likewise.
33797
33798 2009-07-19  Bruno Haible  <bruno@clisp.org>
33799
33800         Fix handling of closed stdin/stdout/stderr on mingw.
33801         * lib/w32spawn.h: Include unistd.h.
33802         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33803         file descriptor with O_NOINHERIT flag.
33804         (fd_safer_noinherit): New function, based on fd-safer.c.
33805         (dup_safer_noinherit): New function, based on dup-safer.c.
33806         (undup_safer_noinherit): New function.
33807         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33808         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33809         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33810         instead of fd_safer.
33811         * tests/test-pipe.c: Include <windows.h>.
33812         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33813         result.
33814
33815         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33816         from main.
33817         (test_pipe): Pass an extra argument for disambiguation.
33818         (main): Invoke parent_main or child_main.
33819
33820         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33821         consistently.
33822
33823 2009-07-18  Eric Blake  <ebb9@byu.net>
33824
33825         test-pipe: fix mingw build
33826         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33827
33828 2009-07-18  Bruno Haible  <bruno@clisp.org>
33829
33830         * modules/pipe-tests (Makefile.am): Fix typo.
33831
33832 2009-07-18  Eric Blake  <ebb9@byu.net>
33833
33834         error: fix mingw build
33835         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33836         Reported by Bruno Haible.
33837
33838         error: avoid undefined use of stdout
33839         * lib/error.c (error, error_at_line): Check that fd 1 is open
33840         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33841         is handling faults and the close_stdout module wants to report the
33842         detection of closed stdout as an error.
33843
33844 2009-07-17  Eric Blake  <ebb9@byu.net>
33845
33846         pipe: be robust in face of closed fds
33847         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33848         should cause child to misbehave.
33849         * modules/pipe-tests: New module.
33850         * tests/test-pipe.c: New file.
33851         * tests/test-pipe.sh: New file.
33852         Reported by Akim Demaille.
33853
33854 2009-07-14  Bruno Haible  <bruno@clisp.org>
33855
33856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33857         Reported by anonymous kc.
33858
33859 2009-07-07  Jim Meyering  <meyering@redhat.com>
33860
33861         maint.mk: don't look for translatable strings in *.m4 or *.mk
33862         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33863         when searching for translatable strings.
33864
33865 2009-07-05  Jim Meyering  <meyering@redhat.com>
33866
33867         remove superfluous parentheses in STREQ definition
33868         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33869         * lib/getugroups.c (STREQ): Likewise.
33870         * lib/fnmatch.c (STREQ): Likewise.
33871         Spotted by Bruno Haible.
33872
33873 2009-07-04  Jim Meyering  <meyering@redhat.com>
33874
33875         argv-iter: new module
33876         * MODULES.html.sh: Add argv-iter.
33877         * lib/argv-iter.c, lib/argv-iter.h: New files.
33878         * modules/argv-iter: New file.
33879         * modules/argv-iter-tests: New file.
33880         * tests/test-argv-iter.c: Test it.
33881
33882 2009-07-04  Bruno Haible  <bruno@clisp.org>
33883
33884         Fix assertion.
33885         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33886         contains more exact copies of a given entry than file2, leave the extra
33887         copies unpaired rather than aborting.
33888         Reported by Eric Blake.
33889
33890 2009-07-02  Bruno Haible  <bruno@clisp.org>
33891
33892         Speedup git-merge-changelog for git cherry-pick.
33893         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33894         (entries_mapping_get): New function, extracted from compute_mapping.
33895         (entries_mapping_reverse_get): New function.
33896         (compute_mapping): Add a 'full' argument. Return the result in a
33897         'struct entries_mapping'.
33898         (main): Update. Access the mappings through entries_mapping_get.
33899         Reported by Eric Blake.
33900
33901 2009-07-02  Bruno Haible  <bruno@clisp.org>
33902
33903         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33904         best_i.
33905
33906 2009-07-02  Bruno Haible  <bruno@clisp.org>
33907
33908         Speed up approximate search for matching ChangeLog entries.
33909         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33910         argument. Call fstrcmp_bounded instead of fstrcmp.
33911         (compute_mapping, try_split_merged_entry, main): Update callers.
33912
33913 2009-07-02  Bruno Haible  <bruno@clisp.org>
33914
33915         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33916
33917 2009-06-30  Bruno Haible  <bruno@clisp.org>
33918
33919         Reduce the number of uc_is_cased calls.
33920         * lib/unicase.h (casing_suffix_context_t): Add
33921         'first_char_except_ignorable' field.
33922         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33923         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33924         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33925         Update initializer.
33926         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33927         case-ignorable characters.
33928         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33929         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33930         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33931         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33932         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33933
33934 2009-06-30  Bruno Haible  <bruno@clisp.org>
33935
33936         Tests for module 'unicase/ignorable'.
33937         * modules/unicase/ignorable-tests: New file.
33938         * tests/unicase/test-ignorable.c: New file, generated by
33939         gen-uni-tables.
33940
33941         Tests for module 'unicase/cased'.
33942         * modules/unicase/cased-tests: New file.
33943         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33944         * tests/unicase/test-predicate-part1.h: New file, derived from
33945         tests/unictype/test-predicate-part1.h.
33946         * tests/unicase/test-predicate-part2.h: New file, same as
33947         tests/unictype/test-predicate-part2.h.
33948
33949         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33950         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33951         (output_casing_properties): New function.
33952         (main): Call it.
33953         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33954         * lib/unicase/cased.c: Include unictype/bitmap.h.
33955         (uc_is_cased): Define through a bitmap lookup.
33956         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33957         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33958         (uc_is_case_ignorable): Define through a bitmap lookup.
33959         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33960         lib/unictype/bitmap.h.
33961         (Depends-on): Add inline. Clean up.
33962         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33963         lib/unictype/bitmap.h.
33964         (Depends-on): Add inline. Clean up.
33965         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33966         recognition.
33967         * tests/unicase/test-u16-tolower.c (main): Likewise.
33968         * tests/unicase/test-u32-tolower.c (main): Likewise.
33969
33970 2009-06-30  Bruno Haible  <bruno@clisp.org>
33971
33972         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33973         * lib/unicase/u16-casemap.c: Likewise.
33974         * lib/unicase/u32-casemap.c: Likewise.
33975
33976 2009-06-29  Bruno Haible  <bruno@clisp.org>
33977
33978         Define u32_casefold as a wrapper around u32_ct_casefold.
33979         * lib/unicase/u32-casefold.c: Update.
33980         * modules/unicase/u32-casefold (Depends-on): Add
33981         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33982         unicase/empty-suffix-context. Clean up.
33983
33984         Define u16_casefold as a wrapper around u16_ct_casefold.
33985         * lib/unicase/u16-casefold.c: Update.
33986         * modules/unicase/u16-casefold (Depends-on): Add
33987         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33988         unicase/empty-suffix-context. Clean up.
33989
33990         Define u8_casefold as a wrapper around u8_ct_casefold.
33991         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33992         * lib/unicase/u8-casefold.c: Update.
33993         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33994         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33995
33996         Define u32_totitle as a wrapper around u32_ct_totitle.
33997         * lib/unicase/u32-totitle.c: Update.
33998         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33999         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34000
34001         Define u16_totitle as a wrapper around u16_ct_totitle.
34002         * lib/unicase/u16-totitle.c: Update.
34003         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34004         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34005
34006         Define u8_totitle as a wrapper around u8_ct_totitle.
34007         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34008         functions.
34009         (FUNC): Delegate to U_CT_TOTITLE.
34010         * lib/unicase/u8-totitle.c: Update.
34011         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34012         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34013
34014         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34015         invocation.
34016         * modules/unicase/u32-tolower (Depends-on): Add
34017         unicase/empty-prefix-context, unicase/empty-suffix-context.
34018
34019         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34020         invocation.
34021         * modules/unicase/u16-tolower (Depends-on): Add
34022         unicase/empty-prefix-context, unicase/empty-suffix-context.
34023
34024         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34025         * modules/unicase/u8-tolower (Depends-on): Add
34026         unicase/empty-prefix-context, unicase/empty-suffix-context.
34027
34028         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34029         invocation.
34030         * modules/unicase/u32-toupper (Depends-on): Add
34031         unicase/empty-prefix-context, unicase/empty-suffix-context.
34032
34033         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34034         invocation.
34035         * modules/unicase/u16-toupper (Depends-on): Add
34036         unicase/empty-prefix-context, unicase/empty-suffix-context.
34037
34038         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34039         * modules/unicase/u8-toupper (Depends-on): Add
34040         unicase/empty-prefix-context, unicase/empty-suffix-context.
34041
34042         New module 'unicase/u32-ct-casefold'.
34043         * lib/unicase/u32-ct-casefold.c: New file.
34044         * modules/unicase/u32-ct-casefold: New file.
34045
34046         New module 'unicase/u16-ct-casefold'.
34047         * lib/unicase/u16-ct-casefold.c: New file.
34048         * modules/unicase/u16-ct-casefold: New file.
34049
34050         New module 'unicase/u8-ct-casefold'.
34051         * lib/unicase/u8-ct-casefold.c: New file.
34052         * lib/unicase/u-ct-casefold.h: New file, derived from
34053         lib/unicase/u-casefold.h.
34054         * modules/unicase/u8-ct-casefold: New file.
34055
34056         New module 'unicase/u32-ct-totitle'.
34057         * lib/unicase/u32-ct-totitle.c: New file.
34058         * modules/unicase/u32-ct-totitle: New file.
34059
34060         New module 'unicase/u16-ct-totitle'.
34061         * lib/unicase/u16-ct-totitle.c: New file.
34062         * modules/unicase/u16-ct-totitle: New file.
34063
34064         New module 'unicase/u8-ct-totitle'.
34065         * lib/unicase/u8-ct-totitle.c: New file.
34066         * lib/unicase/u-ct-totitle.h: New file, derived from
34067         lib/unicase/u-totitle.h.
34068         * modules/unicase/u8-ct-totitle: New file.
34069
34070         New module 'unicase/u32-ct-tolower'.
34071         * lib/unicase/u32-ct-tolower.c: New file.
34072         * modules/unicase/u32-ct-tolower: New file.
34073
34074         New module 'unicase/u16-ct-tolower'.
34075         * lib/unicase/u16-ct-tolower.c: New file.
34076         * modules/unicase/u16-ct-tolower: New file.
34077
34078         New module 'unicase/u8-ct-tolower'.
34079         * lib/unicase/u8-ct-tolower.c: New file.
34080         * modules/unicase/u8-ct-tolower: New file.
34081
34082         New module 'unicase/u32-ct-toupper'.
34083         * lib/unicase/u32-ct-toupper.c: New file.
34084         * modules/unicase/u32-ct-toupper: New file.
34085
34086         New module 'unicase/u16-ct-toupper'.
34087         * lib/unicase/u16-ct-toupper.c: New file.
34088         * modules/unicase/u16-ct-toupper: New file.
34089
34090         New module 'unicase/u8-ct-toupper'.
34091         * lib/unicase/u8-ct-toupper.c: New file.
34092         * modules/unicase/u8-ct-toupper: New file.
34093
34094         Add context arguments to u*_casemap functions.
34095         * lib/unicase/unicasemap.h: Include unicase.h.
34096         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34097         suffix_context arguments.
34098         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34099         functions.
34100         (FUNC): Add prefix_context and suffix_context arguments. Use
34101         uc_is_cased and uc_is_case_ignorable.
34102         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34103         * lib/unicase/u16-casemap.c: Likewise.
34104         * lib/unicase/u32-casemap.c: Likewise.
34105         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34106         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34107         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34108         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34109         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34110         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34111
34112         New module 'unicase/u32-suffix-context'.
34113         * lib/unicase/u32-suffix-context.c: New file.
34114         * modules/unicase/u32-suffix-context: New file.
34115
34116         New module 'unicase/u16-suffix-context'.
34117         * lib/unicase/u16-suffix-context.c: New file.
34118         * modules/unicase/u16-suffix-context: New file.
34119
34120         New module 'unicase/u8-suffix-context'.
34121         * lib/unicase/u8-suffix-context.c: New file.
34122         * lib/unicase/u-suffix-context.h: New file.
34123         * modules/unicase/u8-suffix-context: New file.
34124
34125         New module 'unicase/empty-suffix-context'.
34126         * lib/unicase/empty-suffix-context.c: New file.
34127         * modules/unicase/empty-suffix-context: New file.
34128
34129         New module 'unicase/u32-prefix-context'.
34130         * lib/unicase/u32-prefix-context.c: New file.
34131         * modules/unicase/u32-prefix-context: New file.
34132
34133         New module 'unicase/u16-prefix-context'.
34134         * lib/unicase/u16-prefix-context.c: New file.
34135         * modules/unicase/u16-prefix-context: New file.
34136
34137         New module 'unicase/u8-prefix-context'.
34138         * lib/unicase/u8-prefix-context.c: New file.
34139         * lib/unicase/u-prefix-context.h: New file.
34140         * lib/unicase/context.h: New file.
34141         * modules/unicase/u8-prefix-context: New file.
34142
34143         New module 'unicase/empty-prefix-context'.
34144         * lib/unicase/empty-prefix-context.c: New file.
34145         * modules/unicase/empty-prefix-context: New file.
34146
34147         New module 'unicase/ignorable'.
34148         * lib/unicase/ignorable.c: New file.
34149         * modules/unicase/ignorable: New file.
34150
34151         New module 'unicase/cased'.
34152         * lib/unicase/caseprop.h: New file.
34153         * lib/unicase/cased.c: New file.
34154         * modules/unicase/cased: New file.
34155
34156         New functions for case mapping of substrings.
34157         * lib/unicase.h (casing_prefix_context_t): New type.
34158         (unicase_empty_prefix_context): New variable.
34159         (u8_casing_prefix_context, u16_casing_prefix_context,
34160         u32_casing_prefix_context, u8_casing_prefixes_context,
34161         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34162         declarations.
34163         (casing_suffix_context_t): New type.
34164         (unicase_empty_suffix_context): New variable.
34165         (u8_casing_suffix_context, u16_casing_suffix_context,
34166         u32_casing_suffix_context, u8_casing_suffixes_context,
34167         u16_casing_suffixes_context, u32_casing_suffixes_context,
34168         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34169         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34170         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34171         declarations.
34172
34173 2009-06-28  Jim Meyering  <meyering@redhat.com>
34174
34175         boostrap: indent only with spaces
34176         * build-aux/bootstrap: Indent only with spaces, never TABs.
34177
34178         bootstrap: split long lines
34179         * build-aux/bootstrap: Keep line length < 80.
34180
34181         bootstrap: sync from coreutils
34182         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34183         just as autoreconf does.  Verify a list of prerequisite
34184         package-name,version-number pairs if defined in bootstrap.conf.
34185         Refer to README-prereq, if prerequisites are not satisfied.
34186
34187 2009-06-27  Eric Blake  <ebb9@byu.net>
34188
34189         tests: add test for bogus NULL definition
34190         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34191         * tests/test-stdlib.c: Likewise.
34192         * tests/test-string.c: Likewise.
34193         * tests/test-locale.c: Likewise.
34194         * tests/test-unistd.c: Likewise.
34195         * modules/stdio-tests (Depends-on): Add verify.
34196         * modules/stdlib-tests (Depends-on): Likewise.
34197         * modules/string-tests (Depends-on): Likewise.
34198         * modules/locale-tests (Depends-on): Likewise.
34199         * modules/unistd-tests (Depends-on): Likewise.
34200
34201 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34202
34203         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34204         self-explaining comment.
34205         * m4/selinux-selinux-h: Update serial.
34206         (gl_LIBSELINUX): New macro, adding a warning for missing development
34207         packages to code extracted from...
34208         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34209         Add warning for missing development packages here, too.
34210
34211 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34212
34213         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34214
34215 2009-06-25  Eric Blake  <ebb9@byu.net>
34216
34217         version-etc: fix regression
34218         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34219         gcc.
34220         (version_etc): Use it, to catch bugs with trailing NULL.
34221         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34222         (version_etc_va): Fix logic bug.
34223         * modules/version-etc-tests: Add test.
34224         * tests/test-version-etc.c: New file.
34225         * tests/test-version-etc.sh: Likewise.
34226
34227 2009-06-25  Sam Steingold  <sds@gnu.org>
34228
34229         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34230         mbtowc declaration.
34231
34232 2009-06-25  Eric Blake  <ebb9@byu.net>
34233
34234         fpurge: migrate into <stdio.h>
34235         * lib/fpurge.h: Delete...
34236         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34237         * lib/fpurge.c (fpurge): Change declaring header.
34238         * modules/fpurge (Files): Drop deleted file.
34239         (Depends-on): Add stdio.
34240         (configure.ac): Set witness.
34241         * modules/stdio (Makefile.am): Support fpurge macros.
34242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34243         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34244         * lib/fflush.c: Update client.
34245         * tests/test-fpurge.c: Likewise.
34246         * NEWS: Mention the change.
34247
34248 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34249
34250         * lib/argp-version-etc.c (program_authors): Add const
34251         qualifier.
34252         * lib/version-etc.c: Fix typos in the comments.
34253         * modules/argp-version-etc: Depends on version-etc.
34254
34255 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34256
34257         argp-version-etc: new module.
34258
34259         * lib/argp-version-etc.c: New file.
34260         * lib/argp-version-etc.h: New file.
34261         * modules/argp-version-etc: New file.
34262         * modules/argp-version-etc-tests: New file.
34263         * tests/test-argp-version-etc.c: New test.
34264         * tests/test-argp-version-etc-1.sh: New test.
34265
34266 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34267
34268         Provide additional interfaces and documentation for version-etc
34269         module.
34270
34271         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34272         interfaces.
34273         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34274         prototypes.
34275
34276 2009-06-24  Bruno Haible  <bruno@clisp.org>
34277
34278         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34279         HAVE_LIB${NAME} macro.
34280         Reported by Sam Steingold <sds@gnu.org>.
34281
34282 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34283
34284         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34285         needed.
34286
34287 2009-06-21  Bruno Haible  <bruno@clisp.org>
34288
34289         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34290         work.
34291         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34292         together with LIB${NAME}, LTLIB${NAME}.
34293         Reported by Sam Steingold <sds@gnu.org>.
34294
34295 2009-06-20  Jim Meyering  <meyering@redhat.com>
34296
34297         tests: make sc_require_test_exit_idiom more generic
34298         * top/maint.mk (Exit_witness_file): New overridable variable.
34299         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34300         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34301
34302 2009-06-19  Jim Meyering  <meyering@redhat.com>
34303
34304         hash: reverse order of src/dst parameters in an internal interface
34305         * lib/hash.c (transfer_entries): Reverse order of parameters to
34306         put DST before SRC.  Adjust callers.
34307
34308         tests: test-hash: avoid wholesale duplication
34309         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34310         Instead, use a loop and add a single conditional.
34311
34312         tests: test-hash: allow seed selection via a command line argument
34313         * tests/test-hash.c (get_seed): New function.
34314         (main): Use it.
34315
34316 2009-06-19  Eric Blake  <ebb9@byu.net>
34317
34318         hash: avoid memory leak on allocation failure
34319         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34320         failure.  Factor repeated algorithm...
34321         (transfer_entries): ...into new helper routine.
34322         (hash_delete): React to hash_rehash return value.
34323
34324         hash: reduce memory pressure in hash_rehash no-op case
34325         * lib/hash.c (next_prime): Avoid overflow.
34326         (hash_initialize): Factor bucket size computation...
34327         (compute_bucket_size): ...into new helper function.
34328         (hash_rehash): Use new function and open coding to reduce memory
34329         pressure, and avoid a memory leak in USE_OBSTACK code.
34330         Reported by Jim Meyering.
34331
34332 2009-06-18  Eric Blake  <ebb9@byu.net>
34333
34334         hash: make rotation more obvious
34335         * modules/hash (Depends-on): Add bitrotate and stdint.
34336         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34337         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34338         (SIZE_MAX): Rely on headers for definition.
34339         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34340         (raw_hasher): Use rotr_sz.
34341         Suggested by Jim Meyering.
34342
34343         hash: fix memory leak in last patch
34344         * lib/hash.c (hash_rehash): Avoid memory leak.
34345
34346         hash: avoid no-op rehashing
34347         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34348
34349         hash: provide default callback functions
34350         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34351         (hash_initialize): Use them as defaults.
34352         * tests/test-hash.c (main): Test this.
34353
34354         hash: minor optimization
34355         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34356         when possible.
34357         (hash_initialize): Document this promise.
34358         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34359         * tests/test-hash.c (hash_compare_strings): Test this.
34360
34361 2009-06-18  Bruno Haible  <bruno@clisp.org>
34362
34363         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34364         going to be replaced anyway.
34365
34366 2009-06-18  Bruno Haible  <bruno@clisp.org>
34367
34368         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34369         in one place.
34370         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34371         be replaced anyway.
34372
34373 2009-06-18  Eric Blake  <ebb9@byu.net>
34374
34375         hash: check for resize before insertion
34376         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34377         threshold before insertion, so that a pathological hash_rehash
34378         that fills every bucket can still trigger another rehash.
34379
34380 2009-06-18  Jim Meyering  <meyering@redhat.com>
34381
34382         hash-tests: add a loop around the small tests
34383         * tests/test-hash.c (main): Repeat small tests with selected
34384         small initial table sizes.
34385
34386 2009-06-17  Eric Blake  <ebb9@byu.net>
34387
34388         hash: minor cleanups
34389         * lib/hash.h (hash_entry): Make opaque, by moving...
34390         * lib/hash.c (hash_entry): ...here.
34391         (hash_insert): Clarify restrictions on what can be inserted.
34392         (hash_get_next): Clarify when it is safe to remove an element
34393         during traversal.
34394         (check_tuning): Skip verification when tuning is known safe.
34395         (hash_initialize): Clarify restrictions on tuning.
34396
34397 2009-06-17  Jim Meyering  <jim@meyering.net>
34398         and Eric Blake  <ebb9@byu.net>
34399
34400         hash-tests: new module
34401         * modules/hash-tests: New file.
34402         * tests/test-hash.c: New file.
34403
34404 2009-06-17  Eric Blake  <ebb9@byu.net>
34405
34406         strstr-simple: document new module
34407         * MODULES.html.sh: Document new module.
34408
34409         strstr, strcasestr: replace on platforms with broken memchr
34410         * modules/strstr: Split into...
34411         * modules/strstr-simple: ...new module that does not care about
34412         performance, but does care about glibc bug.
34413         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34414         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34415         if platform memchr is broken, per Debian bug 521737.
34416         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34417         memchr.
34418         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34419         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34420         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34421         * modules/mountlist (Depends-on): Add strstr-simple.
34422         * modules/gen-uni-tables (Depends-on): Likewise.
34423         * modules/argz (Depends-on): Add strstr.
34424
34425 2009-06-17  Bruno Haible  <bruno@clisp.org>
34426
34427         * modules/posix_spawn-internal (Depends-on): Add errno.
34428
34429 2009-06-17  Bruno Haible  <bruno@clisp.org>
34430
34431         Define missing ESTALE on Interix 3.5.
34432         * lib/errno.in.h (ESTALE): Assign a value if missing.
34433         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34434         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34435         missing.
34436         * doc/posix-headers/errno.texi: Mention the Interix bug.
34437         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34438
34439 2009-06-15  Eric Blake  <ebb9@byu.net>
34440
34441         memchr, memchr2: add valgrind exception
34442         * lib/memchr.valgrind: New file.
34443         * lib/memchr2.valgrind: New file.
34444         * modules/memchr (Files): Distribute valgrind file.
34445         * modules/memchr2 (Files): Likewise.
34446
34447         docs: memchr is no longer obsolete
34448         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34449         * lib/string.in.h (memchr): Simplify logic.
34450
34451 2009-06-14  Jim Meyering  <meyering@redhat.com>
34452
34453         link-follow: fix the "checking..." message to not mention trailing slash
34454         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34455         never considered trailing slashes.
34456
34457 2009-06-14  Bruno Haible  <bruno@clisp.org>
34458
34459         * m4/memchr.m4: Mention also the bug on IA-64.
34460         * doc/posix-functions/memchr.texi: Likewise.
34461
34462 2009-06-12  Eric Blake  <ebb9@byu.net>
34463
34464         memchr: detect broken x86_64 and alpha implementations
34465         * modules/memchr-tests (Depends-on): Move mmap detection...
34466         * modules/memchr (Depends-on): ...here.
34467         (configure.ac): Set indicator.
34468         * lib/string.in.h (memchr): Declare replacement.
34469         * modules/string (Makefile.am): Trigger replacement.
34470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34471         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34472         bugs.
34473         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34474         * modules/getpagesize (License): Relax license.
34475
34476 2009-06-11  Bruno Haible  <bruno@clisp.org>
34477
34478         * lib/idpriv.h: Add more references.
34479
34480 2009-06-08  Bruno Haible  <bruno@clisp.org>
34481
34482         Tests for module 'idpriv-droptemp'.
34483         * modules/idpriv-droptemp-tests: New file.
34484         * tests/test-idpriv-droptemp.sh: New file.
34485         * tests/test-idpriv-droptemp.su.sh: New file.
34486         * tests/test-idpriv-droptemp.c: New file.
34487
34488         New module 'idpriv-droptemp'.
34489         * lib/idpriv-droptemp.c: New file.
34490         * modules/idpriv-droptemp: New file.
34491
34492 2009-06-08  Bruno Haible  <bruno@clisp.org>
34493
34494         Tests for module 'idpriv-drop'.
34495         * modules/idpriv-drop-tests: New file.
34496         * tests/test-idpriv-drop.sh: New file.
34497         * tests/test-idpriv-drop.su.sh: New file.
34498         * tests/test-idpriv-drop.c: New file.
34499
34500         New module 'idpriv-drop'.
34501         * lib/idpriv.h: New file.
34502         * lib-idpriv-drop.c: New file.
34503         * m4/idpriv.m4: New file.
34504         * modules/idpriv-drop: New file.
34505
34506 2009-06-08  Bruno Haible  <bruno@clisp.org>
34507
34508         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34509         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34510         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34511         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34512         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34513         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34514         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34515
34516 2009-06-08  Eric Blake  <ebb9@byu.net>
34517
34518         test-strstr: use memory fence, when possible
34519         * tests/test-strstr.c (main): Use memory fence, in order to be
34520         more likely to trigger Debian bug 521737.
34521         * modules/strstr-tests (Files): Pull in additional files.
34522
34523         memchr: no longer obsolete, for wider field testing
34524         * modules/memchr (Status, Notice): Delete, this module is no
34525         longer obsolete.
34526         * modules/vasnprintf (Depends-on): Add memchr.
34527
34528 2009-06-07  Jim Meyering  <meyering@redhat.com>
34529
34530         hash: declare some functions with the warn_unused_result attribute
34531         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34532
34533 2009-06-07  Bruno Haible  <bruno@clisp.org>
34534
34535         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34536         Reported by Eric Blake.
34537
34538 2009-06-06  Eric Blake  <ebb9@byu.net>
34539
34540         test-alignof: fix typo with long double
34541         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34542         compiler error.
34543
34544 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34545
34546         Escape non-texinfo { and }s.
34547         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34548         markup error.
34549
34550 2009-06-04  Jim Meyering  <meyering@redhat.com>
34551
34552         gitlog-to-changelog: don't infloop on an empty commit log
34553         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34554         Reported by Boris Petersen <transacid@centerim.org>.
34555
34556 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34557
34558         version-etc: extend for packagers
34559         Add three new configure options, intended for packagers:
34560           --with-packager="packager name"
34561           --with-packager-version="packager-specific version"
34562           --with-packager-bug-reports="packager bug reporting"
34563         An example with coreutils:
34564           $ ./configure \
34565             --with-packager=Gentoo \
34566             --with-packager-bug-report=http://bugs.gentoo.org/ \
34567             --with-packager-version="patchset 1.6"
34568           $ ./src/ls --version | head -n2
34569           ls (GNU coreutils) 7.1-dirty
34570           Packaged by Gentoo (patchset 1.6)
34571         Note that the bug reporting info via --help doesn't show up because
34572         coreutils uses its own custom emit_bug_reporting_address() implementation
34573         in src/system.h.  If it didn't, it'd look like:
34574           $ ./src/ls --help | tail -n4
34575           Report bugs to <bug-coreutils@gnu.org>.
34576           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34577           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34578           General help using GNU software: <http://www.gnu.org/gethelp/>.
34579         * lib/version-etc.c: Print new information, if provided.
34580         * m4/version-etc.m4: New file.
34581         * modules/version-etc (Files): Add m4/version-etc.m4.
34582         (configure.ac): Add gl_VERSION_ETC.
34583
34584 2009-05-31  Bruno Haible  <bruno@clisp.org>
34585
34586         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34587         and 'int64_t'.
34588         * modules/alignof-tests (Dependencies): Add stdint.
34589         Reported by Eric Blake.
34590
34591 2009-05-31  Bruno Haible  <bruno@clisp.org>
34592
34593         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34594         restriction due to compiler bugs.
34595         Reported by Eric Blake.
34596
34597 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34598             Bruno Haible  <bruno@clisp.org>
34599
34600         Fix test-alignof failure.
34601         * lib/alignof.h (alignof_slot): New macro.
34602         (alignof_type): New macro, with the same semantics as the previous
34603         'alignof'.
34604         (alignof): Alias to alignof_slot.
34605         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34606         check that the results are usable as constant expressions.
34607
34608 2009-05-31  Bruno Haible  <bruno@clisp.org>
34609
34610         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34611         * tests/test-memchr.c (main): Check that memchr does not read past the
34612         first occurrence of the byte.
34613         * tests/test-strstr.c (main): Update comment.
34614         Suggested by Eric Blake.
34615
34616 2009-05-30  Bruno Haible  <bruno@clisp.org>
34617
34618         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34619         detail how to use dumpbin.
34620         Reported by David Byron <dbyron@dbyron.com>.
34621
34622 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34623
34624         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34625
34626 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34627
34628         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34629
34630 2009-05-28  Bruno Haible  <bruno@clisp.org>
34631
34632         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34633         build-aux/ files.
34634
34635 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34636
34637         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34638
34639 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34640
34641         * gnulib-tool (sed_transform_main_lib_file)
34642         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34643         regexps.
34644
34645 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34646
34647         * tests/test-strstr.c: Add another self-test.
34648         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34649         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34650
34651 2009-05-23  Bruno Haible  <bruno@clisp.org>
34652
34653         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34654         change.
34655
34656 2009-05-21  Bruno Haible  <bruno@clisp.org>
34657
34658         Simplify use of mode_t varargs.
34659         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34660         uses 'mode_t' or 'int'.
34661         * lib/openat.c (openat): Likewise.
34662         * lib/open-safer.c (open_safer): Likewise.
34663         * m4/mode_t.m4: New file.
34664         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34665         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34666         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34667         * modules/open (Files): Add m4/mode_t.m4.
34668         * modules/openat (Files): Likewise.
34669         * modules/fcntl-safer (Files): Likewise.
34670         Suggested by Eric Blake.
34671
34672 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34673
34674         * doc/glibc-functions/fallocate.texi: New file.
34675         * doc/gnulib.texi: Include it.
34676
34677 2009-05-21  Eric Blake  <ebb9@byu.net>
34678             Bruno Haible  <bruno@clisp.org>
34679
34680         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34681         invocations.
34682         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34683
34684 2009-05-21  Eric Blake  <ebb9@byu.net>
34685             Bruno Haible  <bruno@clisp.org>
34686
34687         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34688         include_next. Fix of 2008-11-20 commit.
34689         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34690         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34691         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34692         NEXT_MATH_H.
34693         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34694         instead of NEXT_MATH_H.
34695
34696 2009-05-21  Bruno Haible  <bruno@clisp.org>
34697
34698         Avoid redefinition warnings for SIZE_MAX.
34699         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34700         Reported by Simon Josefsson.
34701
34702 2009-05-21  Bruno Haible  <bruno@clisp.org>
34703
34704         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34705         AC_CACHE_VAL.
34706
34707 2009-05-20  Bruno Haible  <bruno@clisp.org>
34708
34709         Make zeroptr.h work on mingw.
34710         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34711         mprotect.
34712         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34713         * modules/memchr2-tests (configure.ac): Likewise.
34714         * modules/memcmp-tests (configure.ac): Likewise.
34715         * modules/memmem-tests (configure.ac): Likewise.
34716         * modules/memrchr-tests (configure.ac): Likewise.
34717         Reported by Simon Josefsson.
34718
34719 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34720
34721         * tests/test-glob.c: Include string.h for strcmp prototype.
34722
34723 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34724
34725         * modules/getdelim (Depends-on): Add explicit stdint, although it
34726         was implicitly already pulled in via realloc-posix.
34727         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34728
34729 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34730
34731         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34732         G. Christensen" <tgc@jupiterrise.com>.
34733         * m4/sys_socket_h.m4: Check for sa_family_t.
34734         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34735         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34736         * tests/test-sys_socket.c: Check that sa_family_t works.
34737
34738 2009-05-18  Eric Blake  <ebb9@byu.net>
34739
34740         maint.mk: allow gnulib_dir in VPATH build
34741         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34742
34743 2009-05-15  Jim Meyering  <meyering@redhat.com>
34744
34745         maint.mk: Give gnulib_dir a default definition.
34746         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34747         Thus, most packages no longer need to specify this variable in cfg.mk
34748
34749 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34750
34751         rename.m4: fix typos that would make non-mingw cross-configure fail
34752         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34753
34754 2009-05-13  Eric Blake  <ebb9@byu.net>
34755
34756         mmap-anon: avoid out-of-order autoconf expansion
34757         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34758         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34759         * modules/memchr-tests (Depends-on): Add extensions.
34760         * modules/memchr2-tests (Depends-on): Add extensions.
34761         * modules/memcmp-tests (Depends-on): Add extensions.
34762         * modules/memmem-tests (Depends-on): Add extensions.
34763         * modules/memrchr-tests (Depends-on): Add extensions.
34764
34765 2009-05-13  Bruno Haible  <bruno@clisp.org>
34766
34767         Make some tests ISO C 99 compliant.
34768         * tests/zerosize-ptr.h: New file.
34769         * tests/test-memchr.c: Include zerosize-ptr.h.
34770         (main): Use a zero-size object pointer instead of NULL.
34771         * tests/test-memchr2.c: Include zerosize-ptr.h.
34772         (main): Use a zero-size object pointer instead of NULL.
34773         * tests/test-memcmp.c: Include zerosize-ptr.h.
34774         (main): Use a zero-size object pointer instead of NULL.
34775         * tests/test-memmem.c: Include zerosize-ptr.h.
34776         (main): Use a zero-size object pointer instead of NULL.
34777         * tests/test-memrchr.c: Include zerosize-ptr.h.
34778         (main): Use a zero-size object pointer instead of NULL.
34779         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34780         m4/mmap-anon.m4.
34781         (Depends-on): Add getpagesize.
34782         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34783         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34784         m4/mmap-anon.m4.
34785         (Depends-on): Add getpagesize.
34786         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34787         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34788         m4/mmap-anon.m4.
34789         (Depends-on): Add getpagesize.
34790         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34791         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34792         m4/mmap-anon.m4.
34793         (Depends-on): Add getpagesize.
34794         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34795         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34796         m4/mmap-anon.m4.
34797         (Depends-on): Add getpagesize.
34798         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34799
34800 2009-05-12  Bruno Haible  <bruno@clisp.org>
34801
34802         Tests for module 'alignof'.
34803         * modules/alignof-tests: New file.
34804         * tests/test-alignof.c: New file.
34805
34806 2009-05-12  Bruno Haible  <bruno@clisp.org>
34807
34808         Fix alignof macro.
34809         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34810         vendor compilers that are always correct.
34811
34812 2009-05-12  Bruno Haible  <bruno@clisp.org>
34813
34814         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34815         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34816         not whether its fully works.
34817
34818 2009-05-12  Bruno Haible  <bruno@clisp.org>
34819
34820         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34821
34822 2009-05-12  Jim Meyering  <meyering@redhat.com>
34823
34824         * top/maint.mk: Adjust backslash alignment.
34825
34826 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34827
34828         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34829
34830 2009-05-11  Eric Blake  <ebb9@byu.net>
34831
34832         argp: avoid undefined behavior
34833         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34834         macros.
34835
34836 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34837
34838         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34839         user.name to prevent git commit from complaining.
34840
34841 2009-05-10  Bruno Haible  <bruno@clisp.org>
34842
34843         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34844         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34845         it rewrites every file name only once.
34846         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34847
34848 2009-05-08  Bruno Haible  <bruno@clisp.org>
34849
34850         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34851         instead of 'max'.
34852
34853 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34854
34855         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34856         sockaddr_storage test.
34857
34858 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34859
34860         * modules/sys_socket (Makefile.am): Substitute
34861         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34862         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34863         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34864         * tests/test-sys_socket.c: Check sockaddr_storage.
34865
34866 2009-05-08  Bruno Haible  <bruno@clisp.org>
34867
34868         New module 'alignof'.
34869         * lib/alignof.h: New file.
34870         * modules/alignof: New file.
34871
34872 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34873             Bruno Haible  <bruno@clisp.org>
34874
34875         Fix test-file-has-acl on FreeBSD.
34876         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34877         mask is implicitly added.
34878         * tests/test-file-has-acl.c: Include <signal.h>.
34879         (main): Terminate the test after 5 seconds.
34880         * modules/acl-tests (configure.ac): Check for alarm function.
34881
34882 2009-05-04  Bruno Haible  <bruno@clisp.org>
34883
34884         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34885         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34886         * modules/errno (configure.ac): Drop AC_REQUIRE.
34887         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34888         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34889
34890 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34891
34892         * modules/glob-tests: New module.
34893         * tests/test-glob.c: Add.
34894
34895 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34896
34897         * modules/fnmatch-tests: New module.
34898         * tests/test-fnmatch.c: Add.
34899
34900 2009-05-04  Eric Blake  <ebb9@byu.net>
34901
34902         maint: make the new no-submodule-changes rule VPATH-safe
34903         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34904
34905 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34906             Bruno Haible  <bruno@clisp.org>
34907
34908         acl: Fix infinite loop on FreeBSD.
34909         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34910         of return value from acl_get_entry.
34911         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34912         Likewise.
34913
34914 2009-05-03  Bruno Haible  <bruno@clisp.org>
34915
34916         * lib/acl-internal.h (acl_entries): Clarify return value.
34917         * lib/acl_entries.c (acl_entries): Likewise.
34918
34919 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34920
34921         Bug fix in acl module.
34922         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34923
34924 2009-05-03  Bruno Haible  <bruno@clisp.org>
34925
34926         Create gperf-generated file in the source dir, not in the build dir.
34927         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34928         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34929         * modules/unicase/locale-language (unicase/locale-languages.h):
34930         Likewise.
34931         * modules/unicase/special-casing (unicase/special-casing-table.h):
34932         Likewise.
34933         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34934         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34935         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34936         Reported by Ralf Wildenhues.
34937
34938 2009-05-03  Bruno Haible  <bruno@clisp.org>
34939
34940         * modules/fnmatch (Description, configure.ac): Taken from
34941         fnmatch-posix.
34942         * modules/fnmatch-posix: Turn into a symbolic reference to the
34943         'fnmatch' module, and deprecate.
34944         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34945
34946 2009-05-03  Bruno Haible  <bruno@clisp.org>
34947
34948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34949         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34950         Reported by Ralf Wildenhues.
34951
34952 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34953
34954         * m4/fnmatch.m4: Fix fnmatch re-define.
34955
34956 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34957
34958         priv-set: new module and tests; adapt write-any-file
34959         * lib/priv-set.c: New file.
34960         * lib/priv-set.h: New file.
34961         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34962         * lib/write-any-file.c: Simplify by using priv-set module.
34963         * m4/priv-set.m4: New file.
34964         * modules/priv-set: New file.
34965         * modules/unlinkdir: Add dependency on priv-set module.
34966         * modules/write-any-file: Likewise.
34967
34968         Tests for module 'priv-set'.
34969         * modules/priv-set-tests: New file.
34970         * tests/test-priv-set.c: New file.
34971
34972 2009-05-03  Jim Meyering  <meyering@redhat.com>
34973             Bruno Haible  <bruno@clisp.org>
34974
34975         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34976         use the converted UTF-8 variant of the name instead.
34977
34978 2009-05-03  Jim Meyering  <meyering@redhat.com>
34979
34980         tests: tighten some getdate tests
34981         * tests/test-getdate.c (main): Tighten tests: require equality,
34982         not just greater than.  Set TZ envvar to UTC0.
34983
34984 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34985
34986         getdate: correctly interpret "next monday" when run on a Monday
34987         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34988         that e.g., "next tues" (when run on a tuesday) results in a date
34989         that is one week in the future, and not today's date.
34990         I.e., add a week when the wday is the same as the current one.
34991         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34992         and earlier by Martin Bernreuther and Jan Minář.
34993         * tests/test-getdate.c (main): Check that "next DAY" is always in
34994         the future and that "last DAY" is always in the past.
34995
34996 2009-05-02  Jim Meyering  <meyering@redhat.com>
34997
34998         build: ensure that a release build fails when a submodule is unclean
34999         * top/maint.mk (no-submodule-changes): New rule.
35000         (alpha beta major): Depend on it.
35001
35002 2009-05-02  Bruno Haible  <bruno@clisp.org>
35003
35004         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35005         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35006         shell variable gl_fnmatch_required to detect which variant is
35007         requested.
35008         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35009         gl_FUNC_FNMATCH_POSIX.
35010         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35011         exclude fnmatch-posix.
35012
35013 2009-05-02  Bruno Haible  <bruno@clisp.org>
35014
35015         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35016         * modules/mbsrtowcs (License): Change to LGPLv2+.
35017         * modules/strnlen1 (License): Likewise.
35018         Reported by Simon Josefsson.
35019
35020 2009-05-02  Bruno Haible  <bruno@clisp.org>
35021
35022         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35023         "cross".
35024         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35025         gnulib-tool was called with option --source-base=lib.
35026
35027 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35028
35029         Use automake *-local hooks without commands, for extensibility.
35030         * modules/localcharset (Makefile.am): Rename install-exec-local
35031         rule to install-exec-localcharset, and make it a prerequisite of
35032         install-exec-local.  Likewise, rename the uninstall-local rule to
35033         uninstall-localcharset, and make it a prerequisite of the former.
35034
35035 2009-05-01  Bruno Haible  <bruno@clisp.org>
35036
35037         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35038         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35039         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35040         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35041         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35042         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35043         m4/locale-zh.m4, m4/codeset.m4.
35044
35045         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35046         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35047         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35048         m4/locale-zh.m4.
35049
35050         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35051         REPLACE_WCRTOMB if mbstate_t must be replaced.
35052         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35053         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35054
35055 2009-05-01  Bruno Haible  <bruno@clisp.org>
35056
35057         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35058         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35059         dngettext, dcngettext, textdomain, bindtextdomain,
35060         bind_textdomain_codeset): Undefine before redefining.
35061
35062 2009-04-30  Bruno Haible  <bruno@clisp.org>
35063
35064         Fix bug introduced on 2009-04-25.
35065         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35066         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35067         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35068         is defined.
35069         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35070         is defined.
35071         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35072         is defined.
35073         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35074
35075 2009-04-28  Bruno Haible  <bruno@clisp.org>
35076
35077         Comment tweaks.
35078         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35079         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35080         * lib/unicase.h (u*_casexfrm): Likewise.
35081         Reported by Paolo Bonzini.
35082
35083 2009-04-28  Bruno Haible  <bruno@clisp.org>
35084
35085         Fix a compilation error.
35086         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35087         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35088         Reported by Jim Meyering.
35089
35090 2009-04-27  Bruno Haible  <bruno@clisp.org>
35091
35092         New module 'libunistring'.
35093         * modules/libunistring: New file.
35094         * m4/libunistring.m4: New file.
35095         * MODULES.html.sh (Unicode string functions): Add it.
35096
35097 2009-04-27  Eric Blake  <ebb9@byu.net>
35098
35099         maint.mk: allow package-specific header to provide <config.h>
35100         * top/maint.mk (sc_require_config_h): New variable.
35101         (sc_require_config_h, sc_require_config_h_first): Use it.
35102
35103 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35104
35105         * top/maint.mk (sc_avoid_if_before_free): Except
35106         useless-if-before-free script.
35107
35108 2009-04-27  Eric Blake  <ebb9@byu.net>
35109
35110         maintainer-makefile: depend on all required helper scripts
35111         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35112         useless-if-before-free.
35113         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35114         version, rather than assuming gnulib checkout is available.
35115         Reported by Simen Josefsson.
35116
35117 2009-04-26  Bruno Haible  <bruno@clisp.org>
35118
35119         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35120         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35121         "../" or "..".
35122
35123 2009-04-26  Bruno Haible  <bruno@clisp.org>
35124
35125         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35126         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35127         AC_LIB_HAVE_LINKFLAGS.
35128
35129 2009-04-26  Bruno Haible  <bruno@clisp.org>
35130
35131         Simplify calling convention of u*_conv_from_encoding.
35132         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35133         u32_conv_from_encoding): Expect a resultbuf argument and return the
35134         result directly as a pointer.
35135         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35136         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35137         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35138         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35139         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35140         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35141         Update.
35142         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35143         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35144         * lib/vasnprintf.c (VASNPRINTF): Update.
35145         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35146         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35147         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35148         * NEWS: Mention the change.
35149
35150 2009-04-26  Bruno Haible  <bruno@clisp.org>
35151
35152         Simplify calling convention of u*_conv_to_encoding.
35153         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35154         u32_conv_to_encoding): Expect a resultbuf argument and return the
35155         result directly as a pointer.
35156         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35157         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35158         freeing scaled_offsets if mem_iconveha failed.
35159         * lib/unicase/u-casexfrm.h (FUNC): Update.
35160         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35161         * lib/vasnprintf.c (VASNPRINTF): Update.
35162         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35163         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35164         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35165         * NEWS: Mention the change.
35166
35167 2009-04-26  Bruno Haible  <bruno@clisp.org>
35168
35169         Avoid test failures on AIX and OSF/1.
35170         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35171         malloc(0).
35172         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35173         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35174         Likewise.
35175         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35176         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35177         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35178         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35179         * doc/posix-functions/malloc.texi: Document the portability problem
35180         related to malloc(0).
35181
35182 2009-04-26  Bruno Haible  <bruno@clisp.org>
35183
35184         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35185         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35186         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35187
35188 2009-04-25  Bruno Haible  <bruno@clisp.org>
35189
35190         Avoid link error when creating a namespace clean library.
35191         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35192         as macro with arguments if already defined as an alias.
35193         * lib/signbitf.c (gl_signbitf): Don't undefine.
35194         * lib/signbitd.c (gl_signbitd): Don't undefine.
35195         * lib/signbitl.c (gl_signbitl): Don't undefine.
35196
35197 2009-04-25  Jim Meyering  <meyering@redhat.com>
35198
35199         vc-list-files: fix another quoting bug
35200         * build-aux/vc-list-files: Avoid sed backslash expansion
35201         of pathological directory names.
35202
35203 2009-04-25  Eric Blake  <ebb9@byu.net>
35204
35205         vc-list-files: fix shell quoting error
35206         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35207         timestamp.
35208
35209 2009-04-25  Jim Meyering  <meyering@redhat.com>
35210
35211         vc-list-files: restore lost functionality with subdir argument
35212         * build-aux/vc-list-files: When given a non-"." sub-directory
35213         argument, substitute the $dir/ prefix back onto each resulting name.
35214         Otherwise, coreutils' root_tests check would fail.
35215
35216 2009-04-24  Eric Blake  <ebb9@byu.net>
35217
35218         vc-list-files: ignore git symlinks
35219         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35220         than ls-files, to ignore git symlinks.
35221
35222         maint.mk: import improvements from m4
35223         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35224         (move_if_change): Delete unused macro.
35225         (news-date-check, vc-diff-check): Support VPATH builds.
35226         (announcement): Likewise.  Split --bootstrap-tools list...
35227         (boostrap-tools): ...into separate list, which can be overridden
35228         in cfg.mk.
35229         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35230         requiring dependency on useless-if-before-free module.
35231         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35232         Support VPATH builds.
35233
35234 2009-04-24  Jim Meyering  <meyering@redhat.com>
35235
35236         maint.mk: remove coreutils-specific rules and variables
35237         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35238         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35239         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35240
35241         maint.mk: remove obsolete rule
35242         * top/maint.mk (rel-check): Remove rule.
35243         (WGET, WGETFLAGS): Remove now-unused variables.
35244
35245 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35246
35247         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35248         consistency.
35249
35250         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35251         '$(PATH_SEPARATOR)' instead of ':'.
35252
35253 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35254
35255         * lib/getopt1.c (main): Use 'const' for static array.
35256
35257 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35258
35259         * top/maint.mk: Sync with coreutils.
35260         * NEWS: Explain incompatibilities.
35261
35262 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35263             Bruno Haible  <bruno@clisp.org>
35264
35265         Fix cross-compilation results.
35266         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35267         statement, as third argument of AC_TRY_RUN.
35268         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35269         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35270         Likewise.
35271         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35272         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35273         Likewise.
35274         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35275         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35276         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35277
35278 2009-04-20  Bruno Haible  <bruno@clisp.org>
35279
35280         Avoid test failure on mingw.
35281         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35282
35283 2009-04-20  Bruno Haible  <bruno@clisp.org>
35284
35285         Avoid compilation error on mingw.
35286         * modules/localename-tests (Depends-on): Add locale.
35287
35288 2009-04-19  Bruno Haible  <bruno@clisp.org>
35289
35290         Support for building a shared library on Windows platforms.
35291         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35292         (main): Test the presence of UNINORM_NFC here.
35293         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35294         (main): Test the presence of UNINORM_NFD here.
35295         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35296         (main): Test the presence of UNINORM_NFKC here.
35297         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35298         (main): Test the presence of UNINORM_NFKD here.
35299
35300 2009-04-19  Bruno Haible  <bruno@clisp.org>
35301
35302         Avoid a compiler warning.
35303         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35304         Change type of variable 'sequence'.
35305
35306 2009-04-19  Bruno Haible  <bruno@clisp.org>
35307
35308         * modules/configmake (Makefile.am): When the contents of configmake.h
35309         does not change, arrange to preserve its modification time.
35310
35311 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35312
35313         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35314         gettext domain.
35315
35316 2009-04-16  Jim Meyering  <meyering@redhat.com>
35317
35318         useless-if-before-free: improve conversion code
35319         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35320         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35321
35322 2009-04-14  Bruno Haible  <bruno@clisp.org>
35323
35324         * modules/fcntl (Depends-on): Add extensions.
35325         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35326
35327 2009-04-12  Ben Pfaff  <blp@gnu.org>
35328
35329         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35330         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35331
35332 2009-03-20  Ben Pfaff  <blp@gnu.org>
35333
35334         Make rename replace existing destinations on Windows.
35335         * m4/rename.m4: Add test for Mingw.
35336         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35337         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35338         * doc/posix-functions/rename.texi: Document.
35339
35340 2009-04-10  Bruno Haible  <bruno@clisp.org>
35341
35342         New include file "iconveh.h".
35343         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35344         * lib/striconveh.h: Include it.
35345         (enum iconv_ilseq_handler): Remove definition.
35346         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35347         striconveh.h.
35348         * lib/striconveha.c: Include striconveh.h.
35349         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35350         * modules/striconveh (Files): Add lib/iconveh.h.
35351         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35352         lib/striconveh.h.
35353
35354 2009-04-10  Bruno Haible  <bruno@clisp.org>
35355
35356         * lib/uniconv.h: Update comment.
35357
35358 2009-04-10  Bruno Haible  <bruno@clisp.org>
35359
35360         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35361         always.
35362         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35363         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35364         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35365         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35366         "unistring-notinline.h", so that the function gets defined always.
35367         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35368         * lib/unistr/u8-uctomb.c: Likewise.
35369         * lib/unistr/u16-mbtouc.c: Likewise.
35370         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35371         * lib/unistr/u16-uctomb.c: Likewise.
35372         * lib/unistr/u32-mbtouc.c: Likewise.
35373         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35374         * lib/unistr/u32-uctomb.c: Likewise.
35375
35376 2009-04-10  Bruno Haible  <bruno@clisp.org>
35377
35378         Mark 'utime' obsolete.
35379         * modules/utime (Status, Notice): New sections.
35380         Suggested by Jim Meyering.
35381
35382         Fix cross-compile guess for utime test.
35383         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35384         autoconf.
35385         * doc/posix-functions/utime.texi: Give more precisions.
35386         Reported by Jan <ipif@ymail.com>.
35387
35388 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35389
35390         filevercmp: correct today's change
35391         * lib/filevercmp.c: Also handle coreutils' test inputs.
35392         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35393
35394         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35395         for reporting it.
35396         * lib/filevercmp.c: Special handle for "", "." and "..".
35397         * tests/test-filevercmp.c: Enlarge the set suite.
35398
35399 2009-04-07  Jim Meyering  <meyering@redhat.com>
35400
35401         useless-if-before-free: show how to remove braced useless free, too
35402         * build-aux/useless-if-before-free: still only in a comment, though.
35403
35404 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35405
35406         maint.mk: import changes to syntax-check macros from coreutils
35407         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35408         Use them in the relevant macros.
35409
35410 2009-04-06  Bruno Haible  <bruno@clisp.org>
35411
35412         Fix unportable use of bit-fields.
35413         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35414         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35415         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35416
35417 2009-04-06  Bruno Haible  <bruno@clisp.org>
35418
35419         Avoid test failures on AIX and OSF/1.
35420         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35421         that malloc(0) = NULL.
35422         * tests/unicase/test-u8-tolower.c (check): Likewise.
35423         * tests/unicase/test-u8-totitle.c (check): Likewise.
35424         * tests/unicase/test-u8-toupper.c (check): Likewise.
35425         * tests/unicase/test-u16-casefold.c (check): Likewise.
35426         * tests/unicase/test-u16-tolower.c (check): Likewise.
35427         * tests/unicase/test-u16-totitle.c (check): Likewise.
35428         * tests/unicase/test-u16-toupper.c (check): Likewise.
35429         * tests/unicase/test-u32-casefold.c (check): Likewise.
35430         * tests/unicase/test-u32-tolower.c (check): Likewise.
35431         * tests/unicase/test-u32-totitle.c (check): Likewise.
35432         * tests/unicase/test-u32-toupper.c (check): Likewise.
35433         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35434         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35435         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35436         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35437         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35438         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35439         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35440         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35441         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35442         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35443         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35444         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35445
35446 2009-04-05  Bruno Haible  <bruno@clisp.org>
35447
35448         Work around an autoconf limitation.
35449         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35450         comment line if it would be longer than 3 KB.
35451
35452 2009-04-05  Bruno Haible  <bruno@clisp.org>
35453
35454         Avoid test failure with libiconv-1.13.
35455         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35456         of the expected test results.
35457
35458 2009-04-05  Bruno Haible  <bruno@clisp.org>
35459
35460         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35461         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35462         that it should be installed.
35463
35464 2009-04-05  Bruno Haible  <bruno@clisp.org>
35465
35466         * gnulib-tool: New option --copy-file.
35467         (func_usage): Document it.
35468         (func_dest_tmpfilename): Moved out of func_import.
35469         (func_add_file, func_update_file): New functions, extracted from
35470         func_import.
35471         (func_import): Update.
35472
35473 2009-04-05  Karl Berry  <karl@gnu.org>
35474
35475         * README: prominently mention gnulib-tool.
35476         Rearrange sections so getting the code is near the top.
35477
35478 2009-04-05  Bruno Haible  <bruno@clisp.org>
35479
35480         * lib/unicase.h: Mention u*_cmp2.
35481         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35482         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35483         * lib/unicase/ulc-casecmp.c: Likewise.
35484         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35485         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35486         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35487         unistr/u8-cmp.
35488         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35489         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35490         unistr/u16-cmp.
35491         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35492         unistr/u32-cmp.
35493
35494         * lib/uninorm.h: Mention u*_cmp2.
35495         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35496         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35497         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35498         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35499         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35500         unistr/u8-cmp.
35501         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35502         unistr/u16-cmp.
35503         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35504         unistr/u32-cmp.
35505
35506         New module 'unistr/u32-cmp2'.
35507         * lib/unistr/u32-cmp2.c: New file.
35508         * modules/unistr/u32-cmp2: New file.
35509
35510         New module 'unistr/u16-cmp2'.
35511         * lib/unistr/u16-cmp2.c: New file.
35512         * modules/unistr/u16-cmp2: New file.
35513
35514         New module 'unistr/u8-cmp2'.
35515         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35516         * lib/unistr/u8-cmp2.c: New file.
35517         * lib/unistr/u-cmp2.h: New file.
35518         * modules/unistr/u8-cmp2: New file.
35519
35520 2009-04-05  Bruno Haible  <bruno@clisp.org>
35521
35522         * lib/unictype.h (uc_property_is_valid): New macro.
35523         * tests/unictype/test-pr_byname.c (main): Use it.
35524
35525         * lib/unistr.h: Doc fixes.
35526         * lib/uniconv.h: Doc fixes.
35527         * lib/unictype.h: Doc fixes.
35528
35529 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35530
35531         Port coreutils 7.2 to Solaris 8.
35532
35533         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35534         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35535         for Solaris 8.  This is a bit of a hack, as it means it's the
35536         caller's responsibility to add -lnsl if needed, but most likely it
35537         won't be needed since only getaddrinfo uses this and getaddrinfo
35538         isn't needed on Solaris 8.
35539
35540         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35541         problem to Solaris 8 encountered with coreutils 7.2, which
35542         resulted in a message "fnmatch.c:292: warning: passing argument 4
35543         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35544         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35545
35546 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35547
35548         * m4/ld-version-script.m4: Add FIXME comment.
35549
35550 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35551
35552         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35553         SOVERSION variable.
35554
35555 2009-04-02  Bruno Haible  <bruno@clisp.org>
35556
35557         * Makefile (info, html, dvi, pdf): Combine the rules.
35558         Suggested by Jim Meyering.
35559
35560 2009-04-01  Bruno Haible  <bruno@clisp.org>
35561
35562         * Makefile (info, html, dvi, pdf): New targets.
35563         Reported by Reuben Thomas <rrt@sc3d.org>.
35564
35565 2009-04-01  Bruno Haible  <bruno@clisp.org>
35566
35567         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35568         can be put into PATH.
35569         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35570
35571 2009-04-01  Bruno Haible  <bruno@clisp.org>
35572
35573         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35574
35575 2009-04-01  Bruno Haible  <bruno@clisp.org>
35576
35577         Rename module 'visibility'.
35578         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35579         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35580         * doc/gnulib.texi: Update.
35581         * MODULES.html.sh (Misc): Update.
35582         * NEWS: Mention the change.
35583
35584 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35585
35586         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35587         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35588         Eric Blake <ebb9@byu.net> for review.
35589         * MODULES.html.sh: Add lib-msvc-compat.
35590         * doc/gnulib.texi: Link to new section.
35591         * m4/ld-output-def.m4: New file.
35592         * doc/ld-output-def.texi: New file.
35593
35594 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35595
35596         Rename ld-version-script to lib-symbol-versions.  Suggested by
35597         Bruno Haible <bruno@clisp.org>.
35598         * modules/ld-version-script: Renamed to lib-symbol-versions.
35599         * doc/ld-version-script.texi: Fix module name.
35600         * MODULES.html.sh: Add lib-symbol-versions.
35601
35602 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35603
35604         * modules/u64-tests: New file.
35605         * tests/test-u64.c: New file.
35606
35607 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35608
35609         * MODULES.html.sh: Mention u64.
35610         * modules/u64: New module.
35611         * modules/crypto/sha512: Depend on u64 module instead of providing
35612         u64.h.
35613
35614 2009-03-27  Eric Blake  <ebb9@byu.net>
35615
35616         test-strerror: make debugging EAI_SYSTEM easier
35617         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35618         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35619         failure was EAI_SYSTEM.
35620
35621 2009-03-25  Bruno Haible  <bruno@clisp.org>
35622
35623         Fix a problem with --enable-relocatable on Solaris 7.
35624         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35625         since 2008-02-24.
35626
35627 2009-03-25  Eric Blake  <ebb9@byu.net>
35628
35629         test-sockets: avoid gcc warning
35630         * tests/test-sockets.c (main): Silence compiler warning.
35631
35632 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35633
35634         New modules nproc, pthread, contributed by Glen Lenker.
35635
35636         * MODULES.html.sh: Add pthread, nproc.
35637         * lib/nproc.c: New file.
35638         * lib/nproc.h: New file.
35639         * lib/pthread.in.h: New file.
35640         * m4/pthread.m4: New file.
35641         * modules/nproc: New file.
35642         * modules/pthread: New file.
35643
35644 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35645
35646         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35647         New variable.
35648
35649 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35650
35651         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35652         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35653         * tests/test-filevercmp.c: Add tests for backup suffixes.
35654
35655 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35656
35657         * modules/stdlib (Depends-on): Add stdint, needed when defining
35658         struct random_data on, for example, HP-UX 10.20.  Reported by
35659         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35660
35661 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35662
35663         * lib/readline.c (readline): Call fflush on stdout after printing
35664         prompt.
35665
35666 2009-03-20  Bruno Haible  <bruno@clisp.org>
35667
35668         Remove dependency from 'close' module to -lws2_32 on native Windows.
35669         * lib/close-hook.h: New file.
35670         * lib/close-hook.c: New file.
35671         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35672         w32sock.h.
35673         (_gl_close_fd_maybe_socket): Remove function.
35674         (rpl_close): Invoke execute_all_close_hooks instead of
35675         _gl_close_fd_maybe_socket.
35676         * lib/sockets.c: Include close-hook.h, w32sock.h.
35677         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35678         (close_sockets_hook): New variable.
35679         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35680         (gl_sockets_cleanup): Unregister it.
35681         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35682         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35683         * modules/close-hook: New file.
35684         * modules/close (Files): Remove lib/w32sock.h.
35685         (Depends-on): Add close-hook.
35686         (Link): Remove section.
35687         * modules/sockets (Files): Add lib/w32sock.h.
35688         (Depends-on): Add close-hook.
35689         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35690         invocation.
35691         * NEWS: Mention that LIB_CLOSE is gone.
35692
35693 2009-03-23  Eric Blake  <ebb9@byu.net>
35694
35695         signal-tests: test previous patch
35696         * tests/test-signal.c: New file.
35697         * modules/signal-tests: Likewise.
35698
35699         signal.h: always support 'volatile sig_atomic_t'
35700         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35701         (gl_SIGNAL_H_DEFAULTS): Add a default.
35702         * modules/signal (Makefile.am): Substitute if needed.
35703         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35704         users can blindly add volatile.
35705         * doc/posix-headers/signal.texi (signal.h): Document it.
35706         Reported by Matthew Woehlke.
35707
35708 2009-03-23  Jim Meyering  <meyering@redhat.com>
35709
35710         pathmax: PATH_MAX: use pathconf only when available
35711         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35712         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35713         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35714         This avoids a link failure in a PSP cross-compilation environment
35715         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35716
35717         * lib/vasnprintf.c (divide): Fix typo in comment.
35718
35719 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35720
35721         * gnulib-tool (func_filter_filelist): Fix comment.
35722
35723 2009-03-20  Bruno Haible  <bruno@clisp.org>
35724
35725         Make sockets.h self-contained.
35726         * lib/sockets.c: Include sockets.h first.
35727         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35728
35729 2009-03-19  Eric Blake  <ebb9@byu.net>
35730
35731         doc: mention more functions added in cygwin 1.7.0
35732         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35733         addition.
35734         * doc/posix-functions/log2f.texi: Likewise.
35735
35736 2009-03-19  Jim Meyering  <meyering@redhat.com>
35737
35738         fsusage: avoid syntax error due to statement-before-declaration
35739         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35740         after all declarations.  Reported by Matthew Woehlke in
35741         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35742
35743 2009-03-18  Eric Blake  <ebb9@byu.net>
35744
35745         build-aux/compile: sync from automake
35746         * build-aux/compile: New file, from automake.
35747         * config/srclist.txt: Mention build-aux/compile.
35748
35749 2009-03-17  Bruno Haible  <bruno@clisp.org>
35750
35751         * lib/git-merge-changelog.c: Fix typo in comment.
35752         Reported by Reuben Thomas <rrt@sc3d.org>.
35753
35754 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35755
35756         * m4/regex.m4: update and improve help for
35757         --without-included-regex.
35758
35759 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35760
35761         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35762         failure on missing include files.
35763
35764 2009-03-17  Eric Blake  <ebb9@byu.net>
35765
35766         doc: mention more functions added in cygwin 1.7.0
35767         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35768         addition.
35769         * doc/posix-functions/fwscanf.texi: Likewise.
35770         * doc/posix-functions/swprintf.texi: Likewise.
35771         * doc/posix-functions/swscanf.texi: Likewise.
35772         * doc/posix-functions/vfwprintf.texi: Likewise.
35773         * doc/posix-functions/vfwscanf.texi: Likewise.
35774         * doc/posix-functions/vswprintf.texi: Likewise.
35775         * doc/posix-functions/vswscanf.texi: Likewise.
35776         * doc/posix-functions/vwprintf.texi: Likewise.
35777         * doc/posix-functions/vwscanf.texi: Likewise.
35778         * doc/posix-functions/wcscasecmp.texi: Likewise.
35779         * doc/posix-functions/wcsdup.texi: Likewise.
35780         * doc/posix-functions/wcsftime.texi: Likewise.
35781         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35782         * doc/posix-functions/wprintf.texi: Likewise.
35783         * doc/posix-functions/wscanf.texi: Likewise.
35784         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35785
35786 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35787
35788         maint.mk: really add $(AM_MAKEFLAGS)
35789         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35790         was inadvertently omitted in the last commit.
35791         Spotted by Bruno Haible.
35792
35793         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35794         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35795         $(AM_MAKEFLAGS)' rather than plain `make'.
35796
35797         gnulib-tool: execute $MAKE not make
35798         * gnulib-tool: Default $MAKE to 'make'.
35799         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35800         than make.  Initialize $MAKE in the do-autobuild script.
35801
35802         gnulib-tool: use $MAKE not make in generated files
35803         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35804         make, in generated files.  Initialize $MAKE in the do-autobuild
35805         script.
35806
35807         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35808
35809         GNUmakefile: disable parallelism only for multiple, recursive targets
35810         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35811         additions in the Makefile.
35812         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35813         by Automake.
35814         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35815         are listed on the command line and at least one of them is
35816         listed in $(ALL_RECURSIVE_TARGETS).
35817
35818 2009-03-14  Bruno Haible  <bruno@clisp.org>
35819
35820         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35821         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35822         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35823         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35824         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35825         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35826         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35827         unistr/u8-uctomb.
35828         * modules/unistr/u8-strchr (Depends-on): Likewise.
35829         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35830         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35831         unistr/u16-uctomb.
35832         * modules/unistr/u16-strchr (Depends-on): Likewise.
35833         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35834
35835 2009-03-12  Bruno Haible  <bruno@clisp.org>
35836
35837         Work around select() bug on Interix 3.5.
35838         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35839         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35840         * m4/select.m4: New file.
35841         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35842         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35843         * modules/select (Files): Add m4/select.m4.
35844         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35845         * modules/nanosleep (Depends-on): Add select.
35846         * modules/poll (Depends-on): Likewise.
35847         * doc/posix-functions/select.texi: Mention the Interix bug.
35848         Reported by Markus Duft <mduft@gentoo.org>.
35849
35850         * lib/select.c: Renamed from lib/winsock-select.c.
35851         * modules/select (Files): Add lib/select.c, remove
35852         lib/winsock-select.c.
35853         (configure.ac): Update.
35854
35855 2009-03-12  Jim Meyering  <meyering@redhat.com>
35856
35857         avoid gcc warnings about unused macro definitions
35858         * lib/readtokens.c (STREQ): Remove unused definition.
35859         * lib/xmalloc.c (SIZE_MAX): Likewise.
35860         * lib/openat-die.c (N_): Likewise.
35861         * lib/mountlist.c (SIZE_MAX): Remove definition.
35862         Instead, include <stdint.h>.
35863         * lib/readutmp.c: Likewise.
35864         * modules/readutmp (Depends-on): Add stdint.
35865         * modules/mountlist (Depends-on): Add stdint.
35866         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35867
35868 2009-03-10  Bruno Haible  <bruno@clisp.org>
35869
35870         Tests for module 'mbmemcasecoll'.
35871         * modules/mbmemcasecoll-tests: New file.
35872         * tests/test-mbmemcasecoll1.sh: New file.
35873         * tests/test-mbmemcasecoll2.sh: New file.
35874         * tests/test-mbmemcasecoll3.sh: New file.
35875         * tests/test-mbmemcasecoll.c: New file.
35876
35877         New module 'mbmemcasecoll'.
35878         * lib/mbmemcasecoll.h: New file.
35879         * lib/mbmemcasecoll.c: New file.
35880         * modules/mbmemcasecoll: New file.
35881
35882         * tests/test-mbmemcasecmp.h: New file, extracted from
35883         tests/test-mbmemcasecmp.c.
35884         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35885         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35886         (main): Update.
35887         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35888
35889 2009-03-09  Bruno Haible  <bruno@clisp.org>
35890
35891         Tests for module 'mbmemcasecmp'.
35892         * modules/mbmemcasecmp-tests: New file.
35893         * tests/test-mbmemcasecmp1.sh: New file.
35894         * tests/test-mbmemcasecmp2.sh: New file.
35895         * tests/test-mbmemcasecmp3.sh: New file.
35896         * tests/test-mbmemcasecmp.c: New file.
35897
35898         New module 'mbmemcasecmp'.
35899         * lib/mbmemcasecmp.h: New file.
35900         * lib/mbmemcasecmp.c: New file.
35901         * modules/mbmemcasecmp: New file.
35902
35903 2009-03-09  Bruno Haible  <bruno@clisp.org>
35904
35905         Tests for module 'unicase/ulc-casecoll'.
35906         * modules/unicase/ulc-casecoll-tests: New file.
35907         * tests/unicase/test-ulc-casecoll1.sh: New file.
35908         * tests/unicase/test-ulc-casecoll2.sh: New file.
35909         * tests/unicase/test-ulc-casecoll.c: New file.
35910
35911         New module 'unicase/ulc-casecoll'.
35912         * lib/unicase.h (ulc_casecoll): New declaration.
35913         * lib/unicase/ulc-casecoll.c: New file.
35914         * modules/unicase/ulc-casecoll: New file.
35915
35916         New module 'unicase/ulc-casexfrm'.
35917         * lib/unicase.h (ulc_casexfrm): New declaration.
35918         * lib/unicase/ulc-casexfrm.c: New file.
35919         * modules/unicase/ulc-casexfrm: New file.
35920
35921 2009-03-09  Bruno Haible  <bruno@clisp.org>
35922
35923         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35924         invocations.
35925
35926         * m4/mbscasecmp.m4: Remove file.
35927         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35928         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35929
35930         * m4/mbscasestr.m4: Remove file.
35931         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35932         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35933
35934         * m4/mbschr.m4: Remove file.
35935         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35936         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35937
35938         * m4/mbscspn.m4: Remove file.
35939         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35940         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35941
35942         * m4/mbslen.m4: Remove file.
35943         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35944         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35945
35946         * m4/mbsncasecmp.m4: Remove file.
35947         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35948         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35949
35950         * m4/mbsnlen.m4: Remove file.
35951         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35952         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35953
35954         * m4/mbspbrk.m4: Remove file.
35955         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35956         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35957
35958         * m4/mbspcasecmp.m4: Remove file.
35959         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35960         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35961
35962         * m4/mbsrchr.m4: Remove file.
35963         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35964         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35965
35966         * m4/mbssep.m4: Remove file.
35967         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35968         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35969
35970         * m4/mbsspn.m4: Remove file.
35971         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35972         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35973
35974         * m4/mbsstr.m4: Remove file.
35975         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35976         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35977
35978         * m4/mbstok_r.m4: Remove file.
35979         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35980         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35981
35982         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35983
35984         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35985         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35986
35987         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35988
35989 2009-03-08  Bruno Haible  <bruno@clisp.org>
35990
35991         Tests for module 'unicase/ulc-casecmp'.
35992         * modules/unicase/ulc-casecmp-tests: New file.
35993         * tests/unicase/test-ulc-casecmp1.sh: New file.
35994         * tests/unicase/test-ulc-casecmp2.sh: New file.
35995         * tests/unicase/test-ulc-casecmp.c: New file.
35996
35997         New module 'unicase/ulc-casecmp'.
35998         * lib/unicase.h (ulc_casecmp): New declaration.
35999         * lib/unicase/ulc-casecmp.c: New file.
36000         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36001         'const SRC_UNIT *'.
36002         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36003         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36004         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36005         * modules/unicase/ulc-casecmp: New file.
36006
36007         Tests for module 'unicase/u32-is-cased'.
36008         * modules/unicase/u32-is-cased-tests: New file.
36009         * tests/unicase/test-u32-is-cased.c: New file.
36010
36011         Tests for module 'unicase/u16-is-cased'.
36012         * modules/unicase/u16-is-cased-tests: New file.
36013         * tests/unicase/test-u16-is-cased.c: New file.
36014
36015         Tests for module 'unicase/u8-is-cased'.
36016         * modules/unicase/u8-is-cased-tests: New file.
36017         * tests/unicase/test-u8-is-cased.c: New file.
36018         * tests/unicase/test-is-cased.h: New file.
36019
36020         New module 'unicase/u32-is-cased'.
36021         * lib/unicase/u32-is-cased.c: New file.
36022         * modules/unicase/u32-is-cased: New file.
36023
36024         New module 'unicase/u16-is-cased'.
36025         * lib/unicase/u16-is-cased.c: New file.
36026         * modules/unicase/u16-is-cased: New file.
36027
36028         New module 'unicase/u8-is-cased'.
36029         * lib/unicase/u8-is-cased.c: New file.
36030         * lib/unicase/u-is-cased.h: New file.
36031         * modules/unicase/u8-is-cased: New file.
36032
36033         Tests for module 'unicase/u32-is-casefolded'.
36034         * modules/unicase/u32-is-casefolded-tests: New file.
36035         * tests/unicase/test-u32-is-casefolded.c: New file.
36036
36037         Tests for module 'unicase/u16-is-casefolded'.
36038         * modules/unicase/u16-is-casefolded-tests: New file.
36039         * tests/unicase/test-u16-is-casefolded.c: New file.
36040
36041         Tests for module 'unicase/u8-is-casefolded'.
36042         * modules/unicase/u8-is-casefolded-tests: New file.
36043         * tests/unicase/test-u8-is-casefolded.c: New file.
36044         * tests/unicase/test-is-casefolded.h: New file.
36045
36046         New module 'unicase/u32-is-casefolded'.
36047         * lib/unicase/u32-is-casefolded.c: New file.
36048         * modules/unicase/u32-is-casefolded: New file.
36049
36050         New module 'unicase/u16-is-casefolded'.
36051         * lib/unicase/u16-is-casefolded.c: New file.
36052         * modules/unicase/u16-is-casefolded: New file.
36053
36054         New module 'unicase/u8-is-casefolded'.
36055         * lib/unicase/u8-is-casefolded.c: New file.
36056         * modules/unicase/u8-is-casefolded: New file.
36057
36058         Tests for module 'unicase/u32-is-titlecase'.
36059         * modules/unicase/u32-is-titlecase-tests: New file.
36060         * tests/unicase/test-u32-is-titlecase.c: New file.
36061
36062         Tests for module 'unicase/u16-is-titlecase'.
36063         * modules/unicase/u16-is-titlecase-tests: New file.
36064         * tests/unicase/test-u16-is-titlecase.c: New file.
36065
36066         Tests for module 'unicase/u8-is-titlecase'.
36067         * modules/unicase/u8-is-titlecase-tests: New file.
36068         * tests/unicase/test-u8-is-titlecase.c: New file.
36069         * tests/unicase/test-is-titlecase.h: New file.
36070
36071         New module 'unicase/u32-is-titlecase'.
36072         * lib/unicase/u32-is-titlecase.c: New file.
36073         * modules/unicase/u32-is-titlecase: New file.
36074
36075         New module 'unicase/u16-is-titlecase'.
36076         * lib/unicase/u16-is-titlecase.c: New file.
36077         * modules/unicase/u16-is-titlecase: New file.
36078
36079         New module 'unicase/u8-is-titlecase'.
36080         * lib/unicase/u8-is-titlecase.c: New file.
36081         * modules/unicase/u8-is-titlecase: New file.
36082
36083         Tests for module 'unicase/u32-is-lowercase'.
36084         * modules/unicase/u32-is-lowercase-tests: New file.
36085         * tests/unicase/test-u32-is-lowercase.c: New file.
36086
36087         Tests for module 'unicase/u16-is-lowercase'.
36088         * modules/unicase/u16-is-lowercase-tests: New file.
36089         * tests/unicase/test-u16-is-lowercase.c: New file.
36090
36091         Tests for module 'unicase/u8-is-lowercase'.
36092         * modules/unicase/u8-is-lowercase-tests: New file.
36093         * tests/unicase/test-u8-is-lowercase.c: New file.
36094         * tests/unicase/test-is-lowercase.h: New file.
36095
36096         New module 'unicase/u32-is-lowercase'.
36097         * lib/unicase/u32-is-lowercase.c: New file.
36098         * modules/unicase/u32-is-lowercase: New file.
36099
36100         New module 'unicase/u16-is-lowercase'.
36101         * lib/unicase/u16-is-lowercase.c: New file.
36102         * modules/unicase/u16-is-lowercase: New file.
36103
36104         New module 'unicase/u8-is-lowercase'.
36105         * lib/unicase/u8-is-lowercase.c: New file.
36106         * modules/unicase/u8-is-lowercase: New file.
36107
36108         Tests for module 'unicase/u32-is-uppercase'.
36109         * modules/unicase/u32-is-uppercase-tests: New file.
36110         * tests/unicase/test-u32-is-uppercase.c: New file.
36111
36112         Tests for module 'unicase/u16-is-uppercase'.
36113         * modules/unicase/u16-is-uppercase-tests: New file.
36114         * tests/unicase/test-u16-is-uppercase.c: New file.
36115
36116         Tests for module 'unicase/u8-is-uppercase'.
36117         * modules/unicase/u8-is-uppercase-tests: New file.
36118         * tests/unicase/test-u8-is-uppercase.c: New file.
36119         * tests/unicase/test-is-uppercase.h: New file.
36120
36121         New module 'unicase/u32-is-uppercase'.
36122         * lib/unicase/u32-is-uppercase.c: New file.
36123         * modules/unicase/u32-is-uppercase: New file.
36124
36125         New module 'unicase/u16-is-uppercase'.
36126         * lib/unicase/u16-is-uppercase.c: New file.
36127         * modules/unicase/u16-is-uppercase: New file.
36128
36129         New module 'unicase/u8-is-uppercase'.
36130         * lib/unicase/u8-is-uppercase.c: New file.
36131         * modules/unicase/u8-is-uppercase: New file.
36132
36133         New module 'unicase/u32-is-invariant'.
36134         * lib/unicase/u32-is-invariant.c: New file.
36135         * modules/unicase/u32-is-invariant: New file.
36136
36137         New module 'unicase/u16-is-invariant'.
36138         * lib/unicase/u16-is-invariant.c: New file.
36139         * modules/unicase/u16-is-invariant: New file.
36140
36141         New module 'unicase/u8-is-invariant'.
36142         * lib/unicase/u8-is-invariant.c: New file.
36143         * lib/unicase/invariant.h: New file.
36144         * lib/unicase/u-is-invariant.h: New file.
36145         * modules/unicase/u8-is-invariant: New file.
36146
36147         Tests for module 'unicase/u32-casecoll'.
36148         * modules/unicase/u32-casecoll-tests: New file.
36149         * tests/unicase/test-u32-casecoll.c: New file.
36150
36151         Tests for module 'unicase/u16-casecoll'.
36152         * modules/unicase/u16-casecoll-tests: New file.
36153         * tests/unicase/test-u16-casecoll.c: New file.
36154
36155         Tests for module 'unicase/u8-casecoll'.
36156         * modules/unicase/u8-casecoll-tests: New file.
36157         * tests/unicase/test-u8-casecoll.c: New file.
36158
36159         New module 'unicase/u32-casecoll'.
36160         * lib/unicase/u32-casecoll.c: New file.
36161         * modules/unicase/u32-casecoll: New file.
36162
36163         New module 'unicase/u16-casecoll'.
36164         * lib/unicase/u16-casecoll.c: New file.
36165         * modules/unicase/u16-casecoll: New file.
36166
36167         New module 'unicase/u8-casecoll'.
36168         * lib/unicase/u8-casecoll.c: New file.
36169         * lib/unicase/u-casecoll.h: New file.
36170         * modules/unicase/u8-casecoll: New file.
36171
36172         New module 'unicase/u32-casexfrm'.
36173         * lib/unicase/u32-casexfrm.c: New file.
36174         * modules/unicase/u32-casexfrm: New file.
36175
36176         New module 'unicase/u16-casexfrm'.
36177         * lib/unicase/u16-casexfrm.c: New file.
36178         * modules/unicase/u16-casexfrm: New file.
36179
36180         New module 'unicase/u8-casexfrm'.
36181         * lib/unicase/u8-casexfrm.c: New file.
36182         * lib/unicase/u-casexfrm.h: New file.
36183         * modules/unicase/u8-casexfrm: New file.
36184
36185         Tests for module 'unicase/u32-casecmp'.
36186         * modules/unicase/u32-casecmp-tests: New file.
36187         * tests/unicase/test-u32-casecmp.c: New file.
36188
36189         Tests for module 'unicase/u16-casecmp'.
36190         * modules/unicase/u16-casecmp-tests: New file.
36191         * tests/unicase/test-u16-casecmp.c: New file.
36192
36193         Tests for module 'unicase/u8-casecmp'.
36194         * modules/unicase/u8-casecmp-tests: New file.
36195         * tests/unicase/test-u8-casecmp.c: New file.
36196         * tests/unicase/test-casecmp.h: New file.
36197
36198         New module 'unicase/u32-casecmp'.
36199         * lib/unicase/u32-casecmp.c: New file.
36200         * modules/unicase/u32-casecmp: New file.
36201
36202         New module 'unicase/u16-casecmp'.
36203         * lib/unicase/u16-casecmp.c: New file.
36204         * modules/unicase/u16-casecmp: New file.
36205
36206         New module 'unicase/u8-casecmp'.
36207         * lib/unicase/u8-casecmp.c: New file.
36208         * lib/unicase/u-casecmp.h: New file.
36209         * modules/unicase/u8-casecmp: New file.
36210
36211         Tests for module 'unicase/u32-casefold'.
36212         * modules/unicase/u32-casefold-tests: New file.
36213         * tests/unicase/test-u32-casefold.c: New file.
36214
36215         Tests for module 'unicase/u16-casefold'.
36216         * modules/unicase/u16-casefold-tests: New file.
36217         * tests/unicase/test-u16-casefold.c: New file.
36218
36219         Tests for module 'unicase/u8-casefold'.
36220         * modules/unicase/u8-casefold-tests: New file.
36221         * tests/unicase/test-u8-casefold.c: New file.
36222
36223         New module 'unicase/u32-casefold'.
36224         * lib/unicase/u32-casefold.c: New file.
36225         * modules/unicase/u32-casefold: New file.
36226
36227         New module 'unicase/u16-casefold'.
36228         * lib/unicase/u16-casefold.c: New file.
36229         * modules/unicase/u16-casefold: New file.
36230
36231         New module 'unicase/u8-casefold'.
36232         * lib/unicase/u8-casefold.c: New file.
36233         * lib/unicase/u-casefold.h: New file.
36234         * modules/unicase/u8-casefold: New file.
36235
36236         New module 'unicase/tocasefold'.
36237         * lib/unicase/casefold.h: New file.
36238         * lib/unicase/tocasefold.c: New file.
36239         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36240         * modules/unicase/tocasefold: New file.
36241
36242         Tests for module 'unicase/u32-totitle'.
36243         * modules/unicase/u32-totitle-tests: New file.
36244         * tests/unicase/test-u32-totitle.c: New file.
36245
36246         Tests for module 'unicase/u16-totitle'.
36247         * modules/unicase/u16-totitle-tests: New file.
36248         * tests/unicase/test-u16-totitle.c: New file.
36249
36250         Tests for module 'unicase/u8-totitle'.
36251         * modules/unicase/u8-totitle-tests: New file.
36252         * tests/unicase/test-u8-totitle.c: New file.
36253
36254         New module 'unicase/u32-totitle'.
36255         * lib/unicase/u32-totitle.c: New file.
36256         * modules/unicase/u32-totitle: New file.
36257
36258         New module 'unicase/u16-totitle'.
36259         * lib/unicase/u16-totitle.c: New file.
36260         * modules/unicase/u16-totitle: New file.
36261
36262         New module 'unicase/u8-totitle'.
36263         * lib/unicase/u8-totitle.c: New file.
36264         * lib/unicase/u-totitle.h: New file.
36265         * modules/unicase/u8-totitle: New file.
36266
36267         Tests for module 'unicase/u32-tolower'.
36268         * modules/unicase/u32-tolower-tests: New file.
36269         * tests/unicase/test-u32-tolower.c: New file.
36270
36271         Tests for module 'unicase/u16-tolower'.
36272         * modules/unicase/u16-tolower-tests: New file.
36273         * tests/unicase/test-u16-tolower.c: New file.
36274
36275         Tests for module 'unicase/u8-tolower'.
36276         * modules/unicase/u8-tolower-tests: New file.
36277         * tests/unicase/test-u8-tolower.c: New file.
36278
36279         New module 'unicase/u32-tolower'.
36280         * lib/unicase/u32-tolower.c: New file.
36281         * modules/unicase/u32-tolower: New file.
36282
36283         New module 'unicase/u16-tolower'.
36284         * lib/unicase/u16-tolower.c: New file.
36285         * modules/unicase/u16-tolower: New file.
36286
36287         New module 'unicase/u8-tolower'.
36288         * lib/unicase/u8-tolower.c: New file.
36289         * modules/unicase/u8-tolower: New file.
36290
36291         Tests for module 'unicase/u32-toupper'.
36292         * modules/unicase/u32-toupper-tests: New file.
36293         * tests/unicase/test-u32-toupper.c: New file.
36294
36295         Tests for module 'unicase/u16-toupper'.
36296         * modules/unicase/u16-toupper-tests: New file.
36297         * tests/unicase/test-u16-toupper.c: New file.
36298
36299         Tests for module 'unicase/u8-toupper'.
36300         * modules/unicase/u8-toupper-tests: New file.
36301         * tests/unicase/test-u8-toupper.c: New file.
36302
36303         New module 'unicase/u32-toupper'.
36304         * lib/unicase/u32-toupper.c: New file.
36305         * modules/unicase/u32-toupper: New file.
36306
36307         New module 'unicase/u16-toupper'.
36308         * lib/unicase/u16-toupper.c: New file.
36309         * modules/unicase/u16-toupper: New file.
36310
36311         New module 'unicase/u8-toupper'.
36312         * lib/unicase/u8-toupper.c: New file.
36313         * modules/unicase/u8-toupper: New file.
36314
36315         New module 'unicase/u32-casemap'.
36316         * lib/unicase/u32-casemap.c: New file.
36317         * modules/unicase/u32-casemap: New file.
36318
36319         New module 'unicase/u16-casemap'.
36320         * lib/unicase/u16-casemap.c: New file.
36321         * modules/unicase/u16-casemap: New file.
36322
36323         New module 'unicase/u8-casemap'.
36324         * lib/unicase/unicasemap.h: New file.
36325         * lib/unicase/u8-casemap.c: New file.
36326         * lib/unicase/u-casemap.h: New file.
36327         * modules/unicase/u8-casemap: New file.
36328
36329         New module 'unicase/special-casing'.
36330         * lib/unicase/special-casing.h: New file.
36331         * lib/unicase/special-casing.c: New file.
36332         * lib/unicase/special-casing-table.gperf: New file, generated by
36333         gen-uni-tables.c.
36334         * modules/unicase/special-casing: New file.
36335
36336         Tests for module 'unicase/locale-language'.
36337         * modules/unicase/locale-language-tests: New file.
36338         * tests/unicase/test-locale-language.sh: New file.
36339         * tests/unicase/test-locale-language.c: New file.
36340
36341         New module 'unicase/locale-language'.
36342         * lib/unicase/locale-language.c: New file.
36343         * lib/unicase/locale-languages.gperf: New file.
36344         * modules/unicase/locale-language: New file.
36345
36346         Generate more tables for case conversion and case folding.
36347         * lib/gen-uni-tables.c (SCC_*): New enum items.
36348         (struct special_casing_rule): New type.
36349         (casing_rules, num_casing_rules, allocated_casing_rules): New
36350         variables.
36351         (add_casing_rule, fill_casing_rules): New functions.
36352         (struct casefold_rule): New type.
36353         (casefolding_rules, num_casefolding_rules,
36354         allocated_casefolding_rules): New variables.
36355         (fill_casefolding_rules): New function.
36356         (unicode_casefold): New variable.
36357         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36358         sort_casing_rules, output_casing_rules): New functions.
36359         (main): Accept to more arguments: SpecialCasing.txt and
36360         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36361         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36362         Output mapping for casefolding.
36363
36364         * lib/unicase.h: Include stdbool.h, uninorm.h.
36365         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36366         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36367         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36368         arguments.
36369         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36370         resultp arguments.
36371         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36372         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36373         resultp arguments.
36374         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36375         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36376         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36377         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36378         declarations.
36379         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36380
36381 2009-03-08  Bruno Haible  <bruno@clisp.org>
36382
36383         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36384         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36385         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36386         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36387
36388 2009-03-07  Bruno Haible  <bruno@clisp.org>
36389
36390         Adjust u*_normcmp, u*_normcoll API.
36391         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36392         u16_normcoll, u32_normcoll): Change failure conventions.
36393         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36394         errno and return -1.
36395         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36396
36397 2009-03-07  Bruno Haible  <bruno@clisp.org>
36398
36399         Tests for module 'uninorm/u32-normcoll'.
36400         * modules/uninorm/u32-normcoll-tests: New file.
36401         * tests/uninorm/test-u32-normcoll.c: New file.
36402
36403         Tests for module 'uninorm/u16-normcoll'.
36404         * modules/uninorm/u16-normcoll-tests: New file.
36405         * tests/uninorm/test-u16-normcoll.c: New file.
36406
36407         Tests for module 'uninorm/u8-normcoll'.
36408         * modules/uninorm/u8-normcoll-tests: New file.
36409         * tests/uninorm/test-u8-normcoll.c: New file.
36410
36411 2009-03-07  Bruno Haible  <bruno@clisp.org>
36412
36413         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36414         tests/uninorm/test-u32-normcmp.c.
36415         * tests/uninorm/test-u32-normcmp.c: Include it.
36416         (test_nonascii): New function, extracted from main. Add some more
36417         tests.
36418         (main): Invoke test_ascii and test_nonascii.
36419         * modules/uninorm/u32-normcmp-tests (Files): Add
36420         tests/uninorm/test-u32-normcmp.h.
36421         (Depends-on): Remove uninorm/u32-normcmp.
36422
36423         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36424         tests/uninorm/test-u16-normcmp.c.
36425         * tests/uninorm/test-u16-normcmp.c: Include it.
36426         (test_nonascii): New function, extracted from main. Add some more
36427         tests.
36428         (main): Invoke test_ascii and test_nonascii.
36429         * modules/uninorm/u16-normcmp-tests (Files): Add
36430         tests/uninorm/test-u16-normcmp.h.
36431         (Depends-on): Remove uninorm/u16-normcmp.
36432
36433         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36434         tests/uninorm/test-u8-normcmp.c.
36435         * tests/uninorm/test-u8-normcmp.c: Include it.
36436         (test_nonascii): New function, extracted from main. Add some more
36437         tests.
36438         (main): Invoke test_ascii and test_nonascii.
36439         * modules/uninorm/u8-normcmp-tests (Files): Add
36440         tests/uninorm/test-u8-normcmp.h.
36441         (Depends-on): Remove uninorm/u8-normcmp.
36442
36443 2009-03-07  Bruno Haible  <bruno@clisp.org>
36444
36445         New module 'uninorm/u32-normcoll'.
36446         * lib/uninorm/u32-normcoll.c: New file.
36447         * modules/uninorm/u32-normcoll: New file.
36448
36449         New module 'uninorm/u16-normcoll'.
36450         * lib/uninorm/u16-normcoll.c: New file.
36451         * modules/uninorm/u16-normcoll: New file.
36452
36453         New module 'uninorm/u8-normcoll'.
36454         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36455         declarations.
36456         * lib/uninorm/u8-normcoll.c: New file.
36457         * lib/uninorm/u-normcoll.h: New file.
36458         * modules/uninorm/u8-normcoll: New file.
36459
36460         New module 'uninorm/u32-normxfrm'.
36461         * lib/uninorm/u32-normxfrm.c: New file.
36462         * modules/uninorm/u32-normxfrm: New file.
36463
36464         New module 'uninorm/u16-normxfrm'.
36465         * lib/uninorm/u16-normxfrm.c: New file.
36466         * modules/uninorm/u16-normxfrm: New file.
36467
36468         New module 'uninorm/u8-normxfrm'.
36469         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36470         declarations.
36471         * lib/uninorm/u8-normxfrm.c: New file.
36472         * lib/uninorm/u-normxfrm.h: New file.
36473         * modules/uninorm/u8-normxfrm: New file.
36474
36475 2009-03-07  Bruno Haible  <bruno@clisp.org>
36476
36477         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36478         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36479         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36480
36481 2009-03-07  Bruno Haible  <bruno@clisp.org>
36482
36483         New module 'memxfrm'.
36484         * lib/memxfrm.h: New file.
36485         * lib/memxfrm.c: New file.
36486         * modules/memxfrm: New file.
36487
36488 2009-03-07  Bruno Haible  <bruno@clisp.org>
36489
36490         New module 'memcmp2'.
36491         * lib/memcmp2.h: New file.
36492         * lib/memcmp2.c: New file.
36493         * modules/memcmp2: New file.
36494
36495 2009-03-07  Bruno Haible  <bruno@clisp.org>
36496
36497         Tests for module 'uninorm/decomposing-form'.
36498         * modules/uninorm/decomposing-form-tests: New file.
36499         * tests/uninorm/test-decomposing-form.c: New file.
36500
36501         New module 'uninorm/decomposing-form'.
36502         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36503         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36504         Add 'decomposing_variant' field.
36505         * lib/uninorm/decomposing-form.c: New file.
36506         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36507         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36508         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36509         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36510         * modules/uninorm/decomposing-form: New file.
36511         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36512         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36513
36514 2009-03-07  Bruno Haible  <bruno@clisp.org>
36515
36516         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36517         strings.
36518
36519 2009-03-06  Bruno Haible  <bruno@clisp.org>
36520
36521         Tests for module 'uninorm/u32-normcmp'.
36522         * tests/uninorm/test-u32-normcmp.c: New file.
36523         * modules/uninorm/u32-normcmp-tests: New file.
36524
36525         Tests for module 'uninorm/u16-normcmp'.
36526         * tests/uninorm/test-u16-normcmp.c: New file.
36527         * modules/uninorm/u16-normcmp-tests: New file.
36528
36529         Tests for module 'uninorm/u8-normcmp'.
36530         * tests/uninorm/test-u8-normcmp.c: New file.
36531         * modules/uninorm/u8-normcmp-tests: New file.
36532
36533         New module 'uninorm/u32-normcmp'.
36534         * lib/uninorm/u32-normcmp.c: New file.
36535         * modules/uninorm/u32-normcmp: New file.
36536
36537         New module 'uninorm/u16-normcmp'.
36538         * lib/uninorm/u16-normcmp.c: New file.
36539         * modules/uninorm/u16-normcmp: New file.
36540
36541         New module 'uninorm/u8-normcmp'.
36542         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36543         declarations.
36544         * lib/uninorm/u8-normcmp.c: New file.
36545         * lib/uninorm/u-normcmp.h: New file.
36546         * modules/uninorm/u8-normcmp: New file.
36547
36548 2009-03-06  Bruno Haible  <bruno@clisp.org>
36549
36550         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36551         Reported by Eric Blake.
36552
36553 2009-03-06  Eric Blake  <ebb9@byu.net>
36554             Bruno Haible  <bruno@clisp.org>
36555
36556         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36557         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36558         condition.
36559         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36560         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36561         condition.
36562         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36563
36564 2009-03-06  Eric Blake  <ebb9@byu.net>
36565
36566         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36567         to avoid compiler warnings.
36568         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36569
36570 2009-03-05  Bruno Haible  <bruno@clisp.org>
36571
36572         * tests/test-ftell.c (main): Disable test beyond end of file on
36573         FreeMiNT.
36574         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36575
36576 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36577
36578         * lib/filevercmp.c: Move hidden files up in ordering.
36579         * tests/test-filevercmp.c: Add tests for hidden files.
36580
36581 2009-03-04  Bruno Haible  <bruno@clisp.org>
36582
36583         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36584         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36585         AM_CFLAGS.
36586         Reported by Simon Josefsson.
36587
36588 2009-03-03  Bruno Haible  <bruno@clisp.org>
36589
36590         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36591         Reported by Simon Josefsson.
36592
36593         * doc/ld-version-script.texi: Update node reference.
36594
36595 2009-03-03  Bruno Haible  <bruno@clisp.org>
36596
36597         * modules/visibility (License): Change to 'unlimited'.
36598         Suggested by Simon Josefsson.
36599
36600 2009-03-03  Jim Meyering  <meyering@redhat.com>
36601
36602         unlinkdir: cannot_unlink_dir may modify process state
36603         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36604         it's neither thread-safe nor appropriate for use in a library.
36605
36606 2009-03-03  Eric Blake  <ebb9@byu.net>
36607
36608         test-closein: silence test under Darwin
36609         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36610         care if it dies from EPIPE or EBADF.
36611
36612 2009-03-03  Bruno Haible  <bruno@clisp.org>
36613
36614         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36615         earlier.
36616         * doc/visibility.texi: Fix @node and @section.
36617
36618 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36619
36620         * doc/gnulib.texi: Link to sections for ld version script and
36621         visibility.
36622         * doc/visibility.texi: Add @node and @section.
36623         * modules/ld-version-script: New module.
36624         * m4/ld-version-script.m4: New file.
36625         * doc/ld-version-script.texi: New file.
36626
36627 2009-03-02  David Lutterkort  <lutter@redhat.com>
36628
36629         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36630         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36631
36632 2009-03-02  Bruno Haible  <bruno@clisp.org>
36633
36634         * doc/visibility.texi: Mention libtool's -export-symbols option.
36635
36636 2009-03-02  Jim Meyering  <meyering@redhat.com>
36637
36638         announce-gen: new option: --no-print-checksums
36639         * build-aux/announce-gen (usage): Describe it.
36640         (print_checksums): Print a newline here, not in the [*] footnote.
36641         (main): Honor it.
36642
36643 2009-03-01  Bruno Haible  <bruno@clisp.org>
36644
36645         Use socklen_t in the native Windows replacements prototypes.
36646         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36647         instead of 'int'.
36648         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36649         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36650         * modules/getsockopt (Depends-on): Add socklen.
36651         * modules/setsockopt (Depends-on): Add socklen.
36652
36653 2009-03-01  Bruno Haible  <bruno@clisp.org>
36654
36655         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36656         least 4.2.
36657
36658 2009-03-01  Eric Blake  <ebb9@byu.net>
36659             Bruno Haible  <bruno@clisp.org>
36660
36661         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36662         error messages.
36663         * lib/wait-process.c (wait_subprocess): Omit error message about
36664         deadly signal sent to the child of termsigp != NULL.
36665
36666 2009-03-01  Eric Blake  <ebb9@byu.net>
36667
36668         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36669
36670 2009-03-01  Bruno Haible  <bruno@clisp.org>
36671
36672         Avoid a gcc warning.
36673         * tests/test-sched.c (b): Make global.
36674         Reported by Eric Blake.
36675
36676 2009-01-19  Martin Lambers  <marlam@marlam.de>
36677
36678         Provide POSIX semantics for socket timeout options on W32.
36679         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36680         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36681         * modules/setsockopt: Depend on sys_time module for struct timeval.
36682         * modules/getsockopt: Depend on sys_time module for struct timeval.
36683
36684 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36685
36686         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36687         __USE_GNU, for consistency with netdb.in.h.
36688         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36689
36690 2009-03-01  Bruno Haible  <bruno@clisp.org>
36691
36692         More support for FreeMiNT.
36693         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36694         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36695
36696 2009-03-01  Bruno Haible  <bruno@clisp.org>
36697
36698         More support for FreeMiNT.
36699         * lib/fpurge.c (fpurge): Correct last commit.
36700         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36701
36702 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36703
36704         Fix unportable awk script in vc-list-files.
36705         * build-aux/vc-list-files: In the replacement awk script, use
36706         substr with a second argument of 1, not zero.
36707         Report by Simon Josefsson.
36708
36709 2009-02-28  Bruno Haible  <bruno@clisp.org>
36710
36711         More support for FreeMiNT.
36712         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36713         to FreeMiNT today.
36714         * lib/fwriting.c (fwriting): Likewise.
36715         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36716
36717 2009-02-28  Bruno Haible  <bruno@clisp.org>
36718
36719         * tests/test-freadseek.c (main): Disable test beyond end of file on
36720         FreeMiNT.
36721         * tests/test-ftello.c (main): Likewise.
36722         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36723
36724 2009-02-28  Bruno Haible  <bruno@clisp.org>
36725
36726         Add tentative support for FreeMiNT.
36727         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36728         * lib/fpurge.c (fpurge): Likewise.
36729         * lib/freadable.c (freadable): Likewise.
36730         * lib/freading.c (freading): Likewise.
36731         * lib/freadptr.c (freadptr): Likewise.
36732         * lib/freadseek.c (freadptrinc): Likewise.
36733         * lib/fseeko.c (rpl_fseeko): Likewise.
36734         * lib/fseterr.c (fseterr): Likewise.
36735         * lib/fwritable.c (fwritable): Likewise.
36736         * lib/fwriting.c (fwriting): Likewise.
36737         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36738         Hourihane.
36739         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36740
36741 2009-02-28  Bruno Haible  <bruno@clisp.org>
36742
36743         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36744         SIGCHLD.
36745         Reported by Jim Meyering.
36746
36747 2009-02-28  Bruno Haible  <bruno@clisp.org>
36748
36749         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36750         Mention the results of these tests on various platforms.
36751         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36752         order.
36753         * doc/posix-functions/printf.texi: Likewise.
36754         * doc/posix-functions/snprintf.texi: Likewise.
36755         * doc/posix-functions/sprintf.texi: Likewise.
36756         * doc/posix-functions/vfprintf.texi: Likewise.
36757         * doc/posix-functions/vprintf.texi: Likewise.
36758         * doc/posix-functions/vsnprintf.texi: Likewise.
36759         * doc/posix-functions/vsprintf.texi: Likewise.
36760         * doc/glibc-functions/obstack_printf.texi: Likewise.
36761         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36762
36763 2009-02-28  Bruno Haible  <bruno@clisp.org>
36764
36765         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36766         Reported by Loïc Minier <lool@dooz.org>.
36767
36768 2009-02-27  Bruno Haible  <bruno@clisp.org>
36769
36770         * gnulib-tool (func_import): Make the sed expression used to create the
36771         sed script for updating the .gitignore file POSIX compliant.
36772         Reported by Eric Blake.
36773
36774 2009-02-27  Bruno Haible  <bruno@clisp.org>
36775
36776         * gnulib-tool (sed): Don't alias as "sed --posix".
36777         Reported by Eric Blake.
36778
36779 2009-02-27  Bruno Haible  <bruno@clisp.org>
36780
36781         Avoid test link errors.
36782         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36783         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36784         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36785         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36786         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36787
36788 2009-02-27  Bruno Haible  <bruno@clisp.org>
36789
36790         Avoid spurious "(cached)" in configure output.
36791         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36792         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36793         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36794         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36795         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36796         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36797         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36798         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36799         Reported by Eric Blake.
36800
36801 2009-02-27  Eric Blake  <ebb9@byu.net>
36802
36803         printf: fix regression in previous patch
36804         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36805
36806 2009-02-27  Bruno Haible  <bruno@clisp.org>
36807
36808         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36809         value.
36810         * lib/stdint.in.h: Likewise.
36811         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36812
36813 2009-02-27  Eric Blake  <ebb9@byu.net>
36814
36815         doc: mention more functions added in cygwin 1.7.0
36816         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36817         addition.
36818         * doc/posix-functions/open_wmemstream.texi: Likewise.
36819         * doc/posix-functions/wcsnlen.texi: Likewise.
36820         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36821         * doc/posix-functions/wcstod.texi: Likewise.
36822         * doc/posix-functions/wcstof.texi: Likewise.
36823         * doc/posix-functions/wcstoimax.texi: Likewise.
36824         * doc/posix-functions/wcstok.texi: Likewise.
36825         * doc/posix-functions/wcstoumax.texi: Likewise.
36826
36827         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36828         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36829         * doc/posix-functions/fprintf.texi: Update.
36830         * doc/posix-functions/printf.texi: Update.
36831         * doc/posix-functions/snprintf.texi: Update.
36832         * doc/posix-functions/sprintf.texi: Update.
36833         * doc/posix-functions/vfprintf.texi: Update.
36834         * doc/posix-functions/vprintf.texi: Update.
36835         * doc/posix-functions/vsnprintf.texi: Update.
36836         * doc/posix-functions/vsprintf.texi: Update.
36837         * doc/glibc-functions/obstack_printf.texi: Update.
36838         * doc/glibc-functions/obstack_vprintf.texi: Update.
36839
36840 2009-02-26  Eric Blake  <ebb9@byu.net>
36841
36842         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36843         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36844         compilation bug by using runtime conversion.
36845         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36846         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36847         * modules/ceill-tests (Files): Use nan.h.
36848         * modules/floorl-tests (Files): Likewise.
36849         * modules/frexpl-tests (Files): Likewise.
36850         * modules/isnanl-tests (Files): Likewise.
36851         * modules/ldexpl-tests (Files): Likewise.
36852         * modules/roundl-tests (Files): Likewise.
36853         * modules/truncl-tests (Files): Likewise.
36854         * tests/test-ceill.c (main): Use a working NaN.
36855         * tests/test-floorl.c (main): Likewise.
36856         * tests/test-frexpl.c (main): Likewise.
36857         * tests/test-isnan.c (test_long_double): Likewise.
36858         * tests/test-isnanl.h (main): Likewise.
36859         * tests/test-ldexpl.h (main): Likewise.
36860         * tests/test-roundl.h (main): Likewise.
36861         * tests/test-truncl.h (main): Likewise.
36862         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36863
36864 2009-02-26  Eric Blake  <ebb9@byu.net>
36865             Bruno Haible  <bruno@clisp.org>
36866
36867         Work around a *printf bug with %ls on Solaris.
36868         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36869         precision is specified, sprintf stops converting the wide string
36870         argument when the number of bytes that have been produced by this
36871         conversion equals or exceeds the precision.
36872         * doc/posix-functions/fprintf.texi: Update.
36873         * doc/posix-functions/printf.texi: Update.
36874         * doc/posix-functions/snprintf.texi: Update.
36875         * doc/posix-functions/sprintf.texi: Update.
36876         * doc/posix-functions/vfprintf.texi: Update.
36877         * doc/posix-functions/vprintf.texi: Update.
36878         * doc/posix-functions/vsnprintf.texi: Update.
36879         * doc/posix-functions/vsprintf.texi: Update.
36880         * doc/glibc-functions/obstack_printf.texi: Update.
36881         * doc/glibc-functions/obstack_vprintf.texi: Update.
36882
36883 2009-02-26  Eric Blake  <ebb9@byu.net>
36884
36885         stdlib: favor compiler check of random.h
36886         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36887         to avoid an ObjC random.h installed by Swarm.
36888
36889 2009-02-26  Bruno Haible  <bruno@clisp.org>
36890
36891         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36892         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36893         Reported by Gary V. Vaughan <gary@gnu.org>.
36894
36895 2009-02-26  Bruno Haible  <bruno@clisp.org>
36896
36897         Fix *printf behaviour regarding the %ls directive.
36898         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36899         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36900         NEED_PRINTF_DIRECTIVE_LS.
36901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36902         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36903         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36904         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36905         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36906         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36907         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36908         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36909         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36910         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36911         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36912         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36913         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36914         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36915         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36916         * doc/posix-functions/fprintf.texi: Update.
36917         * doc/posix-functions/printf.texi: Update.
36918         * doc/posix-functions/snprintf.texi: Update.
36919         * doc/posix-functions/sprintf.texi: Update.
36920         * doc/posix-functions/vfprintf.texi: Update.
36921         * doc/posix-functions/vprintf.texi: Update.
36922         * doc/posix-functions/vsnprintf.texi: Update.
36923         * doc/posix-functions/vsprintf.texi: Update.
36924         * doc/glibc-functions/obstack_printf.texi: Update.
36925         * doc/glibc-functions/obstack_vprintf.texi: Update.
36926         Reported by Eric Blake.
36927
36928 2009-02-25  Bruno Haible  <bruno@clisp.org>
36929
36930         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36931         with known value.
36932         Reported by Gary V. Vaughan <gary@gnu.org>.
36933
36934 2009-02-25  Bruno Haible  <bruno@clisp.org>
36935
36936         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36937         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36938         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36939         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36940         Reported by Gary V. Vaughan <gary@gnu.org>.
36941
36942 2009-02-25  Bruno Haible  <bruno@clisp.org>
36943
36944         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36945         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36946         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36947         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36948         Reported by Gary V. Vaughan <gary@gnu.org>.
36949
36950 2009-02-25  Eric Blake  <ebb9@byu.net>
36951
36952         tests: skip fseek/ftell tests if ungetc is broken
36953         * m4/ungetc.m4: New file.
36954         * modules/fseek-tests: Split test, so ungetc dependency is
36955         separate from rest of test.
36956         * modules/fseeko-tests: Likewise.
36957         * modules/ftell-tests: Likewise.
36958         * modules/ftello-tests: Likewise.
36959         * tests/test-fseek.c (main): Isolate ungetc dependency.
36960         * tests/test-fseeko.c (main): Likewise.
36961         * tests/test-ftell.c (main): Likewise.
36962         * tests/test-ftello.c (main): Likewise.
36963         * tests/test-fseek2.sh: New file.
36964         * tests/test-fseeko2.sh: Likewise.
36965         * tests/test-ftell2.sh: Likewise.
36966         * tests/test-ftello2.sh: Likewise.
36967
36968 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36969
36970         test-getaddrinfo: fix usage of skip return code 77
36971         * tests/test-gettaddrinfo.c: Return skip code 77 only
36972         for first occurance of skip (4x77 is not 77)
36973
36974 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36975
36976         strtod: avoid C99 decl-after-statement
36977         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36978
36979 2009-02-24  Eric Blake  <ebb9@byu.net>
36980
36981         strtod: detect HP-UX 11.31 bug
36982         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36983         Reported by Gary V. Vaughan.
36984
36985 2009-02-23  Bruno Haible  <bruno@clisp.org>
36986
36987         Fix invalid read past end of memory block.
36988         * lib/vasnprintf.c (DCHAR_SET): Define.
36989         (local_wcslen): Define only when needed.
36990         (local_strnlen, local_wcsnlen): New functions.
36991         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36992         directives that involve a conversion ourselves.
36993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36994         wcsnlen, mbrtowc, wcrtomb.
36995         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36996         * tests/test-vasprintf-posix.c (test_function): Likewise.
36997         * tests/test-snprintf-posix.h (test_function): Likewise.
36998         * tests/test-sprintf-posix.h (test_function): Likewise.
36999         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37000
37001 2009-02-22  Bruno Haible  <bruno@clisp.org>
37002
37003         Implement new clarified decomposition of Hangul syllables.
37004         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37005         of type LTV, return only a pairwise decomposition.
37006         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37007         Likewise.
37008         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37009         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37010         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37011
37012 2009-02-22  Bruno Haible  <bruno@clisp.org>
37013
37014         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37015         zero-length results and shrink excess allocated memory.
37016         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37017         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37018         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37019         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37020         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37021         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37022         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37023         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37024         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37025         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37026         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37027         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37028
37029 2009-02-21  Bruno Haible  <bruno@clisp.org>
37030
37031         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37032         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37033         spaces after a period. Put a space between a macro name and its
37034         argument list. Trivial rewordings.
37035         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37036         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37037         (main): Return 0 explicitly.
37038
37039 2009-02-21  Bruno Haible  <bruno@clisp.org>
37040
37041         Tests for module 'uninorm/filter'.
37042         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37043         * modules/uninorm/filter-tests: New file.
37044
37045         New module 'uninorm/filter'.
37046         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37047         uninorm_filter_flush, uninorm_filter_free): New declarations.
37048         * lib/uninorm/uninorm-filter.c: New file.
37049         * modules/uninorm/filter: New file.
37050
37051 2009-02-21  Bruno Haible  <bruno@clisp.org>
37052
37053         Tests for module 'uninorm/nfkc'.
37054         * tests/uninorm/test-nfkc.c: New file.
37055         * tests/uninorm/test-u8-nfkc.c: New file.
37056         * tests/uninorm/test-u16-nfkc.c: New file.
37057         * tests/uninorm/test-u32-nfkc.c: New file.
37058         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37059         * tests/uninorm/test-u32-nfkc-big.c: New file.
37060         * modules/uninorm/nfkc-tests: New file.
37061
37062         New module 'uninorm/nfkc'.
37063         * lib/uninorm/nfkc.c: New file.
37064         * modules/uninorm/nfkc: New file.
37065
37066         Tests for module 'uninorm/nfkd'.
37067         * tests/uninorm/test-nfkd.c: New file.
37068         * tests/uninorm/test-u8-nfkd.c: New file.
37069         * tests/uninorm/test-u16-nfkd.c: New file.
37070         * tests/uninorm/test-u32-nfkd.c: New file.
37071         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37072         * tests/uninorm/test-u32-nfkd-big.c: New file.
37073         * modules/uninorm/nfkd-tests: New file.
37074
37075         New module 'uninorm/nfkd'.
37076         * lib/uninorm/nfkd.c: New file.
37077         * modules/uninorm/nfkd: New file.
37078
37079         Tests for module 'uninorm/nfc'.
37080         * tests/uninorm/test-nfc.c: New file.
37081         * tests/uninorm/test-u8-nfc.c: New file.
37082         * tests/uninorm/test-u16-nfc.c: New file.
37083         * tests/uninorm/test-u32-nfc.c: New file.
37084         * tests/uninorm/test-u32-nfc-big.sh: New file.
37085         * tests/uninorm/test-u32-nfc-big.c: New file.
37086         * modules/uninorm/nfc-tests: New file.
37087
37088         New module 'uninorm/nfc'.
37089         * lib/uninorm/nfc.c: New file.
37090         * modules/uninorm/nfc: New file.
37091
37092         Tests for module 'uninorm/nfd'.
37093         * tests/uninorm/test-nfd.c: New file.
37094         * tests/uninorm/test-u8-nfd.c: New file.
37095         * tests/uninorm/test-u16-nfd.c: New file.
37096         * tests/uninorm/test-u32-nfd.c: New file.
37097         * tests/uninorm/test-u32-nfd-big.sh: New file.
37098         * tests/uninorm/test-u32-nfd-big.c: New file.
37099         * tests/uninorm/test-u32-normalize-big.h: New file.
37100         * tests/uninorm/test-u32-normalize-big.c: New file.
37101         * tests/uninorm/NormalizationTest.txt: New file, created from
37102         Unicode 5.1.0 NormalizationTest.txt.
37103         * modules/uninorm/nfd-tests: New file.
37104
37105         New module 'uninorm/nfd'.
37106         * lib/uninorm/nfd.c: New file.
37107         * modules/uninorm/nfd: New file.
37108
37109         New module 'uninorm/u32-normalize'.
37110         * lib/uninorm/u32-normalize.c: New file.
37111         * modules/uninorm/u32-normalize: New file.
37112
37113         New module 'uninorm/u16-normalize'.
37114         * lib/uninorm/u16-normalize.c: New file.
37115         * modules/uninorm/u16-normalize: New file.
37116
37117         New module 'uninorm/u8-normalize'.
37118         * lib/uninorm/u8-normalize.c: New file.
37119         * lib/uninorm/normalize-internal.h: New file.
37120         * lib/uninorm/u-normalize-internal.h: New file.
37121         * modules/uninorm/u8-normalize: New file.
37122
37123         New module 'uninorm/decompose-internal'.
37124         * lib/uninorm/decompose-internal.c: New file.
37125         * modules/uninorm/decompose-internal: New file.
37126
37127         Tests for module 'uninorm/composition'.
37128         * tests/uninorm/test-composition.c: New file.
37129         * modules/uninorm/composition-tests: New file.
37130
37131         New module 'uninorm/composition'.
37132         * lib/uninorm/composition.c: New file.
37133         * lib/uninorm/composition-table.gperf: New file, generated by
37134         gen-uni-tables.
37135         * modules/uninorm/composition: New file.
37136
37137         Tests for module 'uninorm/compat-decomposition'.
37138         * tests/uninorm/test-compat-decomposition.c: New file.
37139         * modules/uninorm/compat-decomposition-tests: New file.
37140
37141         New module 'uninorm/compat-decomposition'.
37142         * lib/uninorm/decompose-internal.h: New file.
37143         * lib/uninorm/compat-decomposition.c: New file.
37144         * modules/uninorm/compat-decomposition: New file.
37145
37146         Tests for module 'uninorm/canonical-decomposition'.
37147         * tests/uninorm/test-canonical-decomposition.c: New file.
37148         * modules/uninorm/canonical-decomposition-tests: New file.
37149
37150         New module 'uninorm/canonical-decomposition'.
37151         * lib/uninorm/canonical-decomposition.c: New file.
37152         * modules/uninorm/canonical-decomposition: New file.
37153
37154         Tests for module 'uninorm/decomposition'.
37155         * tests/uninorm/test-decomposition.c: New file.
37156         * modules/uninorm/decomposition-tests: New file.
37157
37158         New module 'uninorm/decomposition'.
37159         * lib/uninorm/decomposition.c: New file.
37160         * modules/uninorm/decomposition: New file.
37161
37162         New module 'uninorm/decomposition-table'.
37163         * lib/uninorm/decomposition-table.h: New file.
37164         * lib/uninorm/decomposition-table.c: New file.
37165         * lib/uninorm/decomposition-table1.h: New file, generated by
37166         gen-uni-tables.
37167         * lib/uninorm/decomposition-table2.h: New file, generated by
37168         gen-uni-tables.
37169         * modules/uninorm/decomposition-table: New file.
37170
37171         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37172         (UC_DECOMP_*): New enumeration items.
37173         (get_decomposition): New function.
37174         (struct decomp_table): New type.
37175         (output_decomposition, output_decomposition_tables): New functions.
37176         (unicode_composition_exclusions): New variable.
37177         (fill_composition_exclusions, debug_output_composition_tables): New
37178         functions.
37179         (main): Accept one more argument. Invoke fill_composition_exclusions.
37180         Output decomposition and composition tables.
37181
37182         New module 'uninorm/base'.
37183         * lib/uninorm.h: New file.
37184         * lib/unictype.h: Update comment.
37185         * modules/uninorm/base: New file.
37186
37187 2009-02-21  David Lutterkort  <lutter@redhat.com>
37188
37189         Tests for module 'safe-alloc'.
37190         * tests/test-safe-alloc.c: New file.
37191         * modules/safe-alloc-tests: New file.
37192
37193         New module 'safe-alloc'.
37194         * lib/safe-alloc.h: New file.
37195         * lib/safe-alloc.c: New file.
37196         * m4/safe-alloc.m4: New file.
37197         * modules/safe-alloc: New file.
37198         * doc/safe-alloc.texi: New file.
37199         * doc/gnulib.texi: Include it.
37200         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37201         safe-alloc.
37202
37203 2009-02-18  Bruno Haible  <bruno@clisp.org>
37204
37205         Fix link error on non-glibc systems.
37206         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37207         variable.
37208         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37209
37210 2009-02-18  Jim Meyering  <meyering@redhat.com>
37211
37212         fts: avoid used-uninitialized error due to recent change
37213         * lib/fts.c (fts_read): Guard uses of the new member,
37214         parent->fts_n_dirs_remaining, since it's not relevant for
37215         the parent of a directory specified on the command-line.
37216
37217 2009-02-17  James Youngman  <jay@gnu.org>
37218             Bruno Haible  <bruno@clisp.org>
37219
37220         * m4/include_next.m4: Reformulate comment.
37221
37222 2009-02-16  Jim Meyering  <meyering@redhat.com>
37223
37224         fts: add #if guards so that the fts_lgpl module still builds
37225         * lib/fts.c: Guard just-added hash-table-using parts with
37226         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37227         Reported by Simon Josefsson.
37228
37229 2009-02-15  Bruno Haible  <bruno@clisp.org>
37230
37231         * modules/array-mergesort-tests: New file.
37232         * tests/test-array-mergesort.c: New file.
37233
37234         New module 'array-mergesort'.
37235         * modules/array-mergesort: New file.
37236         * lib/array-mergesort.h: New file.
37237
37238 2009-02-15  Bruno Haible  <bruno@clisp.org>
37239
37240         Fix 2009-02-07 commit.
37241         * lib/gen-uni-tables.c (output_predicate, output_category,
37242         output_combclass, output_bidi_category, output_decimal_digit,
37243         output_digit, output_numeric, output_mirror, output_scripts,
37244         output_ident_category, output_simple_mapping): Fix format directives.
37245         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37246
37247 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37248
37249         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37250         fixes are available from IBM.
37251
37252 2009-02-13  Jim Meyering  <meyering@redhat.com>
37253
37254         fts: arrange not to stat non-directories in more cases
37255         This makes GNU find (when it doesn't need to stat each file)
37256         *much* more efficient at traversing reiserfs file systems.
37257         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37258         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37259         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37260         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37261         (leaf_optimization_applies): New function.
37262         (LCO_hash, LCO_compare): New helper functions.
37263         (link_count_optimize_ok): New function.
37264         (fts_stat): Initialize new member (if dir).
37265         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37266         we've just stat'ed a directory.  Skip the stat call when possible.
37267         ---
37268         Note this AFS-related exchange:
37269         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37270         and note find's pioctl call in find/fstype.c.
37271         But that is necessary only if you want to enable the
37272         optimization for AFS, and for now, I don't.
37273
37274         fts: move a function definition "up" (no semantic change)
37275         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37276         "up" to precede upcoming use of a related function.
37277
37278 2009-02-11  Jim Meyering  <meyering@redhat.com>
37279
37280         fts: correct internal computation of nlinks (optimization-related)
37281         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37282         whether the current entry is a directory, so don't test it.
37283
37284 2009-02-10  Bruno Haible  <bruno@clisp.org>
37285
37286         Tests for module 'uniwbrk/ulc-wordbreaks'.
37287         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37288         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37289         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37290
37291         Tests for module 'uniwbrk/u32-wordbreaks'.
37292         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37293         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37294
37295         Tests for module 'uniwbrk/u16-wordbreaks'.
37296         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37297         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37298
37299         Tests for module 'uniwbrk/u8-wordbreaks'.
37300         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37301         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37302
37303 2009-02-10  Bruno Haible  <bruno@clisp.org>
37304
37305         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37306         property.
37307         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37308         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37309         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37310
37311 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37312
37313         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37314         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37315
37316 2009-02-10  Bruno Haible  <bruno@clisp.org>
37317
37318         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37319         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37320         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37321         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37322         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37323         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37324
37325 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37326
37327         * lib/sockets.h (gl_fd_to_handle): New function.
37328
37329         * tests/test-sockets.c: Call gl_fd_to_handle.
37330
37331 2009-02-09  Bruno Haible  <bruno@clisp.org>
37332
37333         * doc/havelib.texi: Document the conventions on bi-arch systems.
37334
37335 2009-02-08  Bruno Haible  <bruno@clisp.org>
37336
37337         Document the AC_LIB_LINKFLAGS macro.
37338         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37339         * doc/gnulib.texi: Include it.
37340
37341 2009-02-08  Bruno Haible  <bruno@clisp.org>
37342
37343         Fix wrong order of sections, compared to TOC.
37344         * doc/gnulib.texi: Include relocatable-maint.texi after the
37345         "Regular expressions" node, not before.
37346
37347 2009-02-08  Bruno Haible  <bruno@clisp.org>
37348
37349         Tests for module 'unicase/totitle'.
37350         * modules/unicase/totitle-tests: New file.
37351
37352         Tests for module 'unicase/tolower'.
37353         * modules/unicase/tolower-tests: New file.
37354
37355         Tests for module 'unicase/toupper'.
37356         * modules/unicase/toupper-tests: New file.
37357         * tests/unicase/test-mapping-part1.h: New file.
37358         * tests/unicase/test-mapping-part2.h: New file.
37359
37360         New module 'unicase/totitle'.
37361         * modules/unicase/totitle: New file.
37362         * lib/unicase/totitle.c: New file.
37363
37364         New module 'unicase/tolower'.
37365         * modules/unicase/tolower: New file.
37366         * lib/unicase/tolower.c: New file.
37367
37368         New module 'unicase/toupper'.
37369         * modules/unicase/toupper: New file.
37370         * lib/unicase/toupper.c: New file.
37371         * lib/unicase/simple-mapping.h: New file.
37372
37373         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37374         (mapping_table): New structure.
37375         (output_simple_mapping): New function.
37376         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37377         * modules/gen-uni-tables (Description): Update.
37378         * lib/unicase/toupper.h: New file, automatically generated by
37379         gen-uni-tables.
37380         * lib/unicase/tolower.h: New file, automatically generated by
37381         gen-uni-tables.
37382         * lib/unicase/totitle.h: New file, automatically generated by
37383         gen-uni-tables.
37384         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37385         gen-uni-tables.
37386         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37387         gen-uni-tables.
37388         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37389         gen-uni-tables.
37390
37391         New module 'unicase/base'.
37392         * modules/unicase/base: New file.
37393         * lib/unicase.h: New file.
37394
37395 2009-02-08  Bruno Haible  <bruno@clisp.org>
37396
37397         New module 'uniwbrk/ulc-wordbreaks'.
37398         * modules/uniwbrk/ulc-wordbreaks: New file.
37399         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37400
37401         New module 'uniwbrk/u32-wordbreaks'.
37402         * modules/uniwbrk/u32-wordbreaks: New file.
37403         * lib/uniwbrk/u32-wordbreaks.c: New file.
37404
37405         New module 'uniwbrk/u16-wordbreaks'.
37406         * modules/uniwbrk/u16-wordbreaks: New file.
37407         * lib/uniwbrk/u16-wordbreaks.c: New file.
37408
37409         New module 'uniwbrk/u8-wordbreaks'.
37410         * modules/uniwbrk/u8-wordbreaks: New file.
37411         * lib/uniwbrk/u8-wordbreaks.c: New file.
37412         * lib/uniwbrk/u-wordbreaks.h: New file.
37413
37414         New module 'uniwbrk/table'.
37415         * modules/uniwbrk/table: New file.
37416         * lib/uniwbrk/wbrktable.h: New file.
37417         * lib/uniwbrk/wbrktable.c: New file.
37418
37419         New module 'uniwbrk/wordbreak-property'.
37420         * modules/uniwbrk/wordbreak-property: New file.
37421         * lib/uniwbrk/wordbreak-property.c: New file.
37422
37423         * lib/gen-uni-tables.c (WBP_*): New enum items.
37424         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37425         (unicode_org_wbp): New variable.
37426         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37427         New functions.
37428         (wbp_table): New structure.
37429         (output_wbp, output_wbrk_tables): New functions.
37430         (main): Accept additional argument. Invoke fill_org_wbp,
37431         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37432         output_wbrk_tables.
37433         * modules/gen-uni-tables (Description): Update.
37434         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37435         gen-uni-tables.
37436
37437         New module 'uniwbrk/base'.
37438         * modules/uniwbrk/base: New file.
37439         * lib/uniwbrk.h: New file.
37440
37441 2009-02-08  Bruno Haible  <bruno@clisp.org>
37442
37443         Update to Unicode 5.1.0.
37444         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37445         U+2185..U+2188.
37446         (is_property_default_ignorable_code_point): Don't include characters
37447         of category Cc or Cs and not-a-characters.
37448         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37449         U+0D79, U+109E, U+109F, U+A60C.
37450         * lib/unictype/bidi_of.h: Regenerated.
37451         * lib/unictype/blocks.h: Regenerated.
37452         * lib/unictype/categ_C.h: Regenerated.
37453         * lib/unictype/categ_Cf.h: Regenerated.
37454         * lib/unictype/categ_Cn.h: Regenerated.
37455         * lib/unictype/categ_L.h: Regenerated.
37456         * lib/unictype/categ_Ll.h: Regenerated.
37457         * lib/unictype/categ_Lm.h: Regenerated.
37458         * lib/unictype/categ_Lo.h: Regenerated.
37459         * lib/unictype/categ_Lu.h: Regenerated.
37460         * lib/unictype/categ_M.h: Regenerated.
37461         * lib/unictype/categ_Mc.h: Regenerated.
37462         * lib/unictype/categ_Me.h: Regenerated.
37463         * lib/unictype/categ_Mn.h: Regenerated.
37464         * lib/unictype/categ_N.h: Regenerated.
37465         * lib/unictype/categ_Nd.h: Regenerated.
37466         * lib/unictype/categ_Nl.h: Regenerated.
37467         * lib/unictype/categ_No.h: Regenerated.
37468         * lib/unictype/categ_P.h: Regenerated.
37469         * lib/unictype/categ_Pd.h: Regenerated.
37470         * lib/unictype/categ_Pe.h: Regenerated.
37471         * lib/unictype/categ_Pf.h: Regenerated.
37472         * lib/unictype/categ_Pi.h: Regenerated.
37473         * lib/unictype/categ_Po.h: Regenerated.
37474         * lib/unictype/categ_Ps.h: Regenerated.
37475         * lib/unictype/categ_S.h: Regenerated.
37476         * lib/unictype/categ_Sk.h: Regenerated.
37477         * lib/unictype/categ_Sm.h: Regenerated.
37478         * lib/unictype/categ_So.h: Regenerated.
37479         * lib/unictype/categ_of.h: Regenerated.
37480         * lib/unictype/combining.h: Regenerated.
37481         * lib/unictype/ctype_alnum.h: Regenerated.
37482         * lib/unictype/ctype_alpha.h: Regenerated.
37483         * lib/unictype/ctype_graph.h: Regenerated.
37484         * lib/unictype/ctype_lower.h: Regenerated.
37485         * lib/unictype/ctype_print.h: Regenerated.
37486         * lib/unictype/ctype_punct.h: Regenerated.
37487         * lib/unictype/ctype_upper.h: Regenerated.
37488         * lib/unictype/decdigit.h: Regenerated.
37489         * lib/unictype/digit.h: Regenerated.
37490         * lib/unictype/mirror.h: Regenerated.
37491         * lib/unictype/numeric.h: Regenerated.
37492         * lib/unictype/pr_alphabetic.h: Regenerated.
37493         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37494         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37495         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37496         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37497         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37498         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37499         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37500         * lib/unictype/pr_combining.h: Regenerated.
37501         * lib/unictype/pr_dash.h: Regenerated.
37502         * lib/unictype/pr_decimal_digit.h: Regenerated.
37503         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37504         * lib/unictype/pr_deprecated.h: Regenerated.
37505         * lib/unictype/pr_diacritic.h: Regenerated.
37506         * lib/unictype/pr_extender.h: Regenerated.
37507         * lib/unictype/pr_format_control.h: Regenerated.
37508         * lib/unictype/pr_grapheme_base.h: Regenerated.
37509         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37510         * lib/unictype/pr_grapheme_link.h: Regenerated.
37511         * lib/unictype/pr_id_continue.h: Regenerated.
37512         * lib/unictype/pr_id_start.h: Regenerated.
37513         * lib/unictype/pr_ideographic.h: Regenerated.
37514         * lib/unictype/pr_ignorable_control.h: Regenerated.
37515         * lib/unictype/pr_lowercase.h: Regenerated.
37516         * lib/unictype/pr_math.h: Regenerated.
37517         * lib/unictype/pr_numeric.h: Regenerated.
37518         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37519         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37520         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37521         * lib/unictype/pr_other_id_continue.h: Regenerated.
37522         * lib/unictype/pr_other_lowercase.h: Regenerated.
37523         * lib/unictype/pr_other_math.h: Regenerated.
37524         * lib/unictype/pr_punctuation.h: Regenerated.
37525         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37526         * lib/unictype/pr_soft_dotted.h: Regenerated.
37527         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37528         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37529         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37530         * lib/unictype/pr_uppercase.h: Regenerated.
37531         * lib/unictype/pr_xid_continue.h: Regenerated.
37532         * lib/unictype/pr_xid_start.h: Regenerated.
37533         * lib/unictype/pr_zero_width.h: Regenerated.
37534         * lib/unictype/scripts.h: Regenerated.
37535         * lib/unictype/scripts_byname.gperf: Regenerated.
37536         * lib/unictype/sy_java_ident.h: Regenerated.
37537         * lib/unilbrk/lbrkprop1.h: Regenerated.
37538         * lib/unilbrk/lbrkprop2.h: Regenerated.
37539         * tests/unictype/test-categ_C.c: Regenerated.
37540         * tests/unictype/test-categ_Cf.c: Regenerated.
37541         * tests/unictype/test-categ_Cn.c: Regenerated.
37542         * tests/unictype/test-categ_L.c: Regenerated.
37543         * tests/unictype/test-categ_Ll.c: Regenerated.
37544         * tests/unictype/test-categ_Lm.c: Regenerated.
37545         * tests/unictype/test-categ_Lo.c: Regenerated.
37546         * tests/unictype/test-categ_Lu.c: Regenerated.
37547         * tests/unictype/test-categ_M.c: Regenerated.
37548         * tests/unictype/test-categ_Mc.c: Regenerated.
37549         * tests/unictype/test-categ_Me.c: Regenerated.
37550         * tests/unictype/test-categ_Mn.c: Regenerated.
37551         * tests/unictype/test-categ_N.c: Regenerated.
37552         * tests/unictype/test-categ_Nd.c: Regenerated.
37553         * tests/unictype/test-categ_Nl.c: Regenerated.
37554         * tests/unictype/test-categ_No.c: Regenerated.
37555         * tests/unictype/test-categ_P.c: Regenerated.
37556         * tests/unictype/test-categ_Pd.c: Regenerated.
37557         * tests/unictype/test-categ_Pe.c: Regenerated.
37558         * tests/unictype/test-categ_Pf.c: Regenerated.
37559         * tests/unictype/test-categ_Pi.c: Regenerated.
37560         * tests/unictype/test-categ_Po.c: Regenerated.
37561         * tests/unictype/test-categ_Ps.c: Regenerated.
37562         * tests/unictype/test-categ_S.c: Regenerated.
37563         * tests/unictype/test-categ_Sk.c: Regenerated.
37564         * tests/unictype/test-categ_Sm.c: Regenerated.
37565         * tests/unictype/test-categ_So.c: Regenerated.
37566         * tests/unictype/test-ctype_alnum.c: Regenerated.
37567         * tests/unictype/test-ctype_alpha.c: Regenerated.
37568         * tests/unictype/test-ctype_graph.c: Regenerated.
37569         * tests/unictype/test-ctype_lower.c: Regenerated.
37570         * tests/unictype/test-ctype_print.c: Regenerated.
37571         * tests/unictype/test-ctype_punct.c: Regenerated.
37572         * tests/unictype/test-ctype_upper.c: Regenerated.
37573         * tests/unictype/test-decdigit.h: Regenerated.
37574         * tests/unictype/test-digit.h: Regenerated.
37575         * tests/unictype/test-numeric.h: Regenerated.
37576         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37577         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37578         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37579         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37580         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37581         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37582         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37583         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37584         * tests/unictype/test-pr_combining.c: Regenerated.
37585         * tests/unictype/test-pr_dash.c: Regenerated.
37586         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37587         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37588         * tests/unictype/test-pr_deprecated.c: Regenerated.
37589         * tests/unictype/test-pr_diacritic.c: Regenerated.
37590         * tests/unictype/test-pr_extender.c: Regenerated.
37591         * tests/unictype/test-pr_format_control.c: Regenerated.
37592         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37593         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37594         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37595         * tests/unictype/test-pr_id_continue.c: Regenerated.
37596         * tests/unictype/test-pr_id_start.c: Regenerated.
37597         * tests/unictype/test-pr_ideographic.c: Regenerated.
37598         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37599         * tests/unictype/test-pr_lowercase.c: Regenerated.
37600         * tests/unictype/test-pr_math.c: Regenerated.
37601         * tests/unictype/test-pr_numeric.c: Regenerated.
37602         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37603         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37604         Regenerated.
37605         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37606         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37607         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37608         * tests/unictype/test-pr_other_math.c: Regenerated.
37609         * tests/unictype/test-pr_punctuation.c: Regenerated.
37610         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37611         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37612         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37613         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37614         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37615         * tests/unictype/test-pr_uppercase.c: Regenerated.
37616         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37617         * tests/unictype/test-pr_xid_start.c: Regenerated.
37618         * tests/unictype/test-pr_zero_width.c: Regenerated.
37619
37620         Update to Unicode 5.1.0.
37621         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37622         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37623         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37624         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37625         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37626         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37627         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37628         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37629         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37630         (nonspacing_table_ind): Update.
37631         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37632
37633         Update to Unicode 5.1.0.
37634         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37635         code transform.
37636         * lib/uniname/uniname.c (unicode_character_name,
37637         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37638         * lib/uniname/uninames.h: Regenerated.
37639         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37640
37641 2009-02-07  Bruno Haible  <bruno@clisp.org>
37642
37643         Merge gen-ctype and gen-lbrk into a single program.
37644         * lib/gen-uni-tables.c: New file, incorporating
37645         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37646         Add directory prefixes to the names of the generated files.
37647         * lib/unictype/gen-ctype.c: Remove file.
37648         * lib/unilbrk/gen-lbrk.c: Remove file.
37649         * modules/gen-uni-tables: New file.
37650         * modules/unictype/gen-ctype: Remove file.
37651         * modules/unilbrk/gen-lbrk: Remove file.
37652
37653 2009-02-07  Bruno Haible  <bruno@clisp.org>
37654
37655         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37656
37657         New module 'unistr/u32-strcoll'.
37658         * modules/unistr/u32-strcoll: New file.
37659         * lib/unistr/u32-strcoll.c: New file.
37660
37661         New module 'unistr/u16-strcoll'.
37662         * modules/unistr/u16-strcoll: New file.
37663         * lib/unistr/u16-strcoll.c: New file.
37664
37665         New module 'unistr/u8-strcoll'.
37666         * modules/unistr/u8-strcoll: New file.
37667         * lib/unistr/u8-strcoll.c: New file.
37668         * lib/unistr/u-strcoll.h: New file.
37669
37670 2009-02-07  Bruno Haible  <bruno@clisp.org>
37671
37672         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37673         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37674         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37675         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37676         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37677         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37678
37679 2009-02-07  Bruno Haible  <bruno@clisp.org>
37680
37681         Make 64-bit clean.
37682         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37683         output_combclass, output_bidi_category, output_decimal_digit,
37684         output_digit, output_numeric, output_mirror, output_scripts,
37685         output_ident_category): Use proper width specifier in format strings.
37686
37687 2009-02-07  Bruno Haible  <bruno@clisp.org>
37688
37689         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37690         failure behaviour.
37691
37692 2009-02-07  Jim Meyering  <meyering@redhat.com>
37693
37694         regex: avoid compilation failure with upcoming gcc-4.4
37695         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37696         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37697         "... error: integer overflow in preprocessor expression".
37698
37699 2009-02-05  Ben Pfaff  <blp@gnu.org>
37700
37701         Fix link errors on Windows when close module is used.
37702         * modules/close: Add $(LIB_CLOSE) to Link section.
37703         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37704         $(LIB_CLOSE) on Windows.
37705
37706 2009-02-05  Jim Meyering  <meyering@redhat.com>
37707
37708         still avoid unused-parameter warnings, but do it cleanly
37709         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37710         (get_fs_usage): Cast to void instead.
37711         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37712         (dev_from_mount_options, read_file_system_list): Cast to void.
37713         Prompted by Bruno Haible.
37714
37715 2009-02-04  Jim Meyering  <meyering@redhat.com>
37716
37717         fsusage.c: correct copyright year
37718         * lib/fsusage.c: Reflect year in which the change is pushed into
37719
37720         avoid misc. warnings
37721         * lib/fsusage.c (UNUSED_PARAM): Define.
37722         (get_fs_usage): Mark parameter "disk" as unused.
37723         * lib/getugroups.c (getgrent): Use "void" in prototype.
37724         * lib/mountlist.c: Mark unused parameters.
37725         (read_file_system_list): Declare a local with "const".
37726         * lib/nanosleep.c (getnow): Declare static.
37727         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37728
37729         dirfd: set errno upon failure
37730         * lib/dirfd.c: Include <errno.h>.
37731         Set errno to ENOTSUP when returning -1.
37732         * modules/dirfd (Depends-on): Add errno.
37733         Suggested by John Kodis <kodis@comcast.net>.
37734
37735 2009-02-01  Bruno Haible  <bruno@clisp.org>
37736
37737         Don't assume sizeof (long) >= sizeof (void *).
37738         * lib/memcmp.c: Include stdint.h.
37739         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37740         srcp2 to 'const byte *'.
37741         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37742         types to uintptr_t.
37743         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37744         * modules/memcmp (Depends-on): Add stdint.
37745         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37746
37747 2009-01-30  Eric Blake  <ebb9@byu.net>
37748
37749         fix more require-before-expand issues
37750         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37751         expand, AC_PROG_AWK.
37752         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37753
37754 2009-01-28  Eric Blake  <ebb9@byu.net>
37755
37756         version-etc: use consistent URL formatting
37757         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37758         Improve formatting.  Use fputs for string without %.
37759
37760 2009-01-28  Jim Meyering  <meyering@redhat.com>
37761
37762         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37763         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37764         "underquoted definition of NAME" from autoconf-2.59.
37765
37766 2009-01-28  Bruno Haible  <bruno@clisp.org>
37767
37768         * doc/gnulib.texi: Add "Obsolete modules" to index.
37769
37770 2009-01-28  Jim Meyering  <meyering@redhat.com>
37771
37772         useless-if-before-free: recognize more variants
37773         * build-aux/useless-if-before-free: Also recognize e.g.,
37774         if (NULL != p) free (p);
37775
37776 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37777
37778         test-getaddrinfo: skip (don't fail) this test when there's no network
37779         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37780         on the presumption that it means you lack network access.
37781
37782 2009-01-26  Jim Meyering  <meyering@redhat.com>
37783
37784         fflush: avoid warnings on modern systems
37785         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37786         pos and result, into scopes where they're used.
37787
37788 2009-01-26  Eric Blake  <ebb9@byu.net>
37789
37790         Silence warning reintroduced by recent extensions patch.
37791         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37792         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37793         autoconf.
37794
37795         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37796         * m4/00gnulib.m4: New file.
37797         * gnulib-tool (func_get_filelist): Always use it.
37798         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37799         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37800
37801 2009-01-25  Bruno Haible  <bruno@clisp.org>
37802
37803         Make test-quotearg work on MacOS X and AIX.
37804         * tests/test-quotearg.sh: New file.
37805         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37806         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37807         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37808         include <libintl.h>.
37809         (fake_locale): Remove variable.
37810         (gettext, dgettext, dcgettext): Remove functions.
37811         (main): Instead of setting a fake locale, set a real locale. Call
37812         textdomain and bindtextdomain.
37813         * modules/quotearg-tests (Files): Add the new files.
37814         (Depends-on): Add gettext, setenv, unsetenv.
37815         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37816         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37817         Augment TESTS_ENVIRONMENT.
37818
37819 2009-01-25  Bruno Haible  <bruno@clisp.org>
37820
37821         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37822         fr_FR.ISO8859-1 locale on MacOS X.
37823         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37824         ja_JP.eucJP locale on MacOS X.
37825         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37826         zh_CN.GB18030 locale on MacOS X.
37827
37828 2009-01-25  Bruno Haible  <bruno@clisp.org>
37829
37830         Avoid link errors on MacOS X 10.3.
37831         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37832         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37833
37834 2009-01-25  Bruno Haible  <bruno@clisp.org>
37835
37836         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37837         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37838         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37839         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37840         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37841         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37842         posix_spawnattr_init, posix_spawnattr_setsigmask,
37843         posix_spawnattr_setflags, posix_spawnattr_destroy.
37844
37845         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37846         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37847         * modules/execute (Files): Remove m4/posix_spawn.m4.
37848         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37849         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37850         posix_spawnattr_init, posix_spawnattr_setsigmask,
37851         posix_spawnattr_setflags, posix_spawnattr_destroy.
37852
37853 2009-01-25  Bruno Haible  <bruno@clisp.org>
37854
37855         * lib/glthread/threadlib.c: Include <stdlib.h>.
37856
37857 2009-01-25  Bruno Haible  <bruno@clisp.org>
37858
37859         * lib/glthread/threadlib.c (dummy): New declaration.
37860
37861 2009-01-25  Bruno Haible  <bruno@clisp.org>
37862
37863         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37864         multibyte characters also for the GB18030 encoding. Don't crash when
37865         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37866
37867 2009-01-25  Bruno Haible  <bruno@clisp.org>
37868
37869         Avoid redefining 'struct random_data' on OSF/1 5.1.
37870         * lib/stdlib.in.h: Include <random.h> if it exists.
37871         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37872         HAVE_RANDOM_H. Include <random.h> when testing whether
37873         'struct random_data' exists.
37874         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37875
37876 2009-01-25  Bruno Haible  <bruno@clisp.org>
37877
37878         Don't install charset.alias on MacOS X >= 10.3.
37879         * lib/localcharset.c (DARWIN7): New macro.
37880         (get_charset_aliases): Hardcode the result for Darwin7.
37881         * modules/localcharset (install-exec-local): Don't install
37882         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37883
37884 2009-01-25  Bruno Haible  <bruno@clisp.org>
37885
37886         Don't install charset.alias on mingw and Cygwin.
37887         * modules/localcharset (install-exec-local): Don't install
37888         charset.alias on mingw and Cygwin, if the file does not yet exist.
37889         The result for these platforms is hardcoded in localcharset.c.
37890
37891 2009-01-25  Bruno Haible  <bruno@clisp.org>
37892
37893         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37894         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37895         before requiring AC_USE_SYSTEM_EXTENSIONS.
37896
37897 2009-01-25  Jim Meyering  <meyering@redhat.com>
37898
37899         c-strtod: avoid warnings
37900         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37901         "assignment discards qualifiers from pointer target type" warnings.
37902
37903 2009-01-24  Bruno Haible  <bruno@clisp.org>
37904
37905         Add support for non-UTF-8 locales on MacOS X.
37906         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37907         canonical encodings. For Darwin 7 and newer, don't map traditional
37908         encodings to UTF-8.
37909         Reported by Vincent Lefevre <vincent@vinc17.org>
37910         at <http://savannah.gnu.org/bugs/?25235>.
37911
37912 2009-01-24  Bruno Haible  <bruno@clisp.org>
37913
37914         * doc/gnulib.texi (Obsolete modules): New section.
37915         Reported by Mike Frysinger <vapier@gentoo.org>.
37916
37917 2009-01-24  Bruno Haible  <bruno@clisp.org>
37918
37919         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37920         (%.dvi): New rule.
37921
37922 2009-01-24  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37925         Reported by Eric Blake.
37926
37927 2009-01-24  Bruno Haible  <bruno@clisp.org>
37928
37929         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37930         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37931         Reported by Gary V. Vaughan <gary@gnu.org>.
37932
37933 2009-01-24  Bruno Haible  <bruno@clisp.org>
37934
37935         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37936
37937 2009-01-23  Bruno Haible  <bruno@clisp.org>
37938
37939         Make c-strtod, c-strtold usable in libraries.
37940         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37941         (C_STRTOD): Call strdup instead of xstrdup.
37942         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37943         * modules/c-strtold (Depends-on): Likewise.
37944         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37945         * NEWS: Mention the change.
37946         Reported by Michael Gold <mgold@ncf.ca>.
37947
37948 2009-01-23  Jim Meyering  <meyering@redhat.com>
37949
37950         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37951         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37952         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37953
37954 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37955
37956         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37957         GNU CoreUtils.
37958         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37959         * modules/version-etc (Description): Update.
37960
37961 2009-01-22  Bruno Haible  <bruno@clisp.org>
37962
37963         Cache the C locale object.
37964         * lib/c-strtod.c (c_locale_cache): New variable.
37965         (c_locale): New function.
37966         (C_STRTOD): Use it, and don't call freelocale.
37967         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37968         Suggested by Paolo Bonzini.
37969
37970 2009-01-21  Bruno Haible  <bruno@clisp.org>
37971
37972         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37973         conditions other than overflow.
37974
37975 2009-01-21  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/c-strtod.c: Include errno.h.
37978         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37979         value from STRTOD_L and STRTOD.
37980
37981 2009-01-21  Bruno Haible  <bruno@clisp.org>
37982         and Jim Meyering  <meyering@redhat.com>
37983
37984         nanosleep: skip configure test (fail it) for apple universal builds
37985         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37986         universal builds, assume that nanosleep does not work.
37987         * modules/nanosleep (Depends-on): Add multiarch.
37988
37989         mktime: skip configure test (fail it) for apple universal builds
37990         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37991         universal builds, assume that mktime does not work.
37992         * modules/mktime (Depends-on): Add multiarch.
37993
37994 2009-01-21  Eric Blake  <ebb9@byu.net>
37995
37996         multiarch: avoid expand-before-require warning
37997         * modules/multiarch (configure.ac): Require, rather than expand,
37998         gl_MULTIARCH.
37999         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38000         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38001         enforce that all clients require it.  Partial reversion of
38002         2008-12-29 patch.
38003
38004         error: avoid expand-before-require warning
38005         * modules/errno (configure.ac): Require, rather than expand,
38006         gl_HEADER_ERRNO_H.
38007         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38008         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38009         enforce that all clients require it.
38010
38011         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38012         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38013         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38014         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38015
38016 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38017
38018         Revert:
38019         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38020
38021         regex: do not depend on obsolete modules.
38022         * modules/regex: Remove memcmp and memmove.
38023
38024 2009-01-20  Bruno Haible  <bruno@clisp.org>
38025
38026         Make the 'link' module link on Windows NT 4.
38027         * lib/link.c (_WIN32_WINNT): Don't define.
38028         (CreateHardLinkFuncType): New type.
38029         (CreateHardLinkFunc, initialized): New variables.
38030         (initialize): New function.
38031         (link): Invoke CreateHardLink indirectly through the function pointer.
38032
38033 2009-01-20  Bruno Haible  <bruno@clisp.org>
38034
38035         Fix compilation failure on mingw.
38036         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38037
38038 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38039
38040         * doc/c-strtod.texi: Mention a couple of restrictions.
38041
38042 2009-01-20  Jim Meyering  <meyering@redhat.com>
38043
38044         gettimeofday: move more declarations out of functions
38045         * lib/gettimeofday.c: Move extern declarations of tzset and
38046         gmtime out of containing functions.  Prompted by Bruno Haible.
38047
38048 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38049
38050         regex: do not depend on obsolete modules.
38051         * modules/regex: Remove memcmp and memmove.
38052
38053 2009-01-19  Bruno Haible  <bruno@clisp.org>
38054
38055         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38056         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38057         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38058         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38059         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38060
38061 2009-01-19  Bruno Haible  <bruno@clisp.org>
38062
38063         * tests/test-link.c: Include <errno.h>.
38064         (main): Exit with code 77 when a hard link cannot be created due to
38065         the file system.
38066         * tests/test-link.sh: Skip test when a hard link cannot be created due
38067         to the file system.
38068         Suggested by Eric Blake.
38069
38070 2009-01-19  Martin Lambers  <marlam@marlam.de>
38071
38072         * modules/link-tests: New file.
38073         * tests/test-link.sh: New file.
38074         * tests/test-link.c: New file.
38075
38076 2009-01-19  Eric Blake  <ebb9@byu.net>
38077
38078         doc: mention another function added in cygwin 1.7.0
38079         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38080         Another new function in cygwin 1.7.
38081
38082 2009-01-19  Bruno Haible  <bruno@clisp.org>
38083
38084         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38085         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38086         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38087         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38088         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38089         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38090         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38091         * m4/md4.m4 (gl_MD4): Likewise.
38092         * m4/md5.m4 (gl_MD5): Likewise.
38093         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38094         * m4/sha1.m4 (gl_SHA1): Likewise.
38095         * m4/sha256.m4 (gl_SHA256): Likewise.
38096         * m4/sha512.m4 (gl_SHA512): Likewise.
38097
38098 2009-01-19  Bruno Haible  <bruno@clisp.org>
38099
38100         * modules/uniname/uniname-tests (Depends-on): Add progname.
38101         * tests/uniname/test-uninames.c: Include progname.h.
38102         (main): Call set_program_name.
38103
38104         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38105         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38106         (main): Call set_program_name.
38107
38108         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38109         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38110         (main): Call set_program_name.
38111
38112         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38113         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38114         (main): Call set_program_name.
38115
38116         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38117         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38118         (main): Call set_program_name.
38119
38120         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38121         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38122         (main): Call set_program_name.
38123
38124         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38125         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38126         (main): Call set_program_name.
38127
38128         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38129         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38130         (main): Call set_program_name.
38131
38132         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38133         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38134         (main): Call set_program_name.
38135
38136 2009-01-19  Eric Blake  <ebb9@byu.net>
38137
38138         test-unistd: test previous patch
38139         * tests/test-unistd.c: Test *_FILENO macros.
38140
38141         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38142         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38143         Guarantee a definition.
38144         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38145         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38146         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38147         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38148         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38149         Likewise.
38150         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38151         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38152         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38153         Likewise.
38154         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38155         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38156         (STDERR_FILENO): Likewise.
38157         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38158         (STDERR_FILENO): Likewise.
38159         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38160         (STDERR_FILENO): Likewise.
38161         Reported by Elbert Pol.
38162
38163 2009-01-19  Eric Blake  <ebb9@byu.net>
38164
38165         doc: mention more functions added in cygwin 1.7.0
38166         * doc/posix-functions/abort.texi (abort): Update wording related
38167         to cygwin.
38168         * doc/posix-functions/daylight.texi (daylight): Likewise.
38169         * doc/posix-functions/optarg.texi (optarg): Likewise.
38170         * doc/posix-functions/optarg.texi (opterr): Likewise.
38171         * doc/posix-functions/optarg.texi (optind): Likewise.
38172         * doc/posix-functions/optarg.texi (optopt): Likewise.
38173         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38174         worked in 1.5.x, and was withdrawn in 1.7.
38175         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38176         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38177         cygwin versions.
38178         * doc/posix-functions/perror.texi (perror): Likewise.
38179         * doc/posix-functions/printf.texi (printf): Likewise.
38180         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38181         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38182         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38183         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38184         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38185         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38186         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38187         Likewise.
38188         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38189         Likewise.
38190         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38191         this function.
38192         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38193         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38194         Likewise.
38195         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38196         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38197         * doc/posix-functions/confstr.texi (confstr): Likewise.
38198         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38199         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38200         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38201         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38202         * doc/posix-functions/fputws.texi (fputws): Likewise.
38203         * doc/posix-functions/fwide.texi (fwide): Likewise.
38204         * doc/posix-functions/getwc.texi (getwc): Likewise.
38205         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38206         * doc/posix-functions/putwc.texi (putwc): Likewise.
38207         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38208         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38209         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38210         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38211         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38212         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38213         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38214         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38215         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38216         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38217         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38218
38219 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38220
38221         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38222         * lib/ioctl.c: Include <sys/ioctl.h>.
38223
38224 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38225
38226         * modules/getdate-tests (Depends-on): Add progname.
38227         * tests/test-getdate.c: Use progname module, to avoid link errors
38228         on non-glibc systems.
38229
38230 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38231
38232         * modules/filenamecat-tests (Depends-on): Add progname.
38233         * modules/fstrcmp-tests (Depends-on): Likewise.
38234
38235         * tests/test-filenamecat.c: Use progname module, to avoid link
38236         errors on non-glibc systems.
38237         * tests/test-fstrcmp.c: Likewise.
38238
38239 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38240
38241         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38242         * lib/gettimeofday.c: Move extern declaration out of function.
38243
38244 2009-01-18  Bruno Haible  <bruno@clisp.org>
38245
38246         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38247         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38248         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38249
38250 2009-01-18  Bruno Haible  <bruno@clisp.org>
38251
38252         * lib/strftime.c (MEMPCPY): Remove unused macro.
38253         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38254
38255 2009-01-18  Martin Lambers  <marlam@marlam.de>
38256
38257         New module 'link'.
38258         * lib/unistd.in.h (link): New declaration.
38259         * lib/link.c: New file.
38260         * m4/link.m4: New file.
38261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38262         HAVE_LINK.
38263         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38264         * modules/link: New file.
38265         * doc/posix-functions/link.texi: Mention the new module.
38266
38267 2009-01-18  Bruno Haible  <bruno@clisp.org>
38268
38269         * tests/test-avltree_list.c (main): Call set_program_name.
38270         * tests/test-avltree_oset.c (main): Likewise.
38271         * tests/test-obstack-printf.c: Include progname.h.
38272         (main): Call set_program_name.
38273         * tests/test-quotearg.c: Include progname.h.
38274         (main): Call set_program_name.
38275         * tests/test-xmemdup0.c: Include progname.h.
38276         (main): Call set_program_name.
38277
38278 2009-01-18  Bruno Haible  <bruno@clisp.org>
38279
38280         New module 'alphasort'.
38281         * lib/dirent.in.h (alphasort): New declaration.
38282         * lib/alphasort.c: New file, from glibc with modifications.
38283         * m4/alphasort.m4: New file.
38284         * modules/alphasort: New file.
38285         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38286         HAVE_ALPHASORT.
38287         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38288         HAVE_ALPHASORT.
38289         * doc/posix-functions/alphasort.texi: Mention the new module and the
38290         portability problems.
38291
38292 2009-01-18  Bruno Haible  <bruno@clisp.org>
38293
38294         New module 'scandir'.
38295         * lib/dirent.in.h (scandir): New declaration.
38296         * lib/scandir.c: New file, from glibc with modifications.
38297         * m4/scandir.m4: New file.
38298         * modules/scandir: New file.
38299         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38300         HAVE_SCANDIR.
38301         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38302         HAVE_SCANDIR.
38303         * doc/posix-functions/scandir.texi: Mention the new module and the
38304         portability problems.
38305
38306 2009-01-17  Bruno Haible  <bruno@clisp.org>
38307
38308         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38309         Update documentation.
38310         (func_remove_suffix): Escape all dots in the suffix. Update
38311         documentation.
38312         (func_filter_filelist): Update documentation.
38313         Reported by Ralf Wildenhues.
38314
38315 2009-01-17  Bruno Haible  <bruno@clisp.org>
38316
38317         * modules/dprintf-posix-tests: New file.
38318         * tests/test-dprintf-posix.sh: New file.
38319         * tests/test-dprintf-posix.c: New file.
38320
38321         New modules 'dprintf', 'dprintf-posix'.
38322         * lib/stdio.in.h (dprintf): New declaration.
38323         * lib/dprintf.c: New file.
38324         * m4/dprintf.m4: New file.
38325         * m4/dprintf-posix.m4: New file.
38326         * modules/dprintf: New file.
38327         * modules/dprintf-posix: New file.
38328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38329         HAVE_DPRINTF, REPLACE_DPRINTF.
38330         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38331         HAVE_DPRINTF, REPLACE_DPRINTF.
38332         * doc/posix-functions/dprintf.texi: Mention the new modules.
38333
38334 2009-01-17  Bruno Haible  <bruno@clisp.org>
38335
38336         * modules/vdprintf-posix-tests: New file.
38337         * tests/test-vdprintf-posix.sh: New file.
38338         * tests/test-vdprintf-posix.c: New file.
38339
38340         New modules 'vdprintf', 'vdprintf-posix'.
38341         * lib/stdio.in.h (vdprintf): New declaration.
38342         * lib/vdprintf.c: New file.
38343         * m4/vdprintf.m4: New file.
38344         * m4/vdprintf-posix.m4: New file.
38345         * modules/vdprintf: New file.
38346         * modules/vdprintf-posix: New file.
38347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38348         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38349         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38350         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38351         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38352
38353 2009-01-17  Bruno Haible  <bruno@clisp.org>
38354
38355         Fix replacement of fopen on mingw.
38356         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38357         mingw.
38358
38359 2009-01-17  Bruno Haible  <bruno@clisp.org>
38360
38361         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38362         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38363
38364 2009-01-17  Bruno Haible  <bruno@clisp.org>
38365
38366         Avoid test-fflush2.sh failure on mingw.
38367         * tests/test-fflush2.c: Include binary-io.h.
38368         (main): Put standard input into binary mode.
38369         * modules/fflush-tests (Depends-on): Add binary-io.
38370
38371 2009-01-17  Bruno Haible  <bruno@clisp.org>
38372
38373         * lib/wchar.in.h: In another particular situation, include only the
38374         system's <wchar.h> file.
38375         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38376         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38377         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38378
38379 2009-01-17  Bruno Haible  <bruno@clisp.org>
38380
38381         Support for stripping executables in --enable-relocatable.
38382         * build-aux/install-reloc: Expect one more argument, or an environment
38383         variable RELOC_STRIP_PROG. If set, strip the destination program and
38384         its wrapper.
38385         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38386         RELOC_STRIP_PROG.
38387         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38388         to set RELOCATABLE_STRIP.
38389         * NEWS: Mention the new Makefile requirement.
38390
38391 2009-01-17  Bruno Haible  <bruno@clisp.org>
38392
38393         * build-aux/install-reloc: Remove debugging information left over by
38394         C compiler on MacOS X.
38395
38396 2009-01-17  Bruno Haible  <bruno@clisp.org>
38397
38398         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38399         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38400         _NSGetExecutablePath.
38401
38402 2009-01-16  Jim Meyering  <meyering@redhat.com>
38403
38404         strerror: avoid warnings about discarding "const"
38405         * lib/strerror.c (rpl_strerror): Instead of returning a const
38406         string from each and every "case", use a variable, and add a single
38407         cast after the switch.
38408
38409 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38410
38411         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38412
38413 2009-01-16  Bruno Haible  <bruno@clisp.org>
38414
38415         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38416         array initializer syntax that also works in C++ mode.
38417         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38418
38419 2009-01-16  Jim Meyering  <meyering@redhat.com>
38420
38421         poll: suppress a warning
38422         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38423         to ignore "...unsigned expression < 0 is always false" warnings.
38424
38425 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38426
38427         poll: remove declarations of unused variables
38428         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38429         sockbuf and optlen.
38430
38431 2009-01-15  Bruno Haible  <bruno@clisp.org>
38432
38433         Make fflush-after-ungetc POSIX compliant on BSD systems.
38434         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38435         (clear_ungetc_buffer): Implement also for other systems.
38436         (rpl_fflush): On glibc systems, invoke
38437         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38438         clear_ungetc_buffer after fetching the stream's position, not before.
38439
38440 2009-01-15  Bruno Haible  <bruno@clisp.org>
38441
38442         Make fflush-after-ungetc POSIX compliant on glibc systems.
38443         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38444         after ungetc.
38445         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38446         (rpl_fflush): On glibc systems, simply call the system's fflush
38447         function after clearing the ungetc buffer.
38448         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38449         Instead, lseek only to the end of file, then use the system's fseeko
38450         for the rest. On glibc systems, reset the EOF indicator bit.
38451
38452 2009-01-15  Jim Meyering  <meyering@redhat.com>
38453
38454         openmp.m4: revert quote-adding change, for portability to older autoconf
38455         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38456         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38457         Simon Josefsson noticed the problem when using autoconf-2.61.
38458
38459 2009-01-15  Bruno Haible  <bruno@clisp.org>
38460
38461         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38462         * tests/test-fflush2.c (ASSERT): Always fail.
38463         (main): Add two tests for fflush() after ungetc(), taking into account
38464         the Austin Group's clarification.
38465         Suggested by Eric Blake.
38466
38467 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38468
38469         mktime.m4: remove K&R-style function prototypes
38470         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38471         for the Sun C++ compiler.
38472
38473 2009-01-14  Bruno Haible  <bruno@clisp.org>
38474
38475         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38476         while including <wchar.h>.
38477         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38478         the system's <wchar.h> file.
38479         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38480
38481 2009-01-14  Bruno Haible  <bruno@clisp.org>
38482
38483         * m4/csharp.m4: Don't mention gettext on the serial number line.
38484         * m4/csharpexec.m4: Likewise.
38485         * m4/eaccess.m4: Likewise.
38486         * m4/javaexec.m4: Likewise.
38487         * m4/sig_atomic_t.m4: Likewise.
38488         * m4/tmpdir.m4: Likewise.
38489         * m4/intldir.m4: Bump gettext version.
38490         * m4/lib-ld.m4: Likewise.
38491
38492 2009-01-14  Bruno Haible  <bruno@clisp.org>
38493
38494         * lib/progname.c (set_program_name): Add more comments.
38495         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38496
38497 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38498
38499         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38500         were sys/stat.h does not define it.
38501
38502 2009-01-14  Jim Meyering  <meyering@redhat.com>
38503
38504         many *.m4 files: improve m4 quoting
38505         99% of this change was performed by running the following commands:
38506         git ls-files | grep '\.m4$' | xargs perl -pi \
38507           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38508           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38509           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38510           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38511         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38512         The remainder were to add Copyright dates, increment serial numbers,
38513         undo some changes in comments, exclude m4/intl.m4, and add quotes
38514         around the "1" in ",1" where the unusual spacing prohibited the
38515         above regexps from doing the job.  For more details, see
38516         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38517         * m4/acl.m4: Modified.
38518         * m4/afs.m4: Likewise.
38519         * m4/alloca.m4: Likewise.
38520         * m4/argp.m4: Likewise.
38521         * m4/argz.m4: Likewise.
38522         * m4/atexit.m4: Likewise.
38523         * m4/bison-i18n.m4: Likewise.
38524         * m4/bison.m4: Likewise.
38525         * m4/byteswap.m4: Likewise.
38526         * m4/c-stack.m4: Likewise.
38527         * m4/c-strtod.m4: Likewise.
38528         * m4/calloc.m4: Likewise.
38529         * m4/canonicalize-lgpl.m4: Likewise.
38530         * m4/chown.m4: Likewise.
38531         * m4/clock_time.m4: Likewise.
38532         * m4/codeset.m4: Likewise.
38533         * m4/copy-file.m4: Likewise.
38534         * m4/csharp.m4: Likewise.
38535         * m4/csharpcomp.m4: Likewise.
38536         * m4/csharpexec.m4: Likewise.
38537         * m4/d-ino.m4: Likewise.
38538         * m4/d-type.m4: Likewise.
38539         * m4/dirfd.m4: Likewise.
38540         * m4/double-slash-root.m4: Likewise.
38541         * m4/eaccess.m4: Likewise.
38542         * m4/eealloc.m4: Likewise.
38543         * m4/environ.m4: Likewise.
38544         * m4/errno_h.m4: Likewise.
38545         * m4/euidaccess.m4: Likewise.
38546         * m4/execute.m4: Likewise.
38547         * m4/fatal-signal.m4: Likewise.
38548         * m4/fchdir.m4: Likewise.
38549         * m4/fcntl_h.m4: Likewise.
38550         * m4/fileblocks.m4: Likewise.
38551         * m4/filenamecat.m4: Likewise.
38552         * m4/findprog.m4: Likewise.
38553         * m4/flexmember.m4: Likewise.
38554         * m4/fnmatch.m4: Likewise.
38555         * m4/fopen.m4: Likewise.
38556         * m4/fpending.m4: Likewise.
38557         * m4/fprintf-posix.m4: Likewise.
38558         * m4/free.m4: Likewise.
38559         * m4/frexp.m4: Likewise.
38560         * m4/frexpl.m4: Likewise.
38561         * m4/fsusage.m4: Likewise.
38562         * m4/ftruncate.m4: Likewise.
38563         * m4/gc-camellia.m4: Likewise.
38564         * m4/gc-random.m4: Likewise.
38565         * m4/gc.m4: Likewise.
38566         * m4/getaddrinfo.m4: Likewise.
38567         * m4/getcwd-abort-bug.m4: Likewise.
38568         * m4/getcwd-path-max.m4: Likewise.
38569         * m4/getdate.m4: Likewise.
38570         * m4/getdomainname.m4: Likewise.
38571         * m4/getgroups.m4: Likewise.
38572         * m4/gethostname.m4: Likewise.
38573         * m4/gethrxtime.m4: Likewise.
38574         * m4/getline.m4: Likewise.
38575         * m4/getloadavg.m4: Likewise.
38576         * m4/getndelim2.m4: Likewise.
38577         * m4/getpass.m4: Likewise.
38578         * m4/gettext.m4: Likewise.
38579         * m4/gettime.m4: Likewise.
38580         * m4/gettimeofday.m4: Likewise.
38581         * m4/gnulib-common.m4: Likewise.
38582         * m4/group-member.m4: Likewise.
38583         * m4/host-os.m4: Likewise.
38584         * m4/iconv.m4: Likewise.
38585         * m4/iconv_open.m4: Likewise.
38586         * m4/inet_ntop.m4: Likewise.
38587         * m4/inet_pton.m4: Likewise.
38588         * m4/inline.m4: Likewise.
38589         * m4/intldir.m4: Likewise.
38590         * m4/intlmacosx.m4: Likewise.
38591         * m4/intmax.m4: Likewise.
38592         * m4/intmax_t.m4: Likewise.
38593         * m4/inttypes.m4: Likewise.
38594         * m4/inttypes_h.m4: Likewise.
38595         * m4/inttypes-pri.m4: Likewise.
38596         * m4/isapipe.m4: Likewise.
38597         * m4/isnand.m4: Likewise.
38598         * m4/isnanf.m4: Likewise.
38599         * m4/isnanl.m4: Likewise.
38600         * m4/javacomp.m4: Likewise.
38601         * m4/javaexec.m4: Likewise.
38602         * m4/jm-winsz1.m4: Likewise.
38603         * m4/jm-winsz2.m4: Likewise.
38604         * m4/lchown.m4: Likewise.
38605         * m4/lcmessage.m4: Likewise.
38606         * m4/ldexpl.m4: Likewise.
38607         * m4/lib-ld.m4: Likewise.
38608         * m4/lib-link.m4: Likewise.
38609         * m4/libsigsegv.m4: Likewise.
38610         * m4/link-follow.m4: Likewise.
38611         * m4/localcharset.m4: Likewise.
38612         * m4/locale-fr.m4: Likewise.
38613         * m4/locale-ja.m4: Likewise.
38614         * m4/locale-tr.m4: Likewise.
38615         * m4/locale-zh.m4: Likewise.
38616         * m4/lock.m4: Likewise.
38617         * m4/longlong.m4: Likewise.
38618         * m4/ls-mntd-fs.m4: Likewise.
38619         * m4/lstat.m4: Likewise.
38620         * m4/malloc.m4: Likewise.
38621         * m4/mathl.m4: Likewise.
38622         * m4/mbrtowc.m4: Likewise.
38623         * m4/mbstate_t.m4: Likewise.
38624         * m4/mbswidth.m4: Likewise.
38625         * m4/memchr.m4: Likewise.
38626         * m4/memcmp.m4: Likewise.
38627         * m4/memcpy.m4: Likewise.
38628         * m4/memmem.m4: Likewise.
38629         * m4/memmove.m4: Likewise.
38630         * m4/mempcpy.m4: Likewise.
38631         * m4/memrchr.m4: Likewise.
38632         * m4/memset.m4: Likewise.
38633         * m4/minmax.m4: Likewise.
38634         * m4/mkdir-slash.m4: Likewise.
38635         * m4/mkdtemp.m4: Likewise.
38636         * m4/mktime.m4: Likewise.
38637         * m4/mmap-anon.m4: Likewise.
38638         * m4/mountlist.m4: Likewise.
38639         * m4/nanosleep.m4: Likewise.
38640         * m4/nls.m4: Likewise.
38641         * m4/nocrash.m4: Likewise.
38642         * m4/open.m4: Likewise.
38643         * m4/openat.m4: Likewise.
38644         * m4/openmp.m4: Likewise.
38645         * m4/pathmax.m4: Likewise.
38646         * m4/perl.m4: Likewise.
38647         * m4/physmem.m4: Likewise.
38648         * m4/pipe.m4: Likewise.
38649         * m4/po.m4: Likewise.
38650         * m4/poll.m4: Likewise.
38651         * m4/posixtm.m4: Likewise.
38652         * m4/posixver.m4: Likewise.
38653         * m4/printf-frexp.m4: Likewise.
38654         * m4/printf-frexpl.m4: Likewise.
38655         * m4/printf-posix.m4: Likewise.
38656         * m4/printf-posix-rpl.m4: Likewise.
38657         * m4/printf.m4: Likewise.
38658         * m4/progtest.m4: Likewise.
38659         * m4/putenv.m4: Likewise.
38660         * m4/readline.m4: Likewise.
38661         * m4/readlink.m4: Likewise.
38662         * m4/readutmp.m4: Likewise.
38663         * m4/realloc.m4: Likewise.
38664         * m4/regex.m4: Likewise.
38665         * m4/relocatable.m4: Likewise.
38666         * m4/relocatable-lib.m4: Likewise.
38667         * m4/rename-dest-slash.m4: Likewise.
38668         * m4/rename.m4: Likewise.
38669         * m4/rmdir-errno.m4: Likewise.
38670         * m4/rmdir.m4: Likewise.
38671         * m4/roundf.m4: Likewise.
38672         * m4/roundl.m4: Likewise.
38673         * m4/rpmatch.m4: Likewise.
38674         * m4/save-cwd.m4: Likewise.
38675         * m4/selinux-selinux-h.m4: Likewise.
38676         * m4/setenv.m4: Likewise.
38677         * m4/settime.m4: Likewise.
38678         * m4/sig2str.m4: Likewise.
38679         * m4/sig_atomic_t.m4: Likewise.
38680         * m4/signalblocking.m4: Likewise.
38681         * m4/signbit.m4: Likewise.
38682         * m4/sigpipe.m4: Likewise.
38683         * m4/sockets.m4: Likewise.
38684         * m4/sockpfaf.m4: Likewise.
38685         * m4/st_dm_mode.m4: Likewise.
38686         * m4/stat-time.m4: Likewise.
38687         * m4/stdbool.m4: Likewise.
38688         * m4/stdint.m4: Likewise.
38689         * m4/stdint_h.m4: Likewise.
38690         * m4/stpcpy.m4: Likewise.
38691         * m4/stpncpy.m4: Likewise.
38692         * m4/strcase.m4: Likewise.
38693         * m4/strchrnul.m4: Likewise.
38694         * m4/strcspn.m4: Likewise.
38695         * m4/strdup.m4: Likewise.
38696         * m4/strftime.m4: Likewise.
38697         * m4/strndup.m4: Likewise.
38698         * m4/strnlen.m4: Likewise.
38699         * m4/strpbrk.m4: Likewise.
38700         * m4/strptime.m4: Likewise.
38701         * m4/strsep.m4: Likewise.
38702         * m4/strtod.m4: Likewise.
38703         * m4/strtoimax.m4: Likewise.
38704         * m4/strtok_r.m4: Likewise.
38705         * m4/strtol.m4: Likewise.
38706         * m4/strtoll.m4: Likewise.
38707         * m4/strtoul.m4: Likewise.
38708         * m4/strtoull.m4: Likewise.
38709         * m4/strtoumax.m4: Likewise.
38710         * m4/strverscmp.m4: Likewise.
38711         * m4/threadlib.m4: Likewise.
38712         * m4/timegm.m4: Likewise.
38713         * m4/tm_gmtoff.m4: Likewise.
38714         * m4/tmpdir.m4: Likewise.
38715         * m4/tmpfile.m4: Likewise.
38716         * m4/tzset.m4: Likewise.
38717         * m4/uintmax_t.m4: Likewise.
38718         * m4/unlinkdir.m4: Likewise.
38719         * m4/unlocked-io.m4: Likewise.
38720         * m4/uptime.m4: Likewise.
38721         * m4/userspec.m4: Likewise.
38722         * m4/utimbuf.m4: Likewise.
38723         * m4/utime.m4: Likewise.
38724         * m4/utimes-null.m4: Likewise.
38725         * m4/utimes.m4: Likewise.
38726         * m4/vararrays.m4: Likewise.
38727         * m4/vasnprintf.m4: Likewise.
38728         * m4/vfprintf-posix.m4: Likewise.
38729         * m4/vprintf-posix.m4: Likewise.
38730         * m4/wait-process.m4: Likewise.
38731         * m4/wchar_t.m4: Likewise.
38732         * m4/wint_t.m4: Likewise.
38733         * m4/write-any-file.m4: Likewise.
38734         * m4/yield.m4: Likewise.
38735
38736 2009-01-13  Bruno Haible  <bruno@clisp.org>
38737
38738         Avoid test-copy-file.sh failures when ACL support insufficient.
38739         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38740         TESTS_ENVIRONMENT.
38741         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38742         Reported by Jim Meyering.
38743
38744 2009-01-13  Bruno Haible  <bruno@clisp.org>
38745
38746         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38747         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38748         * modules/unistdio/u8-printf-parse (Files): Likewise.
38749         * modules/unistdio/u32-printf-parse (Files): Likewise.
38750         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38751
38752 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38753
38754         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38755         and m4/inttypes_h.m4 too.
38756
38757 2009-01-12  Eric Blake  <ebb9@byu.net>
38758
38759         tests: IRIX 6.2 cc can't compile -0.0 into .data
38760         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38761         rather than at compile-time.
38762         * tests/test-floorl.c (minus_zero): Likewise.
38763         * tests/test-frexpl.c (minus_zero): Likewise.
38764         * tests/test-isnan.c (minus_zerol): Likewise.
38765         * tests/test-isnanl.h (minus_zero): Likewise.
38766         * tests/test-ldexpl.c (minus_zero): Likewise.
38767         * tests/test-roundl.c (minus_zero): Likewise.
38768         * tests/test-signbit.c (minus_zerol): Likewise.
38769         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38770         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38771         * tests/test-truncl.c (minus_zero): Likewise.
38772         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38773         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38774         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38775
38776 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38777
38778         regex: fix glibc bug 9697
38779         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38780         handling.
38781
38782 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38783
38784         regex: fix glibc bug 697
38785         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38786         being NULL also if there are no backreferences.
38787
38788 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38789
38790         regex: merge glibc changes
38791         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38792         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38793         re_string_skip_chars, re_string_reconstruct): Likewise.
38794         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38795
38796 2009-01-07  Jim Meyering  <meyering@redhat.com>
38797
38798         poll: filter through cppi
38799         * lib/poll.c: Indent cpp directives to reflect nesting.
38800
38801 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38802
38803         poll: don't return uninitialized
38804         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38805
38806 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38807
38808         avoid compile failure on AIX 6.1
38809         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38810         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38811
38812 2009-01-04  Jim Meyering  <meyering@redhat.com>
38813
38814         remove duplicate inclusion of <stdio.h>
38815         * tests/test-fprintf-posix.c: Likewise.
38816         * tests/test-printf-posix.c: Likewise.
38817         * tests/test-snprintf-posix.c: Likewise.
38818         * tests/test-sprintf-posix.c: Likewise.
38819         * tests/test-vasprintf-posix.c: Likewise.
38820         * tests/test-vfprintf-posix.c: Likewise.
38821         * tests/test-vprintf-posix.c: Likewise.
38822         * tests/test-vsnprintf-posix.c: Likewise.
38823         * tests/test-vsprintf-posix.c: Likewise.
38824
38825 2009-01-03  Jim Meyering  <meyering@redhat.com>
38826
38827         gnulib-tool: fix sed-based filtering
38828         * gnulib-tool (func_filter_filelist): Remove extra backslash
38829         in sed_fff_filter definition.
38830
38831 2009-01-02  Jim Meyering  <meyering@redhat.com>
38832
38833         strftime: avoid compilation failure on Solaris 2.6
38834         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38835         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38836         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38837         be available.  Reported by Tom G. Christensen.  Details in
38838         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38839
38840 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38841             Bruno Haible  <bruno@clisp.org>
38842
38843         Speed up gnulib-tool by doing more string processing through shell
38844         built-ins.
38845         * gnulib-tool (fast_func_append): New variable.
38846         (func_remove_prefix, func_remove_suffix): New functions.
38847         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38848         (func_filter_filelist): New function.
38849         (func_get_dependencies): Use func_remove_suffix instead of sed.
38850         (func_get_automake_snippet): Use func_filter_filelist instead of a
38851         subshell and sed invocation.
38852
38853 2009-01-01  Bruno Haible  <bruno@clisp.org>
38854
38855         Fix a security bug.
38856         * gnulib-tool (func_import, import, update): Don't allow the characters
38857         '"', '$', '`', '\' in macro arguments that become part of commands that
38858         are evaluated.
38859
38860 2009-01-01  Bruno Haible  <bruno@clisp.org>
38861
38862         * gnulib-tool (func_reset_sigpipe): Add more comments.
38863
38864 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38865
38866         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38867         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38868         already know the answer.
38869
38870 2009-01-01  Jim Meyering  <meyering@redhat.com>
38871
38872         * lib/version-etc.c (version_etc_va): Update copyright year.
38873
38874 2008-12-30  Bruno Haible  <bruno@clisp.org>
38875
38876         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38877         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38878         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38879
38880 2008-12-29  Eric Blake  <ebb9@byu.net>
38881
38882         multiarch: avoid autoconf AC_REQUIRE bug
38883         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38884         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38885         2.63 and older.
38886         Reported by Bruno Haible, and analyzed in
38887         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38888
38889 2008-12-29  Bruno Haible  <bruno@clisp.org>
38890
38891         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38892         files in subdirectories correctly.
38893         Reported by Ralf Wildenhues.
38894
38895 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38896
38897         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38898         rather than 'join FILE -', for Solaris join.
38899
38900 2008-12-29  Bruno Haible  <bruno@clisp.org>
38901
38902         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38903         quoting.
38904         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38905         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38906         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38907         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38908         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38909         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38910         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38911         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38912         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38913         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38914         * m4/nls.m4 (AM_NLS): Likewise.
38915         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38916         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38917         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38918         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38919         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38920         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38921         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38922         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38923         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38924         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38925         * m4/xsize.m4 (gl_XSIZE): Likewise.
38926         Suggested by Jim Meyering.
38927
38928 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38929
38930         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38931         * lib/parse-duration.c: use a switch instead of cascading if's.
38932
38933 2008-12-29  Eric Blake  <ebb9@byu.net>
38934
38935         wchar.h: supply WEOF on Irix 5.3
38936         * lib/wchar.in.h (wint_t): Also supply WEOF.
38937         * lib/wctype.in.h (wint_t): Likewise.
38938         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38939         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38940         Reported by Tom G. Christensen.
38941
38942 2008-12-26  Bruno Haible  <bruno@clisp.org>
38943
38944         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38945         i486, i586, i686.
38946
38947 2008-12-26  Bruno Haible  <bruno@clisp.org>
38948
38949         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38950
38951 2008-12-26  Bruno Haible  <bruno@clisp.org>
38952
38953         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38954         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38955         not __STDC_CONSTANT_MACROS.
38956         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38957
38958 2008-12-25  Bruno Haible  <bruno@clisp.org>
38959
38960         Add support for universal builds to vasnprintf.
38961         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38962         universal builds, guess no.
38963         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38964         * modules/vasprintf-posix (Depends-on): Likewise.
38965         * modules/fprintf-posix (Depends-on): Likewise.
38966         * modules/vfprintf-posix (Depends-on): Likewise.
38967         * modules/snprintf-posix (Depends-on): Likewise.
38968         * modules/vsnprintf-posix (Depends-on): Likewise.
38969         * modules/sprintf-posix (Depends-on): Likewise.
38970         * modules/vsprintf-posix (Depends-on): Likewise.
38971         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38972         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38973         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38974         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38975         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38976         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38977         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38978
38979         Add support for universal builds to <inttypes.h>.
38980         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38981         _SCNu64_PREFIX): In Apple
38982         universal builds, define directly, using _LP64.
38983         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38984         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38985         * modules/inttypes (Depends-on): Add multiarch.
38986         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38987
38988         Add support for universal builds to <stdint.h>.
38989         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38990         universal builds, define directly, using _LP64.
38991         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38992         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38993         and size_t.
38994         * modules/stdint (Depends-on): Add multiarch.
38995         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38996
38997         New module 'multiarch'.
38998         * modules/multiarch: New file.
38999         * m4/multiarch.m4: New file.
39000
39001 2008-12-25  Bruno Haible  <bruno@clisp.org>
39002
39003         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39004
39005 2008-12-25  Bruno Haible  <bruno@clisp.org>
39006
39007         * modules/btowc (License): Relicense under LGPLv2+.
39008         * modules/mbsinit (License): Likewise.
39009         * modules/mbrtowc (License): Likewise.
39010         * modules/wcrtomb (License): Likewise.
39011         * modules/streq (License): Likewise.
39012         Reported by David Lutterkort <lutter@redhat.com>.
39013
39014 2008-12-23  Bruno Haible  <bruno@clisp.org>
39015
39016         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39017
39018 2008-12-23  Bruno Haible  <bruno@clisp.org>
39019
39020         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39021         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39022         GETADDRINFO_LIB, not in LIBS.
39023         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39024         * modules/canon-host (Link): Likewise.
39025         * NEWS: Mention the change.
39026         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39027         GETADDRINFO_LIB.
39028
39029 2008-12-22  Bruno Haible  <bruno@clisp.org>
39030
39031         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39032         * doc/posix-functions/iswalpha_l.texi: Likewise.
39033         * doc/posix-functions/iswblank_l.texi: Likewise.
39034         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39035         * doc/posix-functions/iswctype_l.texi: Likewise.
39036         * doc/posix-functions/iswdigit_l.texi: Likewise.
39037         * doc/posix-functions/iswgraph_l.texi: Likewise.
39038         * doc/posix-functions/iswlower_l.texi: Likewise.
39039         * doc/posix-functions/iswprint_l.texi: Likewise.
39040         * doc/posix-functions/iswpunct_l.texi: Likewise.
39041         * doc/posix-functions/iswspace_l.texi: Likewise.
39042         * doc/posix-functions/iswupper_l.texi: Likewise.
39043         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39044         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39045         * doc/posix-functions/open_wmemstream.texi: Likewise.
39046         * doc/posix-functions/swscanf.texi: Likewise.
39047         * doc/posix-functions/towctrans_l.texi: Likewise.
39048         * doc/posix-functions/towlower.texi: Likewise.
39049         * doc/posix-functions/towlower_l.texi: Likewise.
39050         * doc/posix-functions/towupper.texi: Likewise.
39051         * doc/posix-functions/towupper_l.texi: Likewise.
39052         * doc/posix-functions/vfwprintf.texi: Likewise.
39053         * doc/posix-functions/vfwscanf.texi: Likewise.
39054         * doc/posix-functions/vswscanf.texi: Likewise.
39055         * doc/posix-functions/vwprintf.texi: Likewise.
39056         * doc/posix-functions/vwscanf.texi: Likewise.
39057         * doc/posix-functions/wcpcpy.texi: Likewise.
39058         * doc/posix-functions/wcpncpy.texi: Likewise.
39059         * doc/posix-functions/wcscasecmp.texi: Likewise.
39060         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39061         * doc/posix-functions/wcscoll_l.texi: Likewise.
39062         * doc/posix-functions/wcsdup.texi: Likewise.
39063         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39064         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39065         * doc/posix-functions/wcsnlen.texi: Likewise.
39066         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39067         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39068         * doc/posix-functions/wctrans_l.texi: Likewise.
39069         * doc/posix-functions/wctype_l.texi: Likewise.
39070         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39071         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39072         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39073         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39074         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39075         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39076         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39077         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39078         * doc/glibc-functions/wcschrnul.texi: Likewise.
39079         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39080         * doc/glibc-functions/wcstod_l.texi: Likewise.
39081         * doc/glibc-functions/wcstof_l.texi: Likewise.
39082         * doc/glibc-functions/wcstol_l.texi: Likewise.
39083         * doc/glibc-functions/wcstold_l.texi: Likewise.
39084         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39085         * doc/glibc-functions/wcstoq.texi: Likewise.
39086         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39087         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39088         * doc/glibc-functions/wcstouq.texi: Likewise.
39089         * doc/glibc-functions/wmempcpy.texi: Likewise.
39090
39091 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39092             Eric Blake  <ebb9@byu.net>
39093             Paolo Bonzini  <bonzini@gnu.org>
39094             Bruno Haible  <bruno@clisp.org>
39095
39096         Make c-stack work on Haiku.
39097         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39098         (c_stack_action): Use SA_ONSTACK flag.
39099
39100 2008-12-22  Bruno Haible  <bruno@clisp.org>
39101
39102         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39103
39104 2008-12-22  Bruno Haible  <bruno@clisp.org>
39105
39106         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39107         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39108         being overridden.
39109         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39110         New macros.
39111         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39112         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39113         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39114         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39115
39116 2008-12-22  Bruno Haible  <bruno@clisp.org>
39117
39118         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39119         from test code.
39120
39121 2008-12-22  Eric Blake  <ebb9@byu.net>
39122
39123         Avoid gcc warnings on cygwin.
39124         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39125         Avoid unused variable.
39126         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39127         Likewise.
39128
39129 2008-12-22  Bruno Haible  <bruno@clisp.org>
39130
39131         Remove HAVE_MBRTOWC conditionals.
39132         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39133         (mbscasecmp): Assume mbrtowc function.
39134         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39135         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39136         * lib/mbschr.c: Include mbuiter.h unconditionally.
39137         (mbschr): Assume mbrtowc function.
39138         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39139         (mbscspn): Assume mbrtowc function.
39140         * lib/mbslen.c: Include mbuiter.h unconditionally.
39141         (mbslen): Assume mbrtowc function.
39142         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39143         (mbsncasecmp): Assume mbrtowc function.
39144         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39145         (mbsnlen): Assume mbrtowc function.
39146         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39147         (mbspbrk): Assume mbrtowc function.
39148         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39149         (mbspcasecmp): Assume mbrtowc function.
39150         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39151         (mbsrchr): Assume mbrtowc function.
39152         * lib/mbssep.c: Include mbuiter.h unconditionally.
39153         (mbssep): Assume mbrtowc function.
39154         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39155         (mbsspn): Assume mbrtowc function.
39156         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39157         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39158         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39159         (mbstok_r): Assume mbrtowc function.
39160         * lib/propername.c: Include mbuiter.h unconditionally.
39161         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39162         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39163         (trim2): Assume mbrtowc function.
39164         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39165         (mbsnwidth): Assume mbrtowc function.
39166         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39167         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39168         fallback definitions.
39169         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39170
39171 2008-12-22  Bruno Haible  <bruno@clisp.org>
39172
39173         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39174
39175 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39176
39177         * modules/regex: Request emulations for the mb*/wc* functions we need.
39178         * m4/regex.m4: Don't look for those functions here.
39179         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39180
39181 2008-12-22  Bruno Haible  <bruno@clisp.org>
39182
39183         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39184
39185 2008-12-21  Bruno Haible  <bruno@clisp.org>
39186
39187         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39188         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39189         (Include): Remove conditionalization.
39190         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39191         (Include): Remove conditionalization.
39192         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39193         (Include): Remove conditionalization.
39194         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39195         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39196         * NEWS: Mention the change.
39197         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39198         via Sergey Poznyakoff <gray@gnu.org.ua>.
39199
39200 2008-12-21  Bruno Haible  <bruno@clisp.org>
39201
39202         * MODULES.html.sh (Extended multibyte and wide character utilities
39203         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39204         wcrtomb, wcsrtombs.
39205         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39206         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39207         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39208         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39209
39210 2008-12-21  Bruno Haible  <bruno@clisp.org>
39211
39212         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39213
39214 2008-12-21  Bruno Haible  <bruno@clisp.org>
39215
39216         * modules/wcsnrtombs-tests: New file.
39217         * tests/test-wcsnrtombs1.sh: New file.
39218         * tests/test-wcsnrtombs2.sh: New file.
39219         * tests/test-wcsnrtombs3.sh: New file.
39220         * tests/test-wcsnrtombs4.sh: New file.
39221         * tests/test-wcsnrtombs.c: New file.
39222
39223         New module 'wcsnrtombs'.
39224         * lib/wchar.in.h (wcsnrtombs): New declaration.
39225         * lib/wcsnrtombs.c: New file.
39226         * lib/wcsrtombs-state.c: New file.
39227         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39228         (internal_state): Remove variable.
39229         * m4/wcsnrtombs.m4: New file.
39230         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39231         compilation units.
39232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39233         HAVE_WCSNRTOMBS.
39234         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39235         HAVE_WCSNRTOMBS.
39236         * modules/wcsnrtombs: New file.
39237         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39238         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39239
39240 2008-12-21  Bruno Haible  <bruno@clisp.org>
39241
39242         * modules/wcsrtombs-tests: New file.
39243         * tests/test-wcsrtombs1.sh: New file.
39244         * tests/test-wcsrtombs2.sh: New file.
39245         * tests/test-wcsrtombs3.sh: New file.
39246         * tests/test-wcsrtombs4.sh: New file.
39247         * tests/test-wcsrtombs.c: New file.
39248
39249         New module 'wcsrtombs'.
39250         * lib/wchar.in.h (wcsrtombs): New declaration.
39251         * lib/wcsrtombs.c: New file.
39252         * m4/wcsrtombs.m4: New file.
39253         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39254         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39255         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39256         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39257         * modules/wcsrtombs: New file.
39258         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39259         bugs.
39260
39261 2008-12-21  Bruno Haible  <bruno@clisp.org>
39262
39263         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39264         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39265         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39266         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39267         if not correct.
39268         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39269         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39270         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39271         m4/locale-zh.m4, m4/codeset.m4.
39272         * doc/posix-functions/wcrtomb.texi: Document the bug.
39273
39274 2008-12-21  Bruno Haible  <bruno@clisp.org>
39275
39276         Work around a btowc() bug on IRIX 6.5.
39277         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39278         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39279         REPLACE_WTOBC if not.
39280         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39281         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39282         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39283
39284 2008-12-21  Bruno Haible  <bruno@clisp.org>
39285
39286         * modules/wcrtomb-tests: New file.
39287         * tests/test-wcrtomb.sh: New file.
39288         * tests/test-wcrtomb.c: New file.
39289
39290         New module 'wcrtomb'.
39291         * lib/wchar.in.h (wcrtomb): New declaration.
39292         * lib/wcrtomb.c: New file.
39293         * m4/wcrtomb.m4: New file.
39294         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39295         HAVE_WCRTOMB.
39296         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39297         HAVE_WCRTOMB.
39298         * modules/wcrtomb: New file.
39299         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39300
39301 2008-12-21  Bruno Haible  <bruno@clisp.org>
39302
39303         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39304         * modules/mbsrtowcs (Files): Likewise.
39305         * modules/wctob (Files): Likewise.
39306         * modules/c-strcase-tests (Files): Likewise.
39307         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39308         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39309         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39310         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39311         * modules/vasnprintf-posix-tests (Files): Likewise.
39312
39313 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39314
39315         gitlog-to-changelog: pass all command-line arguments to git-log
39316         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39317         it is sometimes convenient to filter the commits in various ways.
39318         gitlog-to-changelog only allows --since to specify a start date,
39319         but git-log itself supports many other filtering mechanisms.
39320         At the moment, I want to filter by branch name.  Rather than
39321         adding a --branch option to gitlog-to-changelog, it seems more
39322         flexible to simply pass all options directly to git-log and let
39323         git do the work.  Notice that this effectively makes --since a
39324         redundant option for gitlog-to-changelog, but removing it would
39325         require current usage to change since calls would then require
39326         an additional '--'.
39327
39328 2008-12-21  Bruno Haible  <bruno@clisp.org>
39329
39330         * modules/mbsnrtowcs-tests: New file.
39331         * tests/test-mbsnrtowcs1.sh: New file.
39332         * tests/test-mbsnrtowcs2.sh: New file.
39333         * tests/test-mbsnrtowcs3.sh: New file.
39334         * tests/test-mbsnrtowcs4.sh: New file.
39335         * tests/test-mbsnrtowcs.c: New file.
39336
39337         New module 'mbsnrtowcs'.
39338         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39339         * lib/mbsnrtowcs.c: New file.
39340         * lib/mbsrtowcs-state.c: New file.
39341         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39342         (internal_state): Remove variable.
39343         * m4/mbsnrtowcs.m4: New file.
39344         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39345         compilation units.
39346         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39347         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39348         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39349         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39350         * modules/mbsnrtowcs: New file.
39351         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39352         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39353         portability problem.
39354
39355 2008-12-21  Bruno Haible  <bruno@clisp.org>
39356
39357         Work around mbsrtowcs bug.
39358         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39359         (gl_FUNC_MBSRTOWCS): Invoke it.
39360         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39361         m4/locale-zh.m4.
39362         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39363
39364 2008-12-21  Bruno Haible  <bruno@clisp.org>
39365
39366         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39367
39368 2008-12-21  Bruno Haible  <bruno@clisp.org>
39369
39370         Update doc for AIX.
39371         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39372         16-bit wchar_t type.
39373         * doc/posix-functions/btowc.texi: Likewise.
39374         * doc/posix-functions/fgetwc.texi: Likewise.
39375         * doc/posix-functions/fgetws.texi: Likewise.
39376         * doc/posix-functions/fputwc.texi: Likewise.
39377         * doc/posix-functions/fputws.texi: Likewise.
39378         * doc/posix-functions/fwide.texi: Likewise.
39379         * doc/posix-functions/fwprintf.texi: Likewise.
39380         * doc/posix-functions/fwscanf.texi: Likewise.
39381         * doc/posix-functions/getwchar.texi: Likewise.
39382         * doc/posix-functions/getwc.texi: Likewise.
39383         * doc/posix-functions/iswalnum.texi: Likewise.
39384         * doc/posix-functions/iswalpha.texi: Likewise.
39385         * doc/posix-functions/iswblank.texi: Likewise.
39386         * doc/posix-functions/iswcntrl.texi: Likewise.
39387         * doc/posix-functions/iswctype.texi: Likewise.
39388         * doc/posix-functions/iswdigit.texi: Likewise.
39389         * doc/posix-functions/iswgraph.texi: Likewise.
39390         * doc/posix-functions/iswlower.texi: Likewise.
39391         * doc/posix-functions/iswprint.texi: Likewise.
39392         * doc/posix-functions/iswpunct.texi: Likewise.
39393         * doc/posix-functions/iswspace.texi: Likewise.
39394         * doc/posix-functions/iswupper.texi: Likewise.
39395         * doc/posix-functions/iswxdigit.texi: Likewise.
39396         * doc/posix-functions/mbrtowc.texi: Likewise.
39397         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39398         * doc/posix-functions/mbstowcs.texi: Likewise.
39399         * doc/posix-functions/mbtowc.texi: Likewise.
39400         * doc/posix-functions/putwchar.texi: Likewise.
39401         * doc/posix-functions/putwc.texi: Likewise.
39402         * doc/posix-functions/swprintf.texi: Likewise.
39403         * doc/posix-functions/tolower.texi: Likewise.
39404         * doc/posix-functions/toupper.texi: Likewise.
39405         * doc/posix-functions/towctrans.texi: Likewise.
39406         * doc/posix-functions/ungetwc.texi: Likewise.
39407         * doc/posix-functions/vswprintf.texi: Likewise.
39408         * doc/posix-functions/wcrtomb.texi: Likewise.
39409         * doc/posix-functions/wcscat.texi: Likewise.
39410         * doc/posix-functions/wcschr.texi: Likewise.
39411         * doc/posix-functions/wcscmp.texi: Likewise.
39412         * doc/posix-functions/wcscoll.texi: Likewise.
39413         * doc/posix-functions/wcscpy.texi: Likewise.
39414         * doc/posix-functions/wcscspn.texi: Likewise.
39415         * doc/posix-functions/wcsftime.texi: Likewise.
39416         * doc/posix-functions/wcslen.texi: Likewise.
39417         * doc/posix-functions/wcsncat.texi: Likewise.
39418         * doc/posix-functions/wcsncmp.texi: Likewise.
39419         * doc/posix-functions/wcsncpy.texi: Likewise.
39420         * doc/posix-functions/wcspbrk.texi: Likewise.
39421         * doc/posix-functions/wcsrchr.texi: Likewise.
39422         * doc/posix-functions/wcsrtombs.texi: Likewise.
39423         * doc/posix-functions/wcsspn.texi: Likewise.
39424         * doc/posix-functions/wcsstr.texi: Likewise.
39425         * doc/posix-functions/wcstod.texi: Likewise.
39426         * doc/posix-functions/wcstof.texi: Likewise.
39427         * doc/posix-functions/wcstoimax.texi: Likewise.
39428         * doc/posix-functions/wcstok.texi: Likewise.
39429         * doc/posix-functions/wcstold.texi: Likewise.
39430         * doc/posix-functions/wcstoll.texi: Likewise.
39431         * doc/posix-functions/wcstol.texi: Likewise.
39432         * doc/posix-functions/wcstombs.texi: Likewise.
39433         * doc/posix-functions/wcstoull.texi: Likewise.
39434         * doc/posix-functions/wcstoul.texi: Likewise.
39435         * doc/posix-functions/wcstoumax.texi: Likewise.
39436         * doc/posix-functions/wcswidth.texi: Likewise.
39437         * doc/posix-functions/wcsxfrm.texi: Likewise.
39438         * doc/posix-functions/wctob.texi: Likewise.
39439         * doc/posix-functions/wctomb.texi: Likewise.
39440         * doc/posix-functions/wctrans.texi: Likewise.
39441         * doc/posix-functions/wctype.texi: Likewise.
39442         * doc/posix-functions/wcwidth.texi: Likewise.
39443         * doc/posix-functions/wmemchr.texi: Likewise.
39444         * doc/posix-functions/wmemcmp.texi: Likewise.
39445         * doc/posix-functions/wmemcpy.texi: Likewise.
39446         * doc/posix-functions/wmemmove.texi: Likewise.
39447         * doc/posix-functions/wmemset.texi: Likewise.
39448         * doc/posix-functions/wprintf.texi: Likewise.
39449         * doc/posix-functions/wscanf.texi: Likewise.
39450
39451 2008-12-21  Bruno Haible  <bruno@clisp.org>
39452
39453         Update doc for HP-UX 11.11.
39454         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39455         in HP-UX version 11.00, not in all versions of HP-UX 11.
39456         * doc/posix-functions/fwide.texi: Likewise.
39457         * doc/posix-functions/fwprintf.texi: Likewise.
39458         * doc/posix-functions/fwscanf.texi: Likewise.
39459         * doc/posix-functions/inet_ntop.texi: Likewise.
39460         * doc/posix-functions/inet_pton.texi: Likewise.
39461         * doc/posix-functions/mbrlen.texi: Likewise.
39462         * doc/posix-functions/mbrtowc.texi: Likewise.
39463         * doc/posix-functions/mbsinit.texi: Likewise.
39464         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39465         * doc/posix-functions/swprintf.texi: Likewise.
39466         * doc/posix-functions/swscanf.texi: Likewise.
39467         * doc/posix-functions/towctrans.texi: Likewise.
39468         * doc/posix-functions/vfwprintf.texi: Likewise.
39469         * doc/posix-functions/vswprintf.texi: Likewise.
39470         * doc/posix-functions/vwprintf.texi: Likewise.
39471         * doc/posix-functions/wcrtomb.texi: Likewise.
39472         * doc/posix-functions/wcsrtombs.texi: Likewise.
39473         * doc/posix-functions/wcsstr.texi: Likewise.
39474         * doc/posix-functions/wctob.texi: Likewise.
39475         * doc/posix-functions/wctrans.texi: Likewise.
39476         * doc/posix-functions/wmemchr.texi: Likewise.
39477         * doc/posix-functions/wmemcmp.texi: Likewise.
39478         * doc/posix-functions/wmemcpy.texi: Likewise.
39479         * doc/posix-functions/wmemmove.texi: Likewise.
39480         * doc/posix-functions/wmemset.texi: Likewise.
39481         * doc/posix-functions/wprintf.texi: Likewise.
39482         * doc/posix-functions/wscanf.texi: Likewise.
39483
39484 2008-12-21  Bruno Haible  <bruno@clisp.org>
39485
39486         Work around a portability problem.
39487         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39488         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39489
39490 2008-12-20  Bruno Haible  <bruno@clisp.org>
39491
39492         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39493         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39494         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39496         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39497
39498         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39499         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39500         set.
39501         (GNULIB_defined_mbstate_t): New macro.
39502         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39503         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39504         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39505         reuses the system's mbrtowc function but works around the bugs.
39506         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39507         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39508         macros.
39509         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39510         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39511         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39512         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39513         REPLACE_MBSINIT if mbsinit needs to be overridden.
39514         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39515         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39516         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39517         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39518         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39519         m4/locale-zh.m4.
39520         (Depends): Add mbsinit.
39521         * modules/mbsinit (Depends): Add mbrtowc.
39522         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39523
39524 2008-12-20  Bruno Haible  <bruno@clisp.org>
39525
39526         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39527         so that there are no conversion errors on AIX.
39528         * tests/test-mbsrtowcs.c (main): LIkewise.
39529
39530 2008-12-20  Bruno Haible  <bruno@clisp.org>
39531
39532         Work around wctob bug on Solaris <= 9.
39533         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39534         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39535         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39536         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39537         * modules/wctob (Files): Add m4/locale-fr.m4.
39538         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39539
39540 2008-12-20  Bruno Haible  <bruno@clisp.org>
39541
39542         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39543         /dev/null.
39544         * tests/test-select-in.sh: Likewise.
39545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39546
39547 2008-12-20  Bruno Haible  <bruno@clisp.org>
39548
39549         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39550         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39551         Cygwin 1.5.x.
39552
39553 2008-12-20  Bruno Haible  <bruno@clisp.org>
39554
39555         Ensure mbstate_t is defined on HP-UX 11.11.
39556         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39557         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39558         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39559         AC_USE_SYSTEM_EXTENSIONS.
39560         * modules/fnmatch (Depends-on): Add extensions.
39561         * modules/mbrlen (Depends-on): Likewise.
39562         * modules/mbrtowc (Depends-on): Likewise.
39563         * modules/mbsinit (Depends-on): Likewise.
39564         * modules/mbsrtowcs (Depends-on): Likewise.
39565         * modules/mbswidth (Depends-on): Likewise.
39566         * modules/quotearg (Depends-on): Likewise.
39567         * modules/strftime (Depends-on): Likewise.
39568
39569 2008-12-20  Bruno Haible  <bruno@clisp.org>
39570
39571         Ensure wctob is declared on IRIX 6.5.
39572         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39573         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39574         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39576         of HAVE_WCTOB.
39577         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39578         HAVE_WCTOB.
39579         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39580
39581 2008-12-19  Bruno Haible  <bruno@clisp.org>
39582
39583         * modules/mbsrtowcs-tests: New file.
39584         * tests/test-mbsrtowcs1.sh: New file.
39585         * tests/test-mbsrtowcs2.sh: New file.
39586         * tests/test-mbsrtowcs3.sh: New file.
39587         * tests/test-mbsrtowcs4.sh: New file.
39588         * tests/test-mbsrtowcs.c: New file.
39589
39590         New module 'mbsrtowcs'.
39591         * lib/wchar.in.h (mbsrtowcs): New declaration.
39592         * lib/mbsrtowcs.c: New file.
39593         * m4/mbsrtowcs.m4: New file.
39594         * modules/mbsrtowcs: New file.
39595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39596         HAVE_MBSRTOWCS.
39597         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39598         HAVE_MBSRTOWCS.
39599         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39600
39601 2008-12-19  Bruno Haible  <bruno@clisp.org>
39602
39603         New module 'mbrlen'.
39604         * lib/wchar.in.h (mbrlen): New declaration.
39605         * lib/mbrlen.c: New file.
39606         * m4/mbrlen.m4: New file.
39607         * modules/mbrlen: New file.
39608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39609         HAVE_MBRLEN.
39610         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39611         HAVE_MBRLEN.
39612         * doc/posix-functions/mbrlen.texi: Document the new module.
39613
39614 2008-12-19  Bruno Haible  <bruno@clisp.org>
39615
39616         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39617         * modules/mbrtowc (Depends-on): Add verify.
39618         Suggested by Paul Eggert.
39619
39620 2008-12-18  Bruno Haible  <bruno@clisp.org>
39621
39622         * modules/mbsinit-tests: New file.
39623         * tests/test-mbsinit.sh: New file.
39624         * tests/test-mbsinit.c: New file.
39625
39626 2008-12-18  Bruno Haible  <bruno@clisp.org>
39627
39628         * modules/mbrtowc-tests: New file.
39629         * tests/test-mbrtowc1.sh: New file.
39630         * tests/test-mbrtowc2.sh: New file.
39631         * tests/test-mbrtowc3.sh: New file.
39632         * tests/test-mbrtowc4.sh: New file.
39633         * tests/test-mbrtowc.c: New file.
39634
39635         New module 'mbrtowc'.
39636         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39637         mbsinit and mbrtowc.
39638         (mbrtowc): New declaration.
39639         * lib/mbrtowc.c: New file.
39640         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39641         * modules/mbrtowc: New file.
39642         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39643         HAVE_MBRTOWC.
39644         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39645         HAVE_MBRTOWC.
39646         * doc/posix-functions/mbrtowc.texi: Document the new module.
39647
39648 2008-12-18  Bruno Haible  <bruno@clisp.org>
39649
39650         New module 'wctob'.
39651         * lib/wchar.in.h (wctob): New declaration.
39652         * lib/wctob.c: New file.
39653         * m4/wctob.m4: New file.
39654         * modules/wctob: New file.
39655         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39656         HAVE_WCTOB.
39657         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39658         * doc/posix-functions/wctob.texi: Document the new module.
39659
39660 2008-12-18  Bruno Haible  <bruno@clisp.org>
39661
39662         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39663         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39664
39665 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39666
39667         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39668         G. Christensen" <tgc@jupiterrise.com>.
39669
39670         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39671         G. Christensen" <tgc@jupiterrise.com>.
39672
39673         * lib/flock.c: Need to include string.h.  Reported by "Tom
39674         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39675         <ebb9@byu.net>.
39676
39677 2008-12-18  Bruno Haible  <bruno@clisp.org>
39678
39679         * m4/locale-ja.m4: New file, from GNU gettext.
39680
39681 2008-12-17  Bruno Haible  <bruno@clisp.org>
39682
39683         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39684         Suggested by Eric Blake.
39685
39686 2008-12-17  Bruno Haible  <bruno@clisp.org>
39687
39688         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39689
39690 2008-12-17  Bruno Haible  <bruno@clisp.org>
39691
39692         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39693         * modules/mbsinit (Depends-on): Add verify.
39694         Suggested by Paul Eggert.
39695
39696 2008-12-17  Bruno Haible  <bruno@clisp.org>
39697
39698         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39699         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39700         gl_FUNC_MBRTOWC.
39701         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39702         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39703         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39704         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39705         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39706         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39707         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39708         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39709         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39710         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39711         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39712         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39713         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39714         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39715         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39716         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39717         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39718         * modules/trim (configure.ac): Likewise.
39719
39720 2008-12-17  Bruno Haible  <bruno@clisp.org>
39721
39722         * modules/btowc-tests: New file.
39723         * tests/test-btowc1.sh: New file.
39724         * tests/test-btowc2.sh: New file.
39725         * tests/test-btowc.c: New file.
39726
39727         New module 'btowc'.
39728         * lib/wchar.in.h (btowc): New declaration.
39729         * lib/btowc.c: New file.
39730         * m4/btowc.m4: New file.
39731         * modules/btowc: New file.
39732         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39733         HAVE_BTOWC.
39734         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39735         * doc/posix-functions/btowc.texi: Document the new module.
39736
39737 2008-12-17  Bruno Haible  <bruno@clisp.org>
39738
39739         New module 'mbsinit'.
39740         * lib/wchar.in.h (mbsinit): New declaration.
39741         * lib/mbsinit.c: New file.
39742         * m4/mbsinit.m4: New file.
39743         * modules/mbsinit: New file.
39744         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39745         HAVE_MBSINIT.
39746         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39747         HAVE_MBSINIT.
39748         * doc/posix-functions/mbsinit.texi: Document the new module.
39749
39750 2008-12-16  Bruno Haible  <bruno@clisp.org>
39751
39752         * lib/unistd.in.h: Add comment.
39753         * tests/test-environ.c: Don't include <stdlib.h>.
39754
39755 2008-12-16  Bruno Haible  <bruno@clisp.org>
39756
39757         * lib/parse-duration.h (parse_duration): Document return value
39758         convention.
39759         * lib/parse-duration.c: Include specification header first. Add
39760         comments.
39761         (_): Remove macro.
39762         (parse_year_month_day, parse_hour_minute_second): Move side effects
39763         outside of strchr call.
39764         (parse_non_iso8601): Move side effects outside of isspace call.
39765         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39766         call.
39767
39768 2008-12-16  Bruno Haible  <bruno@clisp.org>
39769
39770         * tests/test-parse-duration.sh: Produce no output when the test
39771         succeeds.
39772
39773 2008-12-16  Bruno Haible  <bruno@clisp.org>
39774
39775         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39776         expressions.
39777
39778 2008-12-15  Bruno Haible  <bruno@clisp.org>
39779
39780         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39781         * doc/glibc-functions/flistxattr.texi: Likewise.
39782         * doc/glibc-functions/fopencookie.texi: Likewise.
39783         * doc/glibc-functions/fremovexattr.texi: Likewise.
39784         * doc/glibc-functions/fsetxattr.texi: Likewise.
39785         * doc/glibc-functions/getxattr.texi: Likewise.
39786         * doc/glibc-functions/lgetxattr.texi: Likewise.
39787         * doc/glibc-functions/listxattr.texi: Likewise.
39788         * doc/glibc-functions/llistxattr.texi: Likewise.
39789         * doc/glibc-functions/lremovexattr.texi: Likewise.
39790         * doc/glibc-functions/lsetxattr.texi: Likewise.
39791         * doc/glibc-functions/removexattr.texi: Likewise.
39792         * doc/glibc-functions/setxattr.texi: Likewise.
39793         * doc/posix-functions/open_memstream.texi: Likewise.
39794
39795 2008-12-15  Eric Blake  <ebb9@byu.net>
39796
39797         Update doc for cygwin 1.7.
39798         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39799         functions.
39800         * doc/posix-functions/fchmodat.texi: Likewise.
39801         * doc/posix-functions/fchownat.texi: Likewise.
39802         * doc/posix-functions/fdopendir.texi: Likewise.
39803         * doc/posix-functions/fmemopen.texi: Likewise.
39804         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39805         * doc/posix-functions/fstatat.texi: Likewise.
39806         * doc/posix-functions/futimens.texi: Likewise.
39807         * doc/posix-functions/gai_strerror.texi: Likewise.
39808         * doc/posix-functions/getaddrinfo.texi: Likewise.
39809         * doc/posix-functions/getnameinfo.texi: Likewise.
39810         * doc/posix-functions/if_freenameindex.texi: Likewise.
39811         * doc/posix-functions/if_indextoname.texi: Likewise.
39812         * doc/posix-functions/if_nameindex.texi: Likewise.
39813         * doc/posix-functions/if_nametoindex.texi: Likewise.
39814         * doc/posix-functions/insque.texi: Likewise.
39815         * doc/posix-functions/linkat.texi: Likewise.
39816         * doc/posix-functions/llrint.texi: Likewise.
39817         * doc/posix-functions/llrintf.texi: Likewise.
39818         * doc/posix-functions/llrintl.texi: Likewise.
39819         * doc/posix-functions/lockf.texi: Likewise.
39820         * doc/posix-functions/lrintl.texi: Likewise.
39821         * doc/posix-functions/mkdirat.texi: Likewise.
39822         * doc/posix-functions/mkfifoat.texi: Likewise.
39823         * doc/posix-functions/mknodat.texi: Likewise.
39824         * doc/posix-functions/mq_close.texi: Likewise.
39825         * doc/posix-functions/mq_getattr.texi: Likewise.
39826         * doc/posix-functions/mq_notify.texi: Likewise.
39827         * doc/posix-functions/mq_open.texi: Likewise.
39828         * doc/posix-functions/mq_receive.texi: Likewise.
39829         * doc/posix-functions/mq_send.texi: Likewise.
39830         * doc/posix-functions/mq_setattr.texi: Likewise.
39831         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39832         * doc/posix-functions/mq_timedsend.texi: Likewise.
39833         * doc/posix-functions/mq_unlink.texi: Likewise.
39834         * doc/posix-functions/open_memstream.texi: Likewise.
39835         * doc/posix-functions/openat.texi: Likewise.
39836         * doc/posix-functions/posix_fadvise.texi: Likewise.
39837         * doc/posix-functions/posix_fallocate.texi: Likewise.
39838         * doc/posix-functions/posix_madvise.texi: Likewise.
39839         * doc/posix-functions/posix_memalign.texi: Likewise.
39840         * doc/posix-functions/posix_openpt.texi: Likewise.
39841         * doc/posix-functions/readlinkat.texi: Likewise.
39842         * doc/posix-functions/remque.texi: Likewise.
39843         * doc/posix-functions/renameat.texi: Likewise.
39844         * doc/posix-functions/rintl.texi: Likewise.
39845         * doc/posix-functions/sem_unlink.texi: Likewise.
39846         * doc/posix-functions/shm_open.texi: Likewise.
39847         * doc/posix-functions/shm_unlink.texi: Likewise.
39848         * doc/posix-functions/signgam.texi: Likewise.
39849         * doc/posix-functions/sigset.texi: Likewise.
39850         * doc/posix-functions/stpcpy.texi: Likewise.
39851         * doc/posix-functions/stpncpy.texi: Likewise.
39852         * doc/posix-functions/strerror.texi: Likewise.
39853         * doc/posix-functions/strtod.texi: Likewise.
39854         * doc/posix-functions/symlinkat.texi: Likewise.
39855         * doc/posix-functions/unlinkat.texi: Likewise.
39856         * doc/posix-functions/utimensat.texi: Likewise.
39857         * doc/glibc-functions/bindresvport.texi: Likewise.
39858         * doc/glibc-functions/dn_expand.texi: Likewise.
39859         * doc/glibc-functions/exp10.texi: Likewise.
39860         * doc/glibc-functions/exp10f.texi: Likewise.
39861         * doc/glibc-functions/fgetxattr.texi: Likewise.
39862         * doc/glibc-functions/flistxattr.texi: Likewise.
39863         * doc/glibc-functions/fopencookie.texi: Likewise.
39864         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39865         * doc/glibc-functions/fremovexattr.texi: Likewise.
39866         * doc/glibc-functions/fsetxattr.texi: Likewise.
39867         * doc/glibc-functions/getifaddrs.texi: Likewise.
39868         * doc/glibc-functions/getxattr.texi: Likewise.
39869         * doc/glibc-functions/lgetxattr.texi: Likewise.
39870         * doc/glibc-functions/listxattr.texi: Likewise.
39871         * doc/glibc-functions/llistxattr.texi: Likewise.
39872         * doc/glibc-functions/lremovexattr.texi: Likewise.
39873         * doc/glibc-functions/lsetxattr.texi: Likewise.
39874         * doc/glibc-functions/pow10.texi: Likewise.
39875         * doc/glibc-functions/pow10f.texi: Likewise.
39876         * doc/glibc-functions/rcmd_af.texi: Likewise.
39877         * doc/glibc-functions/removexattr.texi: Likewise.
39878         * doc/glibc-functions/res_init.texi: Likewise.
39879         * doc/glibc-functions/res_mkquery.texi: Likewise.
39880         * doc/glibc-functions/res_query.texi: Likewise.
39881         * doc/glibc-functions/res_querydomain.texi: Likewise.
39882         * doc/glibc-functions/res_send.texi: Likewise.
39883         * doc/glibc-functions/rresvport_af.texi: Likewise.
39884         * doc/glibc-functions/setxattr.texi: Likewise.
39885         * doc/glibc-functions/strcasestr.texi: Likewise.
39886
39887 2008-12-15  Bruno Haible  <bruno@clisp.org>
39888
39889         Fix compilation error on OSF/1 4.0.
39890         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39891         <sys/time.h>, simply delegate to the system header.
39892         Reported by Daniel Richard G. <oss@teragram.com>.
39893
39894 2008-12-15  Bruno Haible  <bruno@clisp.org>
39895
39896         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39897         * doc/posix-functions/fchmodat.texi: Likewise.
39898         * doc/posix-functions/fchownat.texi: Likewise.
39899         * doc/posix-functions/fdopendir.texi: Likewise.
39900         * doc/posix-functions/fstatat.texi: Likewise.
39901         * doc/posix-functions/mkdirat.texi: Likewise.
39902         * doc/posix-functions/unlinkat.texi: Likewise.
39903
39904 2008-12-14  Bruno Haible  <bruno@clisp.org>
39905
39906         Update doc for POSIX:2008.
39907         * doc/posix-functions/faccessat.texi: New file.
39908         * doc/posix-functions/fchmodat.texi: New file.
39909         * doc/posix-functions/fchownat.texi: New file.
39910         * doc/posix-functions/fdopendir.texi: New file.
39911         * doc/posix-functions/fstatat.texi: New file.
39912         * doc/posix-functions/futimens.texi: New file.
39913         * doc/posix-functions/linkat.texi: New file.
39914         * doc/posix-functions/mkdirat.texi: New file.
39915         * doc/posix-functions/mkfifoat.texi: New file.
39916         * doc/posix-functions/mknodat.texi: New file.
39917         * doc/posix-functions/open_wmemstream.texi: New file.
39918         * doc/posix-functions/openat.texi: New file.
39919         * doc/posix-functions/psiginfo.texi: New file.
39920         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39921         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39922         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39923         * doc/posix-functions/readlinkat.texi: New file.
39924         * doc/posix-functions/renameat.texi: New file.
39925         * doc/posix-functions/strerror_l.texi: New file.
39926         * doc/posix-functions/symlinkat.texi: New file.
39927         * doc/posix-functions/unlinkat.texi: New file.
39928         * doc/posix-functions/utimensat.texi: New file.
39929         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39930
39931 2008-12-14  Bruno Haible  <bruno@clisp.org>
39932
39933         Update doc for POSIX:2008.
39934         * doc/posix-functions/alphasort.texi: Renamed from
39935         doc/glibc-functions/alphasort.texi.
39936         * doc/posix-functions/dirfd.texi: Renamed from
39937         doc/glibc-functions/dirfd.texi.
39938         * doc/posix-functions/dprintf.texi: Renamed from
39939         doc/glibc-functions/dprintf.texi.
39940         * doc/posix-functions/duplocale.texi: Renamed from
39941         doc/glibc-functions/duplocale.texi.
39942         * doc/posix-functions/fexecve.texi: Renamed from
39943         doc/glibc-functions/fexecve.texi.
39944         * doc/posix-functions/fmemopen.texi: Renamed from
39945         doc/glibc-functions/fmemopen.texi.
39946         * doc/posix-functions/freelocale.texi: Renamed from
39947         doc/glibc-functions/freelocale.texi.
39948         * doc/posix-functions/getdate_err.texi: Renamed from
39949         doc/glibc-functions/getdate_err.texi.
39950         * doc/posix-functions/isalnum_l.texi: Renamed from
39951         doc/glibc-functions/isalnum_l.texi.
39952         * doc/posix-functions/isalpha_l.texi: Renamed from
39953         doc/glibc-functions/isalpha_l.texi.
39954         * doc/posix-functions/isblank_l.texi: Renamed from
39955         doc/glibc-functions/isblank_l.texi.
39956         * doc/posix-functions/iscntrl_l.texi: Renamed from
39957         doc/glibc-functions/iscntrl_l.texi.
39958         * doc/posix-functions/isdigit_l.texi: Renamed from
39959         doc/glibc-functions/isdigit_l.texi.
39960         * doc/posix-functions/isgraph_l.texi: Renamed from
39961         doc/glibc-functions/isgraph_l.texi.
39962         * doc/posix-functions/islower_l.texi: Renamed from
39963         doc/glibc-functions/islower_l.texi.
39964         * doc/posix-functions/isprint_l.texi: Renamed from
39965         doc/glibc-functions/isprint_l.texi.
39966         * doc/posix-functions/ispunct_l.texi: Renamed from
39967         doc/glibc-functions/ispunct_l.texi.
39968         * doc/posix-functions/isspace_l.texi: Renamed from
39969         doc/glibc-functions/isspace_l.texi.
39970         * doc/posix-functions/isupper_l.texi: Renamed from
39971         doc/glibc-functions/isupper_l.texi.
39972         * doc/posix-functions/iswalnum_l.texi: Renamed from
39973         doc/glibc-functions/iswalnum_l.texi.
39974         * doc/posix-functions/iswalpha_l.texi: Renamed from
39975         doc/glibc-functions/iswalpha_l.texi.
39976         * doc/posix-functions/iswblank_l.texi: Renamed from
39977         doc/glibc-functions/iswblank_l.texi.
39978         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39979         doc/glibc-functions/iswcntrl_l.texi.
39980         * doc/posix-functions/iswctype_l.texi: Renamed from
39981         doc/glibc-functions/iswctype_l.texi.
39982         * doc/posix-functions/iswdigit_l.texi: Renamed from
39983         doc/glibc-functions/iswdigit_l.texi.
39984         * doc/posix-functions/iswgraph_l.texi: Renamed from
39985         doc/glibc-functions/iswgraph_l.texi.
39986         * doc/posix-functions/iswlower_l.texi: Renamed from
39987         doc/glibc-functions/iswlower_l.texi.
39988         * doc/posix-functions/iswprint_l.texi: Renamed from
39989         doc/glibc-functions/iswprint_l.texi.
39990         * doc/posix-functions/iswpunct_l.texi: Renamed from
39991         doc/glibc-functions/iswpunct_l.texi.
39992         * doc/posix-functions/iswspace_l.texi: Renamed from
39993         doc/glibc-functions/iswspace_l.texi.
39994         * doc/posix-functions/iswupper_l.texi: Renamed from
39995         doc/glibc-functions/iswupper_l.texi.
39996         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39997         doc/glibc-functions/iswxdigit_l.texi.
39998         * doc/posix-functions/isxdigit_l.texi: Renamed from
39999         doc/glibc-functions/isxdigit_l.texi.
40000         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40001         doc/glibc-functions/mbsnrtowcs.texi.
40002         * doc/posix-functions/mkdtemp.texi: Renamed from
40003         doc/glibc-functions/mkdtemp.texi.
40004         * doc/posix-functions/newlocale.texi: Renamed from
40005         doc/glibc-functions/newlocale.texi.
40006         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40007         doc/glibc-functions/nl_langinfo_l.texi.
40008         * doc/posix-functions/open_memstream.texi: Renamed from
40009         doc/glibc-functions/open_memstream.texi.
40010         * doc/posix-functions/opterr.texi: Renamed from
40011         doc/glibc-functions/opterr.texi.
40012         * doc/posix-functions/optind.texi: Renamed from
40013         doc/glibc-functions/optind.texi.
40014         * doc/posix-functions/optopt.texi: Renamed from
40015         doc/glibc-functions/optopt.texi.
40016         * doc/posix-functions/psignal.texi: Renamed from
40017         doc/glibc-functions/psignal.texi.
40018         * doc/posix-functions/scandir.texi: Renamed from
40019         doc/glibc-functions/scandir.texi.
40020         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40021         doc/glibc-functions/sched_get_priority_min.texi.
40022         * doc/posix-functions/signgam.texi: Renamed from
40023         doc/glibc-functions/signgam.texi.
40024         * doc/posix-functions/stpcpy.texi: Renamed from
40025         doc/glibc-functions/stpcpy.texi.
40026         * doc/posix-functions/stpncpy.texi: Renamed from
40027         doc/glibc-functions/stpncpy.texi.
40028         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40029         doc/glibc-functions/strcasecmp_l.texi.
40030         * doc/posix-functions/strcoll_l.texi: Renamed from
40031         doc/glibc-functions/strcoll_l.texi.
40032         * doc/posix-functions/strfmon_l.texi: Renamed from
40033         doc/glibc-functions/strfmon_l.texi.
40034         * doc/posix-functions/strftime_l.texi: Renamed from
40035         doc/glibc-functions/strftime_l.texi.
40036         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40037         doc/glibc-functions/strncasecmp_l.texi.
40038         * doc/posix-functions/strndup.texi: Renamed from
40039         doc/glibc-functions/strndup.texi.
40040         * doc/posix-functions/strnlen.texi: Renamed from
40041         doc/glibc-functions/strnlen.texi.
40042         * doc/posix-functions/strsignal.texi: Renamed from
40043         doc/glibc-functions/strsignal.texi.
40044         * doc/posix-functions/strxfrm_l.texi: Renamed from
40045         doc/glibc-functions/strxfrm_l.texi.
40046         * doc/posix-functions/timer_gettime.texi: Renamed from
40047         doc/glibc-functions/timer_gettime.texi.
40048         * doc/posix-functions/tolower_l.texi: Renamed from
40049         doc/glibc-functions/tolower_l.texi.
40050         * doc/posix-functions/toupper_l.texi: Renamed from
40051         doc/glibc-functions/toupper_l.texi.
40052         * doc/posix-functions/towctrans_l.texi: Renamed from
40053         doc/glibc-functions/towctrans_l.texi.
40054         * doc/posix-functions/towlower_l.texi: Renamed from
40055         doc/glibc-functions/towlower_l.texi.
40056         * doc/posix-functions/towupper_l.texi: Renamed from
40057         doc/glibc-functions/towupper_l.texi.
40058         * doc/posix-functions/uselocale.texi: Renamed from
40059         doc/glibc-functions/uselocale.texi.
40060         * doc/posix-functions/vdprintf.texi: Renamed from
40061         doc/glibc-functions/vdprintf.texi.
40062         * doc/posix-functions/wcpcpy.texi:
40063         Renamed from doc/glibc-functions/wcpcpy.texi.
40064         * doc/posix-functions/wcpncpy.texi: Renamed from
40065         doc/glibc-functions/wcpncpy.texi.
40066         * doc/posix-functions/wcscasecmp.texi: Renamed from
40067         doc/glibc-functions/wcscasecmp.texi.
40068         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40069         doc/glibc-functions/wcscasecmp_l.texi.
40070         * doc/posix-functions/wcscoll_l.texi: Renamed from
40071         doc/glibc-functions/wcscoll_l.texi.
40072         * doc/posix-functions/wcsdup.texi: Renamed from
40073         doc/glibc-functions/wcsdup.texi.
40074         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40075         doc/glibc-functions/wcsncasecmp.texi.
40076         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40077         doc/glibc-functions/wcsncasecmp_l.texi.
40078         * doc/posix-functions/wcsnlen.texi: Renamed from
40079         doc/glibc-functions/wcsnlen.texi.
40080         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40081         doc/glibc-functions/wcsnrtombs.texi.
40082         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40083         doc/glibc-functions/wcsxfrm_l.texi.
40084         * doc/posix-functions/wctrans_l.texi: Renamed from
40085         doc/glibc-functions/wctrans_l.texi.
40086         * doc/posix-functions/wctype_l.texi: Renamed from
40087         doc/glibc-functions/wctype_l.texi.
40088         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40089         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40090         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40091         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40092         these subsections.
40093         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40094         Remove sections.
40095
40096 2008-12-14  Bruno Haible  <bruno@clisp.org>
40097
40098         Update doc for POSIX:2008.
40099         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40100
40101 2008-12-14  Bruno Haible  <bruno@clisp.org>
40102
40103         Update doc for POSIX:2008.
40104         * doc/pastposix-functions/bcmp.texi: Renamed from
40105         doc/posix-functions/bcmp.texi.
40106         * doc/pastposix-functions/bcopy.texi: Renamed from
40107         doc/posix-functions/bcopy.texi.
40108         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40109         doc/posix-functions/bsd_signal.texi.
40110         * doc/pastposix-functions/bzero.texi: Renamed from
40111         doc/posix-functions/bzero.texi.
40112         * doc/pastposix-functions/ecvt.texi: Renamed from
40113         doc/posix-functions/ecvt.texi.
40114         * doc/pastposix-functions/fcvt.texi: Renamed from
40115         doc/posix-functions/fcvt.texi.
40116         * doc/pastposix-functions/ftime.texi: Renamed from
40117         doc/posix-functions/ftime.texi.
40118         * doc/pastposix-functions/gcvt.texi: Renamed from
40119         doc/posix-functions/gcvt.texi.
40120         * doc/pastposix-functions/getcontext.texi: Renamed from
40121         doc/posix-functions/getcontext.texi.
40122         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40123         doc/posix-functions/gethostbyaddr.texi.
40124         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40125         doc/posix-functions/gethostbyname.texi.
40126         * doc/pastposix-functions/getwd.texi: Renamed from
40127         doc/posix-functions/getwd.texi.
40128         * doc/pastposix-functions/h_errno.texi: Renamed from
40129         doc/posix-functions/h_errno.texi.
40130         * doc/pastposix-functions/index.texi: Renamed from
40131         doc/posix-functions/index.texi.
40132         * doc/pastposix-functions/makecontext.texi: Renamed from
40133         doc/posix-functions/makecontext.texi.
40134         * doc/pastposix-functions/mktemp.texi: Renamed from
40135         doc/posix-functions/mktemp.texi.
40136         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40137         doc/posix-functions/pthread_attr_getstackaddr.texi.
40138         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40139         doc/posix-functions/pthread_attr_setstackaddr.texi.
40140         * doc/pastposix-functions/rindex.texi: Renamed from
40141         doc/posix-functions/rindex.texi.
40142         * doc/pastposix-functions/scalb.texi: Renamed from
40143         doc/posix-functions/scalb.texi.
40144         * doc/pastposix-functions/setcontext.texi: Renamed from
40145         doc/posix-functions/setcontext.texi.
40146         * doc/pastposix-functions/swapcontext.texi: Renamed from
40147         doc/posix-functions/swapcontext.texi.
40148         * doc/pastposix-functions/ualarm.texi: Renamed from
40149         doc/posix-functions/ualarm.texi.
40150         * doc/pastposix-functions/usleep.texi: Renamed from
40151         doc/posix-functions/usleep.texi.
40152         * doc/pastposix-functions/vfork.texi: Renamed from
40153         doc/posix-functions/vfork.texi.
40154         * doc/pastposix-functions/wcswcs.texi: Renamed from
40155         doc/posix-functions/wcswcs.texi.
40156         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40157         (Function Substitutes): Update.
40158
40159 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40160
40161         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40162         m4/strerror.m4.
40163
40164 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40165             Bruno Haible  <bruno@clisp.org>
40166
40167         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40168
40169 2008-12-13  Bruno Haible  <bruno@clisp.org>
40170
40171         * modules/strtoull (Depends-on): Remove unistd.
40172
40173 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40174
40175         * modules/strtoull (Depends-on): Add stdlib.
40176
40177 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40178
40179         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40180
40181 2008-12-10  Jim Meyering  <meyering@redhat.com>
40182
40183         gl_ASSERT: don't say assertions are disabled when they're not
40184         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40185         "checking whether to enable assertions... no", when they are in
40186         fact enabled.  This is solely a bug in the output of configure.
40187         In spite of saying "no", NDEBUG was not defined in that case.
40188         Also, as noted by Eric Blake, leave assertions enabled upon
40189         --enable-assert=INVALID.
40190
40191 2008-12-10  Bruno Haible  <bruno@clisp.org>
40192
40193         Change MODULES.html to refer to POSIX:2008 where possible.
40194         * MODULES.html.sh (POSIX2008_URL): New variable.
40195         (posix_headers): Remove sys/timeb, ucontext.
40196         (posix2001_headers): New variable.
40197         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40198         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40199         index, makecontext, mktemp, pthread_attr_getstackaddr,
40200         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40201         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40202         (posix2001_functions): New variable.
40203         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40204         otherwise.
40205
40206 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40207
40208         add missing include to parse-duration.c
40209         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40210         * modules/parse-duration (Depends-on): Add xalloc.
40211
40212         fix sed script reading maint.mk
40213         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40214         (syntax-check-rules): Use it.
40215
40216 2008-12-09  Bruno Haible  <bruno@clisp.org>
40217
40218         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40219         MacOS X 10.4/PowerPC.
40220         Reported by Simon Josefsson.
40221
40222 2008-12-08  Jim Meyering  <meyering@redhat.com>
40223
40224         work around mingw's lack of some S_IF definitions
40225         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40226         Reported by Simon Josefsson.
40227
40228 2008-12-08  Bruno Haible  <bruno@clisp.org>
40229
40230         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40231         applied to variables. Needed on MacOS X 10.4/PowerPC.
40232         Reported by Simon Josefsson.
40233
40234 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40235         and Eric Blake  <ebb9@byu.net>
40236
40237         assert: honor --enable-assert
40238         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40239         order to honor --enable-assert, rather than treating it as a
40240         synonym for --disable-assert.
40241
40242 2008-12-08  Jim Meyering  <meyering@redhat.com>
40243
40244         * lib/posixtm.c: Remove now-useless declaration of mktime.
40245
40246         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40247
40248 2008-12-07  Bruno Haible  <bruno@clisp.org>
40249
40250         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40251         test_once): Mark functions as static.
40252         * tests/test-tls.c (test_tls): Likewise.
40253
40254 2008-12-07  Bruno Haible  <bruno@clisp.org>
40255
40256         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40257         iconv_register_autodetect.
40258
40259 2008-12-07  Jim Meyering  <meyering@redhat.com>
40260
40261         posixtm.c: avoid a warning
40262         * lib/posixtm.c (posixtime): Don't initialize tm0.
40263         It's no longer needed to placate gcc4's -Wuninitialized,
40264         and the attempt to placate would elicit a new warning.
40265
40266         unicodeio.c: mark unused parameters
40267         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40268         (fallback_failure_callback): Likewise.
40269
40270 2008-12-07  Bruno Haible  <bruno@clisp.org>
40271
40272         * gnulib-tool (func_create_testdir): When building the tests
40273         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40274         Reported by Simon Josefsson.
40275
40276 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40277
40278         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40279
40280 2008-12-06  Bruno Haible  <bruno@clisp.org>
40281
40282         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40283         Suggested by Eric Blake.
40284
40285 2008-12-06  Bruno Haible  <bruno@clisp.org>
40286
40287         Fix a c-stack test failure on MacOS X.
40288         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40289         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40290         handler for SIGBUS as well.
40291         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40292         install a signal handler for SIGBUS as well.
40293         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40294
40295 2008-12-06  Bruno Haible  <bruno@clisp.org>
40296
40297         Advocacy documentation.
40298         * doc/gnulib-intro.texi (Benefits): New section.
40299         * doc/gnulib.texi: Update.
40300
40301 2008-12-06  Bruno Haible  <bruno@clisp.org>
40302
40303         Document the 'manywarnings' module.
40304         * doc/manywarnings.texi: New file.
40305         * doc/gnulib.texi: Include it.
40306
40307 2008-12-05  Eric Blake  <ebb9@byu.net>
40308
40309         tests: silence some gcc warnings
40310         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40311         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40312         type mismatches.
40313
40314 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40315             Bruno Haible  <bruno@clisp.org>
40316
40317         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40318
40319 2008-11-29  Jim Meyering  <meyering@redhat.com>
40320
40321         unicodeio.c: mark unused parameters
40322         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40323         (fallback_failure_callback): Likewise.
40324
40325         fts: fix a thinko
40326         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40327         (set_stat_type): Return S_IF*-valued "type" directly.
40328         Prompted by James Youngman's spotting a related bug.
40329         Confirmed by further testing through find.
40330
40331         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40332         * lib/fts.c (D_TYPE): Define.
40333         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40334         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40335         (s_ifmt_shift_bits): New function.
40336         (set_stat_type): New function.
40337         (fts_build): When not calling fts_stat, call set_stat_type
40338         to propagate dirent.d_type info to fts_read caller.
40339         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40340         fts_statp->st_mode type information may be valid.
40341
40342 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40343
40344         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40345         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40346         <sds@gnu.org>.
40347
40348 2008-11-20  Bruno Haible  <bruno@clisp.org>
40349
40350         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40351         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40352         INCLUDE_NEXT.
40353         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40354         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40355         * modules/math (Makefile.am): Substitute
40356         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40357         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40358
40359 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40360             Bruno Haible  <bruno@clisp.org>
40361
40362         * lib/stdint.in.h: Define all type macros so that their expansion is
40363         a single typedef'ed token. Fixes a compilation failure in Boost which
40364         does "using ::int8_t;".
40365
40366 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40367
40368         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40369         gl_MANYWARN_ALL_GCC.
40370         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40371         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40372         * modules/manywarnings: New file.
40373         * MODULES.html.sh: Mention manywarnings module.
40374
40375 2008-11-18  Bruno Haible  <bruno@clisp.org>
40376
40377         * doc/gnulib-tool.texi (Unit tests): New section.
40378
40379 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40380
40381         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40382         paths like 'lib/po/foo.po'.
40383
40384 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40385
40386         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40387         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40388
40389 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40390
40391         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40392         parameter works.
40393
40394 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40395
40396         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40397
40398 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40399
40400         * modules/parse-duration-tests: New file.
40401         * tests/test-parse-duration.sh: New file.
40402         * tests/test-parse-duration.c: New file.
40403
40404         New module 'parse-duration'.
40405         * lib/parse-duration.h: New file.
40406         * lib/parse-duration.c: New file.
40407         * modules/parse-duration: New file.
40408
40409 2008-11-17  Bruno Haible  <bruno@clisp.org>
40410
40411         * tests/test-select-out.sh: Comment out the first pipe test.
40412         Reported by Simon Josefsson.
40413
40414 2008-11-17  Bruno Haible  <bruno@clisp.org>
40415
40416         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40417         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40418         gl_HOSTENT.
40419
40420 2008-11-17  Bruno Haible  <bruno@clisp.org>
40421
40422         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40423         -lnetwork and -lnet. Needed for Haiku and BeOS.
40424
40425 2008-11-16  Bruno Haible  <bruno@clisp.org>
40426
40427         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40428
40429 2008-11-16  Bruno Haible  <bruno@clisp.org>
40430
40431         Avoid test failure on Haiku.
40432         * tests/test-fsync.c: Include <errno.h>.
40433         (main): Don't require that fsync (0) fails.
40434
40435 2008-11-15  Bruno Haible  <bruno@clisp.org>
40436
40437         New module 'hostent'.
40438         * modules/hostent: New file.
40439         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40440
40441 2008-11-15  Bruno Haible  <bruno@clisp.org>
40442
40443         New module 'servent'.
40444         * modules/servent: New file.
40445         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40446
40447 2008-11-15  Bruno Haible  <bruno@clisp.org>
40448
40449         Avoid generating same test program with two different rules.
40450         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40451         test-frexp to test-frexp-nolibm.
40452         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40453         test-frexpl to test-frexpl-nolibm.
40454
40455 2008-11-15  Bruno Haible  <bruno@clisp.org>
40456
40457         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40458         $(FREXPL_LIBM).
40459
40460 2008-11-15  Bruno Haible  <bruno@clisp.org>
40461
40462         * lib/netdb.in.h: Activate the definitions also when the system's
40463         <netdb.h> has 'struct addrinfo'.
40464         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40465         EAI_OVERFLOW or AI_NUMERICSERV.
40466         * doc/posix-headers/netdb.texi: Document the problem.
40467
40468 2008-11-15  Bruno Haible  <bruno@clisp.org>
40469
40470         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40471
40472         Make the 'sched' module work on platforms where <sched.h> exists but
40473         is incomplete (such as Haiku).
40474         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40475         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40476         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40477         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40478         HAVE_STRUCT_SCHED_PARAM.
40479         * modules/sched (Depends-on): Add include_next.
40480         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40481         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40482         * doc/posix-headers/sched.texi: Document the issue.
40483
40484 2008-11-13  Jim Meyering  <meyering@redhat.com>
40485
40486         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40487         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40488         test would fail due to the difference in the Report bugs to ...
40489         line.  The expected address is empty, "<>", while the actual
40490         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40491
40492 2008-11-12  Bruno Haible  <bruno@clisp.org>
40493
40494         lstat: don't compile lstat.c on systems lacking lstat
40495         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40496         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40497         Reported by Daniel P. Berrange via Jim Meyering.
40498
40499 2008-11-12  Jim Meyering  <meyering@redhat.com>
40500
40501         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40502
40503 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40504
40505         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40506         instead.
40507
40508 2008-11-12  Bruno Haible  <bruno@clisp.org>
40509
40510         * lib/unicodeio.c: Include unistr.h.
40511         (utf8_wctomb): Remove function.
40512         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40513
40514 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40515
40516         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40517         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40518         <bruno@clisp.org>.
40519         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40520
40521 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40522
40523         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40524         * doc/gnulib.texi: Add section for warnings.
40525
40526 2008-11-11  Bruno Haible  <bruno@clisp.org>
40527
40528         * lib/sockets.h: Add a comment.
40529
40530 2008-11-11  Karl Berry  <karl@gnu.org>
40531
40532         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40533
40534 2008-11-11  Eric Blake  <ebb9@byu.net>
40535
40536         fdl.texi: avoid git symlinks
40537         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40538
40539 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40540
40541         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40542
40543 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40544
40545         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40546         (gl_WARN_ADD): Substitute $2 if literal.
40547
40548 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40549
40550         * m4/warning.m4: Remove.
40551
40552 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40553
40554         * m4/warnings.m4: Almost complete rewrite. :-)
40555
40556 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40557
40558         * modules/warnings: New module.
40559         * m4/warnings.m4: New file.
40560         * MODULES.html.sh: Mention warnings module.
40561         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40562         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40563
40564 2008-11-10  Eric Blake  <ebb9@byu.net>
40565
40566         fdl.texi: make a symlink to the latest version
40567         * doc/standards.texi: Revert today's earlier change.
40568         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40569         * doc/fdl.texi: ...and replace this with a symlink to the newer
40570         fdl-1.3.texi.
40571
40572 2008-11-10  Bruno Haible  <bruno@clisp.org>
40573
40574         * tests/test-select-fd.c (main): Accept the result file name as fourth
40575         argument.
40576         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40577         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40578
40579 2008-11-10  Bruno Haible  <bruno@clisp.org>
40580
40581         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40582         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40583         as autoconf-substituted macros.
40584         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40585         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40586         gl_NETDB_H_DEFAULTS. Set these variables.
40587         * modules/netdb (Makefile.am): Substitute these variables.
40588
40589 2008-11-10  Eric Blake  <ebb9@byu.net>
40590
40591         standards.texi: include correct file for FDL 1.3
40592         * doc/standards.texi (GNU Free Documentation License): Change
40593         include file to pull in FDL 1.3, not 1.2.
40594
40595         fdl.texi: revert accidental change to license
40596         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40597
40598 2008-11-10  Bruno Haible  <bruno@clisp.org>
40599
40600         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40601         cross-compiling guesses also when the native compile gives no result.
40602
40603 2008-11-10  Bruno Haible  <bruno@clisp.org>
40604
40605         * lib/spawni.c (__spawni): Force variable into the stack.
40606
40607 2008-11-10  Bruno Haible  <bruno@clisp.org>
40608
40609         Add support for Haiku.
40610         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40611         glibc and BeOS, but also on Haiku.
40612         * lib/fpurge.c (fpurge): Likewise.
40613         * lib/freadable.c (freadable): Likewise.
40614         * lib/freadahead.c (freadahead): Likewise.
40615         * lib/freading.c (freading): Likewise.
40616         * lib/freadptr.c (freadptr): Likewise.
40617         * lib/freadseek.c (freadptrinc): Likewise.
40618         * lib/fseeko.c (rpl_fseeko): Likewise.
40619         * lib/fseterr.c (fseterr): Likewise.
40620         * lib/fwritable.c (fwritable): Likewise.
40621         * lib/fwriting.c (fwriting): Likewise.
40622         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40623
40624 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40625
40626         * lib/config.charset: Treat Haiku like BeOS.
40627
40628 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40629
40630         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40631         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40632
40633 2008-11-08  Bruno Haible  <bruno@clisp.org>
40634
40635         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40636         AC_CACHE_CHECK.
40637
40638 2008-11-08  Bruno Haible  <bruno@clisp.org>
40639
40640         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40641
40642 2008-11-08  Bruno Haible  <bruno@clisp.org>
40643
40644         * tests/test-select-fd.c: New file.
40645         * tests/test-select-in.sh: New file.
40646         * tests/test-select-out.sh: New file.
40647         * tests/test-select-stdin.c: New file.
40648         * modules/select-tests (Files): Add the new files.
40649         (Depends-on): Add gettimeofday.
40650         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40651         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40652         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40653
40654 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40655             Bruno Haible  <bruno@clisp.org>
40656
40657         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40658
40659 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40660
40661         * build-aux/pmccabe2html: Added support for C++ source files.
40662
40663 2008-11-05  Ben Pfaff  <blp@gnu.org>
40664
40665         Fix lib/close.c build on Windows.
40666         * modules/close (Files): Add lib/w32sock.h.
40667
40668 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40669
40670         Accept Bison's NEWS format.
40671         * build-aux/announce-gen (print_news_deltas): Tweak
40672         $re_prefix.
40673
40674 2008-11-04  Bruno Haible  <bruno@clisp.org>
40675
40676         * modules/random_r (Maintainer): Add glibc.
40677
40678 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40679
40680         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40681         by karl@freefriends.org (Karl Berry).
40682         * doc/alloca.texi: Likewise.
40683         * doc/c-ctype.texi: Likewise.
40684         * doc/c-strcase.texi: Likewise.
40685         * doc/c-strcaseeq.texi: Likewise.
40686         * doc/c-strcasestr.texi: Likewise.
40687         * doc/c-strstr.texi: Likewise.
40688         * doc/c-strtod.texi: Likewise.
40689         * doc/c-strtold.texi: Likewise.
40690         * doc/ctime.texi: Likewise.
40691         * doc/error.texi: Likewise.
40692         * doc/fdl.texi: Likewise.
40693         * doc/gcd.texi: Likewise.
40694         * doc/getdate.texi: Likewise.
40695         * doc/gnulib-intro.texi: Likewise.
40696         * doc/gnulib-tool.texi: Likewise.
40697         * doc/gnulib.texi: Likewise.
40698         * doc/inet_ntoa.texi: Likewise.
40699         * doc/maintain.texi: Likewise.
40700         * doc/make-stds.texi: Likewise.
40701         * doc/quote.texi: Likewise.
40702         * doc/regexprops-generic.texi: Likewise.
40703         * doc/standards.texi: Likewise.
40704         * doc/verify.texi: Likewise.
40705         * doc/visibility.texi: Likewise.
40706         * doc/gnulib.texi (GNU Free Documentation License): Include
40707         fdl-1.3.texi instead of fdl.texi.
40708
40709 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40710
40711         * doc/fdl-1.3.texi: New file, from
40712         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40713         * modules/fdl-1.3: Add.
40714         * MODULES.html.sh: Add fdl-1.3.
40715
40716 2008-11-03  Bruno Haible  <bruno@clisp.org>
40717
40718         Make determination of absolute name of header file work with AIX xlc.
40719         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40720         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40721         preprocessing.
40722         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40723         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40724
40725 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40726
40727         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40728         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40729         <ludo@gnu.org>.
40730
40731 2008-11-02  Bruno Haible  <bruno@clisp.org>
40732
40733         Mark 'strpbrk' obsolete.
40734         * modules/strpbrk (Status, Notice): New sections.
40735         * modules/strtok_r (Depends-on): Add strpbrk.
40736
40737 2008-11-02  Bruno Haible  <bruno@clisp.org>
40738
40739         Mark 'strdup' obsolete.
40740         * modules/strdup (Status, Notice): New sections.
40741         * modules/findprog (Depends-on): Add strdup.
40742         * modules/getaddrinfo (Depends-on): Likewise.
40743         * modules/localename (Depends-on): Likewise.
40744         * modules/relocatable-lib (Depends-on): Likewise.
40745         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40746         * modules/relocatable-prog (Depends-on): Likewise.
40747         * modules/trim (Depends-on): Likewise.
40748         * modules/unictype/gen-ctype (Depends-on): Likewise.
40749         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40750
40751 2008-11-02  Bruno Haible  <bruno@clisp.org>
40752
40753         Mark 'strcspn' obsolete.
40754         * modules/strcspn (Status, Notice): New sections.
40755
40756 2008-11-02  Bruno Haible  <bruno@clisp.org>
40757
40758         Mark 'rmdir' obsolete.
40759         * modules/rmdir (Status, Notice): New sections.
40760         * modules/clean-temp (Depends-on): Add rmdir.
40761         * modules/openat (Depends-on): Likewise.
40762
40763 2008-11-02  Bruno Haible  <bruno@clisp.org>
40764
40765         Mark 'raise' obsolete.
40766         * modules/raise (Status, Notice): New sections.
40767         (Include): Specify <signal.h>.
40768         * modules/stdio (Depends-on): Add raise.
40769         * modules/write (Depends-on): Likewise.
40770
40771 2008-11-02  Bruno Haible  <bruno@clisp.org>
40772
40773         Mark 'memset' obsolete.
40774         * modules/memset (Status, Notice): New sections.
40775
40776 2008-11-02  Bruno Haible  <bruno@clisp.org>
40777
40778         Mark 'memmove' obsolete.
40779         * modules/memmove (Status, Notice): New sections.
40780         * modules/argp (Depends-on): Add memmove.
40781         * modules/argz (Depends-on): Likewise.
40782         * modules/canonicalize (Depends-on): Likewise.
40783         * modules/canonicalize-lgpl (Depends-on): Likewise.
40784         * modules/fts (Depends-on): Likewise.
40785         * modules/getcwd (Depends-on): Likewise.
40786         * modules/human (Depends-on): Likewise.
40787         * modules/regex (Depends-on): Likewise.
40788         * modules/striconveh (Depends-on): Likewise.
40789         * modules/trim (Depends-on): Likewise.
40790         * modules/unistr/u8-move (Depends-on): Likewise.
40791         * modules/unistr/u16-move (Depends-on): Likewise.
40792         * modules/unistr/u32-move (Depends-on): Likewise.
40793
40794 2008-11-02  Bruno Haible  <bruno@clisp.org>
40795
40796         Mark 'memcpy' obsolete.
40797         * modules/memcpy (Status, Notice): New sections.
40798
40799 2008-11-02  Bruno Haible  <bruno@clisp.org>
40800
40801         Mark 'memcmp' obsolete.
40802         * modules/memcmp (Status, Notice): New sections.
40803         * modules/argmatch (Depends-on): Add memchr.
40804         * modules/backupfile (Depends-on): Likewise.
40805         * modules/c-strcasestr (Depends-on): Likewise.
40806         * modules/crypto/des (Depends-on): Likewise.
40807         * modules/csharpcomp (Depends-on): Likewise.
40808         * modules/fnmatch (Depends-on): Likewise.
40809         * modules/git-merge-changelog (Depends-on): Likewise.
40810         * modules/isnand (Depends-on): Likewise.
40811         * modules/isnand-nolibm (Depends-on): Likewise.
40812         * modules/isnanf (Depends-on): Likewise.
40813         * modules/isnanf-nolibm (Depends-on): Likewise.
40814         * modules/isnanl (Depends-on): Likewise.
40815         * modules/isnanl-nolibm (Depends-on): Likewise.
40816         * modules/mbchar (Depends-on): Likewise.
40817         * modules/memcoll (Depends-on): Likewise.
40818         * modules/quotearg (Depends-on): Likewise.
40819         * modules/regex (Depends-on): Likewise.
40820         * modules/relocatable-prog (Depends-on): Likewise.
40821         * modules/same (Depends-on): Likewise.
40822         * modules/signbit (Depends-on): Likewise.
40823         * modules/strcasestr-simple (Depends-on): Likewise.
40824         * modules/unictype/gen-ctype (Depends-on): Likewise.
40825         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40826         * modules/uniname/uniname (Depends-on): Likewise.
40827         * modules/unistr/u8-cmp (Depends-on): Likewise.
40828
40829 2008-11-02  Bruno Haible  <bruno@clisp.org>
40830
40831         Mark 'memchr' obsolete.
40832         * modules/memchr (Status, Notice): New sections.
40833         * modules/argp (Depends-on): Add memchr.
40834         * modules/base64 (Depends-on): Likewise.
40835         * modules/c-strcasestr (Depends-on): Likewise.
40836         * modules/chdir-long (Depends-on): Likewise.
40837         * modules/fnmatch (Depends-on): Likewise.
40838         * modules/getsubopt (Depends-on): Likewise.
40839         * modules/git-merge-changelog (Depends-on): Likewise.
40840         * modules/glob (Depends-on): Likewise.
40841         * modules/strcasestr-simple (Depends-on): Likewise.
40842         * modules/strnlen (Depends-on): Likewise.
40843
40844 2008-11-02  Bruno Haible  <bruno@clisp.org>
40845
40846         Mark 'atexit' obsolete.
40847         * modules/atexit (Status, Notice): New sections.
40848         * modules/chdir-long (Depends-on): Add atexit.
40849         * modules/wait-process (Depends-on): Likewise.
40850
40851 2008-11-02  Bruno Haible  <bruno@clisp.org>
40852
40853         * gnulib-tool: New option --with-obsolete.
40854         (func_usage): Document it.
40855         (func_modules_transitive_closure): Drop obsolete dependencies if
40856         incobsolete is not true.
40857         (func_import): Read and save the incobsolete variable to the cache.
40858
40859 2008-11-02  Bruno Haible  <bruno@clisp.org>
40860
40861         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40862         * gnulib-tool: New option --extract-status.
40863         (func_usage): Document it.
40864         (sed_extract_prog): Recognize it.
40865         (func_get_status): New function.
40866
40867 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40868
40869         * modules/sockets (License): Change from LGPL to LGPLv2+.
40870
40871 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40872
40873         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40874
40875 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40876
40877         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40878         Mention times and sys_times.
40879         * modules/sys_times, modules/sys_times-tests: New modules.
40880         * modules/times, modules/times-tests: Likewise
40881         * m4/sys_times_h.m4: New file.
40882         * lib/sys_times.in.h: Likewise
40883         * lib/times.c: Likewise.
40884         * tests/test-sys_times.c: Likewise.
40885         * tests/test-times.c: Likewise.
40886         * doc/posix-headers/sys_times.texi: Update.
40887         * doc/posix-functions/times.texi: Update.
40888
40889 2008-10-28  Jim Meyering  <meyering@redhat.com>
40890
40891         * modules/tempname (Depends-on): Add lstat.
40892
40893         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40894
40895 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40896
40897         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40898         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40899         using idiom used elsewhere in gnulib.
40900
40901 2008-10-27  Jim Meyering  <meyering@redhat.com>
40902
40903         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40904
40905 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40906
40907         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40908         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40909         programs.
40910         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40911
40912 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40913
40914         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40915
40916 2008-10-27  Bruno Haible  <bruno@clisp.org>
40917
40918         * tests/test-lstat.c: Include <stdio.h>.
40919
40920 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40921
40922         * modules/lstat-tests: New module.
40923         * tests/test-lstat.c: New file.
40924
40925 2008-10-26  Jim Meyering  <meyering@redhat.com>
40926
40927         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40928
40929 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40930             Bruno Haible  <bruno@clisp.org>
40931
40932         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40933         * modules/configmake (Include): Add a note that the include must come
40934         after all system headers.
40935         * lib/javaversion.c: Include configmake.h after all other includes.
40936
40937 2008-10-26  Bruno Haible  <bruno@clisp.org>
40938
40939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40940         HAVE_STRUCT_RANDOM_DATA to 1.
40941         (gl_STDLIB_H): Simplify.
40942
40943 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40944
40945         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40946         substitute HAVE_STRUCT_RANDOM_DATA.
40947         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40948         random_data.
40949         * modules/stdlib (Makefile.am): Substitute
40950         HAVE_STRUCT_RANDOM_DATA.
40951
40952 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40953
40954         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40955         * doc/gnulib-intro.texi (Copyright): Likewise.
40956
40957 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40958
40959         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40960         findings.
40961
40962 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40963             Bruno Haible  <bruno@clisp.org>
40964
40965         * lib/unistd.in.h: Include <winsock2.h>.
40966         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40967         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40968         Provide dummy declarations.
40969         (gethostname): Override.
40970         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40971         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40972         gl_PREREQ_SYS_H_WINSOCK2.
40973         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40974         * doc/posix-functions/gethostname.texi: More details.
40975
40976 2008-10-25  Bruno Haible  <bruno@clisp.org>
40977
40978         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40979         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40980         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40981
40982         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40983         here ...
40984         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40985         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40986         gl_UNISTD_H_DEFAULTS.
40987
40988 2008-10-25  Eric Blake  <ebb9@byu.net>
40989
40990         signbit: avoid spurious compiler failure
40991         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40992         declarations inside function.
40993
40994 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40995             Bruno Haible  <bruno@clisp.org>
40996
40997         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40998         * modules/random_r (Depends-on): Add stdint.
40999
41000 2008-10-24  Bruno Haible  <bruno@clisp.org>
41001
41002         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41003         Eggert.
41004         * modules/strerror (License): Likewise.
41005
41006 2008-10-24  Jim Meyering  <meyering@redhat.com>
41007
41008         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41009         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41010
41011 2008-10-24  Eric Blake  <ebb9@byu.net>
41012
41013         getgroups: fix compilation when getgroups is available
41014         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41015         but with <config.h> override of getgroups disabled.
41016
41017 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41018
41019         * doc/gnulib.texi (Header files): Add note about C++ problems.
41020         Explained by Bruno Haible <bruno@clisp.org>.
41021
41022 2008-10-23  Bruno Haible  <bruno@clisp.org>
41023
41024         Define a dummy SA_NODEFER macro on Interix.
41025         * lib/signal.in.h (SA_NODEFER): Define fallback.
41026         Reported by Aleksey Cheusov <cheusov@tut.by> via
41027         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41028
41029 2008-10-23  Bruno Haible  <bruno@clisp.org>
41030
41031         * modules/freadahead (License): Change to LGPLv2+.
41032         Suggested by Simon Josefsson.
41033
41034 2008-10-23  Jim Meyering  <meyering@redhat.com>
41035
41036         random_r: new module
41037         * modules/random_r: New file.
41038         * m4/random_r.m4: New file.
41039         * lib/random_r.c: New file, from glibc.
41040         * modules/random_r-tests: New file.
41041         * tests/test-random_r.c: New file.
41042         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41043          Declare.
41044         (RAND_MAX): Define.
41045         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41046         * modules/stdlib: Substitute them, too.
41047         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41048         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41049         * doc/glibc-functions/random_r.texi: Likewise.
41050         * doc/glibc-functions/setstate_r.texi: Likewise.
41051         * doc/glibc-functions/srandom_r.texi: Likewise.
41052         * config/srclist.txt: Mention it.
41053
41054 2008-10-23  David Lutterkort  <lutter@redhat.com>
41055
41056         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41057         link requirement
41058
41059 2008-10-23  Jim Meyering  <meyering@redhat.com>
41060
41061         selinux-h: mark parameters of stub functions as intentionally unused
41062         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41063         * lib/se-context.in.h: Likewise.
41064
41065 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41066
41067         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41068
41069 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41070
41071         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41072
41073 2008-10-22  Eric Blake  <ebb9@byu.net>
41074
41075         glthread/thread: avoid compiler warning
41076         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41077         Add unreachable abort to silence compiler.
41078
41079 2008-10-22  Eric Blake  <ebb9@byu.net>
41080
41081         netdb: also supply struct addrinfo for cygwin 1.5.x
41082         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41083         older cygwin.
41084         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41085         cygwin.
41086         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41087
41088 2008-10-22  Bruno Haible  <bruno@clisp.org>
41089
41090         * users.txt: Update entry about pspp.
41091
41092 2008-10-21  Bruno Haible  <bruno@clisp.org>
41093
41094         Simplification.
41095         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41096         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41097
41098         Simplification.
41099         * lib/ioctl.c (ioctl): Don't undefine.
41100         * lib/socket.c (socket): Don't undefine.
41101
41102         Remove unused module indicator macros.
41103         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41104         GNULIB_$1 as a C macro.
41105
41106         * doc/posix-functions/close.texi: Undo last change.
41107         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41108         Windows platforms.
41109
41110 2008-10-21  Bruno Haible  <bruno@clisp.org>
41111
41112         Add gethostname() declaration to <unistd.h>.
41113         * lib/unistd.in.h (gethostname): New declaration.
41114         * lib/gethostname.c: Include <unistd.h>.
41115         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41116         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41118         and HAVE_GETHOSTNAME.
41119         * modules/gethostname (Depends-on): Add unistd.
41120         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41121         (Include): Specify <unistd.h>.
41122         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41123         HAVE_GETHOSTNAME.
41124         * tests/test-gethostname.c: Include <unistd.h> first.
41125
41126 2008-10-21  Bruno Haible  <bruno@clisp.org>
41127
41128         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41129         * modules/select-tests (Depends-on): Likewise.
41130         Reported by Simon Josefsson.
41131
41132 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41133
41134         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41135         * lib/accept.c: New file, based on winsock.c.
41136         * lib/bind.c: New file, based on winsock.c.
41137         * lib/connect.c: New file, based on winsock.c.
41138         * lib/getpeername.c: New file, based on winsock.c.
41139         * lib/getsockname.c: New file, based on winsock.c.
41140         * lib/getsockopt.c: New file, based on winsock.c.
41141         * lib/ioctl.c: New file, based on winsock.c.
41142         * lib/listen.c: New file, based on winsock.c.
41143         * lib/recv.c: New file, based on winsock.c.
41144         * lib/recvfrom.c: New file, based on winsock.c.
41145         * lib/send.c: New file, based on winsock.c.
41146         * lib/sendto.c: New file, based on winsock.c.
41147         * lib/setsockopt.c: New file, based on winsock.c.
41148         * lib/shutdown.c: New file, based on winsock.c.
41149         * lib/socket.c: New file, based on winsock.c.
41150         * lib/w32sock.h: New file, based on winsock.c.
41151         * lib/winsock.c: Remove file.
41152         * modules/accept: Likewise.
41153         * modules/bind: Likewise.
41154         * modules/connect: Likewise.
41155         * modules/getpeername: Likewise.
41156         * modules/getsockname: Likewise.
41157         * modules/getsockopt: Likewise.
41158         * modules/ioctl: Likewise.
41159         * modules/listen: Likewise.
41160         * modules/recv: Likewise.
41161         * modules/recvfrom: Likewise.
41162         * modules/send: Likewise.
41163         * modules/sendto: Likewise.
41164         * modules/setsockopt: Likewise.
41165         * modules/shutdown: Likewise.
41166         * modules/socket: Use socket.c instead of winsock.c.
41167         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41168         * doc/posix-functions/accept.texi: Doc fix.
41169         * doc/posix-functions/bind.texi: Doc fix.
41170         * doc/posix-functions/close.texi: Doc fix.
41171         * doc/posix-functions/connect.texi: Doc fix.
41172         * doc/posix-functions/getpeername.texi: Doc fix.
41173         * doc/posix-functions/getsockname.texi: Doc fix.
41174         * doc/posix-functions/getsockopt.texi: Doc fix.
41175         * doc/posix-functions/ioctl.texi: Doc fix.
41176         * doc/posix-functions/listen.texi: Doc fix.
41177         * doc/posix-functions/recv.texi: Doc fix.
41178         * doc/posix-functions/recvfrom.texi: Doc fix.
41179         * doc/posix-functions/send.texi: Doc fix.
41180         * doc/posix-functions/sendto.texi: Doc fix.
41181         * doc/posix-functions/setsockopt.texi: Doc fix.
41182         * doc/posix-functions/shutdown.texi: Doc fix.
41183         * doc/posix-functions/socket.texi: Doc fix.
41184
41185 2008-10-20  Bruno Haible  <bruno@clisp.org>
41186
41187         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41188         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41189         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41190         as an alias for SIGABRT.
41191         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41192         (sigaction): Map it to SIGABRT.
41193         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41194
41195 2008-10-20  Bruno Haible  <bruno@clisp.org>
41196
41197         * lib/fts.c: Don't include lstat.h.
41198         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41199
41200         Move the lstat() declaration to <sys/stat.h>.
41201         * lib/lstat.h: Remove file.
41202         * lib/sys_stat.in.h: Add special invocation convention.
41203         (lstat): New declaration.
41204         * lib/lstat.c (orig_lstat): New function.
41205         (rpl_lstat): Use orig_lstat instead of lstat.
41206         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41207         AC_C_INLINE. Set REPLACE_LSTAT.
41208         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41209         and REPLACE_LSTAT.
41210         * modules/lstat (Files): Remove lib/lstat.h.
41211         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41212         (Include): Specify <sys/stat.h> instead of lstat.h.
41213         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41214         REPLACE_LSTAT.
41215         * NEWS: Mention the change.
41216
41217 2008-10-20  Bruno Haible  <bruno@clisp.org>
41218
41219         * modules/posix_spawn-tests: New file.
41220         * tests/test-posix_spawn3.c: New file.
41221
41222 2008-10-20  Bruno Haible  <bruno@clisp.org>
41223
41224         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41225         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41226         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41227         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41228         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41229
41230 2008-10-20  Bruno Haible  <bruno@clisp.org>
41231
41232         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41233         of posix_spawn on AIX 5.3.
41234
41235 2008-10-20  Bruno Haible  <bruno@clisp.org>
41236
41237         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41238
41239 2008-10-20  Bruno Haible  <bruno@clisp.org>
41240
41241         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41242         of AC_LANG_PROGRAM.
41243
41244 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41245
41246         * lib/netdb.in.h: Don't define GNU specific constants until they
41247         are supported or needed.  Reported by Bruno Haible
41248         <bruno@clisp.org>.
41249
41250 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41251
41252         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41253
41254 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41255
41256         * lib/getaddrinfo.h: Remove file.
41257         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41258         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41259         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41260         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41261         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41262         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41263         * tests/test-getaddrinfo.c: Likewise.
41264         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41265         * NEWS: Mention change.
41266
41267 2008-10-19  Bruno Haible  <bruno@clisp.org>
41268
41269         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41270
41271 2008-10-19  Bruno Haible  <bruno@clisp.org>
41272
41273         * lib/wait-process.c: Include simply <sys/wait.h>.
41274         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41275         WIFSTOPPED): Remove fallback definitions.
41276         * modules/wait-process (Depends-on): Add sys_wait.
41277
41278         New module 'sys_wait'.
41279         * modules/sys_wait: New file.
41280         * lib/sys_wait.in.h: New file, partially copied from
41281         lib/wait-process.c.
41282         * m4/sys_wait_h.m4: New file.
41283         * doc/posix-headers/sys_wait.texi: Mention the new module.
41284
41285 2008-10-19  Bruno Haible  <bruno@clisp.org>
41286
41287         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41288
41289 2008-10-19  Bruno Haible  <bruno@clisp.org>
41290
41291         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41292         * lib/wait-process.c (WAIT_T): Remove type.
41293         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41294         (wait_subprocess): Update.
41295
41296 2008-10-19  Bruno Haible  <bruno@clisp.org>
41297
41298         New module 'atoll'.
41299         * modules/atoll: New file.
41300         * lib/stdlib.in.h (atoll): New declaration.
41301         * lib/atoll.c: New file, from glibc with modifications.
41302         * m4/atoll.m4: New file.
41303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41304         HAVE_ATOLL.
41305         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41306         * doc/posix-functions/atoll.texi: Mention the new module.
41307
41308 2008-10-19  Bruno Haible  <bruno@clisp.org>
41309
41310         Add strtoull() declaration to <stdlib.h>.
41311         * lib/stdlib.in.h (strtoull): New declaration.
41312         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41313         Set HAVE_STRTOULL.
41314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41315         HAVE_STRTOULL.
41316         * modules/strtoull (Depends-on): Add stdlib.
41317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41318         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41319         HAVE_STRTOULL.
41320
41321 2008-10-19  Bruno Haible  <bruno@clisp.org>
41322
41323         Add strtoll() declaration to <stdlib.h>.
41324         * lib/stdlib.in.h (strtoll): New declaration.
41325         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41326         Set HAVE_STRTOLL.
41327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41328         HAVE_STRTOLL.
41329         * modules/strtoll (Depends-on): Add stdlib.
41330         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41331         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41332
41333 2008-10-19  Bruno Haible  <bruno@clisp.org>
41334
41335         * modules/bcopy (Depends-on): Add strings.
41336         (Include): Specify <strings.h>.
41337
41338 2008-10-19  Bruno Haible  <bruno@clisp.org>
41339
41340         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41341
41342 2008-10-19  Bruno Haible  <bruno@clisp.org>
41343
41344         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41345         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41346         mingw.
41347
41348 2008-10-19  Bruno Haible  <bruno@clisp.org>
41349
41350         * lib/atanl.c: Don't include isnanl.h.
41351         * lib/cosl.c: Likewise.
41352         * lib/ldexpl.c: Likewise.
41353         * lib/logl.c: Likewise.
41354         * lib/sinl.c: Likewise.
41355         * lib/sqrtl.c: Likewise.
41356         * lib/tanl.c: Likewise.
41357
41358         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41359         * lib/isnanf.h: Remove file.
41360         * lib/isnand.h: Remove file.
41361         * lib/isnanl.h: Remove file.
41362         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41363         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41364         macros.
41365         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41366         HAVE_ISNANF, don't define it as a C macro.
41367         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41368         HAVE_ISNAND, don't define it as a C macro.
41369         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41370         HAVE_ISNANL, don't define it as a C macro.
41371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41372         HAVE_ISNAN[FDL].
41373         * modules/isnanf (Files): Remove lib/isnanf.h.
41374         (Depends-on): Add math.
41375         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41376         (Include): Specify <math.h> instead of isnanf.h.
41377         * modules/isnand (Files): Remove lib/isnand.h.
41378         (Depends-on): Add math.
41379         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41380         (Include): Specify <math.h> instead of isnand.h.
41381         * modules/isnanl (Files): Remove lib/isnanl.h.
41382         (Depends-on): Add math.
41383         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41384         (Include): Specify <math.h> instead of isnanl.h.
41385         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41386         HAVE_ISNAN[FDL].
41387         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41388         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41389         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41390         * NEWS: Mention the change.
41391
41392 2008-10-18  Bruno Haible  <bruno@clisp.org>
41393
41394         Add getusershell(), setusershell(), endusershell() declarations to
41395         <unistd.h>.
41396         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41397         declarations.
41398         * lib/getusershell.c: Include unistd.h.
41399         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41400         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41401         HAVE_GETUSERSHELL.
41402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41403         and HAVE_GETUSERSHELL.
41404         * modules/getusershell (Depends-on): Add unistd, extensions.
41405         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41406         (Include): Specify <unistd.h>.
41407         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41408         HAVE_GETUSERSHELL.
41409
41410 2008-10-18  Bruno Haible  <bruno@clisp.org>
41411
41412         Add a getloadavg() declaration to <stdlib.h>.
41413         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41414         getloadavg declaration.
41415         (getloadavg): New declaration.
41416         * lib/getloadavg.c: Include <stdlib.h> first.
41417         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41418         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41419         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41421         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41422         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41423         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41424         (Include): Specify <stdlib.h>.
41425         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41426         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41427
41428 2008-10-18  Bruno Haible  <bruno@clisp.org>
41429
41430         * lib/dirchownmod.c: Don't include lchmod.h.
41431
41432         Move the lchmod() declaration to <sys/stat.h>.
41433         * lib/lchmod.h: Remove file.
41434         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41435         (lchmod): New declaration, moved here from lib/lchown.h.
41436         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41437         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41438         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41439         and HAVE_LCHMOD.
41440         * modules/lchmod (Files): Remove lib/lchmod.h.
41441         (Depends-on): Add sys_stat, extensions.
41442         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41443         (Include): Specify <sys/stat.h> instead of lchmod.h.
41444         * modules/sys_stat (Depends-on): Add link-warning.
41445         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41446         definition of GL_LINK_WARNING.
41447         * NEWS: Mention the change.
41448
41449 2008-10-18  Bruno Haible  <bruno@clisp.org>
41450
41451         * lib/fchdir.c: Don't include dirfd.h.
41452         * lib/fts.c: Likewise.
41453         * lib/getcwd.c: Likewise.
41454         * lib/glob.c: Likewise.
41455
41456         Move the dirfd() declaration to <dirent.h>.
41457         * lib/dirfd.h: Remove file.
41458         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41459         (dirfd): New declaration.
41460         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41461         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41462         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41463         HAVE_DECL_DIRFD.
41464         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41465         HAVE_DECL_DIRFD.
41466         * modules/dirfd (Files): Remove lib/dirfd.h.
41467         (Depends-on): Add dirent, extensions.
41468         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41469         (Include): Specify <dirent.h> instead of dirfd.h.
41470         * modules/dirent (Depends-on): Add link-warning.
41471         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41472         definition of GL_LINK_WARNING.
41473         * NEWS: Mention the change.
41474
41475 2008-10-18  Bruno Haible  <bruno@clisp.org>
41476
41477         Move the euidaccess() declaration to <unistd.h>.
41478         * lib/euidaccess.h: Remove file.
41479         * lib/unistd.in.h (euidaccess): New declaration.
41480         * lib/euidaccess.c: Don't include euidaccess.h.
41481         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41482         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41484         and HAVE_EUIDACCESS.
41485         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41486         (Depends-on): Add unistd.
41487         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41488         (Include): Specify <unistd.h> instead of euidaccess.h.
41489         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41490         HAVE_EUIDACCESS.
41491         * NEWS: Mention the change.
41492
41493 2008-10-18  Bruno Haible  <bruno@clisp.org>
41494
41495         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41496
41497         Move the getdomainname() declaration to <unistd.h>.
41498         * lib/getdomainname.h: Remove file.
41499         * lib/unistd.in.h (getdomainname): New declaration.
41500         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41501         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41502         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41503         HAVE_GETDOMAINNAME.
41504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41505         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41506         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41507         (Depends-on): Add unistd, extensions.
41508         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41509         (Includes): Specify <unistd.h> instead of getdomainname.h.
41510         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41511         HAVE_GETDOMAINNAME.
41512         * NEWS: Mention the change.
41513
41514 2008-10-18  Bruno Haible  <bruno@clisp.org>
41515
41516         * modules/dirent: New file.
41517         * m4/dirent_h.m4: New file.
41518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41519         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41520         * modules/fchdir (Files): Remove lib/dirent.in.h.
41521         (Depends-on): Add dirent.
41522         (Makefile.am): Move rules to modules/dirent.
41523         * doc/posix-headers/dirent.texi: Mention the new module.
41524
41525 2008-10-18  Bruno Haible  <bruno@clisp.org>
41526
41527         Avoid -Wunused-parameter warnings in public gnulib header files.
41528         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41529         macro.
41530         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41531
41532 2008-10-18  Bruno Haible  <bruno@clisp.org>
41533
41534         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41535         * doc/glibc-functions/error.texi: Mention the module 'error'.
41536         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41537         * doc/glibc-functions/getdomainname.texi: Mention the module
41538         'getdomainname'.
41539         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41540         * doc/glibc-functions/getpagesize.texi: Mention the module
41541         'getpagesize'.
41542         * doc/glibc-functions/getusershell.texi: Mention the module
41543         'getusershell'.
41544         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41545         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41546         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41547         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41548         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41549         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41550         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41551         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41552         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41553         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41554         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41555         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41556         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41557         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41558
41559 2008-10-17  Bruno Haible  <bruno@clisp.org>
41560
41561         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41562         HP-UX and IRIX, use -0.0L.
41563         * tests/test-ceill.c (minus_zero): Likewise.
41564         * tests/test-floorl.c (minus_zero): Likewise.
41565         * tests/test-frexpl.c (minus_zero): Likewise.
41566         * tests/test-isnan.c (minus_zerol): Likewise.
41567         * tests/test-isnanl.h (minus_zero): Likewise.
41568         * tests/test-ldexpl.c (minus_zero): Likewise.
41569         * tests/test-roundl.c (minus_zero): Likewise.
41570         * tests/test-signbit.c (minus_zerol): Likewise.
41571         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41572         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41573         * tests/test-truncl.c (minus_zero): Likewise.
41574         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41575         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41576         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41577         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41578
41579 2008-10-17  Bruno Haible  <bruno@clisp.org>
41580
41581         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41582         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41583         that it gets activated only for gcc >= 3.0.
41584         * lib/dirent.in.h: Likewise.
41585         * lib/errno.in.h: Likewise.
41586         * lib/fcntl.in.h: Likewise.
41587         * lib/float.in.h: Likewise.
41588         * lib/iconv.in.h: Likewise.
41589         * lib/inttypes.in.h: Likewise.
41590         * lib/locale.in.h: Likewise.
41591         * lib/math.in.h: Likewise.
41592         * lib/netdb.in.h: Likewise.
41593         * lib/netinet_in.in.h: Likewise.
41594         * lib/search.in.h: Likewise.
41595         * lib/signal.in.h: Likewise.
41596         * lib/spawn.in.h: Likewise.
41597         * lib/stdarg.in.h: Likewise.
41598         * lib/stdint.in.h: Likewise.
41599         * lib/stdio.in.h: Likewise.
41600         * lib/stdlib.in.h: Likewise.
41601         * lib/string.in.h: Likewise.
41602         * lib/strings.in.h: Likewise.
41603         * lib/sys_file.in.h: Likewise.
41604         * lib/sys_ioctl.in.h: Likewise.
41605         * lib/sys_select.in.h: Likewise.
41606         * lib/sys_socket.in.h: Likewise.
41607         * lib/sys_stat.in.h: Likewise.
41608         * lib/sys_time.in.h: Likewise.
41609         * lib/sysexits.in.h: Likewise.
41610         * lib/time.in.h: Likewise.
41611         * lib/unistd.in.h: Likewise.
41612         * lib/wchar.in.h: Likewise.
41613         * lib/wctype.in.h: Likewise.
41614         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41615
41616 2008-10-17  Jim Meyering  <meyering@redhat.com>
41617
41618         ignore-value: don't depend on inline module
41619         * modules/ignore-value (Depends-on): Remove 'inline'.
41620         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41621         Suggestion from Bruno Haible.
41622
41623 2008-10-17  Bruno Haible  <bruno@clisp.org>
41624
41625         New implementation of condition variables for Win32.
41626         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41627         (gl_linked_waitqueue_t): New type.
41628         (gl_cond_t): Use it.
41629         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41630         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41631         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41632         (glthread_cond_init_func, glthread_cond_wait_func,
41633         glthread_cond_timedwait_func, glthread_cond_signal_func,
41634         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41635         Reimplemented on the basis of gl_linked_waitqueue_t.
41636         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41637         gl_waitqueue_t.
41638         (gl_rwlock_t): Update.
41639         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41640
41641 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41642
41643         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41644         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41645
41646 2008-10-17  Jim Meyering  <meyering@redhat.com>
41647
41648         ignore-value: new module
41649         * modules/ignore-value: New file.
41650         * lib/ignore-value.h: New file.
41651         * MODULES.html.sh (Compiler warning management): New section,
41652         just for this module.  More to come.
41653
41654 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41655
41656         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41657         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41658         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41659
41660 2008-10-16  Jim Meyering  <meyering@redhat.com>
41661
41662         openat-die.c: avoid 'no previous prototype' warning
41663         * lib/openat-die.c: Include "openat.h".
41664         Reported by Reuben Thomas <rrt@sc3d.org>.
41665
41666 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41667
41668         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41669         * lib/netdb.in.h: Fix typo.
41670         Reported by Bruno Haible  <bruno@clisp.org>
41671
41672         * lib/netdb.in.h: Include sys/socket.h for platforms without
41673         netdb.h, to get structures like hostent on MinGW.
41674         * modules/netdb (Depends-on): Add sys_socket.
41675
41676 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41677
41678         * modules/netdb, modules/netdb-tests: New file.
41679         * m4/netdb_h.m4: New file.
41680         * lib/netdb.in.h: Add, currently just an empty file pending
41681         definitions.
41682         * tests/test-netdb.c: New file.
41683         * doc/posix-headers/netdb.texi: Mention that we replace it if
41684         needed.
41685         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41686         netdb.
41687
41688 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41689
41690         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41691         with code.
41692
41693 2008-10-13  Bruno Haible  <bruno@clisp.org>
41694
41695         * lib/glthread/cond.c (glthread_cond_wait_func,
41696         glthread_cond_timedwait_func): Add a comment.
41697
41698 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41699
41700         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41701         * tests/test-select.c: Likewise,
41702
41703 2008-10-13  Bruno Haible  <bruno@clisp.org>
41704
41705         * lib/glthread/cond.c (glthread_cond_wait_func,
41706         glthread_cond_timedwait_func): Fix variable name.
41707         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41708
41709 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41710
41711         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41712         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41713         struct sockaddr.sa_len.
41714         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41715
41716 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41717
41718         * build-aux/pmccabe2html: Add css and css_url parameters.
41719
41720 2008-10-12  Bruno Haible  <bruno@clisp.org>
41721
41722         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41723         calling aclx_get.
41724         Reported by Rainer Tammer <tammer@tammer.net>.
41725
41726 2008-10-12  Bruno Haible  <bruno@clisp.org>
41727
41728         Use msvcrt aware primitives for creation/termination of Win32 threads.
41729         * lib/glthread/thread.c: Include <process.h>.
41730         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41731         (wrapper_func): Update signature.
41732         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41733
41734 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41735             Bruno Haible  <bruno@clisp.org>
41736
41737         Provide a Win32 implementation of the 'cond' module.
41738         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41739         * lib/glthread/cond.c (glthread_cond_init_func,
41740         glthread_cond_wait_func, glthread_cond_timedwait_func,
41741         glthread_cond_signal_func, glthread_cond_broadcast_func,
41742         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41743         * modules/cond (Dependencies): Add gettimeofday.
41744
41745 2008-10-11  Bruno Haible  <bruno@clisp.org>
41746
41747         Make sleep work on older versions of mingw.
41748         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41749         only whether it exists.
41750         * doc/posix-functions/sleep.texi: Mention the problem with older
41751         versions of mingw.
41752
41753 2008-10-11  Bruno Haible  <bruno@clisp.org>
41754
41755         New module 'shutdown'.
41756         * modules/shutdown: New file.
41757         * lib/sys_socket.in.h (shutdown): New declaration.
41758         * lib/winsock.c (shutdown): New function.
41759         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41760         GNULIB_SHUTDOWN.
41761         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41762         * doc/posix-functions/shutdown.texi: Document the new module.
41763
41764 2008-10-11  Jim Meyering  <meyering@redhat.com>
41765
41766         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41767
41768 2008-10-11  Bruno Haible  <bruno@clisp.org>
41769
41770         New module 'fclose'.
41771         * modules/fclose: New file.
41772         * lib/stdio.in.h (fclose): New declaration.
41773         * lib/fclose.c: New file.
41774         * m4/fclose.m4: New file.
41775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41776         REPLACE_FCLOSE.
41777         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41778         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41779         REPLACE_FCLOSE.
41780         * modules/close (Depends-on): fclose.
41781         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41782
41783 2008-10-11  Bruno Haible  <bruno@clisp.org>
41784
41785         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41786         set errno and don't call _close.
41787
41788 2008-10-10  Bruno Haible  <bruno@clisp.org>
41789
41790         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41791         ACL, not afterwards. Fixes test failure on Cygwin.
41792
41793 2008-10-09  Ben Pfaff  <blp@gnu.org>
41794
41795         * build-aux/announce-gen: Fix gnulib version related part of usage
41796         message.  Die with a useful error message if no tarballs are
41797         found.
41798
41799 2008-10-10  Jim Meyering  <meyering@redhat.com>
41800
41801         bootstrap: use git's --depth=N option only if it's supported
41802         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41803         recognize the --depth option.  Reported by Pádraig Brady.
41804
41805 2008-10-09  Bruno Haible  <bruno@clisp.org>
41806
41807         New module 'ioctl'.
41808         * modules/ioctl: New file.
41809         * lib/sys_socket.in.h (ioctl): Remove declaration.
41810         * lib/winsock.c: Include <sys/ioctl.h>.
41811         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41812         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41813         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41814         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41815         * doc/posix-functions/ioctl.texi: Mention the new module.
41816
41817 2008-10-09  Bruno Haible  <bruno@clisp.org>
41818
41819         New module 'sys_ioctl'.
41820         * lib/sys_ioctl.in.h: New file.
41821         * m4/sys_ioctl_h.m4: New file.
41822         * modules/sys_ioctl: New file.
41823         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41824
41825 2008-10-09  Bruno Haible  <bruno@clisp.org>
41826
41827         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41828         * lib/winsock.c: Include <stdarg.h>.
41829         (rpl_ioctl): Change to second argument 'int' and then varargs.
41830
41831 2008-10-09  Bruno Haible  <bruno@clisp.org>
41832
41833         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41834         when the sys_socket module is present and the system has <winsock2.h>.
41835
41836 2008-10-09  Bruno Haible  <bruno@clisp.org>
41837
41838         * doc/posix-functions/close.texi: Mention module 'close' instead of
41839         module 'sys_socket'.
41840
41841 2008-10-09  Bruno Haible  <bruno@clisp.org>
41842
41843         * doc/glibc-headers/sys_ioctl.texi: New file.
41844         * doc/gnulib.texi: Include it.
41845
41846 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41847             Bruno Haible  <bruno@clisp.org>
41848
41849         Combine the two replacements of 'close'.
41850         * lib/sys_socket.in.h (close): Define to a reminder to include
41851         <unistd.h>.
41852         (_gl_close_fd_maybe_socket): New declaration.
41853         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41854         * lib/winsock.c (close): Remove undefinition.
41855         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41856         needed for the gnulib module 'close'.
41857         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41858         define to an error symbol or to a warning, if suitable.
41859         * lib/close.c: Include <sys/socket.h>.
41860         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41861         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41862         UNISTD_H_HAVE_WINSOCK2_H.
41863         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41865         UNISTD_H_HAVE_WINSOCK2_H.
41866         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41867         (configure.ac): Set a module indicator.
41868         (Makefile.am): Substitute GNULIB_CLOSE.
41869         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41870         * modules/poll-tests (Depends-on): Add close.
41871         * modules/select-tests (Depends-on): Likewise.
41872
41873 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41874             Bruno Haible  <bruno@clisp.org>
41875
41876         New module 'close'.
41877         * modules/close: New file.
41878         * lib/unistd.in.h (close): Move declaration out of the
41879         FCHDIR_REPLACEMENT scope.
41880         (_gl_unregister_fd): New declaration.
41881         * lib/close.c: New file.
41882         * lib/fchdir.c (rpl_close): Remove function.
41883         * m4/close.m4: New file.
41884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41885         close.
41886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41887         REPLACE_CLOSE.
41888         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41889         REPLACE_CLOSE.
41890         * modules/fchdir (Depends-on): Add close.
41891
41892 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41893             Bruno Haible  <bruno@clisp.org>
41894
41895         * lib/fcntl.in.h (open): Simplify conditionals.
41896         (_gl_register_fd): New declaration.
41897         * lib/fchdir.c (rpl_open): Remove function.
41898         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41899         also.
41900         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41901         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41902         open.
41903
41904 2008-10-09  Jim Meyering  <meyering@redhat.com>
41905
41906         GNUmakefile: use the more name-space-friendly "_version"
41907         * top/GNUmakefile (_dummy): Update.
41908         (_version): Rename from "version".
41909
41910 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41911             Bruno Haible  <bruno@clisp.org>
41912
41913         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41914         rpl_close.
41915         (_gl_register_fd): New function, extracted from rpl_open.
41916         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41917         (rpl_open, rpl_opendir): Use _gl_register_fd.
41918
41919 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41920
41921         Fix organization of 'open' replacement.
41922         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41923         (gl_FUNC_OPEN): Use it.
41924         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41925
41926 2008-10-08  Bruno Haible  <bruno@clisp.org>
41927
41928         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41929
41930 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41931
41932         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41933         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41934         listen).
41935
41936 2008-10-08  Eric Blake  <ebb9@byu.net>
41937
41938         GNUmakefile: add 'make version' target
41939         * top/GNUmakefile (_curr-ver): Split version update rules...
41940         (version): ...into a target.
41941
41942 2008-10-07  Bruno Haible  <bruno@clisp.org>
41943
41944         Use a more portable replacement expression for -0.0L.
41945         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41946         instead of -0.0L. Fix m4 quotation.
41947
41948         * tests/test-signbit.c: Include <float.h>.
41949         (minus_zero): New variable.
41950         (test_signbitl): Use minus_zero instead of -zero.
41951         * modules/signbit-tests (Depends-on): Add float.
41952
41953         * tests/test-ceill.c: Include <float.h>.
41954         (zero): Remove variable.
41955         (minus_zero): New variable.
41956         (main): Use minus_zero instead of -zero.
41957         * modules/ceill-tests (Depends-on): Add float.
41958
41959         * tests/test-floorl.c: Include <float.h>.
41960         (zero): Remove variable.
41961         (minus_zero): New variable.
41962         (main): Use minus_zero instead of -zero.
41963         * modules/floorl-tests (Depends-on): Add float.
41964
41965         * tests/test-roundl.c: Include <float.h>.
41966         (zero): Remove variable.
41967         (minus_zero): New variable.
41968         (main): Use minus_zero instead of -zero.
41969         * modules/roundl-tests (Depends-on): Add float.
41970
41971         * tests/test-truncl.c: Include <float.h>.
41972         (zero): Remove variable.
41973         (minus_zero): New variable.
41974         (main): Use minus_zero instead of -zero.
41975         * modules/truncl-tests (Depends-on): Add float.
41976
41977         * tests/test-frexpl.c (zero): Remove variable.
41978         (minus_zero): New variable.
41979         (main): Use minus_zero instead of -zero.
41980         * modules/frexpl-tests (Depends-on): Add float.
41981
41982         * tests/test-isnan.c (zerol): Remove variable.
41983         (minus_zerol): New variable.
41984         (test_long_double): Use minus_zerol instead of -zerol.
41985         * modules/isnan-tests (Depends-on): Add float.
41986
41987         * tests/test-isnanl.h (zero): Remove variable.
41988         (minus_zero): New variable.
41989         (main): Use minus_zero instead of -zero.
41990         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41991         * modules/isnanl-tests (Depends-on): Add float.
41992
41993         * tests/test-ldexpl.c (zero): Remove variable.
41994         (minus_zero): New variable.
41995         (main): Use minus_zero instead of -zero.
41996         * modules/ldexpl-tests (Depends-on): Add float.
41997
41998         * tests/test-snprintf-posix.h (zerol): Remove variable.
41999         (minus_zerol): New variable.
42000         (test_function): Use minus_zerol instead of -zerol.
42001         * modules/snprintf-posix-tests (Depends-on): Add float.
42002         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42003
42004         * tests/test-sprintf-posix.h (zerol): Remove variable.
42005         (minus_zerol): New variable.
42006         (test_function): Use minus_zerol instead of -zerol.
42007         * modules/sprintf-posix-tests (Depends-on): Add float.
42008         * modules/vsprintf-posix-tests (Depends-on): Add float.
42009
42010         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42011         (minus_zerol): New variable.
42012         (test_function): Use minus_zerol instead of -zerol.
42013         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42014
42015         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42016         (minus_zerol): New variable.
42017         (test_function): Use minus_zerol instead of -zerol.
42018         * modules/vasprintf-posix-tests (Depends-on): Add float.
42019
42020 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42021
42022         * MODULES.html.sh (Support for building documentation): Mention
42023         pmccabe2html.  Sort entries.
42024
42025         Add pmccabe2html module, from gnupdf.
42026         * build-aux/pmccabe.css: New file.
42027         * build-aux/pmccabe2html: New file.
42028         * m4/pmccabe2html.m4: New file.
42029         * modules/pmccabe2html: New file.
42030
42031 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42032
42033         flock: new module
42034         * MODULES.html.sh: Add to list of modules.
42035         * lib/flock.c: flock implementation for Windows and Unix systems
42036         which have fcntl.
42037         * doc/glibc-functions/flock.texi: Update documentation.
42038         * lib/sys_file.in.h: <sys/file.h> header file.
42039         * m4/flock.m4: M4 macros.
42040         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42041         * modules/flock: flock module.
42042         * modules/flock-tests: flock tests module.
42043         * modules/sys_file: sys/file.h module.
42044         * tests/test-flock.c: test suite for flock.
42045
42046 2008-10-06  Jim Meyering  <meyering@redhat.com>
42047
42048         bootstrap: check for LT_INIT more portably still ;-)
42049         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42050         Spotted by Bruno Haible.
42051
42052 2008-10-06  Eric Blake  <ebb9@byu.net>
42053
42054         test-signbit: avoid tripping Irix cc bug on -0.0L
42055         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42056         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42057         entire testsuite consistent and avoids an Irix 6.2 bug.
42058
42059 2008-10-05  Bruno Haible  <bruno@clisp.org>
42060             Jim Meyering  <jim@meyering.net>
42061
42062         Add an option for ignoring EPIPE during close_stdout.
42063         * lib/closeout.h: Include <stdbool.h>.
42064         (close_stdout_set_ignore_EPIPE): New declaration.
42065         * lib/closeout.c: Include <stdbool.h>.
42066         (ignore_EPIPE): New variable.
42067         (close_stdout_set_ignore_EPIPE): New function.
42068         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42069         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42070         failure.
42071         * modules/closeout (Depends-on): Add stdbool.
42072
42073 2008-10-05  Bruno Haible  <bruno@clisp.org>
42074
42075         * modules/accept: New file.
42076         * modules/bind: New file.
42077         * modules/connect: New file.
42078         * modules/getpeername: New file.
42079         * modules/getsockname: New file.
42080         * modules/getsockopt: New file.
42081         * modules/listen: New file.
42082         * modules/recv: New file.
42083         * modules/recvfrom: New file.
42084         * modules/send: New file.
42085         * modules/sendto: New file.
42086         * modules/setsockopt: New file.
42087         * modules/socket: New file.
42088         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42089         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42090         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42091         the particular module is requested. Add a link warning when the
42092         particular module is not requested.
42093         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42094         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42095         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42096         the particular module is requested.
42097         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42098         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42099         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42100         * modules/sys_socket (Depends-on): Add link-warning.
42101         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42102         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42103         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42104         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42105         GL_LINK_WARNING.
42106         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42107         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42108         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42109         * doc/posix-functions/getpeername.texi: Mention the new module
42110         'getpeername'.
42111         * doc/posix-functions/getsockname.texi: Mention the new module
42112         'getsockname'.
42113         * doc/posix-functions/getsockopt.texi: Mention the new module
42114         'getsockopt'.
42115         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42116         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42117         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42118         * doc/posix-functions/send.texi: Mention the new module 'send'.
42119         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42120         * doc/posix-functions/setsockopt.texi: Mention the new module
42121         'setsockopt'.
42122         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42123         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42124         listen, connect, accept.
42125         * modules/select-tests (Depends-on): Likewise.
42126
42127 2008-10-05  Bruno Haible  <bruno@clisp.org>
42128
42129         * lib/winsock.c (strerror): Remove unused #undef.
42130         (rpl_close): Remove unused local variable.
42131
42132         * modules/sys_socket (Depends-on); Add errno.
42133
42134 2008-10-05  Bruno Haible  <bruno@clisp.org>
42135
42136         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42137         (select): Add a link warning when the 'select' module is not used.
42138         * modules/sys_select (Depends-on): Add link-warning.
42139         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42140         Suggested by Paolo Bonzini.
42141
42142 2008-10-05  Jim Meyering  <meyering@redhat.com>
42143
42144         bootstrap: check for LT_INIT more portably
42145         * build-aux/bootstrap: Avoid using grep -E, since it's not
42146         portable enough.  Suggestion from Bruno Haible.
42147
42148 2008-10-05  Bruno Haible  <bruno@clisp.org>
42149
42150         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42151         as being fixed by gnulib.
42152
42153 2008-10-05  Bruno Haible  <bruno@clisp.org>
42154
42155         * modules/select-tests: New file, mostly copied from
42156         modules/sys_select-tests.
42157         * tests/test-select.c: New file, mostly copied from
42158         tests/test-sys_select.c.
42159         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42160         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42161         (Makefile.am): Remove test_sys_select_LDADD.
42162
42163         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42164         to an undefined symbol, for an error message.
42165         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42166         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42167         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42168         winsock-select.c here.
42169         * modules/sys_select (Files): Remove lib/winsock-select.c.
42170         (Depends-on): Remove alloca.
42171         (Makefile.am): Substitute GNULIB_SELECT.
42172         * modules/select: New file.
42173         * doc/posix-functions/select.texi: Update.
42174
42175 2008-10-05  Bruno Haible  <bruno@clisp.org>
42176
42177         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42178         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42179         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42180         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42181         getdtablesize.
42182         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42183         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42184
42185 2008-10-05  Bruno Haible  <bruno@clisp.org>
42186
42187         * modules/getdtablesize-tests: New file.
42188         * tests/test-getdtablesize.c: New file.
42189
42190         New module 'getdtablesize'.
42191         * lib/unistd.in.h (getdtablesize): New declaration.
42192         * lib/getdtablesize.c: New file.
42193         * m4/getdtablesize.m4: New file.
42194         * modules/getdtablesize: New file.
42195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42196         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42197         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42198         HAVE_GETDTABLESIZE.
42199         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42200
42201 2008-10-05  Bruno Haible  <bruno@clisp.org>
42202
42203         * modules/sched (Makefile.am): Fix typo.
42204         Reported by Simon Josefsson.
42205
42206 2008-10-05  Jim Meyering  <meyering@redhat.com>
42207
42208         bootstrap: check for LT_INIT, too
42209         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42210         are deprecated.  Suggestion from Ralf Wildenhues.
42211
42212 2008-10-05  Bruno Haible  <bruno@clisp.org>
42213
42214         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42215         overriding them by ours.
42216         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42217
42218 2008-10-05  Jim Meyering  <meyering@redhat.com>
42219
42220         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42221         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42222         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42223
42224 2008-10-04  Bruno Haible  <bruno@clisp.org>
42225
42226         * modules/dup2 (License): Change to LGPLv2+.
42227         * modules/sleep (License): Likewise.
42228         * modules/perror (License): Likewise.
42229         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42230         Blake.
42231         * modules/signal (License): Likewise.
42232         * modules/sigprocmask (License): Likewise.
42233         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42234         Meyering.
42235
42236 2008-10-04  Bruno Haible  <bruno@clisp.org>
42237
42238         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42239         Reported by Rainer Tammer <tammer@tammer.net>.
42240
42241 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42242             Bruno Haible  <bruno@clisp.org>
42243
42244         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42245         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42246         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42247
42248 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42249
42250         filevercmp: new module
42251         * lib/filevercmp.h: New function filevercmp comparing version strings.
42252         * lib/filevercmp.c: Implementation of filevercmp function.
42253         * modules/filevercmp: Module metadata.
42254         * tests/test-filevercmp.c: Unit test for new module.
42255         * modules/filevercmp-tests: Unit test metadata.
42256         * MODULES.html.sh: Add filevercmp module.
42257
42258 2008-10-03  Bruno Haible  <bruno@clisp.org>
42259
42260         * lib/c-ctype.h: Add comment.
42261         Reported by Jim Meyering.
42262
42263 2008-10-02  Bruno Haible  <bruno@clisp.org>
42264
42265         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42266
42267 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42268
42269         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42270         name of bootstrap.conf accordingly.
42271
42272 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42273
42274         * build-aux/bootstrap: Install git-merge-changelog configuration
42275         items into .gitconfig if needed.
42276
42277 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42278
42279         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42280         git repository, and initialize/update it accordingly.
42281
42282 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42283
42284         * modules/fsync-tests: New file.
42285         * tests/test-fsync.c: New file.
42286
42287         New module 'fsync'.
42288         * lib/fsync.c: New file.
42289         * m4/fsync.m4: New file.
42290         * modules/fsync: New file.
42291         * lib/unistd.in.h (fsync): New declaration.
42292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42293         GNULIB_FSYNC and HAVE_FSYNC.
42294         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42295         * MODULES.html.sh (posix_functions): Add fsync.
42296         * doc/posix-functions/fsync.texi: Mention the new module.
42297
42298 2008-10-02  Jim Meyering  <meyering@redhat.com>
42299
42300         fts.c: sync with similar code from coreutils' remove.c
42301         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42302         Guard also with "#if defined __linux__", since for now at least,
42303         this code is Linux-kernel-specific.
42304
42305 2008-10-02  Jim Meyering  <meyering@redhat.com>
42306
42307         fts: bug fixes
42308         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42309         Include <sys/vfs.h>, not <sys/statfs.h>.
42310
42311         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42312         Include <sys/vfs.h>, not <sys/statfs.h>.
42313
42314 2008-10-01  Bruno Haible  <bruno@clisp.org>
42315
42316         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42317         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42318         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42319         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42320         * doc/posix-functions/posix_spawnp.texi: Likewise.
42321         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42322         whether posix_spawn actually works.
42323         * m4/pipe.m4 (gl_PIPE): Likewise.
42324         * modules/execute (Files): Add m4/posix_spawn.m4.
42325         * modules/pipe (Files): Add m4/posix_spawn.m4.
42326         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42327
42328 2008-10-01  Jim Meyering  <meyering@redhat.com>
42329
42330         remove trailing spaces
42331         * NEWS: Likewise.
42332         * lib/poll.c (poll): Likewise.
42333         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42334         * lib/winsock.c (rpl_close): Likewise.
42335         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42336         * modules/yield: Likewise.
42337         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42338         * tests/test-sys_select.c (connect_to_socket): Likewise.
42339
42340         fts.c: adjust a new interface to be more generally useful
42341         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42342         (fts_build): Adjust caller.
42343
42344 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42345
42346         * modules/cond-tests: New file.
42347         * tests/test-cond.c: New file.
42348
42349 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42350             Bruno Haible  <bruno@clisp.org>
42351
42352         * modules/cond (Dependencies): Add errno, time.
42353         * lib/glthread/cond.h: Include <time.h>.
42354         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42355         across platforms.
42356
42357 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42358             Bruno Haible  <bruno@clisp.org>
42359
42360         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42361
42362 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42363             Bruno Haible  <bruno@clisp.org>
42364
42365         * modules/tls-tests (Depends-on): Add thread, yield.
42366         (configure.ac): Remove all checks.
42367         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42368         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42369         gl_thread_self): Remove definitions. Include glthread/thread.h and
42370         glthread/yield.h instead.
42371         (test_tls): Pass an additional NULL argument to gl_thread_join.
42372
42373 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42374             Bruno Haible  <bruno@clisp.org>
42375
42376         * modules/lock-tests (Depends-on): Add thread, yield.
42377         (configure.ac): Remove all checks.
42378         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42379         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42380         gl_thread_self): Remove definitions. Include glthread/thread.h and
42381         glthread/yield.h instead.
42382         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42383         additional NULL argument to gl_thread_join.
42384
42385 2008-09-30  Bruno Haible  <bruno@clisp.org>
42386
42387         Fix the Win32 implementation of the 'thread' module.
42388         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42389         pointer type.
42390         (gl_thread_self): Invoke gl_thread_self_func.
42391         (gl_thread_self_func): New declaration.
42392         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42393         (do_init_self_key, init_self_key): New functions.
42394         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42395         Remove some fields.
42396         (running_threads, running_lock): Remove variables.
42397         (get_current_thread_handle): New function.
42398         (gl_thread_self_func, wrapper_func, glthread_create_func,
42399         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42400         simplified.
42401
42402 2008-09-30  Bruno Haible  <bruno@clisp.org>
42403
42404         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42405         files.
42406
42407 2008-09-30  Jim Meyering  <meyering@redhat.com>
42408
42409         fts.m4: correct the test for statfs.f_type
42410         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42411         when checking for statfs.f_type.
42412
42413 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42414
42415         tests: avoid some compiler warnings
42416         * tests/test-memchr.c (main): Pass NULL indirectly.
42417         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42418
42419 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42420
42421         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42422         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42423         exactly specified dayshifts.
42424         (dayshift): New rule.
42425         (rel): Add dayshift.
42426         (relative_time_table) [tomorrow, yesterday, today, now]:
42427         Use tDAY_SHIFT in place of tDAY_UNIT.
42428         * tests/test-getdate.c: Add tests for now-disallowed countable
42429         dayshifts, e.g., "4 yesterday ago".
42430
42431 2008-09-29  Bruno Haible  <bruno@clisp.org>
42432
42433         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42434         * tests/test-posix_spawn1.in.sh: Renamed from
42435         tests/test-posix_spawn.in.sh.
42436         * tests/test-posix_spawn2.c: New file.
42437         * tests/test-posix_spawn2.in.sh: New file.
42438         * modules/posix_spawnp-tests (Files): Update.
42439         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42440
42441 2008-09-29  Bruno Haible  <bruno@clisp.org>
42442
42443         Propagate effects of putenv/setenv/unsetenv to child processes.
42444         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42445         * lib/pipe.c (create_pipe): Likewise.
42446
42447 2008-09-29  Bruno Haible  <bruno@clisp.org>
42448
42449         Enable use of shell scripts as executables in mingw.
42450         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42451         run the program as a shell script.
42452         * lib/pipe.c (create_pipe): Likewise.
42453         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42454         resulting array.
42455
42456 2008-09-29  Eric Blake  <ebb9@byu.net>
42457
42458         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42459
42460 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42461
42462         * doc/posix-functions/accept.texi: Update mingw problems.
42463         * doc/posix-functions/bind.texi: Update mingw problems.
42464         * doc/posix-functions/close.texi: Update mingw problems.
42465         * doc/posix-functions/connect.texi: Update mingw problems.
42466         * doc/posix-functions/getpeername.texi: Update mingw problems.
42467         * doc/posix-functions/getsockname.texi: Update mingw problems.
42468         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42469         * doc/posix-functions/ioctl.texi: Update mingw problems.
42470         * doc/posix-functions/listen.texi: Update mingw problems.
42471         * doc/posix-functions/recv.texi: Update mingw problems.
42472         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42473         * doc/posix-functions/select.texi: Update mingw problems.
42474         * doc/posix-functions/send.texi: Update mingw problems.
42475         * doc/posix-functions/sendto.texi: Update mingw problems.
42476         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42477         * doc/posix-functions/socket.texi: Update mingw problems.
42478
42479 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42480             Bruno Haible  <bruno@clisp.org>
42481
42482         * lib/sys_select.in.h: Include sys/time.h.
42483         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42484         * modules/sys_select: Depend on sys_time.
42485         * tests/test-sys_select.c: Test that sys/select.h defines struct
42486         timeval fully.
42487
42488 2008-09-29  Bruno Haible  <bruno@clisp.org>
42489
42490         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42491         * lib/sys_select.in.h: Likewise.
42492
42493 2008-09-29  Bruno Haible  <bruno@clisp.org>
42494
42495         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42496
42497 2008-09-29  Bruno Haible  <bruno@clisp.org>
42498
42499         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42500         Set LIBSOCKET instead of augmenting LIBS.
42501         * modules/sockets (Link): New section.
42502         * modules/sockets-tests (test_sockets_LDADD): New variable.
42503         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42504         * modules/poll-tests (test_poll_LDADD): New variable.
42505         * NEWS: Document the change.
42506
42507 2008-09-29  Bruno Haible  <bruno@clisp.org>
42508
42509         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42510         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42511         ARPA_INET_H directly.
42512         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42513
42514 2008-09-28  Bruno Haible  <bruno@clisp.org>
42515
42516         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42517         from gl_HEADER_SYS_SOCKET.
42518         (gl_HEADER_SYS_SOCKET): Invoke it.
42519         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42520
42521 2008-09-28  Bruno Haible  <bruno@clisp.org>
42522
42523         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42524         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42525         Needed on OSF/1 4.0.
42526
42527 2008-09-28  Bruno Haible  <bruno@clisp.org>
42528
42529         Override open more carefully.
42530         * lib/open.c (orig_open): New function.
42531         (rpl_open): Use orig_open instead of open.
42532         * lib/fcntl.in.h: Add special invocation convention.
42533         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42534         (gl_FUNC_OPEN): Invoke it.
42535
42536         Override freopen more carefully.
42537         * lib/freopen.c (orig_freopen): New function.
42538         (rpl_freopen): Use orig_freopen instead of freopen.
42539         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42540         (gl_FUNC_FREOPEN): Invoke it.
42541
42542         Override fopen more carefully.
42543         * lib/fopen.c (orig_fopen): New function.
42544         (rpl_fopen): Use orig_fopen instead of fopen.
42545         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42546         (gl_FUNC_FOPEN): Invoke it.
42547         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42548
42549 2008-09-28  Bruno Haible  <bruno@clisp.org>
42550
42551         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42552         SIGPIPE.
42553
42554 2008-09-28  Bruno Haible  <bruno@clisp.org>
42555
42556         * tests/test-sigaction.c (handler, main): Disable the check whether
42557         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42558         glibc systems with LinuxThreads.
42559
42560 2008-09-28  Bruno Haible  <bruno@clisp.org>
42561
42562         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42563
42564         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42565         with AIX xlc.
42566         * lib/fcntl.in.h (open): Likewise.
42567         Reported by Rainer Tammer <tammer@tammer.net>.
42568
42569 2008-09-28  Bruno Haible  <bruno@clisp.org>
42570
42571         * modules/posix_spawnp-tests: New file.
42572         * tests/test-posix_spawn.c: New file.
42573         * tests/test-posix_spawn.in.sh: New file.
42574
42575         New module 'posix_spawnp'.
42576         * modules/posix_spawnp: New file.
42577         * lib/spawnp.c: New file, from GNU libc with modifications.
42578         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42579
42580         New module 'posix_spawn'.
42581         * modules/posix_spawn: New file.
42582         * lib/spawn.c: New file, from GNU libc with modifications.
42583         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42584
42585         New module 'posix_spawnattr_destroy'.
42586         * modules/posix_spawnattr_destroy: New file.
42587         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42588         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42589         module.
42590
42591         New module 'posix_spawnattr_setsigmask'.
42592         * modules/posix_spawnattr_setsigmask: New file.
42593         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42594         modifications.
42595         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42596         new module.
42597
42598         New module 'posix_spawnattr_getsigmask'.
42599         * modules/posix_spawnattr_getsigmask: New file.
42600         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42601         modifications.
42602         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42603         new module.
42604
42605         New module 'posix_spawnattr_setsigdefault'.
42606         * modules/posix_spawnattr_setsigdefault: New file.
42607         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42608         modifications.
42609         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42610         new module.
42611
42612         New module 'posix_spawnattr_getsigdefault'.
42613         * modules/posix_spawnattr_getsigdefault: New file.
42614         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42615         modifications.
42616         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42617         new module.
42618
42619         New module 'posix_spawnattr_setschedpolicy'.
42620         * modules/posix_spawnattr_setschedpolicy: New file.
42621         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42622         modifications.
42623         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42624         new module.
42625
42626         New module 'posix_spawnattr_getschedpolicy'.
42627         * modules/posix_spawnattr_getschedpolicy: New file.
42628         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42629         modifications.
42630         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42631         new module.
42632
42633         New module 'posix_spawnattr_setschedparam'.
42634         * modules/posix_spawnattr_setschedparam: New file.
42635         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42636         modifications.
42637         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42638         new module.
42639
42640         New module 'posix_spawnattr_getschedparam'.
42641         * modules/posix_spawnattr_getschedparam: New file.
42642         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42643         modifications.
42644         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42645         new module.
42646
42647         New module 'posix_spawnattr_setpgroup'.
42648         * modules/posix_spawnattr_setpgroup: New file.
42649         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42650         modifications.
42651         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42652         module.
42653
42654         New module 'posix_spawnattr_getpgroup'.
42655         * modules/posix_spawnattr_getpgroup: New file.
42656         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42657         modifications.
42658         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42659         module.
42660
42661         New module 'posix_spawnattr_setflags'.
42662         * modules/posix_spawnattr_setflags: New file.
42663         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42664         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42665         module.
42666
42667         New module 'posix_spawnattr_getflags'.
42668         * modules/posix_spawnattr_getflags: New file.
42669         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42670         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42671         module.
42672
42673         New module 'posix_spawnattr_init'.
42674         * modules/posix_spawnattr_init: New file.
42675         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42676         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42677         module.
42678
42679         New module 'posix_spawn_file_actions_destroy'.
42680         * modules/posix_spawn_file_actions_destroy: New file.
42681         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42682         modifications.
42683         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42684         the new module.
42685
42686         New module 'posix_spawn_file_actions_addopen'.
42687         * modules/posix_spawn_file_actions_addopen: New file.
42688         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42689         modifications.
42690         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42691         the new module.
42692
42693         New module 'posix_spawn_file_actions_adddup2'.
42694         * modules/posix_spawn_file_actions_adddup2: New file.
42695         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42696         modifications.
42697         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42698         the new module.
42699
42700         New module 'posix_spawn_file_actions_addclose'.
42701         * modules/posix_spawn_file_actions_addclose: New file.
42702         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42703         modifications.
42704         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42705         the new module.
42706
42707         New module 'posix_spawn_file_actions_init'.
42708         * modules/posix_spawn_file_actions_init: New file.
42709         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42710         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42711         new module.
42712
42713         New module 'posix_spawn-internal'.
42714         * modules/posix_spawn-internal: New file.
42715         * lib/spawn_int.h: New file, from GNU libc with modifications.
42716         * lib/spawni.c: New file, from GNU libc with modifications.
42717         * m4/posix_spawn.m4: New file.
42718
42719         New module 'spawn'.
42720         * modules/spawn: New file.
42721         * lib/spawn.in.h: New file, from GNU libc with modifications.
42722         * m4/spawn_h.m4: New file.
42723         * doc/posix-headers/spawn.texi: Mention the new module.
42724
42725 2008-09-28  Bruno Haible  <bruno@clisp.org>
42726
42727         * modules/sched-tests: New file.
42728         * tests/test-sched.c: New file.
42729
42730         New module 'sched'.
42731         * modules/sched: New file.
42732         * lib/sched.in.h: New file.
42733         * m4/sched_h.m4: New file.
42734         * doc/posix-headers/sched.texi: Mention the new module.
42735
42736 2008-09-27  Eric Blake  <ebb9@byu.net>
42737
42738         Fix previous patch, and tweak references to $0.
42739         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42740         (func_version, func_gnulib_dir): Don't call this program
42741         gnulib-tool.
42742         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42743         with using $0 in function.
42744         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42745         (func_fatal_error): Reuse the name the user invoked us with.
42746
42747 2008-09-27  Bruno Haible  <bruno@clisp.org>
42748
42749         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42750         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42751         (gl_ICONV_H): Not here.
42752         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42753         instead of assigning ICONV_H directly.
42754
42755         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42757         WCHAR_H directly.
42758
42759 2008-09-27  Bruno Haible  <bruno@clisp.org>
42760
42761         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42762         * modules/arpa_inet (Depends-on): Add link-warning.
42763         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42764         * modules/unistd (Makefile.am): Likewise.
42765
42766 2008-09-26  Bruno Haible  <bruno@clisp.org>
42767
42768         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42769         variables.
42770         (func_version): Essentially copied from gnulib-tool.
42771         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42772         func_readlink): Copied from gnulib-tool.
42773
42774 2008-09-26  Bruno Haible  <bruno@clisp.org>
42775
42776         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42777         invoking git-version-gen.
42778
42779 2008-09-26  Bruno Haible  <bruno@clisp.org>
42780
42781         * posix-modules: Update to directory names changed on 2008-01-19.
42782         Remove commas in output before splitting into words. No more need to
42783         avoid 'ftruncate' since 2007-02-19.
42784
42785 2008-09-26  Bruno Haible  <bruno@clisp.org>
42786
42787         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42788
42789 2008-09-26  Bruno Haible  <bruno@clisp.org>
42790
42791         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42792         * modules/fwriteerror (Depends-on): Add errno.
42793
42794 2008-09-26  Bruno Haible  <bruno@clisp.org>
42795
42796         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42797         * tests/test-vc-list-files-cvs.sh: Likewise.
42798
42799 2008-09-26  Bruno Haible  <bruno@clisp.org>
42800
42801         * doc/posix-headers/sys_resource.texi: Reorder items.
42802
42803 2008-09-26  Jim Meyering  <meyering@redhat.com>
42804
42805         fts: tweak inode comparison function
42806         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42807         inode numbers, as documented.
42808
42809         fts: sort dirent entries on inode number before traversing
42810         This avoids a quadratic, seek-related performance penalty when
42811         operating on a directory containing many entries (measurable at 10k;
42812         3.5 hours at 2 million entries with a cold cache) on certain types
42813         of file systems, including ext3 and ext4, but not tmpfs.
42814         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42815         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42816         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42817         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42818         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42819         (fts_build): Set the stat.st_ino member from D_INO.
42820         If it is likely to be useful, sort dirent entries on inode number.
42821
42822         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42823         and the struct statfs.f_type member.
42824         * modules/fts (Depends-on): Add d-ino.
42825
42826 2008-09-26  Bruno Haible  <bruno@clisp.org>
42827
42828         * modules/sigpipe-die (Depends-on): Add sigpipe.
42829
42830         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42831         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42832         and GNULIB_STDIO_H_SIGPIPE are set.
42833         * lib/stdio-write.c: New file.
42834         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42835         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42836         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42837         REPLACE_STDIO_WRITE_FUNCS.
42838         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42839         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42840         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42841         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42842         * modules/stdio (Files): Add lib/stdio-write.c.
42843         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42844         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42845         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42846         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42847         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42848         REPLACE_FPRINTF_POSIX.
42849         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42850         REPLACE_PRINTF_POSIX.
42851         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42852         REPLACE_VFPRINTF_POSIX.
42853         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42854         REPLACE_VPRINTF_POSIX.
42855         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42856         SIGPIPE issue.
42857         * doc/posix-functions/fputc.texi: Likewise.
42858         * doc/posix-functions/fputs.texi: Likewise.
42859         * doc/posix-functions/fwrite.texi: Likewise.
42860         * doc/posix-functions/printf.texi: Likewise.
42861         * doc/posix-functions/putc.texi: Likewise.
42862         * doc/posix-functions/putchar.texi: Likewise.
42863         * doc/posix-functions/puts.texi: Likewise.
42864         * doc/posix-functions/vfprintf.texi: Likewise.
42865         * doc/posix-functions/vprintf.texi: Likewise.
42866
42867         * modules/safe-write (Depends-on): Add write.
42868
42869         * modules/sigpipe-tests: New file.
42870         * tests/test-sigpipe.c: New file.
42871         * tests/test-sigpipe.sh: New file.
42872
42873         * modules/write: New file.
42874         * lib/unistd.in.h: Include <sys/types.h>.
42875         (write): New declaration.
42876         * lib/write.c: New file.
42877         * m4/write.m4: New file.
42878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42879         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42880         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42881         GNULIB_WRITE, REPLACE_WRITE.
42882         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42883         and the SIGPIPE issue.
42884
42885         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42886         (raise): New declaration.
42887         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42888         (ext_signal): New function.
42889         (rpl_raise): New function.
42890         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42891         GNULIB_SIGNAL_H_SIGPIPE.
42892         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42893         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42894
42895         * modules/sigpipe: New file.
42896         * m4/sigpipe.m4: New file.
42897
42898 2008-09-25  Derek Price  <derek@ximbiot.com>
42899             Bruno Haible  <bruno@clisp.org>
42900
42901         * gnulib-tool (func_import): Report all license incompatibilities, not
42902         just the first one.
42903
42904 2008-09-25  Bruno Haible  <bruno@clisp.org>
42905
42906         * gnulib-tool (func_import): When computing the edits, consider not
42907         only the Makefile.ams that exist but also those that will be generated.
42908
42909 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42910
42911         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42912         fixes gnulib-tool --test warning about duplicate dependency.
42913
42914 2008-09-25  Bruno Haible  <bruno@clisp.org>
42915
42916         * gnulib-tool: Don't ask the user to perform edits in the generated
42917         Makefile.ams.
42918         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42919         apply to the Makefile.am being generated.
42920         (func_emit_tests_Makefile_am): Execute edits that apply to the
42921         Makefile.am being generated.
42922         (func_import): Setup list of Makefile.am edits before emitting the
42923         Makefile.ams, not at the end.
42924         (func_create_testdir): Update.
42925         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42926
42927 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42928
42929         * gnulib-tool (func_import): Store the --tests-base option in the
42930         comment in gnulib-cache.m4.
42931
42932 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42933
42934         * NEWS: Document increased portability that sys_select now provides.
42935
42936         * lib/sys_select.in.h: Install select wrapper.
42937         * lib/sys_socket.in.h: Use more descriptive name when there is no
42938         select wrapper.
42939         * lib/winsock-select.c: New.
42940         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42941         Require gl_HEADER_SYS_SOCKET.
42942         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42943         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42944         * tests/test-sys_select.c: Add functional tests.
42945
42946 2008-09-24  Eric Blake  <ebb9@byu.net>
42947
42948         open, fopen: close fd leak in last patch
42949         * lib/open.c (rpl_open): Close fd before returning error.
42950         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42951         * doc/posix-functions/open.texi (open): Document that Irix also
42952         has the bug.
42953         * doc/posix-functions/fopen.texi (fopen): Likewise.
42954         Reported by Paolo Bonzini.
42955
42956 2008-09-24  Bruno Haible  <bruno@clisp.org>
42957
42958         Ensure that a filename ending in a slash cannot be used to access a
42959         non-directory.
42960         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42961         to check whether it's really a directory.
42962         * lib/fopen.c: Include fcntl.h, unistd.h.
42963         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42964         and fdopen().
42965         * modules/fopen (Depends-on): Add unistd.
42966         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42967         * tests/test-fopen.c (main): Likewise.
42968         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42969         * doc/posix-functions/fopen.texi: Likewise.
42970         Reported by Eric Blake.
42971
42972 2008-09-23  Eric Blake  <ebb9@byu.net>
42973
42974         c-stack: avoid compiler optimizations when provoking overflow
42975         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42976         recursion harder to optimize, to ensure a stack overflow occurs.
42977         * tests/test-c-stack.c (recurse): Likewise.
42978         Borrowed from libsigsegv.
42979
42980         c-stack: work around Irix sigaltstack bug
42981         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42982         whether sigaltstack uses wrong end of stack_t (copied in part from
42983         libsigsegv).
42984         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42985         Irix bug, without requiring an over-allocation.
42986         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42987         bug.
42988
42989         fopen: document mingw bug on directories
42990         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42991         not allowing a stream visiting a directory, even though reading
42992         from such a stream is not portable.
42993
42994 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42995
42996         * lib/poll.c: Rewrite.
42997         * modules/poll: Depend on alloca.
42998
42999 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43000
43001         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43002         instead define prototypes for a full set of wrappers.  Ensure
43003         that Cygwin does not use the compatibility code, which is only
43004         for MinGW.
43005         * lib/winsock.c: New.
43006         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43007         * modules/sys_socket: Add lib/winsock.c.
43008
43009         * modules/poll-tests: Add errno and perror.
43010         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43011
43012 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43013
43014         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43015
43016 2008-09-23  Bruno Haible  <bruno@clisp.org>
43017
43018         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43019         * doc/glibc-functions/*: Likewise.
43020
43021 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43022
43023         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43024         success.
43025
43026 2008-09-22  Eric Blake  <ebb9@byu.net>
43027             Bruno Haible  <bruno@clisp.org>
43028
43029         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43030         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43031         supply %A but mishandle pseudo-NaN.
43032         Reported by Simon Josefsson.
43033
43034 2008-09-21  Bruno Haible  <bruno@clisp.org>
43035
43036         * tests/test-lock.c (main): Tweak skip message.
43037         * tests/test-tls.c (main): Likewise.
43038
43039 2008-09-21  Bruno Haible  <bruno@clisp.org>
43040
43041         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43042         whether 'struct sigaction' has sa_sigaction here...
43043         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43044         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43045
43046 2008-09-21  Bruno Haible  <bruno@clisp.org>
43047
43048         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43049         section.
43050         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43051         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43052         the new section.
43053         (Support for obsolete systems lacking POSIX:2001): New section.
43054         (String handling <string.h>): Move strdup to the new section.
43055         Suggested by Simon Josefsson and Paolo Bonzini.
43056
43057 2008-09-21  Bruno Haible  <bruno@clisp.org>
43058
43059         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43060         exponents in %e and %g results on 'long double'. Needed for mingw's
43061         improved *printf functions.
43062         * tests/test-vasprintf-posix.c (test_function): Likewise.
43063         * tests/test-snprintf-posix.h (test_function): Likewise.
43064         * tests/test-sprintf-posix.h (test_function): Likewise.
43065         Reported by Eric Blake.
43066
43067 2008-09-21  Bruno Haible  <bruno@clisp.org>
43068
43069         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43070         * tests/test-sprintf-posix.h (test_function): Likewise.
43071
43072 2008-09-21  Bruno Haible  <bruno@clisp.org>
43073
43074         * modules/getpass (Depends-on): Add strdup-posix.
43075
43076         New module 'strdup-posix'.
43077         * modules/strdup-posix: New file.
43078         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43079         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43081         REPLACE_STRDUP.
43082         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43083         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43084         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43085         strdup-posix.
43086
43087         * modules/strdup (Depends-on): Remove malloc-posix.
43088
43089 2008-09-20  Bruno Haible  <bruno@clisp.org>
43090
43091         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43092         Wildenhues.
43093
43094 2008-09-20  Bruno Haible  <bruno@clisp.org>
43095
43096         Ensure that wint_t gets defined on IRIX 5.3.
43097         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43098         * lib/wctype.in.h (wint_t): Likewise.
43099         (__wctype_wint_t): Remove type.
43100         (isw*): Use wint_t instead of __wctype_wint_t.
43101         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43102         * modules/wchar (Files): Add m4/wint_t.m4.
43103         (Makefile.am): Substitute HAVE_WINT_T.
43104         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43105         * tests/test-wctype.c: Check that wint_t is defined.
43106         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43107         * doc/posix-headers/wctype.texi: Likewise.
43108         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43109
43110 2008-09-18  Bruno Haible  <bruno@clisp.org>
43111
43112         * gnulib-tool (func_exit): Update comment.
43113
43114 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43115
43116         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43117         assumes strdup exists and does not depend on strdup to return
43118         ENOMEM on out of memory conditions.
43119
43120 2008-09-18  Bruno Haible  <bruno@clisp.org>
43121
43122         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43123         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43124         digits for the exponent.
43125
43126 2008-09-18  Jim Meyering  <meyering@redhat.com>
43127             Bruno Haible  <bruno@clisp.org>
43128
43129         * lib/vasnprintf.c (decimal_point_char): Define also if
43130         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43131
43132 2008-09-16  Bruno Haible  <bruno@clisp.org>
43133         and Eric Blake  <ebb9@byu.net>
43134
43135         vasnprintf: support Irix 5.3
43136         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43137         that mishandle long double infinity.
43138         Reported by Tom G. Christensen.
43139
43140 2008-09-16  Bruno Haible  <bruno@clisp.org>
43141
43142         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43143         Solaris 9.
43144         * doc/glibc-functions/alphasort.texi: Likewise.
43145         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43146
43147 2008-09-16  Jim Meyering  <meyering@redhat.com>
43148
43149         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43150         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43151         a umask modification leak out of a subshell.  Otherwise, the
43152         opensolaris /bin/sh would be accepted and thus cause unwarranted
43153         failures in the coreutils test suite.
43154
43155 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43156
43157         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43158         to succeed.
43159
43160 2008-09-16  Jim Meyering  <meyering@redhat.com>
43161
43162         avoid spurious test failure when library is built without ACL support
43163         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43164         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43165         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43166         * tests/test-copy-acl.sh: Likewise.
43167
43168 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43169
43170         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43171         based on character occurrence counts.
43172
43173 2008-09-15  Eric Blake  <ebb9@byu.net>
43174
43175         tests: avoid some compiler warnings
43176         * tests/test-memchr.c (main): Pass NULL indirectly.
43177         * tests/test-closein.c (main): Avoid unused variable.
43178
43179 2008-09-15  Bruno Haible  <bruno@clisp.org>
43180
43181         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43182         are missing on OpenBSD 4.0 individually.
43183         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43184
43185 2008-09-15  Bruno Haible  <bruno@clisp.org>
43186
43187         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43188         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43189         * doc/posix-functions/perror.texi: Likewise.
43190         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43191         is missing.
43192         Reported by Eric Blake.
43193
43194         * lib/errno.in.h: Use replacement values >= 2000.
43195         Reported by Eric Blake.
43196
43197 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43198
43199         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43200         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43201         limit.
43202         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43203         compareseq was aborted.
43204
43205 2008-09-14  Bruno Haible  <bruno@clisp.org>
43206
43207         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43208         yvec_edit_count.
43209         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43210         (fstrcmp_bounded): Simplify result computation accordingly.
43211
43212 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43213
43214         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43215         (fstrcmp): Define in terms of fstrcmp_bounded.
43216         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43217         lower_bound argument.
43218         Return quickly if the result is certainly < lower_bound.
43219         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43220
43221 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43222
43223         * lib/diffseq.h (EARLY_ABORT): New macro.
43224         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43225         evaluates to true.
43226
43227 2008-09-14  Bruno Haible  <bruno@clisp.org>
43228
43229         * modules/perror-tests: New file.
43230         * tests/test-perror.sh: New file.
43231         * tests/test-perror.c: New file.
43232
43233         New module 'perror'.
43234         * lib/stdio.in.h (perror): New declaration.
43235         * lib/perror.c: New file.
43236         * m4/perror.m4: New file.
43237         * modules/perror: New file.
43238         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43239         * doc/posix-functions/perror.texi: Mention the perror module.
43240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43241         REPLACE_PERROR.
43242         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43243         REPLACE_PERROR.
43244
43245 2008-09-14  Bruno Haible  <bruno@clisp.org>
43246
43247         * modules/stdio (Makefile.am): Reorder to match the order in
43248         lib/stdio.in.h.
43249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43250
43251 2008-09-13  Bruno Haible  <bruno@clisp.org>
43252
43253         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43254
43255 2008-09-13  Bruno Haible  <bruno@clisp.org>
43256
43257         Extend strerror to cover the added errno values.
43258         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43259         (rpl_strerror): Provide error messages for the added errno values and
43260         for the WSA* values.
43261         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43262         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43263         strerror.
43264         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43265         * modules/strerror (Depends-on): Add errno.
43266         * doc/posix-functions/strerror.texi: Document the change.
43267         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43268         and EOVERFLOW.
43269
43270 2008-09-13  Bruno Haible  <bruno@clisp.org>
43271
43272         * modules/EOVERFLOW: Remove file.
43273         * m4/eoverflow.m4: Remove file.
43274         * modules/EOVERFLOW-tests: Remove file.
43275         * tests/test-EOVERFLOW.c: Remove file.
43276         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43277         * modules/ftell (Depends-on): Likewise.
43278         * modules/getdelim (Depends-on): Likewise.
43279         * modules/getugroups (Depends-on): Likewise.
43280         * modules/poll (Depends-on): Likewise.
43281         * modules/snprintf (Depends-on): Likewise.
43282         * modules/sprintf-posix (Depends-on): Likewise.
43283         * modules/vasnprintf (Depends-on): Likewise.
43284         * modules/vasprintf (Depends-on): Likewise.
43285         * modules/vfprintf-posix (Depends-on): Likewise.
43286         * modules/vsnprintf (Depends-on): Likewise.
43287         * modules/vsprintf-posix (Depends-on): Likewise.
43288         * modules/xvasprintf (Depends-on): Likewise.
43289         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43290         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43291         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43292         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43293         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43294         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43295         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43296         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43297         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43298         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43299         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43300         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43301         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43302         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43303         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43304         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43305         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43306         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43307         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43308         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43309         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43310         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43311         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43312         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43313         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43314         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43315         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43316         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43317         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43318         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43319         * MODULES.html.sh: Remove EOVERFLOW.
43320         * NEWS: Mention the change.
43321
43322 2008-09-13  Bruno Haible  <bruno@clisp.org>
43323
43324         * modules/errno-tests: New file.
43325         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43326
43327         * lib/errno.in.h: New file.
43328         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43329         * modules/errno: New file.
43330         * doc/posix-headers/errno.texi: Update documentation.
43331         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43332
43333 2008-09-13  Bruno Haible  <bruno@clisp.org>
43334
43335         * tests/test-poll.c: Use #if for native Windows, rather than testing
43336         __MSVCRT__.
43337
43338 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43339             Bruno Haible  <bruno@clisp.org>
43340
43341         * lib/glob.c: Don't include <pwd.h> on native Windows.
43342         (WINDOWS32): New macro.
43343         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43344
43345 2008-09-13  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43348         (ETIMEDOUT): Remove macro.
43349         (glthread_cond_timedwait_multithreaded): New declaration.
43350         (glthread_cond_timedwait): Use it.
43351         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43352         (glthread_cond_timedwait_multithreaded): New function.
43353
43354 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43355
43356         * modules/poll-tests: Do not check for io.h.
43357         * tests/test-poll.c: Check for __MSVCRT__ instead.
43358
43359 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43360
43361         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43362         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43363         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43364
43365 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43366
43367         * modules/poll-tests: New.
43368         * tests/test-poll.c: New.
43369
43370 2008-09-12  Eric Blake  <ebb9@byu.net>
43371
43372         frexp: test for NetBSD failure on -0.0
43373         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43374         not all, bugs from NetBSD 3.0 have been fixed.
43375         * doc/posix-functions/frexp.texi (frexp): Document bug.
43376         Reported by Thomas Klausner.
43377
43378         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43379         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43380         literal -0.0.
43381         Reported by Jonathan C. Patschke <jp@centtech.com>.
43382
43383 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43384
43385         * lib/glthread/cond.h: Use dummy implementation also if
43386         USE_WIN32_THREADS.
43387
43388 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43389
43390         * modules/fnmatch-posix (License): Change to LGPLv2+.
43391         * modules/fnmatch-gnu (License): Likewise.
43392
43393 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43394
43395         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43396
43397 2008-09-11  Jim Meyering  <meyering@redhat.com>
43398
43399         * users.txt: Add gtk-vnc.
43400
43401 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43402
43403         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43404         rotate amounts.
43405
43406         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43407         required for 16-bit and 8-bit rotates.
43408         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43409         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43410         UINT8_MAX instead of hard-coded constants.
43411         Suggested by Paul Eggert.
43412
43413 2008-09-07  Bruno Haible  <bruno@clisp.org>
43414
43415         * tests/test-striconveh.c (main): Check behaviour when converting from
43416         UTF-7.
43417
43418         Make striconveh work better with stateful encodings.
43419         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43420         that iconv does not increment the inptr when returning -1/EINVAL.
43421
43422 2008-09-07  Bruno Haible  <bruno@clisp.org>
43423
43424         * build-aux/config.rpath: Update according to libtool-2.2.6.
43425         * build-aux/config.libpath: Likewise.
43426
43427 2008-09-06  Bruno Haible  <bruno@clisp.org>
43428
43429         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43430         * lib/freadptr.c (freadptr): Likewise.
43431         * lib/freadseek.c (freadptrinc): Likewise.
43432         Reported by Simon Josefsson.
43433
43434 2008-09-06  Bruno Haible  <bruno@clisp.org>
43435
43436         * modules/freadptr (License): Change to LGPLv2+.
43437         * modules/freadseek (License): Likewise.
43438         Suggested by Eric Blake.
43439
43440         * modules/memchr2 (License): Change to LGPLv2+.
43441         Approved by Eric Blake.
43442
43443 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43444             Bruno Haible  <bruno@clisp.org>
43445
43446         Make gnulib-tool work with native 'sed' on AIX.
43447         * gnulib-tool (sed_noop): New variable.
43448         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43449         func_add_or_update, func_create_testdir): Use it to initialize sed
43450         script variables.
43451         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43452
43453 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43454             Bruno Haible  <bruno@clisp.org>
43455
43456         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43457         also works after #include directives.
43458
43459 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43460
43461         getdate.y: reject an out-of-range timezone value
43462         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43463         the range [-24...+24].  When specified with only one or two digits,
43464         * tests/test-getdate.c: Tests for the fix.
43465         * doc/getdate.texi: Document this change.
43466
43467 2008-09-03  Bruno Haible  <bruno@clisp.org>
43468
43469         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43470
43471 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43472
43473         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43474         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43475         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43476         Blake <ebb9@byu.net>.
43477
43478         * tests/test-bitrotate.c: Add more test vectors.
43479
43480 2008-09-02  Eric Blake  <ebb9@byu.net>
43481
43482         vasnprintf-posix: handle large precision via %.*d
43483         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43484         when handling it ourselves.
43485         * tests/test-vasnprintf-posix.c (test_function): Add test.
43486         * tests/test-snprintf-posix.h (test_function): Likewise.
43487         * tests/test-sprintf-posix.h (test_function): Likewise.
43488         * tests/test-vasprintf-posix.c (test_function): Likewise.
43489         Reported by Alain Guibert.
43490
43491 2008-09-01  Eric Blake  <ebb9@byu.net>
43492
43493         c-stack: make configure-time check more robust
43494         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43495         successful sigaction call.
43496         Reported by Tom G. Christensen.
43497
43498 2008-09-01  Bruno Haible  <bruno@clisp.org>
43499
43500         New module 'findprog-lgpl'.
43501         * modules/findprog-lgpl: New file.
43502         * lib/findprog-lgpl.c: New file.
43503         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43504         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43505         to decide whether to use strdup or xstrdup, concatenated_filename or
43506         xconcatenated_filename.
43507
43508 2008-09-01  Bruno Haible  <bruno@clisp.org>
43509
43510         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43511         'xconcat-filename' (GPL).
43512         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43513         (License): Change to LGPLv2+.
43514         * modules/xconcat-filename: New file.
43515         * lib/concat-filename.h (concatenated_filename): Change specification.
43516         (xconcatenated_filename): New declaration.
43517         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43518         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43519         memory situations.
43520         * lib/xconcat-filename.c: New file.
43521         * NEWS: Mention the change.
43522         * lib/findprog.c: Include concat-filename.h, not filename.h.
43523         (find_in_path): Use xconcatenated_filename instead of
43524         concatenated_filename.
43525         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43526         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43527         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43528         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43529         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43530         instead of concatenated_filename.
43531         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43532         (execute_java_class): Use xconcatenated_filename instead of
43533         concatenated_filename.
43534         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43535         * modules/javacomp (Depends-on): Likewise.
43536         * modules/javaexec (Depends-on): Likewise.
43537
43538 2008-09-01  Bruno Haible  <bruno@clisp.org>
43539
43540         Split module 'filename' into 'filename' and 'concat-filename'.
43541         * modules/filename: Keep only lib/filename.h.
43542         (License): Change to LGPLv2+.
43543         * modules/concat-filename: New file, extracted from modules/filename.
43544         * lib/filename.h (concatenated_filename): Remove declaration.
43545         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43546         * lib/concat-filename.c: Include concat-filename.h.
43547         * NEWS: Mention the change.
43548
43549 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43550
43551         * lib/bitrotate.h (rotl8, rotr8): Add.
43552
43553         * modules/bitrotate (configure.ac): Need
43554         AC_REQUIRE([AC_C_INLINE]).
43555         (Description): Mention stdint.h.  Reported by Bruno Haible
43556         <bruno@clisp.org>.
43557
43558         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43559         Paolo Bonzini <bonzini@gnu.org>.
43560
43561 2008-08-31  Bruno Haible  <bruno@clisp.org>
43562
43563         Assume Solaris specific bi-arch conventions on Solaris systems.
43564         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43565         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43566         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43567         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43568         like acl_libdirstem.
43569         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43570         acl_libdirstem.
43571         * NEWS: Mention the change.
43572         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43573
43574 2008-08-31  Jim Meyering  <meyering@redhat.com>
43575
43576         * lib/strftime.h: Add comments describing the two added arguments.
43577
43578         remove duplicate #include directives
43579         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43580         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43581
43582 2008-08-31  Bruno Haible  <bruno@clisp.org>
43583
43584         New module 'sigpipe-die'.
43585         * modules/sigpipe-die: New file.
43586         * lib/sigpipe-die.h: New file.
43587         * lib/sigpipe-die.c: New file.
43588         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43589
43590 2008-08-31  Bruno Haible  <bruno@clisp.org>
43591
43592         Don't override previously installed signal handlers.
43593         * lib/fatal-signal.c (saved_sigactions): New variable.
43594         (uninstall_handlers): Reset the signal to the saved handler, not
43595         to SIG_DFL (except when ignored).
43596         (install_handlers): Save the previous handlers.
43597
43598 2008-08-30  Bruno Haible  <bruno@clisp.org>
43599
43600         * gnulib-tool (func_reset_sigpipe): New function.
43601         (func_get_automake_snippet, func_modules_transitive_closure,
43602         func_import): Invoke it before a join command that reads from stdin,
43603         to avoid "echo: write error: Broken pipe" error messages on stderr.
43604         Reported by Sam Steingold <sds@gnu.org>.
43605
43606 2008-08-30  Bruno Haible  <bruno@clisp.org>
43607
43608         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43609         Code copied from m4/open.m4.
43610         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43611         access and the filename ends in a slash. Code copied from lib/open.c.
43612         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43613         * tests/test-fopen.c (main): Check against bug with trailing slash.
43614
43615 2008-08-29  Bruno Haible  <bruno@clisp.org>
43616
43617         Avoid some "gcc -pedantic" warnings.
43618         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43619         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43620         * lib/dirent.in.h: Likewise.
43621         * lib/fcntl.in.h: Likewise.
43622         * lib/float.in.h: Likewise.
43623         * lib/iconv.in.h: Likewise.
43624         * lib/inttypes.in.h: Likewise.
43625         * lib/locale.in.h: Likewise.
43626         * lib/math.in.h: Likewise.
43627         * lib/netinet_in.in.h: Likewise.
43628         * lib/search.in.h: Likewise.
43629         * lib/signal.in.h: Likewise.
43630         * lib/stdarg.in.h: Likewise.
43631         * lib/stdint.in.h: Likewise.
43632         * lib/stdio.in.h: Likewise.
43633         * lib/stdlib.in.h: Likewise.
43634         * lib/string.in.h: Likewise.
43635         * lib/strings.in.h: Likewise.
43636         * lib/sys_select.in.h: Likewise.
43637         * lib/sys_socket.in.h: Likewise.
43638         * lib/sys_stat.in.h: Likewise.
43639         * lib/sys_time.in.h: Likewise.
43640         * lib/sysexits.in.h: Likewise.
43641         * lib/time.in.h: Likewise.
43642         * lib/unistd.in.h: Likewise.
43643         * lib/wchar.in.h: Likewise.
43644         * lib/wctype.in.h: Likewise.
43645         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43646         * modules/fchdir (Makefile.am): Likewise.
43647         * modules/fcntl (Makefile.am): Likewise.
43648         * modules/float (Makefile.am): Likewise.
43649         * modules/iconv_open (Makefile.am): Likewise.
43650         * modules/inttypes (Makefile.am): Likewise.
43651         * modules/locale (Makefile.am): Likewise.
43652         * modules/math (Makefile.am): Likewise.
43653         * modules/netinet_in (Makefile.am): Likewise.
43654         * modules/search (Makefile.am): Likewise.
43655         * modules/signal (Makefile.am): Likewise.
43656         * modules/stdarg (Makefile.am): Likewise.
43657         * modules/stdint (Makefile.am): Likewise.
43658         * modules/stdio (Makefile.am): Likewise.
43659         * modules/stdlib (Makefile.am): Likewise.
43660         * modules/string (Makefile.am): Likewise.
43661         * modules/strings (Makefile.am): Likewise.
43662         * modules/sys_select (Makefile.am): Likewise.
43663         * modules/sys_socket (Makefile.am): Likewise.
43664         * modules/sys_stat (Makefile.am): Likewise.
43665         * modules/sys_time (Makefile.am): Likewise.
43666         * modules/sysexits (Makefile.am): Likewise.
43667         * modules/time (Makefile.am): Likewise.
43668         * modules/unistd (Makefile.am): Likewise.
43669         * modules/wchar (Makefile.am): Likewise.
43670         * modules/wctype (Makefile.am): Likewise.
43671         Reported by Reuben Thomas <rrt@sc3d.org>.
43672
43673 2008-08-29  Bruno Haible  <bruno@clisp.org>
43674
43675         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43676         any more.
43677
43678 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43679
43680         * MODULES.html.sh (Misc): Add bitrotate.
43681
43682         * modules/bitrotate: New file.
43683
43684         * lib/bitrotate.h: New file.
43685
43686         * modules/bitrotate-tests: New file.
43687
43688         * tests/test-bitrotate.c: New file.
43689
43690         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43691         on the bitrotate module.
43692
43693         * lib/arctwo.c: Use new bitrotate module.
43694
43695 2008-08-29  Jim Meyering  <meyering@redhat.com>
43696
43697         bootstrap: merge changes from coreutils
43698         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43699         of copied files.  Remove a kludge, now that this is fixed.
43700         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43701         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43702         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43703
43704 2008-08-29  Bruno Haible  <bruno@clisp.org>
43705
43706         * MODULES.html.sh: Remove --cvs-urls option.
43707
43708 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43709
43710         maint.mk: adjust to file name change
43711         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43712
43713 2008-08-28  Jim Meyering  <meyering@redhat.com>
43714
43715         * modules/getndelim2 (License): Relicense to LGPLv2+.
43716         Approved by Richard Stallman for the version of 1995, and by
43717         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43718
43719 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43720
43721         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43722         dummy if one is not available.  Do not touch them if
43723         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43724         (getc_maybe_unlocked): New.
43725         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43726
43727 2008-08-26  Eric Blake  <ebb9@byu.net>
43728
43729         doc/INSTALL: resync from autoconf
43730         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43731         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43732         moving...
43733         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43734         * INSTALL: Regenerate.
43735         * INSTALL.ISO: New file.
43736         * INSTALL.UTF-8: Likewise.
43737
43738 2008-08-26  Jim Meyering  <meyering@redhat.com>
43739
43740         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43741         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43742         these definitions conditional, so that they may be overridden, too.
43743
43744 2008-08-26  Bruno Haible  <bruno@clisp.org>
43745
43746         Generate INSTALL file variants with prettier quotes.
43747         * doc/Makefile (INSTALL_PRELUDE): New macro.
43748         (INSTALL): Use it.
43749         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43750
43751 2008-08-26  Bruno Haible  <bruno@clisp.org>
43752
43753         Run makeinfo in an English locale.
43754         * doc/Makefile (MAKEINFO): New variable.
43755
43756 2008-08-26  Bruno Haible  <bruno@clisp.org>
43757
43758         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43759         Suggested by Eric Blake.
43760
43761 2008-08-25  Bruno Haible  <bruno@clisp.org>
43762
43763         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43764
43765 2008-08-25  Eric Blake  <ebb9@byu.net>
43766
43767         c-stack: test that stack overflow can be caught
43768         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43769         that platform allows handling stack overflow; at least OS/2 EMX
43770         has sigaltstack, but crashes before transferring control to
43771         handler on stack overflow.
43772         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43773         check for HAVE_STACK_OVERFLOW_HANDLING.
43774         Reported by Elbert Pol.
43775
43776 2008-08-25  Bruno Haible  <bruno@clisp.org>
43777
43778         * doc/posix-functions/strftime.texi: Fix description of strftime
43779         module.
43780
43781 2008-08-24  Bruno Haible  <bruno@clisp.org>
43782
43783         * tests/uniwidth/test-uc_width2.c: New file.
43784         * tests/uniwidth/test-uc_width2.sh: New file.
43785         * modules/uniwidth/width-tests (Files): Add the new files.
43786         (TESTS): Add uniwidth/test-uc_width2.sh.
43787         (TESTS_ENVIRONMENT): New variable.
43788         (check_PROGRAMS): Add test-uc_width2.
43789         (test_uc_width2_SOURCES): New variable.
43790
43791         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43792         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43793         not 0x00AB.
43794         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43795
43796 2008-08-22  Eric Blake  <ebb9@byu.net>
43797
43798         test-lock, test-tls: mention why a test is skipped
43799         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43800         skipped.
43801         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43802
43803         count-one-bits: relax license
43804         * modules/count-one-bits (License): Relicense to LGPLv2+.
43805         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43806
43807 2008-08-22  Andreas Schwab  <schwab@suse.de>
43808
43809         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43810         Remove spurious space in assignment.
43811
43812 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43813
43814         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43815         Paul Eggert <eggert@CS.UCLA.EDU>.
43816
43817 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43818
43819         * modules/gettext: Add m4/threadlib.m4.
43820
43821 2008-08-19  Eric Blake  <ebb9@byu.net>
43822
43823         test-c-stack: fix compilation failure on FreeBSD 5.0
43824         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43825         headers before <sys/resource.h>.
43826         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43827         the bug.
43828         Reported by Nelson H. F. Beebe.
43829
43830         strverscmp: migrate from "strverscmp.h" to <string.h>
43831         * modules/string (Makefile.am): Add new hooks.
43832         * modules/strverscmp (Files): Remove strverscmp.h.
43833         (Depends-on): Add string.
43834         (configure.ac): Add indicator.
43835         (Include): Mention new header.
43836         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43837         defaults.
43838         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43839         results.
43840         * lib/strverscmp.h: Delete.
43841         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43842         * tests/test-strverscmp.c (includes): Adjust client.
43843         * lib/check-version.c (includes): Likewise.
43844         * NEWS: Document the change.
43845
43846         strverscmp: add unit test
43847         * modules/strverscmp-tests: New file.
43848         * tests/test-strverscmp.c: Likewise.
43849
43850 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43851
43852         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43853         regarding Windows crypto stuff, from Mono.
43854
43855 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43856
43857         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43858         if present, for intel RND.  Return error on failures.
43859
43860 2008-08-18  Ben Pfaff  <blp@gnu.org>
43861
43862         gitlog-to-changelog: give better diagnostic for failed pipe-open
43863         * build-aux/gitlog-to-changelog: Improve error message: suggest
43864         that the version of Git may be too old.
43865
43866 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43867
43868         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43869         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43870
43871 2008-08-18  Bruno Haible  <bruno@clisp.org>
43872
43873         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43874         pthread_in_use().
43875
43876 2008-08-18  Bruno Haible  <bruno@clisp.org>
43877
43878         * lib/glthread/threadlib.c: Include <pthread.h>.
43879
43880 2008-08-18  Bruno Haible  <bruno@clisp.org>
43881
43882         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43883         glthread_recursive_lock_* macros.
43884         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43885         Fix syntax error.
43886
43887 2008-08-18  Bruno Haible  <bruno@clisp.org>
43888
43889         * lib/glthread/thread.c: Avoid forcing a context switch right after
43890         thread creation.
43891
43892 2008-08-17  Bruno Haible  <bruno@clisp.org>
43893
43894         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43895         * lib/glthread/thread.h: Provide Win32 specific implementation.
43896         * modules/thread (Files): Add lib/glthread/thread.c.
43897         (Depends-on): Add lock.
43898         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43899
43900 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43901
43902         New module 'yield'.
43903         * modules/yield: New file.
43904         * lib/glthread/yield.h: New file.
43905         * m4/yield.m4: New file.
43906         * MODULES.html.sh (Multithreading): Add yield.
43907
43908 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43909
43910         New module 'thread'.
43911         * modules/thread: New file.
43912         * lib/glthread/thread.h: New file.
43913         * m4/thread.m4: New file.
43914         * MODULES.html.sh (Multithreading): Add thread.
43915
43916 2008-08-17  Bruno Haible  <bruno@clisp.org>
43917
43918         * lib/glthread/lock.h: Include <stdlib.h> always.
43919         * lib/glthread/tls.h: Likewise.
43920         * lib/glthread/cond.h: Likewise.
43921
43922 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43923
43924         New module 'cond'.
43925         * modules/cond: New file.
43926         * lib/glthread/cond.h: New file.
43927         * lib/glthread/cond.c: New file.
43928         * m4/cond.m4: New file.
43929         * MODULES.html.sh (Multithreading): Add cond.
43930
43931 2008-08-16  Eric Blake  <ebb9@byu.net>
43932
43933         c-stack: fix regression on Irix 5.3 from 2008-06-21
43934         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43935         sa_sigaction...
43936         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43937         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43938         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43939         * modules/signal (Makefile.am): Use the value.
43940         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43941         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43942         * doc/posix-headers/signal.texi (signal.h): Document this
43943         portability issue.
43944         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43945         Reported by Tom G. Christensen.
43946
43947 2008-08-17  Bruno Haible  <bruno@clisp.org>
43948
43949         New module 'threadlib'.
43950         * modules/threadlib: New file.
43951         * lib/glthread/threadlib.c: New file, extracted from
43952         lib/glthread/lock.c.
43953         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43954         functions.
43955         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43956         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43957         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43958         macros.
43959         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43960         (gl_DISABLE_THREADS): Remove macro.
43961         * modules/lock (Files): Remove build-aux/config.rpath.
43962         (Depends-on): Remove havelib. Add threadlib.
43963         (configure.ac-early): Remove section.
43964         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43965         * modules/tls (Depends-on): Remove lock. Add threadlib.
43966         (Link): New section, copied from threadlib.
43967         * MODULES.html.sh (Multithreading): Add threadlib.
43968
43969 2008-08-14  Bruno Haible  <bruno@clisp.org>
43970
43971         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43972         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43973         glthread_rwlock_unlock, glthread_rwlock_destroy,
43974         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43975         glthread_recursive_lock_destroy): Define as macros always.
43976         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43977         glthread_lock_lock.
43978         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43979         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43980         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43981         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43982         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43983         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43984         (glthread_recursive_lock_lock_func): Renamed from
43985         glthread_recursive_lock_lock.
43986         (glthread_recursive_lock_unlock_func): Renamed from
43987         glthread_recursive_lock_unlock.
43988         (glthread_recursive_lock_destroy_func): Renamed from
43989         glthread_recursive_lock_destroy.
43990
43991 2008-08-14  Bruno Haible  <bruno@clisp.org>
43992
43993         * lib/glthread/lock.h: Renamed from lib/lock.h.
43994         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43995         * lib/glthread/tls.h: Renamed from lib/tls.h.
43996         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43997         * lib/fstrcmp.c: Update includes.
43998         * lib/strsignal.c: Update includes.
43999         * modules/lock (Files, Makefile.am): Update.
44000         (Include): Change to "glthread/lock.h".
44001         * modules/tls (Files, Makefile.am): Update.
44002         (Include): Change to "glthread/tls.h".
44003         * tests/test-lock.c: Update includes.
44004         * tests/test-tls.c: Update includes.
44005         * NEWS: Mention the renamed header files.
44006
44007 2008-08-11  Jim Meyering  <meyering@redhat.com>
44008
44009         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44010
44011 2008-08-11  Eric Blake  <ebb9@byu.net>
44012
44013         test-c-stack: avoid C99-ism
44014         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44015         before statement.
44016         Reported by Alain Guibert.
44017
44018 2008-08-10  Jim Meyering  <meyering@redhat.com>
44019
44020         ensure that return value of uinttostr et al are not ignored
44021         * lib/inttostr.h (__GNUC_PREREQ): Define.
44022         (__attribute_warn_unused_result__): Define.
44023         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44024
44025 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44026
44027         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44028         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44029
44030 2008-08-07  Jim Meyering  <meyering@redhat.com>
44031
44032         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44033
44034         * modules/mkstemp (License): Relicense under LGPLv2+.
44035         * modules/tempname (License): Likewise.
44036
44037 2008-08-06  Bruno Haible  <bruno@clisp.org>
44038
44039         * lib/poll.c (poll): Further micro-optimization.
44040
44041 2008-08-06  Jim Meyering  <meyering@redhat.com>
44042
44043         inet_pton.c: use locale-independent tolower
44044         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44045         (inet_pton6): Use c_tolower rather than tolower.
44046         * modules/inet_pton (Depends-on): Add c-ctype.
44047
44048 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44049
44050         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44051         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44052
44053 2008-08-06  Jim Meyering  <meyering@redhat.com>
44054
44055         * modules/inet_pton (License): Relicense under LGPLv2+.
44056
44057 2008-08-03  Bruno Haible  <bruno@clisp.org>
44058
44059         Additional non-aborting API for lock and tls.
44060         * lib/lock.h: Include <errno.h>.
44061         (glthread_lock_init): New macro/function.
44062         (gl_lock_init): Define as wrapper around glthread_lock_init.
44063         (glthread_lock_lock): New macro/function.
44064         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44065         (glthread_lock_unlock): New macro/function.
44066         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44067         (glthread_lock_destroy): New macro/function.
44068         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44069         (glthread_rwlock_init): New macro/function.
44070         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44071         (glthread_rwlock_rdlock): New macro/function.
44072         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44073         (glthread_rwlock_wrlock): New macro/function.
44074         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44075         (glthread_rwlock_unlock): New macro/function.
44076         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44077         (glthread_rwlock_destroy): New macro/function.
44078         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44079         (glthread_recursive_lock_init): New macro/function.
44080         (gl_recursive_lock_init): Define as wrapper around
44081         glthread_recursive_lock_init.
44082         (glthread_recursive_lock_lock): New macro/function.
44083         (gl_recursive_lock_lock): Define as wrapper around
44084         glthread_recursive_lock_lock.
44085         (glthread_recursive_lock_unlock): New macro/function.
44086         (gl_recursive_lock_unlock): Define as wrapper around
44087         glthread_recursive_lock_unlock.
44088         (glthread_recursive_lock_destroy): New macro/function.
44089         (gl_recursive_lock_destroy): Define as wrapper around
44090         glthread_recursive_lock_destroy.
44091         (glthread_once): New macro/function.
44092         (gl_once): Define as wrapper around glthread_once.
44093         Update function declarations.
44094         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44095         glthread_rwlock_init. Return error code.
44096         (glthread_rwlock_rdlock_multithreaded): Renamed from
44097         glthread_rwlock_rdlock. Return error code.
44098         (glthread_rwlock_wrlock_multithreaded): Renamed from
44099         glthread_rwlock_wrlock. Return error code.
44100         (glthread_rwlock_unlock_multithreaded): Renamed from
44101         glthread_rwlock_unlock. Return error code.
44102         (glthread_rwlock_destroy_multithreaded): Renamed from
44103         glthread_rwlock_destroy. Return error code.
44104         (glthread_recursive_lock_init_multithreaded): Renamed from
44105         glthread_recursive_lock_init. Return error code.
44106         (glthread_recursive_lock_lock_multithreaded): Renamed from
44107         glthread_recursive_lock_lock. Return error code.
44108         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44109         glthread_recursive_lock_unlock. Return error code.
44110         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44111         glthread_recursive_lock_destroy. Return error code.
44112         (glthread_once_call): Make static.
44113         (glthread_once_multithreaded): Renamed from glthread_once.
44114         * lib/tls.h: Include <errno.h>.
44115         (glthread_tls_key_init): New macro/function.
44116         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44117         (glthread_tls_set): New macro/function.
44118         (gl_tls_set): Define as wrapper around glthread_tls_set.
44119         (glthread_tls_key_destroy): New macro/function.
44120         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44121         Update function declarations.
44122         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44123         glthread_tls_get.
44124         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44125
44126 2008-08-04  Eric Blake  <ebb9@byu.net>
44127
44128         gnumakefile: use space, not TAB, outside of targets
44129         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44130
44131 2008-08-02  Jim Meyering  <meyering@redhat.com>
44132
44133         getdate.y: avoid locale-dependent date parsing failure
44134         In Turkish locales, getdate would fail to recognize keywords
44135         containing a lowercase "i".  The solution is not to rely on
44136         locale-sensitive case-conversion.
44137         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44138         (lookup_word): Use c_toupper in place of toupper.
44139         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44140         Reported by Vefa Bicakci <bicave@superonline.com> in
44141         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44142         * modules/getdate (Depends-on): Add c-ctype.
44143
44144 2008-08-02  Bruno Haible  <bruno@clisp.org>
44145
44146         * gnulib-tool (func_import): When updating or creating a .gitignore
44147         file, prepend each added line with a slash, and ignore leading slashes
44148         from the existing lines.
44149         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44150
44151 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44152
44153         Portability fix for GNU make 3.79.1.
44154         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44155         versions do not understand.
44156
44157 2008-08-01  Bruno Haible  <bruno@clisp.org>
44158
44159         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44160         * tests/test-isnanf.h (zero): New variable.
44161         (main): Avoid literal -0.0f.
44162         * tests/test-isnand.h (zero): New variable.
44163         (main): Avoid literal -0.0.
44164         * tests/test-isnanl.h (zero): New variable.
44165         (main): Avoid literal -0.0L.
44166         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44167         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44168         -0.0, -0.0L.
44169         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44170         (test_signbitd): Avoid literal -0.0.
44171         (test_signbitl): Avoid literal -0.0L.
44172         * tests/test-ceilf1.c (zero): New variable.
44173         (main): Avoid literal -0.0f.
44174         * tests/test-ceill.c (zero): New variable.
44175         (main): Avoid literal -0.0L.
44176         * tests/test-floorf1.c (zero): New variable.
44177         (main): Avoid literal -0.0f.
44178         * tests/test-floorl.c (zero): New variable.
44179         (main): Avoid literal -0.0L.
44180         * tests/test-roundf1.c (zero): New variable.
44181         (main): Avoid literal -0.0f.
44182         * tests/test-round1.c (zero): New variable.
44183         (main): Avoid literal -0.0.
44184         * tests/test-roundl.c (zero): New variable.
44185         (main): Avoid literal -0.0L.
44186         * tests/test-truncf1.c (zero): New variable.
44187         (main): Avoid literal -0.0f.
44188         * tests/test-trunc1.c (zero): New variable.
44189         (main): Avoid literal -0.0.
44190         * tests/test-truncl.c (zero): New variable.
44191         (main): Avoid literal -0.0L.
44192         * tests/test-frexp.c (zero): New variable.
44193         (main): Avoid literal -0.0.
44194         * tests/test-frexpl.c (zero): New variable.
44195         (main): Avoid literal -0.0L.
44196         * tests/test-ldexpl.c (zero): New variable.
44197         (main): Avoid literal -0.0L.
44198         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44199         (zerod, zerol): New variables.
44200         (test_function): Avoid literals -0.0, -0.0L.
44201         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44202         (zerod, zerol): New variables.
44203         (test_function): Avoid literals -0.0, -0.0L.
44204         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44205         (zerod, zerol): New variables.
44206         (test_function): Avoid literals -0.0, -0.0L.
44207         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44208         (zerod, zerol): New variables.
44209         (test_function): Avoid literals -0.0, -0.0L.
44210         * tests/test-strtod.c (zero): New variable.
44211         (main): Avoid literal -0.0.
44212         Reported by Jonathan C. Patschke <jp@centtech.com>.
44213
44214 2008-07-31  Jim Meyering  <meyering@redhat.com>
44215
44216         sha256.h: correct definition of SHA224_DIGEST_SIZE
44217         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44218         Reported by Paulie Pena IV <paulie4@gmail.com>.
44219         Define as 224 / 8, rather than as a literal.
44220         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44221         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44222         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44223
44224 2008-07-31  Bruno Haible  <bruno@clisp.org>
44225
44226         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44227         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44228         Reported by Jonathan Patschke <jp@centtech.com>.
44229
44230 2008-07-31  Bruno Haible  <bruno@clisp.org>
44231
44232         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44233         Reported by Paolo Bonzini <bonzini@gnu.org>.
44234
44235 2008-07-30  Eric Blake  <ebb9@byu.net>
44236
44237         test-strtod: allow compilation without -lm
44238         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44239         Reported by Dennis Clarke <blastwave@gmail.com>.
44240
44241 2008-07-28  Jim Meyering  <meyering@redhat.com>
44242
44243         bootstrap: work also when there are no .po files in po/
44244         * build-aux/bootstrap (update_po_files): Complete the change
44245         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44246
44247 2008-07-27  Jim Meyering  <meyering@redhat.com>
44248
44249         * users.txt: Add zile.
44250
44251 2008-07-26  Ben Pfaff  <blp@gnu.org>
44252
44253         Add missing dependencies on new m4/exponent[fdl].m4 files.
44254         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44255         * modules/isnand-nolibm: Add m4/exponentd.m4.
44256         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44257         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44258         m4/isnan[fdl].m4, because the macros actually used moved.
44259         Reported by Jim Meyering.
44260
44261 2008-07-14  Ben Pfaff  <blp@gnu.org>
44262
44263         Add isinf module.
44264         * lib/isinf.c: New file.
44265         * lib/math.in.h: Define isinf macro if we have decided to replace
44266         it.
44267         * m4/isinf.m4: New file.
44268         * m4/math_h.m4: Initialize and substitute variables for isinf
44269         module.
44270         * modules/isinf: New file.
44271         * modules/isinf-tests: New file.
44272         * modules/math: Add substitutions for new module.
44273         * tests/test-isinf.c: New file.
44274         * doc/posix-functions/isinf.texi: Mention new module.
44275         * MODULES.html.sh: Mention new module.
44276
44277 2008-07-14  Ben Pfaff  <blp@gnu.org>
44278
44279         Factor out some macros for use by additional modules.
44280         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44281         exponentf.m4.
44282         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44283         exponentd.m4.
44284         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44285         file exponentl.m4.
44286         * m4/exponentf.m4: New file.
44287         * m4/exponentd.m4: New file.
44288         * m4/exponentl.m4: New file.
44289         * modules/isnanf: Use new file m4/exponentf.m4.
44290         * modules/isnand: Use new file m4/exponentd.m4.
44291         * modules/isnanl: Use new file m4/exponentl.m4.
44292
44293 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44294
44295         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44296         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44297         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44298         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44299
44300         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44301         readlink on platforms without PATH_MAX.
44302
44303 2008-07-21  Eric Blake  <ebb9@byu.net>
44304
44305         Warn, not fail, on stale version.
44306         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44307
44308         Don't allow installation with stale devel version number.
44309         * top/GNUmakefile (_is-install-target): New macro.
44310         (_curr-ver): Forbid installation with stale version number.
44311
44312 2008-07-20  Bruno Haible  <bruno@clisp.org>
44313
44314         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44315         TESTS_ENVIRONMENT.
44316         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44317
44318 2008-07-20  Bruno Haible  <bruno@clisp.org>
44319
44320         * lib/c-stack.h (c_stack_action): Add documentation.
44321         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44322
44323 2008-07-20  Bruno Haible  <bruno@clisp.org>
44324
44325         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44326         * modules/readlink (License): Likewise.
44327
44328 2008-07-17  Eric Blake  <ebb9@byu.net>
44329
44330         * modules/c-stack (Link): Fix typo.
44331
44332         Make c-stack use libsigsegv, when available.
44333         * modules/c-stack (Depends-on): Add libsigsegv.
44334         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44335         needed.
44336         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44337         (segv_handler, overflow_handler, c_stack_action)
44338         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44339         implementation when libsigsegv is available, but only when using
44340         the library is necessary.
44341         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44342         comment, explaining why XSI check fails on Linux.
44343         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44344         * tests/test-c-stack2.sh: Tweak skip message.
44345         * NEWS: Document new link-time requirements.
44346
44347 2008-07-16  Eric Blake  <ebb9@byu.net>
44348
44349         c-stack: Expose false positives when not using libsigsegv.
44350         * modules/c-stack-tests (Files): Expand test.
44351         * tests/test-c-stack.c (main): Add means to conditionally trigger
44352         non-overflow SIGSEGV.
44353         * tests/test-c-stack2.sh: New file.
44354
44355 2008-07-14  Bruno Haible  <bruno@clisp.org>
44356
44357         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44358         Reported by Eric Blake.
44359
44360 2008-07-14  Sam Steingold  <sds@gnu.org>
44361             Bruno Haible  <bruno@clisp.org>
44362
44363         New module libsigsegv.
44364         * modules/libsigsegv: New file.
44365         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44366         modifications.
44367         * MODULES.html.sh (Signal handling): New section.
44368
44369 2008-07-14  Bruno Haible  <bruno@clisp.org>
44370
44371         * modules/unictype/ctype-* (Description): Add the word "function".
44372         Improves the resulting doc in MODULES.html.
44373
44374 2008-07-12  Ben Pfaff  <blp@gnu.org>
44375
44376         Add longlong module.
44377         * modules/longlong: New file.
44378
44379 2008-07-12  Bruno Haible  <bruno@clisp.org>
44380
44381         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44382         to empty.
44383
44384 2008-07-10  Ben Pfaff  <blp@gnu.org>
44385
44386         Add isnan module.
44387         * doc/posix-functions/isnan.texi: Mention new module.
44388         * lib/math.in.h: Define isnan macro if we have decided to replace
44389         it.
44390         * m4/isnan.m4: New file.
44391         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44392         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44393         also.
44394         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44395         redundancy.
44396         * m4/math_h.m4: Initialize and substitute variables for isnan
44397         module.
44398         * modules/isnan: New file.
44399         * modules/isnan-tests: New file.
44400         * modules/math: Add substitutions for new module.
44401         * tests/test-isnan.c: New file.
44402         * MODULES.html.sh: Mention new module.
44403
44404 2008-07-10  Ben Pfaff  <blp@gnu.org>
44405
44406         Add isnanf module.
44407         * lib/isnanf.m4: New file.
44408         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44409         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44410         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44411         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44412         * modules/isnanf: New file.
44413         * modules/isnanf-tests: New file.
44414         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44415         files.
44416         * tests/test-isnanf-nolibm.c: factored most of its contents into
44417         new file tests/test-isnanf.h.
44418         * tests/test-isnanf.h: New file.
44419         * tests/test-isnanf.c: New file.
44420         * MODULES.html.sh: Mention new module.
44421         * doc/glibc-functions/isnanf.texi: Mention new module.
44422
44423 2008-07-10  Ben Pfaff  <blp@gnu.org>
44424
44425         Add isnand module.
44426         * lib/isnand.h: New file.
44427         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44428         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44429         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44430         functionality also.
44431         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44432         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44433         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44434         * modules/isnand: New file.
44435         * modules/isnand-tests: New file.
44436         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44437         files.
44438         * tests/test-isnand-nolibm.c: factored most of its contents into
44439         new file tests/test-isnand.h.
44440         * tests/test-isnand.h: New file.
44441         * tests/test-isnand.c: New file.
44442         * MODULES.html.sh: Mention new module.
44443
44444 2008-07-10  Ben Pfaff  <blp@gnu.org>
44445
44446         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44447         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44448         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44449         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44450         * modules/isnanf-nolibm: Update references to renamed files.
44451         * modules/isnand-nolibm: Likewise.
44452         * modules/isnanf-nolibm-tests: Likewise.
44453         * modules/isnand-nolibm-tests: Likewise.
44454         * lib/frexp.c: Likewise.
44455         * lib/isfinite.c: Likewise.
44456         * lib/signbitd.c: Likewise.
44457         * lib/signbitf.c: Likewise.
44458         * lib/vasnprintf.c: Likewise.
44459         * tests/test-ceilf1.c: Likewise.
44460         * tests/test-ceilf2.c: Likewise.
44461         * tests/test-floorf1.c: Likewise.
44462         * tests/test-floorf2.c: Likewise.
44463         * tests/test-frexp.c: Likewise.
44464         * tests/test-round1.c: Likewise.
44465         * tests/test-round2.c: Likewise.
44466         * tests/test-roundf1.c: Likewise.
44467         * tests/test-strtod.c: Likewise.
44468         * tests/test-trunc1.c: Likewise.
44469         * tests/test-trunc2.c: Likewise.
44470         * tests/test-truncf1.c: Likewise.
44471         * tests/test-truncf2.c: Likewise.
44472         * NEWS: Mention the renamed header files.
44473
44474 2008-07-11  Jim Meyering  <meyering@redhat.com>
44475
44476         vc-list-files: make the last-resort awk code more portable
44477         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44478         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44479         does not support it.
44480
44481 2008-07-10  Eric Blake  <ebb9@byu.net>
44482
44483         Work with tar's bootstrap.
44484         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44485         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44486         an m4 comment.
44487
44488 2008-07-09  Jim Meyering  <meyering@redhat.com>
44489
44490         posix-shell.m4: fix typo that made this test malfunction
44491         * m4/posix-shell.m4: Remove capitalization in variable name.
44492
44493 2008-07-08  Bruno Haible  <bruno@clisp.org>
44494
44495         * m4/onceonly.m4: Update comments.
44496         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44497
44498 2008-07-04  Jim Meyering  <meyering@redhat.com>
44499
44500         * users.txt: Add vc-dwim.
44501         (bison, coreutils): Use the gitweb URL.
44502
44503 2008-07-03  Jim Meyering  <meyering@redhat.com>
44504
44505         * users.txt: Add libffcall.  From Sam Steingold.
44506
44507 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44508
44509         getdate.y: do not ignore TZ with relative day, month or year offset
44510         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44511         relative-date-handling, since otherwise, the latter would clobber the
44512         sole output (an updated Start value) of the tz-handling block.
44513         * tests/test-getdate.c: Tests for the fix
44514
44515 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44516
44517         Recognize 'foo_LIBRARIES += libgnu.a'.
44518         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44519         makefile snippet has already specified an installation location,
44520         also using '+='.
44521
44522 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44523
44524         getdate.y: factor out common actions
44525         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44526         Use them in place of open-coded actions.
44527
44528 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44529
44530         Add self-test for getdate module.
44531         * modules/getdate-tests: New file.
44532         * tests/test-getdate.c: New file.
44533
44534 2008-06-29  Bruno Haible  <bruno@clisp.org>
44535
44536         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44537         .gitignore.
44538         Reported by Sylvain Beucler <beuc@beuc.net>.
44539
44540 2008-06-29  Bruno Haible  <bruno@clisp.org>
44541
44542         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44543         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44544
44545 2008-06-29  Bruno Haible  <bruno@clisp.org>
44546
44547         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44548         EXTRA_DIST.
44549         Reported by Sylvain Beucler <beuc@beuc.net>.
44550
44551 2008-06-26  Jim Meyering  <meyering@redhat.com>
44552
44553         make several modules depend on the "open" module
44554         This provides slightly increased consistency when opening-for-write
44555         the name of a non-directory spelled with a trailing slash.
44556         * modules/chdir-safer: Likewise.
44557         * modules/chown: Likewise.
44558         * modules/clean-temp: Likewise.
44559         * modules/copy-file: Likewise.
44560         * modules/fchdir: Likewise.
44561         * modules/fcntl-safer: Likewise.
44562         * modules/pipe: Likewise.
44563         * modules/utime: Likewise.
44564         Prompted by Eric Blake and Bruno Haible.
44565
44566 2008-06-24  Andreas Schwab  <schwab@suse.de>
44567
44568         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44569         literals can be used as initializers for global variables.
44570
44571 2008-06-23  Eric Blake  <ebb9@byu.net>
44572
44573         Make gnulib-cache.m4 easier to diff.
44574         * gnulib-tool (func_import): Allow newlines when reading cached
44575         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44576
44577 2008-06-23  Bruno Haible  <bruno@clisp.org>
44578
44579         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44580         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44581         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44582         m4/signalblocking.m4.
44583         (gl_PREREQ_SIGACTION): Don't invoke it.
44584         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44585         gl_PREREQ_SIG_HANDLER_H.
44586         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44587         Don't check for sigaction here.
44588
44589 2008-06-23  Bruno Haible  <bruno@clisp.org>
44590
44591         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44592         (install_handlers): Don't set the SA_RESETHAND flag.
44593
44594 2008-06-23  Bruno Haible  <bruno@clisp.org>
44595
44596         * m4/sigaction.m4: Comment fixes.
44597         * lib/signal.in.h: Likewise.
44598
44599 2008-06-23  Eric Blake  <ebb9@byu.net>
44600
44601         Fix typo.
44602         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44603
44604         Avoid SA_ namespace.
44605         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44606         Reported by Ralf Wildenhues.
44607
44608         Avoid test failure due to SA_RESTORER.
44609         * tests/test-sigaction.c (SA_MASK): New macro.
44610         (main): Avoid failing due to extension flags being set.
44611         Reported by Jim Meyering.
44612
44613         Revert use of sig-handler.h in sigprocmask.c.
44614         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44615         it requires the existence of struct sigaction.
44616         * lib/sigprocmask.c (handler_t): Restore typedef.
44617         (rpl_signal, old_handlers): Use local type.
44618
44619 2008-06-22  Bruno Haible  <bruno@clisp.org>
44620
44621         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44622         conditionally.
44623         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44624
44625 2008-06-22  Bruno Haible  <bruno@clisp.org>
44626
44627         * doc/posix-functions/siginterrupt.texi: Move note.
44628
44629         * lib/signal.in.h (SA_RESTART): New macro.
44630         * lib/sigaction.c: Update comment.
44631
44632         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44633
44634         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44635         (gl_PREREQ_SIGPROCMASK): Invoke it.
44636         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44637
44638         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44639
44640         * lib/sigprocmask.c: Update a comment.
44641
44642 2008-06-21  Eric Blake  <ebb9@byu.net>
44643
44644         Use sigaction module rather than signal().
44645         * modules/c-stack (Depends-on): Add sigaction.
44646         * modules/fatal-signal (Depends-on): Likewise.
44647         * modules/nanosleep (Depends-on): Likewise.
44648         * modules/sigprocmask (Files): Add sig-handler.h.
44649         * modules/sigaction (Files): Likewise.
44650         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44651         Eggert.
44652         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44653         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44654         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44655         (init_fatal_signals): Likewise.
44656         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44657         (siginterrupt): Delete fallback.
44658         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44659         instead.
44660         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44661         siginterrupt.
44662
44663         New module sigaction, for mingw.
44664         * modules/sigaction: New module...
44665         * modules/sigaction-tests: ...and its test.
44666         * m4/sigaction.m4: New file.
44667         * lib/sigaction.c: Likewise.
44668         * tests/test-sigaction.c: Likewise.
44669         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44670         * modules/signal (Makefile.am): Likewise.
44671         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44672         needed.
44673         * doc/posix-headers/signal.texi (signal.h): Mention provided
44674         types.
44675         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44676         that sigaction is preferable.
44677         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44678         module.
44679         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44680         sigaction.
44681
44682         Improve robustness of sigprocmask by overriding signal.
44683         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44684         is in use.
44685         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44686         (SIGKILL, SIGSTOP): Provide fallbacks.
44687         (rpl_signal): Implement.
44688         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44689         signal can be called inside handlers.
44690
44691         Fix nanosleep module on mingw.
44692         * modules/nanosleep (Depends-on): Add sys_select.
44693         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44694
44695         Fix licensing of sigprocmask.
44696         * modules/raise (License): Relicense as LGPL.
44697
44698 2008-06-21  Bruno Haible  <bruno@clisp.org>
44699
44700         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44701         result if it contains question marks.
44702         Reported by Michael Geng <linux@michaelgeng.de>.
44703
44704 2008-06-19  Bruno Haible  <bruno@clisp.org>
44705
44706         Fix CVS-ism.
44707         * doc/gnulib.texi: Include updated-stamp.texi.
44708         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44709         (updated-stamp.texi): New rule.
44710         (gnulib.info): Depend on it.
44711         * doc/.gitignore: Add updated-stamp.texi.
44712         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44713
44714 2008-06-19  Bruno Haible  <bruno@clisp.org>
44715
44716         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44717         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44718
44719 2008-06-19  Eric Blake  <ebb9@byu.net>
44720
44721         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44722         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44723         Reported by Stepan Kasal.
44724
44725 2008-06-18  Bruno Haible  <bruno@clisp.org>
44726
44727         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44728         Reported by Eric Blake.
44729
44730 2008-06-18  Eric Blake  <ebb9@byu.net>
44731
44732         Work around cygwin 1.5.25 strsignal bug.
44733         * tests/test-strsignal.c: Allow for const char *.
44734         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44735
44736 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44737
44738         * users.txt: Update URL to article and add author/date
44739         information.
44740
44741 2008-06-17  Bruno Haible  <bruno@clisp.org>
44742
44743         New macro gl_DISABLE_THREADS.
44744         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44745         if the user did not pass --enable-threads or --disable-threads option.
44746         (gl_DISABLE_THREADS): New macro.
44747         Reported by Eric Blake <ebb9@byu.net>.
44748
44749 2008-06-17  Bruno Haible  <bruno@clisp.org>
44750
44751         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44752         when the macro ignores it.
44753         Based on a patch by Eric Blake <ebb9@byu.net>.
44754
44755 2008-06-17  Bruno Haible  <bruno@clisp.org>
44756
44757         * modules/tls (License): Change to LGPLv2+.
44758         Reported by Eric Blake.
44759
44760 2008-06-17  Eric Blake  <ebb9@byu.net>
44761
44762         Simplify c-stack prerequisites.
44763         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44764         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44765         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44766         check.
44767         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44768         <sys/resource.h>.
44769
44770         Move c-stack test into testsuite.
44771         * modules/c-stack-tests: New file.
44772         * lib/c-stack.c [DEBUG]: Move test program...
44773         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44774         fail test if sigaltstack is lacking.
44775         * tests/test-c-stack.sh: New driver file.
44776
44777 2008-06-16  Eric Blake  <ebb9@byu.net>
44778
44779         Use raise module consistently.
44780         * modules/fatal-signal (Depends-on): Add raise.
44781         * modules/sigprocmask (Depends-on): Likewise.
44782         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44783         * lib/sigprocmask.c (sigprocmask): Likewise.
44784         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44785         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44786
44787         Fix compliance bug in sigpending.
44788         * lib/sigprocmask.c (sigpending): Return pending array via
44789         parameter, not return value.
44790
44791 2008-06-14  Eric Blake  <ebb9@byu.net>
44792
44793         Improve obstack-printf test code.
44794         * tests/test-obstack-printf.c (test_function): Fix comment, and
44795         simplify usage of obstack_* in macros.  Add a test for coverage.
44796         Reported by Bruno Haible.
44797
44798 2008-06-14  Bruno Haible  <bruno@clisp.org>
44799
44800         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44801         array size as a constant, not as a const variable.
44802         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44803         AC_USE_SYSTEM_EXTENSIONS.
44804         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44805         Test whether the obstack_printf function actually exists.
44806         * modules/obstack-printf (Depends-on): Add extensions.
44807         (Include): Remove obstack.h.
44808         * modules/obstack-printf-posix (Depends-on): Add extensions.
44809         (Include): Remove obstack.h.
44810
44811 2008-06-13  Eric Blake  <ebb9@byu.net>
44812
44813         Add obstack-printf and obstack-printf-posix modules.
44814         * modules/obstack-printf: New file.
44815         * modules/obstack-printf-posix: Likewise.
44816         * MODULES.html.sh (Misc): Mention them.
44817         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44818         Likewise.
44819         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44820         Likewise.
44821         * modules/stdio (Makefile.am): Accomodate new modules.
44822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44823         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44824         Declare.
44825         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44826         functions.
44827         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44828         (gl_REPLACE_OBSTACK_PRINTF): New macros
44829         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44830         * tests/test-obstack-printf.c: New file.
44831         * modules/obstack-printf-tests: Likewise.
44832         * modules/obstack-printf-posix-tests: Likewise.
44833
44834 2008-06-11  Bruno Haible  <bruno@clisp.org>
44835
44836         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44837         * lib/open.c: Include errno.h.
44838         (open): Fail when attempting to write to a file that has a trailing
44839         slash.
44840         * tests/test-open.c (main): Test against trailing slash bug.
44841         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44842
44843 2008-06-10  Bruno Haible  <bruno@clisp.org>
44844
44845         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44846         for $? to work inside the trap command, with various /bin/sh-s.
44847         * tests/test-vc-list-files-cvs.sh: Likewise.
44848
44849 2008-06-10  Bruno Haible  <bruno@clisp.org>
44850
44851         * lib/acl-internal.h: Don't include gettext.h here.
44852         * lib/set-mode-acl.c: Include gettext.h here.
44853         * lib/copy-acl.c: Likewise.
44854
44855 2008-06-10  Bruno Haible  <bruno@clisp.org>
44856
44857         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44858         * lib/wait-process.c (wait_subprocess): Likewise.
44859         * lib/execute.h (execute): Add termsigp argument.
44860         * lib/execute.c (execute): Likewise.
44861         * lib/csharpcomp.c (compile_csharp_using_pnet,
44862         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44863         * lib/csharpexec.c (execute_csharp_using_pnet,
44864         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44865         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44866         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44867         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44868         is_jikes_present): Update.
44869         * lib/javaexec.c (execute_java_class): Update.
44870         * lib/javaversion.c (execute_and_read_line): Update.
44871         * NEWS: Document the changes.
44872         Reported by Eric Blake.
44873
44874 2008-06-10  Eric Blake  <ebb9@byu.net>
44875
44876         Add missing include.
44877         * tests/test-strstr.c (includes): Add <signal.h>.
44878         * tests/test-strcasestr.c (includes): Likewise.
44879         * tests/test-memmem.c (includes): Likewise.
44880
44881 2008-06-10  Bruno Haible  <bruno@clisp.org>
44882
44883         * lib/wait-process.c (wait_subprocess): Add an assertion.
44884
44885 2008-06-10  Bruno Haible  <bruno@clisp.org>
44886
44887         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44888
44889 2008-06-10  Bruno Haible  <bruno@clisp.org>
44890
44891         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44892         using alarm().
44893         * tests/test-strcasestr.c (main): Likewise.
44894         * tests/test-strstr.c (main): Likewise.
44895
44896 2008-06-09  Bruno Haible  <bruno@clisp.org>
44897
44898         Work around the Solaris 10 ACE ACLs ABI change.
44899         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44900         declare if ACL_NO_TRIVIAL is present.
44901         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44902         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44903         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44904         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44905         define if ACL_NO_TRIVIAL is present.
44906         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44907         and use the current ABI.
44908         (file_has_acl): Use same #if condition as elsewhere.
44909         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44910         in use, and use the current ABI.
44911         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44912         Reported by Jim Meyering.
44913
44914 2008-06-09  Eric Blake  <ebb9@byu.net>
44915
44916         Work around environments that (stupidly) ignore SIGALRM.
44917         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44918         before using alarm().
44919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44920         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44921         Reported by Ian Beckwith <ianb@erislabs.net>.
44922
44923         Produce autobuild blurb earlier in log.
44924         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44925
44926 2008-06-09  Jim Meyering  <meyering@redhat.com>
44927         and OndÅ™ej Vašík  <ovasik@redhat.com>
44928
44929         utimens.c: correct kernel bug work-around
44930         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44931         failure, not success, and the kernel bug we're trying to work
44932         around affects not just the utimensat call, but also the fallback
44933         futimens call.
44934         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44935         not success.
44936         [HAVE_FUTIMENS]: Use the same work-around, here.
44937
44938 2008-06-09  Jim Meyering  <meyering@redhat.com>
44939
44940         add more guards around definition of ACE_-related code
44941         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44942         ALLOW and ACE_OWNER are also defined.
44943
44944 2008-06-08  Bruno Haible  <bruno@clisp.org>
44945
44946         * lib/acl-internal.h: Add me as co-author.
44947         * lib/file-has-acl.c: Likewise.
44948         * lib/set-mode-acl.c: Likewise.
44949         * lib/copy-acl.c: Likewise.
44950
44951 2008-06-08  Bruno Haible  <bruno@clisp.org>
44952
44953         Add support for AIX ACLs.
44954         * lib/acl-internal.h (acl_nontrivial): New declaration.
44955         * lib/file-has-acl.c (acl_nontrivial): New function.
44956         (file_has_acl): Add implementation using AIX 4 ACL API.
44957         * lib/set-mode-acl.c (qset_acl): Likewise.
44958         * lib/copy-acl.c (qcopy_acl): Likewise.
44959
44960 2008-06-08  Bruno Haible  <bruno@clisp.org>
44961
44962         Add support for HP-UX ACLs.
44963         * lib/acl-internal.h (acl_nontrivial): New declaration.
44964         * lib/file-has-acl.c (acl_nontrivial): New function.
44965         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44966         * lib/set-mode-acl.c (qset_acl): Likewise.
44967         * lib/copy-acl.c (qcopy_acl): Likewise.
44968
44969 2008-06-08  Bruno Haible  <bruno@clisp.org>
44970
44971         Add support for Cygwin ACLs.
44972         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44973         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44974         the chmod_or_fchmod call.
44975         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44976
44977 2008-06-08  Bruno Haible  <bruno@clisp.org>
44978
44979         Fix bug with setuid modes in Solaris 10+ code.
44980         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44981         succeeded, when the mode contains some special bits.
44982
44983 2008-06-08  Bruno Haible  <bruno@clisp.org>
44984
44985         Add support for Solaris 7..10 ACLs.
44986         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44987         declarations.
44988         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44989         functions.
44990         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44991         * lib/set-mode-acl.c (qset_acl): Likewise.
44992         * lib/copy-acl.c (qcopy_acl): Likewise.
44993
44994 2008-06-08  Bruno Haible  <bruno@clisp.org>
44995
44996         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44997         declaration.
44998         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44999         (acl_access_nontrivial): Remove MacOS X case.
45000         (file_has_acl): Use acl_extended_nontrivial.
45001         * lib/copy-acl.c (qcopy_acl): Likewise.
45002
45003 2008-06-08  Bruno Haible  <bruno@clisp.org>
45004
45005         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45006
45007 2008-06-08  Jim Meyering  <meyering@redhat.com>
45008
45009         * modules/acl (Maintainer): Add Bruno Haible.
45010
45011 2008-06-07  Bruno Haible  <bruno@clisp.org>
45012
45013         Improve support for Tru64 ACLs.
45014         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45015         ACL on OSF/1.
45016
45017 2008-06-07  Bruno Haible  <bruno@clisp.org>
45018
45019         Add support for MacOS X ACLs.
45020         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45021         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45022         * lib/set-mode-acl.c (qset_acl): Likewise.
45023         * lib/copy-acl.c (qcopy_acl): Likewise.
45024
45025 2008-06-07  Bruno Haible  <bruno@clisp.org>
45026
45027         Fix memory leak introduced on 2008-05-22.
45028         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45029         use.
45030
45031 2008-06-07  Bruno Haible  <bruno@clisp.org>
45032
45033         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45034         to construct an empty ACL.
45035
45036 2008-06-07  Bruno Haible  <bruno@clisp.org>
45037
45038         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45039         precisely.
45040         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45041
45042 2008-06-07  Bruno Haible  <bruno@clisp.org>
45043
45044         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45045         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45046
45047 2008-06-07  Bruno Haible  <bruno@clisp.org>
45048
45049         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45050         regardless of POSIX.
45051         * doc/posix-functions/_longjmp.texi: Likewise.
45052         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45053         SystemV platform in this case.
45054
45055 2008-06-06  Eric Blake  <ebb9@byu.net>
45056
45057         Document abort() bugs.
45058         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45059
45060         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45061         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45062         sigsetjmp.
45063         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45064         siglongjmp, but only as a macro.
45065         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45066         is obsolete.
45067         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45068
45069         Tweak documentation to cover cygwin argz bugs.
45070         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45071         argz bug fix; no code change needed since no cygwin releases
45072         occurred between the last fix and the bug being tested.
45073         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45074         module and recently fixed cygwin bugs.
45075         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45076         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45077         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45078         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45079         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45080         Likewise.
45081         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45082         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45083         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45084         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45085         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45086         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45087         Likewise.
45088
45089         Avoid gcc warning on cygwin.
45090         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45091         !ACL_NO_TRIVIAL]: Avoid unused variable.
45092
45093 2008-06-05  Eric Blake  <ebb9@byu.net>
45094
45095         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45096         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45097         git-version-gen fails to come up with a version.
45098         Reported by Simon Josefsson.
45099
45100 2008-06-05  Jim Meyering  <meyering@redhat.com>
45101             Paul Eggert  <eggert@cs.ucla.edu>
45102
45103         utimens.c: work around a probable Linux kernel bug
45104         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45105         appears to be a kernel bug that causes utimensat to return 280
45106         instead of 0, indicating success.
45107
45108 2008-06-04  Bruno Haible  <bruno@clisp.org>
45109
45110         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45111         2008-06-01 commit.
45112
45113 2008-06-04  Bruno Haible  <bruno@clisp.org>
45114
45115         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45116         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45117         (file_has_acl): Use it. Save errno afterwards.
45118         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45119
45120 2008-06-03  Bruno Haible  <bruno@clisp.org>
45121
45122         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45123         draft code. Simplify #ifs.
45124         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45125         Put Solaris code after POSIX-draft code. Fix comments regarding
45126         Solaris 10, HP-UX. Mention Cygwin.
45127         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45128
45129 2008-06-03  Eric Blake  <ebb9@byu.net>
45130
45131         Provide fallback for older kernels.
45132         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45133         Provide runtime fallback if kernel lacks support.
45134         Reported by Mike Frysinger.
45135
45136 2008-06-02  Bruno Haible  <bruno@clisp.org>
45137
45138         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45139         it exists.
45140
45141 2008-06-02  Bruno Haible  <bruno@clisp.org>
45142
45143         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45144         * lib/copy-acl.c (qcopy_acl): Update comment.
45145
45146 2008-06-02  Bruno Haible  <bruno@clisp.org>
45147
45148         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45149         like ACL APIs.
45150
45151 2008-06-02  Bruno Haible  <bruno@clisp.org>
45152
45153         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45154         * tests/test-set-mode-acl.sh: Likewise.
45155         * tests/test-copy-acl.sh: Likewise.
45156         * tests/test-copy-file.sh: Likewise.
45157
45158 2008-06-02  Bruno Haible  <bruno@clisp.org>
45159
45160         * tests/test-file-has-acl.sh: Remove unused code.
45161
45162 2008-06-01  Bruno Haible  <bruno@clisp.org>
45163
45164         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45165         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45166         messages.
45167         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45168
45169 2008-06-01  Bruno Haible  <bruno@clisp.org>
45170
45171         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45172         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45173         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45174         APIs.
45175         * modules/acl-tests (configure.ac): Remove tests now contained in
45176         m4/acl.m4.
45177
45178 2008-06-02  Jim Meyering  <meyering@redhat.com>
45179
45180         announce-gen: use a better key-server host name
45181         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45182         it may be more consistently reliable.  Suggested by Werner Koch
45183         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45184
45185 2008-06-01  Bruno Haible  <bruno@clisp.org>
45186
45187         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45188         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45189
45190 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45191
45192         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45193
45194 2008-06-01  Bruno Haible  <bruno@clisp.org>
45195
45196         New ACL tests.
45197         * tests/test-file-has-acl.sh: New file.
45198         * tests/test-file-has-acl.c: New file.
45199         * tests/test-set-mode-acl.sh: New file.
45200         * tests/test-set-mode-acl.c: New file.
45201         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45202         * tests/test-copy-acl.c: New file.
45203         * modules/acl-tests: New file, based on modules/copy-file-tests.
45204         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45205         (Depends-on): Add acl-tests.
45206         (configure.ac): Remove checks.
45207         (Makefile.am): Don't create test-sameacls program here any more.
45208
45209 2008-06-01  Bruno Haible  <bruno@clisp.org>
45210
45211         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45212         * tests/test-sameacls.c: Include progname.h.
45213         (main): Invoke set_program_name. Portability fixes for MacOS X,
45214         Solaris, HP-UX.
45215
45216 2008-06-01  Bruno Haible  <bruno@clisp.org>
45217
45218         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45219         function.
45220         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45221
45222 2008-06-01  Bruno Haible  <bruno@clisp.org>
45223
45224         * modules/rpmatch (Depends-on): Add strdup.
45225
45226 2008-06-01  Bruno Haible  <bruno@clisp.org>
45227
45228         * lib/pipe.c: Include unistd-safer.h.
45229         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45230         * modules/pipe (Depends-on): Add unistd-safer.
45231
45232 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45233
45234         * modules/autobuild (configure.ac): Call AB_INIT.
45235
45236 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45237
45238         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45239         Suggested by Bruno Haible <bruno@clisp.org>.
45240
45241 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45242
45243         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45244         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45245         <bruno@clisp.org>.
45246
45247 2008-05-29  Eric Blake  <ebb9@byu.net>
45248
45249         Prefer new POSIX 200x interfaces over futimesat.
45250         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45251         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45252         when available.
45253         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45254
45255 2008-05-28  Bruno Haible  <bruno@clisp.org>
45256
45257         * modules/stpcpy (License): Change to LGPLv2+.
45258         Requested by David Lutterkort <dlutter@redhat.com>.
45259
45260 2008-05-27  Bruno Haible  <bruno@clisp.org>
45261
45262         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45263         current mingw.
45264         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45265
45266 2008-05-27  Bruno Haible  <bruno@clisp.org>
45267
45268         * modules/iconv_open (Link): New section, from module 'iconv'.
45269         * modules/striconv (Link): Likewise.
45270         * modules/striconveh (Link): Likewise.
45271         * modules/xstriconv (Link): Likewise.
45272         * modules/unicodeio (Link): Likewise.
45273         * modules/propername (Link): Likewise.
45274         Reported by Jim Meyering.
45275
45276 2008-05-26  Jim Meyering  <meyering@redhat.com>
45277
45278         sha256: do not artificially restrict buffer length to be < 2^32
45279         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45280         uint32_t to size_t.
45281         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45282         to match.
45283
45284         avoid unaligned access errors, e.g., on sparc
45285         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45286         direct access through a possibly-unaligned uint64* pointer.
45287         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45288         direct access through a possibly-unaligned uint32* pointer.
45289         Prompted by this patch from Tom "spot" Callaway:
45290         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45291
45292         sha512.c: fix typo in comment
45293         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45294
45295 2008-05-25  Bruno Haible  <bruno@clisp.org>
45296
45297         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45298         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45299         (Makefile.am): Update lib_SOURCES.
45300
45301 2008-05-25  Bruno Haible  <bruno@clisp.org>
45302
45303         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45304
45305 2008-05-25  Jim Meyering  <meyering@redhat.com>
45306
45307         useless-if-before-free: freed expr may have white-space differences
45308         * build-aux/useless-if-before-free: Recognize cases in which the
45309         freed expression differs from the tested one in embedded white
45310         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45311         $1 was used, so we can't make any regexp shy.  Improved tests now
45312         detect this.
45313
45314         useless-if-before-free: accept white space in the expression.
45315         * build-aux/useless-if-before-free: For now, any white space
45316         in the expression must be identical in the free argument.
45317
45318         useless-if-before-free: efficiency tweak
45319         * build-aux/useless-if-before-free: Make the expression-matching
45320         regexp "shy".
45321         Make the *outer* regexp shy, not the expr-matching one.
45322
45323         update code-in-comment to accept cast of free arg
45324         * build-aux/useless-if-before-free: Update regexp.
45325
45326 2008-05-25  Bruno Haible  <bruno@clisp.org>
45327
45328         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45329         * modules/copy-file-tests (Files, Makefile.am): Update.
45330         * tests/test-copy-file.c (func_test_copy): Update.
45331
45332 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45333
45334         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45335
45336 2008-05-23  Bruno Haible  <bruno@clisp.org>
45337
45338         Improve support for ACLs on OSF/1.
45339         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45340         Remove fallback for unknown flavors of ACLs.
45341
45342 2008-05-22  Bruno Haible  <bruno@clisp.org>
45343
45344         Add support for ACLs on OSF/1.
45345         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45346         replacements.
45347         (acl_free_text): New macro fallback.
45348         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45349         acl_free.
45350         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45351         acl_free_text function. Require AC_C_INLINE.
45352
45353 2008-05-22  Bruno Haible  <bruno@clisp.org>
45354
45355         Make copy_acl work on MacOS X 10.5.
45356         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45357         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45358         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45359         If MODE_INSIDE_ACL, don't assume that every system has the same text
45360         representation for ACLs as FreeBSD.
45361         * lib/copy-acl.c (copy_acl): Add support for platforms with
45362         !MODE_INSIDE_ACL.
45363         * lib/file-has-acl.c (file_has_acl): Likewise.
45364         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45365         FreeBSD, MacOS X, or IRIX, respectively.
45366
45367 2008-05-22  Bruno Haible  <bruno@clisp.org>
45368
45369         * lib/acl.h: Don't include <sys/acl.h>.
45370         (GETACLCNT): Move fallback to lib/acl-internal.h.
45371         * lib/acl-internal.h: Include <sys/acl.h> here.
45372         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45373
45374 2008-05-22  Bruno Haible  <bruno@clisp.org>
45375
45376         Split off copy_acl function to separate file.
45377         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45378         * lib/acl.c (copy_acl): Moved function to separate file.
45379         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45380         * modules/acl (Files): Add lib/copy-acl.c.
45381         (Makefiles.am): Augment lib_SOURCES.
45382
45383 2008-05-22  Bruno Haible  <bruno@clisp.org>
45384
45385         * modules/copy-file-tests: New file.
45386         * tests/test-copy-file.sh: New file.
45387         * tests/test-copy-file.c: New file.
45388         * tests/test-copy-file-sameacls.c: New file.
45389
45390 2008-05-22  Eric Blake  <ebb9@byu.net>
45391
45392         Avoid gcc warning.
45393         * tests/test-memcmp.c (main): Pass NULL indirectly.
45394
45395 2008-05-21  Bruno Haible  <bruno@clisp.org>
45396
45397         Add reference doc about ACLs.
45398         * doc/acl-resources.txt: New file.
45399         * doc/acl-cygwin.txt: New file.
45400
45401 2008-05-21  Bruno Haible  <bruno@clisp.org>
45402
45403         Avoid one more warning from gcc.
45404         * lib/vasnprintf.c (IF_LINT): Update comments.
45405         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45406
45407 2008-05-21  Jim Meyering  <meyering@redhat.com>
45408
45409         avoid a warning from gcc
45410         * lib/vasnprintf.c (IF_LINT): Define.
45411         (scale10_round_decimal_long_double):
45412         Use it to avoid a "may be used uninitialized" warning.
45413         (scale10_round_decimal_double): Likewise.
45414
45415 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45416
45417         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45418         declared.
45419
45420 2008-05-20  Bruno Haible  <bruno@clisp.org>
45421
45422         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45423         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45424
45425 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45426
45427         * modules/memcmp-tests: New file.
45428         * tests/test-memcmp.c: New file.
45429
45430 2008-05-19  Bruno Haible  <bruno@clisp.org>
45431
45432         * modules/propername (Notice, configure.ac): Put quoted "..." into
45433         --keyword option.
45434         * lib/propername.h: Update comments accordingly.
45435         Reported by Eric Blake.
45436
45437 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45438
45439         * modules/getpass-gnu (Depends-on): Add fseeko.
45440
45441 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45442
45443         * modules/base64-tests: New file.
45444
45445 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45446
45447         * lib/base64.c (base64_decode_ctx): If a decode context structure
45448         was passed in use it to ignore newlines.  If a context structure
45449         was _not_ passed in, continue to treat newlines as garbage (this
45450         is the historical behavior).  Formerly base64_decode.
45451         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45452         takes a decode context structure.
45453         * lib/base64.h (base64_decode): Macro for four-argument calls.
45454         (base64_decode_alloc): Likewise.
45455         * lib/base64.c (base64_decode_ctx): If a decode context structure
45456         was passed in use it to ignore newlines.  If a context structure
45457         was _not_ passed in, continue to treat newlines as garbage (this
45458         is the historical behavior).  Formerly base64_decode.
45459         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45460         takes a decode context structure.
45461         * lib/base64.h (base64_decode): Macro for four-argument calls.
45462         (base64_decode_alloc): Likewise.
45463
45464 2008-05-19  Jim Meyering  <meyering@redhat.com>
45465
45466         avoid a warning from gcc
45467         * lib/trim.c (IF_LINT): Define.
45468         (trim2): Use it to avoid a "may be used uninitialized" warning.
45469
45470         Fix doc typo.
45471         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45472
45473 2008-05-19  Bruno Haible  <bruno@clisp.org>
45474
45475         * doc/glibc-functions/getpass.texi: Document limits of other
45476         implementations.
45477
45478 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45479             Bruno Haible <bruno@clisp.org>
45480
45481         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45482
45483 2008-05-18  Bruno Haible  <bruno@clisp.org>
45484
45485         * modules/propername: New file, from GNU gettext.
45486         * lib/propername.h: New file, from GNU gettext.
45487         * lib/propername.c: New file, from GNU gettext.
45488         * MODULES.html.sh (Internationalization functions): Add propername.
45489
45490 2008-05-16  Jim Meyering  <meyering@redhat.com>
45491             Bruno Haible  <bruno@clisp.org>
45492
45493         Avoid some warnings from "gcc -Wshadow".
45494         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45495
45496 2008-05-15  Eric Blake  <ebb9@byu.net>
45497
45498         Extend previous patch to cygwin 1.7.0.
45499         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45500         fast implementation in cygwin >= 1.7.0.
45501         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45502         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45503
45504 2008-05-15  Bruno Haible  <bruno@clisp.org>
45505
45506         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45507         implementation in glibc >= 2.9.
45508         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45510
45511 2008-05-15  Bruno Haible  <bruno@clisp.org>
45512
45513         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45514         (Unicode string functions): Add unilbrk/*.
45515         Reported by Karl Berry.
45516
45517 2008-05-15  Eric Blake  <ebb9@byu.net>
45518
45519         Fix violation of <stdbool.h> replacement in regex.
45520         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45521         * lib/regexec.c (re_search_internal): Likewise.
45522         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45523
45524 2008-05-15  Jim Meyering  <meyering@redhat.com>
45525
45526         avoid distracting test output when git or cvs is not found
45527         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45528         * tests/test-vc-list-files-git.sh: Likewise.
45529
45530 2008-05-15  Eric Blake  <ebb9@byu.net>
45531
45532         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45533         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45534         glibc version.
45535         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45536         * doc/posix-functions/strstr.texi (strstr): Likewise.
45537         * lib/str-two-way.h (MAX): Sychronize with glibc.
45538
45539 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45540
45541         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45542         opr.ctx_type.
45543         (calc_first): Initialize constraint field.
45544         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45545         Fix grammar.
45546         (duplicate_node): Merge constraint field for all node types.
45547         (calc_eclosure_iter): Look at constraint field for all node types.
45548         * lib/regex_internal.c (create_cd_newstate): Don't look at
45549         opr.ctx_type.
45550
45551 2008-05-14  Bruno Haible  <bruno@clisp.org>
45552
45553         Help GCC to do better code generation.
45554         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45555         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45556         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45557         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45558         Declare with attribute 'malloc' if supported.
45559
45560 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45561
45562         use "echo STR|wc -c" rather than unportable "expr length STR"
45563         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45564         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45565
45566 2008-05-14  Jim Meyering  <meyering@redhat.com>
45567
45568         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45569         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45570         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45571         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45572         via Collin Lasse.
45573
45574 2008-05-14  Eric Blake  <ebb9@byu.net>
45575
45576         Avoid quadratic growth in gl_LIBSOURCES.
45577         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45578         Suggested by Bruno Haible.
45579
45580         Test xmemdup0.
45581         * modules/xmemdup0-tests: New file.
45582         * tests/test-xmemdup0.c: Likewise.
45583
45584 2008-05-13  Eric Blake  <ebb9@byu.net>
45585
45586         Split xmemdup0 into its own module.
45587         * modules/xmemdup0: New file.
45588         * lib/xmemdup0.h: Likewise.
45589         * lib/xmemdup0.c: Likewise.
45590         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45591         * lib/xalloc.h (xmemdup0): Remove.
45592         * lib/xmalloc.c (xmemdup0): Likewise.
45593
45594 2008-05-13  Eric Blake  <ebb9@byu.net>
45595             Bruno Haible  <bruno@clisp.org>
45596
45597         Reduce number of forks required during autoconf.
45598         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45599         and gl_LIBSOURCES_DIR.
45600         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45601         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45602         m4_syscmd per file.
45603         <m4_foreach_w>: Move...
45604         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45605
45606 2008-05-13  Eric Blake  <ebb9@byu.net>
45607
45608         * gnulib-tool: Fix various comment typos.
45609
45610 2008-05-12  Bruno Haible  <bruno@clisp.org>
45611
45612         Tailor the linebreaking algorithm.
45613         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45614
45615 2008-05-12  Bruno Haible  <bruno@clisp.org>
45616
45617         Update to Unicode 5.0.0.
45618         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45619         LBP_JV, LBP_JT. Redistribute values.
45620         (unilbrk_table): Change size.
45621         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45622         Unicode TR#14 rev. 22.
45623         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45624         LBP_JV, LBP_JT. Redistribute values.
45625         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45626         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45627         Update.
45628         * lib/unilbrk/lbrkprop1.h: Regenerated.
45629         * lib/unilbrk/lbrkprop2.h: Regenerated.
45630         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45631         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45632         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45633         Likewise.
45634         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45635         Likewise.
45636         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45637         result.
45638         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45639         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45640         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45641         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45642         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45643         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45644
45645 2008-05-11  Bruno Haible  <bruno@clisp.org>
45646
45647         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45648
45649 2008-05-11  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45652         * modules/unilbrk/gen-lbrk: New file.
45653
45654 2008-05-11  Bruno Haible  <bruno@clisp.org>
45655
45656         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45657         * m4/sha512.m4 (gl_SHA512): Likewise.
45658
45659 2008-05-11  Jim Meyering  <meyering@redhat.com>
45660
45661         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45662         * modules/crypto/sha256: New file.
45663         * modules/crypto/sha512: Likewise.
45664         * lib/sha256.c: Likewise.
45665         * lib/sha256.h: Likewise.
45666         * lib/sha512.c: Likewise.
45667         * lib/sha512.h: Likewise.
45668         * lib/u64.h: Likewise.
45669         * m4/sha256.m4: Likewise.
45670         * m4/sha512.m4: Likewise.
45671         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45672
45673 2008-05-10  Bruno Haible  <bruno@clisp.org>
45674
45675         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45676         (Input/Output <stdio.h>): Add xprintf.
45677         (Signal handling <signal.h>): Add strsignal.
45678         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45679         (Core language properties): Add func.
45680         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45681         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45682         strings.
45683         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45684         (Input/output): New section.
45685         (File system functions): Add openat-die, stat-macros.
45686         (Networking functions): Add sockets.
45687         (Unicode string functions): Add unictype/*.
45688         (Support for building libraries and executables): Add gperf.
45689         (Support for building documentation): Add agpl-3.0.
45690         (Misc): Add nocrash.
45691
45692 2008-05-10  Bruno Haible  <bruno@clisp.org>
45693
45694         * modules/unictype/gen-ctype: New file.
45695
45696 2008-05-10  Jim Meyering  <meyering@redhat.com>
45697
45698         Make chdir-safer.c more efficient on a system with no symlinks.
45699         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45700         also if ELOOP is zero.  Suggested by Bruno Haible.
45701
45702         Make chdir-safer.c slightly safer.
45703         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45704         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45705
45706         Avoid compile failure on systems without ELOOP (like mingw).
45707         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45708         Reported by Bruno Haible.
45709
45710 2008-05-10  Bruno Haible  <bruno@clisp.org>
45711
45712         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45713         (is_utf8_encoding): Use a case-insensitive comparison.
45714         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45715         streq.
45716
45717 2008-05-10  Bruno Haible  <bruno@clisp.org>
45718
45719         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45720         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45721         * lib/unilbrk/ulc-common.h (iconv_string_length,
45722         iconv_string_keeping_offsets): Remove declarations.
45723         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45724         Don't include <iconv.h>, streq.h, xsize.h.
45725         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45726         conversion.
45727         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45728         <iconv.h>, streq.h, xsize.h.
45729         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45730         conversion.
45731         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45732         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45733         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45734         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45735
45736 2008-05-10  Bruno Haible  <bruno@clisp.org>
45737
45738         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45739         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45740
45741         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45742         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45743
45744         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45745         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45746
45747         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45748         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45749
45750         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45751         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45752
45753         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45754         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45755
45756         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45757         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45758
45759         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45760         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45761
45762 2008-05-10  Bruno Haible  <bruno@clisp.org>
45763
45764         Split up 'linebreak' module.
45765         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45766         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45767         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45768         modifications.
45769         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45770         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45771         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45772         lib/linebreak.c.
45773         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45774         lib/linebreak.c.
45775         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45776         lib/linebreak.c.
45777         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45778         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45779         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45780         lib/linebreak.c.
45781         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45782         lib/linebreak.c.
45783         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45784         lib/linebreak.c.
45785         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45786         lib/linebreak.c.
45787         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45788         lib/linebreak.c.
45789         * modules/unilbrk/base: New file.
45790         * modules/unilbrk/tables: New file.
45791         * modules/unilbrk/u8-possible-linebreaks: New file.
45792         * modules/unilbrk/u16-possible-linebreaks: New file.
45793         * modules/unilbrk/u32-possible-linebreaks: New file.
45794         * modules/unilbrk/ulc-common: New file.
45795         * modules/unilbrk/ulc-possible-linebreaks: New file.
45796         * modules/unilbrk/u8-width-linebreaks: New file.
45797         * modules/unilbrk/u16-width-linebreaks: New file.
45798         * modules/unilbrk/u32-width-linebreaks: New file.
45799         * modules/unilbrk/ulc-width-linebreaks: New file.
45800         * lib/linebreak.h: Remove file.
45801         * lib/linebreak.c: Remove file.
45802         * m4/linebreak.m4: Remove file.
45803         * modules/linebreak: Remove file.
45804         * NEWS: Mention the changes.
45805
45806 2008-05-09  Eric Blake  <ebb9@byu.net>
45807
45808         Add xmemdup0.
45809         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45810         implementation.
45811         * lib/xmalloc.c (xmemdup0): New C implementation.
45812
45813 2008-05-08  Bruno Haible  <bruno@clisp.org>
45814
45815         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45816
45817 2008-05-07  Eric Blake  <ebb9@byu.net>
45818
45819         Support cross-compilation of <wctype.h>.
45820         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45821         AC_CACHE_CHECK.
45822
45823 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45824
45825         * build-aux/vc-list-files: Add support for bzr.
45826
45827 2008-05-03  Jim Meyering  <meyering@redhat.com>
45828
45829         avoid failed assertion with tight malloc
45830         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45831
45832 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45833
45834         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45835         are needed from arpa/inet.h.
45836         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45837         Reported by Bruno Haible.
45838
45839 2008-05-02  Jim Meyering  <meyering@redhat.com>
45840
45841         avoid compilation error on FreeBSD 6
45842         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45843
45844 2008-05-01  Jim Meyering  <meyering@redhat.com>
45845
45846         useless-if-before-free: correct --help's exit status description
45847         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45848         for one or more matches, etc.  Reported by Bruno Haible.
45849
45850         vc-list-files: make the stand-alone gnulib test work
45851         * modules/vc-list-files-tests (configure.ac):
45852         Define and AC_SUBST abs_aux_dir.
45853         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45854         $(abs_top_srcdir) to each script and having each of them
45855         duplicate the work of setting PATH, set PATH here, using
45856         the new variable, abs_aux_dir instead.
45857         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45858         * tests/test-vc-list-files-git.sh: Likewise.
45859         Reported by Bruno Haible.
45860
45861 2008-05-01  Bruno Haible  <bruno@clisp.org>
45862
45863         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45864         reallocation. Rename 'done' to 'found_delimiter'.
45865
45866 2008-05-01  Jim Meyering  <meyering@redhat.com>
45867
45868         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45869         * build-aux/vc-list-files: Use `...`, not $(...).
45870
45871 2008-04-30  Jim Meyering  <meyering@redhat.com>
45872
45873         add tests for vc-list-files
45874         * modules/vc-list-files-tests: New module.
45875         * tests/test-vc-list-files-cvs.sh: New file.
45876         * tests/test-vc-list-files-git.sh: New file.
45877
45878         avoid a warning from gcc
45879         * lib/getndelim2.c (IF_LINT): Define.
45880         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45881
45882         vc-list-files: work properly with build-aux/cvsu, too
45883         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45884         to all cvs-based clauses.
45885
45886         vc-list-files: work properly in the CVS+awk case, too
45887         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45888
45889         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45890         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45891         take more than one file argument, so .  Add quotes, just in case $dir
45892         ever contains a shell meta-character.  Prompted by Soren Hansen in
45893         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45894
45895 2008-04-29  Eric Blake  <ebb9@byu.net>
45896
45897         Optimize getndelim2 to use block operations when possible.
45898         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45899         freadseek, and memchr2.
45900         * lib/getndelim2.c (getndelim2): Use them for block reads.
45901
45902 2008-04-29  Bruno Haible  <bruno@clisp.org>
45903
45904         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45905         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45906         * modules/inet_ntop (Depends-on): Add extensions.
45907         * modules/inet_pton (Depends-on): Likewise.
45908         Reported by Simon Josefsson.
45909
45910 2008-04-29  Jim Meyering  <meyering@redhat.com>
45911
45912         When the is more than one match in a block, match all of them.
45913         * build-aux/useless-if-before-free: Iterate through each block
45914         until there are no more matches.
45915
45916         Fix broken useless-if-before-free script.
45917         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45918         the expression to match cast of argument to free-like function.
45919
45920 2008-04-29  Eric Blake  <ebb9@byu.net>
45921
45922         Use new header.
45923         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45924
45925 2008-04-29  Jim Meyering  <meyering@redhat.com>
45926
45927         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45928         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45929         by gnulib to exist and to declare e.g., inet_ntop.
45930         Don't include "inet_ntop.h", now removed.
45931
45932         * m4/arpa_inet_h.m4: Remove trailing blanks.
45933
45934 2008-04-29  Eric Blake  <ebb9@byu.net>
45935
45936         Silence valgrind on safe reads beyond potential array bounds.
45937         * lib/rawmemchr.valgrind: New file.
45938         * lib/strchrnul.valgrind: Likewise.
45939         * modules/rawmemchr (Files): Distribute new file.
45940         * modules/strchrnul (Files): Likewise.
45941         Suggested by Bruno Haible.
45942
45943 2008-04-29  Bruno Haible  <bruno@clisp.org>
45944
45945         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45946         (inet_ntop, inet_pton): Change portability warning's wording.
45947         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45948         Invoke gl_CHECK_NEXT_HEADERS.
45949         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45950         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45951         set ARPA_INET_H.
45952         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45953         * modules/arpa_inet (Description): No longer only for systems that
45954         lack it.
45955         (Depends-on): Add include_next.
45956         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45957         HAVE_ARPA_INET_H.
45958
45959 2008-04-29  Jim Meyering  <meyering@redhat.com>
45960
45961         * modules/mkdir (License): Re-license as LGPLv2+.
45962
45963 2008-04-29  Bruno Haible  <bruno@clisp.org>
45964
45965         * modules/rawmemchr (Maintainer): Set to Eric.
45966         * modules/strchrnul (Maintainer): Likewise.
45967
45968 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45969
45970         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45971         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45972
45973         * modules/arpa_inet (arpa/inet.h): Use them.
45974
45975 2008-04-28  Eric Blake  <ebb9@byu.net>
45976
45977         Test getndelim2.
45978         * modules/getndelim2-tests: New file.
45979         * tests/test-getndelim2.c: Likewise.
45980         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45981         stream.
45982         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45983
45984         * MODULES.html.sh: Document new module.
45985
45986 2008-04-20  Bruno Haible  <bruno@clisp.org>
45987
45988         * lib/c-stack.c (die): Use raise.
45989         * modules/c-stack (Depends-on): Add raise.
45990
45991 2008-04-28  Bruno Haible  <bruno@clisp.org>
45992
45993         Expect rpmatch to be declared.
45994         * lib/yesno.c (rpmatch): Remove declaration.
45995
45996         Declare rpmatch.
45997         * lib/stdlib.in.h (rpmatch): New declaration.
45998         * lib/rpmatch.c: Include <stdlib.h> first.
45999         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46000         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46002         HAVE_RPMATCH.
46003         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46004         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46005         (Include): Set to <stdlib.h>.
46006         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46007         HAVE_RPMATCH.
46008         * NEWS: Document the change.
46009
46010 2008-04-28  Bruno Haible  <bruno@clisp.org>
46011
46012         Change rpmatch to use nl_langinfo when appropriate.
46013         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46014         (N_): New macro.
46015         (localized_pattern): New function/macro.
46016         (try): Remove match, nomatch arguments. Copy the pattern into safe
46017         memory before caching it.
46018         (rpmatch): Use localized_pattern. Add translator comments.
46019         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46020         Suggested by Eric Blake.
46021         * modules/rpmatch (Depends-on): Add stdbool.
46022
46023 2008-04-28  Eric Blake  <ebb9@byu.net>
46024
46025         Add rawmemchr module, matching glibc.
46026         * modules/string (Makefile.am): New indicator.
46027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46028         * lib/string.in.h (rawmemchr): Declare when appropriate.
46029         * modules/rawmemchr: New file.
46030         * m4/rawmemchr.m4: Likewise.
46031         * lib/rawmemchr.c: Likewise.
46032         * modules/rawmemchr-tests: Likewise.
46033         * tests/test-rawmemchr.c: Likewise.
46034         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46035         module.
46036         * modules/strchrnul (Depends-on): Add rawmemchr.
46037         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46038
46039         Whitespace cleanup.
46040         * tests/test-strchrnul.c: Reindent.
46041         * lib/strchrnul.c: Likewise.
46042
46043         Optimize and test strchrnul.
46044         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46045         * modules/strchrnul-tests: New file.
46046         * tests/test-strchrnul.c: Likewise.
46047
46048         Remove intprops dependency.
46049         * modules/memchr (Depends-on): Remove intprops.
46050         * modules/memrchr (Depends-on): Likewise.
46051         * modules/memchr2 (Depends-on): Likewise.
46052         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46053         * lib/memrchr.c (__memrchr): Likewise.
46054         * lib/memrchr2.c (memchr2): Likewise.
46055         Reported by Simon Josefsson.
46056
46057 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46058
46059         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46060         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46061
46062 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46063
46064         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46065
46066         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46067
46068         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46069
46070         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46071         declarations.
46072         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46073
46074         * m4/inet_pton.m4: Don't check for header files.
46075
46076         * m4/inet_ntop.m4: Don't check for header files.
46077
46078 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46079
46080         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46081         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46082         trigger for cygwin).
46083         Reported by Bruno Haible  <bruno@clisp.org>.
46084
46085 2008-04-28  Bruno Haible  <bruno@clisp.org>
46086
46087         * doc/posix-functions/strdup.texi: Mention mingw problem.
46088
46089 2008-04-27  Bruno Haible  <bruno@clisp.org>
46090
46091         * modules/stat-time-tests (Depends-on): Add sleep.
46092         * tests/test-stat-time.c (force_unlink): New function.
46093         (cleanup): Use it.
46094         (test_mtime): Remove the ctime related tests.
46095         (test_ctime): New function, containing the ctime related tests.
46096         (main): Call test_ctime, except on native Windows platforms.
46097
46098 2008-04-27  Bruno Haible  <bruno@clisp.org>
46099
46100         * lib/rpmatch.c (rpmatch): Add some comments.
46101         Reported by James Youngman <jay@gnu.org>.
46102
46103 2008-04-27  Bruno Haible  <bruno@clisp.org>
46104
46105         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46106         quiet NaNs.
46107
46108 2008-04-27  Bruno Haible  <bruno@clisp.org>
46109
46110         Make test-yesno.sh work on mingw.
46111         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46112         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46113         (main): Set stdin to binary mode.
46114         * modules/yesno-tests (Depends-on): Add binary-io.
46115
46116 2008-04-27  Bruno Haible  <bruno@clisp.org>
46117
46118         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46119         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46120         argument that lie outside the IEEE 854 domain.
46121         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46122         (gl_ISFINITE): Use it.
46123         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46124
46125 2008-04-27  Bruno Haible  <bruno@clisp.org>
46126
46127         Allow local renaming in config.h.
46128         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46129
46130 2008-04-27  Bruno Haible  <bruno@clisp.org>
46131
46132         * lib/memchr.c (__memchr): Change type of 'i'.
46133         * lib/memchr2.c (memchr2): Likewise.
46134
46135 2008-04-26  Eric Blake  <ebb9@byu.net>
46136         and Bruno Haible  <bruno@clisp.org>
46137
46138         Optimize and test memrchr.
46139         * modules/memrchr (Depends-on): Add intprops.
46140         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46141         * modules/memrchr-tests: New file.
46142         * tests/test-memrchr.c: New file.
46143
46144 2008-04-26  Bruno Haible  <bruno@clisp.org>
46145
46146         Add tentative support for DragonFly BSD.
46147         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46148         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46149         fp.
46150         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46151         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46152         * lib/fpurge.c (fpurge): Likewise.
46153         * lib/freadable.c (freaadable): Likewise.
46154         * lib/freadahead.c (freadahead): Likewise.
46155         * lib/freading.c (freading): Likewise.
46156         * lib/freadptr.c (freadptr): Likewise.
46157         * lib/freadseek.c (freadptrinc): Likewise.
46158         * lib/fseeko.c (fseeko): Likewise.
46159         * lib/fseterr.c (fseterr): Likewise.
46160         * lib/fwritable.c (fwritable): Likewise.
46161         * lib/fwriting.c (fwriting): Likewise.
46162
46163 2008-04-26  Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/stdio-impl.h: New file.
46166         * lib/fbufmode.c: Include stdio-impl.h.
46167         (fbufmode): Use fp_, remove redundant #defines.
46168         * lib/fflush.c: Include stdio-impl.h.
46169         (clear_ungetc_buffer): Remove redundant #defines.
46170         * lib/fpurge.c: Include stdio-impl.h.
46171         (fpurge): Remove redundant #defines.
46172         * lib/freadable.c: Include stdio-impl.h.
46173         (freadable): Remove redundant #defines.
46174         * lib/freadahead.c: Include stdio-impl.h.
46175         (freadahead): Remove redundant #defines.
46176         * lib/freading.c: Include stdio-impl.h.
46177         (freading): Remove redundant #defines.
46178         * lib/freadptr.c: Include stdio-impl.h.
46179         (freadptr): Remove redundant #defines.
46180         * lib/freadseek.c: Include stdio-impl.h.
46181         (freadptrinc): Remove redundant #defines.
46182         * lib/fseeko.c: Include stdio-impl.h.
46183         (rpl_fseeko): Remove redundant #defines.
46184         * lib/fseterr.c: Include stdio-impl.h.
46185         (fseterr): Remove redundant #defines.
46186         * lib/fwritable.c: Include stdio-impl.h.
46187         (fwritable: Remove redundant #defines.
46188         * lib/fwriting.c: Include stdio-impl.h.
46189         (fwriting): Remove redundant #defines.
46190         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46191         * modules/fflush (Files): Likewise.
46192         * modules/fpurge (Files): Likewise.
46193         * modules/freadable (Files): Likewise.
46194         * modules/freadahead (Files): Likewise.
46195         * modules/freading (Files): Likewise.
46196         * modules/freadptr (Files): Likewise.
46197         * modules/freadseek (Files): Likewise.
46198         * modules/fseeko (Files): Likewise.
46199         * modules/fseterr (Files): Likewise.
46200         * modules/fwritable (Files): Likewise.
46201         * modules/fwriting (Files): Likewise.
46202
46203 2008-04-26  Bruno Haible  <bruno@clisp.org>
46204
46205         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46206         restore_seek_optimization, update_fpos_cache): New functions, extracted
46207         from rpl_fflush.
46208         (rpl_fflush): Use them.
46209         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46210         (gl_REPLACE_FFLUSH): Use it.
46211
46212 2008-04-26  Bruno Haible  <bruno@clisp.org>
46213
46214         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46215         on Solaris.
46216         * tests/test-xstrtoimax.sh: Likewise.
46217         * tests/test-xstrtoumax.sh: Likewise.
46218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46219
46220 2008-04-26  Bruno Haible  <bruno@clisp.org>
46221
46222         * modules/memchr-tests: New file.
46223         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46224
46225 2008-04-26  Eric Blake  <ebb9@byu.net>
46226             Bruno Haible  <bruno@clisp.org>
46227
46228         * lib/memchr.c: Include intprops.h.
46229         (__memchr): Optimize parallel detection of matching bytes. Rename local
46230         variables. Add explanatory comments.
46231
46232 2008-04-26  Bruno Haible  <bruno@clisp.org>
46233
46234         Fix module 'memchr', broken since 2000-10-28.
46235         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46236
46237 2008-04-26  Bruno Haible  <bruno@clisp.org>
46238
46239         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46240         comments.
46241
46242 2008-04-25  Eric Blake  <ebb9@byu.net>
46243
46244         Use native fstatat on cygwin 1.7.0.
46245         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46246         first.
46247
46248 2008-04-23  Eric Blake  <ebb9@byu.net>
46249
46250         Improve memchr2 performance.
46251         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46252         NUL bytes.
46253         * modules/memchr2 (Depends-on): Use intprops.h.
46254
46255 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46256
46257         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46258         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46259         <blp@cs.stanford.edu>.
46260
46261 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46262
46263         * lib/arpa_inet.in.h: New file.
46264
46265         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46266         (Makefile.am): Sed in substitute header file.
46267
46268         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46269         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46270
46271         * modules/inet_ntop (configure.ac): Use
46272         gl_ARPA_INET_MODULE_INDICATOR.
46273
46274         * modules/inet_pton (configure.ac): Use
46275         gl_ARPA_INET_MODULE_INDICATOR.
46276
46277 2008-04-22  Jim Meyering  <meyering@redhat.com>
46278
46279         * modules/verify (License): Re-license as LGPLv2+.
46280
46281 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46282
46283         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46284         parameter to void* as per POSIX standard (MinGW uses char*).
46285
46286 2008-04-21  Bruno Haible  <bruno@clisp.org>
46287
46288         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46289         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46290         Define to replacements if REPLACE_ISWCNTRL is 1.
46291         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46292         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46293         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46294         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46295         what it fixes.
46296         * doc/posix-functions/iswalpha.texi: Likewise.
46297         * doc/posix-functions/iswblank.texi: Likewise.
46298         * doc/posix-functions/iswcntrl.texi: Likewise.
46299         * doc/posix-functions/iswdigit.texi: Likewise.
46300         * doc/posix-functions/iswgraph.texi: Likewise.
46301         * doc/posix-functions/iswlower.texi: Likewise.
46302         * doc/posix-functions/iswprint.texi: Likewise.
46303         * doc/posix-functions/iswpunct.texi: Likewise.
46304         * doc/posix-functions/iswspace.texi: Likewise.
46305         * doc/posix-functions/iswupper.texi: Likewise.
46306         * doc/posix-functions/iswxdigit.texi: Likewise.
46307         Reported by Alain Guibert.
46308
46309 2008-04-21  Bruno Haible  <bruno@clisp.org>
46310
46311         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46312         Patch by Alain Guibert.
46313
46314 2008-04-21  Bruno Haible  <bruno@clisp.org>
46315
46316         Fix test failures on mingw.
46317         * tests/test-xstrtol.c (print_no_progname): New function.
46318         (main): Install it in error_print_progname hook.
46319         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46320         * tests/test-xstrtoimax.sh: Likewise.
46321         * tests/test-xstrtoumax.sh: Likewise.
46322
46323 2008-04-21  Bruno Haible  <bruno@clisp.org>
46324
46325         Fix test failure on mingw.
46326         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46327
46328 2008-04-21  Bruno Haible  <bruno@clisp.org>
46329
46330         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46331         Actually assign a value.
46332
46333 2008-04-20  Bruno Haible  <bruno@clisp.org>
46334
46335         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46336         take 2.
46337         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46338         'canonicalize-lgpl' module is also used.
46339         * lib/canonicalize-lgpl.c: Undo last change.
46340         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46341
46342 2008-04-20  Bruno Haible  <bruno@clisp.org>
46343
46344         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46345         config.h. Provide _mkdir based fallback for mingw.
46346         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46347         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46348         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46349         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46350         rather than defining mkdir in config.h.
46351         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46352         (gl_SYS_STAT_H_DEFAULTS): New macro.
46353         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46354         HAVE_IO_H any more.
46355         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46356         HAVE_DECL_MKDIR and HAVE_IO_H.
46357
46358 2008-04-20  Bruno Haible  <bruno@clisp.org>
46359
46360         * lib/isapipe.c: Port to native Windows platforms.
46361
46362 2008-04-20  Bruno Haible  <bruno@clisp.org>
46363
46364         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46365
46366 2008-04-21  Eric Blake  <ebb9@byu.net>
46367
46368         Work around preprocessors that don't handle UINTMAX_MAX.
46369         * lib/memchr2.c (memchr2): Avoid embedded #if.
46370         Reported by Alain Guibert, fix suggested by Bruno Haible.
46371
46372 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46373
46374         * doc/posix-functions/strftime.texi (strftime): Explain better
46375         Windows incompatibility.  Suggested by Micah Cowan
46376         <micah@cowan.name>.
46377
46378 2008-04-20  Bruno Haible  <bruno@clisp.org>
46379
46380         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46381         unistr/u8-mblen.
46382
46383 2008-04-20  Bruno Haible  <bruno@clisp.org>
46384
46385         Fix test failure on platforms with non-GNU iconv.
46386         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46387         (U_TO_U8): Use it, rather than u16_to_u8.
46388         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46389         units at the end of the input string.
46390         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46391
46392 2008-04-20  Bruno Haible  <bruno@clisp.org>
46393
46394         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46395         when the resulting length is 0.
46396         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46397
46398 2008-04-20  Bruno Haible  <bruno@clisp.org>
46399
46400         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46401         works.
46402         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46403
46404 2008-04-20  Bruno Haible  <bruno@clisp.org>
46405
46406         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46407         * modules/tsearch-tests (configure.ac): Test for initstate function.
46408
46409 2008-04-20  Bruno Haible  <bruno@clisp.org>
46410
46411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46412         for nlink_t if missing.
46413         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46414
46415 2008-04-19  Bruno Haible  <bruno@clisp.org>
46416
46417         Work around snprintf bug on Linux libc5.
46418         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46419         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46420         gl_SNPRINTF_SIZE1.
46421         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46422         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46423         that test failed.
46424         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46425         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46426         * modules/snprintf (Files): Add m4/printf.m4.
46427         * modules/vsnprintf (Files): Likewise.
46428         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46429         * doc/posix-functions/vsnprintf.texi: Likewise.
46430
46431 2008-04-19  Bruno Haible  <bruno@clisp.org>
46432
46433         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46434         from 0.0058 to less than 10^-7.
46435
46436 2008-04-19  Bruno Haible  <bruno@clisp.org>
46437
46438         Fix rounding when a precision is given.
46439         * lib/vasnprintf.c (is_borderline): New function.
46440         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46441         9...9x.
46442         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46443         %e, %g.
46444         * tests/test-vasprintf-posix.c (test_function): Likewise.
46445         * tests/test-snprintf-posix.h (test_function): Likewise.
46446         * tests/test-sprintf-posix.h (test_function): Likewise.
46447         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46448         * tests/test-printf-posix.h (test_function): Likewise.
46449         * tests/test-printf-posix.output: Update.
46450         Reported by John Darrington <john@darrington.wattle.id.au> via
46451         Ben Pfaff <blp@cs.stanford.edu>.
46452
46453 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46454
46455         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46456         Suggested by Bruno Haible <bruno@clisp.org>.
46457
46458 2008-04-17  Bruno Haible  <bruno@clisp.org>
46459
46460         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46461         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46462         implementation.
46463         Patch by Bruce Merry <bmerry@gmail.com>.
46464
46465 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46466
46467         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46468         doesn't work under Windows.
46469
46470 2008-04-16  Bruno Haible  <bruno@clisp.org>
46471
46472         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46473         New macros.
46474         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46475         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46476         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46477         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46478         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46479         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46480         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46481         macros.
46482         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46483         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46484         Northern Sotho, Uighur.
46485
46486 2008-04-16  Bruno Haible  <bruno@clisp.org>
46487
46488         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46489         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46490         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46491         Reported by Daniel Bergström <daniel@octocode.com>.
46492
46493 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46494             Bruno Haible  <bruno@clisp.org>
46495
46496         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46497         function.
46498         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46499         New functions, mostly extracted from gl_locale_name_default.
46500         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46501
46502 2008-04-16  Eric Blake  <ebb9@byu.net>
46503
46504         Adjust strtod detection to catch glibc 2.7 bug.
46505         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46506         Reported by John Gatewood Ham.
46507
46508 2008-04-16  Bruno Haible  <bruno@clisp.org>
46509
46510         Add tentative support for Linux libc5.
46511         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46512         * lib/fpurge.c (fpurge): Likewise.
46513         * lib/freadable.c (freadable): Likewise.
46514         * lib/freadahead.c (freadahead): Likewise.
46515         * lib/freading.c (freading): Likewise.
46516         * lib/freadptr.c (freadptr): Likewise.
46517         * lib/freadseek.c (freadptrinc): Likewise.
46518         * lib/fseeko.c (rpl_fseeko): Likewise.
46519         * lib/fseterr.c (fseterr): Likewise.
46520         * lib/fwritable.c (fwritable): Likewise.
46521         * lib/fwriting.c (fwriting): Likewise.
46522         Reported by Alain Guibert <alguibert+bts@free.fr>.
46523
46524 2008-04-15  Bruno Haible  <bruno@clisp.org>
46525
46526         * modules/mathl (configure.ac): Define module indicator.
46527
46528 2008-04-15  Bruno Haible  <bruno@clisp.org>
46529
46530         * lib/logl.c (logl): Remove unused variables.
46531
46532 2008-04-15  Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46535         fails.
46536
46537 2008-04-15  Bruno Haible  <bruno@clisp.org>
46538
46539         * lib/trim.c (trim2): Fix argument of isspace() macro.
46540
46541 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46542
46543         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46544         to 0.
46545         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46546
46547 2008-04-14  Bruno Haible  <bruno@clisp.org>
46548
46549         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46550         AC_LANG_PROGRAM argument.
46551         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46552         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46554         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46555         * m4/math_h.m4 (gl_MATH_H): Likewise.
46556         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46557         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46558         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46559         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46560         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46561         * m4/regex.m4 (gl_REGEX): Likewise.
46562         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46563         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46564         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46565         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46566         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46567         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46568         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46569         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46570
46571 2008-04-14  Jim Meyering  <meyering@redhat.com>
46572
46573         test-strtod: fix typos: s/abs/fabs/
46574         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46575
46576 2008-04-13  Bruno Haible  <bruno@clisp.org>
46577
46578         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46579         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46580         module is also used and while not building the reloc-wrapper.
46581
46582 2008-04-13  Bruno Haible  <bruno@clisp.org>
46583
46584         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46585
46586 2008-04-13  Bruno Haible  <bruno@clisp.org>
46587
46588         Fix AIX compilation failure introduced on 2008-04-02.
46589         * tests/test-frexp.c (exp): Undefine before redefining.
46590         * tests/test-frexpl.c (exp): Likewise.
46591
46592 2008-04-13  Bruno Haible  <bruno@clisp.org>
46593
46594         Work around a HP-UX stdio bug.
46595         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46596         * tests/test-ftello.c (main): Likewise.
46597         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46598         * doc/posix-functions/ftello.texi: Likewise.
46599
46600 2008-04-13  Bruno Haible  <bruno@clisp.org>
46601
46602         Make test-signbit pass on HP-UX/hppa.
46603         * tests/test-signbit.c (minus_zerol): New variable.
46604         (test_signbitl): Use it.
46605
46606 2008-04-13  Bruno Haible  <bruno@clisp.org>
46607
46608         Make truncl work on OSF/1 4.0.
46609         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46610         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46611         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46613         HAVE_DECL_TRUNCL.
46614         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46615         HAVE_DECL_TRUNCL.
46616         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46617
46618 2008-04-13  Bruno Haible  <bruno@clisp.org>
46619
46620         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46621
46622 2008-04-13  Bruno Haible  <bruno@clisp.org>
46623
46624         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46625         expression, so as to avoid HP-UX 11 cc compiler bug.
46626
46627 2008-04-13  Bruno Haible  <bruno@clisp.org>
46628
46629         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46630
46631 2008-04-13  Bruno Haible  <bruno@clisp.org>
46632
46633         * lib/git-merge-changelog.c: Remove empty declaration outside of
46634         functions.
46635
46636 2008-04-13  Bruno Haible  <bruno@clisp.org>
46637
46638         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46639
46640 2008-04-13  Bruno Haible  <bruno@clisp.org>
46641
46642         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46643         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46644         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46645         also if it exists but lacks definitions of the SHUT_* macros.
46646         * modules/sys_socket (Description): Update.
46647         Reported by Elbert Pol <e.pol@chello.nl>.
46648
46649 2008-04-13  Bruno Haible  <bruno@clisp.org>
46650
46651         * lib/localcharset.c (OS2): Don't redefine if already defined.
46652         Reported by Elbert Pol <e.pol@chello.nl>.
46653
46654 2008-04-13  Bruno Haible  <bruno@clisp.org>
46655
46656         * lib/binary-io.h [__EMX__]: Include <io.h>.
46657         Reported by Elbert Pol <e.pol@chello.nl>.
46658
46659 2008-04-12  Bruno Haible  <bruno@clisp.org>
46660
46661         * lib/fpucw.h: Enable the definitions also for x86_64.
46662         Needed for NetBSD/x86_64.
46663         Reported by Thomas Klausner <tk@giga.or.at>.
46664
46665 2008-04-12  Bruno Haible  <bruno@clisp.org>
46666
46667         * tests/test-strtod.c: Include isnand.h.
46668         (main): Use isnand instead of isnan.
46669         Reported by Jim Meyering.
46670
46671 2008-04-12  Bruno Haible  <bruno@clisp.org>
46672
46673         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46674         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46675
46676 2008-04-12  Jim Meyering  <meyering@redhat.com>
46677
46678         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46679
46680 2008-04-12  Bruno Haible  <bruno@clisp.org>
46681
46682         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46683         Reported by Elbert Pol <e.pol@chello.nl>.
46684
46685 2008-04-12  Eric Blake  <ebb9@byu.net>
46686
46687         Work around Solaris 10 math.h bug.
46688         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46689         (gl_MATH_H_DEFAULTS): Set up default.
46690         * modules/math (Makefile.am): Replace new indicators.
46691         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46692         * tests/test-math.c (main): Test this.
46693         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46694         * doc/posix-headers/math.texi (math.h): Mention bug.
46695         Reported by Nelson H. F. Beebe and Jim Meyering.
46696
46697 2008-04-11  Bruno Haible  <bruno@clisp.org>
46698
46699         Adapt to future versions of Apple GCC.
46700         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46701         Reported by Peter O'Gorman <peter@pogma.com>.
46702
46703 2008-04-11  Bruno Haible  <bruno@clisp.org>
46704
46705         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46706
46707 2008-04-11  Bruno Haible  <bruno@clisp.org>
46708
46709         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46710
46711         * modules/getaddrinfo-tests (Makefile.am): Define
46712         test_getaddrinfo_LDADD.
46713
46714 2008-04-11  Bruno Haible  <bruno@clisp.org>
46715
46716         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46717         (init): Fix syntax error.
46718         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46719         is declared.
46720
46721 2008-04-11  Bruno Haible  <bruno@clisp.org>
46722
46723         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46724         * modules/glob (Depends-on): Add stdbool.
46725
46726 2008-04-11  Bruno Haible  <bruno@clisp.org>
46727
46728         * lib/trim.c: Include <string.h>.
46729
46730 2008-04-11  Eric Blake  <ebb9@byu.net>
46731
46732         Avoid compile failure on OS/2.
46733         * lib/regex_internal.h (internal_function): Disable optimization
46734         on OS/2 (__EMX__), where it caused compiler error.
46735         Reported by Elbert Pol.
46736
46737 2008-04-11  Bruno Haible  <bruno@clisp.org>
46738
46739         Flush the standard error stream before aborting. Needed on mingw.
46740         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46741         * tests/test-array_list.c (ASSERT): Likewise.
46742         * tests/test-array_oset.c (ASSERT): Likewise.
46743         * tests/test-avltree_list.c (ASSERT): Likewise.
46744         * tests/test-avltree_oset.c (ASSERT): Likewise.
46745         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46746         * tests/test-binary-io.c (ASSERT): Likewise.
46747         * tests/test-byteswap.c (ASSERT): Likewise.
46748         * tests/test-c-ctype.c (ASSERT): Likewise.
46749         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46750         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46751         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46752         * tests/test-c-strstr.c (ASSERT): Likewise.
46753         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46754         * tests/test-canonicalize.c (ASSERT): Likewise.
46755         * tests/test-carray_list.c (ASSERT): Likewise.
46756         * tests/test-ceilf1.c (ASSERT): Likewise.
46757         * tests/test-ceilf2.c (ASSERT): Likewise.
46758         * tests/test-ceill.c (ASSERT): Likewise.
46759         * tests/test-count-one-bits.c (ASSERT): Likewise.
46760         * tests/test-fbufmode.c (ASSERT): Likewise.
46761         * tests/test-fflush2.c (ASSERT): Likewise.
46762         * tests/test-floorf1.c (ASSERT): Likewise.
46763         * tests/test-floorf2.c (ASSERT): Likewise.
46764         * tests/test-floorl.c (ASSERT): Likewise.
46765         * tests/test-fopen.c (ASSERT): Likewise.
46766         * tests/test-fpending.c (ASSERT): Likewise.
46767         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46768         * tests/test-fpurge.c (ASSERT): Likewise.
46769         * tests/test-freadable.c (ASSERT): Likewise.
46770         * tests/test-freadahead.c (ASSERT): Likewise.
46771         * tests/test-freading.c (ASSERT): Likewise.
46772         * tests/test-freadptr.c (ASSERT): Likewise.
46773         * tests/test-freadptr2.c (ASSERT): Likewise.
46774         * tests/test-freadseek.c (ASSERT): Likewise.
46775         * tests/test-freopen.c (ASSERT): Likewise.
46776         * tests/test-frexp.c (ASSERT): Likewise.
46777         * tests/test-frexpl.c (ASSERT): Likewise.
46778         * tests/test-fseek.c (ASSERT): Likewise.
46779         * tests/test-fseeko.c (ASSERT): Likewise.
46780         * tests/test-fstrcmp.c (ASSERT): Likewise.
46781         * tests/test-ftell.c (ASSERT): Likewise.
46782         * tests/test-ftello.c (ASSERT): Likewise.
46783         * tests/test-func.c (ASSERT): Likewise.
46784         * tests/test-fwritable.c (ASSERT): Likewise.
46785         * tests/test-fwriting.c (ASSERT): Likewise.
46786         * tests/test-getdelim.c (ASSERT): Likewise.
46787         * tests/test-getline.c (ASSERT): Likewise.
46788         * tests/test-i-ring.c (ASSERT): Likewise.
46789         * tests/test-iconv-utf.c (ASSERT): Likewise.
46790         * tests/test-iconv.c (ASSERT): Likewise.
46791         * tests/test-isfinite.c (ASSERT): Likewise.
46792         * tests/test-isnand.c (ASSERT): Likewise.
46793         * tests/test-isnanf.c (ASSERT): Likewise.
46794         * tests/test-isnanl.h (ASSERT): Likewise.
46795         * tests/test-ldexpl.c (ASSERT): Likewise.
46796         * tests/test-linked_list.c (ASSERT): Likewise.
46797         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46798         * tests/test-localename.c (ASSERT): Likewise.
46799         * tests/test-lseek.c (ASSERT): Likewise.
46800         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46801         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46802         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46803         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46804         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46805         * tests/test-mbschr.c (ASSERT): Likewise.
46806         * tests/test-mbscspn.c (ASSERT): Likewise.
46807         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46808         * tests/test-mbspbrk.c (ASSERT): Likewise.
46809         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46810         * tests/test-mbsrchr.c (ASSERT): Likewise.
46811         * tests/test-mbsspn.c (ASSERT): Likewise.
46812         * tests/test-mbsstr1.c (ASSERT): Likewise.
46813         * tests/test-mbsstr2.c (ASSERT): Likewise.
46814         * tests/test-mbsstr3.c (ASSERT): Likewise.
46815         * tests/test-memchr2.c (ASSERT): Likewise.
46816         * tests/test-memmem.c (ASSERT): Likewise.
46817         * tests/test-open.c (ASSERT): Likewise.
46818         * tests/test-printf-frexp.c (ASSERT): Likewise.
46819         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46820         * tests/test-printf-posix.c (ASSERT): Likewise.
46821         * tests/test-quotearg.c (ASSERT): Likewise.
46822         * tests/test-rbtree_list.c (ASSERT): Likewise.
46823         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46824         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46825         * tests/test-round1.c (ASSERT): Likewise.
46826         * tests/test-roundf1.c (ASSERT): Likewise.
46827         * tests/test-roundl.c (ASSERT): Likewise.
46828         * tests/test-signbit.c (ASSERT): Likewise.
46829         * tests/test-sleep.c (ASSERT): Likewise.
46830         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46831         * tests/test-snprintf.c (ASSERT): Likewise.
46832         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46833         * tests/test-stat-time.c (ASSERT): Likewise.
46834         * tests/test-strcasestr.c (ASSERT): Likewise.
46835         * tests/test-strerror.c (ASSERT): Likewise.
46836         * tests/test-striconv.c (ASSERT): Likewise.
46837         * tests/test-striconveh.c (ASSERT): Likewise.
46838         * tests/test-striconveha.c (ASSERT): Likewise.
46839         * tests/test-strsignal.c (ASSERT): Likewise.
46840         * tests/test-strstr.c (ASSERT): Likewise.
46841         * tests/test-strtod.c (ASSERT): Likewise.
46842         * tests/test-trunc1.c (ASSERT): Likewise.
46843         * tests/test-trunc2.c (ASSERT): Likewise.
46844         * tests/test-truncf1.c (ASSERT): Likewise.
46845         * tests/test-truncf2.c (ASSERT): Likewise.
46846         * tests/test-truncl.c (ASSERT): Likewise.
46847         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46848         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46849         * tests/test-vasnprintf.c (ASSERT): Likewise.
46850         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46851         * tests/test-vasprintf.c (ASSERT): Likewise.
46852         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46853         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46854         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46855         * tests/test-vsnprintf.c (ASSERT): Likewise.
46856         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46857         * tests/test-wcwidth.c (ASSERT): Likewise.
46858         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46859         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46860         * tests/test-xvasprintf.c (ASSERT): Likewise.
46861         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46862         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46863         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46864         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46865         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46866         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46867         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46868         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46869         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46870         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46871         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46872         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46873         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46874         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46875         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46876         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46877         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46878         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46879         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46880         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46881         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46882         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46883         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46884         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46885         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46886         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46887         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46888         * tests/unictype/test-combining.c (ASSERT): Likewise.
46889         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46890         * tests/unictype/test-digit.c (ASSERT): Likewise.
46891         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46892         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46893         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46894         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46895         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46896         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46897         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46898         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46899         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46900         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46901         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46902         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46903         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46904         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46905         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46906         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46907         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46908         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46909         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46910         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46911         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46912         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46913         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46914         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46915         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46916         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46917         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46918         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46919         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46920         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46921         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46922         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46923         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46924         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46925         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46926         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46927         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46928         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46929         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46930         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46931         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46932         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46933         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46934         Reported by Eric Blake.
46935
46936 2008-04-11  Bruno Haible  <bruno@clisp.org>
46937
46938         * lib/wchar.in.h: Tweak comment.
46939
46940 2008-04-11  Bruno Haible  <bruno@clisp.org>
46941
46942         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46943         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46944         gl_COMMON.
46945         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46946
46947 2008-04-11  Bruno Haible  <bruno@clisp.org>
46948
46949         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46950
46951 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46952
46953         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46954         of attempting to use non-existing /dev/*random.  Based on patch
46955         from Adam Strzelecki <ono@java.pl> in
46956         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46957
46958 2008-04-08  Bruno Haible  <bruno@clisp.org>
46959
46960         Add tentative support for emx+gcc.
46961         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46962         * lib/fpurge.c (fpurge): Likewise.
46963         * lib/freadable.c (freadable): Likewise.
46964         * lib/freadahead.c (freadahead): Likewise.
46965         * lib/freading.c (freading): Likewise.
46966         * lib/freadptr.c (freadptr): Likewise.
46967         * lib/freadseek.c (freadptrinc): Likewise.
46968         * lib/fseeko.c (rpl_fseeko): Likewise.
46969         * lib/fseterr.c (fseterr): Likewise.
46970         * lib/fwritable.c (fwritable): Likewise.
46971         * lib/fwriting.c (fwriting): Likewise.
46972         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46973
46974 2008-04-09  Eric Blake  <ebb9@byu.net>
46975
46976         Avoid some autoconf warnings.
46977         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46978         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46979         * m4/afs.m4 (gl_AFS): Likewise.
46980         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46981         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46982         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46983         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46984         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46985         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46986         (AC_CHECK_DECLS_ONCE): Likewise.
46987         Rename file...
46988         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46989         gnulib-tool requires autoconf 2.59 or better.
46990         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46991
46992 2008-04-08  Eric Blake  <ebb9@byu.net>
46993
46994         Use 'git describe --match' if present (added in git 1.5.5).
46995         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46996         if possible.
46997
46998 2008-04-08  Bruno Haible  <bruno@clisp.org>
46999
47000         Add tentative support for OpenServer.
47001         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47002         _ptr, _cnt.
47003         * lib/fpurge.c (fpurge): Likewise.
47004         * lib/freadable.c (freadable): Likewise.
47005         * lib/freadahead.c (freadahead): Likewise.
47006         * lib/freading.c (freading): Likewise.
47007         * lib/freadptr.c (freadptr): Likewise.
47008         * lib/freadseek.c (freadptrinc): Likewise.
47009         * lib/fseeko.c (rpl_fseeko): Likewise.
47010         * lib/fseterr.c (fseterr): Likewise.
47011         * lib/fwritable.c (fwritable): Likewise.
47012         * lib/fwriting.c (fwriting): Likewise.
47013         Reported by Roger Cornelius <rac@tenzing.org> and
47014         Brian K. White <brian@aljex.com>.
47015
47016 2008-04-06  Jim Meyering  <meyering@redhat.com>
47017
47018         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47019
47020 2008-04-06  Bruno Haible  <bruno@clisp.org>
47021
47022         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47023         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47024         * tests/test-printf-posix.sh: Likewise.
47025         * tests/test-vfprintf-posix.sh: Likewise.
47026         * tests/test-vprintf-posix.sh: Likewise.
47027         * tests/test-xprintf-posix.sh: Likewise.
47028
47029 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47030
47031         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47032         hide error from 'ls', needed on OS/2.
47033         Report by Elbert Pol <elbert.pol@gmail.com>.
47034
47035 2008-04-04  Eric Blake  <ebb9@byu.net>
47036
47037         Make test-fseeko.c failures meaningful.
47038         * tests/test-fseeko.c: Print line number on failure.
47039         * tests/test-fseek.c: Likewise.
47040         Reported by Nelson H. F. Beebe.
47041
47042         Improve strtod bug detection check.
47043         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47044         required for Solaris 10.
47045         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47046
47047 2008-04-04  Bruno Haible  <bruno@clisp.org>
47048
47049         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47050         by m4/setenv.m4.
47051
47052 2008-04-03  Eric Blake  <ebb9@byu.net>
47053
47054         Ensure sane .version contents.
47055         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47056         version string.
47057         * build-aux/git-version-gen: Improve documentation.
47058
47059         Make GNU make output nicer.
47060         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47061         MAKECMDGOALS to enforce message for all command line targets.  Set
47062         srcdir for use in maint.mk.
47063
47064         Another maintainer tweak.
47065         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47066         a target that regenerates version.
47067
47068 2008-04-03  Jim Meyering  <meyering@redhat.com>
47069
47070         vc-list-files: don't cause coreutils "make po-check" failure
47071         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47072
47073 2008-04-03  Eric Blake  <ebb9@byu.net>
47074
47075         Allow VPATH usage of vc-list-files.
47076         * build-aux/vc-list-files (scriptversion): Add timestamp.
47077         (options): Add --help, --version, -C.
47078         (CVS): Support installed cvsu.
47079
47080 2008-04-02  Bruno Haible  <bruno@clisp.org>
47081
47082         Avoid some "statement with no effect" warnings from gcc.
47083         * tests/test-wctype.c (main): Explicitly ignore unused values.
47084         Reported by Jim Meyering.
47085
47086 2008-04-02  Jim Meyering  <meyering@redhat.com>
47087
47088         Avoid some warnings from "gcc -Wshadow".
47089         * tests/test-frexp.c (exp): Define to a different identifier.
47090         * tests/test-frexpl.c (exp): Likewise.
47091
47092 2008-04-03  Jim Meyering  <meyering@redhat.com>
47093
47094         bootstrap: remove dangling *.[ch] symlinks from lib
47095         * build-aux/bootstrap [dangling symlink removal]: Move find's
47096         -depth option to precede all others, to avoid a warning.
47097         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47098
47099 2008-04-02  Bruno Haible  <bruno@clisp.org>
47100
47101         Avoid some warnings from "gcc -Wshadow".
47102         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47103         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47104         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47105         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47106         Reported by Jim Meyering.
47107
47108 2008-04-01  Bruno Haible  <bruno@clisp.org>
47109
47110         Fix test to work on IRIX 6.5 with cc.
47111         * tests/test-math.c (numeric_equal): New function.
47112         (main): Use it.
47113
47114 2008-04-01  Bruno Haible  <bruno@clisp.org>
47115
47116         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47117
47118 2008-04-01  Bruno Haible  <bruno@clisp.org>
47119
47120         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47121         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47122         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47123         (Depends-on): Remove math.
47124
47125         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47126         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47127         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47128         (Depends-on): Remove math.
47129
47130         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47131         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47132         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47133         (Depends-on): Remove math.
47134         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47135         (Depends-on): Remove math.
47136
47137         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47138         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47139         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47140         (Depends-on): Remove math.
47141         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47142         (Depends-on): Remove math.
47143
47144         * tests/test-round1.c: Include nan.h.
47145         (main): Use NaNd instead of NAN.
47146         * modules/round-tests (Files): Add tests/nan.h.
47147
47148         * tests/test-trunc1.c: Include nan.h.
47149         (main): Use NaNd instead of NAN.
47150         * modules/trunc-tests (Files): Add tests/nan.h.
47151
47152         * tests/test-roundf1.c: Include nan.h.
47153         (main): Use NaNf instead of NAN.
47154         * modules/roundf-tests (Files): Add tests/nan.h.
47155
47156         * tests/test-truncf1.c: Include nan.h.
47157         (main): Use NaNf instead of NAN.
47158         * modules/truncf-tests (Files): Add tests/nan.h.
47159
47160         * tests/test-ceilf1.c: Include nan.h.
47161         (main): Use NaNf instead of NAN.
47162         * modules/ceilf-tests (Files): Add tests/nan.h.
47163
47164         * tests/test-floorf1.c: Include nan.h.
47165         (main): Use NaNf instead of NAN.
47166         * modules/floorf-tests (Files): Add tests/nan.h.
47167
47168         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47169         (main): Use NaNf instead of NAN.
47170         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47171
47172         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47173         (main): Use NaNd instead of NAN.
47174         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47175
47176         * tests/test-frexp.c: Include nan.h.
47177         (main): Use NaNd instead of NAN.
47178         * modules/frexp-tests (Files): Add tests/nan.h.
47179
47180         * lib/isnan.c: Don't include <math.h>.
47181         (FUNC): Don't use NAN macro.
47182         * modules/isnand-nolibm (Depends-on): Remove math.
47183         * modules/isnanf-nolibm (Depends-on): Remove math.
47184         * modules/isnanl (Depends-on): Remove math.
47185         * modules/isnanl-nolibm (Depends-on): Remove math.
47186
47187         * tests/nan.h: New file.
47188
47189 2008-04-01  Eric Blake  <ebb9@byu.net>
47190
47191         Fix typos.
47192         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47193         values to be the right type.
47194
47195         For now, cater to gnulib strtod inaccuracies.
47196         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47197         fractional results.  While not as nice from a QoI perspective, it
47198         is a quicker patch than correctly implementing decimal to binary
47199         rounding.
47200
47201 2008-03-31  Eric Blake  <ebb9@byu.net>
47202
47203         Guarantee a definition of NAN.
47204         * lib/math.in.h (NAN): Define if missing.
47205         * tests/test-math.c (main): Test it.
47206         * doc/posix-headers/math.texi (math.h): Document this.
47207         * lib/isnan.c (rpl_isnand): Use it.
47208         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47209         * tests/test-floorf1.c (NaN): Likewise.
47210         * tests/test-frexp.c (NaN): Likewise.
47211         * tests/test-isnand.c (NaN): Likewise.
47212         * tests/test-isnanf.c (NaN): Likewise.
47213         * tests/test-round1.c (NaN): Likewise.
47214         * tests/test-roundf1.c (NaN): Likewise.
47215         * tests/test-snprintf-posix.h (NaN): Likewise.
47216         * tests/test-sprintf-posix.h (NaN): Likewise.
47217         * tests/test-trunc1.c (NaN): Likewise.
47218         * tests/test-truncf1.c (NaN): Likewise.
47219         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47220         * tests/test-vasprintf-posix.c (NaN): Likewise.
47221         * modules/isnand-nolibm (Depends-on): Add math.
47222         * modules/isnanf-nolibm (Depends-on): Likewise.
47223         * modules/isnanl (Depends-on): Likewise.
47224         * modules/isnanl-nolibm (Depends-on): Likewise.
47225         * modules/snprintf-posix-tests (Depends-on): Likewise.
47226         * modules/sprintf-posix-tests (Depends-on): Likewise.
47227         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47228         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47229         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47230         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47231
47232 2008-03-31  Bruno Haible  <bruno@clisp.org>
47233
47234         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47235         * doc/posix-functions/strtod.texi: Likewise.
47236
47237 2008-03-31  Bruno Haible  <bruno@clisp.org>
47238
47239         * tests/test-strtod.c (main): Don't use C99 syntax.
47240
47241 2008-03-31  Bruno Haible  <bruno@clisp.org>
47242
47243         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47244         Reported by Eric Blake.
47245
47246 2008-03-31  Jim Meyering  <meyering@redhat.com>
47247
47248         Don't compare actual signbit return values.
47249         * tests/test-strtod.c (main): Rather, compare only their
47250         zero/non-zero nature.
47251
47252 2008-03-31  Eric Blake  <ebb9@byu.net>
47253
47254         More strtod documentation.
47255         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47256         failures as distinct bugs.
47257
47258 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47259
47260         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47261         Problem reported by Erik Benada in
47262         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47263
47264 2008-03-30  Bruno Haible  <bruno@clisp.org>
47265
47266         * tests/test-strtod.c: Add comments about which assertion fails on which
47267         platform.
47268         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47269
47270 2008-03-30  Eric Blake  <ebb9@byu.net>
47271
47272         Test signbit behavior on zeros.
47273         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47274         (test_signbitd, test_signbitl): Likewise.
47275
47276         More strtod touchups.
47277         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47278         sign of negative underflow, for now.  Use .5, not .1.
47279         * doc/posix-functions/strtod.texi (strtod): Mention these
47280         limitations.
47281         Reported by Jim Meyering.
47282
47283 2008-03-30  Bruno Haible  <bruno@clisp.org>
47284
47285         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47286         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47287
47288 2008-03-30  Bruno Haible  <bruno@clisp.org>
47289
47290         Avoid failure when attempting to return empty iconv results on some
47291         platforms.
47292         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47293         allocation, don't report ENOMEM when the resulting string is empty.
47294
47295 2008-03-30  Bruno Haible  <bruno@clisp.org>
47296
47297         Fix buffer overrun.
47298         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47299         Don't consider the width for tmp_length. Check count against tmp_length
47300         before doing the padding. Ensure enough allocation during padding.
47301
47302 2008-03-30  Eric Blake  <ebb9@byu.net>
47303
47304         strtod touchups.
47305         * lib/strtod.c (strtod): Avoid compiler warnings.
47306         Reported by Jim Meyering.
47307
47308 2008-03-30  Bruno Haible  <bruno@clisp.org>
47309
47310         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47311         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47312         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47313         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47314         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47315         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47316         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47317         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47318
47319         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47320         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47321         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47322         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47323         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47324         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47325         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47326         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47327
47328         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47329         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47330         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47331         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47332         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47333         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47334         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47335         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47336
47337         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47338         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47339
47340         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47341         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47342
47343         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47344         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47345
47346         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47347         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47348         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47349
47350         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47351         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47352         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47353
47354         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47355         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47356         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47357
47358         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47359         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47360         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47361
47362         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47363         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47364         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47365         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47366         (Depends-on): Add EOVERFLOW.
47367         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47368         (Depends-on): Add EOVERFLOW.
47369         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47370         (Depends-on): Add EOVERFLOW.
47371         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47372         (Depends-on): Add EOVERFLOW.
47373         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47374         (Depends-on): Add EOVERFLOW.
47375         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47376         (Depends-on): Add EOVERFLOW.
47377         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47378         (Depends-on): Add EOVERFLOW.
47379         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47380         (Depends-on): Add EOVERFLOW.
47381
47382         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47383         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47384         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47385
47386         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47388         * modules/snprintf (Depends-on): Add EOVERFLOW.
47389
47390         * lib/poll.c (EOVERFLOW): Remove fallback.
47391         * modules/poll (Depends-on): Add EOVERFLOW.
47392
47393         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47394         * modules/getugroups (Depends-on): Add EOVERFLOW.
47395
47396         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47397         * modules/getdelim (Depends-on): Add EOVERFLOW.
47398
47399         * lib/ftell.c (EOVERFLOW): Remove fallback.
47400         * modules/ftell (Depends-on): Add EOVERFLOW.
47401
47402         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47404         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47405
47406         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47407
47408         * modules/EOVERFLOW-tests: New file.
47409         * tests/test-EOVERFLOW.c: New file.
47410
47411         * modules/EOVERFLOW: New file.
47412         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47413
47414 2008-03-30  Bruno Haible  <bruno@clisp.org>
47415
47416         Fix bug introduced on 2007-06-10.
47417         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47418         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47419
47420 2008-03-30  Bruno Haible  <bruno@clisp.org>
47421
47422         Improve freadseek's efficiency after ungetc.
47423         * lib/freadseek.c: Include freadahead.h.
47424         (freadptrinc): New function, extracted from freadseek.
47425         (freadseek): Use it in a loop. Use freadahead to determine the number
47426         of loop iterations.
47427         * modules/freadseek (Depends-on): Add freadahead.
47428         (configure.ac): Require AC_C_INLINE.
47429
47430 2008-03-30  Bruno Haible  <bruno@clisp.org>
47431
47432         * lib/freadseek.c (freadseek): Don't ignore the return value of
47433         freadptr.
47434
47435 2008-03-29  Eric Blake  <ebb9@byu.net>
47436
47437         Add hex float support.
47438         * modules/strtod (Depends-on): Add c-ctype.
47439         (Link): Mention POW_LIB.
47440         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47441         whitespace between 'e' and exponent.
47442         * tests/test-strtod.c (main): Enable hex float tests.
47443         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47444         now provides.
47445
47446         Document various strtod bugs, with some fixes.
47447         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47448         "-0x", "inf", "nan", and hex constants.
47449         * doc/posix-functions/atof.texi (atof): Likewise.
47450         * modules/stdlib (Makefile.am): Support strtod.
47451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47452         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47453         detect additional strtod bugs.
47454         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47455         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47456         bool where appropriate.  Parse 'inf' and 'nan'.
47457         * tests/test-strtod.c: New file.
47458         * modules/strtod (Depends-on): Add stdbool, stdlib.
47459         (configure.ac): Turn on module indicator.
47460         * modules/strtod-tests: New module.
47461
47462 2008-03-29  Eric Blake  <ebb9@byu.net>
47463
47464         Fix ftell on mingw.
47465         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47466         * modules/ftell-tests (Depends-on): Add binary-io.
47467         * modules/ftello-tests (Depends-on): Likewise.
47468         * tests/test-ftell.c (main): Enhance test to cover behavior after
47469         ungetc.  Enforce binary mode.
47470         * tests/test-ftello.c (main): Likewise.
47471
47472         Pass test-freadseek on cygwin.
47473         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47474         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47475         ungetc buffer.
47476
47477         * tests/test-fflush2.c (main): Fix typo.
47478
47479 2008-03-29  Bruno Haible  <bruno@clisp.org>
47480
47481         * tests/test-fflush2.c (main): Temporarily disable the contents of
47482         this test.
47483         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47484         Reported by Eric Blake.
47485
47486 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47487
47488         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47489         (GC_SHA224_DIGEST_SIZE): Add.
47490
47491         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47492         (gc_hash_digest_length): Likewise.
47493         (gc_hash_buffer): Likewise.
47494
47495 2008-03-25  Bruno Haible  <bruno@clisp.org>
47496
47497         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47498         detail which gettext release to use.
47499         Reported by Simon Josefsson.
47500
47501 2008-03-26  Jim Meyering  <meyering@redhat.com>
47502
47503         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47504         * modules/gnumakefile (clean-GNUmakefile): Also, use
47505         test ... && ... || : syntax rather than if-then ... fi.
47506
47507         gnumakefile: Don't double-quote-expand $(VPATH) value.
47508         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47509
47510 2008-03-24  Eric Blake  <ebb9@byu.net>
47511
47512         Alter GNUmakefile to install into top directory.
47513         * modules/maintainer-makefile: Split, and add dependency...
47514         * modules/gnumakefile: to this new module.
47515         * build-aux/GNUmakefile: Move...
47516         * top/GNUmakefile: ...here.
47517         * build-aux/maint.mk: Move...
47518         * top/maint.mk: ...here.
47519         * MODULES.html.sh (Support for maintaining...): Document new
47520         module.
47521
47522 2008-03-23  Bruno Haible  <bruno@clisp.org>
47523
47524         * gnulib-tool: New options --vc-files, --no-vc-files.
47525         (func_usage): Document them.
47526         (vc_files): New variable.
47527         (func_import): Consider vc_files.
47528         (func_create_testdir): Set vc_files to empty.
47529         Suggested by Jim Meyering and Karl Berry.
47530
47531 2008-03-23  Bruno Haible  <bruno@clisp.org>
47532
47533         Fix regex compilation error on HP-UX 11.
47534         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47535         * modules/regex (Files): Add m4/mbstate_t.m4.
47536         Reported by Ton Voon <ton.voon@altinity.com>.
47537
47538 2008-03-23  Bruno Haible  <bruno@clisp.org>
47539
47540         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47541
47542 2008-03-23  Eric Blake  <ebb9@byu.net>
47543             Bruno Haible  <bruno@clisp.org>
47544
47545         Install files from top/ in the destination directory.
47546         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47547         augmentation also for the files from top/.
47548         (func_import, func_create_testdir): Rewrite file names:
47549         top/filename -> filename.
47550
47551 2008-03-23  Bruno Haible  <bruno@clisp.org>
47552
47553         Tweak "gnulib --version" output.
47554         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47555
47556 2008-03-23  Bruno Haible  <bruno@clisp.org>
47557
47558         Tweak "gnulib --version" output.
47559         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47560         rather than contents of ChangeLog, when possible.
47561
47562 2008-03-21  Eric Blake  <ebb9@byu.net>
47563
47564         More --version tweaks.
47565         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47566         date of last ChangeLog entry.
47567
47568 2008-03-21  Jim Meyering  <meyering@redhat.com>
47569
47570         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47571
47572 2008-03-20  Eric Blake  <ebb9@byu.net>
47573
47574         VPATH fix.
47575         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47576
47577 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47578
47579         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47580         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47581
47582 2008-03-20  Eric Blake  <ebb9@byu.net>
47583
47584         Sync GNUmakefile with coreutils.
47585         * build-aux/GNUmakefile (have-Makefile): Rename...
47586         (_have-Makefile): ...to this, for namespace consideration.
47587         (GNUmakefile.cfg): Include, if present.
47588         (_autoreconf): Define a default.
47589         (_is-dist-target): New rule for rebuilds to pick up intra-release
47590         version.
47591         (maint-cfg.mk): Rename...
47592         (cfg.mk): ...to this.
47593
47594 2008-03-18  Jim Meyering  <meyering@redhat.com>
47595
47596         New script and module: mktempd
47597         * MODULES.html.sh (maint+release support): Add mktempd.
47598         * build-aux/mktempd: New file.
47599         * modules/mktempd: New file.
47600
47601 2008-03-15  Jim Meyering  <meyering@redhat.com>
47602
47603         Undo last change.
47604         * lib/sha1.c, lib/md5.c: 63 != ~63.
47605         Reported by Andreas Schwab.
47606
47607         sha1.c, md5.c: Hoist a redundant expression.
47608         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47609         "ctx->buflen" only once, before calling *_process_block.
47610         * lib/md5.c (md5_process_bytes): Likewise.
47611
47612 2008-03-14  Eric Blake  <ebb9@byu.net>
47613
47614         Bump copyright year in files generated by gnulib-tool.
47615         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47616         gnulib-tool, rather than hard-coding it.
47617
47618         Fix 'gnulib-tool --version' output to work with git.
47619         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47620         (startup): ...here.
47621         (func_version): Use it to invoke git-version-gen, rather than
47622         relying on CVS keyword expansion.  Modernize wording.
47623         (cvsdatestamp, last_checkin_date, version): Kill unused
47624         variables.
47625
47626 2008-03-12  Jim Meyering  <meyering@redhat.com>
47627
47628         Recognize optional cast of the argument to free.
47629         * build-aux/useless-if-before-free: Update regexps.
47630
47631         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47632
47633 2008-03-11  Bruno Haible  <bruno@clisp.org>
47634
47635         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47636         by a single package.
47637         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47638         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47639         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47640         Reported by Sam Steingold <sds@gnu.org>.
47641
47642 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47643
47644         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47645         repositories.
47646
47647 2008-03-11  Bruno Haible  <bruno@clisp.org>
47648
47649         Avoid conflicts between local macro definitions.
47650         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47651         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47652
47653 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47654             Bruno Haible  <bruno@clisp.org>
47655
47656         Make va_copy work with some version of xlc on AIX 5.1.
47657         * lib/stdarg.in.h: New file.
47658         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47659         On AIX, use a <stdarg.h> file substitute.
47660         * modules/stdarg (Files): Add lib/stdarg.in.h.
47661         (Depends-on): Add include_next.
47662         (Makefile.am): Build a stdarg.h substitute if requested.
47663         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47664
47665 2008-03-10  Bruno Haible  <bruno@clisp.org>
47666
47667         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47668         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47669         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47670
47671 2008-03-10  Bruno Haible  <bruno@clisp.org>
47672
47673         * modules/stdlib (Depends-on): Add include_next, remove
47674         absolute-header.
47675
47676 2008-03-09  Bruno Haible  <bruno@clisp.org>
47677
47678         * lib/freadahead.h (freadahead): Document more precisely.
47679         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47680         the sum of both buffer sizes.
47681         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47682         * NEWS: Document the change.
47683
47684 2008-03-09  Bruno Haible  <bruno@clisp.org>
47685
47686         Extend freadptr to return also the buffer size.
47687         * lib/freadptr.h (freadptr): Add sizep argument.
47688         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47689         (freadptr): Add sizep argument. Determine buffer size like freadahead
47690         does.
47691         * tests/test-freadptr.c: Don't include freadahead.h.
47692         (main): Adapt for new calling convention of freadptr.
47693         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47694         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47695         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47696         tests/test-freadptr2.sh.
47697         (Depends): Remove freadahead.
47698         (TESTS): Add test-freadptr2.sh.
47699         (check_PROGRAMS): Add test-freadptr2.
47700
47701 2008-03-09  Bruno Haible  <bruno@clisp.org>
47702
47703         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47704         Report and solution by Simon Josefsson.
47705
47706 2008-03-06  Bruno Haible  <bruno@clisp.org>
47707
47708         Make fflush after ungetc work on BSD platforms.
47709         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47710         * tests/test-fflush2.c: New file.
47711         * tests/test-fflush2.sh: New file.
47712         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47713         tests/test-fflush2.c.
47714         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47715         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47716
47717 2008-03-06  Eric Blake  <ebb9@byu.net>
47718
47719         Likewise for ftello.
47720         * modules/ftello (Dependencies): Add extensions.
47721         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47722
47723 2008-03-06  Bruno Haible  <bruno@clisp.org>
47724
47725         * modules/fseeko (Dependencies): Add extensions.
47726         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47727         Needed on glibc systems.
47728
47729 2008-03-06  Bruno Haible  <bruno@clisp.org>
47730
47731         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47732         email address.
47733         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47734
47735 2008-03-06  Bruno Haible  <bruno@clisp.org>
47736
47737         * users.txt: Add libgnupdf.
47738
47739 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47740
47741         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47742         (Header File Substitutes, Function Substitutes,
47743         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47744         (Build robot for gnulib): Fix typo.
47745
47746 2008-03-06  Bruno Haible  <bruno@clisp.org>
47747
47748         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47749         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47750
47751 2008-03-06  Bruno Haible  <bruno@clisp.org>
47752
47753         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47754         * doc/gnulib.texi: Include it.
47755
47756 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47757
47758         * modules/func (License): Change license to unlimited; there was
47759         no LGPL parts in the module anyway.
47760
47761 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47762
47763         * modules/__func__: Renamed to modules/func.
47764         * modules/__func__-tests: Renamed to modules/func-tests.
47765         * tests/test-__func__.c: Renamed to tests/test-func.c.
47766         * m4/__func__.m4: Renamed to m4/func.m4.
47767         * doc/gnulib.texi (__func__): Section renamed to func.
47768         Suggested by Eric Blake <ebb9@byu.net>.
47769
47770 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47771
47772         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47773         about __func__.  Make example self-contained.  Suggested by Eric
47774         Blake <ebb9@byu.net>.
47775
47776         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47777         Suggested by Eric Blake <ebb9@byu.net>.
47778
47779 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47780
47781         * modules/__func__: New file.
47782         * modules/__func__-tests: New file.
47783         * tests/test-__func__.c: New file.
47784         * m4/__func__.m4: New file.
47785         * doc/gnulib.texi (__func__): Document __func__ module.
47786
47787 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47788
47789         * modules/byteswap (License): Re-license as LGPLv2+.
47790
47791 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47792
47793         * doc/Makefile: Add pdf target.
47794
47795 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47796
47797         * modules/inline (License): Use 'unlimited', since there are only
47798         *.m4 files in this module.
47799
47800 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47801             Bruno Haible  <bruno@clisp.org>
47802
47803         Add support for HP C 7.1 on OpenVMS 8.3.
47804         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47805
47806 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47807
47808         Update VMS specifics.
47809         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47810
47811 2008-03-02  Jim Meyering  <meyering@redhat.com>
47812
47813         Remove the last dependency on the "free" module.
47814         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47815         Reported by Bob Proulx.
47816
47817         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47818
47819         Remove useless "if" tests before free.  Deprecate "free" module.
47820         * doc/posix-functions/free.texi: Mention that this
47821         module is no longer useful.
47822         * modules/free (Notice): Say this module is obsolete.
47823         * modules/readutmp (Depends-on): Remove free.
47824         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47825         * lib/putenv.c (putenv): Likewise.
47826         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47827         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47828         * tests/test-c-strcasestr.c (main): Likewise.
47829         * tests/test-c-strstr.c (main): Likewise.
47830         * tests/test-mbscasestr1.c (main): Likewise.
47831         * tests/test-mbscasestr2.c (main): Likewise.
47832         * tests/test-mbsstr1.c (main): Likewise.
47833         * tests/test-mbsstr2.c (main): Likewise.
47834         * tests/test-memmem.c (main): Likewise.
47835         * tests/test-strcasestr.c (main): Likewise.
47836         * tests/test-striconv.c (main): Likewise.
47837         * tests/test-striconveh.c (main): Likewise.
47838         * tests/test-striconveha.c (main): Likewise.
47839         * tests/test-strstr.c (main): Likewise.
47840
47841         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47842
47843         bootstrap: sync from coreutils again
47844         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47845
47846 2008-03-01  Jim Meyering  <meyering@redhat.com>
47847
47848         bootstrap: sync from coreutils
47849         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47850         also when the target doesn't exist.
47851
47852 2008-03-01  Eric Blake  <ebb9@byu.net>
47853
47854         Fix bugs in last patch.
47855         * lib/memchr2.c (memchr2): Fix typo.
47856         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47857         extension.
47858         Reported by Bruce Korb.
47859
47860         New module 'memchr2'.
47861         * modules/memchr2: New file.
47862         * modules/memchr2-tests: Likewise.
47863         * lib/memchr2.h: Likewise.
47864         * lib/memchr2.c: Likewise, based on memchr.c.
47865         * tests/test-memchr2.c: New test.
47866         * MODULES.html.sh (String handling): Add memchr2.
47867
47868 2008-02-29  Bruno Haible  <bruno@clisp.org>
47869
47870         * modules/freadseek-tests: New file.
47871         * tests/test-freadseek.sh: New file.
47872         * tests/test-freadseek.c: New file.
47873
47874         New module 'freadseek'.
47875         * modules/freadseek: New file.
47876         * lib/freadseek.h: New file.
47877         * lib/freadseek.c: New file.
47878         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47879
47880 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47881
47882         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47883         wydawca.
47884
47885         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47886         program_invocation_name and program_invocation_short_name are
47887         present.
47888
47889 2008-02-28  Bruno Haible  <bruno@clisp.org>
47890
47891         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47892         * tests/test-freadptr.sh: Also test non-seekable stdin.
47893
47894 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47895
47896         * build-aux/bootstrap (source_base, m4_base)
47897         (doc_base, tests_base): New variables.
47898         (gnulib_tool_options): Do not hardcode base directories, use
47899         the above variables instead.
47900
47901 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47902
47903         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47904
47905 2008-02-28  Bruno Haible  <bruno@clisp.org>
47906
47907         * modules/freadptr-tests: New file.
47908         * tests/test-freadptr.sh: New file.
47909         * tests/test-freadptr.c: New file.
47910
47911         New module 'freadptr'.
47912         * modules/freadptr: New file.
47913         * lib/freadptr.h: New file.
47914         * lib/freadptr.c: New file.
47915         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47916
47917 2008-02-26  Karl Berry  <karl@freefriends.org>
47918
47919         Sync from Libtool:
47920         * libltdl/argz.c (argz_add, argz_count): New functions.
47921         * libltdl/argz.in.h: Declare them.
47922         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47923
47924 2008-02-22  Bruno Haible  <bruno@clisp.org>
47925
47926         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47927         is a pointer type.  Needed for HP-UX 10.
47928         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47929         * doc/posix-functions/gmtime_r.texi: Likewise.
47930         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47931
47932 2008-02-24  Bruno Haible  <bruno@clisp.org>
47933
47934         * modules/environ-tests: New file.
47935         * tests/test-environ.c: New file.
47936
47937         New module 'environ'.
47938         * modules/environ: New file.
47939         * lib/unistd.in.h (environ): New declaration.
47940         * m4/environ.m4: New file.
47941         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47942         after use.
47943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47944         HAVE_DECL_ENVIRON.
47945         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47946         HAVE_DECL_ENVIRON.
47947         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47948         wrong claim that 'environ' is missing on some systems.
47949         * modules/execute (Depends-on): Add environ.
47950         * lib/execute.c (environ): Remove fallback declaration.
47951         * modules/pipe (Depends-on): Add environ.
47952         * lib/pipe.c (environ): Remove fallback declaration.
47953         * modules/setenv (Depends-on): Add environ.
47954         * lib/setenv.c (environ): Remove fallback declaration.
47955         * modules/unsetenv (Depends-on): Add environ.
47956         * lib/unsetenv.c (environ): Remove fallback declaration.
47957         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47958         m4/environ.m4.
47959         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47960         (gl_PREREQ_UNSETENV): Likewise.
47961
47962 2008-02-24  Bruno Haible  <bruno@clisp.org>
47963
47964         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47965
47966 2008-02-20  Bob Proulx  <bob@proulx.com>
47967
47968         Enable use of older two part flavor 'git describe'.
47969         * build-aux/git-version-gen: If using the older two part flavor of
47970         git version then recreate the third part now present in the
47971         newer three part flavor of git describe.
47972
47973 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47974
47975         * lib/fts.c (fts_build): Typo correction to comment.
47976
47977 2008-02-17  Bruno Haible  <bruno@clisp.org>
47978
47979         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47980         generating no-op conflicts.
47981
47982 2008-02-17  Bruno Haible  <bruno@clisp.org>
47983
47984         Speed up by 10%.
47985         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47986         result_entries, rather than an index-based loop.
47987
47988 2008-02-17  Bruno Haible  <bruno@clisp.org>
47989
47990         Speed up by 25%.
47991         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47992         'hashcode_cached'.
47993         (entry_create): New function.
47994         (entry_hashcode): Use the cached hashcode if possible.
47995         (read_changelog_file, try_split_merged_entry): Use entry_create.
47996
47997 2008-02-17  Bruno Haible  <bruno@clisp.org>
47998
47999         Speed up from O(n^2) to O(n) for long ChangeLog files.
48000         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48001         (read_changelog_file): Change implementation of entries_reversed list
48002         to rbtreehash.
48003         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48004
48005 2008-02-17  Bruno Haible  <bruno@clisp.org>
48006
48007         New option --split-merged-entry.
48008         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48009         (find_paragraph_end, try_split_merged_entry): New functions.
48010         (long_options): Add option --split-merged-entry.
48011         (usage): Document option --split-merged-entry.
48012         (main): Implement option --split-merged-entry.
48013         Reported by Eric Blake.
48014
48015 2008-02-17  Bruno Haible  <bruno@clisp.org>
48016
48017         * lib/git-merge-changelog.c: Include c-strstr.h.
48018         (main): Support the "git pull --rebase" situation.
48019         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48020         Reported by Eric Blake.
48021
48022 2008-02-16  Eric Blake  <ebb9@byu.net>
48023
48024         Avoid doubling \ in common case of "c-maybe" quoting style.
48025         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48026         eliding outer quotes.
48027         * lib/quotearg.h: Document this.
48028         * tests/test-quotearg.c (result_strings, inputs, results_g)
48029         (flag_results, locale_results): Test it by adding a new string to
48030         each test group.
48031         (compare_strings): Test new string.
48032
48033 2008-02-13  Eric Blake  <ebb9@byu.net>
48034
48035         Avoid trigraph quoting in default output.
48036         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48037         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48038         unless explicitly requested.
48039         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48040
48041 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48042
48043         Don't rely on signed integer overflowing to negative value.
48044         * lib/getugroups.c (getugroups): Include <limits.h>.
48045         Instead, compare against INT_MAX, and increment only if the test passes.
48046
48047 2008-02-13  Jim Meyering  <meyering@redhat.com>
48048         and Eric Blake  <ebb9@byu.net>
48049
48050         Avoid shadowing warning and compile errors on Linux.
48051         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48052         forwarding macros on Linux.
48053         (dcgettext): Define a stub, for Linux.
48054         (results_g, main): Avoid warnings.
48055
48056 2008-02-12  Eric Blake  <ebb9@byu.net>
48057
48058         Silence warning in last patch.
48059         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48060
48061         Quotearg part 4: add tests, fix c-maybe colon quoting.
48062         * lib/quotearg.h: Improve documentation.
48063         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48064         escapes when adding outer quotes.  When quoting trigraphs, use
48065         valid C notation.  When quoting NUL, omit extra characters if next
48066         character is not digit.  Alter prototype.
48067         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48068         callers.
48069         * modules/quotearg-tests: New module.
48070         * tests/test-quotearg.c: New test.
48071
48072 2008-02-07  Eric Blake  <ebb9@byu.net>
48073
48074         Quotearg part 3: add flag to control outer quote elision.
48075         * lib/quotearg.h (c_maybe_quoting_style): New style.
48076         (enum quoting_flags): Better documentation of flags.
48077         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48078         c-maybe style.
48079         (quotearg_buffer_restyled): Handle new flag to elide outer
48080         quotes.
48081
48082         Quotearg part 2: add flag that can control NUL elision.
48083         * lib/quotearg.h (set_quoting_flags): New prototype.
48084         * lib/quotearg.c (struct quoting_options): Add flag field.
48085         (set_quoting_flags): New function.
48086         (quotearg_buffer_restyled): Add flags parameter.
48087         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48088         (quotearg_n_options): Set the flag, since length cannot be
48089         returned.
48090         (quoting_options_from_style): Default flags correctly.
48091
48092         Quotearg part 1: more wrappers, restore quotearg_char state.
48093         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48094         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48095         (quotearg_colon_mem): New wrappers.
48096         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48097         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48098         functions.
48099         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48100         (quotearg_colon_mem): New functions.
48101
48102 2008-02-11  Bruno Haible  <bruno@clisp.org>
48103
48104         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48105         library in the current directory: it does not work with parallel make.
48106         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48107
48108 2008-02-11  Bruno Haible  <bruno@clisp.org>
48109
48110         * .gitattributes: New file.
48111
48112 2008-02-11  Jim Meyering  <meyering@redhat.com>
48113
48114         useless-if-before-free: Fix reversed exit values.
48115         * build-aux/useless-if-before-free: Use correct values
48116         for EXIT_MATCH and EXIT_NO_MATCH.
48117
48118         * build-aux/useless-if-before-free: Close stdout carefully.
48119
48120 2008-02-10  Bruno Haible  <bruno@clisp.org>
48121
48122         New module 'git-merge-changelog'.
48123         * modules/git-merge-changelog: New file.
48124         * lib/git-merge-changelog.c: New file.
48125
48126 2008-02-10  Jim Meyering  <meyering@redhat.com>
48127
48128         useless-if-before-free: New option: --list (-l).
48129
48130         useless-if-before-free: Don't exit immediately upon open failure.
48131         * build-aux/useless-if-before-free: Exit 2 for errors.
48132         Upon failure to open a file, don't exit immediately.
48133         Rather, just warn and continue with any remaining files.
48134
48135 2008-02-10  Bruno Haible  <bruno@clisp.org>
48136
48137         New abstract list operation 'node_set_value'.
48138         * lib/gl_list.h (gl_list_node_set_value): New function.
48139         (struct gl_list_implementation): New field node_set_value.
48140         * lib/gl_list.c (gl_list_node_set_value): New function.
48141         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48142         (gl_array_list_implementation): Update.
48143         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48144         (gl_carray_list_implementation): Update.
48145         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48146         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48147         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48148         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48149         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48150         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48151         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48152         Update.
48153         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48154         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48155         (gl_sublist_list_implementation): Update.
48156
48157 2008-02-10  Bruno Haible  <bruno@clisp.org>
48158
48159         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48160         Needed when ELEMENT is #defined to 'some_type *'.
48161
48162 2008-02-10  Jim Meyering  <meyering@redhat.com>
48163
48164         New script and module: useless-if-before-free
48165         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48166         * build-aux/useless-if-before-free: New file.
48167         * modules/useless-if-before-free: New file.
48168
48169         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48170
48171         xstrtol_error: Fix typo.
48172         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48173         s/exit_failure/exit_status/.
48174
48175 2008-02-09  Jim Meyering  <meyering@redhat.com>
48176
48177         New script and module: gitlog-to-changelog
48178         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48179         * modules/gitlog-to-changelog: New file.
48180         * build-aux/gitlog-to-changelog: New file.
48181
48182 2008-02-08  Jim Meyering  <meyering@redhat.com>
48183
48184         Avoid two "parameter unused" warnings.
48185         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48186         Mark "st" as used.
48187
48188         Use "git COMMAND", not "git-COMMAND".
48189         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48190         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48191         * build-aux/git-version-gen: Use "git status", not "git-status".
48192
48193 2008-02-07  Bruno Haible  <bruno@clisp.org>
48194
48195         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48196         Avoids a crash on Windows Vista.
48197         Reported by Adam Strzelecki <ono@java.pl> via
48198         Simon Josefsson <simon@josefsson.org>.
48199
48200 2008-02-06  Bruno Haible  <bruno@clisp.org>
48201
48202         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48203         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48204         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48206         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48207         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48208         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48209         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48210         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48211         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48214         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48217         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48218         left-adjust flag.
48219         * tests/test-snprintf-posix.h (test_function): Likewise.
48220         * tests/test-sprintf-posix.h (test_function): Likewise.
48221         * tests/test-vasprintf-posix.c (test_function): Likewise.
48222         * doc/posix-functions/fprintf.texi: Update.
48223         * doc/posix-functions/printf.texi: Update.
48224         * doc/posix-functions/snprintf.texi: Update.
48225         * doc/posix-functions/sprintf.texi: Update.
48226         * doc/posix-functions/vfprintf.texi: Update.
48227         * doc/posix-functions/vprintf.texi: Update.
48228         * doc/posix-functions/vsnprintf.texi: Update.
48229         * doc/posix-functions/vsprintf.texi: Update.
48230         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48231
48232 2008-02-06  Bruno Haible  <bruno@clisp.org>
48233
48234         Fix bug introduced on 2008-01-26.
48235         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48236
48237 2008-02-06  Bruno Haible  <bruno@clisp.org>
48238
48239         Fix bug introduced on 2007-06-10.
48240         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48241         !NEED_PRINTF_FLAG_ZERO.
48242
48243 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48244
48245         getloadavg: use libperfstat on AIX5
48246         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48247
48248 2008-02-03  Bruno Haible  <bruno@clisp.org>
48249
48250         * lib/diffseq.h: Add comments about required #includes.
48251         Reported by Michael Biggs <gnulib@doubleplum.net>.
48252
48253 2008-02-01  Bruno Haible  <bruno@clisp.org>
48254
48255         * users.txt: Add gnuit.
48256
48257 2008-01-31  Bruno Haible  <bruno@clisp.org>
48258
48259         * lib/md4.c (set_uint32): Mark as inline.
48260         * lib/md5.c (set_uint32): Likewise.
48261         * lib/sha1.c (set_uint32): Likewise.
48262         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48263         * m4/md5.m4 (gl_MD5): Likewise.
48264         * m4/sha1.m4 (gl_SHA1): Likewise.
48265
48266 2008-01-31  Jim Meyering  <meyering@redhat.com>
48267
48268         Use "sizeof VAR", rather than a literal "4".
48269         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48270         * lib/md4.c (md4_read_ctx): Likewise.
48271         * lib/sha1.c (sha1_read_ctx): Likewise.
48272
48273 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48274
48275         * tests/test-sha1.c: New file, based on test-md5.c.
48276
48277         * modules/crypto/sha1-tests: New file.
48278
48279 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48280
48281         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48282
48283 2008-01-31  Jim Meyering  <meyering@redhat.com>
48284
48285         Prefer "sizeof v" over the equivalent "4".
48286         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48287         * lib/md5.c (set_uint32): Likewise.
48288         * lib/sha1.c (set_uint32): Likewise.
48289
48290 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48291
48292         * lib/sha1.c (set_uint32): Mark function as static.
48293
48294 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48295
48296         md2: clarify comments to say that alignment is not required.
48297         * lib/md2.h: Remove warning about alignment in comment.
48298         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48299         never been required.
48300
48301 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48302
48303         md4: adapt alignment constraint fix from sha1.
48304         * lib/md4.c (set_uint32): New function, from sha1.c
48305         (md4_read_ctx): Use it.
48306         (md4_finish_ctx): Doc fix.
48307         * lib/md4.h: Doc fix.
48308
48309 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48310
48311         md5: adapt alignment constraint fix from sha1.
48312         * lib/md5.c (set_uint32): New function, from sha1.c
48313         (md5_read_ctx): Use it.
48314         (md5_finish_ctx): Doc fix.
48315         * lib/md5.h: Doc fix.
48316
48317 2008-01-30  Peter Palfrader  <weasel@debian.org>
48318
48319         sha1: remove the result buffer alignment constraint
48320         * lib/sha1.c (set_uint32): New function.
48321         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48322         constraint.
48323         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48324         * lib/sha1.h: Likewise.
48325
48326 2008-01-30  Andreas Schwab  <schwab@suse.de>
48327             Bruno Haible  <bruno@clisp.org>
48328
48329         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48330         correct definition of LDBL_MIN_EXP.
48331
48332 2008-01-30  Karl Berry  <karl@gnu.org>
48333
48334         * config/srclist-update: try to preserve x bit on updates.
48335         * config/srclistvars.sh: update for karl.
48336
48337 2008-01-29  Jim Meyering  <meyering@redhat.com>
48338
48339         vasnprintf.c: Avoid warning about unused label
48340         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48341         "overflow" label definition and associated code with the
48342         same cpp condition that guards the sole use of that label.
48343
48344 2008-01-26  Bruno Haible  <bruno@clisp.org>
48345
48346         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48347         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48348         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48349         * lib/isnanl-nolibm.h (isnanl): Likewise.
48350         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48351
48352 2008-01-26  Bruno Haible  <bruno@clisp.org>
48353
48354         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48355         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48356
48357 2008-01-26  Bruno Haible  <bruno@clisp.org>
48358
48359         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48360         GCC >= 4.0 built-in.
48361         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48362
48363 2008-01-26  Bruno Haible  <bruno@clisp.org>
48364
48365         Rename isnan, applicable to 'double' only, to isnand.
48366         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48367         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48368         (configure.ac): Update.
48369         (Include): Replace "isnan.h" with "isnand.h".
48370         * m4/isnand.m4: Renamed from m4/isnan.m4.
48371         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48372         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48373         instead of isnan.c.
48374         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48375         instead of HAVE_ISNAN_IN_LIBC.
48376         (isnand): Renamed from isnan.
48377         * lib/isnand.c: New file.
48378         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48379         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48380         (Makefile.am): Update.
48381         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48382         Include isnand.h instead of isnan.h.
48383         (main): Test isnand instead of isnan.
48384         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48385         isnan-nolibm.
48386         * modules/frexp (Depends-on): Likewise.
48387         * modules/frexp-tests (Depends-on): Likewise.
48388         * modules/frexp-nolibm (Depends-on): Likewise.
48389         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48390         * modules/isfinite (Depends-on): Likewise.
48391         * modules/round-tests (Depends-on): Likewise.
48392         * modules/signbit (Depends-on): Likewise.
48393         * modules/signbit-tests (Depends-on): Likewise.
48394         * modules/snprintf-posix (Depends-on): Likewise.
48395         * modules/sprintf-posix (Depends-on): Likewise.
48396         * modules/trunc-tests (Depends-on): Likewise.
48397         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48398         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48399         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48400         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48401         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48402         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48403         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48404         * modules/vasnprintf-posix (Depends-on): Likewise.
48405         * modules/vasprintf-posix (Depends-on): Likewise.
48406         * modules/vfprintf-posix (Depends-on): Likewise.
48407         * modules/vsnprintf-posix (Depends-on): Likewise.
48408         * modules/vsprintf-posix (Depends-on): Likewise.
48409         * lib/frexp.c: Include isnand.h instead of isnan.h.
48410         (ISNAN): Set to isnand instead of isnan.
48411         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48412         (gl_isfinited): Use isnand instead of isnan.
48413         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48414         (gl_signbitd): Use isnand instead of isnan.
48415         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48416         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48417         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48418         (main): Use isnand instead of isnan.
48419         * tests/test-round1.c: Include isnand.h.
48420         (main): Use isnand instead of isnan.
48421         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48422         (ISNAN): Set to isnand instead of isnan.
48423         * tests/test-trunc1.c: Include isnand.h.
48424         (main): Use isnand instead of isnan.
48425         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48426         (equal): Use isnand instead of isnan.
48427         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48428         isnand-nolibm.
48429         * NEWS: Mention the change.
48430
48431 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48432             Bruno Haible  <bruno@clisp.org>
48433
48434         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48435         the GCC builtins for signbits are present and set
48436         REPLACE_SIGNBIT_USING_GCC if so.
48437         * lib/math.in.h (signbit): Define using GCC builtins if
48438         REPLACE_SIGNBIT_USING_GCC is set.
48439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48440         REPLACE_SIGNBIT_USING_GCC.
48441         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48442
48443 2008-01-25  Jim Meyering  <meyering@redhat.com>
48444
48445         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48446         * lib/poll.c: Include <config.h>, not "config.h".
48447         * tests/test-getaddrinfo.c: Likewise.
48448
48449 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48450
48451         * modules/sockets-tests: New file.
48452
48453 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48454
48455         * modules/sockets: New module, can be used to call WSA_Startup and
48456         WSA_Cleanup when needed.
48457
48458         * lib/sockets.h, lib/sockets.c: New files.
48459
48460         * m4/sockets.m4: New file.
48461
48462         * tests/test-sockets.c: New file.
48463
48464 2008-01-19  Bruno Haible  <bruno@clisp.org>
48465
48466         * doc/posix-headers: Renamed from doc/headers.
48467         * doc/posix-functions: Renamed from doc/functions.
48468         * doc/gnulib.texi: Update.
48469
48470 2008-01-19  Bruno Haible  <bruno@clisp.org>
48471
48472         * doc/glibc-functions/strcasestr.texi: Include contents of
48473         doc/functions/strcasestr.texi, fixing the list of platforms.
48474         * doc/functions/strcasestr.texi: Remove file.
48475
48476 2008-01-19  Bruno Haible  <bruno@clisp.org>
48477
48478         * doc/glibc-functions/memmem.texi: Include contents of
48479         doc/functions/memmem.texi.
48480         * doc/functions/memmem.texi: Remove file.
48481
48482 2008-01-18  Bruno Haible  <bruno@clisp.org>
48483
48484         * doc/glibc-functions/*.texi: New files.
48485         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48486         to use the new files.
48487
48488 2008-01-17  Bruno Haible  <bruno@clisp.org>
48489
48490         * tests/test-gethostname.c (main): Fix printf statement.
48491
48492 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48493
48494         * modules/gethostname-tests: New file.
48495
48496         * tests/test-gethostname.c: New file.
48497
48498 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48499
48500         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48501         used by the UNAME case.  Reported by Bruno Haible
48502         <bruno@clisp.org>.
48503
48504 2008-01-17  Eric Blake  <ebb9@byu.net>
48505
48506         Convert c-strcasestr to be more efficient.
48507         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48508         (Depends-on): Add c-strcase, remove malloca, strnlen.
48509         * tests/test-c-strcasestr.c (main): Enhance test.
48510         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48511
48512 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48513
48514         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48515         Use it in creating po/Makevars.
48516
48517 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48518
48519         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48520         Applications that requires it should initialize libgcrypt
48521         manually.
48522
48523 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48524
48525         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48526
48527 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48528
48529         Fix problem with getdate on mingw32 reported by Simon Josefsson
48530         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48531         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48532         tzname", when deciding whether to declare tzname.
48533         * lib/strftime.c (tzname): Likewise.
48534
48535 2008-01-15  Bruno Haible  <bruno@clisp.org>
48536
48537         Work around a MacOS X 10.5 bug in frexpl().
48538         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48539         * doc/functions/frexpl.texi: Document the bug.
48540         Reported by Elias Pipping <pipping@gentoo.org>.
48541
48542 2008-01-14  Eric Blake  <ebb9@byu.net>
48543
48544         Touch up previous patch.
48545         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48546         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48547
48548         Convert strcasestr module to use Two-Way algorithm.
48549         * modules/strcasestr-simple: New module, based on the old
48550         strcasestr, but with Two-Way rather than KMP.
48551         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48552         * lib/string.in.h (rpl_strcasestr): Declare.
48553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48554         performance.
48555         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48556         * modules/string (Makefile.am): Support strcasestr.
48557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48558         * modules/strcasestr-tests (Depends-on): Check for alarm.
48559         * tests/test-strcasestr.c: Augment test.
48560         * lib/str-two-way.h: Clean up stray macro.
48561         * NEWS: Document new module.
48562         * MODULES.html.sh (string handling): Likewise.
48563         * doc/functions/strcasestr.texi: New file.
48564         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48565         here, since it is not a POSIX function.
48566
48567 2008-01-14  Colin Watson  <cjwatson@debian.org>
48568             Bruno Haible  <bruno@clisp.org>
48569
48570         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48571         works fine; if not, set REPLACE_STRSIGNAL.
48572         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48574         REPLACE_STRSIGNAL.
48575         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48576         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48577         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48578
48579 2008-01-14  Bruno Haible  <bruno@clisp.org>
48580
48581         * modules/strsignal (Include): Change to <string.h>.
48582
48583 2008-01-14  Colin Watson  <cjwatson@debian.org>
48584
48585         * modules/argp (Notice): Add a notice recommending to change
48586         XGETTEXT_OPTIONS.
48587         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48588
48589 2008-01-13  Colin Watson  <cjwatson@debian.org>
48590
48591         * modules/strsignal-tests: New file.
48592         * tests/test-strsignal.c: New file.
48593
48594         * lib/strsignal.c: New file, from glibc with modifications.
48595         * lib/siglist.h: New file, from glibc with modifications.
48596         * lib/string.in.h (strsignal): New declaration.
48597         * m4/strsignal.m4: New file.
48598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48599         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48600         * modules/strsignal: New file.
48601         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48602         HAVE_DECL_STRSIGNAL.
48603
48604 2008-01-13  Bruno Haible  <bruno@clisp.org>
48605
48606         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48607         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48608         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48609         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48610
48611 2008-01-13  Bruno Haible  <bruno@clisp.org>
48612
48613         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48614         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48615         * lib/argp.h (__attribute__): Likewise.
48616         * lib/c-stack.c (__attribute__): Likewise.
48617         * lib/error.h (__attribute__): Likewise.
48618         * lib/fts.c (__attribute__): Likewise.
48619         * lib/openat.h (__attribute__): Likewise.
48620         * lib/stdio.in.h (__attribute__): Likewise.
48621         * lib/string.in.h (__attribute__): Likewise.
48622         * lib/utimens.c (__attribute__): Likewise.
48623         * lib/vasnprintf.h (__attribute__): Likewise.
48624         * lib/xalloc.h (__attribute__): Likewise.
48625         * lib/xprintf.h (__attribute__): Likewise.
48626         * lib/xstrtol.h (__attribute__): Likewise.
48627         * lib/xvasprintf.h (__attribute__): Likewise.
48628
48629 2008-01-12  Bruno Haible  <bruno@clisp.org>
48630
48631         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48632         * doc/glibc-headers/a.out.texi: New file.
48633         * doc/glibc-headers/aliases.texi: New file.
48634         * doc/glibc-headers/alloca.texi: New file.
48635         * doc/glibc-headers/ar.texi: New file.
48636         * doc/glibc-headers/argp.texi: New file.
48637         * doc/glibc-headers/argz.texi: New file.
48638         * doc/glibc-headers/byteswap.texi: New file.
48639         * doc/glibc-headers/crypt.texi: New file.
48640         * doc/glibc-headers/endian.texi: New file.
48641         * doc/glibc-headers/envz.texi: New file.
48642         * doc/glibc-headers/err.texi: New file.
48643         * doc/glibc-headers/error.texi: New file.
48644         * doc/glibc-headers/execinfo.texi: New file.
48645         * doc/glibc-headers/fpu_control.texi: New file.
48646         * doc/glibc-headers/fstab.texi: New file.
48647         * doc/glibc-headers/fts.texi: New file.
48648         * doc/glibc-headers/getopt.texi: New file.
48649         * doc/glibc-headers/ieee754.texi: New file.
48650         * doc/glibc-headers/ifaddrs.texi: New file.
48651         * doc/glibc-headers/libintl.texi: New file.
48652         * doc/glibc-headers/mcheck.texi: New file.
48653         * doc/glibc-headers/mntent.texi: New file.
48654         * doc/glibc-headers/obstack.texi: New file.
48655         * doc/glibc-headers/paths.texi: New file.
48656         * doc/glibc-headers/printf.texi: New file.
48657         * doc/glibc-headers/pty.texi: New file.
48658         * doc/glibc-headers/resolv.texi: New file.
48659         * doc/glibc-headers/shadow.texi: New file.
48660         * doc/glibc-headers/sysexits.texi: New file.
48661         * doc/glibc-headers/ttyent.texi: New file.
48662
48663 2008-01-12  Jim Meyering  <meyering@redhat.com>
48664
48665         announce-gen: emit Gnulib's git-based version string.
48666         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48667         New option --gnulib-version=V, where V is expected to be
48668         the output of running git describe in the gnulib directory.
48669         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48670         not useful, and plan to stop publishing an xdelta file with each
48671         coreutils release.
48672
48673         * build-aux/announce-gen: Also check for lzma-compressed files.
48674
48675 2008-01-11  Bruno Haible  <bruno@clisp.org>
48676
48677         * tests/test-memmem.c (main): Increase maximum allowed time.
48678         * tests/test-strstr.c (main): Likewise.
48679
48680 2008-01-11  Bruno Haible  <bruno@clisp.org>
48681
48682         * doc/functions/memmem.texi: Add more precisions about platforms.
48683         * doc/functions/strstr.texi: Likewise.
48684
48685 2008-01-10  Eric Blake  <ebb9@byu.net>
48686
48687         * m4/strstr.m4: Delete cruft from copy-n-paste.
48688         Reported by Bruno Haible.
48689
48690 2008-01-10  Bruno Haible  <bruno@clisp.org>
48691
48692         Make c-strstr rely on strstr.
48693         * lib/c-strstr.c: Don't include str-kmp.h.
48694         (c_strstr): Define in terms of strstr.
48695         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48696         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48697
48698 2008-01-10  Bruno Haible  <bruno@clisp.org>
48699
48700         * doc/gnulib.texi (String Functions in C Locale): New section.
48701         * doc/c-ctype.texi: New file.
48702         * doc/c-strcase.texi: New file.
48703         * doc/c-strcaseeq.texi: New file.
48704         * doc/c-strcasestr.texi: New file.
48705         * doc/c-strstr.texi: New file.
48706         * doc/c-strtod.texi: New file.
48707         * doc/c-strtold.texi: New file.
48708
48709 2008-01-10  Eric Blake  <ebb9@byu.net>
48710
48711         * lib/relocatable.h: Fix a comment.
48712
48713 2008-01-10  Eric Blake  <ebb9@byu.net>
48714
48715         Share two-way algorithm.
48716         * lib/str-two-way.h: New file, merged from...
48717         * lib/memmem.c: ...here...
48718         * lib/strstr.c: ...and here.
48719         * modules/memmem (Files): Use it.
48720         * modules/strstr (Files): Likewise.
48721
48722         Avoid quadratic strstr implementations.
48723         * lib/strstr.c: New file.
48724         * m4/strstr.m4: Likewise.
48725         * modules/strstr: Likewise.
48726         * modules/strstr-tests: Likewise.
48727         * tests/test-strstr.c: Likewise.
48728         * lib/string.in.h (rpl_strstr): Declare.
48729         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48731         * modules/string (Makefile.am): Likewise.
48732         * MODULES.html.sh (string handling): Mention new module.
48733         * doc/functions/strstr.texi (strstr): Document the bug.
48734
48735 2008-01-10  Bruno Haible  <bruno@clisp.org>
48736
48737         * lib/relocatable.h (relocate): State whether result is freshly
48738         allocated or not.
48739         * lib/relocatable.c (relocate): Return a freshly allocated string
48740         instead of a pointer to a privately held string.
48741         Reported by Sylvain Beucler <beuc@gnu.org>.
48742
48743 2008-01-10  Colin Watson  <cjwatson@debian.org>
48744
48745         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48746         s/S_ISNLK/S_ISLNK/.
48747
48748 2008-01-09  Bruno Haible  <bruno@clisp.org>
48749
48750         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48751         and other files.
48752         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48753         if it's only a guess.
48754         * modules/memmem: Simplify by depending on memmem-simple.
48755
48756 2008-01-09  Bruno Haible  <bruno@clisp.org>
48757
48758         Work around OpenBSD 4.0 tdelete() bug.
48759         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48760         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48761         macros and don't redefine the enum values.
48762         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48763         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48764         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48765
48766 2008-01-09  Bruno Haible  <bruno@clisp.org>
48767
48768         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48769         (main): Don't perform the tests if setlocale did not install a UTF-8
48770         locale. Needed on OpenBSD 4.0.
48771         * modules/wcwidth-tests (Depends-on): Add localcharset.
48772
48773 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48774
48775         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48776         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48777         * NEWS: announce this.
48778         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48779
48780 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48781         and Eric Blake  <ebb9@byu.net>
48782
48783         Add memmem-simple module.
48784         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48785         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48786         * modules/memmem-simple: New file.
48787         * modules/memmem (Description): Tweak.
48788         * MODULES.html.sh (string handling): Mention new module.
48789         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48790         addressed by memmem-simple.
48791         * NEWS: Document the difference.
48792
48793 2008-01-09  Eric Blake  <ebb9@byu.net>
48794
48795         Give gcc some memmem optimization hints.
48796         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48797         (strcasestr): Declare as pure.
48798         * modules/memmem (Maintainer): Claim my implementation.
48799
48800 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48801
48802         Support AIX 6.1 and higher.
48803         * build-aux/config.libpath: Likewise.
48804         * build-aux/config.rpath: Likewise.
48805
48806 2008-01-08  Jim Meyering  <meyering@redhat.com>
48807             Bruno Haible  <bruno@clisp.org>
48808
48809         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48810         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48811         Reported by Peter Fales in
48812         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48813
48814 2008-01-08  Bruno Haible  <bruno@clisp.org>
48815
48816         * modules/unictype/category-of (Depends-on): Add
48817         unictype/category-none.
48818         * modules/unictype/category-and-tests (Depends-on): Add
48819         unictype/category-{L,N,Lu,Nd}.
48820         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48821         * modules/unictype/category-or-tests (Depends-on): Add
48822         unictype/category-{L,N}.
48823         * modules/unictype/category-name-tests (Depends-on): Add
48824         unictype/category-{Z,Nl}.
48825         Reported by Simon Josefsson.
48826
48827 2008-01-08  Bruno Haible  <bruno@clisp.org>
48828
48829         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48830         convention better.
48831         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48832         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48833         Reported by Peter Miller <millerp@canb.auug.org.au>.
48834
48835 2008-01-08  Eric Blake  <ebb9@byu.net>
48836
48837         Rewrite memmem to guarantee linear complexity without malloc.
48838         * lib/memmem.c (memmem): Use Two-Way rather than
48839         Knuth-Morris-Pratt, to allow O(1) space usage.
48840         (critical_factorization, two_way_short_needle)
48841         (two_way_long_needle): New functions.
48842         (knuth_morris_pratt): Delete.
48843         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48844         Add stdint.
48845         * tests/test-memmem.c (main): Add tests for periodic needle and
48846         sublinear performance.
48847         * doc/functions/memmem.texi (memmem): Document other deficiencies
48848         in cygwin and older glibc.
48849
48850 2008-01-08  Bruno Haible  <bruno@clisp.org>
48851
48852         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48853         augmentation.
48854
48855 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48856
48857         Add a configure time option: --disable-acl.
48858         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48859         AC_ARG_ENABLE(acl).
48860
48861 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48862
48863         * tests/test-localename.c: Don't include obsolete "setenv.h".
48864
48865         * modules/localename-tests (Depends-on): Need unsetenv.
48866
48867 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48868
48869         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48870
48871 2008-01-06  Colin Watson  <cjwatson@debian.org>
48872
48873         * users.txt: Add man-db.
48874
48875 2008-01-07  Bruno Haible  <bruno@clisp.org>
48876
48877         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48878         previous section name.
48879
48880 2008-01-07  Bruno Haible  <bruno@clisp.org>
48881
48882         * lib/progname.c (set_program_name): Don't strip off a leading
48883         "lt-" prefix outside a .libs directory.
48884         Suggested by Paul Eggert.
48885
48886 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48887             Bruno Haible  <bruno@clisp.org>
48888
48889         Improve memory cleanup in 'relocatable' module.
48890         * lib/relocatable.h (compute_curr_prefix): Change return type to
48891         'char *'.
48892         * lib/relocatable.c (compute_curr_prefix): Change return type to
48893         'char *'. Free curr_installdir after use.
48894         (relocate): Free curr_prefix_better after use.
48895         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48896
48897 2008-01-01  Bruno Haible  <bruno@clisp.org>
48898
48899         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48900         failure on older glibc systems.
48901         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48902
48903 2008-01-05  Eric Blake  <ebb9@byu.net>
48904
48905         Avoid quadratic system memmem.
48906         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48907         Reported by Ralf Wildenhues.
48908
48909         Fix memmem test for mingw.
48910         * modules/memmem-tests (configure.ac): Check for alarm.
48911         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48912         it.
48913         * doc/functions/memmem.texi: New file.
48914         * doc/gnulib.texi (Function Substitutes): Add memmem.
48915         Reported by Bruno Haible.
48916
48917 2008-01-04  Bruno Haible  <bruno@clisp.org>
48918
48919         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48920         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48921         gl_HEADER_STRING_H_DEFAULTS.
48922
48923 2008-01-04  Eric Blake  <ebb9@byu.net>
48924
48925         Shorten duration of memmem test.
48926         * tests/test-memmem.c (main): Use alarm to declare failure if test
48927         is taking too long.
48928         Reported by Ralf Wildenhues.
48929
48930 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48931
48932         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48933         string, needed by strerror.
48934
48935 2008-01-03  Colin Watson  <cjwatson@debian.org>
48936             Bruno Haible  <bruno@clisp.org>
48937
48938         * doc/gnulib-tool.texi (Localization): New section.
48939
48940 2008-01-02  Bruno Haible  <bruno@clisp.org>
48941
48942         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48943         variables to 'unsigned char *' type.
48944         Reported by Paul Eggert.
48945
48946 2008-01-02  Jim Meyering  <jim@meyering.net>
48947
48948         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48949
48950 2007-12-31  Jim Meyering  <jim@meyering.net>
48951
48952         Avoid use of private FTS type name.
48953         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48954
48955 2007-12-30  Karl Berry  <karl@gnu.org>
48956
48957         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48958         work around defect in Texinfo and/or the standalone Info browser.
48959
48960 2007-12-30  Bruno Haible  <bruno@clisp.org>
48961
48962         Unify 5 copies of the KMP code.
48963         * lib/str-kmp.h: New file.
48964         * lib/c-strcasestr.c: Include str-kmp.h.
48965         (knuth_morris_pratt): Remove function.
48966         (c_strcasestr): Update.
48967         * lib/c-strstr.c: Include str-kmp.h.
48968         (knuth_morris_pratt): Remove function.
48969         (c_strcasestr): Update.
48970         * lib/mbscasestr.c: Include str-kmp.h.
48971         (knuth_morris_pratt_unibyte): Remove function.
48972         * lib/mbsstr.c: Include str-kmp.h.
48973         (knuth_morris_pratt_unibyte): Remove function.
48974         * lib/strcasestr.c: Include str-kmp.h.
48975         (knuth_morris_pratt): Remove function.
48976         (strcasestr): Update.
48977         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48978         * modules/c-strstr (Files): Likewise.
48979         * modules/mbscasestr (Files): Likewise.
48980         * modules/mbsstr (Files): Likewise.
48981         * modules/strcasestr (Files): Likewise.
48982         Suggested by Paul Eggert.
48983
48984 2007-12-30  Bruno Haible  <bruno@clisp.org>
48985
48986         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48987         defined.
48988
48989 2007-12-30  Bruno Haible  <bruno@clisp.org>
48990
48991         * lib/xmalloca.h: Include xalloc.h.
48992         (xnmalloca): New macro.
48993
48994 2007-12-30  Bruno Haible  <bruno@clisp.org>
48995
48996         * lib/malloca.h (nmalloca): New macro.
48997         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48998         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48999         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49000         knuth_morris_pratt_multibyte): Likewise.
49001         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49002         knuth_morris_pratt_multibyte): Likewise.
49003         * lib/memmem.c (knuth_morris_pratt): Likewise.
49004         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49005
49006 2007-12-25  Bruno Haible  <bruno@clisp.org>
49007
49008         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49009         * lib/glob.c: Don't include openat.h.
49010         (link_exists2_p): Add back the code that deals with the
49011         !GLOB_ALTDIRFUNC case.
49012         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49013         let it do the filename concatenation.
49014         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49015         * modules/glob (Depends-on): Remove openat.
49016
49017 2007-12-31  Bruno Haible  <bruno@clisp.org>
49018
49019         * modules/dirfd (License): Change to LGPLv2+.
49020         Approved by Jim Meyering.
49021
49022 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49023
49024         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49025         when multiplying M by sizeof (size_t).
49026
49027 2007-12-10  Martin Lambers  <marlam@marlam.de>
49028
49029         Override getpagesize on mingw.
49030         * lib/getpagesize.c: New file.
49031         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49032         * modules/getpagesize (Files): Add lib/getpagesize.c.
49033         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49035         REPLACE_GETPAGESIZE.
49036         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49037
49038 2007-12-25  Bruno Haible  <bruno@clisp.org>
49039
49040         * modules/localcharset (Notice): New field.
49041         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49042         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49043
49044 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49045             Bruno Haible  <bruno@clisp.org>
49046
49047         Avoid using the syntax symbol() in formatted documentation.
49048         * MODULES.html.sh (func_module): When replacing symbol() with a
49049         hyperlink, remove the parentheses. Show an error if some remain.
49050         Recognize and render the '...' syntax.
49051         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49052         Rework. Add paragraph about GCC's inlining.
49053         * doc/alloca.texi: Likewise.
49054         * doc/error.texi: Remove parentheses from symbol reference.
49055         * doc/gnulib-intro.texi: Likewise.
49056         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49057         * modules/fnmatch (Description): Reword to say "the ... function".
49058         * modules/full-read (Description): Likewise.
49059         * modules/full-write (Description): Likewise.
49060         * modules/safe-read (Description): Likewise.
49061         * modules/safe-write (Description): Likewise.
49062         * modules/strchrnul (Description): Likewise.
49063         * modules/trim (Description): Likewise.
49064         * modules/error (Description): Remove parentheses from symbol
49065         references.
49066         * modules/verror (Description): Likewise.
49067         Reported by Karl Berry.
49068
49069 2007-12-25  Bruno Haible  <bruno@clisp.org>
49070
49071         Fixup after 2007-10-16 commit.
49072         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49073
49074 2007-12-24  Bruno Haible  <bruno@clisp.org>
49075
49076         Make --enable-relocatable work with DESTDIR.
49077         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49078         to compute installdir from destprog.
49079         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49080         also set the RELOC_DESTDIR variable.
49081         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49082
49083 2007-12-24  Bruno Haible  <bruno@clisp.org>
49084
49085         Fix link error due to xalloc_die().
49086         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49087         of xreadlink.
49088         * lib/relocwrapper.c: Update comments.
49089         * build-aux/install-reloc: Remove xreadlink.c from file list.
49090         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49091         xreadlink.c.
49092         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49093
49094 2007-12-24  Bruno Haible  <bruno@clisp.org>
49095
49096         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49097         * lib/setenv.h: Remove file.
49098         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49099         lib/setenv.h.
49100         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49101         (Depends-on): Add stdlib.
49102         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49103         gl_FUNC_UNSETENV.
49104         (Include): Replace setenv.h with <stdlib.h>.
49105         * modules/unsetenv: New file.
49106         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49107         * lib/unsetenv.c: Include <stdlib.h> first.
49108         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49109         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49110         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49111         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49112         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49113         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49115         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49116         * doc/functions/unsetenv.texi: Update.
49117         * modules/xsetenv (Depends-on): Add unsetenv.
49118         * modules/getdate (Depends-on): Likewise.
49119         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49120         * lib/xsetenv.c: Don't include setenv.h.
49121         * lib/getdate.y: Likewise.
49122         * lib/relocwrapper.c: Likewise.
49123         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49124         (Depends-on): Add stdlib.
49125         * NEWS: Mention the changes.
49126         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49127
49128 2007-12-23  Bruno Haible  <bruno@clisp.org>
49129
49130         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49131         indentation.
49132
49133 2007-12-23  Bruno Haible  <bruno@clisp.org>
49134
49135         * lib/c-strcasestr.c: Add more comments.
49136         * lib/c-strstr.c: Likewise.
49137         * lib/mbscasestr.c: Likewise.
49138         * lib/mbsstr.c: Likewise.
49139         * lib/strcasestr.c: Likewise.
49140         * lib/memmem.c: Likewise.
49141
49142 2007-12-23  Bruno Haible  <bruno@clisp.org>
49143
49144         * tests/test-memmem.c: Include <string.h> first.
49145
49146 2007-12-22  Bruno Haible  <bruno@clisp.org>
49147
49148         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49149         the contents of $testsbase.
49150         Reported by Ralf Wildenhues.
49151
49152 2007-12-22  Bruno Haible  <bruno@clisp.org>
49153
49154         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49155         two variables local_ldadd_before, local_ldadd_last.
49156
49157 2007-12-20  Eric Blake  <ebb9@byu.net>
49158
49159         Work around circular library issue when cross-compiling.
49160         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49161         that progname.o does not need to pull in rpl_memcmp.
49162
49163 2007-12-19  Eric Blake  <ebb9@byu.net>
49164
49165         Fix memmem to avoid O(n^2) worst-case complexity.
49166         * lib/memmem.c (knuth_morris_pratt): New function.
49167         (memmem): Use it if first few naive iterations fail.
49168         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49169         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49170         * modules/memchr (License): Likewise.
49171         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49172         malloca.
49173         * tests/test-memmem.c: Rewrite, borrowing ideas from
49174         test-mbsstr1.c; the old version wouldn't even compile!
49175         * modules/memmem-tests: New file.
49176         * lib/string.in.h (rpl_memmem): Add declaration.
49177         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49179         REPLACE_MEMMEM.
49180
49181 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49182
49183         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49184         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49185         before any system include files, and undef after them all.  This
49186         should fix a problem on VMS reported by John E. Malmberg in
49187         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49188
49189 2007-12-17  Eric Blake  <ebb9@byu.net>
49190
49191         Revert addition of verify, for BSD/OS.
49192         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49193         can't handle large files, for the sake of obsolete platforms.
49194         * modules/fseeko (Depends-on): Remove verify.
49195         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49196         * doc/functions/ftello.texi (ftello): Likewise.
49197         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49198         Reported by Larry Jones.
49199
49200 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49201
49202         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49203         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49204
49205 2007-12-17  Jim Meyering  <meyering@redhat.com>
49206
49207         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49208         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49209         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49210         * modules/getcwd (Depends-on): Add openat.
49211         Reported by Petr Salinger.
49212
49213 2007-12-17  Bruno Haible  <bruno@clisp.org>
49214
49215         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49216         avoid a segmentation fault of the configure test on x86_64 systems.
49217
49218 2007-12-15  Jim Meyering  <meyering@redhat.com>
49219
49220         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49221
49222 2007-12-13  Eric Blake  <ebb9@byu.net>
49223
49224         Another fseek test.
49225         * tests/test-fseek.c (main): Also test ungetc handling.
49226         * tests/test-fseeko.c (main): Likewise.
49227         * modules/fseeko (Depends-on): Add verify.
49228         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49229         large.
49230         Reported by Larry Jones.
49231
49232         Fix fseeko on mingw.
49233         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49234         seek.
49235
49236         Beef up fseek tests.
49237         * tests/test-fseek.c (main): Also test eof handling.
49238         * tests/test-fseeko.c (main): Likewise.
49239         Reported by Larry Jones.
49240
49241 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49242
49243         Fix fseeko on BSD-based platforms.
49244         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49245         successful seek.
49246
49247 2007-12-12  Eric Blake  <ebb9@byu.net>
49248
49249         Allow circular dependency of separate libtests.a
49250         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49251         when use_libtests.
49252
49253 2007-12-11  Eric Blake  <ebb9@byu.net>
49254
49255         Fix bug with -0.0L in previous patch.
49256         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49257         * tests/test-isnan.c (main): Also test on zeroes.
49258         * tests/test-isnanf.c (main): Likewise.
49259         * tests/test-isnanl.h (main): Likewise.
49260
49261         Detect pseudo-denormals on x86 even when cross-compiling.
49262         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49263         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49264         invalid bit patterns that happen to satisfy ==.
49265
49266         Avoid link failures with separate libtests.a.
49267         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49268         last, to satisfy circular dependencies.
49269
49270 2007-12-11  Eric Blake  <ebb9@byu.net>
49271         and Bruno Haible  <bruno@clisp.org>
49272
49273         Fix OpenBSD 4.0 <float.h> handling of long double.
49274         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49275         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49276         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49277
49278 2007-12-11  Jim Meyering  <meyering@redhat.com>
49279
49280         * users.txt: Add libvirt.
49281
49282         Support versions of autoconf prior to 2.59c.
49283         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49284         if it is not already defined.
49285
49286 2007-12-09  Bruno Haible  <bruno@clisp.org>
49287
49288         Let 'gnulib-tool --import' collect sources needed for the tests in
49289         tests/ rather than in lib/.
49290         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49291         argument. If true, add rules to generate libtests.a, and put libtests.a
49292         into $(LDADD). Consider source files in subdirectories and set
49293         uses_subdirs.
49294         (func_emit_initmacro_start, func_emit_initmacro_end,
49295         func_emit_initmacro_done): Pass all arguments explicitly.
49296         (func_import): Determine two module lists main_modules,
49297         testsrelated_modules. Determine use_libtests. Determine two variables
49298         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49299         instead of just sed_transform_lib_file. Determine two variables
49300         main_files and testsrelated_files. Compute 'files' as the union of
49301         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49302         func_add_or_update. In the generated gnulib-comp.m4, collect the
49303         object files for tests/ in different variables than those for lib/.
49304         Substitute LIBTESTS_LIBDEPS.
49305         (func_create_testdir): Combine the uses_subdirs results from
49306         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49307
49308 2007-12-09  Bruno Haible  <bruno@clisp.org>
49309
49310         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49311         the build-aux directory.
49312
49313 2007-12-09  Bruno Haible  <bruno@clisp.org>
49314
49315         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49316         introduced on 2006-09-09.
49317
49318 2007-12-07  Jim Meyering  <meyering@redhat.com>
49319
49320         Let these macros work also with autoconf-2.59.
49321         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49322         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49323         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49324
49325 2007-12-06  Jim Meyering  <meyering@redhat.com>
49326
49327         Avoid a configure-time syntax error in gl_FUNC_ACL.
49328         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49329         function in each branch, before testing the cache variable.
49330
49331 2007-12-04  Eric Blake  <ebb9@byu.net>
49332
49333         Make scripts executable.
49334         * build-aux/config.guess: Add execute permissions.
49335         * build-aux/config.sub: Likewise.
49336         * build-aux/gendocs.sh: Likewise.
49337
49338         Fix frexp on mingw.
49339         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49340         cross-compiling.
49341         * doc/functions/frexp.texi (frexp): Document the bug.
49342
49343         Make cygwin fseeko check more reliable.
49344         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49345         version numbers, rather than unrelated feature check.
49346         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49347         * doc/functions/ftello.texi (ftello): Likewise.
49348         Reported by Bruno Haible.
49349
49350         * m4/strerror.m4: Bump version number.
49351
49352 2007-12-03  Bruno Haible  <bruno@clisp.org>
49353
49354         * doc/functions/mprotect.texi: Mention the mingw problem.
49355
49356 2007-12-03  Eric Blake  <ebb9@byu.net>
49357
49358         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49359         REPLACE_STRERROR is initialized before this macro.
49360
49361 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49362
49363         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49364         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49365         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49366         put -lsec in even for programs other than 'ls'.  This fixes a problem
49367         for gettext reported by Bruno Haible in
49368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49369         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49370         Add support for Solaris 10.  This isn't efficient, but should get the
49371         job done for now.
49372
49373 2007-12-03  James Youngman  <jay@gnu.org>
49374
49375         * doc/regexprops-generic.texi: change "an close-group" to "a
49376         close-group" and "illegal" to "not allowed".
49377
49378 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49379
49380         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49381         pr_byname.h. Needed for the rare case when the maintainer has done
49382         "make maintainer-clean" in the source directory and then attempts a
49383         build outside the source directory.
49384         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49385         scripts_byname.h.
49386
49387 2007-12-02  Martin Lambers <marlam@marlam.de>
49388             Bruno Haible  <bruno@clisp.org>
49389
49390         * lib/getpagesize.h: Remove file.
49391         * lib/unistd.in.h: Include declaration of getpagesize here.
49392         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49393         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49394         HAVE_SYS_PARAM_H.
49395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49396         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49397         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49398         (Depends-on): Add unistd.
49399         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49400         (Include): Use <unistd.h> instead of getpagesize.h.
49401         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49402         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49403         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49404         gl_GETPAGESIZE invocation, already handled by module dependency.
49405         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49406
49407 2007-12-02  Bruno Haible  <bruno@clisp.org>
49408
49409         * modules/strings-tests: New file.
49410         * tests/test-strings.c: New file.
49411
49412         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49413         * lib/strings.in.h: New file.
49414         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49415         * m4/strings_h.m4: New file.
49416         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49417         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49418         * modules/strings: New file.
49419         * modules/string (Makefile.am): Update.
49420         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49421         Reported by Karl Berry.
49422
49423 2007-12-01  Eric Blake  <ebb9@byu.net>
49424
49425         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49426         accomodate fix in cygwin 1.5.25.
49427
49428 2007-12-01  Jim Meyering  <meyering@redhat.com>
49429
49430         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49431         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49432         that would inhibit utf8-optimization of a regexp containing line-
49433         or buffer-anchors, e.g., `^', `$'.
49434
49435 2007-11-30  Bruno Haible  <bruno@clisp.org>
49436
49437         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49438         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49439         glthread_recursive_lock_init.
49440         * lib/lock.c (glthread_recursive_lock_init)
49441         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49442         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49443
49444 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49445
49446         New function qset_acl, like set_acl but with syscall semantics.
49447         * lib/acl.h (qset_acl): New decl.
49448         * lib/acl.c (qset_acl): New function.
49449         (set_acl): Use new function.  Use more-consistent diagnostics.
49450
49451 2007-11-28  Jim Meyering  <meyering@redhat.com>
49452
49453         * modules/physmem (License): Change from GPL to LGPLv2+.
49454
49455 2007-11-26  Bruno Haible  <bruno@clisp.org>
49456
49457         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49458         'long double' type has excess precision.
49459         Reported by Jim Meyering in
49460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49461
49462 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49463
49464         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49465         Sync from <http://gnu.org/licenses>.
49466         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49467         with license text from same location.
49468         * doc/maintain.texi, doc/standards.texi:  Sync from
49469         <http://savannah.gnu.org/projects/gnustandards>.
49470
49471 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49472         and Jim Meyering  <meyering@redhat.com>
49473
49474         Adjust getdate' grammar to accept a slightly more regular language.
49475         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49476         Before, the former was rejected.
49477         * lib/getdate.y (digits_to_date_time): New function, factored
49478         out of ...
49479         (number): ...here.  Just call digits_to_date_time.
49480         (hybrid): New non-terminal to handle an <unsigned number,
49481         signed relative offset> sequence consistently.
49482
49483 2007-11-18  Jim Meyering  <meyering@redhat.com>
49484
49485         Pull my changes from coreutils:
49486         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49487         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49488         use of $gnulib_tool_option_extras, so that it's separated from the
49489         preceding argument.
49490
49491         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49492         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49493         parent destination directories before copying a file into place.
49494
49495 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49496
49497         bootstrap: work also with 4-argument variant of AC_INIT
49498         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49499
49500 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49501
49502         Port test-getaddrinfo to Solaris.
49503         Problem reported by Bruno Haible in
49504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49505         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49506         explanation of setting 'hints'.
49507         Don't reject an implementation merely because it returns EAI_SERVICE.
49508         (EAI_SERVICE): Define to 0 if not defined.
49509
49510 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49511
49512         The license of gnu-make and posix-shell is now "GPLed build tool".
49513         * modules/gnu-make (License): Likewise.
49514         * modules/posix-shell (License): Likewise.
49515
49516         New module posix-shell, for determining a POSIX shell
49517         or perhaps something that is close enough to a POSIX shell.
49518         * m4/posix-shell.m4: New file.
49519         * modules/posix-shell: New file.
49520
49521         * MODULES.html.sh: Mention new module.
49522
49523         New module gnu-make, for determining whether we're using GNU Make.
49524         * m4/gnu-make.m4: New file.
49525         * modules/gnu-make: New file.
49526         * MODULES.html.sh: Mention new module.
49527
49528 2007-11-14  Jim Meyering  <meyering@redhat.com>
49529
49530         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49531         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49532         use this macro to create a function _definition_.
49533         Remove useless "#undef ARGMATCH_DIE".
49534
49535 2007-11-14  Bruno Haible  <bruno@clisp.org>
49536
49537         * lib/config.charset: Update for OpenBSD 4.1.
49538         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49539
49540 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49541
49542         Document 64-bit #if problems in stdint.texi.
49543         * doc/headers/stdint.texi (stdint.h): Mention problems with
49544         64-bit-#if, and how to work around them.
49545
49546         Don't insist on 'long long int' support in the preprocessor.  It
49547         breaks too many things.  For example, PRIdMAX still uses a 'long
49548         long int' format with the latest Sun compiler, even though
49549         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49550         preprocessor problem.  This causes the latest coreutils to dump
49551         core on Solaris 10 sparc with the Sun C compiler.
49552         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49553         the troublesome expressions at configure-time, not at #if-time.
49554         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49555         preprocessor.
49556         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49557         compile-time C checks, done at 'configure'-time.
49558         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49559         * modules/inttypes (Makefile): Substitute the new symbols that
49560         gl_INTTYPES_H now generates.
49561         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49562
49563 2007-11-12  Bruno Haible  <bruno@clisp.org>
49564
49565         Tests for Unicode character classification functions.
49566
49567         * modules/unictype/bidicategory-byname-tests: New file.
49568         * modules/unictype/bidicategory-name-tests: New file.
49569         * modules/unictype/bidicategory-of-tests: New file.
49570         * modules/unictype/bidicategory-test-tests: New file.
49571         * modules/unictype/block-list-tests: New file.
49572         * modules/unictype/block-of-tests: New file.
49573         * modules/unictype/block-test-tests: New file.
49574         * modules/unictype/category-C-tests: New file.
49575         * modules/unictype/category-Cc-tests: New file.
49576         * modules/unictype/category-Cf-tests: New file.
49577         * modules/unictype/category-Cn-tests: New file.
49578         * modules/unictype/category-Co-tests: New file.
49579         * modules/unictype/category-Cs-tests: New file.
49580         * modules/unictype/category-L-tests: New file.
49581         * modules/unictype/category-Ll-tests: New file.
49582         * modules/unictype/category-Lm-tests: New file.
49583         * modules/unictype/category-Lo-tests: New file.
49584         * modules/unictype/category-Lt-tests: New file.
49585         * modules/unictype/category-Lu-tests: New file.
49586         * modules/unictype/category-M-tests: New file.
49587         * modules/unictype/category-Mc-tests: New file.
49588         * modules/unictype/category-Me-tests: New file.
49589         * modules/unictype/category-Mn-tests: New file.
49590         * modules/unictype/category-N-tests: New file.
49591         * modules/unictype/category-Nd-tests: New file.
49592         * modules/unictype/category-Nl-tests: New file.
49593         * modules/unictype/category-No-tests: New file.
49594         * modules/unictype/category-P-tests: New file.
49595         * modules/unictype/category-Pc-tests: New file.
49596         * modules/unictype/category-Pd-tests: New file.
49597         * modules/unictype/category-Pe-tests: New file.
49598         * modules/unictype/category-Pf-tests: New file.
49599         * modules/unictype/category-Pi-tests: New file.
49600         * modules/unictype/category-Po-tests: New file.
49601         * modules/unictype/category-Ps-tests: New file.
49602         * modules/unictype/category-S-tests: New file.
49603         * modules/unictype/category-Sc-tests: New file.
49604         * modules/unictype/category-Sk-tests: New file.
49605         * modules/unictype/category-Sm-tests: New file.
49606         * modules/unictype/category-So-tests: New file.
49607         * modules/unictype/category-Z-tests: New file.
49608         * modules/unictype/category-Zl-tests: New file.
49609         * modules/unictype/category-Zp-tests: New file.
49610         * modules/unictype/category-Zs-tests: New file.
49611         * modules/unictype/category-and-not-tests: New file.
49612         * modules/unictype/category-and-tests: New file.
49613         * modules/unictype/category-byname-tests: New file.
49614         * modules/unictype/category-name-tests: New file.
49615         * modules/unictype/category-none-tests: New file.
49616         * modules/unictype/category-of-tests: New file.
49617         * modules/unictype/category-or-tests: New file.
49618         * modules/unictype/category-test-withtable-tests: New file.
49619         * modules/unictype/combining-class-tests: New file.
49620         * modules/unictype/ctype-alnum-tests: New file.
49621         * modules/unictype/ctype-alpha-tests: New file.
49622         * modules/unictype/ctype-blank-tests: New file.
49623         * modules/unictype/ctype-cntrl-tests: New file.
49624         * modules/unictype/ctype-digit-tests: New file.
49625         * modules/unictype/ctype-graph-tests: New file.
49626         * modules/unictype/ctype-lower-tests: New file.
49627         * modules/unictype/ctype-print-tests: New file.
49628         * modules/unictype/ctype-punct-tests: New file.
49629         * modules/unictype/ctype-space-tests: New file.
49630         * modules/unictype/ctype-upper-tests: New file.
49631         * modules/unictype/ctype-xdigit-tests: New file.
49632         * modules/unictype/decimal-digit-tests: New file.
49633         * modules/unictype/digit-tests: New file.
49634         * modules/unictype/mirror-tests: New file.
49635         * modules/unictype/numeric-tests: New file.
49636         * modules/unictype/property-alphabetic-tests: New file.
49637         * modules/unictype/property-ascii-hex-digit-tests: New file.
49638         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49639         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49640         * modules/unictype/property-bidi-block-separator-tests: New file.
49641         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49642         * modules/unictype/property-bidi-common-separator-tests: New file.
49643         * modules/unictype/property-bidi-control-tests: New file.
49644         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49645         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49646         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49647         * modules/unictype/property-bidi-european-digit-tests: New file.
49648         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49649         * modules/unictype/property-bidi-left-to-right-tests: New file.
49650         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49651         * modules/unictype/property-bidi-other-neutral-tests: New file.
49652         * modules/unictype/property-bidi-pdf-tests: New file.
49653         * modules/unictype/property-bidi-segment-separator-tests: New file.
49654         * modules/unictype/property-bidi-whitespace-tests: New file.
49655         * modules/unictype/property-byname-tests: New file.
49656         * modules/unictype/property-combining-tests: New file.
49657         * modules/unictype/property-composite-tests: New file.
49658         * modules/unictype/property-currency-symbol-tests: New file.
49659         * modules/unictype/property-dash-tests: New file.
49660         * modules/unictype/property-decimal-digit-tests: New file.
49661         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49662         * modules/unictype/property-deprecated-tests: New file.
49663         * modules/unictype/property-diacritic-tests: New file.
49664         * modules/unictype/property-extender-tests: New file.
49665         * modules/unictype/property-format-control-tests: New file.
49666         * modules/unictype/property-grapheme-base-tests: New file.
49667         * modules/unictype/property-grapheme-extend-tests: New file.
49668         * modules/unictype/property-grapheme-link-tests: New file.
49669         * modules/unictype/property-hex-digit-tests: New file.
49670         * modules/unictype/property-hyphen-tests: New file.
49671         * modules/unictype/property-id-continue-tests: New file.
49672         * modules/unictype/property-id-start-tests: New file.
49673         * modules/unictype/property-ideographic-tests: New file.
49674         * modules/unictype/property-ids-binary-operator-tests: New file.
49675         * modules/unictype/property-ids-trinary-operator-tests: New file.
49676         * modules/unictype/property-ignorable-control-tests: New file.
49677         * modules/unictype/property-iso-control-tests: New file.
49678         * modules/unictype/property-join-control-tests: New file.
49679         * modules/unictype/property-left-of-pair-tests: New file.
49680         * modules/unictype/property-line-separator-tests: New file.
49681         * modules/unictype/property-logical-order-exception-tests: New file.
49682         * modules/unictype/property-lowercase-tests: New file.
49683         * modules/unictype/property-math-tests: New file.
49684         * modules/unictype/property-non-break-tests: New file.
49685         * modules/unictype/property-not-a-character-tests: New file.
49686         * modules/unictype/property-numeric-tests: New file.
49687         * modules/unictype/property-other-alphabetic-tests: New file.
49688         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49689         * modules/unictype/property-other-grapheme-extend-tests: New file.
49690         * modules/unictype/property-other-id-continue-tests: New file.
49691         * modules/unictype/property-other-id-start-tests: New file.
49692         * modules/unictype/property-other-lowercase-tests: New file.
49693         * modules/unictype/property-other-math-tests: New file.
49694         * modules/unictype/property-other-uppercase-tests: New file.
49695         * modules/unictype/property-paired-punctuation-tests: New file.
49696         * modules/unictype/property-paragraph-separator-tests: New file.
49697         * modules/unictype/property-pattern-syntax-tests: New file.
49698         * modules/unictype/property-pattern-white-space-tests: New file.
49699         * modules/unictype/property-private-use-tests: New file.
49700         * modules/unictype/property-punctuation-tests: New file.
49701         * modules/unictype/property-quotation-mark-tests: New file.
49702         * modules/unictype/property-radical-tests: New file.
49703         * modules/unictype/property-sentence-terminal-tests: New file.
49704         * modules/unictype/property-soft-dotted-tests: New file.
49705         * modules/unictype/property-space-tests: New file.
49706         * modules/unictype/property-terminal-punctuation-tests: New file.
49707         * modules/unictype/property-test-tests: New file.
49708         * modules/unictype/property-titlecase-tests: New file.
49709         * modules/unictype/property-unassigned-code-value-tests: New file.
49710         * modules/unictype/property-unified-ideograph-tests: New file.
49711         * modules/unictype/property-uppercase-tests: New file.
49712         * modules/unictype/property-variation-selector-tests: New file.
49713         * modules/unictype/property-white-space-tests: New file.
49714         * modules/unictype/property-xid-continue-tests: New file.
49715         * modules/unictype/property-xid-start-tests: New file.
49716         * modules/unictype/property-zero-width-tests: New file.
49717         * modules/unictype/scripts-tests: New file.
49718         * modules/unictype/syntax-c-ident-tests: New file.
49719         * modules/unictype/syntax-c-whitespace-tests: New file.
49720         * modules/unictype/syntax-java-ident-tests: New file.
49721         * modules/unictype/syntax-java-whitespace-tests: New file.
49722         * tests/unictype/test-bidi_byname.c: New file.
49723         * tests/unictype/test-bidi_name.c: New file.
49724         * tests/unictype/test-bidi_of.c: New file.
49725         * tests/unictype/test-bidi_test.c: New file.
49726         * tests/unictype/test-block_list.c: New file.
49727         * tests/unictype/test-block_of.c: New file.
49728         * tests/unictype/test-block_test.c: New file.
49729         * tests/unictype/test-categ_and.c: New file.
49730         * tests/unictype/test-categ_and_not.c: New file.
49731         * tests/unictype/test-categ_byname.c: New file.
49732         * tests/unictype/test-categ_name.c: New file.
49733         * tests/unictype/test-categ_none.c: New file.
49734         * tests/unictype/test-categ_of.c: New file.
49735         * tests/unictype/test-categ_or.c: New file.
49736         * tests/unictype/test-categ_test_withtable.c: New file.
49737         * tests/unictype/test-combining.c: New file.
49738         * tests/unictype/test-decdigit.c: New file.
49739         * tests/unictype/test-digit.c: New file.
49740         * tests/unictype/test-mirror.c: New file.
49741         * tests/unictype/test-numeric.c: New file.
49742         * tests/unictype/test-pr_byname.c: New file.
49743         * tests/unictype/test-pr_test.c: New file.
49744         * tests/unictype/test-predicate-part1.h: New file.
49745         * tests/unictype/test-predicate-part2.h: New file.
49746         * tests/unictype/test-scripts.c: New file.
49747         * tests/unictype/test-sy_c_ident.c: New file.
49748         * tests/unictype/test-sy_java_ident.c: New file.
49749
49750         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49751         for Unicode 5.0.0.
49752         * tests/unictype/test-categ_Cc.c: Likewise.
49753         * tests/unictype/test-categ_Cf.c: Likewise.
49754         * tests/unictype/test-categ_Cn.c: Likewise.
49755         * tests/unictype/test-categ_Co.c: Likewise.
49756         * tests/unictype/test-categ_Cs.c: Likewise.
49757         * tests/unictype/test-categ_L.c: Likewise.
49758         * tests/unictype/test-categ_Ll.c: Likewise.
49759         * tests/unictype/test-categ_Lm.c: Likewise.
49760         * tests/unictype/test-categ_Lo.c: Likewise.
49761         * tests/unictype/test-categ_Lt.c: Likewise.
49762         * tests/unictype/test-categ_Lu.c: Likewise.
49763         * tests/unictype/test-categ_M.c: Likewise.
49764         * tests/unictype/test-categ_Mc.c: Likewise.
49765         * tests/unictype/test-categ_Me.c: Likewise.
49766         * tests/unictype/test-categ_Mn.c: Likewise.
49767         * tests/unictype/test-categ_N.c: Likewise.
49768         * tests/unictype/test-categ_Nd.c: Likewise.
49769         * tests/unictype/test-categ_Nl.c: Likewise.
49770         * tests/unictype/test-categ_No.c: Likewise.
49771         * tests/unictype/test-categ_P.c: Likewise.
49772         * tests/unictype/test-categ_Pc.c: Likewise.
49773         * tests/unictype/test-categ_Pd.c: Likewise.
49774         * tests/unictype/test-categ_Pe.c: Likewise.
49775         * tests/unictype/test-categ_Pf.c: Likewise.
49776         * tests/unictype/test-categ_Pi.c: Likewise.
49777         * tests/unictype/test-categ_Po.c: Likewise.
49778         * tests/unictype/test-categ_Ps.c: Likewise.
49779         * tests/unictype/test-categ_S.c: Likewise.
49780         * tests/unictype/test-categ_Sc.c: Likewise.
49781         * tests/unictype/test-categ_Sk.c: Likewise.
49782         * tests/unictype/test-categ_Sm.c: Likewise.
49783         * tests/unictype/test-categ_So.c: Likewise.
49784         * tests/unictype/test-categ_Z.c: Likewise.
49785         * tests/unictype/test-categ_Zl.c: Likewise.
49786         * tests/unictype/test-categ_Zp.c: Likewise.
49787         * tests/unictype/test-categ_Zs.c: Likewise.
49788         * tests/unictype/test-ctype_alnum.c: Likewise.
49789         * tests/unictype/test-ctype_alpha.c: Likewise.
49790         * tests/unictype/test-ctype_blank.c: Likewise.
49791         * tests/unictype/test-ctype_cntrl.c: Likewise.
49792         * tests/unictype/test-ctype_digit.c: Likewise.
49793         * tests/unictype/test-ctype_graph.c: Likewise.
49794         * tests/unictype/test-ctype_lower.c: Likewise.
49795         * tests/unictype/test-ctype_print.c: Likewise.
49796         * tests/unictype/test-ctype_punct.c: Likewise.
49797         * tests/unictype/test-ctype_space.c: Likewise.
49798         * tests/unictype/test-ctype_upper.c: Likewise.
49799         * tests/unictype/test-ctype_xdigit.c: Likewise.
49800         * tests/unictype/test-decdigit.h: Likewise.
49801         * tests/unictype/test-digit.h: Likewise.
49802         * tests/unictype/test-numeric.h: Likewise.
49803         * tests/unictype/test-pr_alphabetic.c: Likewise.
49804         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49805         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49806         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49807         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49808         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49809         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49810         * tests/unictype/test-pr_bidi_control.c: Likewise.
49811         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49812         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49813         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49814         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49815         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49816         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49817         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49818         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49819         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49820         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49821         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49822         * tests/unictype/test-pr_combining.c: Likewise.
49823         * tests/unictype/test-pr_composite.c: Likewise.
49824         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49825         * tests/unictype/test-pr_dash.c: Likewise.
49826         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49827         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49828         * tests/unictype/test-pr_deprecated.c: Likewise.
49829         * tests/unictype/test-pr_diacritic.c: Likewise.
49830         * tests/unictype/test-pr_extender.c: Likewise.
49831         * tests/unictype/test-pr_format_control.c: Likewise.
49832         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49833         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49834         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49835         * tests/unictype/test-pr_hex_digit.c: Likewise.
49836         * tests/unictype/test-pr_hyphen.c: Likewise.
49837         * tests/unictype/test-pr_id_continue.c: Likewise.
49838         * tests/unictype/test-pr_id_start.c: Likewise.
49839         * tests/unictype/test-pr_ideographic.c: Likewise.
49840         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49841         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49842         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49843         * tests/unictype/test-pr_iso_control.c: Likewise.
49844         * tests/unictype/test-pr_join_control.c: Likewise.
49845         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49846         * tests/unictype/test-pr_line_separator.c: Likewise.
49847         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49848         * tests/unictype/test-pr_lowercase.c: Likewise.
49849         * tests/unictype/test-pr_math.c: Likewise.
49850         * tests/unictype/test-pr_non_break.c: Likewise.
49851         * tests/unictype/test-pr_not_a_character.c: Likewise.
49852         * tests/unictype/test-pr_numeric.c: Likewise.
49853         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49854         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49855         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49856         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49857         * tests/unictype/test-pr_other_id_start.c: Likewise.
49858         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49859         * tests/unictype/test-pr_other_math.c: Likewise.
49860         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49861         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49862         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49863         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49864         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49865         * tests/unictype/test-pr_private_use.c: Likewise.
49866         * tests/unictype/test-pr_punctuation.c: Likewise.
49867         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49868         * tests/unictype/test-pr_radical.c: Likewise.
49869         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49870         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49871         * tests/unictype/test-pr_space.c: Likewise.
49872         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49873         * tests/unictype/test-pr_titlecase.c: Likewise.
49874         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49875         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49876         * tests/unictype/test-pr_uppercase.c: Likewise.
49877         * tests/unictype/test-pr_variation_selector.c: Likewise.
49878         * tests/unictype/test-pr_white_space.c: Likewise.
49879         * tests/unictype/test-pr_xid_continue.c: Likewise.
49880         * tests/unictype/test-pr_xid_start.c: Likewise.
49881         * tests/unictype/test-pr_zero_width.c: Likewise.
49882         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49883         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49884
49885 2007-11-12  Bruno Haible  <bruno@clisp.org>
49886
49887         Unicode character classification functions.
49888         * lib/unictype.h: New file.
49889         * modules/unictype/base: New file.
49890         * modules/unictype/category-L: New file.
49891         * modules/unictype/category-Lu: New file.
49892         * modules/unictype/category-Ll: New file.
49893         * modules/unictype/category-Lt: New file.
49894         * modules/unictype/category-Lm: New file.
49895         * modules/unictype/category-Lo: New file.
49896         * modules/unictype/category-M: New file.
49897         * modules/unictype/category-Mn: New file.
49898         * modules/unictype/category-Mc: New file.
49899         * modules/unictype/category-Me: New file.
49900         * modules/unictype/category-N: New file.
49901         * modules/unictype/category-Nd: New file.
49902         * modules/unictype/category-Nl: New file.
49903         * modules/unictype/category-No: New file.
49904         * modules/unictype/category-P: New file.
49905         * modules/unictype/category-Pc: New file.
49906         * modules/unictype/category-Pd: New file.
49907         * modules/unictype/category-Ps: New file.
49908         * modules/unictype/category-Pe: New file.
49909         * modules/unictype/category-Pi: New file.
49910         * modules/unictype/category-Pf: New file.
49911         * modules/unictype/category-Po: New file.
49912         * modules/unictype/category-S: New file.
49913         * modules/unictype/category-Sm: New file.
49914         * modules/unictype/category-Sc: New file.
49915         * modules/unictype/category-Sk: New file.
49916         * modules/unictype/category-So: New file.
49917         * modules/unictype/category-Z: New file.
49918         * modules/unictype/category-Zs: New file.
49919         * modules/unictype/category-Zl: New file.
49920         * modules/unictype/category-Zp: New file.
49921         * modules/unictype/category-C: New file.
49922         * modules/unictype/category-Cc: New file.
49923         * modules/unictype/category-Cf: New file.
49924         * modules/unictype/category-Cs: New file.
49925         * modules/unictype/category-Co: New file.
49926         * modules/unictype/category-Cn: New file.
49927         * modules/unictype/category-or: New file.
49928         * modules/unictype/category-of: New file.
49929         * modules/unictype/category-test: New file.
49930         * modules/unictype/category-test-withtable: New file.
49931         * modules/unictype/category-byname: New file.
49932         * modules/unictype/category-none: New file.
49933         * modules/unictype/category-and: New file.
49934         * modules/unictype/category-and-not: New file.
49935         * modules/unictype/category-name: New file.
49936         * modules/unictype/combining-class: New file.
49937         * modules/unictype/category-all: New file.
49938         * modules/unictype/bidicategory-all: New file.
49939         * modules/unictype/bidicategory-byname: New file.
49940         * modules/unictype/bidicategory-name: New file.
49941         * modules/unictype/bidicategory-of: New file.
49942         * modules/unictype/bidicategory-test: New file.
49943         * modules/unictype/decimal-digit: New file.
49944         * modules/unictype/digit: New file.
49945         * modules/unictype/numeric: New file.
49946         * modules/unictype/mirror: New file.
49947         * modules/unictype/property-white-space: New file.
49948         * modules/unictype/property-alphabetic: New file.
49949         * modules/unictype/property-other-alphabetic: New file.
49950         * modules/unictype/property-not-a-character: New file.
49951         * modules/unictype/property-default-ignorable-code-point: New file.
49952         * modules/unictype/property-other-default-ignorable-code-point: New
49953         file.
49954         * modules/unictype/property-deprecated: New file.
49955         * modules/unictype/property-logical-order-exception: New file.
49956         * modules/unictype/property-variation-selector: New file.
49957         * modules/unictype/property-private-use: New file.
49958         * modules/unictype/property-unassigned-code-value: New file.
49959         * modules/unictype/property-uppercase: New file.
49960         * modules/unictype/property-other-uppercase: New file.
49961         * modules/unictype/property-lowercase: New file.
49962         * modules/unictype/property-other-lowercase: New file.
49963         * modules/unictype/property-titlecase: New file.
49964         * modules/unictype/property-soft-dotted: New file.
49965         * modules/unictype/property-id-start: New file.
49966         * modules/unictype/property-other-id-start: New file.
49967         * modules/unictype/property-id-continue: New file.
49968         * modules/unictype/property-other-id-continue: New file.
49969         * modules/unictype/property-xid-start: New file.
49970         * modules/unictype/property-xid-continue: New file.
49971         * modules/unictype/property-pattern-white-space: New file.
49972         * modules/unictype/property-pattern-syntax: New file.
49973         * modules/unictype/property-join-control: New file.
49974         * modules/unictype/property-grapheme-base: New file.
49975         * modules/unictype/property-grapheme-extend: New file.
49976         * modules/unictype/property-other-grapheme-extend: New file.
49977         * modules/unictype/property-grapheme-link: New file.
49978         * modules/unictype/property-bidi-control: New file.
49979         * modules/unictype/property-bidi-left-to-right: New file.
49980         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49981         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49982         * modules/unictype/property-bidi-european-digit: New file.
49983         * modules/unictype/property-bidi-eur-num-separator: New file.
49984         * modules/unictype/property-bidi-eur-num-terminator: New file.
49985         * modules/unictype/property-bidi-arabic-digit: New file.
49986         * modules/unictype/property-bidi-common-separator: New file.
49987         * modules/unictype/property-bidi-block-separator: New file.
49988         * modules/unictype/property-bidi-segment-separator: New file.
49989         * modules/unictype/property-bidi-whitespace: New file.
49990         * modules/unictype/property-bidi-non-spacing-mark: New file.
49991         * modules/unictype/property-bidi-boundary-neutral: New file.
49992         * modules/unictype/property-bidi-pdf: New file.
49993         * modules/unictype/property-bidi-embedding-or-override: New file.
49994         * modules/unictype/property-bidi-other-neutral: New file.
49995         * modules/unictype/property-hex-digit: New file.
49996         * modules/unictype/property-ascii-hex-digit: New file.
49997         * modules/unictype/property-ideographic: New file.
49998         * modules/unictype/property-unified-ideograph: New file.
49999         * modules/unictype/property-radical: New file.
50000         * modules/unictype/property-ids-binary-operator: New file.
50001         * modules/unictype/property-ids-trinary-operator: New file.
50002         * modules/unictype/property-zero-width: New file.
50003         * modules/unictype/property-space: New file.
50004         * modules/unictype/property-non-break: New file.
50005         * modules/unictype/property-iso-control: New file.
50006         * modules/unictype/property-format-control: New file.
50007         * modules/unictype/property-dash: New file.
50008         * modules/unictype/property-hyphen: New file.
50009         * modules/unictype/property-punctuation: New file.
50010         * modules/unictype/property-line-separator: New file.
50011         * modules/unictype/property-paragraph-separator: New file.
50012         * modules/unictype/property-quotation-mark: New file.
50013         * modules/unictype/property-sentence-terminal: New file.
50014         * modules/unictype/property-terminal-punctuation: New file.
50015         * modules/unictype/property-currency-symbol: New file.
50016         * modules/unictype/property-math: New file.
50017         * modules/unictype/property-other-math: New file.
50018         * modules/unictype/property-paired-punctuation: New file.
50019         * modules/unictype/property-left-of-pair: New file.
50020         * modules/unictype/property-combining: New file.
50021         * modules/unictype/property-composite: New file.
50022         * modules/unictype/property-decimal-digit: New file.
50023         * modules/unictype/property-numeric: New file.
50024         * modules/unictype/property-diacritic: New file.
50025         * modules/unictype/property-extender: New file.
50026         * modules/unictype/property-ignorable-control: New file.
50027         * modules/unictype/property-test: New file.
50028         * modules/unictype/property-byname: New file.
50029         * modules/unictype/property-all: New file.
50030         * modules/unictype/scripts: New file.
50031         * modules/unictype/scripts-all: New file.
50032         * modules/unictype/block-of: New file.
50033         * modules/unictype/block-test: New file.
50034         * modules/unictype/block-list: New file.
50035         * modules/unictype/block-all: New file.
50036         * modules/unictype/syntax-c-whitespace: New file.
50037         * modules/unictype/syntax-java-whitespace: New file.
50038         * modules/unictype/syntax-c-ident: New file.
50039         * modules/unictype/syntax-java-ident: New file.
50040         * modules/unictype/ctype-alnum: New file.
50041         * modules/unictype/ctype-alpha: New file.
50042         * modules/unictype/ctype-cntrl: New file.
50043         * modules/unictype/ctype-digit: New file.
50044         * modules/unictype/ctype-graph: New file.
50045         * modules/unictype/ctype-lower: New file.
50046         * modules/unictype/ctype-print: New file.
50047         * modules/unictype/ctype-punct: New file.
50048         * modules/unictype/ctype-space: New file.
50049         * modules/unictype/ctype-upper: New file.
50050         * modules/unictype/ctype-xdigit: New file.
50051         * modules/unictype/ctype-blank: New file.
50052         * lib/unictype/bidi_byname.c: New file.
50053         * lib/unictype/bidi_name.c: New file.
50054         * lib/unictype/bidi_of.c: New file.
50055         * lib/unictype/bidi_test.c: New file.
50056         * lib/unictype/bitmap.h: New file.
50057         * lib/unictype/block_test.c: New file.
50058         * lib/unictype/blocks.c: New file.
50059         * lib/unictype/categ_C.c: New file.
50060         * lib/unictype/categ_Cc.c: New file.
50061         * lib/unictype/categ_Cf.c: New file.
50062         * lib/unictype/categ_Cn.c: New file.
50063         * lib/unictype/categ_Co.c: New file.
50064         * lib/unictype/categ_Cs.c: New file.
50065         * lib/unictype/categ_L.c: New file.
50066         * lib/unictype/categ_Ll.c: New file.
50067         * lib/unictype/categ_Lm.c: New file.
50068         * lib/unictype/categ_Lo.c: New file.
50069         * lib/unictype/categ_Lt.c: New file.
50070         * lib/unictype/categ_Lu.c: New file.
50071         * lib/unictype/categ_M.c: New file.
50072         * lib/unictype/categ_Mc.c: New file.
50073         * lib/unictype/categ_Me.c: New file.
50074         * lib/unictype/categ_Mn.c: New file.
50075         * lib/unictype/categ_N.c: New file.
50076         * lib/unictype/categ_Nd.c: New file.
50077         * lib/unictype/categ_Nl.c: New file.
50078         * lib/unictype/categ_No.c: New file.
50079         * lib/unictype/categ_P.c: New file.
50080         * lib/unictype/categ_Pc.c: New file.
50081         * lib/unictype/categ_Pd.c: New file.
50082         * lib/unictype/categ_Pe.c: New file.
50083         * lib/unictype/categ_Pf.c: New file.
50084         * lib/unictype/categ_Pi.c: New file.
50085         * lib/unictype/categ_Po.c: New file.
50086         * lib/unictype/categ_Ps.c: New file.
50087         * lib/unictype/categ_S.c: New file.
50088         * lib/unictype/categ_Sc.c: New file.
50089         * lib/unictype/categ_Sk.c: New file.
50090         * lib/unictype/categ_Sm.c: New file.
50091         * lib/unictype/categ_So.c: New file.
50092         * lib/unictype/categ_Z.c: New file.
50093         * lib/unictype/categ_Zl.c: New file.
50094         * lib/unictype/categ_Zp.c: New file.
50095         * lib/unictype/categ_Zs.c: New file.
50096         * lib/unictype/categ_and.c: New file.
50097         * lib/unictype/categ_and_not.c: New file.
50098         * lib/unictype/categ_byname.c: New file.
50099         * lib/unictype/categ_name.c: New file.
50100         * lib/unictype/categ_none.c: New file.
50101         * lib/unictype/categ_of.c: New file.
50102         * lib/unictype/categ_or.c: New file.
50103         * lib/unictype/categ_test.c: New file.
50104         * lib/unictype/combining.c: New file.
50105         * lib/unictype/ctype_alnum.c: New file.
50106         * lib/unictype/ctype_alpha.c: New file.
50107         * lib/unictype/ctype_blank.c: New file.
50108         * lib/unictype/ctype_cntrl.c: New file.
50109         * lib/unictype/ctype_digit.c: New file.
50110         * lib/unictype/ctype_graph.c: New file.
50111         * lib/unictype/ctype_lower.c: New file.
50112         * lib/unictype/ctype_print.c: New file.
50113         * lib/unictype/ctype_punct.c: New file.
50114         * lib/unictype/ctype_space.c: New file.
50115         * lib/unictype/ctype_upper.c: New file.
50116         * lib/unictype/ctype_xdigit.c: New file.
50117         * lib/unictype/decdigit.c: New file.
50118         * lib/unictype/digit.c: New file.
50119         * lib/unictype/identsyntaxmap.h: New file.
50120         * lib/unictype/mirror.c: New file.
50121         * lib/unictype/numeric.c: New file.
50122         * lib/unictype/pr_alphabetic.c: New file.
50123         * lib/unictype/pr_ascii_hex_digit.c: New file.
50124         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50125         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50126         * lib/unictype/pr_bidi_block_separator.c: New file.
50127         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50128         * lib/unictype/pr_bidi_common_separator.c: New file.
50129         * lib/unictype/pr_bidi_control.c: New file.
50130         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50131         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50132         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50133         * lib/unictype/pr_bidi_european_digit.c: New file.
50134         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50135         * lib/unictype/pr_bidi_left_to_right.c: New file.
50136         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50137         * lib/unictype/pr_bidi_other_neutral.c: New file.
50138         * lib/unictype/pr_bidi_pdf.c: New file.
50139         * lib/unictype/pr_bidi_segment_separator.c: New file.
50140         * lib/unictype/pr_bidi_whitespace.c: New file.
50141         * lib/unictype/pr_byname.c: New file.
50142         * lib/unictype/pr_byname.gperf: New file.
50143         * lib/unictype/pr_combining.c: New file.
50144         * lib/unictype/pr_composite.c: New file.
50145         * lib/unictype/pr_currency_symbol.c: New file.
50146         * lib/unictype/pr_dash.c: New file.
50147         * lib/unictype/pr_decimal_digit.c: New file.
50148         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50149         * lib/unictype/pr_deprecated.c: New file.
50150         * lib/unictype/pr_diacritic.c: New file.
50151         * lib/unictype/pr_extender.c: New file.
50152         * lib/unictype/pr_format_control.c: New file.
50153         * lib/unictype/pr_grapheme_base.c: New file.
50154         * lib/unictype/pr_grapheme_extend.c: New file.
50155         * lib/unictype/pr_grapheme_link.c: New file.
50156         * lib/unictype/pr_hex_digit.c: New file.
50157         * lib/unictype/pr_hyphen.c: New file.
50158         * lib/unictype/pr_id_continue.c: New file.
50159         * lib/unictype/pr_id_start.c: New file.
50160         * lib/unictype/pr_ideographic.c: New file.
50161         * lib/unictype/pr_ids_binary_operator.c: New file.
50162         * lib/unictype/pr_ids_trinary_operator.c: New file.
50163         * lib/unictype/pr_ignorable_control.c: New file.
50164         * lib/unictype/pr_iso_control.c: New file.
50165         * lib/unictype/pr_join_control.c: New file.
50166         * lib/unictype/pr_left_of_pair.c: New file.
50167         * lib/unictype/pr_line_separator.c: New file.
50168         * lib/unictype/pr_logical_order_exception.c: New file.
50169         * lib/unictype/pr_lowercase.c: New file.
50170         * lib/unictype/pr_math.c: New file.
50171         * lib/unictype/pr_non_break.c: New file.
50172         * lib/unictype/pr_not_a_character.c: New file.
50173         * lib/unictype/pr_numeric.c: New file.
50174         * lib/unictype/pr_other_alphabetic.c: New file.
50175         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50176         * lib/unictype/pr_other_grapheme_extend.c: New file.
50177         * lib/unictype/pr_other_id_continue.c: New file.
50178         * lib/unictype/pr_other_id_start.c: New file.
50179         * lib/unictype/pr_other_lowercase.c: New file.
50180         * lib/unictype/pr_other_math.c: New file.
50181         * lib/unictype/pr_other_uppercase.c: New file.
50182         * lib/unictype/pr_paired_punctuation.c: New file.
50183         * lib/unictype/pr_paragraph_separator.c: New file.
50184         * lib/unictype/pr_pattern_syntax.c: New file.
50185         * lib/unictype/pr_pattern_white_space.c: New file.
50186         * lib/unictype/pr_private_use.c: New file.
50187         * lib/unictype/pr_punctuation.c: New file.
50188         * lib/unictype/pr_quotation_mark.c: New file.
50189         * lib/unictype/pr_radical.c: New file.
50190         * lib/unictype/pr_sentence_terminal.c: New file.
50191         * lib/unictype/pr_soft_dotted.c: New file.
50192         * lib/unictype/pr_space.c: New file.
50193         * lib/unictype/pr_terminal_punctuation.c: New file.
50194         * lib/unictype/pr_test.c: New file.
50195         * lib/unictype/pr_titlecase.c: New file.
50196         * lib/unictype/pr_unassigned_code_value.c: New file.
50197         * lib/unictype/pr_unified_ideograph.c: New file.
50198         * lib/unictype/pr_uppercase.c: New file.
50199         * lib/unictype/pr_variation_selector.c: New file.
50200         * lib/unictype/pr_white_space.c: New file.
50201         * lib/unictype/pr_xid_continue.c: New file.
50202         * lib/unictype/pr_xid_start.c: New file.
50203         * lib/unictype/pr_zero_width.c: New file.
50204         * lib/unictype/scripts.c: New file.
50205         * lib/unictype/sy_c_ident.c: New file.
50206         * lib/unictype/sy_c_whitespace.c: New file.
50207         * lib/unictype/sy_java_ident.c: New file.
50208         * lib/unictype/sy_java_whitespace.c: New file.
50209
50210         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50211         Unicode 5.0.0.
50212         * lib/unictype/blocks.h: Likewise.
50213         * lib/unictype/categ_C.h: Likewise.
50214         * lib/unictype/categ_Cc.h: Likewise.
50215         * lib/unictype/categ_Cf.h: Likewise.
50216         * lib/unictype/categ_Cn.h: Likewise.
50217         * lib/unictype/categ_Co.h: Likewise.
50218         * lib/unictype/categ_Cs.h: Likewise.
50219         * lib/unictype/categ_L.h: Likewise.
50220         * lib/unictype/categ_Ll.h: Likewise.
50221         * lib/unictype/categ_Lm.h: Likewise.
50222         * lib/unictype/categ_Lo.h: Likewise.
50223         * lib/unictype/categ_Lt.h: Likewise.
50224         * lib/unictype/categ_Lu.h: Likewise.
50225         * lib/unictype/categ_M.h: Likewise.
50226         * lib/unictype/categ_Mc.h: Likewise.
50227         * lib/unictype/categ_Me.h: Likewise.
50228         * lib/unictype/categ_Mn.h: Likewise.
50229         * lib/unictype/categ_N.h: Likewise.
50230         * lib/unictype/categ_Nd.h: Likewise.
50231         * lib/unictype/categ_Nl.h: Likewise.
50232         * lib/unictype/categ_No.h: Likewise.
50233         * lib/unictype/categ_P.h: Likewise.
50234         * lib/unictype/categ_Pc.h: Likewise.
50235         * lib/unictype/categ_Pd.h: Likewise.
50236         * lib/unictype/categ_Pe.h: Likewise.
50237         * lib/unictype/categ_Pf.h: Likewise.
50238         * lib/unictype/categ_Pi.h: Likewise.
50239         * lib/unictype/categ_Po.h: Likewise.
50240         * lib/unictype/categ_Ps.h: Likewise.
50241         * lib/unictype/categ_S.h: Likewise.
50242         * lib/unictype/categ_Sc.h: Likewise.
50243         * lib/unictype/categ_Sk.h: Likewise.
50244         * lib/unictype/categ_Sm.h: Likewise.
50245         * lib/unictype/categ_So.h: Likewise.
50246         * lib/unictype/categ_Z.h: Likewise.
50247         * lib/unictype/categ_Zl.h: Likewise.
50248         * lib/unictype/categ_Zp.h: Likewise.
50249         * lib/unictype/categ_Zs.h: Likewise.
50250         * lib/unictype/categ_of.h: Likewise.
50251         * lib/unictype/combining.h: Likewise.
50252         * lib/unictype/ctype_alnum.h: Likewise.
50253         * lib/unictype/ctype_alpha.h: Likewise.
50254         * lib/unictype/ctype_blank.h: Likewise.
50255         * lib/unictype/ctype_cntrl.h: Likewise.
50256         * lib/unictype/ctype_digit.h: Likewise.
50257         * lib/unictype/ctype_graph.h: Likewise.
50258         * lib/unictype/ctype_lower.h: Likewise.
50259         * lib/unictype/ctype_print.h: Likewise.
50260         * lib/unictype/ctype_punct.h: Likewise.
50261         * lib/unictype/ctype_space.h: Likewise.
50262         * lib/unictype/ctype_upper.h: Likewise.
50263         * lib/unictype/ctype_xdigit.h: Likewise.
50264         * lib/unictype/decdigit.h: Likewise.
50265         * lib/unictype/digit.h: Likewise.
50266         * lib/unictype/mirror.h: Likewise.
50267         * lib/unictype/numeric.h: Likewise.
50268         * lib/unictype/pr_alphabetic.h: Likewise.
50269         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50270         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50271         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50272         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50273         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50274         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50275         * lib/unictype/pr_bidi_control.h: Likewise.
50276         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50277         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50278         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50279         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50280         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50281         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50282         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50283         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50284         * lib/unictype/pr_bidi_pdf.h: Likewise.
50285         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50286         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50287         * lib/unictype/pr_combining.h: Likewise.
50288         * lib/unictype/pr_composite.h: Likewise.
50289         * lib/unictype/pr_currency_symbol.h: Likewise.
50290         * lib/unictype/pr_dash.h: Likewise.
50291         * lib/unictype/pr_decimal_digit.h: Likewise.
50292         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50293         * lib/unictype/pr_deprecated.h: Likewise.
50294         * lib/unictype/pr_diacritic.h: Likewise.
50295         * lib/unictype/pr_extender.h: Likewise.
50296         * lib/unictype/pr_format_control.h: Likewise.
50297         * lib/unictype/pr_grapheme_base.h: Likewise.
50298         * lib/unictype/pr_grapheme_extend.h: Likewise.
50299         * lib/unictype/pr_grapheme_link.h: Likewise.
50300         * lib/unictype/pr_hex_digit.h: Likewise.
50301         * lib/unictype/pr_hyphen.h: Likewise.
50302         * lib/unictype/pr_id_continue.h: Likewise.
50303         * lib/unictype/pr_id_start.h: Likewise.
50304         * lib/unictype/pr_ideographic.h: Likewise.
50305         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50306         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50307         * lib/unictype/pr_ignorable_control.h: Likewise.
50308         * lib/unictype/pr_iso_control.h: Likewise.
50309         * lib/unictype/pr_join_control.h: Likewise.
50310         * lib/unictype/pr_left_of_pair.h: Likewise.
50311         * lib/unictype/pr_line_separator.h: Likewise.
50312         * lib/unictype/pr_logical_order_exception.h: Likewise.
50313         * lib/unictype/pr_lowercase.h: Likewise.
50314         * lib/unictype/pr_math.h: Likewise.
50315         * lib/unictype/pr_non_break.h: Likewise.
50316         * lib/unictype/pr_not_a_character.h: Likewise.
50317         * lib/unictype/pr_numeric.h: Likewise.
50318         * lib/unictype/pr_other_alphabetic.h: Likewise.
50319         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50320         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50321         * lib/unictype/pr_other_id_continue.h: Likewise.
50322         * lib/unictype/pr_other_id_start.h: Likewise.
50323         * lib/unictype/pr_other_lowercase.h: Likewise.
50324         * lib/unictype/pr_other_math.h: Likewise.
50325         * lib/unictype/pr_other_uppercase.h: Likewise.
50326         * lib/unictype/pr_paired_punctuation.h: Likewise.
50327         * lib/unictype/pr_paragraph_separator.h: Likewise.
50328         * lib/unictype/pr_pattern_syntax.h: Likewise.
50329         * lib/unictype/pr_pattern_white_space.h: Likewise.
50330         * lib/unictype/pr_private_use.h: Likewise.
50331         * lib/unictype/pr_punctuation.h: Likewise.
50332         * lib/unictype/pr_quotation_mark.h: Likewise.
50333         * lib/unictype/pr_radical.h: Likewise.
50334         * lib/unictype/pr_sentence_terminal.h: Likewise.
50335         * lib/unictype/pr_soft_dotted.h: Likewise.
50336         * lib/unictype/pr_space.h: Likewise.
50337         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50338         * lib/unictype/pr_titlecase.h: Likewise.
50339         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50340         * lib/unictype/pr_unified_ideograph.h: Likewise.
50341         * lib/unictype/pr_uppercase.h: Likewise.
50342         * lib/unictype/pr_variation_selector.h: Likewise.
50343         * lib/unictype/pr_white_space.h: Likewise.
50344         * lib/unictype/pr_xid_continue.h: Likewise.
50345         * lib/unictype/pr_xid_start.h: Likewise.
50346         * lib/unictype/pr_zero_width.h: Likewise.
50347         * lib/unictype/scripts.h: Likewise.
50348         * lib/unictype/scripts_byname.gperf: Likewise.
50349         * lib/unictype/sy_c_ident.h: Likewise.
50350         * lib/unictype/sy_c_whitespace.h: Likewise.
50351         * lib/unictype/sy_java_ident.h: Likewise.
50352         * lib/unictype/sy_java_whitespace.h: Likewise.
50353
50354         * lib/unictype/Makefile: New file.
50355         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50356         glibc.
50357         * lib/unictype/3level.h: New file, copied from glibc.
50358         * lib/unictype/3levelbit.h: New file.
50359
50360 2007-11-11  Bruno Haible  <bruno@clisp.org>
50361
50362         * modules/gperf: New file.
50363         * modules/iconv_open (Depends-on): Add it.
50364         (Makefile.am): Remove the GPERF definition.
50365
50366 2007-11-11  Bruno Haible  <bruno@clisp.org>
50367
50368         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50369         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50370
50371 2007-11-11  Bruno Haible  <bruno@clisp.org>
50372
50373         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50374         (usage): Remove function.
50375
50376 2007-11-11  Bruno Haible  <bruno@clisp.org>
50377
50378         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50379         gl_FUNC_CEILF_LIBS.
50380         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50381         gl_FUNC_CEIL_LIBS.
50382         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50383         gl_FUNC_CEILL_LIBS.
50384         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50385         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50386         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50387
50388 2007-11-11  Bruno Haible  <bruno@clisp.org>
50389
50390         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50391         roundf were declared but do not exist on functions.
50392         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50393         roundl were declared but do not exist on functions.
50394         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50395         HAVE_FLOORL_AND_CEILL, respectively.
50396         Needed for Sun C on Solaris 10.
50397
50398 2007-11-11  Bruno Haible  <bruno@clisp.org>
50399
50400         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50401         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50402         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50403         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50404         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50405         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50406         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50407         HAVE_DECL_ROUNDF.
50408         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50409         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50411         of HAVE_DECL_ROUND*.
50412         * modules/math (Makefile.am): Update.
50413
50414 2007-11-10  Bruno Haible  <bruno@clisp.org>
50415
50416         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50417         ptrdiff_t as m4/intl.m4.
50418
50419 2007-11-10  Jim Meyering  <meyering@redhat.com>
50420
50421         Avoid link failure for the argmatch test.
50422         * tests/test-argmatch.c (usage): Define function to avoid a link
50423         failure: argmatch_die requires a usage function.
50424
50425 2007-11-09  Bruno Haible  <bruno@clisp.org>
50426
50427         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50428         * doc/functions/vsnprintf.texi: Likewise.
50429         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50430         with a size argument < 2.
50431
50432 2007-11-09  Bruno Haible  <bruno@clisp.org>
50433
50434         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50435         buffer. Fixes an inefficiency introduced on 2007-11-03.
50436
50437 2007-11-09  Bruno Haible  <bruno@clisp.org>
50438
50439         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50440         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50441
50442 2007-11-08  Jim Meyering  <meyering@redhat.com>
50443
50444         Change cache variable name prefix "jm_" to "gl_" everywhere.
50445         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50446         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50447         * m4/uptime.m4: s/gl_/jm_/
50448
50449 2007-11-07  Bruno Haible  <bruno@clisp.org>
50450
50451         Update to GNU gettext 0.17.
50452         * m4/intl.m4: Update to GNU gettext 0.17.
50453         * m4/po.m4: Likewise.
50454         * modules/gettext (Files): Remove m4/ulonglong.m4.
50455         (configure.ac): Require gettext infrastructure from version 0.17.
50456
50457 2007-11-06  Bruno Haible  <bruno@clisp.org>
50458
50459         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50460         symbolic values are not defined in a public header.
50461         * lib/freadable.c (freadable) [QNX]: Likewise.
50462         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50463         * lib/freading.c (freading) [QNX]: Likewise.
50464         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50465         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50466         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50467         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50468         Reported by Alain Magloire.
50469
50470         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50471
50472 2007-11-05  Bruno Haible  <bruno@clisp.org>
50473
50474         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50475         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50476         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50477         Reported by Eric Blake.
50478
50479 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50480             Bruno Haible  <bruno@clisp.org>
50481
50482         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50483         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50484         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50485         (malloc): Undefine also before including <stdlib.h>.
50486         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50487         Needed on OSF/1 4.0.
50488
50489 2007-11-05  Jim Meyering  <meyering@redhat.com>
50490
50491         git-version-gen: sync from coreutils.
50492         * build-aux/git-version-gen: Add comments.
50493         Change the first '-' to '.' in the snapshot version string,
50494         e.g., 6.9-377-08144 -> 6.9.377-08144
50495         Remove first parameter.
50496         Don't declare a version "-dirty" merely because a time
50497         stamp has changed.
50498
50499 2007-11-04  Bruno Haible  <bruno@clisp.org>
50500
50501         * lib/lock.h: Protect all macro definitions containing an 'if'
50502         statement through a "do { ... } while (0)".
50503         * lib/tls.h: Likewise.
50504
50505 2007-11-04  Bruno Haible  <bruno@clisp.org>
50506
50507         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50508
50509 2007-11-04  Bruno Haible  <bruno@clisp.org>
50510
50511         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50512         * modules/fprintf-posix (Depends-on): Add nocrash.
50513         * modules/snprintf-posix (Depends-on): Likewise.
50514         * modules/sprintf-posix (Depends-on): Likewise.
50515         * modules/vasnprintf-posix (Depends-on): Likewise.
50516         * modules/vasprintf-posix (Depends-on): Likewise.
50517         * modules/vfprintf-posix (Depends-on): Likewise.
50518         * modules/vsnprintf-posix (Depends-on): Likewise.
50519         * modules/vsprintf-posix (Depends-on): Likewise.
50520         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50521         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50522         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50523         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50524         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50525         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50526         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50527
50528 2007-11-04  Bruno Haible  <bruno@clisp.org>
50529
50530         * modules/nocrash: New file.
50531         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50532         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50533
50534 2007-11-04  Bruno Haible  <bruno@clisp.org>
50535
50536         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50537         precision handling.
50538         * tests/test-vasprintf-posix.c (test_function): Likewise.
50539         * tests/test-snprintf-posix.h (test_function): Likewise.
50540         * tests/test-sprintf-posix.h (test_function): Likewise.
50541
50542         Fix *printf behaviour for large precisions on mingw and BeOS.
50543         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50544         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50546         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50547         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50548         gl_PRINTF_PRECISION and test its result. Invoke
50549         gl_PREREQ_VASNPRINTF_PRECISION.
50550         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50551         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50552         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50553         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50554         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50555         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50556         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50557         * doc/functions/fprintf.texi: Update.
50558         * doc/functions/printf.texi: Update.
50559         * doc/functions/snprintf.texi: Update.
50560         * doc/functions/sprintf.texi: Update.
50561         * doc/functions/vfprintf.texi: Update.
50562         * doc/functions/vprintf.texi: Update.
50563         * doc/functions/vsnprintf.texi: Update.
50564         * doc/functions/vsprintf.texi: Update.
50565
50566 2007-11-04  Bruno Haible  <bruno@clisp.org>
50567
50568         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50569
50570 2007-11-04  Bruno Haible  <bruno@clisp.org>
50571
50572         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50573         Reported by Sylvain Beucler <beuc@gnu.org>.
50574
50575 2007-11-03  Bruno Haible  <bruno@clisp.org>
50576
50577         * tests/test-fprintf-posix2.sh: New file.
50578         * tests/test-fprintf-posix2.c: New file.
50579         * modules/fprintf-posix-tests (Files): Add them.
50580         (TESTS): Add test-fprintf-posix2.sh.
50581         (configure.ac): Check for getrlimit and setrlimit.
50582         (check_PROGRAMS): Add test-fprintf-posix2.
50583
50584         * tests/test-printf-posix2.sh: New file.
50585         * tests/test-printf-posix2.c: New file.
50586         * modules/printf-posix-tests (Files): Add them.
50587         (TESTS): Add test-printf-posix2.sh.
50588         (configure.ac): Check for getrlimit and setrlimit.
50589         (check_PROGRAMS): Add test-printf-posix2.
50590
50591         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50592         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50593         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50594         (decode_double): New function, copied from decode_long_double.
50595         (scale10_round_decimal_decoded): New function, extracted from
50596         scale10_round_decimal_long_double.
50597         (scale10_round_decimal_long_double): Use it.
50598         (scale10_round_decimal_double): New function.
50599         (floorlog10): New function.
50600         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50602         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50603         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50604         gl_PRINTF_ENOMEM and test its result. Invoke
50605         gl_PREREQ_VASNPRINTF_ENOMEM.
50606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50607         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50608         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50610         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50613         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50614         * modules/snprintf-posix (Depends-on): Likewise.
50615         * modules/sprintf-posix (Depends-on): Likewise.
50616         * modules/vasnprintf-posix (Depends-on): Likewise.
50617         * modules/vasprintf-posix (Depends-on): Likewise.
50618         * modules/vfprintf-posix (Depends-on): Likewise.
50619         * modules/vsnprintf-posix (Depends-on): Likewise.
50620         * modules/vsprintf-posix (Depends-on): Likewise.
50621         * doc/functions/fprintf.texi: Update.
50622         * doc/functions/printf.texi: Update.
50623         * doc/functions/snprintf.texi: Update.
50624         * doc/functions/sprintf.texi: Update.
50625         * doc/functions/vfprintf.texi: Update.
50626         * doc/functions/vprintf.texi: Update.
50627         * doc/functions/vsnprintf.texi: Update.
50628         * doc/functions/vsprintf.texi: Update.
50629
50630 2007-11-03  Bruno Haible  <bruno@clisp.org>
50631
50632         * modules/frexp-nolibm-tests: New file.
50633
50634         * modules/frexp-nolibm: New file.
50635         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50636
50637 2007-11-03  Bruno Haible  <bruno@clisp.org>
50638
50639         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50640         value is C99 compliant.
50641         Needed for OSF/1 5.1.
50642
50643 2007-11-03  Bruno Haible  <bruno@clisp.org>
50644
50645         Fix out-of-memory handling of vasnprintf.
50646         * lib/printf-parse.c: Include <errno.h>.
50647         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50648         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50649         is already set.
50650
50651 2007-11-02  Eric Blake  <ebb9@byu.net>
50652
50653         Fix tests on cygwin.
50654         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50655
50656 2007-11-01  Bruno Haible  <bruno@clisp.org>
50657
50658         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50659         warning.
50660         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50661         needed for POSIX compatibility.
50662
50663 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50664
50665         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50666         for compatibility with GNU.
50667
50668 2007-11-01  Bruno Haible  <bruno@clisp.org>
50669
50670         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50671         (putenv): Renamed from rpl_putenv. Change argument type from
50672         'const char *' to 'char *'.
50673         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50674         of defining putenv in config.h, just set REPLACE_PUTENV.
50675         * modules/putenv (Depends-on): Add stdlib.
50676         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50677         (Include): Use <stdlib.h>.
50678         * lib/stdlib.in.h (putenv): New declaration.
50679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50680         REPLACE_PUTENV.
50681         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50682         REPLACE_PUTENV.
50683         Needed for MacOS X 10.5.0.
50684         Reported by Peter O'Gorman <peter@pogma.com>.
50685
50686 2007-11-01  Jim Meyering  <meyering@redhat.com>
50687
50688         Treat an empty date string exactly like "0".
50689         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50690         if the remaining date string (to be parsed) is empty, use "0".
50691         Reported by Mischa Molhoek and discussed in this thread:
50692         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50693
50694 2007-10-31  Bruno Haible  <bruno@clisp.org>
50695
50696         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50697         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50698         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50699         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50700         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50701         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50702
50703 2007-10-31  Bruno Haible  <bruno@clisp.org>
50704
50705         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50706         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50707         (AC_TYPE_LONG_LONG_INT): Use it.
50708         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50709         it as well.
50710         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50711         to m4/longlong.m4.
50712         * modules/stdint (Files): Remove m4/ulonglong.m4.
50713         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50714         m4/ulonglong.m4.
50715         * modules/strtoumax (Files): Likewise.
50716
50717 2007-10-30  Bruno Haible  <bruno@clisp.org>
50718
50719         * modules/xvasprintf-posix: New file.
50720         Suggested by Eric Blake.
50721
50722 2007-10-30  Bruno Haible  <bruno@clisp.org>
50723
50724         * modules/xprintf-posix-tests: New file.
50725         * tests/test-xprintf-posix.sh: New file.
50726         * tests/test-xprintf-posix.c: New file.
50727         * tests/test-xfprintf-posix.c: New file.
50728
50729         * modules/xprintf-posix: New file.
50730
50731 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50732
50733         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50734         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50735         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50736
50737 2007-10-29  Bruno Haible  <bruno@clisp.org>
50738
50739         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50740         contain the special marker '_cv_'.
50741         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50742         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50743         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50744         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50745         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50746         Reported by Ralf Wildenhues.
50747
50748 2007-10-29  Bruno Haible  <bruno@clisp.org>
50749
50750         * gnulib-tool (func_import): When --lgpl is not specified, set
50751         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50752         GPLv3.
50753         Reported by Simon Josefsson.
50754
50755 2007-10-28  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50758         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50759         HAVE_DECL_ISFINITE.
50760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50761         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50762         HAVE_DECL_ISFINITE.
50763
50764 2007-10-28  Bruno Haible  <bruno@clisp.org>
50765
50766         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50767         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50768
50769 2007-10-28  Bruno Haible  <bruno@clisp.org>
50770
50771         Fix link errors with Sun C 5.0 on Solaris 10.
50772         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50773         function is declared but not present in the compiler's libm.
50774         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50775         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50776         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50777         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50778         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50779         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50780         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50782         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50783         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50784         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50785         HAVE_DECL_FLOORL.
50786
50787 2007-10-28  Bruno Haible  <bruno@clisp.org>
50788
50789         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50790         gl_FUNC_FLOORL. Cache the result.
50791         (gl_FUNC_FLOORL): Use it.
50792         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50793         gl_FUNC_CEILL. Cache the result.
50794         (gl_FUNC_CEILL): Use it.
50795
50796         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50797         gl_FUNC_FLOOR. Cache the result.
50798         (gl_FUNC_FLOOR): Use it.
50799         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50800         gl_FUNC_CEIL. Cache the result.
50801         (gl_FUNC_CEIL): Use it.
50802
50803         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50804         gl_FUNC_FLOORF. Cache the result.
50805         (gl_FUNC_FLOORF): Use it.
50806         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50807         gl_FUNC_CEILF. Cache the result.
50808         (gl_FUNC_CEILF): Use it.
50809
50810 2007-10-28  Bruno Haible  <bruno@clisp.org>
50811
50812         * gnulib-tool: Allow specifying the LGPL version number through
50813         --lgpl=2 or --lgpl=3.
50814         (func_usage): Document --lgpl with argument.
50815         Handle --lgpl=... arguments.
50816         (func_import): Recognize also gl_LGPL calls with an argument. When
50817         --lgpl=2 is used and the module's license is just LGPL, report an
50818         error. Set sed_transform_lib_file according to the lgpl variable. In
50819         the generated files, use --lgpl or gl_LGPL invocations with argument,
50820         if necessary.
50821         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50822         an LGPv2+ license.
50823         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50824         gl_LGPL macro.
50825
50826 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50827             Bruno Haible  <bruno@clisp.org>
50828
50829         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50830         (u16_uctomb_aux): Likewise.
50831         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50832         !HAVE_INLINE.
50833         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50834
50835 2007-10-28  Bruno Haible  <bruno@clisp.org>
50836
50837         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50838         Invoke AM_GETTEXT_OPTION if it exists.
50839         * modules/vasprintf: Likewise.
50840         * modules/verror: Likewise.
50841         * modules/xprintf: Likewise.
50842         * modules/xvasprintf: Likewise.
50843
50844 2007-10-27  Ben Pfaff  <blp@gnu.org>
50845
50846         * lib/math.in.h: Define isfinite macro and prototypes for
50847         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50848         implementations.
50849         * m4/math_h.m4: New substitutions for isfinite module.
50850         * lib/isfinite.c: New file.
50851         * m4/isfinite.m4: New file.
50852         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50853         * modules/isfinite: New file.
50854         * modules/isfinite-tests: New file.
50855         * tests/tests-isfinite.c: New file.
50856         * doc/functions/isfinite.texi: Mention isfinite module.
50857         * MODULES.html.sh: Mention new module.
50858
50859 2007-10-27  Ben Pfaff  <blp@gnu.org>
50860
50861         Ralf Wildenhues reported that Tru64 4.0D declares the round
50862         functions but does not have definitions.
50863         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50864         cannot be found in any library, set the output variable to
50865         "missing" instead of "".
50866         * m4/round.m4: Also use our substitute if we cannot find round in
50867         any library, even if it is declared.
50868         * m4/roundf.m4: Likewise for roundf.
50869         * m4/roundl.m4: Likewise for roundl.
50870         * lib/math.in.h: Undefine roundf, round, roundl before defining
50871         their replacements, to allow for hypothetical systems where these
50872         may be defined as macros but not available in libraries.
50873
50874 2007-10-27  Bruno Haible  <bruno@clisp.org>
50875
50876         * doc/gnulib.texi: Invoke @firstparagraphindent.
50877         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50878         changes in gnulib.
50879         (Source changes): New section.
50880
50881 2007-10-26  Bruno Haible  <bruno@clisp.org>
50882
50883         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50884         borrowed from autoconf.
50885
50886 2007-10-26  Bruno Haible  <bruno@clisp.org>
50887
50888         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50889         strerror returned the empty string. Needed on HP-UX 11.00.
50890
50891 2007-10-24  Micah Cowan  <micah@cowan.name>
50892
50893         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50894         * build-aux/bootstrap: Remove support for now-unnecessary option,
50895         --cvs-user, and envvars CVS_USER, CVS_RSH.
50896
50897 2007-10-24  Jim Meyering  <meyering@redhat.com>
50898
50899         Avoid diagnostics from sha1sum when there is no cached checksum.
50900         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50901         if the po.s1 file hasn't been created yet.
50902
50903         * build-aux/bootstrap: Sync from coreutils:
50904         2007-10-24  Jim Meyering  <meyering@redhat.com>
50905         Get gnulib from the git repository, not from an obsolete cvs one.
50906         * build-aux/bootstrap: Suggestion from Micah Cowan.
50907         2007-10-04  Jim Meyering  <jim@meyering.net>
50908         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50909         (update_po_files): Work also when there are no .po files in po/.
50910
50911 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50912
50913         * README: Append ".git" to git and cg examples.
50914         Problem reported by Benoit Sigoure.
50915
50916 2007-10-23  Micah Cowan  <micah@cowan.name>
50917
50918         * users.txt: Add wget.
50919
50920 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50921
50922         Fix linking of some unistdio tests on FreeBSD.
50923         * modules/unistdio/u16-vsnprintf-tests
50924         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50925         * modules/unistdio/u16-vsprintf-tests
50926         (test_u16_vsnprintf1_LDADD): Likewise.
50927         * modules/unistdio/u32-vsnprintf-tests
50928         (test_u32_vsnprintf1_LDADD): Likewise.
50929         * modules/unistdio/u32-vsprintf-tests
50930         (test_u32_vsprintf1_LDADD): Likewise.
50931         * modules/unistdio/u8-vsnprintf-tests
50932         (test_u8_vsnprintf1_LDADD): Likewise.
50933         * modules/unistdio/u8-vsprintf-tests
50934         (test_u8_vsprintf1_LDADD): Likewise.
50935         * modules/unistdio/ulc-vsnprintf-tests
50936         (test_ulc_vsnprintf1_LDADD): Likewise.
50937         * modules/unistdio/ulc-vsprintf-tests
50938         (test_ulc_vsprintf1_LDADD): Likewise.
50939
50940         Fix linking of some uniconv tests on FreeBSD.
50941         * modules/uniconv/u16-conv-from-enc-tests
50942         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50943         * modules/uniconv/u16-conv-to-enc-tests
50944         (test_u16_conv_to_enc_LDADD): Likewise.
50945         * modules/uniconv/u16-strconv-from-enc-tests
50946         (test_u16_strconv_from_enc_LDADD): Likewise.
50947         * modules/uniconv/u16-strconv-to-enc-tests
50948         (test_u16_strconv_to_enc_LDADD): Likewise.
50949         * modules/uniconv/u32-conv-from-enc-tests
50950         (test_u32_conv_from_enc_LDADD): Likewise.
50951         * modules/uniconv/u32-conv-to-enc-tests
50952         (test_u32_conv_to_enc_LDADD): Likewise.
50953         * modules/uniconv/u32-strconv-from-enc-tests
50954         (test_u32_strconv_from_enc_LDADD): Likewise.
50955         * modules/uniconv/u32-strconv-to-enc-tests
50956         (test_u32_strconv_to_enc_LDADD): Likewise.
50957         * modules/uniconv/u8-conv-from-enc-tests
50958         (test_u8_conv_from_enc_LDADD): Likewise.
50959         * modules/uniconv/u8-conv-to-enc-tests
50960         (test_u8_conv_to_enc_LDADD): Likewise.
50961         * modules/uniconv/u8-strconv-from-enc-tests
50962         (test_u8_strconv_from_enc_LDADD): Likewise.
50963         * modules/uniconv/u8-strconv-to-enc-tests
50964         (test_u8_strconv_to_enc_LDADD): Likewise.
50965
50966 2007-10-22  Bruno Haible  <bruno@clisp.org>
50967
50968         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50969         size.
50970
50971 2007-10-22  Eric Blake  <ebb9@byu.net>
50972
50973         Tweak x*printf documentation.
50974         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50975         variable name and comments.
50976         Suggested by Bruno Haible.
50977
50978 2007-10-22  Bruno Haible  <bruno@clisp.org>
50979
50980         * lib/acl.c (copy_acl): Fix file name in comment.
50981
50982 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50983
50984         Fix Tru64 problem with stdbool.h.
50985         * lib/stdbool.in.h (false, true):
50986         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50987         Don't declare as an enum in this situation; it runs afoul of Tru64.
50988         Problem reported by Steven M. Schweda in
50989         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50990
50991 2007-10-22  Eric Blake  <ebb9@byu.net>
50992
50993         Also wrap vf?printf.
50994         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50995         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50996         (xvprintf, xvfprintf): New functions.
50997
50998 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50999
51000         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51001         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51002
51003         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51004         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51005
51006 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51007
51008         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51009         by Bruno Haible.
51010
51011 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51012
51013         * lib/getloadavg.c
51014         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51015         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51016
51017         * tests/test-i-ring.c: Work for C89.
51018
51019 2007-10-22  Bruno Haible  <bruno@clisp.org>
51020
51021         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51022         -1u, in preprocessor expression, so that we don't test for the bug
51023         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51025
51026 2007-10-22  Eric Blake  <ebb9@byu.net>
51027
51028         * tests/test-yesno.sh: Silence stderr during test.
51029
51030 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51031
51032         * modules/crypto/gc-camellia: New file.
51033
51034         * m4/gc-camellia.m4: New file.
51035
51036         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51037
51038         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51039
51040 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51041
51042         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51043         --help to stdout.  Reported by sms@antinode.org (Steven
51044         M. Schweda).
51045
51046 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51047
51048         * users.txt: Fix link to libksba.
51049
51050 2007-10-21  Ben Pfaff  <blp@gnu.org>
51051
51052         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51053         round.c roundf implementation that depends on floorf and ceilf to
51054         be tested unconditionally.
51055
51056 2007-10-21  Ben Pfaff  <blp@gnu.org>
51057
51058         * m4/check-libm-func.m4: Removed.
51059         * m4/check-math-lib.m4: New file.
51060         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51061         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51062         definition and lack of AC_LIBOBJ([roundf]).
51063         * m4/roundl.m4: Ditto, and similarly for roundl.
51064         * modules/round: Reference new m4 file.
51065         * modules/roundf: Ditto.
51066         * modules/roundl: Ditto.
51067         * tests/test-round2.c (main): Use ROUND instead of round.
51068         Bug report from Bruno Haible.
51069
51070 2007-10-21  Bruno Haible  <bruno@clisp.org>
51071
51072         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51073         context.
51074
51075 2007-10-21  Bruno Haible  <bruno@clisp.org>
51076
51077         * tests/test-wcwidth.c (main): Allow negative result for some control
51078         characters.
51079
51080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51081         Needed on OSF/1 5.1.
51082
51083 2007-10-21  Bruno Haible  <bruno@clisp.org>
51084
51085         * tests/test-floorf1.c: Include isnanf.h.
51086         (main): Use isnanf() instead of isnan().
51087         * tests/test-ceilf1.c: Include isnanf.h.
51088         (main): Use isnanf() instead of isnan().
51089         * tests/test-truncf1.c: Include isnanf.h.
51090         (main): Use isnanf() instead of isnan().
51091         * tests/test-roundf1.c: Include isnanf.h.
51092         (main): Use isnanf() instead of isnan().
51093
51094 2007-10-21  Eric Blake  <ebb9@byu.net>
51095
51096         * users.txt: Update URL for m4.
51097
51098 2007-10-21  Bruno Haible  <bruno@clisp.org>
51099
51100         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51101
51102 2007-10-21  Bruno Haible  <bruno@clisp.org>
51103
51104         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51105         Git's management files if the CVS files are not present.
51106
51107 2007-10-20  Bruno Haible  <bruno@clisp.org>
51108
51109         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51110         gcc-3.4.x.
51111
51112 2007-10-20  Ben Pfaff  <blp@gnu.org>
51113
51114         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51115         implementations.
51116         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51117         * lib/round.c: New file.
51118         * lib/roundf.c: New file.
51119         * lib/roundl.c: New file.
51120         * m4/round.m4: New file.
51121         * m4/roundf.m4: New file.
51122         * m4/roundl.m4: New file.
51123         * m4/check-libm-func-m4: New file.
51124         * modules/math: Replace round, roundf, roundl related @VARS@ in
51125         math.in.h.
51126         * modules/round: New file.
51127         * modules/round-tests: New file.
51128         * modules/roundf: New file.
51129         * modules/roundf-tests: New file.
51130         * modules/roundl: New file.
51131         * modules/roundl-tests: New file.
51132         * tests/test-round1.c: New file.
51133         * tests/test-round2.c: New file.
51134         * tests/test-roundf1.c: New file.
51135         * tests/test-roundf2.c: New file.
51136         * tests/test-roundl.c: New file.
51137         * doc/functions/round.texi: Mention round module.
51138         * doc/functions/roundf.texi: Mention roundf module.
51139         * doc/functions/roundl.texi: Mention roundl module.
51140         * MODULES.html.sh: Mention new modules.
51141         Thanks to Bruno Haible for suggestions.
51142
51143 2007-10-20  Jim Meyering  <meyering@redhat.com>
51144
51145         * lib/xprintf.c: Include <config.h> unconditionally.
51146
51147         Change xprintf's license to GPL.
51148         * modules/xprintf (License): s/LGPL/GPL/, since this module
51149         depends on modules (exit and exitfail) which are GPL.
51150         Suggestion from Bruno Haible.
51151
51152         xprintf fixes.
51153         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51154         Use a clearer diagnostic.
51155         Patch from Bruno Haible.
51156
51157 2007-10-20  Bruno Haible  <bruno@clisp.org>
51158
51159         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51160         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51161         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51162
51163 2007-10-20  Bruno Haible  <bruno@clisp.org>
51164
51165         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51166         precision in the comparison result > x - 1 or similar.
51167         * tests/test-ceilf2.c (correct_result_p): Likewise.
51168         * tests/test-truncf2.c (correct_result_p): Likewise.
51169         * tests/test-trunc2.c (correct_result_p): Likewise.
51170         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51171
51172 2007-10-20  Bruno Haible  <bruno@clisp.org>
51173
51174         * modules/ceil: New file.
51175         * m4/ceil.m4: New file.
51176         * doc/functions/ceil.texi: Mention the 'ceil' module.
51177
51178 2007-10-20  Bruno Haible  <bruno@clisp.org>
51179
51180         * modules/floor: New file.
51181         * m4/floor.m4: New file.
51182         * doc/functions/floor.texi: Mention the 'floor' module.
51183
51184 2007-10-20  Bruno Haible  <bruno@clisp.org>
51185
51186         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51187         of %a.
51188         * modules/floorf-tests (Depends-on): Likewise.
51189         * modules/truncf-tests (Depends-on): Likewise.
51190         * modules/trunc-tests (Depends-on): Likewise.
51191         Reported by Ben Pfaff.
51192
51193 2007-10-19  Jim Meyering  <meyering@redhat.com>
51194
51195         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51196         Don't bother testing specific errno values.  Just test ferror.
51197
51198         New module: xprintf
51199         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51200
51201 2007-10-19  Bruno Haible  <bruno@clisp.org>
51202
51203         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51204         syntax.
51205         * modules/javaexec (Makefile.am): Likewise.
51206         * modules/relocatable-prog (Makefile.am): Likewise.
51207         Suggested by Jim Meyering.
51208
51209 2007-10-18  Bruno Haible  <bruno@clisp.org>
51210
51211         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51212         Reported by Jim Meyering.
51213
51214 2007-10-18  Eric Blake  <ebb9@byu.net>
51215
51216         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51217
51218 2007-10-18  Bruno Haible  <bruno@clisp.org>
51219
51220         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51221         the format string into writable memory. Needed in Fortify conditions.
51222
51223 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51224             Bruno Haible  <bruno@clisp.org>
51225
51226         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51227         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51228         * modules/trim (Depends-on): Add mbchar.
51229         (configure.ac): Add gl_FUNC_MBRTOWC.
51230         (Makefile.am): Augment lib_SOURCES.
51231
51232 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51233
51234         Modify glob.c to use fstatat and dirfd, to simplify it.
51235         Suggested by Eric Blake.
51236         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51237         Don't include <stdbool.h>; not used.
51238         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51239         (link_exists_p): Simplify implementation, since we can now assume
51240         dirfd and fstatat.
51241         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51242
51243 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51244
51245         * gnulib-tool (func_get_dependencies): Fix sed script to
51246         match only tests.
51247
51248 2007-10-17  Bruno Haible  <bruno@clisp.org>
51249
51250         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51251         allow locale names without encoding suffix.
51252         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51253         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51254
51255 2007-10-16  Bruno Haible  <bruno@clisp.org>
51256
51257         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51258         * lib/getgroups.c (getgroups): Likewise.
51259         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51260
51261 2007-10-16  Bruno Haible  <bruno@clisp.org>
51262
51263         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51264         * modules/malloc-posix (License): Likewise.
51265         * modules/realloc-posix (License): Likewise.
51266         * modules/calloc-posix (License): Likewise.
51267         * modules/intprops (License): Change from GPL to LGPL, with
51268         Paul Eggert's approval.
51269
51270 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51271
51272         Merge glibc changes into lib/glob.c.
51273
51274         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51275         2007-10-15 04:59:03 UTC.  Here are the changes:
51276
51277         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51278
51279         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51280
51281         * lib/glob.c: Add some branch prediction throughout.
51282
51283         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51284
51285         [BZ #5103]
51286         * lib/glob.c (glob): Recognize patterns starting \/.
51287
51288         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51289
51290         [BZ #3996]
51291         * lib/glob.c (attribute_hidden): Define if not defined.
51292         (glob): Unescape dirname, filename or username when needed and not
51293         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51294         is NULL.  Handle unescaped [ in pattern without closing ].
51295         Don't pass GLOB_CHECK down to recursive glob for directories.
51296         (__glob_pattern_type): New function.
51297         (__glob_pattern_p): Implement using __glob_pattern_type.
51298         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51299         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51300         Remove unreachable code.
51301
51302         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51303
51304         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51305         explain why there are no leaks.
51306
51307         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51308
51309         [BZ #3253]
51310         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51311         time, rather allocate increasingly bigger arrays of pointers, if
51312         possible with alloca, if too large with malloc.
51313
51314 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51315
51316         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51317         Problem reported by H.Merijn Brand in
51318         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51319         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51320         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51321
51322 2007-10-15  Bruno Haible  <bruno@clisp.org>
51323
51324         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51325         with explicit rpl_ prefix.
51326         * lib/fopen.c (fopen): Likewise.
51327         * lib/freopen.c (freopen): Likewise.
51328         * lib/iconv.c (iconv): Likewise.
51329         * lib/iconv_close.c (iconv_close): Likewise.
51330
51331 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51332
51333         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51334
51335 2007-10-15  Bruno Haible  <bruno@clisp.org>
51336
51337         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51338         <stddef.h> instead of <stdlib.h> since we only need NULL.
51339         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51340
51341 2007-10-15  Bruno Haible  <bruno@clisp.org>
51342
51343         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51344         Replace paragraph talking about LIBOBJS.
51345         Reported by Colin Watson <cjwatson@debian.org>.
51346
51347 2007-10-15  Bruno Haible  <bruno@clisp.org>
51348
51349         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51350         <stdlib.h> before using NULL.
51351
51352 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51353
51354         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51355         Reported by Albert Chin <china@thewrittenword.com>.
51356
51357 2007-10-14  Bruno Haible  <bruno@clisp.org>
51358
51359         * modules/iconv_open-utf-tests: New file.
51360         * tests/test-iconv-utf.c: New file.
51361
51362         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51363         * modules/iconv_open-utf: New file.
51364         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51365         (iconv, iconv_close): New declarations.
51366         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51367         be defined.
51368         (iconv_open): Add special handling of conversion between UTF-8 and
51369         UTF-{16,32}{BE,LE}.
51370         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51371         * lib/iconv_close.c: New file.
51372         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51373         gl_FUNC_ICONV_OPEN.
51374         (gl_FUNC_ICONV_OPEN): Use it.
51375         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51376         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51377         and REPLACE_ICONV_UTF.
51378         * modules/iconv_open (Depends-on): Add c-strcase.
51379         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51380         ICONV_CONST.
51381         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51382
51383 2007-10-13  Albert Chin  <china@thewrittenword.com>
51384             Bruno Haible  <bruno@clisp.org>
51385
51386         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51387         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51388
51389 2007-10-13  Bruno Haible  <bruno@clisp.org>
51390
51391         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51392         defined, use the ISO C99 inline semantics.
51393         * lib/argp.h (ARGP_EI): Likewise.
51394
51395 2007-10-13  Bruno Haible  <bruno@clisp.org>
51396
51397         Handle 'inline' change in gcc 4.3.0.
51398         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51399         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51400         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51401         argp_fmtstream_point): Disable 'extern' declaration if the function
51402         definition is going to be provided inline.
51403         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51404         semantics, not the ISO C99 inline semantics.
51405         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51406         'extern' declaration if the function definition is going to be provided
51407         inline.
51408         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51409         the GNU C inline semantics, not the ISO C99 inline semantics. With
51410         GCC 4.2, avoid a warning.
51411
51412 2007-10-13  Bruno Haible  <bruno@clisp.org>
51413
51414         * lib/freading.h (freading): Enable the use of __freading for
51415         glibc >= 2.7.
51416         * lib/freading.c (freading): Likewise.
51417
51418 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51419
51420         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51421         "warning: C99 inline functions are not supported; using GNU89".
51422
51423 2007-10-12  Bruno Haible  <bruno@clisp.org>
51424
51425         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51426         of 2.
51427         * tests/test-ceilf2.c: New file.
51428         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51429
51430         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51431         * modules/ceilf-tests: Update.
51432
51433 2007-10-12  Bruno Haible  <bruno@clisp.org>
51434
51435         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51436         of 2.
51437         * tests/test-floorf2.c: New file.
51438         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51439
51440         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51441         * modules/floorf-tests: Update.
51442
51443 2007-10-12  Bruno Haible  <bruno@clisp.org>
51444
51445         * tests/test-trunc2.c: New file.
51446         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51447
51448         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51449         * modules/trunc-tests: Update.
51450
51451 2007-10-12  Bruno Haible  <bruno@clisp.org>
51452
51453         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51454         of 2.
51455         * tests/test-truncf2.c: New file.
51456         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51457
51458         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51459         * modules/truncf-tests: Update.
51460
51461 2007-10-11  Eric Blake  <ebb9@byu.net>
51462
51463         Don't claim strerror is broken on Interix.
51464         * doc/functions/strerror.texi (strerror): Known broken systems are
51465         now Solaris 8, and not Interix.
51466         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51467         Interix on cross-compile.
51468         Reported by Martin Koeppe in
51469         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51470
51471 2007-10-11  Bruno Haible  <bruno@clisp.org>
51472
51473         * modules/i-ring-tests: New file.
51474         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51475         instead of assert.
51476
51477 2007-10-11  Bruno Haible  <bruno@clisp.org>
51478
51479         * modules/filenamecat-tests: New file.
51480         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51481         * lib/filenamecat.c: Remove test code.
51482
51483 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51484
51485         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51486
51487         * lib/strerror.c: Include <string.h> always, to test interface,
51488         and to remove the need for the dummy.
51489         Include intprops.h to compute width instead of doing it ourselves
51490         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51491         (strerror): Define it to return NULL if there's no system strerror.
51492         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51493         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51494         ancient pre-strerror Unix systems well any more.  Saying "unknown
51495         system error" is enough.
51496         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51497         simpler strerror.c implementation.
51498         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51499         Simplify the tests to reflect the simpler strerror implementation.
51500         * modules/strerror (Depends-on): Add intprops.
51501
51502 2007-10-09  Eric Blake  <ebb9@byu.net>
51503
51504         Silence test-fpending.
51505         * modules/fpending-tests (Files): Add wrapper script.
51506         * tests/test-fpending.sh: New file.
51507
51508 2007-10-09  Bruno Haible  <bruno@clisp.org>
51509
51510         * MODULES.html.sh (func_module): Don't create a hyperlink for
51511         function names like 'printf_frexp'.
51512         (Misc): Add crc, memxor.
51513         (Characteristics of floating types): New section.
51514         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51515         isnanf-nolibm, signbit, trunc, truncf, truncl.
51516         (Enhancements for ISO C 99 functions): New subsection Input/output.
51517         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51518         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51519         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51520         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51521         (Enhancements for POSIX:2001 functions): Add chdir-long.
51522         (File system functions): Add areadlink, chdir-safer, read-file.
51523         Remove cycle-check.
51524         (File system as inode set): New section.
51525         (Date and time): Add gethrxtime.
51526         (Multithreading): Add openmp.
51527         (Internationalization functions): Add localename.
51528         (Unicode string functions): Add unistr/u*-mbsnlen.
51529         (Support for maintaining and releasing projects): Add git-version-gen.
51530         (Lone files): Remove directories.
51531
51532 2007-10-08  Ben Pfaff  <blp@gnu.org>
51533
51534         * lib/xmalloca.h: Fix typo in comment.
51535
51536 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51537
51538         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51539         when avoiding problems with integer overflow.  Use a portable test
51540         instead.
51541
51542 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51543
51544         * modules/dummy (License): Change to LGPLv2+.
51545         * modules/float (License): Likewise
51546         * modules/realloc (License): Likewise
51547         * modules/stdlib (License): Likewise
51548
51549 2007-10-07  Bruno Haible  <bruno@clisp.org>
51550
51551         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51552         * floor.c (TWO_MANT_DIG): Likewise.
51553         * ceil.c (TWO_MANT_DIG): Likewise.
51554         Reported by Ben Pfaff.
51555
51556 2007-10-07  Bruno Haible  <bruno@clisp.org>
51557
51558         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51559         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51560         * lib/frexp.c (FUNC): Likewise.
51561         * lib/printf-frexp.h (printf_frexp): Likewise.
51562         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51563         * lib/printf-frexp.c (FUNC): Likewise.
51564         Suggested by Jim Meyering.
51565
51566 2007-10-07  Jim Meyering  <meyering@redhat.com>
51567
51568         Make xnanosleep's integer overflow test more robust.
51569         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51570         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51571
51572 2007-10-07  Bruno Haible  <bruno@clisp.org>
51573
51574         * NEWS: Mention the license change.
51575
51576         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51577         abbreviations in the modules files.
51578
51579         Change copyright notice from GPLv2+ to GPLv3+.
51580         * README: Change copyright notice.
51581         * MODULES.html.sh: Likewise.
51582         * build-aux/bootstrap.conf: Likewise.
51583         * build-aux/config.libpath: Likewise.
51584         * build-aux/csharpcomp.sh.in: Likewise.
51585         * build-aux/csharpexec.sh.in: Likewise.
51586         * build-aux/install-reloc: Likewise.
51587         * build-aux/javacomp.sh.in: Likewise.
51588         * build-aux/javaexec.sh.in: Likewise.
51589         * build-aux/ldd.sh.in: Likewise.
51590         * build-aux/reloc-ldflags: Likewise.
51591         * build-aux/relocatable.sh.in: Likewise.
51592         * build-aux/x-to-1.in: Likewise.
51593         * check-module: Likewise.
51594         * config/srclistvars.sh: Likewise.
51595         * gnulib-tool: Likewise.
51596         * lib/acl-internal.h: Likewise.
51597         * lib/acl.c: Likewise.
51598         * lib/acl.h: Likewise.
51599         * lib/acl_entries.c: Likewise.
51600         * lib/areadlink-with-size.c: Likewise.
51601         * lib/areadlink.c: Likewise.
51602         * lib/areadlink.h: Likewise.
51603         * lib/argmatch.c: Likewise.
51604         * lib/argmatch.h: Likewise.
51605         * lib/argp-ba.c: Likewise.
51606         * lib/argp-eexst.c: Likewise.
51607         * lib/argp-fmtstream.c: Likewise.
51608         * lib/argp-fmtstream.h: Likewise.
51609         * lib/argp-fs-xinl.c: Likewise.
51610         * lib/argp-help.c: Likewise.
51611         * lib/argp-namefrob.h: Likewise.
51612         * lib/argp-parse.c: Likewise.
51613         * lib/argp-pin.c: Likewise.
51614         * lib/argp-pv.c: Likewise.
51615         * lib/argp-pvh.c: Likewise.
51616         * lib/argp-xinl.c: Likewise.
51617         * lib/argp.h: Likewise.
51618         * lib/at-func.c: Likewise.
51619         * lib/atanl.c: Likewise.
51620         * lib/backupfile.c: Likewise.
51621         * lib/backupfile.h: Likewise.
51622         * lib/basename.c: Likewise.
51623         * lib/binary-io.h: Likewise.
51624         * lib/byteswap.in.h: Likewise.
51625         * lib/c-stack.c: Likewise.
51626         * lib/c-stack.h: Likewise.
51627         * lib/c-strcasestr.c: Likewise.
51628         * lib/c-strcasestr.h: Likewise.
51629         * lib/c-strstr.c: Likewise.
51630         * lib/c-strstr.h: Likewise.
51631         * lib/c-strtod.c: Likewise.
51632         * lib/calloc.c: Likewise.
51633         * lib/canon-host.c: Likewise.
51634         * lib/canon-host.h: Likewise.
51635         * lib/canonicalize-lgpl.c: Likewise.
51636         * lib/canonicalize.c: Likewise.
51637         * lib/canonicalize.h: Likewise.
51638         * lib/ceil.c: Likewise.
51639         * lib/ceilf.c: Likewise.
51640         * lib/ceill.c: Likewise.
51641         * lib/chdir-long.c: Likewise.
51642         * lib/chdir-long.h: Likewise.
51643         * lib/chdir-safer.c: Likewise.
51644         * lib/chdir-safer.h: Likewise.
51645         * lib/chown.c: Likewise.
51646         * lib/classpath.c: Likewise.
51647         * lib/classpath.h: Likewise.
51648         * lib/clean-temp.c: Likewise.
51649         * lib/clean-temp.h: Likewise.
51650         * lib/cloexec.c: Likewise.
51651         * lib/close-stream.c: Likewise.
51652         * lib/closein.c: Likewise.
51653         * lib/closein.h: Likewise.
51654         * lib/closeout.c: Likewise.
51655         * lib/closeout.h: Likewise.
51656         * lib/concat-filename.c: Likewise.
51657         * lib/copy-file.c: Likewise.
51658         * lib/copy-file.h: Likewise.
51659         * lib/count-one-bits.h: Likewise.
51660         * lib/crc.c: Likewise.
51661         * lib/crc.h: Likewise.
51662         * lib/creat-safer.c: Likewise.
51663         * lib/csharpcomp.c: Likewise.
51664         * lib/csharpcomp.h: Likewise.
51665         * lib/csharpexec.c: Likewise.
51666         * lib/csharpexec.h: Likewise.
51667         * lib/cycle-check.c: Likewise.
51668         * lib/cycle-check.h: Likewise.
51669         * lib/diacrit.c: Likewise.
51670         * lib/diacrit.h: Likewise.
51671         * lib/diffseq.h: Likewise.
51672         * lib/dirchownmod.c: Likewise.
51673         * lib/dirent.in.h: Likewise.
51674         * lib/dirfd.c: Likewise.
51675         * lib/dirfd.h: Likewise.
51676         * lib/dirname.c: Likewise.
51677         * lib/dirname.h: Likewise.
51678         * lib/dummy.c: Likewise.
51679         * lib/dup-safer.c: Likewise.
51680         * lib/dup2.c: Likewise.
51681         * lib/eealloc.h: Likewise.
51682         * lib/error.c: Likewise.
51683         * lib/error.h: Likewise.
51684         * lib/euidaccess.c: Likewise.
51685         * lib/exclude.c: Likewise.
51686         * lib/exclude.h: Likewise.
51687         * lib/execute.c: Likewise.
51688         * lib/execute.h: Likewise.
51689         * lib/exitfail.c: Likewise.
51690         * lib/exitfail.h: Likewise.
51691         * lib/expl.c: Likewise.
51692         * lib/fatal-signal.c: Likewise.
51693         * lib/fatal-signal.h: Likewise.
51694         * lib/fbufmode.c: Likewise.
51695         * lib/fbufmode.h: Likewise.
51696         * lib/fchdir.c: Likewise.
51697         * lib/fchmodat.c: Likewise.
51698         * lib/fchownat.c: Likewise.
51699         * lib/fcntl--.h: Likewise.
51700         * lib/fcntl-safer.h: Likewise.
51701         * lib/fcntl.in.h: Likewise.
51702         * lib/fd-safer.c: Likewise.
51703         * lib/fflush.c: Likewise.
51704         * lib/file-has-acl.c: Likewise.
51705         * lib/file-set.c: Likewise.
51706         * lib/file-type.c: Likewise.
51707         * lib/file-type.h: Likewise.
51708         * lib/fileblocks.c: Likewise.
51709         * lib/filemode.c: Likewise.
51710         * lib/filemode.h: Likewise.
51711         * lib/filename.h: Likewise.
51712         * lib/filenamecat.c: Likewise.
51713         * lib/filenamecat.h: Likewise.
51714         * lib/findprog.c: Likewise.
51715         * lib/findprog.h: Likewise.
51716         * lib/float.in.h: Likewise.
51717         * lib/floor.c: Likewise.
51718         * lib/floorf.c: Likewise.
51719         * lib/floorl.c: Likewise.
51720         * lib/fopen-safer.c: Likewise.
51721         * lib/fopen.c: Likewise.
51722         * lib/fpending.c: Likewise.
51723         * lib/fpending.h: Likewise.
51724         * lib/fprintf.c: Likewise.
51725         * lib/fprintftime.h: Likewise.
51726         * lib/fpucw.h: Likewise.
51727         * lib/fpurge.c: Likewise.
51728         * lib/fpurge.h: Likewise.
51729         * lib/freadable.c: Likewise.
51730         * lib/freadable.h: Likewise.
51731         * lib/freadahead.c: Likewise.
51732         * lib/freadahead.h: Likewise.
51733         * lib/freading.c: Likewise.
51734         * lib/freading.h: Likewise.
51735         * lib/free.c: Likewise.
51736         * lib/freopen.c: Likewise.
51737         * lib/frexp.c: Likewise.
51738         * lib/frexpl.c: Likewise.
51739         * lib/fseek.c: Likewise.
51740         * lib/fseterr.c: Likewise.
51741         * lib/fseterr.h: Likewise.
51742         * lib/fstatat.c: Likewise.
51743         * lib/fstrcmp.c: Likewise.
51744         * lib/fstrcmp.h: Likewise.
51745         * lib/fsusage.c: Likewise.
51746         * lib/fsusage.h: Likewise.
51747         * lib/ftell.c: Likewise.
51748         * lib/ftello.c: Likewise.
51749         * lib/fts-cycle.c: Likewise.
51750         * lib/fts.c: Likewise.
51751         * lib/fts_.h: Likewise.
51752         * lib/full-read.c: Likewise.
51753         * lib/full-read.h: Likewise.
51754         * lib/full-write.c: Likewise.
51755         * lib/full-write.h: Likewise.
51756         * lib/fwritable.c: Likewise.
51757         * lib/fwritable.h: Likewise.
51758         * lib/fwriteerror.c: Likewise.
51759         * lib/fwriteerror.h: Likewise.
51760         * lib/fwriting.c: Likewise.
51761         * lib/fwriting.h: Likewise.
51762         * lib/gcd.c: Likewise.
51763         * lib/gcd.h: Likewise.
51764         * lib/getcwd.c: Likewise.
51765         * lib/getdate.h: Likewise.
51766         * lib/getdate.y: Likewise.
51767         * lib/getdomainname.c: Likewise.
51768         * lib/getdomainname.h: Likewise.
51769         * lib/getgroups.c: Likewise.
51770         * lib/gethostname.c: Likewise.
51771         * lib/gethrxtime.c: Likewise.
51772         * lib/gethrxtime.h: Likewise.
51773         * lib/getloadavg.c: Likewise.
51774         * lib/getndelim2.c: Likewise.
51775         * lib/getndelim2.h: Likewise.
51776         * lib/getnline.c: Likewise.
51777         * lib/getnline.h: Likewise.
51778         * lib/getopt.c: Likewise.
51779         * lib/getopt.in.h: Likewise.
51780         * lib/getopt1.c: Likewise.
51781         * lib/getopt_int.h: Likewise.
51782         * lib/getpagesize.h: Likewise.
51783         * lib/getsubopt.c: Likewise.
51784         * lib/gettime.c: Likewise.
51785         * lib/getugroups.c: Likewise.
51786         * lib/getugroups.h: Likewise.
51787         * lib/getusershell.c: Likewise.
51788         * lib/gl_anyavltree_list1.h: Likewise.
51789         * lib/gl_anyavltree_list2.h: Likewise.
51790         * lib/gl_anyhash_list1.h: Likewise.
51791         * lib/gl_anyhash_list2.h: Likewise.
51792         * lib/gl_anylinked_list1.h: Likewise.
51793         * lib/gl_anylinked_list2.h: Likewise.
51794         * lib/gl_anyrbtree_list1.h: Likewise.
51795         * lib/gl_anyrbtree_list2.h: Likewise.
51796         * lib/gl_anytree_list1.h: Likewise.
51797         * lib/gl_anytree_list2.h: Likewise.
51798         * lib/gl_anytree_oset.h: Likewise.
51799         * lib/gl_anytreehash_list1.h: Likewise.
51800         * lib/gl_anytreehash_list2.h: Likewise.
51801         * lib/gl_array_list.c: Likewise.
51802         * lib/gl_array_list.h: Likewise.
51803         * lib/gl_array_oset.c: Likewise.
51804         * lib/gl_array_oset.h: Likewise.
51805         * lib/gl_avltree_list.c: Likewise.
51806         * lib/gl_avltree_list.h: Likewise.
51807         * lib/gl_avltree_oset.c: Likewise.
51808         * lib/gl_avltree_oset.h: Likewise.
51809         * lib/gl_avltreehash_list.c: Likewise.
51810         * lib/gl_avltreehash_list.h: Likewise.
51811         * lib/gl_carray_list.c: Likewise.
51812         * lib/gl_carray_list.h: Likewise.
51813         * lib/gl_linked_list.c: Likewise.
51814         * lib/gl_linked_list.h: Likewise.
51815         * lib/gl_linkedhash_list.c: Likewise.
51816         * lib/gl_linkedhash_list.h: Likewise.
51817         * lib/gl_list.c: Likewise.
51818         * lib/gl_list.h: Likewise.
51819         * lib/gl_oset.c: Likewise.
51820         * lib/gl_oset.h: Likewise.
51821         * lib/gl_rbtree_list.c: Likewise.
51822         * lib/gl_rbtree_list.h: Likewise.
51823         * lib/gl_rbtree_oset.c: Likewise.
51824         * lib/gl_rbtree_oset.h: Likewise.
51825         * lib/gl_rbtreehash_list.c: Likewise.
51826         * lib/gl_rbtreehash_list.h: Likewise.
51827         * lib/gl_sublist.c: Likewise.
51828         * lib/gl_sublist.h: Likewise.
51829         * lib/group-member.c: Likewise.
51830         * lib/group-member.h: Likewise.
51831         * lib/hard-locale.c: Likewise.
51832         * lib/hard-locale.h: Likewise.
51833         * lib/hash-pjw.c: Likewise.
51834         * lib/hash-pjw.h: Likewise.
51835         * lib/hash-triple.c: Likewise.
51836         * lib/hash.c: Likewise.
51837         * lib/hash.h: Likewise.
51838         * lib/human.c: Likewise.
51839         * lib/human.h: Likewise.
51840         * lib/i-ring.c: Likewise.
51841         * lib/i-ring.h: Likewise.
51842         * lib/idcache.c: Likewise.
51843         * lib/imaxabs.c: Likewise.
51844         * lib/imaxdiv.c: Likewise.
51845         * lib/inet_pton.c: Likewise.
51846         * lib/inet_pton.h: Likewise.
51847         * lib/intprops.h: Likewise.
51848         * lib/inttostr.c: Likewise.
51849         * lib/inttostr.h: Likewise.
51850         * lib/inttypes.in.h: Likewise.
51851         * lib/isapipe.c: Likewise.
51852         * lib/isdir.c: Likewise.
51853         * lib/isnan.c: Likewise.
51854         * lib/isnan.h: Likewise.
51855         * lib/isnanf.c: Likewise.
51856         * lib/isnanf.h: Likewise.
51857         * lib/isnanl-nolibm.h: Likewise.
51858         * lib/isnanl.c: Likewise.
51859         * lib/isnanl.h: Likewise.
51860         * lib/javacomp.c: Likewise.
51861         * lib/javacomp.h: Likewise.
51862         * lib/javaexec.c: Likewise.
51863         * lib/javaexec.h: Likewise.
51864         * lib/javaversion.c: Likewise.
51865         * lib/javaversion.h: Likewise.
51866         * lib/javaversion.java: Likewise.
51867         * lib/lbrkprop.h: Likewise.
51868         * lib/lchmod.h: Likewise.
51869         * lib/lchown.c: Likewise.
51870         * lib/ldexpl.c: Likewise.
51871         * lib/linebreak.c: Likewise.
51872         * lib/linebreak.h: Likewise.
51873         * lib/linebuffer.c: Likewise.
51874         * lib/linebuffer.h: Likewise.
51875         * lib/locale.in.h: Likewise.
51876         * lib/logl.c: Likewise.
51877         * lib/long-options.c: Likewise.
51878         * lib/long-options.h: Likewise.
51879         * lib/lstat.c: Likewise.
51880         * lib/lstat.h: Likewise.
51881         * lib/math.in.h: Likewise.
51882         * lib/mbchar.c: Likewise.
51883         * lib/mbchar.h: Likewise.
51884         * lib/mbfile.h: Likewise.
51885         * lib/mbiter.h: Likewise.
51886         * lib/mbscasecmp.c: Likewise.
51887         * lib/mbscasestr.c: Likewise.
51888         * lib/mbschr.c: Likewise.
51889         * lib/mbscspn.c: Likewise.
51890         * lib/mbslen.c: Likewise.
51891         * lib/mbsncasecmp.c: Likewise.
51892         * lib/mbsnlen.c: Likewise.
51893         * lib/mbspbrk.c: Likewise.
51894         * lib/mbspcasecmp.c: Likewise.
51895         * lib/mbsrchr.c: Likewise.
51896         * lib/mbssep.c: Likewise.
51897         * lib/mbsspn.c: Likewise.
51898         * lib/mbsstr.c: Likewise.
51899         * lib/mbstok_r.c: Likewise.
51900         * lib/mbswidth.c: Likewise.
51901         * lib/mbswidth.h: Likewise.
51902         * lib/mbuiter.h: Likewise.
51903         * lib/memcasecmp.c: Likewise.
51904         * lib/memcasecmp.h: Likewise.
51905         * lib/memchr.c: Likewise.
51906         * lib/memcmp.c: Likewise.
51907         * lib/memcoll.c: Likewise.
51908         * lib/memcoll.h: Likewise.
51909         * lib/memcpy.c: Likewise.
51910         * lib/memrchr.c: Likewise.
51911         * lib/mkancesdirs.c: Likewise.
51912         * lib/mkdir-p.c: Likewise.
51913         * lib/mkdir-p.h: Likewise.
51914         * lib/mkdir.c: Likewise.
51915         * lib/mkdirat.c: Likewise.
51916         * lib/mkdtemp.c: Likewise.
51917         * lib/mkstemp-safer.c: Likewise.
51918         * lib/mkstemp.c: Likewise.
51919         * lib/modechange.c: Likewise.
51920         * lib/modechange.h: Likewise.
51921         * lib/mountlist.c: Likewise.
51922         * lib/mountlist.h: Likewise.
51923         * lib/mpsort.c: Likewise.
51924         * lib/nanosleep.c: Likewise.
51925         * lib/obstack.c: Likewise.
51926         * lib/obstack.h: Likewise.
51927         * lib/open-safer.c: Likewise.
51928         * lib/open.c: Likewise.
51929         * lib/openat-die.c: Likewise.
51930         * lib/openat-priv.h: Likewise.
51931         * lib/openat-proc.c: Likewise.
51932         * lib/openat.c: Likewise.
51933         * lib/openat.h: Likewise.
51934         * lib/pagealign_alloc.c: Likewise.
51935         * lib/pagealign_alloc.h: Likewise.
51936         * lib/physmem.c: Likewise.
51937         * lib/physmem.h: Likewise.
51938         * lib/pipe-safer.c: Likewise.
51939         * lib/pipe.c: Likewise.
51940         * lib/pipe.h: Likewise.
51941         * lib/posixtm.c: Likewise.
51942         * lib/posixtm.h: Likewise.
51943         * lib/posixver.c: Likewise.
51944         * lib/printf-frexp.c: Likewise.
51945         * lib/printf-frexp.h: Likewise.
51946         * lib/printf-frexpl.c: Likewise.
51947         * lib/printf-frexpl.h: Likewise.
51948         * lib/printf.c: Likewise.
51949         * lib/progname.c: Likewise.
51950         * lib/progname.h: Likewise.
51951         * lib/progreloc.c: Likewise.
51952         * lib/putenv.c: Likewise.
51953         * lib/quote.c: Likewise.
51954         * lib/quote.h: Likewise.
51955         * lib/quotearg.c: Likewise.
51956         * lib/quotearg.h: Likewise.
51957         * lib/raise.c: Likewise.
51958         * lib/readline.c: Likewise.
51959         * lib/readline.h: Likewise.
51960         * lib/readlink.c: Likewise.
51961         * lib/readtokens.c: Likewise.
51962         * lib/readtokens.h: Likewise.
51963         * lib/readtokens0.c: Likewise.
51964         * lib/readtokens0.h: Likewise.
51965         * lib/readutmp.c: Likewise.
51966         * lib/readutmp.h: Likewise.
51967         * lib/realloc.c: Likewise.
51968         * lib/relocwrapper.c: Likewise.
51969         * lib/rename-dest-slash.c: Likewise.
51970         * lib/rename.c: Likewise.
51971         * lib/rmdir.c: Likewise.
51972         * lib/rpmatch.c: Likewise.
51973         * lib/safe-read.c: Likewise.
51974         * lib/safe-read.h: Likewise.
51975         * lib/safe-write.c: Likewise.
51976         * lib/safe-write.h: Likewise.
51977         * lib/same-inode.h: Likewise.
51978         * lib/same.c: Likewise.
51979         * lib/same.h: Likewise.
51980         * lib/save-cwd.c: Likewise.
51981         * lib/save-cwd.h: Likewise.
51982         * lib/savedir.c: Likewise.
51983         * lib/savedir.h: Likewise.
51984         * lib/savewd.c: Likewise.
51985         * lib/savewd.h: Likewise.
51986         * lib/search.in.h: Likewise.
51987         * lib/setenv.c: Likewise.
51988         * lib/setenv.h: Likewise.
51989         * lib/settime.c: Likewise.
51990         * lib/sh-quote.c: Likewise.
51991         * lib/sh-quote.h: Likewise.
51992         * lib/sig2str.c: Likewise.
51993         * lib/sig2str.h: Likewise.
51994         * lib/signal.in.h: Likewise.
51995         * lib/signbitd.c: Likewise.
51996         * lib/signbitf.c: Likewise.
51997         * lib/signbitl.c: Likewise.
51998         * lib/sigprocmask.c: Likewise.
51999         * lib/sincosl.c: Likewise.
52000         * lib/sleep.c: Likewise.
52001         * lib/sprintf.c: Likewise.
52002         * lib/sqrtl.c: Likewise.
52003         * lib/stat-time.h: Likewise.
52004         * lib/stdio--.h: Likewise.
52005         * lib/stdio-safer.h: Likewise.
52006         * lib/stdlib--.h: Likewise.
52007         * lib/stdlib-safer.h: Likewise.
52008         * lib/stdlib.in.h: Likewise.
52009         * lib/stpcpy.c: Likewise.
52010         * lib/stpncpy.c: Likewise.
52011         * lib/strchrnul.c: Likewise.
52012         * lib/strcspn.c: Likewise.
52013         * lib/strerror.c: Likewise.
52014         * lib/strftime.c: Likewise.
52015         * lib/strftime.h: Likewise.
52016         * lib/striconveh.c: Likewise.
52017         * lib/striconveh.h: Likewise.
52018         * lib/striconveha.c: Likewise.
52019         * lib/striconveha.h: Likewise.
52020         * lib/stripslash.c: Likewise.
52021         * lib/strnlen1.c: Likewise.
52022         * lib/strnlen1.h: Likewise.
52023         * lib/strtod.c: Likewise.
52024         * lib/strtoimax.c: Likewise.
52025         * lib/strtok_r.c: Likewise.
52026         * lib/strtol.c: Likewise.
52027         * lib/strtoll.c: Likewise.
52028         * lib/strtoul.c: Likewise.
52029         * lib/strtoull.c: Likewise.
52030         * lib/sysexits.in.h: Likewise.
52031         * lib/tempname.c: Likewise.
52032         * lib/tempname.h: Likewise.
52033         * lib/timespec.h: Likewise.
52034         * lib/tls.c: Likewise.
52035         * lib/tls.h: Likewise.
52036         * lib/tmpdir.c: Likewise.
52037         * lib/tmpdir.h: Likewise.
52038         * lib/tmpfile-safer.c: Likewise.
52039         * lib/tmpfile.c: Likewise.
52040         * lib/trigl.c: Likewise.
52041         * lib/trigl.h: Likewise.
52042         * lib/trim.c: Likewise.
52043         * lib/trim.h: Likewise.
52044         * lib/trunc.c: Likewise.
52045         * lib/truncf.c: Likewise.
52046         * lib/truncl.c: Likewise.
52047         * lib/tsearch.c: Likewise.
52048         * lib/unicodeio.c: Likewise.
52049         * lib/unicodeio.h: Likewise.
52050         * lib/unistd--.h: Likewise.
52051         * lib/unistd-safer.h: Likewise.
52052         * lib/unistdio/ulc-fprintf.c: Likewise.
52053         * lib/unistdio/ulc-vfprintf.c: Likewise.
52054         * lib/unlinkdir.c: Likewise.
52055         * lib/unlinkdir.h: Likewise.
52056         * lib/unlocked-io.h: Likewise.
52057         * lib/unsetenv.c: Likewise.
52058         * lib/userspec.c: Likewise.
52059         * lib/utime.c: Likewise.
52060         * lib/utimecmp.c: Likewise.
52061         * lib/utimecmp.h: Likewise.
52062         * lib/utimens.c: Likewise.
52063         * lib/verify.h: Likewise.
52064         * lib/verror.c: Likewise.
52065         * lib/verror.h: Likewise.
52066         * lib/version-etc-fsf.c: Likewise.
52067         * lib/version-etc.c: Likewise.
52068         * lib/version-etc.h: Likewise.
52069         * lib/vfprintf.c: Likewise.
52070         * lib/vprintf.c: Likewise.
52071         * lib/vsprintf.c: Likewise.
52072         * lib/w32spawn.h: Likewise.
52073         * lib/wait-process.c: Likewise.
52074         * lib/wait-process.h: Likewise.
52075         * lib/wcwidth.c: Likewise.
52076         * lib/write-any-file.c: Likewise.
52077         * lib/xalloc-die.c: Likewise.
52078         * lib/xalloc.h: Likewise.
52079         * lib/xasprintf.c: Likewise.
52080         * lib/xgetcwd.c: Likewise.
52081         * lib/xgetcwd.h: Likewise.
52082         * lib/xgetdomainname.c: Likewise.
52083         * lib/xgetdomainname.h: Likewise.
52084         * lib/xgethostname.c: Likewise.
52085         * lib/xmalloc.c: Likewise.
52086         * lib/xmalloca.c: Likewise.
52087         * lib/xmalloca.h: Likewise.
52088         * lib/xmemcoll.c: Likewise.
52089         * lib/xnanosleep.c: Likewise.
52090         * lib/xreadlink.c: Likewise.
52091         * lib/xreadlink.h: Likewise.
52092         * lib/xsetenv.c: Likewise.
52093         * lib/xsetenv.h: Likewise.
52094         * lib/xstriconv.c: Likewise.
52095         * lib/xstriconv.h: Likewise.
52096         * lib/xstrndup.c: Likewise.
52097         * lib/xstrndup.h: Likewise.
52098         * lib/xstrtod.c: Likewise.
52099         * lib/xstrtod.h: Likewise.
52100         * lib/xstrtol-error.c: Likewise.
52101         * lib/xstrtol.c: Likewise.
52102         * lib/xstrtol.h: Likewise.
52103         * lib/xtime.h: Likewise.
52104         * lib/xvasprintf.c: Likewise.
52105         * lib/xvasprintf.h: Likewise.
52106         * lib/yesno.c: Likewise.
52107         * lib/yesno.h: Likewise.
52108         * posix-modules: Likewise.
52109         * tests/test-alloca-opt.c: Likewise.
52110         * tests/test-arcfour.c: Likewise.
52111         * tests/test-arctwo.c: Likewise.
52112         * tests/test-argmatch.c: Likewise.
52113         * tests/test-argp-2.sh: Likewise.
52114         * tests/test-argp.c: Likewise.
52115         * tests/test-arpa_inet.c: Likewise.
52116         * tests/test-array_list.c: Likewise.
52117         * tests/test-array_oset.c: Likewise.
52118         * tests/test-atexit.c: Likewise.
52119         * tests/test-avltree_list.c: Likewise.
52120         * tests/test-avltree_oset.c: Likewise.
52121         * tests/test-avltreehash_list.c: Likewise.
52122         * tests/test-base64.c: Likewise.
52123         * tests/test-binary-io.c: Likewise.
52124         * tests/test-byteswap.c: Likewise.
52125         * tests/test-c-ctype.c: Likewise.
52126         * tests/test-c-strcasecmp.c: Likewise.
52127         * tests/test-c-strcasestr.c: Likewise.
52128         * tests/test-c-strncasecmp.c: Likewise.
52129         * tests/test-c-strstr.c: Likewise.
52130         * tests/test-canonicalize-lgpl.c: Likewise.
52131         * tests/test-canonicalize.c: Likewise.
52132         * tests/test-carray_list.c: Likewise.
52133         * tests/test-ceilf.c: Likewise.
52134         * tests/test-ceill.c: Likewise.
52135         * tests/test-count-one-bits.c: Likewise.
52136         * tests/test-crc.c: Likewise.
52137         * tests/test-dirname.c: Likewise.
52138         * tests/test-fbufmode.c: Likewise.
52139         * tests/test-fcntl.c: Likewise.
52140         * tests/test-fflush.c: Likewise.
52141         * tests/test-floorf.c: Likewise.
52142         * tests/test-floorl.c: Likewise.
52143         * tests/test-fopen.c: Likewise.
52144         * tests/test-fprintf-posix.c: Likewise.
52145         * tests/test-fprintf-posix.h: Likewise.
52146         * tests/test-fpurge.c: Likewise.
52147         * tests/test-freadable.c: Likewise.
52148         * tests/test-freadahead.c: Likewise.
52149         * tests/test-freading.c: Likewise.
52150         * tests/test-freopen.c: Likewise.
52151         * tests/test-frexp.c: Likewise.
52152         * tests/test-frexpl.c: Likewise.
52153         * tests/test-fseek.c: Likewise.
52154         * tests/test-fseeko.c: Likewise.
52155         * tests/test-fseterr.c: Likewise.
52156         * tests/test-fstrcmp.c: Likewise.
52157         * tests/test-ftell.c: Likewise.
52158         * tests/test-ftello.c: Likewise.
52159         * tests/test-fwritable.c: Likewise.
52160         * tests/test-fwriting.c: Likewise.
52161         * tests/test-getaddrinfo.c: Likewise.
52162         * tests/test-getpass.c: Likewise.
52163         * tests/test-gettimeofday.c: Likewise.
52164         * tests/test-hmac-md5.c: Likewise.
52165         * tests/test-hmac-sha1.c: Likewise.
52166         * tests/test-iconv.c: Likewise.
52167         * tests/test-iconvme.c: Likewise.
52168         * tests/test-inttypes.c: Likewise.
52169         * tests/test-isnan.c: Likewise.
52170         * tests/test-isnanf.c: Likewise.
52171         * tests/test-isnanl-nolibm.c: Likewise.
52172         * tests/test-isnanl.c: Likewise.
52173         * tests/test-isnanl.h: Likewise.
52174         * tests/test-ldexpl.c: Likewise.
52175         * tests/test-linked_list.c: Likewise.
52176         * tests/test-linkedhash_list.c: Likewise.
52177         * tests/test-locale.c: Likewise.
52178         * tests/test-localename.c: Likewise.
52179         * tests/test-lock.c: Likewise.
52180         * tests/test-lseek.c: Likewise.
52181         * tests/test-malloca.c: Likewise.
52182         * tests/test-math.c: Likewise.
52183         * tests/test-mbscasecmp.c: Likewise.
52184         * tests/test-mbscasestr1.c: Likewise.
52185         * tests/test-mbscasestr2.c: Likewise.
52186         * tests/test-mbscasestr3.c: Likewise.
52187         * tests/test-mbscasestr4.c: Likewise.
52188         * tests/test-mbschr.c: Likewise.
52189         * tests/test-mbscspn.c: Likewise.
52190         * tests/test-mbsncasecmp.c: Likewise.
52191         * tests/test-mbspbrk.c: Likewise.
52192         * tests/test-mbspcasecmp.c: Likewise.
52193         * tests/test-mbsrchr.c: Likewise.
52194         * tests/test-mbsspn.c: Likewise.
52195         * tests/test-mbsstr1.c: Likewise.
52196         * tests/test-mbsstr2.c: Likewise.
52197         * tests/test-mbsstr3.c: Likewise.
52198         * tests/test-md5.c: Likewise.
52199         * tests/test-memmem.c: Likewise.
52200         * tests/test-netinet_in.c: Likewise.
52201         * tests/test-open.c: Likewise.
52202         * tests/test-printf-frexp.c: Likewise.
52203         * tests/test-printf-frexpl.c: Likewise.
52204         * tests/test-printf-posix.c: Likewise.
52205         * tests/test-printf-posix.h: Likewise.
52206         * tests/test-rbtree_list.c: Likewise.
52207         * tests/test-rbtree_oset.c: Likewise.
52208         * tests/test-rbtreehash_list.c: Likewise.
52209         * tests/test-read-file.c: Likewise.
52210         * tests/test-rijndael.c: Likewise.
52211         * tests/test-search.c: Likewise.
52212         * tests/test-signbit.c: Likewise.
52213         * tests/test-sleep.c: Likewise.
52214         * tests/test-snprintf-posix.c: Likewise.
52215         * tests/test-snprintf-posix.h: Likewise.
52216         * tests/test-snprintf.c: Likewise.
52217         * tests/test-sprintf-posix.c: Likewise.
52218         * tests/test-sprintf-posix.h: Likewise.
52219         * tests/test-stat-time.c: Likewise.
52220         * tests/test-stdbool.c: Likewise.
52221         * tests/test-stdint.c: Likewise.
52222         * tests/test-stdio.c: Likewise.
52223         * tests/test-stdlib.c: Likewise.
52224         * tests/test-stpncpy.c: Likewise.
52225         * tests/test-strcasestr.c: Likewise.
52226         * tests/test-striconv.c: Likewise.
52227         * tests/test-striconveh.c: Likewise.
52228         * tests/test-striconveha.c: Likewise.
52229         * tests/test-string.c: Likewise.
52230         * tests/test-sys_select.c: Likewise.
52231         * tests/test-sys_socket.c: Likewise.
52232         * tests/test-sys_stat.c: Likewise.
52233         * tests/test-sys_time.c: Likewise.
52234         * tests/test-sysexits.c: Likewise.
52235         * tests/test-time.c: Likewise.
52236         * tests/test-tls.c: Likewise.
52237         * tests/test-trunc.c: Likewise.
52238         * tests/test-truncf.c: Likewise.
52239         * tests/test-truncl.c: Likewise.
52240         * tests/test-unistd.c: Likewise.
52241         * tests/test-vasnprintf-posix.c: Likewise.
52242         * tests/test-vasnprintf-posix2.c: Likewise.
52243         * tests/test-vasnprintf.c: Likewise.
52244         * tests/test-vasprintf-posix.c: Likewise.
52245         * tests/test-vasprintf.c: Likewise.
52246         * tests/test-verify.c: Likewise.
52247         * tests/test-vfprintf-posix.c: Likewise.
52248         * tests/test-vprintf-posix.c: Likewise.
52249         * tests/test-vsnprintf-posix.c: Likewise.
52250         * tests/test-vsnprintf.c: Likewise.
52251         * tests/test-vsprintf-posix.c: Likewise.
52252         * tests/test-wchar.c: Likewise.
52253         * tests/test-wctype.c: Likewise.
52254         * tests/test-wcwidth.c: Likewise.
52255         * tests/test-xstrtol.c: Likewise.
52256         * tests/test-xvasprintf.c: Likewise.
52257         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52258         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52259         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52260         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52261         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52262         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52263         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52264         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52265         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52266         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52267         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52268         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52269         * tests/uniname/test-uninames.c: Likewise.
52270         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52271         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52272         * tests/unistdio/test-u16-printf1.h: Likewise.
52273         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52274         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52275         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52276         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52277         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52278         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52279         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52280         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52281         * tests/unistdio/test-u32-printf1.h: Likewise.
52282         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52283         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52284         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52285         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52286         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52287         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52288         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52289         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52290         * tests/unistdio/test-u8-printf1.h: Likewise.
52291         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52292         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52293         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52294         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52295         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52296         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52297         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52298         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52299         * tests/unistdio/test-ulc-printf1.h: Likewise.
52300         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52301         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52302         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52303         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52304         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52305         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52306         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52307         * tests/uniwidth/test-u16-width.c: Likewise.
52308         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52309         * tests/uniwidth/test-u32-width.c: Likewise.
52310         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52311         * tests/uniwidth/test-u8-width.c: Likewise.
52312         * tests/uniwidth/test-uc_width.c: Likewise.
52313         * config/srclist-update: Likewise.
52314         (fixlicense): Update to GPLv3+.
52315
52316         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52317         * tests/test-tsearch.c: Change copyright notice.
52318
52319         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52320         * lib/c-strcaseeq.h: Change copyright notice.
52321         * lib/streq.h: Likewise.
52322         * lib/uniconv.h: Likewise.
52323         * lib/uniconv/u-conv-from-enc.h: Likewise.
52324         * lib/uniconv/u-conv-to-enc.h: Likewise.
52325         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52326         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52327         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52328         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52329         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52330         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52331         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52332         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52333         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52334         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52335         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52336         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52337         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52338         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52339         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52340         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52341         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52342         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52343         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52344         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52345         * lib/uniname.h: Likewise.
52346         * lib/uniname/uniname.c: Likewise.
52347         * lib/unistdio.h: Likewise.
52348         * lib/unistdio/u-asnprintf.h: Likewise.
52349         * lib/unistdio/u-asprintf.h: Likewise.
52350         * lib/unistdio/u-printf-args.c: Likewise.
52351         * lib/unistdio/u-printf-args.h: Likewise.
52352         * lib/unistdio/u-printf-parse.h: Likewise.
52353         * lib/unistdio/u-snprintf.h: Likewise.
52354         * lib/unistdio/u-sprintf.h: Likewise.
52355         * lib/unistdio/u-vasprintf.h: Likewise.
52356         * lib/unistdio/u-vsnprintf.h: Likewise.
52357         * lib/unistdio/u-vsprintf.h: Likewise.
52358         * lib/unistdio/u16-asnprintf.c: Likewise.
52359         * lib/unistdio/u16-asprintf.c: Likewise.
52360         * lib/unistdio/u16-printf-parse.c: Likewise.
52361         * lib/unistdio/u16-snprintf.c: Likewise.
52362         * lib/unistdio/u16-sprintf.c: Likewise.
52363         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52364         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52365         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52366         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52367         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52368         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52369         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52370         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52371         * lib/unistdio/u16-vasnprintf.c: Likewise.
52372         * lib/unistdio/u16-vasprintf.c: Likewise.
52373         * lib/unistdio/u16-vsnprintf.c: Likewise.
52374         * lib/unistdio/u16-vsprintf.c: Likewise.
52375         * lib/unistdio/u32-asnprintf.c: Likewise.
52376         * lib/unistdio/u32-asprintf.c: Likewise.
52377         * lib/unistdio/u32-printf-parse.c: Likewise.
52378         * lib/unistdio/u32-snprintf.c: Likewise.
52379         * lib/unistdio/u32-sprintf.c: Likewise.
52380         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52381         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52382         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52383         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52384         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52385         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52386         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52387         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52388         * lib/unistdio/u32-vasnprintf.c: Likewise.
52389         * lib/unistdio/u32-vasprintf.c: Likewise.
52390         * lib/unistdio/u32-vsnprintf.c: Likewise.
52391         * lib/unistdio/u32-vsprintf.c: Likewise.
52392         * lib/unistdio/u8-asnprintf.c: Likewise.
52393         * lib/unistdio/u8-asprintf.c: Likewise.
52394         * lib/unistdio/u8-printf-parse.c: Likewise.
52395         * lib/unistdio/u8-snprintf.c: Likewise.
52396         * lib/unistdio/u8-sprintf.c: Likewise.
52397         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52398         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52399         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52400         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52401         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52402         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52403         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52404         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52405         * lib/unistdio/u8-vasnprintf.c: Likewise.
52406         * lib/unistdio/u8-vasprintf.c: Likewise.
52407         * lib/unistdio/u8-vsnprintf.c: Likewise.
52408         * lib/unistdio/u8-vsprintf.c: Likewise.
52409         * lib/unistdio/ulc-asnprintf.c: Likewise.
52410         * lib/unistdio/ulc-asprintf.c: Likewise.
52411         * lib/unistdio/ulc-printf-parse.c: Likewise.
52412         * lib/unistdio/ulc-snprintf.c: Likewise.
52413         * lib/unistdio/ulc-sprintf.c: Likewise.
52414         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52415         * lib/unistdio/ulc-vasprintf.c: Likewise.
52416         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52417         * lib/unistdio/ulc-vsprintf.c: Likewise.
52418         * lib/unistr.h: Likewise.
52419         * lib/unistr/u-cpy-alloc.h: Likewise.
52420         * lib/unistr/u-cpy.h: Likewise.
52421         * lib/unistr/u-endswith.h: Likewise.
52422         * lib/unistr/u-move.h: Likewise.
52423         * lib/unistr/u-set.h: Likewise.
52424         * lib/unistr/u-startswith.h: Likewise.
52425         * lib/unistr/u-stpcpy.h: Likewise.
52426         * lib/unistr/u-stpncpy.h: Likewise.
52427         * lib/unistr/u-strcat.h: Likewise.
52428         * lib/unistr/u-strcpy.h: Likewise.
52429         * lib/unistr/u-strcspn.h: Likewise.
52430         * lib/unistr/u-strdup.h: Likewise.
52431         * lib/unistr/u-strlen.h: Likewise.
52432         * lib/unistr/u-strncat.h: Likewise.
52433         * lib/unistr/u-strncpy.h: Likewise.
52434         * lib/unistr/u-strnlen.h: Likewise.
52435         * lib/unistr/u-strpbrk.h: Likewise.
52436         * lib/unistr/u-strspn.h: Likewise.
52437         * lib/unistr/u-strstr.h: Likewise.
52438         * lib/unistr/u-strtok.h: Likewise.
52439         * lib/unistr/u16-check.c: Likewise.
52440         * lib/unistr/u16-chr.c: Likewise.
52441         * lib/unistr/u16-cmp.c: Likewise.
52442         * lib/unistr/u16-cpy-alloc.c: Likewise.
52443         * lib/unistr/u16-cpy.c: Likewise.
52444         * lib/unistr/u16-endswith.c: Likewise.
52445         * lib/unistr/u16-mblen.c: Likewise.
52446         * lib/unistr/u16-mbsnlen.c: Likewise.
52447         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52448         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52449         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52450         * lib/unistr/u16-mbtouc.c: Likewise.
52451         * lib/unistr/u16-mbtoucr.c: Likewise.
52452         * lib/unistr/u16-move.c: Likewise.
52453         * lib/unistr/u16-next.c: Likewise.
52454         * lib/unistr/u16-prev.c: Likewise.
52455         * lib/unistr/u16-set.c: Likewise.
52456         * lib/unistr/u16-startswith.c: Likewise.
52457         * lib/unistr/u16-stpcpy.c: Likewise.
52458         * lib/unistr/u16-stpncpy.c: Likewise.
52459         * lib/unistr/u16-strcat.c: Likewise.
52460         * lib/unistr/u16-strchr.c: Likewise.
52461         * lib/unistr/u16-strcmp.c: Likewise.
52462         * lib/unistr/u16-strcpy.c: Likewise.
52463         * lib/unistr/u16-strcspn.c: Likewise.
52464         * lib/unistr/u16-strdup.c: Likewise.
52465         * lib/unistr/u16-strlen.c: Likewise.
52466         * lib/unistr/u16-strmblen.c: Likewise.
52467         * lib/unistr/u16-strmbtouc.c: Likewise.
52468         * lib/unistr/u16-strncat.c: Likewise.
52469         * lib/unistr/u16-strncmp.c: Likewise.
52470         * lib/unistr/u16-strncpy.c: Likewise.
52471         * lib/unistr/u16-strnlen.c: Likewise.
52472         * lib/unistr/u16-strpbrk.c: Likewise.
52473         * lib/unistr/u16-strrchr.c: Likewise.
52474         * lib/unistr/u16-strspn.c: Likewise.
52475         * lib/unistr/u16-strstr.c: Likewise.
52476         * lib/unistr/u16-strtok.c: Likewise.
52477         * lib/unistr/u16-to-u32.c: Likewise.
52478         * lib/unistr/u16-to-u8.c: Likewise.
52479         * lib/unistr/u16-uctomb-aux.c: Likewise.
52480         * lib/unistr/u16-uctomb.c: Likewise.
52481         * lib/unistr/u32-check.c: Likewise.
52482         * lib/unistr/u32-chr.c: Likewise.
52483         * lib/unistr/u32-cmp.c: Likewise.
52484         * lib/unistr/u32-cpy-alloc.c: Likewise.
52485         * lib/unistr/u32-cpy.c: Likewise.
52486         * lib/unistr/u32-endswith.c: Likewise.
52487         * lib/unistr/u32-mblen.c: Likewise.
52488         * lib/unistr/u32-mbsnlen.c: Likewise.
52489         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52490         * lib/unistr/u32-mbtouc.c: Likewise.
52491         * lib/unistr/u32-mbtoucr.c: Likewise.
52492         * lib/unistr/u32-move.c: Likewise.
52493         * lib/unistr/u32-next.c: Likewise.
52494         * lib/unistr/u32-prev.c: Likewise.
52495         * lib/unistr/u32-set.c: Likewise.
52496         * lib/unistr/u32-startswith.c: Likewise.
52497         * lib/unistr/u32-stpcpy.c: Likewise.
52498         * lib/unistr/u32-stpncpy.c: Likewise.
52499         * lib/unistr/u32-strcat.c: Likewise.
52500         * lib/unistr/u32-strchr.c: Likewise.
52501         * lib/unistr/u32-strcmp.c: Likewise.
52502         * lib/unistr/u32-strcpy.c: Likewise.
52503         * lib/unistr/u32-strcspn.c: Likewise.
52504         * lib/unistr/u32-strdup.c: Likewise.
52505         * lib/unistr/u32-strlen.c: Likewise.
52506         * lib/unistr/u32-strmblen.c: Likewise.
52507         * lib/unistr/u32-strmbtouc.c: Likewise.
52508         * lib/unistr/u32-strncat.c: Likewise.
52509         * lib/unistr/u32-strncmp.c: Likewise.
52510         * lib/unistr/u32-strncpy.c: Likewise.
52511         * lib/unistr/u32-strnlen.c: Likewise.
52512         * lib/unistr/u32-strpbrk.c: Likewise.
52513         * lib/unistr/u32-strrchr.c: Likewise.
52514         * lib/unistr/u32-strspn.c: Likewise.
52515         * lib/unistr/u32-strstr.c: Likewise.
52516         * lib/unistr/u32-strtok.c: Likewise.
52517         * lib/unistr/u32-to-u16.c: Likewise.
52518         * lib/unistr/u32-to-u8.c: Likewise.
52519         * lib/unistr/u32-uctomb.c: Likewise.
52520         * lib/unistr/u8-check.c: Likewise.
52521         * lib/unistr/u8-chr.c: Likewise.
52522         * lib/unistr/u8-cmp.c: Likewise.
52523         * lib/unistr/u8-cpy-alloc.c: Likewise.
52524         * lib/unistr/u8-cpy.c: Likewise.
52525         * lib/unistr/u8-endswith.c: Likewise.
52526         * lib/unistr/u8-mblen.c: Likewise.
52527         * lib/unistr/u8-mbsnlen.c: Likewise.
52528         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52529         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52530         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52531         * lib/unistr/u8-mbtouc.c: Likewise.
52532         * lib/unistr/u8-mbtoucr.c: Likewise.
52533         * lib/unistr/u8-move.c: Likewise.
52534         * lib/unistr/u8-next.c: Likewise.
52535         * lib/unistr/u8-prev.c: Likewise.
52536         * lib/unistr/u8-set.c: Likewise.
52537         * lib/unistr/u8-startswith.c: Likewise.
52538         * lib/unistr/u8-stpcpy.c: Likewise.
52539         * lib/unistr/u8-stpncpy.c: Likewise.
52540         * lib/unistr/u8-strcat.c: Likewise.
52541         * lib/unistr/u8-strchr.c: Likewise.
52542         * lib/unistr/u8-strcmp.c: Likewise.
52543         * lib/unistr/u8-strcpy.c: Likewise.
52544         * lib/unistr/u8-strcspn.c: Likewise.
52545         * lib/unistr/u8-strdup.c: Likewise.
52546         * lib/unistr/u8-strlen.c: Likewise.
52547         * lib/unistr/u8-strmblen.c: Likewise.
52548         * lib/unistr/u8-strmbtouc.c: Likewise.
52549         * lib/unistr/u8-strncat.c: Likewise.
52550         * lib/unistr/u8-strncmp.c: Likewise.
52551         * lib/unistr/u8-strncpy.c: Likewise.
52552         * lib/unistr/u8-strnlen.c: Likewise.
52553         * lib/unistr/u8-strpbrk.c: Likewise.
52554         * lib/unistr/u8-strrchr.c: Likewise.
52555         * lib/unistr/u8-strspn.c: Likewise.
52556         * lib/unistr/u8-strstr.c: Likewise.
52557         * lib/unistr/u8-strtok.c: Likewise.
52558         * lib/unistr/u8-to-u16.c: Likewise.
52559         * lib/unistr/u8-to-u32.c: Likewise.
52560         * lib/unistr/u8-uctomb-aux.c: Likewise.
52561         * lib/unistr/u8-uctomb.c: Likewise.
52562         * lib/unitypes.h: Likewise.
52563         * lib/uniwidth.h: Likewise.
52564         * lib/uniwidth/cjk.h: Likewise.
52565         * lib/uniwidth/u16-strwidth.c: Likewise.
52566         * lib/uniwidth/u16-width.c: Likewise.
52567         * lib/uniwidth/u32-strwidth.c: Likewise.
52568         * lib/uniwidth/u32-width.c: Likewise.
52569         * lib/uniwidth/u8-strwidth.c: Likewise.
52570         * lib/uniwidth/u8-width.c: Likewise.
52571         * lib/uniwidth/width.c: Likewise.
52572
52573 2007-10-07  Bruno Haible  <bruno@clisp.org>
52574
52575         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52576         The file is still under LGPL (see modules/inttypes).
52577
52578 2007-10-06  Bruno Haible  <bruno@clisp.org>
52579
52580         * modules/trunc (Dependencies): Add 'extensions'.
52581         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52582         Reported by Ben Pfaff <blp@gnu.org>.
52583
52584 2007-10-06  Bruno Haible  <bruno@clisp.org>
52585
52586         * modules/freopen-tests: New file.
52587         * tests/test-freopen.c: New file.
52588
52589         * modules/fopen-tests: New file.
52590         * tests/test-fopen.c: New file.
52591
52592         * modules/fopen: New file.
52593         * lib/fopen.c: New file.
52594         * m4/fopen.m4: New file.
52595         * modules/freopen: New file.
52596         * lib/freopen.c: New file.
52597         * m4/freopen.m4: New file.
52598         * lib/stdio.in.h (fopen, freopen): New declarations.
52599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52600         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52601         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52602         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52603         * doc/functions/fopen.texi: Mention the 'fopen' module.
52604         * doc/functions/freopen.texi: Mention the 'freopen' module.
52605
52606 2007-10-06  Bruno Haible  <bruno@clisp.org>
52607
52608         * modules/open-tests: New file.
52609         * tests/test-open.c: New file.
52610
52611         * modules/open: New file.
52612         * lib/open.c: New file.
52613         * m4/open.m4: New file.
52614         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52615         lib/open.c does.
52616         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52617         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52618         macros.
52619         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52620         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52621         REPLACE_OPEN.
52622         * doc/functions/open.texi: Mention the 'open' module.
52623
52624 2007-10-04  Bruno Haible  <bruno@clisp.org>
52625
52626         * modules/ceill-tests: New file.
52627         * tests/test-ceill.c: New file.
52628
52629         * modules/ceill: New file.
52630         * lib/ceill.c: Replace entire file.
52631         * m4/ceill.m4: New file.
52632         * lib/math.in.h (ceill): Replace declaration.
52633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52634         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52635         * doc/functions/ceill.texi: Mention the 'ceill' module.
52636         * modules/mathl (Files): Remove lib/ceill.c.
52637         (Depends-on): Add ceill.
52638
52639 2007-10-04  Bruno Haible  <bruno@clisp.org>
52640
52641         * modules/ceilf-tests: New file.
52642         * tests/test-ceilf.c: New file.
52643
52644         * modules/ceilf: New file.
52645         * lib/ceil.c: New file.
52646         * lib/ceilf.c: New file.
52647         * m4/ceilf.m4: New file.
52648         * lib/math.in.h (ceilf): New declaration.
52649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52650         HAVE_DECL_CEILF.
52651         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52652         HAVE_DECL_CEILF.
52653         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52654
52655 2007-10-04  Bruno Haible  <bruno@clisp.org>
52656
52657         * modules/floorl-tests: New file.
52658         * tests/test-floorl.c: New file.
52659
52660         * modules/floorl: New file.
52661         * lib/floorl.c: Replace entire file.
52662         * m4/floorl.m4: New file.
52663         * lib/math.in.h (floorl): Replace declaration.
52664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52665         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52666         * doc/functions/floorl.texi: Mention the 'floorl' module.
52667         * modules/mathl (Files): Remove lib/floorl.c.
52668         (Depends-on): Add floorl.
52669
52670 2007-10-04  Bruno Haible  <bruno@clisp.org>
52671
52672         * modules/floorf-tests: New file.
52673         * tests/test-floorf.c: New file.
52674
52675         * modules/floorf: New file.
52676         * lib/floor.c: New file.
52677         * lib/floorf.c: New file.
52678         * m4/floorf.m4: New file.
52679         * lib/math.in.h (floorf): New declaration.
52680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52681         HAVE_DECL_FLOORF.
52682         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52683         HAVE_DECL_FLOORF.
52684         * doc/functions/floorf.texi: Mention the 'floorf' module.
52685
52686 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52687             Bruno Haible  <bruno@clisp.org>
52688
52689         Advertise for the Git server instead of the CVS server.
52690         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52691         repository instead of the CVS one.
52692         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52693         about all VCS systems generically.
52694         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52695
52696 2007-10-04  Bruno Haible  <bruno@clisp.org>
52697
52698         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52699         means.
52700         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52701
52702 2007-10-04  Bruno Haible  <bruno@clisp.org>
52703
52704         * modules/truncl-tests: New file.
52705         * tests/test-truncl.c: New file.
52706
52707         * modules/truncl: New file.
52708         * lib/truncl.c: New file.
52709         * m4/truncl.m4: New file.
52710         * lib/math.in.h (truncl): New declaration.
52711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52712         HAVE_DECL_TRUNCL.
52713         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52714         HAVE_DECL_TRUNCL.
52715         * doc/functions/truncl.texi: Mention the 'truncl' module.
52716
52717 2007-10-04  Bruno Haible  <bruno@clisp.org>
52718
52719         * modules/truncf-tests: New file.
52720         * tests/test-truncf.c: New file.
52721
52722         * modules/truncf: New file.
52723         * lib/trunc.c: Make paramerizable through USE_* macros.
52724         * lib/truncf.c: New file.
52725         * m4/truncf.m4: New file.
52726         * lib/math.in.h (truncf): New declaration.
52727         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52728         HAVE_DECL_TRUNCF.
52729         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52730         HAVE_DECL_TRUNCF.
52731         * doc/functions/truncf.texi: Mention the 'truncf' module.
52732
52733 2007-10-03  Bruno Haible  <bruno@clisp.org>
52734
52735         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52736         augmentation also for tests modules.
52737         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52738         * modules/atexit-tests (Makefile.am): Likewise.
52739         * modules/binary-io-tests (Makefile.am): Likewise.
52740         * modules/c-strcase-tests (Makefile.am): Likewise.
52741         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52742         * modules/canonicalize-tests (Makefile.am): Likewise.
52743         * modules/closein-tests (Makefile.am): Likewise.
52744         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52745         * modules/freadahead-tests (Makefile.am): Likewise.
52746         * modules/fseek-tests (Makefile.am): Likewise.
52747         * modules/fseeko-tests (Makefile.am): Likewise.
52748         * modules/ftell-tests (Makefile.am): Likewise.
52749         * modules/ftello-tests (Makefile.am): Likewise.
52750         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52751         * modules/isnanl-tests (Makefile.am): Likewise.
52752         * modules/lseek-tests (Makefile.am): Likewise.
52753         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52754         * modules/mbscasestr-tests (Makefile.am): Likewise.
52755         * modules/mbschr-tests (Makefile.am): Likewise.
52756         * modules/mbscspn-tests (Makefile.am): Likewise.
52757         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52758         * modules/mbspbrk-tests (Makefile.am): Likewise.
52759         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52760         * modules/mbsrchr-tests (Makefile.am): Likewise.
52761         * modules/mbsspn-tests (Makefile.am): Likewise.
52762         * modules/mbsstr-tests (Makefile.am): Likewise.
52763         * modules/printf-posix-tests (Makefile.am): Likewise.
52764         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52765         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52766         * modules/tsearch-tests (Makefile.am): Likewise.
52767         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52768         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52769         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52770         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52771         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52772         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52773         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52774         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52775         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52776         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52777         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52778         * modules/xstrtol-tests (Makefile.am): Likewise.
52779         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52780         * modules/yesno-tests (Makefile.am): Likewise.
52781
52782 2007-10-03  Bruno Haible  <bruno@clisp.org>
52783
52784         * modules/trunc-tests: New file.
52785         * tests/test-trunc.c: New file.
52786
52787         * modules/trunc: New file.
52788         * lib/trunc.c: New file.
52789         * m4/trunc.m4: New file.
52790         * lib/math.in.h (trunc): New declaration.
52791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52792         HAVE_DECL_TRUNC.
52793         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52794         HAVE_DECL_TRUNC.
52795         * doc/functions/trunc.texi: Mention the 'trunc' module.
52796
52797 2007-10-03  Bruno Haible  <bruno@clisp.org>
52798
52799         * tests/test-fpending.c: New file, mostly copied
52800         from coreutils/lib/t-fpending.c.
52801         * modules/fpending-tests: New file.
52802
52803 2007-10-03  Bruno Haible  <bruno@clisp.org>
52804
52805         Port the stdio extensions to QNX (untested).
52806         * lib/fseterr.c (fseterr): Add support for QNX.
52807         * lib/fbufmode.c (fbufmode): Likewise.
52808         * lib/freadable.c (freadable): Likewise.
52809         * lib/fwritable.c (fwritable): Likewise.
52810         * lib/freading.c (freading): Likewise.
52811         * lib/fwriting.c (fwriting): Likewise.
52812         * lib/freadahead.c (freadahed): Likewise.
52813         * lib/fpurge.c (fpurge): Likewise.
52814         * lib/fseeko.c (rpl_fseeko): Likewise.
52815
52816 2007-10-03  Bruno Haible  <bruno@clisp.org>
52817             Jim Meyering  <jim@meyering.net>
52818             Eric Blake  <ebb9@byu.net>
52819
52820         * doc/relocatable.texi: Use @command instead of @program.
52821
52822 2007-10-02  Jim Meyering  <jim@meyering.net>
52823
52824         Perform one more "_.h" -> ".in.h" substitution.
52825         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52826         instead of unistd_.h here, too.
52827
52828 2007-10-01  Bruno Haible  <bruno@clisp.org>
52829
52830         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52831         Needed for the alloca-opt module.
52832
52833 2007-09-30  Bruno Haible  <bruno@clisp.org>
52834
52835         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52836         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52837         alloca_.h.
52838         * lib/argz.in.h: Renamed from lib/argz_.h.
52839         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52840         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52841         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52842         byteswap_.h.
52843         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52844         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52845         dirent_.h.
52846         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52847         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52848         fcntl_.h.
52849         * lib/float.in.h: Renamed from lib/float_.h.
52850         * modules/float (Files, Makefile.am): Use float.in.h instead of
52851         float_.h.
52852         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52853         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52854         fnmatch_.h.
52855         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52856         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52857         getopt_.h.
52858         * lib/glob.in.h: Renamed from lib/glob_.h.
52859         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52860         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52861         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52862         iconv_.h.
52863         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52864         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52865         inttypes_.h.
52866         * lib/locale.in.h: Renamed from lib/locale_.h.
52867         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52868         locale_.h.
52869         * lib/math.in.h: Renamed from lib/math_.h.
52870         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52871         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52872         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52873         of netinet_in_.h. Add dependency.
52874         * lib/poll.in.h: Renamed from lib/poll_.h.
52875         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52876         * lib/search.in.h: Renamed from lib/search_.h.
52877         * modules/search (Files, Makefile.am): Use search.in.h instead of
52878         search_.h.
52879         * lib/signal.in.h: Renamed from lib/signal_.h.
52880         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52881         _signal.h.
52882         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52883         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52884         stdbool_.h.
52885         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52886         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52887         stdint_.h.
52888         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52889         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52890         stdio_.h.
52891         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52892         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52893         stdlib_.h.
52894         * lib/string.in.h: Renamed from lib/string_.h.
52895         * modules/string (Files, Makefile.am): Use string.in.h instead of
52896         string_.h.
52897         * doc/gnulib-tool.texi (Initial import): Update.
52898         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52899         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52900         of sys_select_.h. Add dependency.
52901         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52902         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52903         of sys_socket_.h.
52904         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52905         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52906         sys_stat_.h.
52907         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52908         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52909         sys_time_.h.
52910         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52911         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52912         sysexits_.h.
52913         * lib/time.in.h: Renamed from lib/time_.h.
52914         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52915         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52916         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52917         unistd_.h.
52918         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52919         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52920         wchar_.h.
52921         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52922         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52923         wctype_.h.
52924         * build-aux/bootstrap (slurp): Update.
52925         * lib/.cppi-disable: Update.
52926
52927 2007-09-30  Bruno Haible  <bruno@clisp.org>
52928
52929         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52930         Needed on BeOS.
52931
52932 2007-09-30  Bruno Haible  <bruno@clisp.org>
52933
52934         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52935
52936 2007-09-29  Bruno Haible  <bruno@clisp.org>
52937
52938         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52939
52940 2007-09-29  Bruno Haible  <bruno@clisp.org>
52941
52942         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52943         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52944         * build-aux/install-reloc: Compile also areadlink.c.
52945         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52946
52947 2007-09-29  Bruno Haible  <bruno@clisp.org>
52948
52949         * gnulib-tool (func_emit_initmacro_done): Indentation.
52950
52951 2007-09-29  Bruno Haible  <bruno@clisp.org>
52952
52953         * README: Add CVS checkout update instructions.
52954         Info from Bob Proulx <bob@proulx.com>.
52955
52956 2007-09-28  Eric Blake  <ebb9@byu.net>
52957
52958         Provide move-if-change.
52959         * build-aux/move-if-change: New file, based on best practice
52960         rather than any canonical upstream location.
52961
52962 2007-09-28  Jim Meyering  <jim@meyering.net>
52963
52964         Fix canonicalize loop-detection corner case.
52965         Do not attempt to stat the symlink values stored via seen_triple.
52966         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52967         on linux-2.6.18, (but not 2.6.22).
52968         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52969         triple_compare.  The former compares dev,ino,filename, while the latter
52970         would actually stat dirname(filename) when dev and ino were equal.
52971         * lib/hash-triple.c: Install <string.h>.
52972         (STREQ): Define.
52973         (triple_compare_ino_str): New function.
52974         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52975
52976 2007-09-28  Eric Blake  <ebb9@byu.net>
52977
52978         Enforce that AC_REPLACE_FUNCS files exist.
52979         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52980         override check for typos.
52981
52982         Fix test-closein on Solaris 10.
52983         * tests/test-closein.c (main): Don't assume stdin can be inherited
52984         closed on all systems.
52985         * tests/test-closein.sh: Likewise.
52986         Reported by Piotr Tarnowski.
52987
52988 2007-09-28  Jim Meyering  <jim@meyering.net>
52989
52990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52991
52992 2007-09-27  Jim Meyering  <jim@meyering.net>
52993
52994         canonicalize: Avoid a false-positive cycle failure.
52995         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52996         Sort.  Remove cycle-check.
52997         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52998         not cycle-check.h.
52999         (seen_triple): New function.
53000         (canonicalize_filename_mode): Use it instead of cycle-check.
53001         * tests/test-canonicalize.c: Add a test for this bug.
53002         * tests/test-canonicalize.sh: Set up and run the test.
53003
53004         New module, file-set, from coreutils.
53005         * modules/file-set: Define it.
53006         * lib/file-set.c, lib/file-set.h: Implement.
53007
53008         New module, hash-triple, from coreutils.
53009         * modules/hash-triple: Define it.
53010         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53011
53012 2007-09-25  Eric Blake  <ebb9@byu.net>
53013
53014         Fix strerror on Interix.
53015         * lib/string_.h (strerror): Declare replacement.
53016         * doc/functions/strerror.texi (strerror): Document the Interix
53017         shortcoming.
53018         * modules/string (Makefile.am): Support new hooks.
53019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53020         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53021         gl_FUNC_STRERROR_SEPARATE.
53022         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53023         * lib/strerror.c (rpl_strerror): Provide replacement.
53024         * modules/strerror (Depends-on): Add string.
53025         (configure.ac): Detect use of module.
53026         * tests/test-strerror.c: New file.
53027         * modules/strerror-tests: New test module.
53028         * modules/argp (Depends-on): Add strerror.
53029         * modules/error (Depends-on): Likewise.
53030         Reported by Martin Koeppe.
53031
53032 2007-09-24  Bruno Haible  <bruno@clisp.org>
53033
53034         * README: Update git instructions.
53035
53036 2007-09-24  Eric Blake  <ebb9@byu.net>
53037
53038         Revert fpending breakage from 2007-09-08.
53039         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53040         __fpending.c.
53041
53042 2007-09-24  Jim Meyering  <jim@meyering.net>
53043
53044         filenamecat.c: Add a test.
53045         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53046         showing how the function works when DIR is the empty string.
53047
53048 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53049
53050         * tests/test-canonicalize.sh: Turn on executable bit.
53051
53052 2007-09-19  Eric Blake  <ebb9@byu.net>
53053
53054         * README: Update CVS instructions.
53055
53056 2007-09-18  Bruno Haible  <bruno@clisp.org>
53057
53058         * modules/areadlink: New file.
53059         * lib/areadlink.h (areadlink): New declaration.
53060         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53061
53062 2007-09-17  Jim Meyering  <jim@meyering.net>
53063
53064         * lib/savewd.c (ESTALE) [!defined]: Define.
53065         Reported to be required on Interix by Martin Koeppe.
53066
53067 2007-09-17  Bruno Haible  <bruno@clisp.org>
53068
53069         * gnulib-tool (func_version): Use $version.
53070
53071 2007-09-16  Bruno Haible  <bruno@clisp.org>
53072
53073         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53074         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53075         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53076         Reported by Greg Schafer <gschafer@zip.com.au>.
53077
53078 2007-09-15  Bruno Haible  <bruno@clisp.org>
53079
53080         * gnulib-tool (sed): Try a little harder to make bash understand the
53081         alias.
53082         Reported by Bruce Korb <bruce.korb@gmail.com>.
53083
53084 2007-09-13  Eric Blake  <ebb9@byu.net>
53085
53086         * ChangeLog: Remove conflict markers.
53087
53088 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53089
53090         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53091         Reported by Bruno Haible <bruno@clisp.org>.
53092
53093 2007-09-12  Bruno Haible  <bruno@clisp.org>
53094
53095         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53096         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53097         is not defined.
53098
53099 2007-09-12  Eric Blake  <ebb9@byu.net>
53100
53101         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53102         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53103         Autoconf definition.
53104         * modules/euidaccess (Depends-on): Add extensions, for
53105         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53106         * modules/fnmatch (Depends-on): Likewise.
53107         * modules/getaddrinfo (Depends-on): Likewise.
53108         * modules/getdelim (Depends-on): Likewise.
53109         * modules/getline (Depends-on): Likewise.
53110         * modules/getsubopt (Depends-on): Likewise.
53111         * modules/gettext (Depends-on): Likewise.
53112         * modules/group-member (Depends-on): Likewise.
53113         * modules/mbchar (Depends-on): Likewise.
53114         * modules/memmem (Depends-on): Likewise.
53115         * modules/mempcpy (Depends-on): Likewise.
53116         * modules/memrchr (Depends-on): Likewise.
53117         * modules/pagealign_alloc (Depends-on): Likewise.
53118         * modules/readutmp (Depends-on): Likewise.
53119         * modules/stpcpy (Depends-on): Likewise.
53120         * modules/stpncpy (Depends-on): Likewise.
53121         * modules/strchrnul (Depends-on): Likewise.
53122         * modules/strndup (Depends-on): Likewise.
53123         * modules/strsep (Depends-on): Likewise.
53124         * modules/strverscmp (Depends-on): Likewise.
53125         * modules/vasprintf (Depends-on): Likewise.
53126         * modules/wcwidth (Depends-on): Likewise.
53127         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53128         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53129         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53130         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53131         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53132         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53133         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53134         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53135         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53136         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53138         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53139         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53140         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53141         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53142         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53143         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53144         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53145         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53146         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53147         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53148         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53149         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53150         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53151         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53152         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53153         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53154         so that lock.m4 can be used in gettext without extensions module.
53155
53156 2007-09-11  Bruno Haible  <bruno@clisp.org>
53157
53158         * m4/isc-posix.m4: Remove file.
53159         Suggested by Eric Blake.
53160
53161 2007-09-11  Eric Blake  <ebb9@byu.net>
53162
53163         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53164
53165 2007-09-10  Bruno Haible  <bruno@clisp.org>
53166
53167         * posix-modules: Fix typo in error message.
53168         Reported by Matt <mkraai@beckman.com>.
53169
53170 2007-09-09  Bruno Haible  <bruno@clisp.org>
53171
53172         * doc/functions/getdelim.texi: Update list of platforms lacking the
53173         function.
53174         * doc/functions/getline.texi: Likewise.
53175
53176 2007-09-09  Jim Meyering  <jim@meyering.net>
53177
53178         * lib/hash.c (hash_initialize): Detect calloc failure.
53179         Reported by Bruno Haible.
53180
53181 2007-09-09  Bruno Haible  <bruno@clisp.org>
53182
53183         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53184         malloc or realloc fails.
53185
53186 2007-09-09  Bruno Haible  <bruno@clisp.org>
53187
53188         * modules/getcwd (Depends-on): Add malloc-posix.
53189         * modules/glob (Depends-on): Likewise.
53190         * modules/putenv (Depends-on): Likewise.
53191         * modules/strdup (Depends-on): Likewise.
53192         * modules/getdelim (Depends-on): Add realloc-posix.
53193         * modules/read-file (Depends-on): Likewise.
53194
53195 2007-09-09  Bruno Haible  <bruno@clisp.org>
53196
53197         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53198         (gl_FUNC_MALLOC_POSIX): Require it.
53199         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53200         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53201         * modules/realloc (Files): Add m4/malloc.m4.
53202         * modules/calloc (Files): Likewise.
53203
53204 2007-09-09  Bruno Haible  <bruno@clisp.org>
53205
53206         * modules/malloc-posix: New file.
53207         * modules/malloc (Depends-on): Add malloc-posix.
53208         * lib/malloc.c: Include errno.h.
53209         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53210         and a POSIX-compatible malloc into a single function. Set ENOMEM
53211         when returning NULL.
53212         * m4/malloc.m4: New file.
53213         * doc/functions/malloc.texi: Mention the malloc-posix module.
53214         * lib/stdlib_.h (malloc): New declaration.
53215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53216         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53217         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53218         and HAVE_MALLOC_POSIX.
53219
53220 2007-09-09  Bruno Haible  <bruno@clisp.org>
53221
53222         * modules/realloc-posix: New file.
53223         * modules/realloc (Depends-on): Add realloc-posix.
53224         * lib/realloc.c: Include errno.h.
53225         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53226         and a POSIX-compatible realloc into a single function. Set ENOMEM
53227         when returning NULL.
53228         * m4/realloc.m4: New file.
53229         * doc/functions/realloc.texi: Mention the realloc-posix module.
53230         * lib/stdlib_.h (realloc): New declaration.
53231         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53232         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53233         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53234         and HAVE_REALLOC_POSIX.
53235
53236 2007-09-09  Bruno Haible  <bruno@clisp.org>
53237
53238         * modules/calloc-posix: New file.
53239         * modules/calloc (Depends-on): Add calloc-posix.
53240         * lib/calloc.c: Include errno.h.
53241         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53242         and a POSIX-compatible calloc into a single function. Set ENOMEM
53243         when returning NULL.
53244         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53245         * doc/functions/calloc.texi: Mention the calloc-posix module.
53246         * lib/stdlib_.h (calloc): New declaration.
53247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53248         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53249         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53250         and HAVE_CALLOC_POSIX.
53251
53252 2007-09-09  Bruno Haible  <bruno@clisp.org>
53253
53254         Allow for modules to show an arbitrary notice.
53255         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53256         * gnulib-tool: New option --extract-notice.
53257         (func_usage): Document it.
53258         (sed_extract_prog): Update.
53259         (func_get_notice): New function.
53260         (func_modules_notice): New function.
53261         (func_import, func_create_testdir): Invoke it.
53262         Suggested by Jim Meyering.
53263
53264 2007-09-09  Bruno Haible  <bruno@clisp.org>
53265
53266         * gnulib-tool: New options --verbose, --quiet.
53267         (func_usage): Document them.
53268         (verbose): New variable.
53269         (func_execute_command): New function.
53270         (func_import): Don't show the module list and the file list if
53271         $verbose < 0.
53272         (func_create_testdir): Likewise. Use func_execute_command.
53273         (func_create_megatestdir): Use func_execute_command.
53274
53275 2007-09-08  Bruno Haible  <bruno@clisp.org>
53276
53277         * gnulib-tool (func_import): Prefer rsync over wget when available,
53278         for fetching the PO files.
53279
53280 2007-09-08  Bruno Haible  <bruno@clisp.org>
53281
53282         * posix-modules: New file. Portions copied from gnulib-tool.
53283         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53284
53285 2007-09-08  Jim Meyering  <jim@meyering.net>
53286
53287         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53288         * lib/fpending.h: Rename from __fpending.h.
53289         * lib/fpending.c: Rename from __fpending.c.
53290         Include "fpending.h", not "__fpending.h".
53291         * lib/__fpending.h, lib/__fpending.c: Remove files.
53292         * modules/fpending (Files): Reflect new file names.
53293         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53294
53295 2007-09-08  Bruno Haible  <bruno@clisp.org>
53296
53297         * m4/inttypes-h.m4: Remove stub file.
53298
53299 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53300
53301         * doc/headers/stdint.texi: Discuss #include_next issue.
53302
53303 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53304
53305         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53306
53307 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53308
53309         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53310         in variable name.
53311
53312 2007-09-03  Jim Meyering  <jim@meyering.net>
53313
53314         New module: git-version-gen.
53315         * modules/git-version-gen: New file.
53316
53317         Import changes from coreutils for bootstrap script.
53318
53319         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53320
53321         bootstrap: uses rsync to download the .po files
53322         * build-aux/bootstrap (po_download_command_format): New global.
53323         (download_po_files): Use rsync.
53324         (update_po_files): Don't remove .po files after download,
53325         so future rsync runs can take advantage of the copies.
53326
53327         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53328
53329         Solve the unnecessary-.po-file-regeneration problem once and for all.
53330         * build-aux/bootstrap (download_po_files): New function, renamed from
53331         get_translations.  Now, downloads, but doesn't update LINGUAS.
53332         (update_po_files): New function.
53333
53334         bootstrap: Ignore more.
53335         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53336         uniwidth to e.g., lib/.gitignore.
53337         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53338
53339         * build-aux/bootstrap: New setting: vc_ignore.
53340         (insert_sorted_if_absent): Create $file if absent.
53341         Adapt to new, possibly empty, list: $vc_ignore.
53342
53343         bootstrap: generate more ignorable names
53344         * build-aux/bootstrap (slurp): When generating ignorable names,
53345         also map .sin to .sed, .gperf to .c, and .y to .c.
53346
53347 2007-09-03  Jim Meyering  <jim@meyering.net>
53348
53349         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53350         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53351
53352 2007-09-02  Bruno Haible  <bruno@clisp.org>
53353
53354         Fix mis-recognition of 'mcs' on QNX 6.
53355         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53356         output contains the string "Mono".
53357         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53358         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53359
53360 2007-09-01  Bruno Haible  <bruno@clisp.org>
53361
53362         Fix collision between uniwidth/* and linebreak modules.
53363         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53364         u32_width): Remove declarations.
53365         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53366         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53367         streq3, streq2, streq1, streq0): Remove functions.
53368         (STREQ): Remove macro.
53369         (is_cjk_encoding): Remove function.
53370         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53371         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53372         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53373         * NEWS: Document the change.
53374
53375 2007-09-01  Bruno Haible  <bruno@clisp.org>
53376
53377         * lib/streq.h: Add double-inclusion guard.
53378
53379 2007-09-01  Karl Berry  <karl@gnu.org>
53380
53381         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53382
53383 2007-08-28  Jim Meyering  <jim@meyering.net>
53384
53385         Rename mreadlink_with_size to areadlink_with_size.
53386         * NEWS: Document the change.
53387         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53388         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53389         * lib/mreadlink.h: Rename this to...
53390         * lib/areadlink.h: ...this.
53391         * modules/mreadlink-with-size: Rename this to...
53392         * modules/areadlink-with-size: ...this.
53393         * lib/canonicalize.c: Reflect the renaming.
53394         * modules/canonicalize: Likewise.
53395
53396 2007-08-26  Bruno Haible  <bruno@clisp.org>
53397
53398         * gnulib-tool (func_import): When deciding which files to remove,
53399         consider also dangling symbolic links.
53400         Reported by Eric Blake.
53401
53402 2007-08-26  Bruno Haible  <bruno@clisp.org>
53403
53404         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53405
53406 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53407
53408         * lib/readline.c: Don't include getline.h, the prototype is now
53409         found in stdio.h.
53410
53411 2007-08-23  Jim Meyering  <jim@meyering.net>
53412
53413         Getdelim touchup.
53414         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53415         around the funlockfile call, since funlockfile never sets errno.
53416         Don't set errno upon failed realloc.
53417
53418 2007-08-22  Eric Blake  <ebb9@byu.net>
53419
53420         Getline touchups.
53421         * lib/getdelim.c (getdelim): Revert regression that required *n to
53422         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53423         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53424         getdelim, rather than whether implementation is missing.
53425         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53426         * lib/stdio_.h (getline): Also declare if replacement is
53427         required.
53428         * doc/functions/getdelim.texi: New file.
53429         * doc/functions/getline.texi: Likewise.
53430         * doc/gnulib.texi (Function Substitutes): Add new files.
53431         Reported by Bruno Haible.
53432
53433 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53434
53435         * users.txt: Add Guile.
53436
53437 2007-08-22  Eric Blake  <ebb9@byu.net>
53438
53439         * tests/test-getdelim.c (main): Use remove, not unlink.
53440         * tests/test-getline.c (main): Likewise.
53441
53442         Move getline and getdelim into stdio.h, per POSIX 200x.
53443         * modules/getline (Files): Remove getline.h.
53444         (Depends-on): Add stdio.
53445         (configure.ac): Add module indicator.
53446         * modules/getdelim (Files): Remove getdelim.h.
53447         (Depends-on): Add stdio.
53448         (configure.ac): Add module indicator.
53449         * modules/stdio (Makefile.am): Work with new indicators.
53450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53451         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53452         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53453         * lib/getdelim.h: Delete.
53454         * lib/getline.h: Delete.
53455         * lib/stdio_.h (getdelim, getline): Declare.
53456         * modules/getdelim-tests: New module.
53457         * modules/getline-tests: Likewise.
53458         * tests/test-getdelim.c: New file.
53459         * tests/test-getline.c: Likewise.
53460         * NEWS: Document the change.
53461         * lib/getline.c: Update choice of header.
53462         * lib/csharpcomp.c: Likewise.
53463         * lib/getpass.c: Likewise.
53464         * lib/javacomp.c: Likewise.
53465         * lib/javaversion.c: Likewise.
53466         * lib/yesno.c: Likewise.
53467         * lib/getdelim.c: Likewise.
53468         (getdelim): Set errno on failure, and avoid memory leak.
53469
53470 2007-08-19  Bruno Haible  <bruno@clisp.org>
53471
53472         * modules/closein (Depends-on): Add freadahead.
53473         * lib/closein.c: Include freadahead.h.
53474         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53475         is zero.
53476
53477 2007-08-19  Bruno Haible  <bruno@clisp.org>
53478
53479         * modules/freadahead-tests: New file.
53480         * tests/test-freadahead.sh: New file.
53481         * tests/test-freadahead.c: New file.
53482
53483         * modules/freadahead: New file.
53484         * lib/freadahead.h: New file.
53485         * lib/freadahead.c: New file.
53486         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53487         fbufmode, fpurge, freadable, fwritable.
53488
53489 2007-08-19  Eric Blake  <ebb9@byu.net>
53490
53491         Test yesno in combination with closein.
53492         * lib/yesno.c (yesno): Document use of stdin.
53493         * modules/yesno-tests (Files): New module.
53494         * tests/test-yesno.c (main): New file.
53495         * tests/test-yesno.sh: Likewise.
53496
53497 2007-08-19  Bruno Haible  <bruno@clisp.org>
53498
53499         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53500         * lib/fseeko.c (rpl_fseeko): Likewise.
53501         * lib/fseterr.c (fseterr): Likewise.
53502
53503 2007-08-19  Bruno Haible  <bruno@clisp.org>
53504
53505         * tests/test-lseek.c (main): Disable a test for BeOS.
53506         * doc/functions/lseek.texi: Document the BeOS bug.
53507
53508 2007-08-19  Bruno Haible  <bruno@clisp.org>
53509             Eric Blake  <ebb9@byu.net>
53510
53511         * lib/lseek.c: Include <sys/stat.h>.
53512         (rpl_lseek): Add workaround code also for Unix platforms.
53513         Needed for BeOS.
53514         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53515         * doc/functions/lseek.texi: Document BeOS definiency.
53516
53517 2007-08-18  Bruno Haible  <bruno@clisp.org>
53518
53519         * modules/fstrcmp-tests: New file.
53520         * tests/test-fstrcmp.c: New file.
53521
53522 2007-08-18  Bruno Haible  <bruno@clisp.org>
53523
53524         * modules/fstrcmp: New file, from GNU gettext with modifications.
53525         * lib/fstrcmp.h: New file, from GNU gettext.
53526         * lib/fstrcmp.c: New file, from GNU gettext.
53527         * MODULES.html.sh (String handling): Add fstrcmp.
53528
53529 2007-08-18  Bruno Haible  <bruno@clisp.org>
53530
53531         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53532         'bool'.
53533         (diag, compareseq): Remove const from the ctxt argument.
53534         (USE_HEURISTIC): Undefine at the end.
53535
53536 2007-08-18  Jim Meyering  <jim@meyering.net>
53537
53538         New file: lib/idcache.h
53539         * NEWS: Mention the addition.
53540         * modules/idcache (Files): Add lib/idcache.h
53541         * lib/idcache.c: Include "idcache.h".
53542         Don't include <sys/types.h>.
53543         Add a FIXME comment.
53544         Move file-scoped "static" declarations to the top.
53545         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53546
53547 2007-08-17  Bruno Haible  <bruno@clisp.org>
53548         and Paul Eggert  <eggert@cs.ucla.edu>
53549
53550         * MODULES.html.sh: Add diffseq.
53551         * modules/diffseq: New file.
53552         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53553         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53554
53555 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53556
53557         Import changes from coreutils for bootstrap script.
53558
53559         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53560
53561         * build-aux/bootstrap (slurp): Work even in environments where
53562         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53563         current code does not slurp files whose names start with ".", and
53564         this looks like it might be a troublesome area.
53565
53566         2007-07-11  Jim Meyering  <jim@meyering.net>
53567
53568         If there's a GPL vN copyright comment, require that N == 3.
53569
53570         2007-07-08  Jim Meyering  <jim@meyering.net>
53571
53572         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53573         * build-aux/bootstrap (mam_template): Move definition out of loop.
53574
53575         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53576
53577         * build-aux/bootstrap (symlink_to_dir): Rename function from
53578         symlink_to_gnulib.  Add a directory parameter.  Update all
53579         callers.
53580         (cp_mark_as_generated): Also check for -- and link to -- files in
53581         gl/.
53582
53583         2007-07-08  Jim Meyering  <jim@meyering.net>
53584
53585         Adapt to deeper hierarchy in gnulib.
53586         * build-aux/bootstrap (symlink_to_dir): If the destination
53587         directory doesn't exist, create it. This is required at least for
53588         "lib/uniwidth/cjk.h".
53589
53590         2007-05-15  Jim Meyering  <jim@meyering.net>
53591
53592         * build-aux/bootstrap: Now that generated Makefile.am files
53593         are no longer under version control, they must be created at
53594         bootstrap time.
53595
53596 2007-08-14  Ben Pfaff  <blp@gnu.org>
53597
53598         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53599
53600 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53601
53602         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53603         given the changes below.
53604         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53605         even on hosts that have padding bits beyond the supported 64.
53606
53607 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53608
53609         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53610         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53611         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53612         depends on it.
53613         (xstrtol_error): Remove.
53614         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53615         but with a different signature.
53616         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53617         * lib/xstrtol-error.c: Include exitfail.h.
53618         (xstrtol_fatal): New function, with a different signature from the
53619         old xstrtol_error, so that the caller need not worry about passing
53620         in an exit status, or about storage management of the option argument.
53621         (xstrtol_error): Now a static function.  Redo signature to
53622         implement xstrtol_fatal.  Output the correct number of hyphens in
53623         front of the option so that the caller need not worry about
53624         storage management.
53625         (N_): New macro.
53626         (_): Remove; not used now.
53627         * modules/xstrtol: Depend on getopt.
53628         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53629         of old STRTOL_FATAL_ERROR macro.
53630         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53631         of test program.
53632         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53633         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53634
53635 2007-08-08  Eric Blake  <ebb9@byu.net>
53636
53637         * lib/xstrtol-error.c: Add missing include.
53638
53639         Move xstrtol messages into gnulib domain, when --pobase is used.
53640         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53641         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53642         * modules/xstrtol (Files): Distribute new file.
53643         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53644         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53645         * tests/test-xstrtol.c: ...into new file.
53646         * tests/test-xstrtoul.c: Also test xstrtoul.
53647         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53648         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53649         * tests/test-xstrtol.sh: Drive the tests.
53650         * tests/test-xstrtoimax.sh: Likewise.
53651         * tests/test-xstrtoumax.sh: Likewise.
53652         * modules/xstrtol-tests: New module.
53653         * modules/xstrtoimax-tests: Likewise.
53654         * modules/xstrtoumax-tests: Likewise.
53655
53656 2007-08-08  Jim Meyering  <jim@meyering.net>
53657
53658         New function: mfile_name_concat.
53659         * lib/filenamecat.c (mfile_name_concat): New function, just like
53660         file_name_concat, but return NULL upon failure rather than exiting
53661         with a diagnostic.
53662         * lib/filenamecat.h: Declare it.
53663
53664 2007-08-07  Bruno Haible  <bruno@clisp.org>
53665
53666         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53667         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53668         warning from gcc.
53669         Reported by Eric Blake.
53670
53671 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53672
53673         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53674         * modules/crypto/arcfour (License): Likewise.
53675         * modules/crypto/des-tests (License): Likewise.
53676         * modules/crypto/gc-arctwo-tests (License): Likewise.
53677         * modules/crypto/gc-des-tests (License): Likewise.
53678         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53679         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53680         * modules/crypto/gc-md2-tests (License): Likewise.
53681         * modules/crypto/gc-md4-tests (License): Likewise.
53682         * modules/crypto/gc-md5-tests (License): Likewise.
53683         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53684         * modules/crypto/gc-rijndael-tests (License): Likewise.
53685         * modules/crypto/gc-sha1-tests (License): Likewise.
53686         * modules/crypto/gc-tests (License): Likewise.
53687         * modules/crypto/hmac-md5 (License): Likewise.
53688         * modules/crypto/hmac-sha1 (License): Likewise.
53689         * modules/crypto/md2-tests (License): Likewise.
53690         * modules/crypto/md4-tests (License): Likewise.
53691         * modules/crypto/md5 (License): Likewise.
53692         * modules/crypto/rijndael (License): Likewise.
53693         * modules/crypto/sha1 (License): Likewise.
53694         * modules/memxor (License): Likewise.
53695
53696 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53697         and Bruno Haible  <bruno@clisp.org>
53698
53699         * NEWS: Describe interface changes to human, xstrtol.
53700         * lib/human.h: Include <xstrtol.h>.
53701         (human_options): Return enum strtol_error, not int.  Remove
53702         bool arg; take int * instead.
53703         * lib/human.c: Don't include "gettext.h".
53704         (_): Remove; no longer used.
53705         Don't include <xstrtol.h>, since human.h does it.
53706         (human_options): Adjust to abovementioned interface changes.
53707         Do not report error to stderr; that's now the caller's
53708         responsibility.
53709         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53710         interface change.
53711         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53712         Str, Argument_type_string.  All uses changed.  Put " argument"
53713         in diagnostics to make them clearer.  Change wording of suffix
53714         message for clarity.
53715         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53716         Argument_type_string.
53717         (STRTOL_FATAL_WARN): Remove; no longer used.
53718         * modules/human (Depends-on): Remove gettext-h.
53719
53720 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53721
53722         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53723
53724 2007-07-31  Bruno Haible  <bruno@clisp.org>
53725
53726         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53727         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53728         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53729
53730 2007-07-31  Bruno Haible  <bruno@clisp.org>
53731
53732         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53733         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53734
53735 2007-07-30  Bruno Haible  <bruno@clisp.org>
53736
53737         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53738         * modules/c-ctype (License): Likewise.
53739         * modules/c-strcase (License): Likewise.
53740         * modules/check-version (License): Likewise.
53741         * modules/iconv (License): Likewise.
53742         * modules/iconv_open (License): Likewise.
53743         * modules/read-file (License): Likewise.
53744         * modules/striconv (License): Likewise.
53745         * modules/strverscmp (License): Likewise.
53746         * modules/vasprintf (License): Likewise.
53747         * modules/crypto/des (License): Likewise.
53748         * modules/crypto/gc (License): Likewise.
53749         * modules/crypto/gc-arcfour (License): Likewise.
53750         * modules/crypto/gc-arctwo (License): Likewise.
53751         * modules/crypto/gc-des (License): Likewise.
53752         * modules/crypto/gc-hmac-md5 (License): Likewise.
53753         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53754         * modules/crypto/gc-md2 (License): Likewise.
53755         * modules/crypto/gc-md4 (License): Likewise.
53756         * modules/crypto/gc-md5 (License): Likewise.
53757         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53758         * modules/crypto/gc-random (License): Likewise.
53759         * modules/crypto/gc-rijndael (License): Likewise.
53760         * modules/crypto/gc-sha1 (License): Likewise.
53761         * modules/crypto/md2 (License): Likewise.
53762         * modules/crypto/md4 (License): Likewise.
53763
53764 2007-07-30  Jim Meyering  <jim@meyering.net>
53765
53766         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53767         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53768         it has valid stat data.  This bug would cause du not to count the
53769         sizes of inaccessible directories.
53770         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53771         in <http://bugzilla.redhat.com/250077>.
53772
53773 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53774             Bruno Haible  <bruno@clisp.org>
53775
53776         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53777         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53778         #include_next, gives a diagnostic about it, but reports no error in
53779         the exit code.
53780         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53781
53782 2007-07-24  Ben Pfaff  <blp@gnu.org>
53783
53784         Improve name: "count-one-bits" is better than "popcount".
53785         * MODULES.html.sh: Update name.
53786         * lib/popcount.h: Renamed lib/count-one-bits.h.
53787         (popcount): Renamed count_one_bits.
53788         (popcountl): Renamed count_one_bits_l.
53789         (popcountll): Renamed count_one_bits_ll.
53790         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53791         * modules/popcount: Renamed module/count-one-bits.
53792         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53793         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53794
53795 2007-07-23  Ben Pfaff  <blp@gnu.org>
53796
53797         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53798         better code generation, and add U to large constants to avoid
53799         warnings, in non-GCC case.
53800         Suggested by Bruno Haible.
53801
53802 2007-07-23  Ben Pfaff  <blp@gnu.org>
53803
53804         * lib/popcount.h: Use verify_true instead of if...abort.
53805         * modules/popcount: Depend on verify module.
53806         Suggested by Jim Meyering.
53807
53808 2007-07-23  Bruno Haible  <bruno@clisp.org>
53809
53810         * gnulib-tool (func_import): Create a .cvsignore file also when the
53811         directory is not yet in CVS but the toplevel directory is. When
53812         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53813         Reported by Karl Berry.
53814
53815 2007-07-22  Ben Pfaff  <blp@gnu.org>
53816
53817         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53818         case.
53819         Suggested by Eric Blake.
53820
53821 2007-07-22  Ben Pfaff  <blp@gnu.org>
53822
53823         New module: popcount.
53824         * MODULES.html.sh: Add popcount.
53825         * modules/popcount: New file.
53826         * modules/popcount-tests: New file.
53827         * tests/test-popcount.c: New file.
53828         * lib/popcount.h: New file.
53829         * m4/popcount.m4: New file.
53830
53831 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53832
53833         * build-aux/announce-gen: Update to GPLv3.
53834
53835         * build-aux/config.guess: Update from config.
53836
53837 2007-07-21  Bruno Haible  <bruno@clisp.org>
53838
53839         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53840         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53841
53842 2007-07-20  Jim Meyering  <jim@meyering.net>
53843
53844         * check-module: Diagnose a self-dependency.
53845
53846 2007-07-19  Bruno Haible  <bruno@clisp.org>
53847
53848         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53849         empty.
53850         Reported by Eric Blake.
53851
53852 2007-07-18  Bruno Haible  <bruno@clisp.org>
53853
53854         * gnulib-tool: New options --po-base, --po-domain.
53855         (func_usage): Document them.
53856         (pobase, po_domain): New variables.
53857         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53858         DEFAULT_TEXT_DOMAIN.
53859         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53860         (func_import): Consider pobase and po_domain. Create a po/ directory.
53861         (func_create_testdir): Set pobase and po_domain to empty.
53862         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53863         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53864
53865 2007-07-18  Bruno Haible  <bruno@clisp.org>
53866
53867         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53868         EXTRA_DIST augmentation for files in build-aux/.
53869
53870 2007-07-16  Bruno Haible  <bruno@clisp.org>
53871
53872         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53873         * modules/getdelim (License): Likewise.
53874
53875 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53876
53877         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53878         * modules/d-type (License): Likewise.
53879         * modules/extensions (License): Likewise.
53880         * modules/fnmatch (License): Likewise.
53881         * modules/fseeko (License): Likewise.
53882         * modules/getaddrinfo (License): Likewise.
53883         * modules/getline (License): Likewise.
53884         * modules/getlogin_r (License): Likewise.
53885         * modules/getpass (License): Likewise.
53886         * modules/gettimeofday (License): Likewise.
53887         * modules/glob (License): Likewise.
53888         * modules/inet_ntop (License): Likewise.
53889         * modules/malloc (License): Likewise.
53890         * modules/malloca (License): Likewise.
53891         * modules/memmem (License): Likewise.
53892         * modules/mempcpy (License): Likewise.
53893         * modules/memset (License): Likewise.
53894         * modules/minmax (License): Likewise.
53895         * modules/mktime (License): Likewise.
53896         * modules/netinet_in (License): Likewise.
53897         * modules/pathmax (License): Likewise.
53898         * modules/poll (License): Likewise.
53899         * modules/regex (License): Likewise.
53900         * modules/snprintf (License): Likewise.
53901         * modules/stdbool (License): Likewise.
53902         * modules/stdint (License): Likewise.
53903         * modules/stdio (License): Likewise.
53904         * modules/strcase (License): Likewise.
53905         * modules/strcasestr (License): Likewise.
53906         * modules/strdup (License): Likewise.
53907         * modules/string (License): Likewise.
53908         * modules/strndup (License): Likewise.
53909         * modules/strnlen (License): Likewise.
53910         * modules/strpbrk (License): Likewise.
53911         * modules/strptime (License): Likewise.
53912         * modules/strsep (License): Likewise.
53913         * modules/sys_select (License): Likewise.
53914         * modules/sys_socket (License): Likewise.
53915         * modules/sys_stat (License): Likewise.
53916         * modules/sys_time (License): Likewise.
53917         * modules/time (License): Likewise.
53918         * modules/time_r (License): Likewise.
53919         * modules/timegm (License): Likewise.
53920         * modules/unistd (License): Likewise.
53921         * modules/vsnprintf (License): Likewise.
53922         * modules/wctype (License): Likewise.
53923
53924 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53925
53926         * modules/argz (License): LGPLv2+.
53927
53928 2007-07-15  Karl Berry  <karl@gnu.org>
53929
53930         * doc/gnulib.texi: revise node structure per new fdl.texi.
53931
53932 2007-07-14  Bruno Haible  <bruno@clisp.org>
53933
53934         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53935         the output file.
53936         * lib/uniname/uninames.h: Regenerated.
53937
53938 2007-07-14  Karl Berry  <karl@gnu.org>
53939
53940         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53941         omitting sectioning and index commands.
53942
53943 2007-07-13  Bruno Haible  <bruno@clisp.org>
53944
53945         New gnulib-tool option --more-symlinks.
53946         * gnulib-tool (func_usage): Document --more-symlinks.
53947         (do_copyrights): New variable.
53948         Recognize option --more-symlinks.
53949         (func_import): Don't add a copyright notice transform to
53950         sed_transform_lib_file if do_copyrights is empty.
53951
53952 2007-07-13  Bruno Haible  <bruno@clisp.org>
53953
53954         * lib/vasnprintf.c (decimal_point_char): Define also if
53955         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53956         && !NEED_PRINTF_DIRECTIVE_A.
53957         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53958         Gary V. Vaughan <gary@gnu.org>.
53959
53960 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53961
53962         * lib/inttypes_.h: Undo previous change, since it was fixed
53963         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53964
53965 2007-07-13  Bruno Haible  <bruno@clisp.org>
53966
53967         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53968         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53969
53970 2007-07-13  Jim Meyering  <jim@meyering.net>
53971
53972         df: Don't fail for Tru64's "file-on-file mount".
53973         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53974         so we fall through and use statfs instead.  Details here:
53975         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53976         Reported by Albert Chin.
53977
53978 2007-07-13  Bruno Haible  <bruno@clisp.org>
53979
53980         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53981         * modules/configmake (License): Likewise.
53982         * modules/gettext (License): Likewise.
53983         * modules/gettext-h (License): Likewise.
53984         * modules/include_next (License): Likewise.
53985         * modules/link-warning (License): Likewise.
53986         * modules/localcharset (License): Likewise.
53987         * modules/localename (License): Likewise.
53988         * modules/lock (License): Likewise.
53989         * modules/relocatable-lib-lgpl (License): Likewise.
53990         * modules/size_max (License): Likewise.
53991         * modules/vasnprintf (License): Likewise.
53992         * modules/wchar (License): Likewise.
53993         * modules/xsize (License): Likewise.
53994
53995 2007-07-13  Bruno Haible  <bruno@clisp.org>
53996
53997         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53998         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53999
54000 2007-07-12  Bruno Haible  <bruno@clisp.org>
54001
54002         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54003         in the modules files.
54004
54005 2007-07-11  Karl Berry  <karl@gnu.org>
54006
54007         * MODULES.html.sh (func_module): use
54008          sed -e '\|^'"${includefile}"'$|d'
54009          instead of /.../d, to avoid errors on $includefile's containing /.
54010
54011 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54012
54013         * gnulib-tool (func_import): Avoid duplication of --avoid
54014         statements
54015         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54016         names to `_' in variable names.
54017
54018 2007-07-10  Eric Blake  <ebb9@byu.net>
54019
54020         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54021         * NEWS: Document this change.
54022
54023 2007-07-08  Bruno Haible  <bruno@clisp.org>
54024
54025         Update to Unicode 5.0.
54026         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54027         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54028         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54029         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54030         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54031         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54032         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54033         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54034         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54035         U+10A3F, U+1D242..U+1D244.
54036         (nonspacing_table_ind): Update.
54037         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54038         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54039
54040 2007-07-08  Bruno Haible  <bruno@clisp.org>
54041
54042         Update to Unicode 5.0.
54043         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54044         code transform. Extend the name index field of unicode_name_to_code and
54045         unicode_code_to_name from 16 to 24 bits.
54046         * lib/uniname/uniname.c (unicode_character_name,
54047         unicode_name_character): Add the range 0x12xxx to the code transform.
54048         * lib/uniname/uninames.h: Regenerated.
54049         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54050
54051 2007-07-07  Bruno Haible  <bruno@clisp.org>
54052
54053         * modules/wcwidth-tests: New file.
54054         * tests/test-wcwidth.c: New file.
54055
54056         Work around MacOS X wcwidth() bug.
54057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54058         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54059         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54060         original wcwidth in non-UTF-8 locales.
54061         * modules/wcwidth (Depends-on): Add localcharset, streq,
54062         uniwidth/width.
54063         * doc/functions/wcwidth.texi: Update.
54064
54065 2007-07-07  Bruno Haible  <bruno@clisp.org>
54066
54067         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54068         (wcwidth): New declaration.
54069         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54070         macros.
54071         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54072         here. Prepare for creating <wchar.h> unconditionally.
54073         * modules/wchar (Depends-on): Add link-warning.
54074         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54075         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54076         * lib/wcwidth.h: Remove file.
54077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54078         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54079         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54080         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54081         (Include): Replace wcwidth.h with <wchar.h>.
54082         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54083         * lib/mbchar.h: Don't include wcwidth.h.
54084         * lib/mbswidth.c: Likewise.
54085         * NEWS: Mention the change.
54086
54087 2007-07-07  Bruno Haible  <bruno@clisp.org>
54088
54089         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54090         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54091         definition with an external declaration.
54092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54093         defined as a function. Remove AC_C_INLINE requirement.
54094         * modules/wcwidth (Files): Add lib/wcwidth.c.
54095         (Makefile.am): Remove redundant statement.
54096
54097 2007-07-07  Bruno Haible  <bruno@clisp.org>
54098
54099         * MODULES.html.sh (Unicode string functions): Add the new modules.
54100
54101         * tests/uniwidth/test-u32-strwidth.c: New file.
54102         * modules/uniwidth/u32-strwidth-tests: New file.
54103
54104         * lib/uniwidth/u32-strwidth.c: New file.
54105         * modules/uniwidth/u32-strwidth: New file.
54106
54107         * tests/uniwidth/test-u16-strwidth.c: New file.
54108         * modules/uniwidth/u16-strwidth-tests: New file.
54109
54110         * lib/uniwidth/u16-strwidth.c: New file.
54111         * modules/uniwidth/u16-strwidth: New file.
54112
54113         * tests/uniwidth/test-u8-strwidth.c: New file.
54114         * modules/uniwidth/u8-strwidth-tests: New file.
54115
54116         * lib/uniwidth/u8-strwidth.c: New file.
54117         * modules/uniwidth/u8-strwidth: New file.
54118
54119         * tests/uniwidth/test-u32-width.c: New file.
54120         * modules/uniwidth/u32-width-tests: New file.
54121
54122         * lib/uniwidth/u32-width.c: New file.
54123         * modules/uniwidth/u32-width: New file.
54124
54125         * tests/uniwidth/test-u16-width.c: New file.
54126         * modules/uniwidth/u16-width-tests: New file.
54127
54128         * lib/uniwidth/u16-width.c: New file.
54129         * modules/uniwidth/u16-width: New file.
54130
54131         * tests/uniwidth/test-u8-width.c: New file.
54132         * modules/uniwidth/u8-width-tests: New file.
54133
54134         * lib/uniwidth/u8-width.c: New file.
54135         * modules/uniwidth/u8-width: New file.
54136
54137         * tests/uniwidth/test-uc_width.c: New file.
54138         * modules/uniwidth/width-tests: New file.
54139
54140         * lib/uniwidth/width.c: New file, from GNU libiconv.
54141         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54142         * modules/uniwidth/width: New file.
54143
54144         * lib/uniwidth.h: New file, from GNU libiconv.
54145         * modules/uniwidth/base: New file.
54146
54147 2007-07-07  Bruno Haible  <bruno@clisp.org>
54148
54149         * lib/uniname.h: New file, from GNU gettext.
54150         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54151         * lib/uniname/uninames.h: New file, from GNU gettext.
54152         * lib/uniname/uniname.c: New file, from GNU gettext.
54153         * tests/uniname/test-uninames.sh: New file.
54154         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54155         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54156         * modules/uniname/base: New file.
54157         * modules/uniname/uniname: New file.
54158         * modules/uniname/uniname-tests: New file.
54159         * MODULES.html.sh (Unicode string functions): Add the new modules.
54160
54161 2007-07-06  Bruno Haible  <bruno@clisp.org>
54162
54163         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54164
54165 2007-07-06  Bruno Haible  <bruno@clisp.org>
54166
54167         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54168         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54169         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54170         include <sys/time.h>.
54171         Reported by Eric Blake.
54172
54173 2007-07-06  Eric Blake  <ebb9@byu.net>
54174
54175         Fix testing canonicalize on cygwin.
54176         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54177         Revert patch from 2007-06-19.
54178         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54179         canonicalize module is also in use.
54180         * tests/test-canonicalize.c: New file.
54181         * tests/test-canonicalize.sh: Likewise.
54182         * modules/canonicalize-tests: Likewise.
54183
54184 2007-07-06  Jim Meyering  <jim@meyering.net>
54185
54186         * lib/getugroups.c (getugroups): Detect getgrent failure.
54187         Adjust comment to reflect reality: this function may return -1.
54188
54189 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54190
54191         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54192         the new TP address.
54193         (usage): Fix typo
54194         (gnulib_mk): New variable.
54195
54196 2007-07-05  Jim Meyering  <jim@meyering.net>
54197
54198         Don't let endgrent clobber errno, no matter how improbable.
54199         * lib/getugroups.c (getugroups): Save and restore errno around
54200         endgrent call.
54201
54202         Close the group DB even when failing with 2^31 or more members.
54203         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54204
54205 2007-07-04  Jim Meyering  <jim@meyering.net>
54206
54207         * lib/getugroups.h: New file.
54208         * lib/getugroups.c: Include "getugroups.h".
54209         Remove uses of "register" keyword.
54210         Move local variable, "cp", down into scope where used.
54211         Give "username" parameter the "const" attribute.
54212         * modules/getugroups (Files): Add lib/getugroups.h
54213
54214 2007-07-04  Karl Berry  <karl@gnu.org>
54215
54216         * MODULES.html.sh (func_all_modules): Complete rename of
54217         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54218
54219 2007-07-02  Bruno Haible  <bruno@clisp.org>
54220
54221         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54222         mode, when inttypes.h comes from gnulib.
54223         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54224
54225 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54226
54227         * NEWS: Mention lgpl module name change.
54228
54229         * modules/lgpl-2.1: Renamed from lgpl.
54230
54231         * NEWS: Mention gpl module name change.
54232
54233         * modules/gpl-3.0: New file, based on gpl-2.0.
54234
54235         * modules/gpl-2.0: Renamed from gpl.
54236
54237         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54238         doc/gpl-2.0.texi.
54239
54240 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54241
54242         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54243         #define __STDC_LIMIT_MACROS temporarily while including
54244         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54245         Problem reported by Joel E. Denny in
54246         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54247
54248 2007-07-01  Bruno Haible  <bruno@clisp.org>
54249
54250         * lib/unistdio.h: New file.
54251         * lib/unistdio/u-asnprintf.h: New file.
54252         * lib/unistdio/u-asprintf.h: New file.
54253         * lib/unistdio/u-printf-args.c: New file.
54254         * lib/unistdio/u-printf-args.h: New file.
54255         * lib/unistdio/u-printf-parse.h: New file.
54256         * lib/unistdio/u-snprintf.h: New file.
54257         * lib/unistdio/u-sprintf.h: New file.
54258         * lib/unistdio/u-vasprintf.h: New file.
54259         * lib/unistdio/u-vsnprintf.h: New file.
54260         * lib/unistdio/u-vsprintf.h: New file.
54261         * lib/unistdio/ulc-asnprintf.c: New file.
54262         * lib/unistdio/ulc-asprintf.c: New file.
54263         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54264         * lib/unistdio/ulc-printf-parse.c: New file.
54265         * lib/unistdio/ulc-snprintf.c: New file.
54266         * lib/unistdio/ulc-sprintf.c: New file.
54267         * lib/unistdio/ulc-vasnprintf.c: New file.
54268         * lib/unistdio/ulc-vasprintf.c: New file.
54269         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54270         * lib/unistdio/ulc-vsnprintf.c: New file.
54271         * lib/unistdio/ulc-vsprintf.c: New file.
54272         * lib/unistdio/u8-asnprintf.c: New file.
54273         * lib/unistdio/u8-asprintf.c: New file.
54274         * lib/unistdio/u8-printf-parse.c: New file.
54275         * lib/unistdio/u8-snprintf.c: New file.
54276         * lib/unistdio/u8-sprintf.c: New file.
54277         * lib/unistdio/u8-vasnprintf.c: New file.
54278         * lib/unistdio/u8-vasprintf.c: New file.
54279         * lib/unistdio/u8-vsnprintf.c: New file.
54280         * lib/unistdio/u8-vsprintf.c: New file.
54281         * lib/unistdio/u8-u8-asnprintf.c: New file.
54282         * lib/unistdio/u8-u8-asprintf.c: New file.
54283         * lib/unistdio/u8-u8-snprintf.c: New file.
54284         * lib/unistdio/u8-u8-sprintf.c: New file.
54285         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54286         * lib/unistdio/u8-u8-vasprintf.c: New file.
54287         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54288         * lib/unistdio/u8-u8-vsprintf.c: New file.
54289         * lib/unistdio/u16-asnprintf.c: New file.
54290         * lib/unistdio/u16-asprintf.c: New file.
54291         * lib/unistdio/u16-printf-parse.c: New file.
54292         * lib/unistdio/u16-snprintf.c: New file.
54293         * lib/unistdio/u16-sprintf.c: New file.
54294         * lib/unistdio/u16-vasnprintf.c: New file.
54295         * lib/unistdio/u16-vasprintf.c: New file.
54296         * lib/unistdio/u16-vsnprintf.c: New file.
54297         * lib/unistdio/u16-vsprintf.c: New file.
54298         * lib/unistdio/u16-u16-asnprintf.c: New file.
54299         * lib/unistdio/u16-u16-asprintf.c: New file.
54300         * lib/unistdio/u16-u16-snprintf.c: New file.
54301         * lib/unistdio/u16-u16-sprintf.c: New file.
54302         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54303         * lib/unistdio/u16-u16-vasprintf.c: New file.
54304         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54305         * lib/unistdio/u16-u16-vsprintf.c: New file.
54306         * lib/unistdio/u32-asnprintf.c: New file.
54307         * lib/unistdio/u32-asprintf.c: New file.
54308         * lib/unistdio/u32-printf-parse.c: New file.
54309         * lib/unistdio/u32-snprintf.c: New file.
54310         * lib/unistdio/u32-sprintf.c: New file.
54311         * lib/unistdio/u32-vasnprintf.c: New file.
54312         * lib/unistdio/u32-vasprintf.c: New file.
54313         * lib/unistdio/u32-vsnprintf.c: New file.
54314         * lib/unistdio/u32-vsprintf.c: New file.
54315         * lib/unistdio/u32-u32-asnprintf.c: New file.
54316         * lib/unistdio/u32-u32-asprintf.c: New file.
54317         * lib/unistdio/u32-u32-snprintf.c: New file.
54318         * lib/unistdio/u32-u32-sprintf.c: New file.
54319         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54320         * lib/unistdio/u32-u32-vasprintf.c: New file.
54321         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54322         * lib/unistdio/u32-u32-vsprintf.c: New file.
54323         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54324         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54325         * tests/unistdio/test-ulc-printf1.h: New file.
54326         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54327         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54328         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54329         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54330         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54331         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54332         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54333         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54334         * tests/unistdio/test-u8-asnprintf1.c: New file.
54335         * tests/unistdio/test-u8-asnprintf1.h: New file.
54336         * tests/unistdio/test-u8-printf1.h: New file.
54337         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54338         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54339         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54340         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54341         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54342         * tests/unistdio/test-u8-vasprintf1.c: New file.
54343         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54344         * tests/unistdio/test-u8-vsprintf1.c: New file.
54345         * tests/unistdio/test-u16-asnprintf1.c: New file.
54346         * tests/unistdio/test-u16-asnprintf1.h: New file.
54347         * tests/unistdio/test-u16-printf1.h: New file.
54348         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54349         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54350         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54351         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54352         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54353         * tests/unistdio/test-u16-vasprintf1.c: New file.
54354         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54355         * tests/unistdio/test-u16-vsprintf1.c: New file.
54356         * tests/unistdio/test-u32-asnprintf1.c: New file.
54357         * tests/unistdio/test-u32-asnprintf1.h: New file.
54358         * tests/unistdio/test-u32-printf1.h: New file.
54359         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54360         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54361         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54362         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54363         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54364         * tests/unistdio/test-u32-vasprintf1.c: New file.
54365         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54366         * tests/unistdio/test-u32-vsprintf1.c: New file.
54367         * modules/unistdio/base: New file.
54368         * modules/unistdio/u-printf-args: New file.
54369         * modules/unistdio/ulc-asnprintf: New file.
54370         * modules/unistdio/ulc-asprintf: New file.
54371         * modules/unistdio/ulc-fprintf: New file.
54372         * modules/unistdio/ulc-printf-parse: New file.
54373         * modules/unistdio/ulc-snprintf: New file.
54374         * modules/unistdio/ulc-sprintf: New file.
54375         * modules/unistdio/ulc-vasnprintf: New file.
54376         * modules/unistdio/ulc-vasprintf: New file.
54377         * modules/unistdio/ulc-vfprintf: New file.
54378         * modules/unistdio/ulc-vsnprintf: New file.
54379         * modules/unistdio/ulc-vsprintf: New file.
54380         * modules/unistdio/u8-asnprintf: New file.
54381         * modules/unistdio/u8-asprintf: New file.
54382         * modules/unistdio/u8-printf-parse: New file.
54383         * modules/unistdio/u8-snprintf: New file.
54384         * modules/unistdio/u8-sprintf: New file.
54385         * modules/unistdio/u8-vasnprintf: New file.
54386         * modules/unistdio/u8-vasprintf: New file.
54387         * modules/unistdio/u8-vsnprintf: New file.
54388         * modules/unistdio/u8-vsprintf: New file.
54389         * modules/unistdio/u8-u8-asnprintf: New file.
54390         * modules/unistdio/u8-u8-asprintf: New file.
54391         * modules/unistdio/u8-u8-snprintf: New file.
54392         * modules/unistdio/u8-u8-sprintf: New file.
54393         * modules/unistdio/u8-u8-vasnprintf: New file.
54394         * modules/unistdio/u8-u8-vasprintf: New file.
54395         * modules/unistdio/u8-u8-vsnprintf: New file.
54396         * modules/unistdio/u8-u8-vsprintf: New file.
54397         * modules/unistdio/u16-asnprintf: New file.
54398         * modules/unistdio/u16-asprintf: New file.
54399         * modules/unistdio/u16-printf-parse: New file.
54400         * modules/unistdio/u16-snprintf: New file.
54401         * modules/unistdio/u16-sprintf: New file.
54402         * modules/unistdio/u16-vasnprintf: New file.
54403         * modules/unistdio/u16-vasprintf: New file.
54404         * modules/unistdio/u16-vsnprintf: New file.
54405         * modules/unistdio/u16-vsprintf: New file.
54406         * modules/unistdio/u16-u16-asnprintf: New file.
54407         * modules/unistdio/u16-u16-asprintf: New file.
54408         * modules/unistdio/u16-u16-snprintf: New file.
54409         * modules/unistdio/u16-u16-sprintf: New file.
54410         * modules/unistdio/u16-u16-vasnprintf: New file.
54411         * modules/unistdio/u16-u16-vasprintf: New file.
54412         * modules/unistdio/u16-u16-vsnprintf: New file.
54413         * modules/unistdio/u16-u16-vsprintf: New file.
54414         * modules/unistdio/u32-asnprintf: New file.
54415         * modules/unistdio/u32-asprintf: New file.
54416         * modules/unistdio/u32-printf-parse: New file.
54417         * modules/unistdio/u32-snprintf: New file.
54418         * modules/unistdio/u32-sprintf: New file.
54419         * modules/unistdio/u32-vasnprintf: New file.
54420         * modules/unistdio/u32-vasprintf: New file.
54421         * modules/unistdio/u32-vsnprintf: New file.
54422         * modules/unistdio/u32-vsprintf: New file.
54423         * modules/unistdio/u32-u32-asnprintf: New file.
54424         * modules/unistdio/u32-u32-asprintf: New file.
54425         * modules/unistdio/u32-u32-snprintf: New file.
54426         * modules/unistdio/u32-u32-sprintf: New file.
54427         * modules/unistdio/u32-u32-vasnprintf: New file.
54428         * modules/unistdio/u32-u32-vasprintf: New file.
54429         * modules/unistdio/u32-u32-vsnprintf: New file.
54430         * modules/unistdio/u32-u32-vsprintf: New file.
54431         * modules/unistdio/ulc-asnprintf-tests: New file.
54432         * modules/unistdio/ulc-vasnprintf-tests: New file.
54433         * modules/unistdio/ulc-vasprintf-tests: New file.
54434         * modules/unistdio/ulc-vsnprintf-tests: New file.
54435         * modules/unistdio/ulc-vsprintf-tests: New file.
54436         * modules/unistdio/u8-asnprintf-tests: New file.
54437         * modules/unistdio/u8-vasnprintf-tests: New file.
54438         * modules/unistdio/u8-vasprintf-tests: New file.
54439         * modules/unistdio/u8-vsnprintf-tests: New file.
54440         * modules/unistdio/u8-vsprintf-tests: New file.
54441         * modules/unistdio/u16-asnprintf-tests: New file.
54442         * modules/unistdio/u16-vasnprintf-tests: New file.
54443         * modules/unistdio/u16-vasprintf-tests: New file.
54444         * modules/unistdio/u16-vsnprintf-tests: New file.
54445         * modules/unistdio/u16-vsprintf-tests: New file.
54446         * modules/unistdio/u32-asnprintf-tests: New file.
54447         * modules/unistdio/u32-vasnprintf-tests: New file.
54448         * modules/unistdio/u32-vasprintf-tests: New file.
54449         * modules/unistdio/u32-vsnprintf-tests: New file.
54450         * modules/unistdio/u32-vsprintf-tests: New file.
54451         * MODULES.html.sh (Unicode string functions): Add the new modules.
54452
54453 2007-07-01  Bruno Haible  <bruno@clisp.org>
54454
54455         * lib/sprintf.c (sprintf): Limit the available length estimation,
54456         to avoid address wraparound.
54457         * lib/vsprintf.c (vsprintf): Likewise.
54458         * modules/sprintf-posix (Dependencies): Add stdint.
54459         * modules/vsprintf-posix (Dependencies): Likewise.
54460
54461 2007-07-01  Bruno Haible  <bruno@clisp.org>
54462
54463         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54464         Windows PATH as well. Conservative double-quoting. Comments.
54465
54466 2007-07-01  Bruno Haible  <bruno@clisp.org>
54467             Eric Blake  <ebb9@byu.net>
54468             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54469
54470         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54471         empty components in $PATH, denoting '.'.
54472
54473 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54474
54475         * gnulib-tool: Fix indentation.
54476         (func_create_megatestdir): Likewise.
54477         Report by Bruno Haible.
54478
54479 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54480
54481         Sync from Automake.
54482         * build-aux/gnupload: Fix shell portability issues with for loops.
54483         Report by Karl Berry.
54484
54485 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54486
54487         * build-aux/maint.mk (POURL): Use translationproject.org.
54488
54489 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54490             Bruno Haible  <bruno@clisp.org>
54491
54492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54493         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54494         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54495         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54496         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54497
54498 2007-06-27  Bruno Haible  <bruno@clisp.org>
54499
54500         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54501         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54502
54503 2007-06-26  Karl Berry  <karl@gnu.org>
54504
54505         * MODULES.html.sh: remove xreadlink-with-size.
54506
54507 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54510         method that I hope also handles the double-include problem noted
54511         by Bruno Haible in
54512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54513
54514 2007-06-23  Bruno Haible  <bruno@clisp.org>
54515
54516         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54517         Don't let the 'mostlyclean' target fail if the last subdirectory could
54518         not be removed.
54519         Reported by Karl Berry.
54520
54521 2007-06-23  Bruno Haible  <bruno@clisp.org>
54522
54523         * gnulib-tool (echo): Add a speedier workaround for ksh.
54524         * tests/test-echo.sh: Likewise.
54525
54526 2007-06-23  Bruno Haible  <bruno@clisp.org>
54527
54528         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54529         * tests/test-echo.sh: Likewise.
54530
54531 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54532
54533         * gnulib-tool (IFS): Initialize early, so we don't set it to
54534         empty later.
54535         (self_abspathname): Rewrite algorithm to set it, reindent.
54536         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54537         (func_create_megatestdir): Merge some sed scripts.
54538
54539 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54540
54541         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54542         exposed by Sun Studio 11 cc on Solaris 8.
54543
54544 2007-06-22  Bruno Haible  <bruno@clisp.org>
54545
54546         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54547         backslashes.
54548         * tests/test-echo.sh: New file.
54549
54550 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54551
54552         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54553         simplify `sed_replace_build_aux' scripts, they are portable but
54554         echoing them with `echo' is not.
54555         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54556
54557 2007-06-21  Karl Berry  <karl@gnu.org>
54558
54559         * config/srclist.txt: guess we can't handle the licenses via
54560         srclist at the moment.
54561
54562 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54563
54564         * MODULES.html.sh: Add include_next.
54565         * modules/include_next: New file.
54566
54567 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54568
54569         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54570         INCLUDE_NEXT.
54571         (gl_CHECK_NEXT_HEADERS): New macro.
54572         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54573         the obsolescent gl_ABSOLUTE_HEADER.
54574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54575         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54576         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54577         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54578         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54579         * m4/math_h.m4 (gl_MATH_H): Likewise.
54580         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54581         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54582         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54583         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54584         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54585         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54586         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54587         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54588         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54589         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54590         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54591         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54592         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54593         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54594         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54595         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54596         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54597         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54598         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54599         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54600         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54601         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54602         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54603         * lib/float_.h: Likewise.
54604         * lib/inttypes_.h: Likewise.
54605         * lib/math_.h: Likewise.
54606         * lib/search_.h: Likewise.
54607         * lib/signal_.h: Likewise.
54608         * lib/stdint_.h: Likewise.
54609         * lib/stdio_.h: Likewise.
54610         * lib/stdlib_.h: Likewise.
54611         * lib/string_.h: Likewise.
54612         * lib/sys_stat_.h: Likewise.
54613         * lib/sys_time_.h: Likewise.
54614         * lib/time_.h: Likewise.
54615         * lib/unistd_.h: Likewise.
54616         * lib/wchar_.h: Likewise.
54617         * lib/wctype_.h: Likewise.
54618         * lib/dirent_.h: Likewise.
54619         * lib/iconv_.h: Likewise.
54620         * lib/locale_.h: Likewise.
54621         * lib/netinet_in_.h: Likewise.
54622         * lib/sys_select_.h: Likewise.
54623         * lib/sys_socket_.h: Likewise.
54624         * lib/sysexits_.h: Likewise.
54625         * modules/fcntl (Depends-on): Depend on include_next, not
54626         absolute_header.
54627         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54628         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54629         * modules/fchdir: Likewise.
54630         * modules/float: Likewise.
54631         * modules/iconv_open: Likewise.
54632         * modules/inttypes: Likewise.
54633         * modules/locale: Likewise.
54634         * modules/math: Likewise.
54635         * modules/netinet_in: Likewise.
54636         * modules/search: Likewise.
54637         * modules/signal: Likewise.
54638         * modules/stdint: Likewise.
54639         * modules/stdio: Likewise.
54640         * modules/stdlib: Likewise.
54641         * modules/string: Likewise.
54642         * modules/sys_select: Likewise.
54643         * modules/sys_socket: Likewise.
54644         * modules/sys_stat: Likewise.
54645         * modules/sys_time: Likewise.
54646         * modules/sysexits: Likewise.
54647         * modules/time: Likewise.
54648         * modules/unistd: Likewise.
54649         * modules/wchar: Likewise.
54650         * modules/wctype: Likewise.
54651         * modules/sys_stat: Change maintainer to "all".
54652         * modules/unistd: Likewise.
54653
54654 2007-06-20  Karl Berry  <karl@gnu.org>
54655
54656         * config/srclist.txt: track www changes in license files.
54657
54658 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54659
54660         * build-aux/bootstrap: Remove stray dot.
54661         Make sure build_aux settings are honored when linking
54662         gnulib_extra_files.
54663
54664 2007-06-19  Eric Blake  <ebb9@byu.net>
54665
54666         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54667         Allow compilation on cygwin.
54668
54669 2007-06-19  Jim Meyering  <jim@meyering.net>
54670
54671         xreadlink-with-size: Remove module.  No longer used.
54672         Ex-callers now use xreadlink or mreadlink-with-size.
54673         * modules/xreadlink-with-size: Remove module.
54674         * lib/xreadlink-with-size.c: Remove file.
54675         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54676         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54677         just before the function definition *is* accurate.
54678
54679         Eliminate one way canonicalize_filename_mode could exit.
54680         * lib/canonicalize.c (canonicalize_filename_mode):
54681         Use mreadlink_with_size, not xreadlink_with_size.
54682
54683 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54684
54685         Detect porting problems to FreeBSD/arm, which has time_t wider than
54686         long int.  Original problem reported for GNU diff by Xin Li in
54687         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54688         * modules/getdate (Depends-on): Add intprops, verify.
54689         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54690         is an integer type no wider than long int.
54691
54692 2007-06-18  Jim Meyering  <jim@meyering.net>
54693
54694         New module: mreadlink-with-size.
54695         * MODULES.html.sh: Add mreadlink-with-size.
54696         * modules/mreadlink-with-size: New module
54697         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54698         not xreadlink-with-size.
54699         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54700
54701 2007-06-16  Bruno Haible  <bruno@clisp.org>
54702
54703         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54704         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54705         Reported by Gary V. Vaughan <gary@gnu.org>.
54706
54707 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54708
54709         Revamp lchown so that it lives in unistd.h where it belongs.
54710         * lib/lchown.h: Remove.
54711         * lib/dirchownmod.c: Don't include lib/lchown.h.
54712         * lib/fchownat.c: Likewise.
54713         * lib/openat.c: Likewise.
54714         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54715         does not follow symlinks.
54716         (EOPNOTSUPP): Define if not defined.
54717         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54718         is defined to 0.
54719         (lchown): New decl.
54720         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54721         Do not check for lchown decl.
54722         Set REPLACE_LCHOWN.
54723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54724         REPLACE_LCHOWN.
54725         * modules/chown: Make it clear it follows symlinks.
54726         * modules/lchown: Make it clear it doesn't follow symlinks.
54727         (Files): Remove lib/lchown.h
54728         (Depends-on): Add unistd.
54729         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54730         (Include): Include <unistd.h>, not "lchown.h".
54731         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54732         REPLACE_LCHOWN.
54733
54734 2007-06-15  Jim Meyering  <jim@meyering.net>
54735
54736         Change license (GPL to LGPL) of fsusage and dependents.
54737         * modules/fsusage (License): Change to LGPL.
54738         * modules/full-read (License): Likewise.
54739         * modules/full-write (License): Likewise.
54740         * modules/safe-read (License): Likewise.
54741         * modules/safe-write (License): Likewise.
54742
54743 2007-06-14  Ben Pfaff  <blp@gnu.org>
54744
54745         Missing part of allocsa -> malloca transition.
54746         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54747         gl_MALLOCA.
54748
54749 2007-06-12  Bruno Haible  <bruno@clisp.org>
54750
54751         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54752         to ia64, x86_64, i386.
54753         Reported by Eric Blake.
54754
54755 2007-06-12  Bruno Haible  <bruno@clisp.org>
54756
54757         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54758         cross-compiling to x86_64.
54759
54760 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54761
54762         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54763         glitch reported by Ralf Wildenhues in
54764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54765
54766         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54767         Vin Shelton.
54768
54769 2007-06-11  Bruno Haible  <bruno@clisp.org>
54770
54771         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54772         replacement string.
54773         Reported by Eric Blake.
54774
54775 2007-06-10  Bruno Haible  <bruno@clisp.org>
54776
54777         Prepare vasnprintf code for use with Unicode strings.
54778         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54779         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54780         TYPE_U32_STRING.
54781         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54782         a_u32_string variants.
54783         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54784         * lib/printf-args.c: Don't include config.h and the specification
54785         header if PRINTF_FETCHARGS is already defined.
54786         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54787         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54788         TYPE_U16_STRING, TYPE_U32_STRING.
54789         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54790         u16_directive, u16_directives, u32_directive, u32_directives): New
54791         types.
54792         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54793         New declarations.
54794         * lib/printf-parse.c: Don't include config.h and the specification
54795         header if PRINTF_PARSE is already defined. Eliminate the set of
54796         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54797         them now. Include c-ctype.h.
54798         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54799         directive and CHAR_T_ONLY_ASCII.
54800         * lib/vasnprintf.c: Don't include config.h and the specification header
54801         if VASNPRINTF is already defined.
54802         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54803         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54804         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54805         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54806         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54807         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54808         code accordingly.
54809         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54810         pad_ourselves also in this case, with the 'c' and 's' directives, and
54811         with a different notion of "width".
54812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54813
54814 2007-06-10  Bruno Haible  <bruno@clisp.org>
54815
54816         * modules/unistr/u32-mbsnlen: New file.
54817         * lib/unistr/u32-mbsnlen.c: New file.
54818
54819         * modules/unistr/u16-mbsnlen: New file.
54820         * lib/unistr/u16-mbsnlen.c: New file.
54821
54822         * modules/unistr/u8-mbsnlen: New file.
54823         * lib/unistr/u8-mbsnlen.c: New file.
54824
54825         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54826         declarations.
54827
54828 2007-06-10  Bruno Haible  <bruno@clisp.org>
54829
54830         * lib/string_.h (mbsnlen): New declaration.
54831         * lib/mbsnlen.c: New file.
54832         * m4/mbsnlen.m4: New file.
54833         * modules/mbsnlen: New file.
54834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54835         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54836         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54837
54838 2007-06-10  Bruno Haible  <bruno@clisp.org>
54839
54840         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54841
54842 2007-06-10  Bruno Haible  <bruno@clisp.org>
54843
54844         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54845         * lib/mbuiter.h: Likewise.
54846
54847 2007-06-10  Bruno Haible  <bruno@clisp.org>
54848
54849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54850         declaration.
54851
54852 2007-06-10  Karl Berry  <karl@gnu.org>
54853
54854         * config/srclist.txt: remove gettext entries, Bruno prefers
54855         to update individually.
54856
54857 2007-06-10  Bruno Haible  <bruno@clisp.org>
54858
54859         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54860         'maxlen'. Ensure only length + width bytes are allocated, not
54861         length + 1 + width.
54862
54863 2007-06-09  Bruno Haible  <bruno@clisp.org>
54864
54865         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54866         (CHAR_T): Remove macro.
54867         (VASNPRINTF): Update.
54868
54869 2007-06-09  Bruno Haible  <bruno@clisp.org>
54870
54871         * MODULES.html.sh (Unicode string functions): Add the new modules.
54872
54873         * modules/uniconv/u32-conv-to-enc: New file.
54874         * lib/uniconv/u32-conv-to-enc.c: New file.
54875         * modules/uniconv/u32-conv-to-enc-tests: New file.
54876         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54877
54878         * modules/uniconv/u16-conv-to-enc: New file.
54879         * lib/uniconv/u16-conv-to-enc.c: New file.
54880         * lib/uniconv/u-conv-to-enc.h: New file.
54881         * modules/uniconv/u16-conv-to-enc-tests: New file.
54882         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54883
54884         * modules/uniconv/u8-conv-to-enc: New file.
54885         * lib/uniconv/u8-conv-to-enc.c: New file.
54886         * modules/uniconv/u8-conv-to-enc-tests: New file.
54887         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54888
54889         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54890         u32_conv_to_encoding): New declarations.
54891
54892 2007-06-09  Bruno Haible  <bruno@clisp.org>
54893
54894         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54895
54896 2007-06-09  Bruno Haible  <bruno@clisp.org>
54897
54898         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54899         * modules/malloca: Renamed from modules/allocsa, updated.
54900         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54901         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54902         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54903         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54904         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54905         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54906         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54907         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54908         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54909         * modules/c-strcasestr (Depends-on): Update.
54910         * lib/c-strcasestr.c: Update.
54911         * modules/c-strstr (Depends-on): Update.
54912         * lib/c-strstr.c: Update.
54913         * modules/canonicalize-lgpl (Depends-on): Update.
54914         * lib/canonicalize-lgpl.c: Update.
54915         * modules/clean-temp (Depends-on): Update.
54916         * lib/clean-temp.c: Update.
54917         * modules/csharpcomp (Depends-on): Update.
54918         * lib/csharpcomp.c: Update.
54919         * modules/csharpexec (Depends-on): Update.
54920         * lib/csharpexec.c: Update.
54921         * modules/javacomp (Depends-on): Update.
54922         * lib/javacomp.c: Update.
54923         * modules/javaexec (Depends-on): Update.
54924         * lib/javaexec.c: Update.
54925         * modules/mbscasestr (Depends-on): Update.
54926         * lib/mbscasestr.c: Update.
54927         * modules/mbsstr (Depends-on): Update.
54928         * lib/mbsstr.c: Update.
54929         * modules/setenv (Depends-on): Update.
54930         * lib/setenv.c: Update.
54931         * modules/strcasestr (Depends-on): Update.
54932         * lib/strcasestr.c: Update.
54933         * modules/striconveha (Depends-on): Update.
54934         * lib/striconveha.c: Update.
54935         * modules/relocatable-prog-wrapper (Files): Update.
54936         * lib/relocwrapper.c: Update.
54937         * build-aux/install-reloc: Update.
54938         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54939
54940 2007-06-08  Bruno Haible  <bruno@clisp.org>
54941
54942         Port to uClibc.
54943         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54944         * lib/fpurge.c (fpurge): Likewise.
54945         * lib/freading.c (freading): Likewise.
54946         * lib/fseeko.c (rpl_fseeko): Likewise.
54947         * lib/fseterr.c (fseterr): Likewise.
54948         * lib/fwriting.c (fwriting): Likewise.
54949         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54950
54951 2007-06-08  Bruno Haible  <bruno@clisp.org>
54952
54953         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54954         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54955         * modules/gettext (Files): Add m4/intlmacosx.m4.
54956
54957 2007-06-07  Bruno Haible  <bruno@clisp.org>
54958
54959         * modules/localename-tests: New file.
54960         * tests/test-localename.c: New file.
54961
54962         New module 'localename'.
54963         * lib/localename.h: New file.
54964         * lib/localename.c: New file, from GNU gettext.
54965         * m4/localename.m4: New file.
54966         * modules/localename: New file.
54967
54968 2007-06-07  Bruno Haible  <bruno@clisp.org>
54969
54970         Work around the lack of <wchar.h> on some builds of uClibc.
54971         * doc/headers/wchar.texi: Update.
54972         * lib/wchar_.h: Include <wchar.h> only if it exists.
54973         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54974         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54975         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54976         doesn't exist.
54977         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54978         * modules/mbfile (Depends-on): Add wchar.
54979         * modules/mbiter (Depends-on): Likewise.
54980         * modules/mbuiter (Depends-on): Likewise.
54981         Reported by Simon Josefsson.
54982
54983 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54984
54985         Work around problem reported by Steven M. Schweda in
54986         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54987         Tru64 5.1B with the Compaq compiler environment installed declares
54988         an 'isblank' function but does not define it in the C library.
54989         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54990         * lib/regex_internal.h (isblank): Likewise.
54991         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54992         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54993
54994 2007-06-05  Bruno Haible  <bruno@clisp.org>
54995
54996         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54997         ia64.
54998         * modules/printf-safe: New file.
54999         * modules/fprintf-posix (Depends-on): Add printf-safe.
55000         * modules/printf-posix (Depends-on): Likewise.
55001         * modules/snprintf-posix (Depends-on): Likewise.
55002         * modules/sprintf-posix (Depends-on): Likewise.
55003         * modules/vasnprintf-posix (Depends-on): Likewise.
55004         * modules/vasprintf-posix (Depends-on): Likewise.
55005         * modules/vfprintf-posix (Depends-on): Likewise.
55006         * modules/vprintf-posix (Depends-on): Likewise.
55007         * modules/vsnprintf-posix (Depends-on): Likewise.
55008         * modules/vsprintf-posix (Depends-on): Likewise.
55009         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55010         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55011         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55012         "no" on i386, x86_64, ia64.
55013         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55014         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55015         on i386, x86_64, ia64.
55016         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55017         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55018         on i386, x86_64, ia64.
55019         * tests/test-vasnprintf-posix.c: Include float.h.
55020         (LDBL80_WORDS): New macro.
55021         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55022         on i386, x86_64, ia64.
55023         * tests/test-vasprintf-posix.c: Include float.h.
55024         (LDBL80_WORDS): New macro.
55025         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55026         on i386, x86_64, ia64.
55027         * tests/test-snprintf-posix.c: Include float.h.
55028         * tests/test-sprintf-posix.c: Likewise.
55029         * tests/test-vsnprintf-posix.c: Likewise.
55030         * tests/test-vsprintf-posix.c: Likewise.
55031
55032 2007-06-05  Bruno Haible  <bruno@clisp.org>
55033
55034         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55035         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55036         non-IEEE numbers on i386, x86_64, ia64.
55037         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55038         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55039         * tests/test-isnanl.h: Include float.h.
55040         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55041
55042 2007-06-05  Bruno Haible  <bruno@clisp.org>
55043
55044         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55045         also the %a / %A. Handle the %a / %A code before this extra handling.
55046
55047 2007-06-05  Bruno Haible  <bruno@clisp.org>
55048
55049         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55050         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55051
55052 2007-06-05  Bruno Haible  <bruno@clisp.org>
55053
55054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55055         typo in variable name.
55056
55057 2007-06-05  Eric Blake  <ebb9@byu.net>
55058
55059         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55060         Reported by Simon Josefsson.
55061
55062 2007-06-04  Bruno Haible  <bruno@clisp.org>
55063
55064         Avoid test failures on some PowerPC platforms.
55065         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55066         Define differently for PowerPC.
55067         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55068         Reported by Gary V. Vaughan <gary@gnu.org>.
55069
55070 2007-06-02  Bruno Haible  <bruno@clisp.org>
55071
55072         Fix test-stdint failure on FreeBSD/ia64.
55073         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55074         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55075         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55076         * doc/headers/stdint.texi: Update.
55077
55078 2007-06-01  Bruno Haible  <bruno@clisp.org>
55079
55080         * tests/test-binary-io.c (main): Pass a third argument to open().
55081         Reported by Gary V. Vaughan <gary@gnu.org>.
55082
55083 2007-06-01  Bruno Haible  <bruno@clisp.org>
55084
55085         * doc/functions/frexpl.texi: Update for mingw.
55086
55087 2007-06-01  Bruno Haible  <bruno@clisp.org>
55088
55089         * tests/test-lseek.c (main): Disable test of errno for invalid third
55090         argument.
55091         * doc/functions/lseek.texi: Update.
55092         Reported by Gary V. Vaughan <gary@gnu.org>.
55093
55094 2007-05-28  Bruno Haible  <bruno@clisp.org>
55095
55096         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55097
55098 2007-05-31  Eric Blake  <ebb9@byu.net>
55099
55100         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55101         cross compiling.
55102
55103 2007-05-30  Eric Blake  <ebb9@byu.net>
55104         and Bruno Haible  <bruno@clisp.org>
55105
55106         Work around mingw test failures exposed by m4-1.4.9b.
55107         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55108         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55109         moment.
55110
55111 2007-05-30  Bruno Haible  <bruno@clisp.org>
55112
55113         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55114         assuming that they are closed. Needed on HP-UX 11.
55115
55116 2007-05-29  Bruno Haible  <bruno@clisp.org>
55117
55118         Fix a problem with #include_next.
55119         * lib/dirent_.h: Split the double-inclusion guard.
55120         * lib/fcntl_.h: Likewise.
55121         * lib/float_.h: Likewise.
55122         * lib/iconv_.h: Likewise.
55123         * lib/inttypes_.h: Likewise.
55124         * lib/locale_.h: Likewise.
55125         * lib/math_.h: Likewise.
55126         * lib/netinet_in_.h: Likewise.
55127         * lib/search_.h: Likewise.
55128         * lib/signal_.h: Likewise.
55129         * lib/stdint_.h: Likewise.
55130         * lib/stdio_.h: Likewise.
55131         * lib/stdlib_.h: Likewise.
55132         * lib/string_.h: Likewise.
55133         * lib/sys_select_.h: Likewise.
55134         * lib/sys_socket_.h: Likewise.
55135         * lib/sys_stat_.h: Likewise.
55136         * lib/sys_time_.h: Likewise.
55137         * lib/sysexits_.h: Likewise.
55138         * lib/time_.h: Likewise.
55139         * lib/unistd_.h: Likewise.
55140         * lib/wchar_.h: Likewise.
55141         * lib/wctype_.h: Likewise.
55142
55143 2007-05-29  Bruno Haible  <bruno@clisp.org>
55144
55145         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55146         for the moment.
55147
55148 2007-05-29  Bruno Haible  <bruno@clisp.org>
55149
55150         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55151         invocation.
55152         Reported by Eric Blake.
55153
55154 2007-05-29  Bruno Haible  <bruno@clisp.org>
55155
55156         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55157         compiling case.
55158
55159 2007-05-29  Eric Blake  <ebb9@byu.net>
55160             Bruno Haible  <bruno@clisp.org>
55161
55162         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55163         cross compiles.
55164
55165 2007-05-28  Eric Blake  <ebb9@byu.net>
55166
55167         * modules/closein-tests (test_closein_LDADD): Support test on
55168         cygwin with libtool.
55169
55170 2007-05-28  Bruno Haible  <bruno@clisp.org>
55171
55172         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55173         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55174         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55175         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55176         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55177         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55178         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55179         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55180         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55181
55182 2007-05-28  Eric Blake  <ebb9@byu.net>
55183
55184         Unconditionally include <config.h> in unit tests.
55185         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55186         * tests/test-allocsa.c, tests/test-arcfour.c,
55187         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55188         tests/test-array_list.c, tests/test-array_oset.c,
55189         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55190         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55191         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55192         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55193         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55194         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55195         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55196         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55197         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55198         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55199         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55200         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55201         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55202         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55203         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55204         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55205         test-md5.c, test-memmem.c, test-printf-posix.c,
55206         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55207         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55208         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55209         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55210         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55211         test-vasnprintf-posix2.c, test-vasnprintf.c,
55212         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55213         test-vfprintf-posix.c, test-vprintf-posix.c,
55214         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55215         test-xvasprintf.c: Likewise.
55216
55217 2007-05-28  Bruno Haible  <bruno@clisp.org>
55218
55219         * gnulib-tool (func_import): Remember the --with-tests command-line
55220         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55221         Reported by Eric Blake.
55222
55223 2007-05-28  Bruno Haible  <bruno@clisp.org>
55224
55225         * modules/ftell-tests: New file.
55226         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55227         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55228
55229         * lib/ftell.c: New file.
55230         * modules/ftell: New file.
55231         * m4/ftell.m4: New file.
55232         * doc/functions/ftell.texi: Update.
55233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55234         REPLACE_FTELL.
55235         * lib/stdio_.h (rpl_ftell): New declaration.
55236         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55237         REPLACE_FTELL.
55238
55239 2007-05-28  Eric Blake  <ebb9@byu.net>
55240
55241         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55242
55243 2007-05-28  Bruno Haible  <bruno@clisp.org>
55244
55245         * modules/fseek-tests: New file.
55246         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55247         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55248
55249         * lib/fseek.c: New file.
55250         * modules/fseek: New file.
55251         * m4/fseek.m4: New file.
55252         * doc/functions/fseek.texi: Update.
55253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55254         REPLACE_FSEEK.
55255         * lib/stdio_.h (rpl_fseek): New declaration.
55256         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55257         REPLACE_FSEEK.
55258
55259 2007-05-28  Bruno Haible  <bruno@clisp.org>
55260
55261         * lib/stdio_.h (fflush): More comments.
55262
55263 2007-05-28  Bruno Haible  <bruno@clisp.org>
55264
55265         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55266         runtime test.
55267
55268 2007-05-28  Eric Blake  <ebb9@byu.net>
55269
55270         Improve lseek module.
55271         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55272         * lib/unistd_.h (lseek): Scale back link warning message.
55273         * tests/test-lseek.c: Beef up test.
55274         * tests/test-lseek.sh: Exercise more facets of lseek.
55275         Reported by Bruno Haible.
55276
55277 2007-05-28  Bruno Haible  <bruno@clisp.org>
55278
55279         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55280         to define.
55281
55282 2007-05-27  Bruno Haible  <bruno@clisp.org>
55283
55284         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55285
55286 2007-05-27  Bruno Haible  <bruno@clisp.org>
55287
55288         * modules/openmp: New file.
55289         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55290         Noah Misch.
55291
55292 2007-05-26  Bruno Haible  <bruno@clisp.org>
55293
55294         * modules/chdir-long (Depends-on): Add fchdir.
55295         * modules/chdir-safer (Depends-on): Likewise.
55296         * modules/fts (Depends-on): Likewise.
55297         * modules/fts-lgpl (Depends-on): Likewise.
55298         * modules/openat (Depends-on): Likewise.
55299         * modules/savewd (Depends-on): Likewise.
55300
55301 2007-05-24  Eric Blake  <ebb9@byu.net>
55302
55303         Fix lseek on mingw.
55304         * modules/lseek: New module.
55305         * m4/lseek.m4: New file.
55306         * lib/lseek.c: New file.
55307         * modules/lseek-tests: New file.
55308         * tests/test-lseek.c: New file.
55309         * tests/test-lseek.sh: New file.
55310         * MODULES.html.sh: Document lseek module.
55311         * modules/fflush (Depends-on): Add lseek, fseeko.
55312         * modules/fseeko (Depends-on): Likewise.
55313         * modules/ftello (Depends-on): Likewise.
55314         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55315         broken.
55316         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55317         broken.
55318         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55319         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55320         * lib/ftello.c (rpl_ftello): Likewise.
55321         * tests/test-fseeko.c (main): Test this.
55322         * tests/test-fseeko.sh: Likewise.
55323         * tests/test-ftello.c (main): Likewise.
55324         * tests/test-ftello.sh: Likewise.
55325         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55326         implies replacing fseek.
55327         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55328         HAVE_FTELLO.
55329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55330         * modules/unistd (Makefile.am): Likewise.
55331         * lib/unistd_.h (lseek): Declare a replacement.
55332         * doc/functions/lseek.texi (lseek): Document this fix.
55333         * doc/functions/fseek.texi (fseek): Likewise.
55334         * doc/functions/ftell.texi (ftell): Likewise.
55335
55336 2007-05-24  Bruno Haible  <bruno@clisp.org>
55337
55338         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55339         in the printed representation of a NaN.
55340         * tests/test-vasprintf-posix.c (test_function): Likewise.
55341         * tests/test-snprintf-posix.h (test_function): Likewise.
55342         * tests/test-sprintf-posix.h (test_function): Likewise.
55343         Reported by Eric Blake.
55344
55345 2007-05-23  Eric Blake  <ebb9@byu.net>
55346
55347         Fix fseeko/ftello on cygwin 1.5.24.
55348         * doc/functions/fseeko.texi (fseeko): Document the fix.
55349         * doc/functions/ftello.texi (ftello): Document the fix.
55350         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55351         * doc/functions/stdout.text (stdout): New file.
55352         * doc/functions/stderr.text (stderr): New file.
55353         * doc/gnulib.texi (Function Substitutes): Use new files.
55354         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55355         prior to 1.7.0.
55356         * tests/test-ftello.c (main): Likewise for ftello.
55357         * tests/test-fseeko.sh: New file.
55358         * tests/test-ftello.sh: New file.
55359         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55360         with seekable stdin.
55361         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55362         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55363         (gl_REPLACE_FSEEKO): New macro.
55364         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55365         * modules/fseeko (Files): Distribute fseeko.c.
55366         * modules/ftello (Files): Distribute ftello.c.
55367         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55368         mode.
55369         * lib/ftello.c (rpl_ftello): New file.
55370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55371         fseeko, ftello.
55372         (gl_STDIN_LARGE_OFFSET): New macro.
55373         * modules/stdio (Makefile.am): Perform the replacement.
55374         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55375
55376 2007-05-23  Bruno Haible  <bruno@clisp.org>
55377
55378         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55379         GNULIB_POSIXCHECK is defined.
55380
55381 2007-05-21  Bruno Haible  <bruno@clisp.org>
55382
55383         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55384         Check also the output for NaN arguments. When cross-compiling, guess
55385         no on IRIX.
55386         * lib/vasnprintf.c: Update comments.
55387         * tests/test-vasnprintf-posix.c (strisnan): New function.
55388         (test_function): Use it.
55389         * tests/test-vasprintf-posix.c (strisnan): New function.
55390         (test_function): Use it.
55391         * tests/test-snprintf-posix.h (strisnan): New function.
55392         (test_function): Use it.
55393         * tests/test-sprintf-posix.h (strisnan): New function.
55394         (test_function): Use it.
55395         Reported by Eric Blake.
55396
55397 2007-05-20  Bruno Haible  <bruno@clisp.org>
55398
55399         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55400         numbers that fails on BeOS.
55401         * doc/functions/frexpl.texi: Update.
55402
55403 2007-05-20  Jim Meyering  <jim@meyering.net>
55404
55405         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55406         forced upon us by glibc-2.6.
55407
55408 2007-05-20  Bruno Haible  <bruno@clisp.org>
55409
55410         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55411         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55412         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55413         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55414         NEED_PRINTF_INFINITE.
55415         (is_infinitel): New function.
55416         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55417         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55418         gl_PREREQ_VASNPRINTF_INFINITE.
55419         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55421         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55422         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55423         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55424         gl_PREREQ_VASNPRINTF_INFINITE.
55425         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55427         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55428         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55430         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55432         * doc/functions/fprintf.texi: Update.
55433         * doc/functions/printf.texi: Update.
55434         * doc/functions/snprintf.texi: Update.
55435         * doc/functions/sprintf.texi: Update.
55436         * doc/functions/vfprintf.texi: Update.
55437         * doc/functions/vprintf.texi: Update.
55438         * doc/functions/vsnprintf.texi: Update.
55439         * doc/functions/vsprintf.texi: Update.
55440
55441 2007-05-20  Bruno Haible  <bruno@clisp.org>
55442
55443         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55444         was not found in libc.
55445         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55446
55447 2007-05-20  Bruno Haible  <bruno@clisp.org>
55448
55449         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55450         printed as "-nan" instead of "nan".
55451         * tests/test-vasprintf-posix.c (test_function): Likewise.
55452         * tests/test-snprintf-posix.h (test_function): Likewise.
55453         * tests/test-sprintf-posix.h (test_function): Likewise.
55454         Needed for HP-UX 11.
55455
55456 2007-05-20  Jim Meyering  <jim@meyering.net>
55457
55458         Fix buggy test for the fchownat-deref bug.
55459         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55460         symlink required for the run-test.  Without it, this test would
55461         always declare that fchownat doesn't work, and client code would
55462         unnecessarily use the replacement function with fixed libc.
55463         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55464         Reported by Greg Schafer.
55465
55466 2007-05-19  Bruno Haible  <bruno@clisp.org>
55467
55468         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55469         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55470         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55471         Needed for IRIX 6.5 and Solaris 2.5.1.
55472
55473 2007-05-19  Bruno Haible  <bruno@clisp.org>
55474
55475         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55476         (test_function): Skip tests involving -0.0 on platforms where
55477         -0.0 = 0.0.
55478         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55479         (test_function): Skip tests involving -0.0 on platforms where
55480         -0.0 = 0.0.
55481         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55482         (test_function): Skip tests involving -0.0 on platforms where
55483         -0.0 = 0.0.
55484         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55485         (test_function): Skip tests involving -0.0 on platforms where
55486         -0.0 = 0.0.
55487         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55488         tests.
55489         * tests/test-printf-posix.h (test_function): Likewise.
55490         * tests/test-printf-posix.output: Remove all -0.0 related results.
55491         Needed for IRIX 6.5.
55492
55493 2007-05-19  Bruno Haible  <bruno@clisp.org>
55494
55495         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55496         printed as "nan0x7fffffff" instead of "nan".
55497         * tests/test-vasprintf-posix.c (test_function): Likewise.
55498         * tests/test-snprintf-posix.h (test_function): Likewise.
55499         * tests/test-sprintf-posix.h (test_function): Likewise.
55500         * tests/test-fprintf-posix.h (NaN): Remove macro.
55501         (test_function): Remove all NaN related tests.
55502         * tests/test-printf-posix.h (NaN): Remove macro.
55503         (test_function): Remove all NaN related tests.
55504         * tests/test-printf-posix.output: Remove all NaN related results.
55505         Needed for IRIX 6.5.
55506
55507 2007-05-19  Bruno Haible  <bruno@clisp.org>
55508
55509         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55510         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55511
55512 2007-05-19  Bruno Haible  <bruno@clisp.org>
55513
55514         * lib/float_.h: New file.
55515         * m4/float_h.m4: New file.
55516         * modules/float: New file.
55517         * modules/isnanl (Dependencies): Add float.
55518         * modules/isnanl-nolibm (Dependencies): Likewise.
55519         * modules/mathl (Dependencies): Likewise.
55520         * modules/printf-frexpl (Dependencies): Likewise.
55521         * modules/signbit (Dependencies): Likewise.
55522         * modules/vasnprintf (Dependencies): Likewise.
55523         * doc/headers/float.texi: Update.
55524
55525 2007-05-19  Jim Meyering  <jim@meyering.net>
55526
55527         * lib/utimens.c (gl_futimens): Rename from futimens,
55528         now that glibc-2.6 declares futimens.
55529         * lib/utimens.h: Likewise.
55530
55531 2007-05-19  Bruno Haible  <bruno@clisp.org>
55532
55533         Avoid test failures on mingw.
55534         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55535         * tests/test-printf-posix.sh: Likewise.
55536         * tests/test-vfprintf-posix.sh: Likewise.
55537         * tests/test-vprintf-posix.sh: Likewise.
55538
55539 2007-05-19  Bruno Haible  <bruno@clisp.org>
55540
55541         Fix *printf result for NaN, Inf, -0.0 on mingw.
55542         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55543         * lib/vasnprintf.c: Include math.h and isnan.h.
55544         (is_infinite_or_zero): New function.
55545         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55546         values in the %f, %F, %e, %E, %g, %G directives.
55547         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55548         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55549         gl_PRINTF_INFINITE and test its result. Invoke
55550         gl_PREREQ_VASNPRINTF_INFINITE.
55551         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55552         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55553         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55554         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55555         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55556         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55557         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55558         * doc/functions/fprintf.texi: Update.
55559         * doc/functions/printf.texi: Update.
55560         * doc/functions/snprintf.texi: Update.
55561         * doc/functions/sprintf.texi: Update.
55562         * doc/functions/vfprintf.texi: Update.
55563         * doc/functions/vprintf.texi: Update.
55564         * doc/functions/vsnprintf.texi: Update.
55565         * doc/functions/vsprintf.texi: Update.
55566
55567 2007-05-19  Bruno Haible  <bruno@clisp.org>
55568
55569         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55570         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55571         Instead of multiplying with 10^k, set extra_zeroes to k.
55572         (scale10_round_long_double): Remove function.
55573
55574 2007-05-18  Bruno Haible  <bruno@clisp.org>
55575
55576         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55577         introduced on 2007-05-06.
55578
55579 2007-05-18  Bruno Haible  <bruno@clisp.org>
55580
55581         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55582         %g directives.
55583         * tests/test-vasprintf-posix.c (test_function): Likewise.
55584         * tests/test-snprintf-posix.h (test_function): Likewise.
55585         * tests/test-sprintf-posix.h (test_function): Likewise.
55586
55587 2007-05-18  Bruno Haible  <bruno@clisp.org>
55588
55589         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55590         (strmatch): New function.
55591         (test_function): Test the %f directive on numbers of various exponents.
55592         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55593         (strmatch): New function.
55594         (test_function): Test the %f directive on numbers of various exponents.
55595         * tests/test-snprintf-posix.h (strmatch): New function.
55596         (test_function): Test the %f directive on numbers of various exponents.
55597         * tests/test-sprintf-posix.h (strmatch): New function.
55598         (test_function): Test the %f directive on numbers of various exponents.
55599         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55600         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55601         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55602         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55603
55604 2007-05-18  Bruno Haible  <bruno@clisp.org>
55605
55606         Add support for 'long double' number output.
55607         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55608         * lib/vasnprintf.c: Include math.h and float+.h.
55609         (mp_limb_t): New type.
55610         (GMP_LIMB_BITS): New macro.
55611         (mp_twolimb_t): New type.
55612         (GMP_TWOLIMB_BITS): New macro.
55613         (mpn_t): New type.
55614         (multiply, divide, convert_to_decimal, decode_long_double,
55615         scale10_round_long_double, scale10_round_decimal_long_double,
55616         floorlog10l): New functions.
55617         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55618         for the %f, %F, %e, %E, %g, %G directives.
55619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55620         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55621         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55622         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55623         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55624         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55625         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55626         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55627         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55628         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55629         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55630         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55631         * modules/snprintf-posix (Depends-on): Likewise.
55632         * modules/sprintf-posix (Depends-on): Likewise.
55633         * modules/vasnprintf-posix (Depends-on): Likewise.
55634         * modules/vasprintf-posix (Depends-on): Likewise.
55635         * modules/vfprintf-posix (Depends-on): Likewise.
55636         * modules/vsnprintf-posix (Depends-on): Likewise.
55637         * modules/vsprintf-posix (Depends-on): Likewise.
55638         * modules/vasnprintf (Files): Add lib/float+.h.
55639         * doc/functions/fprintf.texi: Update.
55640         * doc/functions/printf.texi: Update.
55641         * doc/functions/snprintf.texi: Update.
55642         * doc/functions/sprintf.texi: Update.
55643         * doc/functions/vfprintf.texi: Update.
55644         * doc/functions/vprintf.texi: Update.
55645         * doc/functions/vsnprintf.texi: Update.
55646         * doc/functions/vsprintf.texi: Update.
55647
55648 2007-05-18  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55651
55652 2007-05-18  Bruno Haible  <bruno@clisp.org>
55653
55654         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55655         for printing 64-bit integers. Needed for mingw.
55656
55657 2007-05-18  Bruno Haible  <bruno@clisp.org>
55658
55659         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55660         gl_FUNC_FREXPL_WORKS.
55661         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55662
55663 2007-05-18  Bruno Haible  <bruno@clisp.org>
55664
55665         * modules/frexpl-nolibm-tests: New file.
55666
55667         * modules/frexpl-nolibm: New file.
55668         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55669
55670 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55671
55672         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55673         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55674         GCC 4.2, which otherwise issues a lot of warnings.
55675         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55676         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55677         Likewise.
55678         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55679         * modules/iconv_open (iconv.h): Likewise.
55680         * modules/locale (locale.h): Likewise.
55681         * modules/netinet_in (netinet/in.h): Likewise.
55682         * modules/sys_select (sys_select.h): Likewise.
55683         * modules/sys_socket (sys/socket.h): Likewise.
55684         * modules/sys_stat (sys/stat.h): Likewise.
55685         * modules/sysexits (sysexits.h): Likewise.
55686         * modules/unistd (unistd.h): Likewise.
55687
55688 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55689
55690         * modules/closein-tests (Makefile.am): Distribute
55691         `test-closein.sh'.
55692
55693 2007-05-17  Bruno Haible  <bruno@clisp.org>
55694
55695         * tests/test-printf-posix.output: Renamed from
55696         tests/test-fprintf-posix.out.
55697         * modules/fprintf-posix-tests: Update.
55698         * modules/printf-posix-tests: Update.
55699         * modules/vfprintf-posix-tests: Update.
55700         * modules/vprintf-posix-tests: Update.
55701         * tests/test-fprintf-posix.sh: Update.
55702         * tests/test-printf-posix.sh: Update.
55703         * tests/test-vfprintf-posix.sh: Update.
55704         * tests/test-vprintf-posix.sh: Update.
55705         Reported by Ralf Wildenhues.
55706
55707 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55708
55709         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55710         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55711         GCC 4.2, which otherwise issues a lot of warnings.
55712         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55713         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55714         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55715         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55716         it should no longer be needed.
55717         * lib/string_.h: Likewise.
55718         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55719         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55720         * modules/inttypes (inttypes.h): Likewise.
55721         * modules/math (math.h): Likewise.
55722         * modules/search (search.h): Likewise.
55723         * modules/signal (signal.h): Likewise.
55724         * modules/stdint (stdint.h): Likewise.
55725         * modules/stdio (stdio.h): Likewise.
55726         * modules/stdlib (stdlib.h): Likewise.
55727         * modules/string (string.h): Likewise.
55728         * modules/sys_time (sys/time.h): Likewise.
55729         * modules/time (time.h): Likewise.
55730         * modules/wchar (wchar.h): Likewise.
55731         * modules/wctype (wtype.h): Likewise.
55732
55733 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55734
55735         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55736
55737 2007-05-13  Bruno Haible  <bruno@clisp.org>
55738
55739         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55740         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55741         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55742         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55743         (gl_PREREQ_STRTOK_R): Don't require it here.
55744
55745 2007-05-13  Bruno Haible  <bruno@clisp.org>
55746
55747         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55748         when used in C++ mode.
55749
55750 2007-05-12  Bruno Haible  <bruno@clisp.org>
55751
55752         * lib/linebuffer.h: Tweak doc.
55753         * lib/linebuffer.c: Likewise.
55754
55755 2007-05-12  James Youngman  <jay@gnu.org>
55756
55757         * lib/linebuffer.c (readlinebuffer_delim): New function,
55758         like readlinebuffer, but use a caller-specified delimiter.
55759         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55760         as the delimiter.
55761         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55762
55763 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55764
55765         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55766         * modules/openat (Files): Remove openat-die.c.
55767         (Depends-on): Add openat-die.
55768         * modules/openat-die: New module.
55769
55770 2007-05-06  Bruno Haible  <bruno@clisp.org>
55771
55772         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55773         Update with info about Cygwin.
55774         * doc/functions/fprintf.texi: Update.
55775         * doc/functions/printf.texi: Update.
55776         * doc/functions/snprintf.texi: Update.
55777         * doc/functions/sprintf.texi: Update.
55778         * doc/functions/vfprintf.texi: Update.
55779         * doc/functions/vprintf.texi: Update.
55780         * doc/functions/vsnprintf.texi: Update.
55781         * doc/functions/vsprintf.texi: Update.
55782         Reported by Eric Blake.
55783
55784 2007-05-06  Bruno Haible  <bruno@clisp.org>
55785
55786         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55787         padding ourselves for the floating-point directives.
55788         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55790         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55791         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55792         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55793         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55794         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55796         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55797         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55798         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55799         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55800         * tests/test-snprintf-posix.h (test_function): Also check the width
55801         and some flags in the %f directive.
55802         * tests/test-sprintf-posix.h (test_function): Likewise.
55803         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55804         * tests/test-vasprintf-posix.c (test_function): Likewise.
55805         * doc/functions/fprintf.texi: Update.
55806         * doc/functions/printf.texi: Update.
55807         * doc/functions/snprintf.texi: Update.
55808         * doc/functions/sprintf.texi: Update.
55809         * doc/functions/vfprintf.texi: Update.
55810         * doc/functions/vprintf.texi: Update.
55811         * doc/functions/vsnprintf.texi: Update.
55812         * doc/functions/vsprintf.texi: Update.
55813
55814 2007-05-06  Bruno Haible  <bruno@clisp.org>
55815
55816         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55817         pass the ' flag character to sprintf or snprintf.
55818         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55819         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55820         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55821         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55822         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55823         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55824         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55826         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55827         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55830         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55831         flag.
55832         * tests/test-sprintf-posix.h (test_function): Likewise.
55833         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55834         * tests/test-vasprintf-posix.c (test_function): Likewise.
55835         * doc/functions/fprintf.texi: Update.
55836         * doc/functions/printf.texi: Update.
55837         * doc/functions/snprintf.texi: Update.
55838         * doc/functions/sprintf.texi: Update.
55839         * doc/functions/vfprintf.texi: Update.
55840         * doc/functions/vprintf.texi: Update.
55841         * doc/functions/vsnprintf.texi: Update.
55842         * doc/functions/vsprintf.texi: Update.
55843
55844 2007-05-01  Bruno Haible  <bruno@clisp.org>
55845
55846         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55847
55848 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55849
55850         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55851         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55852
55853 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55854
55855         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55856         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55858
55859 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55860
55861         * lib/argp-help.c (struct hol_entry): New member `ord'.
55862         (HOL_ENTRY_PTRCMP): Use ord for comparison
55863         (hol_sort): Initialize ord.
55864
55865 2007-05-01  Bruno Haible  <bruno@clisp.org>
55866
55867         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55868         Reported by Eric Blake.
55869         * doc/gnulib.texi (Function Substitutes): Update.
55870
55871 2007-05-01  Bruno Haible  <bruno@clisp.org>
55872
55873         * doc/functions.texi: Remove file, now redundant through
55874         doc/functions/*.texi.
55875
55876 2007-05-01  Bruno Haible  <bruno@clisp.org>
55877
55878         * modules/argp (Depends-on): Add sleep.
55879
55880 2007-05-01  Bruno Haible  <bruno@clisp.org>
55881
55882         * modules/sleep-tests: New file.
55883         * tests/test-sleep.c: New file.
55884
55885         * modules/sleep: New file.
55886         * lib/sleep.c: New file.
55887         * m4/sleep.m4: New file.
55888         * lib/unistd_.h (sleep): New declaration.
55889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55890         HAVE_SLEEP.
55891         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55892         * doc/functions/sleep.texi: Document the sleep module.
55893
55894 2007-05-01  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/sigprocmask.h: Remove file.
55897         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55898         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55899         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55900         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55901         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55902         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55903         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55904         HAVE_SIGSET_T as a shell variable.
55905         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55906         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55907         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55908         (Depends-on): Add signal. Remove verify.
55909         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55910         (Include): Mention <signal.h> instead of sigprocmask.h.
55911         * NEWS: Mention the change.
55912         * lib/fatal-signal.c: Don't include sigprocmask.h.
55913
55914 2007-05-01  Bruno Haible  <bruno@clisp.org>
55915
55916         * modules/signal: New file.
55917         * lib/signal_.h: New file.
55918         * m4/signal_h.m4: New file.
55919
55920 2007-05-01  Bruno Haible  <bruno@clisp.org>
55921
55922         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55923         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55924         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55925         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55926
55927 2007-05-01  Bruno Haible  <bruno@clisp.org>
55928
55929         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55930         configure time.
55931         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55932         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55933         * modules/sys_stat (Makefile.am): Substitute their values into
55934         sys/stat.h.
55935
55936 2007-05-01  Bruno Haible  <bruno@clisp.org>
55937
55938         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55939         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55940         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55941
55942 2007-05-01  Bruno Haible  <bruno@clisp.org>
55943
55944         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55945         'assert' module here.
55946
55947 2007-05-01  Bruno Haible  <bruno@clisp.org>
55948
55949         * doc/functions/*.texi: New files.
55950         * doc/functions/google-ranking.txt: New file.
55951         * doc/gnulib.texi (Function Substitutes): New chapter.
55952         (ctime, inet_ntoa): Remove sections.
55953         * doc/ctime.texi: Remove file.
55954         * doc/inet_ntoa.texi: Remove file.
55955         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55956         dependencies.
55957         (%.info): New rule, specifying a --reference-limit.
55958
55959 2007-05-01  Bruno Haible  <bruno@clisp.org>
55960
55961         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55962
55963 2007-05-01  Bruno Haible  <bruno@clisp.org>
55964
55965         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55966         the portability of 'mkdir' to mingw systems.
55967
55968 2007-05-01  Bruno Haible  <bruno@clisp.org>
55969
55970         * doc/headers/google-ranking.txt: New file.
55971
55972 2007-04-30  Eric Blake  <ebb9@byu.net>
55973
55974         Prefer fseeko to fseek.
55975         * modules/getpass (Depends-on): Add fseeko.
55976         * lib/getpass.c (getpass): Use fseeko, not fseek.
55977
55978 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55979
55980         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55981         assumes the sorting is stable, while most qsort implementations
55982         are not.  Use argument addresses to ensure they never compare as
55983         equal.
55984
55985         * tests/test-argp-2.sh (usage-indent test): Fix output
55986         (func_compare): Restore diff options
55987         * tests/test-argp.c: Restore #include "progname.h"
55988
55989 2007-04-29  Bruno Haible  <bruno@clisp.org>
55990
55991         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55992         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55993         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55994         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55995         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55996         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55997         (TESTS, check_PROGRAMS): Add test-snprintf.
55998         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55999         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56000         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56001         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56002         assertions that fail on HP-UX, OSF/1, or IRIX.
56003         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56004
56005 2007-04-29  Bruno Haible  <bruno@clisp.org>
56006
56007         * MODULES.html.sh (posix_functions): Remove 'contents'.
56008
56009 2007-04-29  Karl Berry  <karl@gnu.org>
56010
56011         * config/srclist.txt (gendocs_template_min): new entry.
56012
56013 2007-04-29  Bruno Haible  <bruno@clisp.org>
56014
56015         Work around fpurge bug on BSD systems.
56016         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56017         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56018         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56019         fpurge to rpl_fpurge if the system already has this function.
56020         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56021         the case where the system already has this function. Correct invariants
56022         on BSD systems.
56023         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56024         BSD systems.
56025
56026 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56027
56028         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56029         proposed by Sven Verdoolaege.
56030
56031         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56032         options.
56033         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56034         (usage and help tests): Update
56035
56036 2007-04-29  Bruno Haible  <bruno@clisp.org>
56037
56038         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56039         Print more information in case of failure. Disable a test on BeOS.
56040
56041 2007-04-29  Bruno Haible  <bruno@clisp.org>
56042
56043         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56044         This helps debugging on systems on which no gdb is available.
56045
56046 2007-04-29  Bruno Haible  <bruno@clisp.org>
56047
56048         * lib/freading.h: Improve comments.
56049         * lib/fwriting.h: Likewise.
56050         * tests/test-freading.c (main): Don't check freading immediately after
56051         repositioning. Needed for glibc.
56052
56053 2007-04-29  Bruno Haible  <bruno@clisp.org>
56054
56055         * lib/freading.c (freading): Trivial simplification.
56056
56057 2007-04-28  Bruno Haible  <bruno@clisp.org>
56058
56059         * tests/test-fwriting.c (main): Also test the interaction between
56060         fflush and fwriting.
56061         * modules/fwriting-tests (Depends-on): Add fflush.
56062
56063         * tests/test-freading.c (main): Also test the interaction between
56064         fflush and freading.
56065         * modules/freading-tests (Depends-on): Add fflush.
56066
56067 2007-04-28  Bruno Haible  <bruno@clisp.org>
56068
56069         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56070         fseeko and ftello.
56071         Suggested by Eric Blake.
56072
56073 2007-04-28  Jim Meyering  <jim@meyering.net>
56074
56075         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56076         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56077         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56078
56079 2007-04-27  Eric Blake  <ebb9@byu.net>
56080
56081         * doc/headers/assert.texi (assert.h): Document assert module use.
56082
56083 2007-04-27  Bruno Haible  <bruno@clisp.org>
56084
56085         * doc/headers/*.texi: New files.
56086         * doc/gnulib.texi (Header File Substitutes): New chapter.
56087         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56088         dependencies.
56089         (standards.info ,standards.html, standards.dvi): Update dependencies.
56090         (mostlyclean, clean): New targets.
56091
56092 2007-04-27  Bruno Haible  <bruno@clisp.org>
56093
56094         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56095         * modules/sysexits (Files, Makefile.am): Update.
56096
56097         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56098         * modules/sys_socket (Files, Makefile.am): Update.
56099
56100         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56101         * modules/sys_stat (Files, Makefile.am): Update.
56102
56103 2007-04-27  Eric Blake  <ebb9@byu.net>
56104
56105         * lib/freading.h: Improve comments.
56106         * lib/fwriting.h: Likewise.
56107         * lib/fflush.c: Likewise.
56108
56109         Fix closein for mingw.
56110         * modules/closein-tests: Add tests for closein.
56111         * tests/test-closein.c: New file.
56112         * tests/test-closein.sh: Likewise.
56113         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56114         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56115
56116 2007-04-27  Bruno Haible  <bruno@clisp.org>
56117
56118         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56119         version is < 6.
56120         * lib/math_.h [__DECC]: Likewise.
56121         * lib/stdio_.h [__DECC]: Likewise.
56122         * lib/stdlib_.h [__DECC]: Likewise.
56123         * lib/string_.h [__DECC]: Likewise.
56124         * lib/time_.h [__DECC]: Likewise.
56125         * lib/wchar_.h [__DECC]: Likewise.
56126         * lib/wctype_.h [__DECC]: Likewise.
56127
56128 2007-04-27  Bruno Haible  <bruno@clisp.org>
56129
56130         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56131
56132 2007-04-27  Bruno Haible  <bruno@clisp.org>
56133
56134         * lib/fflush.c: Add comments.
56135         * modules/fpurge-tests (Depends-on): Add fflush.
56136         * modules/freadable-tests (Depends-on): Likewise.
56137         * modules/fwritable-tests (Depends-on): Likewise.
56138
56139 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56140
56141         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56142         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56143         Report by Bruno Haible <bruno@clisp.org>.
56144
56145 2007-04-26  Eric Blake  <ebb9@byu.net>
56146
56147         Fix fflush on mingw.
56148         * modules/fflush (Depends-on): Add freading.
56149         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56150         but unread data.
56151
56152 2007-04-26  Eric Blake  <ebb9@byu.net>
56153         and Bruno Haible  <bruno@clisp.org>
56154
56155         Implement freading and fwriting.
56156         * lib/freading.c: New file.
56157         * lib/freading.h: Likewise.
56158         * m4/freading.m4: Likewise.
56159         * modules/freading: Likewise.
56160         * modules/freading-tests: Likewise.
56161         * tests/test-freading.c: Likewise.
56162         * lib/fwriting.c: New file.
56163         * lib/fwriting.h: Likewise.
56164         * m4/fwriting.m4: Likewise.
56165         * modules/fwriting: Likewise.
56166         * modules/fwriting-tests: Likewise.
56167         * tests/test-fwriting.c: Likewise.
56168         * MODULES.html.sh (File stream based Input/Output): Mention them.
56169
56170 2007-04-26  Bruno Haible  <bruno@clisp.org>
56171
56172         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56173         'long' when we assume it.
56174         Suggested by Eric Blake.
56175
56176 2007-04-26  Bruno Haible  <bruno@clisp.org>
56177
56178         Ensure fseeko, ftello are declared on glibc systems.
56179         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56180         * modules/fseeko (configure.ac-early): Likewise.
56181         * modules/ftello (configure.ac-early): Likewise.
56182         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56183         AC_FUNC_FSEEKO for this.
56184         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56185         (gl_CHECK_FSEEKO): Remove macro.
56186
56187 2007-04-26  Bruno Haible  <bruno@clisp.org>
56188
56189         * tests/test-fflush.c (main): Also check the ftell result after
56190         fflush and fseek/fseeko.
56191         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56192         file descriptor position cache in the stream.
56193         * lib/fseeko.c (rpl_fseeko): Likewise.
56194
56195 2007-04-26  Bruno Haible  <bruno@clisp.org>
56196
56197         * modules/fflush-tests (Depends-on): Add fseeko.
56198
56199 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56200             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56201
56202         * lib/argz_.h: ensure error_t definition is obtained in same
56203         mechanism system argz.h would have.
56204         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56205         argz facilities are known bad.  Err on the side of caution if
56206         cross-compiling.
56207
56208 2007-04-25  Eric Blake  <ebb9@byu.net>
56209
56210         * lib/fpurge.c (includes): Use stdlib.h for free.
56211         * tests/test-fflush.c (main): Also test fflush-fseeko.
56212
56213 2007-04-25  Bruno Haible  <bruno@clisp.org>
56214
56215         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56216         * lib/fseeko.c: New file.
56217         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56218         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56219         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56220         gl_FUNC_FSEEKO.
56221         (gl_FUNC_FSEEKO): Invoke it.
56222         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56223         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56224         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56225
56226 2007-04-25  Bruno Haible  <bruno@clisp.org>
56227
56228         * modules/fflush (Depends-on): Add ftello.
56229
56230 2007-04-25  Bruno Haible  <bruno@clisp.org>
56231
56232         * modules/ftello-tests: New file.
56233         * tests/test-ftello.c: New file.
56234
56235         * modules/ftello: New file.
56236         * m4/ftello.m4: New file.
56237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56238         HAVE_FTELLO.
56239         * lib/stdio_.h (ftello): New declaration.
56240         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56241         HAVE_FTELLO.
56242
56243 2007-04-25  Bruno Haible  <bruno@clisp.org>
56244
56245         * modules/fseeko-tests: New file.
56246         * tests/test-fseeko.c: New file.
56247
56248         * modules/fseeko: New file.
56249         * m4/fseeko.m4: New file.
56250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56251         HAVE_FSEEKO.
56252         * lib/stdio_.h (fseeko): New declaration.
56253         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56254         HAVE_FSEEKO.
56255
56256 2007-04-25  Bruno Haible  <bruno@clisp.org>
56257
56258         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56259
56260 2007-04-25  Bruno Haible  <bruno@clisp.org>
56261
56262         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56263         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56264         * tests/test-unistd.c: Likewise.
56265         * tests/test-fcntl.c: Likewise.
56266
56267 2007-04-23  Eric Blake  <ebb9@byu.net>
56268
56269         * lib/fflush.c: Fix missing include.
56270         Reported by Bruno Haible.
56271
56272 2007-04-23  Bruno Haible  <bruno@clisp.org>
56273
56274         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56275         Reported by Eric Blake.
56276
56277 2007-04-23  Bruno Haible  <bruno@clisp.org>
56278
56279         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56280
56281 2007-04-23  Bruno Haible  <bruno@clisp.org>
56282
56283         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56284
56285 2007-04-23  Bruno Haible  <bruno@clisp.org>
56286
56287         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56288         Needed on HP-UX 11.
56289
56290 2007-04-16  Eric Blake  <ebb9@byu.net>
56291
56292         Make fflush rely on fpurge.
56293         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56294         open coding all variants.
56295         * modules/fflush (Depends-on): Add fpurge and unistd.
56296         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56297         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56298
56299         Fix --with-tests compilation on cygwin.
56300         * modules/argmatch-tests (Makefile.am): List gnulib library first
56301         in LDADD.
56302         * modules/argp-tests (Makefile.am): Likewise.
56303         * modules/array-list-tests (Makefile.am): Likewise.
56304         * modules/array-oset-tests (Makefile.am): Likewise.
56305         * modules/avltree-list-tests (Makefile.am): Likewise.
56306         * modules/avltree-oset-tests (Makefile.am): Likewise.
56307         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56308         * modules/carray-list-tests (Makefile.am): Likewise.
56309         * modules/dirname-tests (Makefile.am): Likewise.
56310         * modules/frexp-tests (Makefile.am): Likewise.
56311         * modules/isnanl-tests (Makefile.am): Likewise.
56312         * modules/linked-list-tests (Makefile.am): Likewise.
56313         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56314         * modules/lock-tests (Makefile.am): Likewise.
56315         * modules/rbtree-list-tests (Makefile.am): Likewise.
56316         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56317         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56318         * modules/tls-tests (Makefile.am): Likewise.
56319         * modules/tsearch-tests (Makefile.am): Likewise.
56320         * modules/xvasprintf-tests (Makefile.am): Likewise.
56321
56322         Fix fpurge for cygwin.
56323         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56324         value.
56325         * modules/fpurge-tests (Depends-on): Clean up trash.
56326
56327 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56328
56329         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56330
56331         * m4/autobuild.m4: Re-indent.
56332
56333 2007-04-13  Bruno Haible  <bruno@clisp.org>
56334
56335         * modules/fpurge-tests: New file.
56336         * tests/test-fpurge.c: New file.
56337
56338         * modules/fpurge: New file.
56339         * lib/fpurge.h: New file.
56340         * lib/fpurge.c: New file.
56341         * m4/fpurge.m4: New file.
56342
56343 2007-04-13  Bruno Haible  <bruno@clisp.org>
56344
56345         * modules/fbufmode-tests: New file.
56346         * tests/test-fbufmode.c: New file.
56347
56348         * modules/fbufmode: New file.
56349         * lib/fbufmode.h: New file.
56350         * lib/fbufmode.c: New file.
56351         * m4/fbufmode.m4: New file.
56352
56353 2007-04-13  Bruno Haible  <bruno@clisp.org>
56354
56355         * modules/fwritable-tests: New file.
56356         * tests/test-fwritable.c: New file.
56357
56358         * modules/fwritable: New file.
56359         * lib/fwritable.h: New file.
56360         * lib/fwritable.c: New file.
56361         * m4/fwritable.m4: New file.
56362
56363 2007-04-13  Bruno Haible  <bruno@clisp.org>
56364
56365         * modules/freadable-tests: New file.
56366         * tests/test-freadable.c: New file.
56367
56368         * modules/freadable: New file.
56369         * lib/freadable.h: New file.
56370         * lib/freadable.c: New file.
56371         * m4/freadable.m4: New file.
56372
56373 2007-04-13  Bruno Haible  <bruno@clisp.org>
56374
56375         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56376         MOSTLYCLEANFILES.
56377
56378 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56379
56380         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56381         gzip bootstrap.conf to avoid dragging in i18n machinery.
56382         (gnulib_tool_option): Use it.
56383
56384 2007-04-13  Bruno Haible  <bruno@clisp.org>
56385
56386         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56387         %F directives.
56388         * tests/test-vasprintf-posix.c (test_function): Likewise.
56389         * tests/test-snprintf-posix.h (test_function): Likewise.
56390         * tests/test-sprintf-posix.h (test_function): Likewise.
56391         * tests/test-fprintf-posix.h (test_function): Likewise.
56392         * tests/test-printf-posix.h (test_function): Likewise.
56393         * tests/test-fprintf-posix.out: Likewise.
56394
56395 2007-04-13  Bruno Haible  <bruno@clisp.org>
56396
56397         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56398         * modules/tls-tests (configure.ac): Likewise.
56399         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56400
56401 2007-04-13  Bruno Haible  <bruno@clisp.org>
56402
56403         * lib/tls.c (glthread_tls_get): Fix return type.
56404         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56405
56406 2007-04-12  Eric Blake  <ebb9@byu.net>
56407
56408         * modules/gettime (Depends-on): Remove gettime.
56409         Reported by Dmitry V. Levin.
56410
56411 2007-04-12  Bruno Haible  <bruno@clisp.org>
56412
56413         * modules/fflush (Include): Mention <stdio.h>.
56414         * modules/strtoimax (Include): Mention <inttypes.h>.
56415         * modules/strtoumax (Include): Likewise.
56416
56417 2007-04-12  Eric Blake  <ebb9@byu.net>
56418
56419         * .cvsignore: New file.
56420         * .gitignore: Likewise.
56421
56422 2007-04-12  Bruno Haible  <bruno@clisp.org>
56423
56424         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56425         not before, since $(LDADD) often contains libgnu.a.
56426         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56427         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56428         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56429         Needed on Cygwin.
56430
56431 2007-04-12  Eric Blake  <ebb9@byu.net>
56432
56433         Work around glibc's failure to flush stdin on fclose.
56434         * lib/closein.c (close_stdin): Flush stdin before closing.
56435
56436         Work around glibc's failure to reset seekable stdin on exit.
56437         * modules/closein: New module.
56438         * lib/closein.c: New file.
56439         * lib/closein.h: Likewise.
56440         * m4/closein.m4: Likewise.
56441         * MODULES.html.sh (File stream based Input/Output): Document it.
56442
56443 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56444
56445         * gnulib-tool: Rename generated 'autobuild' script to
56446         'do-autobuild' in --create-megatestdir output.
56447
56448         * doc/gnulib.texi (Build robot for gnulib): Fix.
56449
56450 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56451
56452         * modules/sysexits (Depends-on): Add absolute-header.
56453
56454 2007-04-12  Eric Blake  <ebb9@byu.net>
56455
56456         No need to preserve errno on success.
56457         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56458         Reported by Bruno Haible.
56459
56460 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56461
56462         * MODULES.html.sh (Support for maintaining and releasing
56463         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56464
56465 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56466
56467         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56468
56469 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56470
56471         * modules/autobuild: New module.
56472
56473         * m4/autobuild.m4: New file.
56474
56475 2007-04-11  Bruno Haible  <bruno@clisp.org>
56476
56477         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56478         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56479         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56481         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56482         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56483         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56484         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56485         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56486         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56487         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56488         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56489         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56491         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56492         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56494         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56495         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56496         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56497         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56498         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56499         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56500         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56501         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56502         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56503         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56504         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56505         Reported by Eric Blake.
56506
56507 2007-04-11  Bruno Haible  <bruno@clisp.org>
56508
56509         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56510
56511 2007-04-10  Bruno Haible  <bruno@clisp.org>
56512
56513         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56514         for NaN and Infinity. Needed on FreeBSD 6.1.
56515         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56516         regarding results for "%010a" of Infinity and NaN.
56517         * tests/test-vasprintf-posix.c (test_function): Likewise.
56518         * tests/test-snprintf-posix.h (test_function): Likewise.
56519         * tests/test-sprintf-posix.h (test_function): Likewise.
56520         * tests/test-fprintf-posix.h (test_function): Likewise.
56521         * tests/test-printf-posix.h (test_function): Likewise.
56522         * tests/test-fprintf-posix.out: Likewise.
56523
56524 2007-04-10  Bruno Haible  <bruno@clisp.org>
56525
56526         * modules/locale-tests: New file.
56527         * tests/test-locale.c: New file.
56528
56529         * modules/locale: New file.
56530         * lib/locale_.h: New file.
56531         * m4/locale_h.m4: New file.
56532
56533 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56534             Bruno Haible  <bruno@clisp.org>
56535
56536         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56537         be determined, test for availability of the copysignf, copysign,
56538         copysignl functions.
56539         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56540         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56541         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56542
56543 2007-04-09  Eric Blake  <ebb9@byu.net>
56544
56545         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56546         * modules/stdio (Makefile.am): Support fflush.
56547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56548         * modules/fflush: New file.
56549         * lib/fflush.c: Likewise.
56550         * m4/fflush.m4: Likewise.
56551         * modules/fflush-tests: New test.
56552         * tests/test-fflush.c: Likewise.
56553         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56554
56555 2007-04-06  Bruno Haible  <bruno@clisp.org>
56556
56557         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56558         (VASNPRINTF): Use signbit for faster determination whether to print a
56559         minus sign.
56560         * modules/vasnprintf (Files): Remove lib/float+.h.
56561         * modules/fprintf-posix (Depends-on): Add signbit.
56562         * modules/snprintf-posix (Depends-on): Likewise.
56563         * modules/sprintf-posix (Depends-on): Likewise.
56564         * modules/vasnprintf-posix (Depends-on): Likewise.
56565         * modules/vasprintf-posix (Depends-on): Likewise.
56566         * modules/vfprintf-posix (Depends-on): Likewise.
56567         * modules/vsnprintf-posix (Depends-on): Likewise.
56568         * modules/vsprintf-posix (Depends-on): Likewise.
56569
56570 2007-04-06  Bruno Haible  <bruno@clisp.org>
56571
56572         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56573         * tests/test-frexpl.c (main): Likewise.
56574         * tests/test-ldexpl.c (main): Likewise.
56575         * modules/frexp-tests (Depends-on): Add signbit.
56576         * modules/frexpl-tests (Depdends-on): Likewise.
56577         * modules/ldexpl-tests (Depdends-on): Likewise.
56578
56579 2007-04-06  Bruno Haible  <bruno@clisp.org>
56580
56581         * modules/signbit-tests: New file.
56582         * tests/test-signbit.c: New file.
56583
56584         * modules/signbit: New file.
56585         * lib/signbitf.c: New file.
56586         * lib/signbitd.c: New file.
56587         * lib/signbitl.c: New file.
56588         * m4/signbit.m4: New file.
56589         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56590         (signbit): New macro.
56591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56592         REPLACE_SIGNBIT.
56593         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56594         REPLACE_FREXPL into math.h.
56595
56596 2007-04-06  Bruno Haible  <bruno@clisp.org>
56597
56598         * modules/isnanf-nolibm-tests: New file.
56599         * tests/test-isnanf.c: New file.
56600
56601         * modules/isnanf-nolibm: New file.
56602         * lib/isnanf.h: New file.
56603         * lib/isnanf.c: New file.
56604         * lib/isnan.c: Consider the USE_FLOAT macro.
56605         * m4/isnanf.m4: New file.
56606
56607 2007-04-06  Bruno Haible  <bruno@clisp.org>
56608
56609         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56610         (Link): New section.
56611
56612         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56613
56614 2007-04-06  Bruno Haible  <bruno@clisp.org>
56615
56616         Assume the 'long double' type.
56617         * m4/longdouble.m4: Remove file.
56618         * config/srclist.txt: Don't mention longdouble.m4.
56619         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56620         * lib/float+.h: Likewise.
56621         * lib/frexp.c: Likewise.
56622         * lib/printf-args.h: Likewise.
56623         * lib/printf-args.c: Likewise.
56624         * lib/printf-frexp.c: Likewise.
56625         * lib/printf-parse.c: Likewise.
56626         * lib/vasnprintf.c: Likewise.
56627         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56628         * m4/intl.m4: Likewise.
56629         * m4/isnanl.m4: Likewise.
56630         * m4/printf.m4: Likewise.
56631         * m4/printf-frexpl.m4: Likewise.
56632         * m4/vasnprintf.m4: Likewise.
56633         * modules/allocsa (Files): Remove m4/longdouble.m4.
56634         * modules/gettext (Files): Likewise.
56635         * modules/relocatable-prog-wrapper (Files): Likewise.
56636         * modules/vasnprintf (Files): Likewise.
56637         * modules/isnanl (Files): Likewise.
56638         (Include): Simplify.
56639         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56640         (Include): Simplify.
56641         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56642         (Include): Simplify.
56643         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56644         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56645         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56646         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56647         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56648         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56649         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56650         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56651         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56652         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56653         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56654         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56655         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56656         * tests/test-isnanl.c: Likewise.
56657         * tests/test-snprintf-posix.h: Likewise.
56658         * tests/test-sprintf-posix.h: Likewise.
56659         * tests/test-vasnprintf-posix.c: Likewise.
56660         * tests/test-vasnprintf-posix2.c: Likewise.
56661         * tests/test-vasprintf-posix.c: Likewise.
56662
56663 2007-04-06  Bruno Haible  <bruno@clisp.org>
56664
56665         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56666         * lib/math_.h [__DECC]: Include the overridden include file through
56667         #include_next, outside the double-inclusion guard.
56668         * lib/stdio_.h [__DECC]: Likewise.
56669         * lib/stdlib_.h [__DECC]: Likewise.
56670         * lib/string_.h [__DECC]: Likewise.
56671         * lib/time_.h [__DECC]: Likewise.
56672         * lib/wchar_.h [__DECC]: Likewise.
56673         * lib/wctype_.h [__DECC]: Likewise.
56674         * lib/inttypes_.h [__DECC]: Likewise.
56675         Reported by Albert Chin <china@thewrittenword.com> in
56676         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56677
56678 2007-04-04  Eric Blake  <ebb9@byu.net>
56679
56680         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56681         1.5.x.
56682
56683 2007-04-04  Bruno Haible  <bruno@clisp.org>
56684
56685         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56686         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56687
56688 2007-04-04  Bruno Haible  <bruno@clisp.org>
56689
56690         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56691         results for "%010a" of Infinity and NaN.
56692         * tests/test-vasprintf-posix.c (test_function): Likewise.
56693         * tests/test-snprintf-posix.h (test_function): Likewise.
56694         * tests/test-sprintf-posix.h (test_function): Likewise.
56695         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56696         * tests/test-printf-posix.h (test_function): Likewise.
56697         * tests/test-fprintf-posix.out: Update.
56698         Needed for FreeBSD 6.1.
56699
56700 2007-04-04  Bruno Haible  <bruno@clisp.org>
56701
56702         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56703         directly used by the gnulib modules nor by gnulib-tool.
56704
56705 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56706
56707         * DEPENDENCIES: Give overall description of version dependency
56708         desirability.  Use more-typical names for apps.
56709         Add shell, coreutils, diffutils, grep, tar, gzip.
56710
56711 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56712
56713         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56714
56715 2007-04-04  Karl Berry  <karl@gnu.org>
56716
56717         * MODULES.html.sh (func_module): missing '.
56718
56719 2007-04-03  Bruno Haible  <bruno@clisp.org>
56720
56721         * modules/argmatch-tests (Makefile.am): New variable
56722         test_argmatch_LDADD.
56723         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56724         * modules/array-list-tests (Makefile.am): New variable
56725         test_array_list_LDADD.
56726         * modules/array-oset-tests (Makefile.am): New variable
56727         test_array_oset_LDADD.
56728         * modules/avltree-list-tests (Makefile.am): New variable
56729         test_avltree_list_LDADD.
56730         * modules/avltree-oset-tests (Makefile.am): New variable
56731         test_avltree_oset_LDADD.
56732         * modules/avltreehash-list-tests (Makefile.am): New variable
56733         test_avltreehash_list_LDADD.
56734         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56735         test_canonicalize_lgpl_LDADD.
56736         * modules/carray-list-tests (Makefile.am): New variable
56737         test_carray_list_LDADD.
56738         * modules/dirname-tests (Makefile.am): New variable
56739         test_dirname_LDADD.
56740         * modules/linked-list-tests (Makefile.am): New variable
56741         test_linked_list_LDADD.
56742         * modules/linkedhash-list-tests (Makefile.am): New variable
56743         test_linkedhash_list_LDADD.
56744         * modules/rbtree-list-tests (Makefile.am): New variable
56745         test_rbtree_list_LDADD.
56746         * modules/rbtree-oset-tests (Makefile.am): New variable
56747         test_rbtree_oset_LDADD.
56748         * modules/rbtreehash-list-tests (Makefile.am): New variable
56749         test_rbtreehash_list_LDADD.
56750         * modules/xvasprintf-tests (Makefile.am): New variable
56751         test_xvasprintf_LDADD.
56752         Reported by Eric Blake.
56753
56754 2007-04-03  Eric Blake  <ebb9@byu.net>
56755
56756         * DEPENDENCIES: Weaken m4 requirements.
56757
56758 2007-04-03  Bruno Haible  <bruno@clisp.org>
56759
56760         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56761         * modules/isnanl-tests (configure.ac): Likewise.
56762
56763 2007-04-03  Ben Pfaff  <blp@gnu.org>
56764
56765         * modules/iconv_open: Add $(srcdir)/ to source directory
56766         references in Makefile fragments that call gperf, to fix VPATH
56767         builds.
56768
56769 2007-04-03  Bruno Haible  <bruno@clisp.org>
56770
56771         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56772         * lib/ldexpl.c: Undo last change.
56773
56774 2007-04-03  Bruno Haible  <bruno@clisp.org>
56775
56776         * modules/printf-frexpl (Depends-on): Undo last change.
56777         (Files): Add m4/ldexpl.m4.
56778
56779 2007-04-03  Bruno Haible  <bruno@clisp.org>
56780
56781         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56782         * modules/isnanl (Link): New section.
56783
56784         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56785         * modules/frexp (Link): New section.
56786
56787         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56788         * modules/frexpl (Link): New section.
56789
56790         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56791         * modules/ldexpl (Link): New section.
56792
56793 2007-04-03  Bruno Haible  <bruno@clisp.org>
56794
56795         * modules/TEMPLATE-EXTENDED: New file.
56796         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56797
56798 2007-04-03  Bruno Haible  <bruno@clisp.org>
56799
56800         * DEPENDENCIES: New file.
56801         Suggested by Simon Josefsson.
56802
56803 2007-04-03  Bruno Haible  <bruno@clisp.org>
56804
56805         * doc/gnulib.texi: Escape @.
56806
56807 2007-04-03  James Youngman  <jay@gnu.org>
56808         and Paul Eggert  <eggert@cs.ucla.edu>
56809
56810         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56811         birthtime on all systems that have birthtime, not just those which
56812         use st_birthtimensec rather than st_birthtim.  Putting zero in
56813         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56814         that the birth time is not available for files on an NFS mount.
56815
56816 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56817
56818         * modules/memxor: Move back from crypto/, suggested by Bruno.
56819         * modules/crypto/hmac-sha1: Fix memxor dependency.
56820
56821         * modules/crypto/gc: Moved from ../.
56822
56823 2007-04-02  Eric Blake  <ebb9@byu.net>
56824
56825         * lib/ldexpl.c (includes): Avoid libm.
56826
56827         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56828
56829 2007-04-02  Bruno Haible  <bruno@clisp.org>
56830
56831         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56832         on IRIX.
56833
56834 2007-04-02  Bruno Haible  <bruno@clisp.org>
56835
56836         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56837         x86 or x86_64 platforms running MacOS X.
56838         Reported by Ryan Schmidt <@ryandesign.com>.
56839
56840 2007-04-02  Bruno Haible  <bruno@clisp.org>
56841
56842         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56843         i386.
56844
56845 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56846
56847         * modules/crypto/arcfour: Moved from ../.
56848         * modules/crypto/arcfour-tests: Moved from ../.
56849         * modules/crypto/arctwo: Moved from ../.
56850         * modules/crypto/arctwo-tests: Moved from ../.
56851         * modules/crypto/des: Moved from ../.
56852         * modules/crypto/des-tests: Moved from ../.
56853         * modules/crypto/gc-arcfour: Moved from ../.
56854         * modules/crypto/gc-arcfour-tests: Moved from ../.
56855         * modules/crypto/gc-arctwo: Moved from ../.
56856         * modules/crypto/gc-arctwo-tests: Moved from ../.
56857         * modules/crypto/gc-des: Moved from ../.
56858         * modules/crypto/gc-des-tests: Moved from ../.
56859         * modules/crypto/gc-hmac-md5: Moved from ../.
56860         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56861         * modules/crypto/gc-hmac-sha1: Moved from ../.
56862         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56863         * modules/crypto/gc-md2: Moved from ../.
56864         * modules/crypto/gc-md2-tests: Moved from ../.
56865         * modules/crypto/gc-md4: Moved from ../.
56866         * modules/crypto/gc-md4-tests: Moved from ../.
56867         * modules/crypto/gc-md5: Moved from ../.
56868         * modules/crypto/gc-md5-tests: Moved from ../.
56869         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56870         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56871         * modules/crypto/gc-random: Moved from ../.
56872         * modules/crypto/gc-rijndael: Moved from ../.
56873         * modules/crypto/gc-rijndael-tests: Moved from ../.
56874         * modules/crypto/gc-sha1: Moved from ../.
56875         * modules/crypto/gc-sha1-tests: Moved from ../.
56876         * modules/crypto/gc-tests: Moved from ../.
56877         * modules/crypto/hmac-md5: Moved from ../.
56878         * modules/crypto/hmac-md5-tests: Moved from ../.
56879         * modules/crypto/hmac-sha1: Moved from ../.
56880         * modules/crypto/hmac-sha1-tests: Moved from ../.
56881         * modules/crypto/md2: Moved from ../.
56882         * modules/crypto/md2-tests: Moved from ../.
56883         * modules/crypto/md4: Moved from ../.
56884         * modules/crypto/md4-tests: Moved from ../.
56885         * modules/crypto/md5: Moved from ../.
56886         * modules/crypto/md5-tests: Moved from ../.
56887         * modules/crypto/memxor: Moved from ../.
56888         * modules/crypto/rijndael: Moved from ../.
56889         * modules/crypto/rijndael-tests: Moved from ../.
56890         * modules/crypto/sha1: Moved from ../.
56891
56892 2007-03-30  James Youngman  <jay@gnu.org>
56893
56894         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56895         rename() to change the ctime of a file (because ctime is unaffected
56896         by rename on jfs2 on AIX 5.1).
56897         (main): Start by doing cleanup, in case a previous run failed leaving
56898         test files behind.
56899
56900 2007-03-31  Bruno Haible  <bruno@clisp.org>
56901
56902         Support old proprietary implementations of iconv.
56903         * modules/iconv_open: New file.
56904         * lib/iconv_.h: New file.
56905         * m4/iconv_h.m4: New file.
56906         * lib/iconv_open.c: New file.
56907         * lib/iconv_open-aix.gperf: New file.
56908         * lib/iconv_open-hpux.gperf: New file.
56909         * lib/iconv_open-irix.gperf: New file.
56910         * lib/iconv_open-osf.gperf: New file.
56911         * m4/iconv_open.m4: New file.
56912         * modules/linebreak (Depends-on): Add iconv_open.
56913         * modules/striconv (Depends-on): Likewise.
56914         * modules/striconveh (Depends-on): Likewise.
56915         * modules/unicodeio (Depends-on): Likewise.
56916         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56917         (iconv_t)(-1).
56918         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56919         conversion if cd is (iconv_t)(-1).
56920         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56921         is not possible.
56922
56923 2007-03-31  Bruno Haible  <bruno@clisp.org>
56924
56925         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56926         work on Solaris either. Protect also second use of "autodetect_jp".
56927
56928 2007-03-31  Bruno Haible  <bruno@clisp.org>
56929
56930         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56931         the function is not present.
56932
56933 2007-03-31  Bruno Haible  <bruno@clisp.org>
56934
56935         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56936         the function is not present.
56937
56938 2007-03-31  Bruno Haible  <bruno@clisp.org>
56939
56940         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56941         a bug in HP-UX iconv_open().
56942
56943 2007-03-31  Bruno Haible  <bruno@clisp.org>
56944
56945         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56946         (Mathematics <math.h>): New section, add fpieee.
56947         (Input/output <stdio.h>): Add fseterr.
56948         (Mathematics <math.h>): New section, add printf-frexp.
56949         (Container data structures): Add sublist.
56950         (Core language properties): Add fpucw, inline.
56951         (Functions for greatest-width integer types <inttypes.h>): Add
56952         imaxabs, imaxdiv, inttypes.
56953         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56954         isnanl-nolibm, ldexp.
56955         (Mathematics <math.h>): New section, add printf-frexpl.
56956         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56957         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56958         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56959         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56960         (Unicode string functions): Add unistr/u*-mbtoucr.
56961         (Java): Add javacomp-script, javaexec-script.
56962         (C#): Add csharpcomp-script, csharpexec-script.
56963         (Support for building libraries and executables): Add havelib,
56964         relocatable-*.
56965         (Support for maintaining and releasing projects): Renamed from
56966         'Support for maintaining and release projects'. Add announce-gen.
56967
56968 2007-03-31  Bruno Haible  <bruno@clisp.org>
56969
56970         * README: Talk primarily about git.
56971         (git and CVS): Renamed from CVS.
56972         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56973         gnulib is available through git.
56974         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56975
56976 2007-03-30  Bruno Haible  <bruno@clisp.org>
56977
56978         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56979         * lib/poll_.h: Likewise.
56980         * lib/stat_.h: Likewise.
56981         * lib/sys_time_.h: Likewise.
56982         * lib/sysexit_.h: Likewise.
56983         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56984         * lib/stdbool_.h: Likewise.
56985         * lib/byteswap_.h: Add double-inclusion guard.
56986
56987 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56988
56989         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56990
56991 2007-03-30  Karl Berry  <karl@gnu.org>
56992
56993         * config/srclist-update: double space after USA in the license
56994         substitution, since that's how it's usually (?) written.
56995
56996 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56997
56998         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56999         reported by Bruno Haible.
57000
57001 2007-03-29  Bruno Haible  <bruno@clisp.org>
57002
57003         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57004         a bug in AIX iconv().
57005
57006 2007-03-29  Bruno Haible  <bruno@clisp.org>
57007
57008         * modules/ldexpl-tests: New file.
57009         * tests/test-ldexpl.c: New file.
57010
57011 2007-03-29  Bruno Haible  <bruno@clisp.org>
57012
57013         * lib/ldexpl.c: Include fpucw.h.
57014         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57015         multiplication.
57016         * modules/ldexpl (Depends-on): Add fpucw.
57017
57018 2007-03-29  Bruno Haible  <bruno@clisp.org>
57019
57020         * modules/ldexpl: New file.
57021         * m4/ldexpl.m4: New file.
57022         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57023         set.
57024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57025         REPLACE_LDEXPL.
57026         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57027         REPLACE_LDEXPL.
57028         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57029         gl_FUNC_LDEXPL_WORKS.
57030         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57031         * modules/mathl (Files): Remove lib/ldexpl.c.
57032         (Depends-on): Add ldexpl.
57033
57034 2007-03-29  Bruno Haible  <bruno@clisp.org>
57035
57036         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57037
57038 2007-03-29  Bruno Haible  <bruno@clisp.org>
57039
57040         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57041         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57042         and possibly also HP-UX.
57043         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57044         work on AIX, IRIX, HP-UX, OSF/1.
57045         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57046         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57047         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57048         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57049         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57050         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57051
57052 2007-03-29  Bruno Haible  <bruno@clisp.org>
57053
57054         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57055
57056 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57057
57058         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57059         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57060
57061 2007-03-29  Eric Blake  <ebb9@byu.net>
57062
57063         * lib/acl-internal.h: Remove redundant include.
57064         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57065         Cygwin when a file is locked.
57066
57067 2007-03-29  Bruno Haible  <bruno@clisp.org>
57068
57069         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57070         file.
57071         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57072
57073 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57074
57075         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57076         try to remove a parent directory if the child couldn't be removed
57077         (except for the first rmdir, which could fail because the child
57078         doesn't exist).  Problem reported by Jeff Blaine in
57079         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57080
57081 2007-03-28  Bruno Haible  <bruno@clisp.org>
57082
57083         * lib/striconveh.c (utf8conv_carefully): New function.
57084         (mem_cd_iconveh_internal): Invoke it.
57085
57086 2007-03-28  Bruno Haible  <bruno@clisp.org>
57087
57088         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57089         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57090         input.
57091         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57092         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57093         unistr/u8-uctomb.
57094
57095 2007-03-28  Bruno Haible  <bruno@clisp.org>
57096
57097         * modules/unistr/u8-mbtoucr: New file.
57098         * lib/unistr/u8-mbtoucr.c: New file.
57099         * modules/unistr/u16-mbtoucr: New file.
57100         * lib/unistr/u16-mbtoucr.c: New file.
57101         * modules/unistr/u16-mbtoucr: New file.
57102         * lib/unistr/u16-mbtoucr.c: New file.
57103         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57104
57105 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57106             Bruno Haible  <bruno@clisp.org>
57107
57108         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57109         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57110         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57111
57112         * m4/stdio_h.m4: Add stubs for vasprintf too.
57113
57114         * modules/stdio: Support vasprintf in sed command.
57115
57116         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57117         vasprintf.h.  Add stdio module indicator.
57118
57119         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57120         vasprintf.h.
57121
57122         * lib/vasprintf.h: File removed.
57123
57124         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57125         * lib/vasprintf.c: Ditto.
57126         * lib/xvasprintf.c: Ditto.
57127         * tests/test-vasprintf-posix.c: Ditto.
57128         * tests/test-vasprintf.c: Ditto.
57129
57130 2007-03-27  Bruno Haible  <bruno@clisp.org>
57131
57132         Make vasnprintf multithread-safe.
57133         * lib/vasnprintf.c (decimal_point_char): New function.
57134         (VASNPRINTF): Use it.
57135         Suggested by Simon Josefsson.
57136
57137 2007-03-27  Eric Blake  <ebb9@byu.net>
57138
57139         Support sub-second birthtime on cygwin.
57140         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57141         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57142         (get_stat_birthtime): Also work with st_birthtim.
57143
57144 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57145
57146         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57147         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57148         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57149         (get_stat_birthtime_ns): Simplify compile-time tests.
57150         (get_stat_birthtime): Change the API to look like
57151         get_stat_mtime etc., except return a negative tv_nsec on error.
57152         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57153         Don't check for "spare" fields.
57154         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57155         or for struct stat.st_birthtime, as these tests aren't used.
57156         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57157
57158 2007-03-27  Bruno Haible  <bruno@clisp.org>
57159
57160         * lib/stat-time.h: Include <sys/stat.h>.
57161
57162 2007-03-27  James Youngman  <jay@gnu.org>
57163
57164         * lib/stat-time.h (get_stat_birthtime): New function for
57165           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57166         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57167           and its variants.
57168         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57169         * modules/stat-time-test: New file.
57170         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57171
57172 2007-03-26  Bruno Haible  <bruno@clisp.org>
57173
57174         Better support of signalling NaNs.
57175         * lib/atanl.c: Include isnanl.h.
57176         (atanl): Perform test for NaN at the beginning of the function and
57177         through a call to isnanl.
57178         * lib/cosl.c: Include isnanl.h.
57179         (cosl): Perform test for NaN at the beginning of the function and
57180         through a call to isnanl.
57181         * lib/ldexpl.c: Include isnanl.h.
57182         (ldexpl): Perform test for NaN through a call to isnanl.
57183         * lib/logl.c: Include isnanl.h.
57184         (logl): Perform test for NaN at the beginning of the function and
57185         through a call to isnanl.
57186         * lib/sinl.c: Include isnanl.h.
57187         (sinl): Perform test for NaN at the beginning of the function and
57188         through a call to isnanl.
57189         * lib/sqrtl.c: Include isnanl.h.
57190         (sqrtl): Perform test for NaN at the beginning of the function and
57191         through a call to isnanl.
57192         * lib/tanl.c: Include isnanl.h.
57193         (tanl): Perform test for NaN at the beginning of the function and
57194         through a call to isnanl.
57195         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57196         * modules/mathl (Depends-on): Add isnanl.
57197
57198 2007-03-26  Eric Blake  <ebb9@byu.net>
57199
57200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57201         regression in logic sense of previous patch.
57202
57203 2007-03-26  Bruno Haible  <bruno@clisp.org>
57204
57205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57206         unportable shell command "if ! ...".
57207         Reported by Ralf Wildenhues.
57208
57209 2007-03-25  Bruno Haible  <bruno@clisp.org>
57210
57211         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57212         <sysexits.h> file, and only add EX_CONFIG.
57213         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57214         absolute file name and whether it is sufficient. Substitute also
57215         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57216         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57217         ABSOLUTE_SYSEXITS_H into sysexits.h.
57218
57219 2007-03-25  Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57222         hints is NULL.
57223
57224 2007-03-25  Bruno Haible  <bruno@clisp.org>
57225
57226         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57227         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57228
57229 2007-03-25  Bruno Haible  <bruno@clisp.org>
57230
57231         * lib/vasnprintf.c: Include langinfo.h.
57232         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57233         multithread-safe.
57234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57235         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57236         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57237         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57238         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57239         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57240         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57241         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57242         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57243         Reported by Simon Josefsson.
57244
57245 2007-03-25  Bruno Haible  <bruno@clisp.org>
57246
57247         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57248         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57249         * modules/vasnprintf (Depends-on): Add stdint.
57250
57251 2007-03-25  Bruno Haible  <bruno@clisp.org>
57252
57253         * modules/fpieee: New file.
57254         * m4/fpieee.m4: New file.
57255         * modules/isnan-nolibm (Depends-on): Add fpieee.
57256         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57257         * modules/isnanl (Depends-on): Add fpieee.
57258
57259 2007-03-25  Bruno Haible  <bruno@clisp.org>
57260
57261         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57262
57263 2007-03-25  Bruno Haible  <bruno@clisp.org>
57264
57265         Avoid test failures on IRIX 6.5.
57266         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57267         (main): Use it.
57268         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57269         macros.
57270         (main): Use them.
57271
57272 2007-03-25  Bruno Haible  <bruno@clisp.org>
57273
57274         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57275         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57276         exists but doesn't work.
57277         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57278         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57280         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57281         math.h.
57282
57283 2007-03-25  Bruno Haible  <bruno@clisp.org>
57284
57285         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57286         returns inf. Needed on IRIX 6.5.
57287
57288 2007-03-25  Bruno Haible  <bruno@clisp.org>
57289
57290         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57291         (main): Use isnanl instead of x != x idiom.
57292         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57293
57294         * tests/test-frexp.c: Include isnan.h.
57295         (main): Use isnan instead of x != x idiom.
57296         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57297
57298 2007-03-25  Bruno Haible  <bruno@clisp.org>
57299
57300         * tests/test-frexp.c (NaN): New function/macro.
57301         (main): Use it instead of 0.0 / 0.0.
57302         * tests/test-isnan.c (NaN): New function/macro.
57303         (main): Use it instead of 0.0 / 0.0.
57304         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57305         (test_function): Use it instead of 0.0 / 0.0.
57306         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57307         (test_function): Use it instead of 0.0 / 0.0.
57308         * tests/test-snprintf-posix.h (NaN): New function/macro.
57309         (test_function): Use it instead of 0.0 / 0.0.
57310         * tests/test-sprintf-posix.h (NaN): New function/macro.
57311         (test_function): Use it instead of 0.0 / 0.0.
57312         * tests/test-fprintf-posix.h (NaN): New function/macro.
57313         (test_function): Use it instead of 0.0 / 0.0.
57314         * tests/test-printf-posix.h (NaN): New function/macro.
57315         (test_function): Use it instead of 0.0 / 0.0.
57316
57317         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57318
57319 2007-03-25  Bruno Haible  <bruno@clisp.org>
57320
57321         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57322
57323 2007-03-25  Bruno Haible  <bruno@clisp.org>
57324
57325         * lib/regexec.c (merge_state_with_log): Make static.
57326
57327 2007-03-25  Bruno Haible  <bruno@clisp.org>
57328
57329         * lib/trigl.c (kernel_rem_pio2): Make static.
57330
57331 2007-03-25  Bruno Haible  <bruno@clisp.org>
57332
57333         * lib/sincosl.c (sincosl_table): Make static.
57334
57335 2007-03-25  Bruno Haible  <bruno@clisp.org>
57336
57337         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57338         if the compiler does not support C99.
57339
57340 2007-03-25  Bruno Haible  <bruno@clisp.org>
57341
57342         * modules/time (Makefile.am): Ensure all rule action lines start with a
57343         tab.
57344
57345 2007-03-24  Bruno Haible  <bruno@clisp.org>
57346
57347         * modules/tsearch-tests: New file.
57348         * tests/test-tsearch.sh: New file.
57349         * tests/test-tsearch.c: New file, mostly copied from glibc.
57350
57351         * modules/search-tests: New file.
57352         * tests/test-search.c: New file.
57353
57354         * modules/search: New file.
57355         * lib/search_.h: New file, incorporating lib/tsearch.h.
57356         * m4/search_h.m4: New file.
57357         * lib/tsearch.h: Remove file.
57358         * lib/tsearch.c: Include search.h instead of tsearch.h.
57359         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57360         HAVE_TSEARCH.
57361         * modules/tsearch (Files): Remove lib/tsearch.h.
57362         (Depends-on): Add search.
57363         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57364         (Include): Change tsearch.h into search.h.
57365
57366 2007-03-24  Bruno Haible  <bruno@clisp.org>
57367
57368         * modules/fpucw: New file.
57369         * lib/fpucw.h: New file.
57370         * lib/frexp.c: Include fpucw.h.
57371         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57372         (FUNC): Use them.
57373         * lib/printf-frexp.c: Include fpucw.h.
57374         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57375         (FUNC): Use them.
57376         * lib/vasnprintf.c: Include fpucw.h.
57377         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57378         'long double' calculations.
57379         * tests/test-frexpl.c: Include fpucw.h.
57380         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57381         * tests/test-printf-frexpl.c: Include fpucw.h.
57382         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57383         * modules/frexpl (Depends-on): Add fpucw.
57384         * modules/printf-frexpl (Depends-on): Likewise.
57385         * modules/fprintf-posix (Depends-on): Likewise.
57386         * modules/snprintf-posix (Depends-on): Likewise.
57387         * modules/sprintf-posix (Depends-on): Likewise.
57388         * modules/vasnprintf-posix (Depends-on): Likewise.
57389         * modules/vasprintf-posix (Depends-on): Likewise.
57390         * modules/vfprintf-posix (Depends-on): Likewise.
57391         * modules/vsnprintf-posix (Depends-on): Likewise.
57392         * modules/vsprintf-posix (Depends-on): Likewise.
57393         * modules/frexpl-tests (Depends-on): Likewise.
57394         * modules/printf-frexpl-tests (Depends-on): Likewise.
57395
57396 2007-03-24  Bruno Haible  <bruno@clisp.org>
57397
57398         * lib/float+.h: New file.
57399         * lib/isnan.c: Include float+.h.
57400         (SIZE): New macro.
57401         (FUNC): Compare only SIZE bytes of the value.
57402         * lib/vasnprintf.c: Include float+.h.
57403         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57404         SIZEOF_LDBL or SIZEOF_DBL bytes.
57405         * modules/isnan-nolibm (Files): Add lib/float+.h.
57406         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57407         * modules/isnanl (Files): Add lib/float+.h.
57408         * modules/vasnprintf (Files): Add lib/float+.h.
57409
57410 2007-03-24  Bruno Haible  <bruno@clisp.org>
57411
57412         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57413         include isnanl-nolibm.h.
57414
57415 2007-03-24  Bruno Haible  <bruno@clisp.org>
57416
57417         * tests/test-read-file.c (main): Don't produce spurious output for
57418         expected situations. Make the test fail if it encountered unexpected
57419         results.
57420
57421 2007-03-24  Bruno Haible  <bruno@clisp.org>
57422
57423         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57424         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57425
57426 2007-03-24  Bruno Haible  <bruno@clisp.org>
57427
57428         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57429
57430 2007-03-24  Bruno Haible  <bruno@clisp.org>
57431
57432         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57433         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57434
57435         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57436         * modules/utf8-ucs4: Turn into a symbolic link to module
57437         unistr/u8-mbtouc.
57438
57439         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57440         utf8-ucs4-unsafe.
57441         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57442         unistr/u8-mbtouc-unsafe.
57443
57444         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57445         * modules/utf16-ucs4: Turn into a symbolic link to module
57446         unistr/u16-mbtouc.
57447
57448         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57449         utf16-ucs4-unsafe.
57450         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57451         unistr/u16-mbtouc-unsafe.
57452
57453         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57454         * modules/ucs4-utf8: Turn into a symbolic link to module
57455         unistr/u8-ubtomb.
57456
57457         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57458         * modules/ucs4-utf16: Turn into a symbolic link to module
57459         unistr/u16-ubtomb.
57460
57461 2007-03-24  Bruno Haible  <bruno@clisp.org>
57462
57463         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57464         Enable the function only if HAVE_INLINE.
57465         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57466         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57467         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57468         Enable the function only if HAVE_INLINE.
57469         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57470         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57471         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57472         Enable the function only if HAVE_INLINE.
57473         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57474         Enable the function only if HAVE_INLINE.
57475         * modules/utf8-ucs4: Update.
57476         * modules/utf8-ucs4-unsafe: Update.
57477         * modules/utf16-ucs4: Update.
57478         * modules/utf16-ucs4-unsafe: Update.
57479         * modules/ucs4-utf8: Update.
57480         * modules/ucs4-utf16: Update.
57481
57482 2007-03-24  Bruno Haible  <bruno@clisp.org>
57483
57484         * lib/utf8-ucs4.h: Remove file.
57485         * lib/utf8-ucs4-unsafe.h: Remove file.
57486         * lib/utf16-ucs4.h: Remove file.
57487         * lib/utf16-ucs4-unsafe.h: Remove file.
57488         * lib/ucs4-utf8.h: Remove file.
57489         * lib/ucs4-utf16.h: Remove file.
57490         * lib/unistr.h: Include their previous contents.
57491         * m4/utf-ucs4.m4: Remove file.
57492         * m4/ucs4-utf.m4: Remove file.
57493         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57494         (Depends-on): Add unistr/base.
57495         (configure.ac): Remove gl_UTF_UCS4.
57496         (Makefile.am): Update.
57497         (Include): Change to unistr.h.
57498         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57499         (Depends-on): Add unistr/base.
57500         (configure.ac): Remove gl_UTF_UCS4.
57501         (Makefile.am): Update.
57502         (Include): Change to unistr.h.
57503         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57504         (Depends-on): Add unistr/base.
57505         (configure.ac): Remove gl_UTF_UCS4.
57506         (Makefile.am): Update.
57507         (Include): Change to unistr.h.
57508         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57509         (Depends-on): Add unistr/base.
57510         (configure.ac): Remove gl_UTF_UCS4.
57511         (Makefile.am): Update.
57512         (Include): Change to unistr.h.
57513         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57514         (Depends-on): Add unistr/base.
57515         (configure.ac): Remove gl_UCS4_UTF.
57516         (Makefile.am): Update.
57517         (Include): Change to unistr.h.
57518         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57519         (Depends-on): Add unistr/base.
57520         (configure.ac): Remove gl_UCS4_UTF.
57521         (Makefile.am): Update.
57522         (Include): Change to unistr.h.
57523         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57524         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57525         utf8-ucs4-unsafe.h.
57526         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57527         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57528         utf16-ucs4-unsafe.h.
57529         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57530         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57531         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57532         * lib/unistr/u8-strchr.c: Likewise.
57533         * lib/unistr/u8-strrchr.c: Likewise.
57534         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57535         * lib/unistr/u16-strchr.c: Likewise.
57536         * lib/unistr/u16-strrchr.c: Likewise.
57537         * lib/striconveh.c: Update.
57538         * lib/linebreak.c: Update.
57539
57540 2007-03-24  Bruno Haible  <bruno@clisp.org>
57541
57542         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57543         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57544
57545 2007-03-22  Bruno Haible  <bruno@clisp.org>
57546
57547         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57548
57549 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57550
57551         * MODULES.html.sh (File system functions): New module write-any-file.
57552         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57553         * m4/write-any-file.m4: New files.
57554
57555 2007-03-23  Eric Blake  <ebb9@byu.net>
57556
57557         * gnulib-tool: Rearrange space-tab sequences, since some editors
57558         like to eat them.
57559
57560 2007-03-23  Eric Blake  <ebb9@byu.net>
57561
57562         * lib/version-etc.c (version_etc_va): Update license wording to
57563         be more concise.  Recommended by Richard Stallman.
57564
57565 2007-03-22  Bruno Haible  <bruno@clisp.org>
57566
57567         * lib/poll.c (MSG_PEEK): New fallback definition.
57568
57569 2007-03-22  Bruno Haible  <bruno@clisp.org>
57570
57571         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57572         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57573         (main): Update.
57574         Fixes a compilation error on BeOS.
57575
57576 2007-03-22  Bruno Haible  <bruno@clisp.org>
57577
57578         * modules/frexpl-tests: New file.
57579         * tests/test-frexpl.c: New file.
57580
57581         * modules/frexpl: New file.
57582         * m4/frexpl.m4: New file.
57583         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57584         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57586         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57587         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57588         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57589
57590 2007-03-22  Bruno Haible  <bruno@clisp.org>
57591
57592         * lib/frexpl.c: Share code with lib/frexp.c.
57593         * modules/mathl (Files): Add lib/frexp.c.
57594         (Depends-on): Add isnanl-nolibm.
57595
57596 2007-03-22  Bruno Haible  <bruno@clisp.org>
57597
57598         * modules/printf-frexp (Files): Add m4/frexp.m4.
57599         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57600         only if the found frexp function actually works.
57601
57602 2007-03-22  Bruno Haible  <bruno@clisp.org>
57603
57604         * lib/frexp.c: Remove older implementation that uses divisions.
57605
57606 2007-03-21  Bruno Haible  <bruno@clisp.org>
57607
57608         * modules/frexp-tests: New file.
57609         * tests/test-frexp.c: New file.
57610
57611         * modules/frexp: New file.
57612         * lib/frexp.c: New file.
57613         * m4/frexp.m4: New file.
57614         * lib/math_.h (frexp): New declaration.
57615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57616         REPLACE_FREXP.
57617         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57618
57619 2007-03-21  Bruno Haible  <bruno@clisp.org>
57620
57621         * modules/isnanl-tests: New file.
57622         * tests/test-isnanl.c: New file.
57623
57624         * modules/isnanl: New file.
57625         * lib/isnanl.h: New file.
57626         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57627         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57628         gl_FUNC_ISNANL_WORKS.
57629         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57630         New macros.
57631
57632 2007-03-21  Bruno Haible  <bruno@clisp.org>
57633
57634         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57635         lib/isnanl.h.
57636         (Include): Update.
57637         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57638         * lib/vasnprintf.c: Update.
57639         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57640         tests/test-isnanl.h, remove tests/test-isnanl.c.
57641         (Makefile.am): Update.
57642         * tests/test-isnanl-nolibm.c: New file.
57643         * tests/test-isnanl.h: New file.
57644         * tests/test-isnanl.c: Remove file.
57645
57646 2007-03-21  Jim Meyering  <jim@meyering.net>
57647
57648         When trying to open ".", treat ESTALE like EACCES.
57649         * lib/savewd.c (savewd_save): Resort to forking not just upon
57650         failure with EACCES, but also when errno is ESTALE.
57651
57652 2007-03-20  Bruno Haible  <bruno@clisp.org>
57653
57654         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57655         Needed on AIX 5.1. Reported by Matthew Woehlke.
57656
57657 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57658
57659         Suggestions by Bruno Haible:
57660         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57661         our own.
57662         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57663         * modules/acl (Depends-on): Add gettext.
57664
57665 2007-03-19  Bruno Haible  <bruno@clisp.org>
57666
57667         * modules/iconvme: Remove file.
57668         * lib/iconvme.h: Remove file.
57669         * lib/iconvme.c: Remove file.
57670         * m4/iconvme.m4: Remove file.
57671
57672 2007-03-19  Bruno Haible  <bruno@clisp.org>
57673
57674         * doc/relocatable-maint.texi: Break long shell script line.
57675         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57676
57677 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57678
57679         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57680         handle file_has_acl.
57681         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57682         * lib/acl.c: Move header inclusions and related macro defns into
57683         lib/acl-internal.h.
57684         (S_ISLNK): Remove defn, since that's now done for us.
57685         (file_has_acl): Move to lib/file-has-acl.c.
57686         Call acl_trivial if available.  This is the crucial part of the fix.
57687         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57688         shared within the library.  Rewrite a bit, partly to make it compatible
57689         with the GNU coding style.
57690         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57691         Remove unnecessary double-quotes.
57692         Don't test for acl_to_text; the build will catch that.
57693         Replace acl_entries if it doesn't exist and it is needed.
57694         Check for -lsec and acl_trivial (as used on Solaris 10).
57695         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57696         lib/file-has-acl.c.
57697         (Depends-on): Add sys_stat, for S_ISLNK.
57698
57699 2007-03-19  Ben Pfaff  <blp@gnu.org>
57700
57701         * doc/gnulib.texi: Fix typos.
57702         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57703
57704 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57705
57706         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57707         If size is zero here, buf must be zero.
57708
57709 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57710
57711         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57712         <bruno@clisp.org>.
57713
57714 2007-03-18  Bruno Haible  <bruno@clisp.org>
57715
57716         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57717         Suggested by Eric Blake.
57718
57719 2007-03-18  Ben Pfaff  <blp@gnu.org>
57720
57721         * doc/relocatable.texi: Recommend using as prefix a directory
57722         that does not exist and will never be created.  Based on
57723         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57724         and others.
57725
57726 2007-03-17  Bruno Haible  <bruno@clisp.org>
57727
57728         * lib/fchownat.c: Include lchown.h.
57729
57730 2007-03-17  Bruno Haible  <bruno@clisp.org>
57731
57732         Fix endless loop when the given allocated size was > INT_MAX.
57733         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57734         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57735         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57736         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57737         * lib/sprintf.c (sprintf): Likewise.
57738
57739 2007-03-17  Bruno Haible  <bruno@clisp.org>
57740
57741         * tests/test-argp-2.sh (func_compare): Output a context diff.
57742
57743 2007-03-17  Bruno Haible  <bruno@clisp.org>
57744
57745         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57746         locale's decimal-point character.
57747
57748 2007-03-17  Bruno Haible  <bruno@clisp.org>
57749
57750         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57751         before comparing it. Needed because on some platforms (e.g. x86) a
57752         'long double' occupies less bytes than sizeof (long double).
57753
57754 2007-03-17  Bruno Haible  <bruno@clisp.org>
57755
57756         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57757         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57758         * tests/test-getaddrinfo.c (simple): Likewise.
57759         * tests/test-read-file.c (main): Likewise.
57760
57761 2007-03-17  Bruno Haible  <bruno@clisp.org>
57762
57763         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57764
57765 2007-03-17  Bruno Haible  <bruno@clisp.org>
57766
57767         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57768         unused variable.
57769
57770 2007-03-17  Bruno Haible  <bruno@clisp.org>
57771
57772         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57773         * tests/test-c-strncasecmp.c: Likewise.
57774
57775 2007-03-17  Bruno Haible  <bruno@clisp.org>
57776
57777         * modules/stdlib (Depends-on): Add unistd.
57778         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57779         Needed for MacOS X 10.3.
57780
57781 2007-03-17  Bruno Haible  <bruno@clisp.org>
57782
57783         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57784
57785 2007-03-17  Bruno Haible  <bruno@clisp.org>
57786
57787         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57788
57789 2007-03-17  Bruno Haible  <bruno@clisp.org>
57790
57791         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57792         to reflect files copied from gnulib (with or without modifications).
57793         Suggested by Jim Meyering.
57794
57795 2007-03-17  Eric Blake  <ebb9@byu.net>
57796
57797         * NEWS: Document stdlib change from 2007-02-18.
57798
57799 2007-03-17  Jim Meyering  <jim@meyering.net>
57800
57801         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57802         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57803         someone uses a name containing shell meta-characters.
57804         Reported by Alfred M. Szmidt.
57805
57806         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57807
57808 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57809
57810         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57811         and copy gettext configuration files only if configure.ac contains
57812         a use of AM_GNU_GETTEXT_VERSION.
57813
57814 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57815
57816         * build-aux/bootstrap (gnulib_name): New variable.
57817         (gnulib_tool_options): Use it.
57818
57819 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57820
57821         * tests/test-des.c: Use new namespace.
57822
57823 2007-03-15  Bruno Haible  <bruno@clisp.org>
57824
57825         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57826         Reported by James Youngman <jay@gnu.org>.
57827
57828 2007-03-15  Bruno Haible  <bruno@clisp.org>
57829
57830         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57831         declared prototype. Needed with cc on OSF/1 5.1.
57832
57833 2007-03-15  Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57836         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57837         (struct gl_list_implementation): Add dispose_fn argument to the
57838         'create_empty', 'create' methods.
57839         (struct gl_list_impl_base): Add field 'dispose_fn'.
57840         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57841         argument.
57842         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57843         dispose_fn argument.
57844         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57845         dispose_fn on the dropped values.
57846         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57847         dispose_fn argument.
57848         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57849         dropped values.
57850         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57851         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57852         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57853         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57854         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57855         argument.
57856         (gl_tree_list_free): Call dispose_fn on the dropped values.
57857         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57858         the dropped values.
57859         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57860         Add dispose_fn argument.
57861         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57862         Call dispose_fn on the dropped values.
57863         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57864         Add dispose_fn argument.
57865         (gl_sublist_create): Initialize the 'dispose_fn' field.
57866         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57867         * tests/test-array_list.c (main): Update.
57868         * tests/test-carray_list.c (main): Update.
57869         * tests/test-avltree_list.c (main): Update.
57870         * tests/test-rbtree_list.c (main): Update.
57871         * tests/test-avltreehash_list.c (main): Update.
57872         * tests/test-rbtreehash_list.c (main): Update.
57873         * tests/test-linked_list.c (main): Update.
57874         * tests/test-linkedhash_list.c (main): Update.
57875         * tests/test-array_oset.c (main): Update.
57876
57877 2007-03-15  Bruno Haible  <bruno@clisp.org>
57878
57879         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57880         (gl_oset_create_empty): Add dispose_fn argument.
57881         (struct gl_oset_implementation): Add dispose_fn argument to
57882         'create_empty' method.
57883         (struct gl_oset_impl_base): Add dispose_fn field.
57884         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57885         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57886         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57887         values.
57888         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57889         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57890         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57891         dropped value.
57892         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57893         dropped value.
57894         * tests/test-array_oset.c (main): Update.
57895         * tests/test-avltree_oset.c (main): Update.
57896         * tests/test-rbtree_oset.c (main): Update.
57897         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57898
57899 2007-03-13  Bruno Haible  <bruno@clisp.org>
57900
57901         * tests/test-stdbool.c (i): Update after last patch.
57902
57903 2007-03-12  Bruno Haible  <bruno@clisp.org>
57904
57905         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57906         the iswprint macro. Needed on Solaris 2.5.1.
57907
57908 2007-03-12  Bruno Haible  <bruno@clisp.org>
57909
57910         * tests/test-printf-frexp.c (main): Declare x as volatile.
57911
57912 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57913
57914         * doc/gnulib.texi (Build robot for gnulib): New section.
57915
57916 2007-03-12  Jim Meyering  <jim@meyering.net>
57917
57918         * build-aux/bootstrap: New file.
57919         * build-aux/bootstrap.conf: New file, from coreutils.
57920
57921 2007-03-11  Bruno Haible  <bruno@clisp.org>
57922
57923         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57924
57925 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57926
57927         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57928         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57929         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57930
57931 2007-03-11  Bruno Haible  <bruno@clisp.org>
57932
57933         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57934         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57935
57936 2007-03-11  Bruno Haible  <bruno@clisp.org>
57937
57938         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57939         formula. Needed for SunPRO C 5.0.
57940
57941 2007-03-11  Bruno Haible  <bruno@clisp.org>
57942
57943         * modules/long-options (Depends-on): Add getopt.
57944
57945 2007-03-11  Bruno Haible  <bruno@clisp.org>
57946
57947         * modules/modechange (Depends-on): Add stdbool.
57948
57949 2007-03-11  Bruno Haible  <bruno@clisp.org>
57950
57951         * modules/i-ring (Depends-on): Add stdbool.
57952
57953 2007-03-11  Bruno Haible  <bruno@clisp.org>
57954
57955         * modules/gc-des (Depends-on): Add stdbool.
57956
57957 2007-03-11  Bruno Haible  <bruno@clisp.org>
57958
57959         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57960
57961 2007-03-11  Bruno Haible  <bruno@clisp.org>
57962
57963         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57964
57965 2007-03-11  Bruno Haible  <bruno@clisp.org>
57966
57967         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57968
57969 2007-03-11  Bruno Haible  <bruno@clisp.org>
57970
57971         * lib/vasnprintf.c (sprintf): Undefine.
57972
57973 2007-03-11  Bruno Haible  <bruno@clisp.org>
57974
57975         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57976         initializers in SunPRO C and Compaq C compilers.
57977
57978 2007-03-11  Bruno Haible  <bruno@clisp.org>
57979
57980         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57981         decrementing code ANSI C compliant.
57982
57983 2007-03-11  Bruno Haible  <bruno@clisp.org>
57984
57985         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57986         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57987
57988 2007-03-11  Bruno Haible  <bruno@clisp.org>
57989
57990         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57991         <stdbool.h> substitute doesn't pass.
57992
57993 2007-03-11  Bruno Haible  <bruno@clisp.org>
57994
57995         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57996
57997 2007-03-11  Bruno Haible  <bruno@clisp.org>
57998
57999         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58000         script, for submission to autobuild.josefsson.org.
58001
58002 2007-03-10  Bruno Haible  <bruno@clisp.org>
58003
58004         * modules/canonicalize-lgpl-tests: New file.
58005         * tests/test-canonicalize-lgpl.sh: New file.
58006         * tests/test-canonicalize-lgpl.c: New file.
58007
58008         * modules/c-strcase-tests: New file.
58009         * tests/test-c-strcase.sh: New file.
58010         * tests/test-c-strcasecmp.c: New file.
58011         * tests/test-c-strncasecmp.c: New file.
58012
58013         * modules/atexit-tests: New file.
58014         * tests/test-atexit.sh: New file.
58015         * tests/test-atexit.c: New file.
58016
58017 2007-03-10  Bruno Haible  <bruno@clisp.org>
58018
58019         * tests/test-binary-io.sh: Use temporary filenames that are not so
58020         likely to clash with those of other tests (in a parallel make).
58021         * tests/test-binary-io.c: Likewise.
58022
58023 2007-03-10  Bruno Haible  <bruno@clisp.org>
58024
58025         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58026         fallback; use #error instead.
58027         Suggested by Simon Josefsson.
58028
58029 2007-03-10  Bruno Haible  <bruno@clisp.org>
58030
58031         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58032         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58033         first and the last.
58034
58035 2007-03-10  Bruno Haible  <bruno@clisp.org>
58036
58037         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58038
58039 2007-03-10  Bruno Haible  <bruno@clisp.org>
58040
58041         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58042         "make distcheck".
58043         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58044         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58045         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58046
58047 2007-03-10  Bruno Haible  <bruno@clisp.org>
58048
58049         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58050         variable.
58051         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58052         variable.
58053
58054 2007-03-09  Eric Blake  <ebb9@byu.net>
58055         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58056
58057         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58058         types are not being provided by gnulib.
58059         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58060         types are supported.
58061
58062 2007-03-10  Bruno Haible  <bruno@clisp.org>
58063
58064         * lib/stdio_.h (__attribute__): New macro.
58065         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58066         vsprintf): Specify __attribute__ __format__ for GCC.
58067         Suggested by Eric Blake.
58068
58069 2007-03-09  Bruno Haible  <bruno@clisp.org>
58070
58071         * modules/printf-posix-tests: New file.
58072         * tests/test-printf-posix.sh: New file.
58073         * tests/test-printf-posix.c: New file.
58074
58075         * modules/printf-posix: New file.
58076         * lib/printf.c: New file.
58077         * m4/printf-posix-rpl.m4: New file.
58078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58079         REPLACE_PRINTF.
58080         * lib/stdio_.h (printf): New declaration.
58081         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58082         ____strfmon____): New macros.
58083         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58084         REPLACE_PRINTF.
58085
58086 2007-03-09  Bruno Haible  <bruno@clisp.org>
58087
58088         * tests/test-vasnprintf-posix2.sh: New file.
58089         * tests/test-vasnprintf-posix2.c: New file.
58090         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58091         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58092         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58093
58094         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58095         a locale dependent decimal point, rather than always '.'.
58096
58097 2007-03-09  Eric Blake  <ebb9@byu.net>
58098
58099         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58100         spite of platforms like Tandem/NSK that define it to -1.
58101
58102 2007-03-08  Bruno Haible  <bruno@clisp.org>
58103
58104         * modules/vprintf-posix-tests: New file.
58105         * tests/test-vprintf-posix.sh: New file.
58106         * tests/test-vprintf-posix.c: New file.
58107         * tests/test-printf-posix.h: New file.
58108
58109         * modules/vprintf-posix: New file.
58110         * lib/vprintf.c: New file.
58111         * m4/vprintf-posix.m4: New file.
58112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58113         REPLACE_VPRINTF.
58114         * lib/stdio_.h (vprintf): New declaration.
58115         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58116         REPLACE_VPRINTF.
58117
58118 2007-03-08  Bruno Haible  <bruno@clisp.org>
58119
58120         * modules/fprintf-posix-tests: New file.
58121         * tests/test-fprintf-posix.sh: New file.
58122         * tests/test-fprintf-posix.c: New file.
58123
58124         * modules/fprintf-posix: New file.
58125         * lib/fprintf.c: New file.
58126         * m4/fprintf-posix.m4: New file.
58127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58128         REPLACE_FPRINTF.
58129         * lib/stdio_.h (fprintf): New declaration.
58130         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58131         REPLACE_FPRINTF.
58132
58133 2007-03-08  Bruno Haible  <bruno@clisp.org>
58134
58135         * modules/vfprintf-posix-tests: New file.
58136         * tests/test-vfprintf-posix.sh: New file.
58137         * tests/test-vfprintf-posix.c: New file.
58138         * tests/test-fprintf-posix.h: New file.
58139         * tests/test-fprintf-posix.out: New file.
58140
58141         * modules/vfprintf-posix: New file.
58142         * lib/vfprintf.c: New file.
58143         * m4/vfprintf-posix.m4: New file.
58144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58145         REPLACE_VFPRINTF.
58146         * lib/stdio_.h (vfprintf): New declaration.
58147         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58148         REPLACE_VFPRINTF.
58149
58150 2007-03-08  Bruno Haible  <bruno@clisp.org>
58151
58152         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58153
58154 2007-03-08  Bruno Haible  <bruno@clisp.org>
58155
58156         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58157         instead of 'expr' invocations.
58158         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58159         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58160         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58162         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58163         Suggested by Paul Eggert.
58164
58165 2007-03-08  Bruno Haible  <bruno@clisp.org>
58166
58167         * modules/fseterr-tests: New file.
58168         * tests/test-fseterr.c: New file.
58169
58170         * modules/fseterr: New file.
58171         * lib/fseterr.h: New file.
58172         * lib/fseterr.c: New file.
58173
58174 2007-03-08  Bruno Haible  <bruno@clisp.org>
58175
58176         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58177         * lib/getopt_.h: Likewise.
58178         * lib/mbswidth.h: Likewise.
58179         * lib/setenv.h: Likewise.
58180         * lib/vasnprintf.h: Likewise.
58181         * lib/vasprintf.h: Likewise.
58182         * lib/verror.h: Likewise.
58183         * lib/xsetenv.h: Likewise.
58184         * lib/xvasprintf.h: Likewise.
58185
58186 2007-03-08  Jim Meyering  <jim@meyering.net>
58187
58188         * users.txt: Add parted.
58189
58190         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58191
58192 2007-03-07  Bruno Haible  <bruno@clisp.org>
58193
58194         * m4/printf.m4: Make the shell script snippets copy&pastable.
58195
58196 2007-03-02  Bruno Haible  <bruno@clisp.org>
58197
58198         * lib/netinet_in_.h: New file.
58199         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58200         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58201         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58202         (Depends-on): Add absolute-header.
58203         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58204         into netinet/in.h.
58205
58206 2007-03-03  Bruno Haible  <bruno@clisp.org>
58207
58208         * lib/sys_select_.h: New file.
58209         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58210         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58211         * modules/sys_select (Files): Add lib/sys_select_.h.
58212         (Depends-on): Add absolute-header.
58213         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58214         into sys/select.h.
58215
58216 2007-03-02  Bruno Haible  <bruno@clisp.org>
58217
58218         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58219         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58220         values.
58221         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58222         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58223         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58224         * modules/sys_socket (Depends-on): Add absolute-header.
58225         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58226         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58227         (Include): Remove requirement of inclusion of <sys/types.h>.
58228
58229 2007-03-02  Bruno Haible  <bruno@clisp.org>
58230
58231         * lib/byteswap_.h (bswap_32): Fix formula.
58232
58233 2007-03-06  Bruno Haible  <bruno@clisp.org>
58234
58235         * modules/sprintf-posix-tests: New file.
58236         * tests/test-sprintf-posix.c: New file.
58237
58238         * modules/sprintf-posix: New file.
58239         * lib/sprintf.c: New file.
58240         * m4/sprintf-posix.m4: New file.
58241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58242         REPLACE_SPRINTF.
58243         * lib/stdio_.h (sprintf): New declaration.
58244         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58245         REPLACE_SPRINTF.
58246
58247 2007-03-06  Bruno Haible  <bruno@clisp.org>
58248
58249         * modules/vsprintf-posix-tests: New file.
58250         * tests/test-vsprintf-posix.c: New file.
58251         * tests/test-sprintf-posix.h: New file.
58252
58253         * modules/vsprintf-posix: New file.
58254         * lib/vsprintf.c: New file.
58255         * m4/vsprintf-posix.m4: New file.
58256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58257         REPLACE_VSPRINTF.
58258         * lib/stdio_.h (vsprintf): New declaration.
58259         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58260         REPLACE_VSPRINTF.
58261
58262 2007-03-06  Bruno Haible  <bruno@clisp.org>
58263
58264         * modules/vsnprintf (Depend-on): Remove minmax.
58265
58266 2007-03-06  Bruno Haible  <bruno@clisp.org>
58267
58268         * modules/snprintf-posix-tests: New file.
58269         * tests/test-snprintf-posix.c: New file.
58270
58271         * modules/snprintf-posix: New file.
58272         * m4/snprintf-posix.m4: New file.
58273         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58274         gl_FUNC_SNPRINTF.
58275         (gl_FUNC_SNPRINTF): Invoke it.
58276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58277         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58278         is set.
58279         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58280
58281 2007-03-06  Bruno Haible  <bruno@clisp.org>
58282
58283         * modules/vsnprintf-posix-tests: New file.
58284         * tests/test-vsnprintf-posix.c: New file.
58285         * tests/test-snprintf-posix.h: New file.
58286
58287         * modules/vsnprintf-posix: New file.
58288         * m4/vsnprintf-posix.m4: New file.
58289         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58290         gl_FUNC_VSNPRINTF.
58291         (gl_FUNC_VSNPRINTF): Invoke it.
58292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58293         * lib/stdio_.h (vsnprintf): Define as a replacement if
58294         REPLACE_VSNPRINTF is set.
58295         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58296
58297 2007-03-06  Bruno Haible  <bruno@clisp.org>
58298
58299         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58301
58302 2007-03-06  Bruno Haible  <bruno@clisp.org>
58303
58304         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58305         (asinl): Declare also if HAVE_DECL_ASINL is set.
58306         (atanl): Declare also if HAVE_DECL_ATANL is set.
58307         (ceill): Declare also if HAVE_DECL_CEILL is set.
58308         (cosl): Declare also if HAVE_DECL_COSL is set.
58309         (expl): Declare also if HAVE_DECL_EXPL is set.
58310         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58311         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58312         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58313         (logl): Declare also if HAVE_DECL_LOGL is set.
58314         (sinl): Declare also if HAVE_DECL_SINL is set.
58315         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58316         (tanl): Declare also if HAVE_DECL_TANL is set.
58317         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58319         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58320         declaration of frexpl, ldexpl.
58321         * modules/printf-frexpl (Depends-on): Add math.
58322         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58323
58324 2007-03-05  Bruno Haible  <bruno@clisp.org>
58325
58326         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58327         frexpl and ldexpl are declared.
58328         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58329
58330 2007-03-05  Bruno Haible  <bruno@clisp.org>
58331
58332         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58333         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58334
58335 2007-03-05  Bruno Haible  <bruno@clisp.org>
58336
58337         * lib/stdio_.h: Include <stddef.h>.
58338
58339 2007-03-05  Bruno Haible  <bruno@clisp.org>
58340
58341         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58342
58343 2007-03-05  Bruno Haible  <bruno@clisp.org>
58344
58345         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58346         NetBSD 4, from Ralf Wildenhues.
58347
58348 2007-03-04  Bruno Haible  <bruno@clisp.org>
58349
58350         * lib/vasprintf.h: Update #if logic for the case when the functions
58351         exist but are overridden.
58352
58353 2007-03-04  Bruno Haible  <bruno@clisp.org>
58354
58355         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58356         implementations: glibc-2.4 and MacOS X 10.3.
58357         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58358         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58359         * tests/test-vasprintf-posix.c (test_function): Likewise.
58360
58361 2007-03-04  Bruno Haible  <bruno@clisp.org>
58362
58363         * modules/vasprintf-posix-tests: New file.
58364         * tests/test-vasprintf-posix.c: New file.
58365
58366         * modules/vasprintf-posix: New file.
58367         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58368         defined.
58369         * m4/vasprintf-posix.m4: New file.
58370         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58371         gl_FUNC_VASPRINTF.
58372         (gl_FUNC_VASPRINTF): Invoke it.
58373         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58374         here.
58375         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58376
58377 2007-03-04  Bruno Haible  <bruno@clisp.org>
58378
58379         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58380         REPLACE_GETTIMEOFDAY.
58381         * modules/sys_time (Makefile.am): Likewise.
58382         * m4/sys_time_h.m4: Likewise.
58383         * m4/gettimeofday.m4: Likewise.
58384
58385 2007-03-04  Bruno Haible  <bruno@clisp.org>
58386
58387         * modules/vasnprintf-posix-tests: New file.
58388         * tests/test-vasnprintf-posix.c: New file.
58389
58390         * modules/vasnprintf-posix: New file.
58391         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58392         printf-frexpl.h.
58393         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58394         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58395         REPLACE_VASNPRINTF is defined.
58396         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58397         gl_FUNC_VASNPRINTF.
58398         (gl_FUNC_VASNPRINTF): Invoke it.
58399         * m4/vasnprintf-posix.m4: New file.
58400         * m4/printf.m4: New file.
58401
58402 2007-03-04  Bruno Haible  <bruno@clisp.org>
58403
58404         Compile progreloc.c only if --enable-relocatable is specified.
58405         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58406         if --enable-relocatable was specified.
58407         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58408         lib_SOURCES.
58409
58410 2007-03-04  Jim Meyering  <jim@meyering.net>
58411
58412         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58413         Use it consistently, rather than enumerating errno constants.
58414
58415 2007-03-04  Bruno Haible  <bruno@clisp.org>
58416
58417         * modules/xvasprintf-tests: New file.
58418         * tests/test-xvasprintf.c: New file.
58419
58420         * modules/vasprintf-tests: New file.
58421         * tests/test-vasprintf.c: New file.
58422
58423         * modules/vasnprintf-tests: New file.
58424         * tests/test-vasnprintf.c: New file.
58425
58426         * modules/vsnprintf-tests: New file.
58427         * tests/test-vsnprintf.c: New file.
58428
58429         * modules/snprintf-tests: New file.
58430         * tests/test-snprintf.c: New file.
58431
58432 2007-03-04  Bruno Haible  <bruno@clisp.org>
58433
58434         Compile relocatable.c only if --enable-relocatable is specified.
58435         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58436         gl_RELOCATABLE_LIBRARY.
58437         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58438         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58439         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58440         gl_RELOCATABLE_LIBRARY.
58441         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58442         (Makefile.am): Remove lib_SOURCES.
58443         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58444         gl_RELOCATABLE_LIBRARY.
58445         (Makefile.am): Remove lib_SOURCES.
58446         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58447         always.
58448         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58449         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58450
58451 2007-03-04  Bruno Haible  <bruno@clisp.org>
58452
58453         * modules/argmatch-tests: New file.
58454         * tests/test-argmatch.c: New file.
58455
58456         * tests/test-allocsa.c (main): Halve the number of loop runs.
58457
58458         * modules/alloca-opt-tests: New file.
58459         * tests/test-alloca-opt.c: New file.
58460
58461 2007-03-04  Jim Meyering  <jim@meyering.net>
58462
58463         Work around difference between Linux ACLs and Solaris 10 ZFS.
58464         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58465         for EINVAL.
58466
58467 2007-03-03  Bruno Haible  <bruno@clisp.org>
58468
58469         * modules/relocatable-prog (Depends-on): Add back progreloc's
58470         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58471
58472 2007-03-03  Bruno Haible  <bruno@clisp.org>
58473
58474         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58475         * modules/relocatable-lib: New file.
58476
58477 2007-03-03  Bruno Haible  <bruno@clisp.org>
58478
58479         * modules/relocatable-prog: Renamed from modules/relocatable.
58480         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58481
58482 2007-03-03  Bruno Haible  <bruno@clisp.org>
58483
58484         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58485         m4/relocatable-lib.m4.
58486         (Depends-on): Remove 'relocatable'.
58487         (configure.ac): Add gl_RELOCATABLE_NOP.
58488
58489 2007-03-03  Bruno Haible  <bruno@clisp.org>
58490
58491         * modules/relocatable-prog-wrapper: New file.
58492         * modules/relocatable (Depends-on): Add it. Remove all other
58493         dependencies except progname.
58494         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58495
58496         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58497         (gl_FUNC_STRERROR): Nop.
58498         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58499
58500         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58501         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58502
58503         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58504         (gl_FUNC_READLINK): Update.
58505
58506         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58507
58508 2007-03-03  Bruno Haible  <bruno@clisp.org>
58509
58510         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58511         * modules/xreadlink (Depends-on): Add unistd.
58512         * modules/xreadlink-with-size (Depends-on): Likewise.
58513
58514 2007-03-03  Bruno Haible  <bruno@clisp.org>
58515
58516         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58517         extracted from gt_FUNC_SETENV.
58518         (gt_FUNC_SETENV): Remove macro.
58519         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58520         remove gt_FUNC_SETENV.
58521
58522 2007-03-03  Bruno Haible  <bruno@clisp.org>
58523
58524         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58525         ENABLE_RELOCATABLE here.
58526         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58527
58528 2007-03-03  Bruno Haible  <bruno@clisp.org>
58529
58530         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58531         * tests/test-rbtreehash_list.c: Include progname.h.
58532         (main): Call set_program_name.
58533
58534         * modules/rbtree-oset-tests (Depends-on): Add progname.
58535         * tests/test-rbtree_oset.c: Include progname.h.
58536         (main): Call set_program_name.
58537
58538         * modules/rbtree-list-tests (Depends-on): Add progname.
58539         * tests/test-rbtree_list.c: Include progname.h.
58540         (main): Call set_program_name.
58541
58542         * modules/linked-list-tests (Depends-on): Add progname.
58543         * tests/test-linked_list.c: Include progname.h.
58544         (main): Call set_program_name.
58545
58546 2007-03-03  Bruno Haible  <bruno@clisp.org>
58547
58548         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58549         All uses of __restrict changed to _Restrict_.
58550         * lib/glob_.h (__restrict): Remove macro.
58551
58552 2007-03-02  Bruno Haible  <bruno@clisp.org>
58553
58554         * modules/gettext (configure.ac): Require gettext infrastructure
58555         from version 0.16.1.
58556
58557 2007-03-02  Bruno Haible  <bruno@clisp.org>
58558
58559         * modules/linkedhash-list-tests (Depends-on): Add progname.
58560         * tests/test-linkedhash_list.c: Include progname.h.
58561         (main): Call set_program_name.
58562
58563         * modules/carray-list-tests (Depends-on): Add progname.
58564         * tests/test-carray_list.c: Include progname.h.
58565         (main): Call set_program_name.
58566
58567         * modules/avltreehash-list-tests (Depends-on): Add progname.
58568         * tests/test-avltreehash_list.c: Include progname.h.
58569         (main): Call set_program_name.
58570
58571         * modules/avltree-oset-tests (Depends-on): Add progname.
58572         * tests/test-avltree_oset.c: Include progname.h.
58573         (main): Call set_program_name.
58574
58575         * modules/avltree-list-tests (Depends-on): Add progname.
58576         * tests/test-avltree_list.c: Include progname.h.
58577         (main): Call set_program_name.
58578
58579         * modules/array-oset-tests (Depends-on): Add progname.
58580         * tests/test-array_oset.c: Include progname.h.
58581         (main): Call set_program_name.
58582
58583         * modules/array-list-tests (Depends-on): Add progname.
58584         * tests/test-array_list.c: Include progname.h.
58585         (main): Call set_program_name.
58586
58587         * modules/argp-tests (Depends-on): Add progname.
58588         * tests/test-argp.c: Include argp.h first. Include progname.h.
58589         (main): Call set_program_name.
58590
58591 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58592
58593         * doc/gnulib-tool.texi (Initial import): Reword description of
58594         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58595         limited effect even if defined after the first system include.
58596
58597 2007-03-01  Bruno Haible  <bruno@clisp.org>
58598
58599         * build-aux/config.libpath: Update to libtool-1.5.22.
58600         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58601
58602 2007-03-01  Bruno Haible  <bruno@clisp.org>
58603
58604         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58605         foo_CFLAGS.
58606         Reported by Ralf Wildenhues.
58607
58608 2007-03-01  Bruno Haible  <bruno@clisp.org>
58609
58610         * build-aux/install-reloc: Remove object files left over by some
58611         compilers.
58612         Reported by Ralf Wildenhues.
58613
58614 2007-03-01  Bruno Haible  <bruno@clisp.org>
58615
58616         * build-aux/install-reloc: Break long lines.
58617
58618 2007-03-01  Bruno Haible  <bruno@clisp.org>
58619
58620         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58621         Reported by Ralf Wildenhues.
58622
58623 2007-03-01  Bruno Haible  <bruno@clisp.org>
58624
58625         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58626         include ordering constraints.
58627
58628 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58629
58630         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58631         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58632         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58633         as another example.
58634         * lib/time_.h: Fix misspelling.
58635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58636         Require gl_HEADER_TIME_H_DEFAULTS.
58637         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58638         * m4/time_r.m4 (gl_TIME_R): Likewise.
58639         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58640
58641 2007-03-01  Bruno Haible  <bruno@clisp.org>
58642
58643         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58644         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58645
58646 2007-03-01  Jim Meyering  <jim@meyering.net>
58647
58648         * modules/xreadlink (Maintainer): Add my name.
58649         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58650
58651 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58652             Bruno Haible  <bruno@clisp.org>
58653
58654         * build-aux/install-reloc: Compile also c-ctype.c.
58655         * build-aux/relocatable.sh.in: New file.
58656         * doc/relocatable.texi: New file.
58657         * doc/relocatable-maint.texi: New file.
58658         * doc/gnulib.texi: Include relocatable-maint.texi.
58659         * lib/progreloc.c: Include unistd.h unconditionally.
58660         * lib/relocwrapper.c: Include unistd.h unconditionally.
58661         Include c-ctype.h.
58662         (add_dotbin): Use c_tolower.
58663         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58664         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58665         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58666         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58667         to m4/relocatable-lib.m4.
58668         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58669         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58670         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58671         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58672         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58673         * modules/relocatable: New file.
58674         * modules/relocatable-lib: New file.
58675         * modules/relocatable-script: New file.
58676
58677 2007-02-28  Bruno Haible  <bruno@clisp.org>
58678
58679         Import --enable-relocatable infrastructure.
58680         * build-aux/config.libpath: New file, from GNU gettext.
58681         * build-aux/install-reloc: New file, from GNU gettext.
58682         * build-aux/reloc-ldflags: New file, from GNU gettext.
58683         * lib/relocatable.h: New file, from GNU gettext.
58684         * lib/relocatable.c: New file, from GNU gettext.
58685         * lib/relocwrapper.c: New file, from GNU gettext.
58686         * m4/relocatable.m4: New file, from GNU gettext.
58687
58688 2007-02-28  Bruno Haible  <bruno@clisp.org>
58689
58690         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58691
58692         * modules/xreadlink: New file, from GNU gettext with modifications.
58693         * lib/xreadlink.c: New file, from GNU gettext.
58694         * lib/xreadlink.h: Add comments.
58695         (xreadlink): New declaration.
58696
58697         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58698         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58699         lib/xreadlink-with-size.c.
58700         (configure.ac): Remove gl_XREADLINK invocation.
58701         (Makefile.am): Augment lib_SOURCES.
58702         * m4/xreadlink.m4: Remove file.
58703         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58704         (xreadlink_with_size): Renamed from xreadink.
58705         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58706         * modules/canonicalize (Depends-on): Replace xreadlink with
58707         xreadlink-with-size.
58708         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58709
58710 2007-02-25  Jim Meyering  <jim@meyering.net>
58711
58712         * build-aux/announce-gen: When complaining about excess arguments,
58713         list them.
58714
58715 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58716
58717         * README: Document signed integer overflow situation more
58718         accurately.
58719
58720 2007-02-25  Bruno Haible  <bruno@clisp.org>
58721
58722         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58723         'a' or 'A' conversion.
58724
58725 2007-02-25  Bruno Haible  <bruno@clisp.org>
58726
58727         * modules/filename: Renamed from modules/pathname.
58728         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58729         lib/concatpath.c with lib/concat-filename.c.
58730         (Makefile.am): Update.
58731         (Include): Replace pathname.h with filename.h.
58732         * lib/filename.h: Renamed from lib/pathname.h.
58733         (concatenated_filename): Renamed from concatenated_pathname.
58734         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58735         (concatenated_filename): Renamed from concatenated_pathname.
58736         * lib/findprog.c: Include filename.h instead of pathname.h.
58737         (find_in_path): Update.
58738         * lib/javacomp.c: Include filename.h instead of pathname.h.
58739         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58740         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58741         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58742         is_oldgcj_14_13_usable, is_javac_usable): Update.
58743         * lib/javaexec.c: Include filename.h instead of pathname.h.
58744         (execute_java_class): Update.
58745         * modules/findprog: Update.
58746         * modules/javacomp: Update.
58747         * modules/javaexec: Update.
58748         * MODULES.html.sh (File system functions): Add 'filename', remove
58749         'pathname'.
58750
58751 2007-02-25  Bruno Haible  <bruno@clisp.org>
58752
58753         * modules/printf-frexpl-tests: New file.
58754         * tests/test-printf-frexpl.c: New file.
58755
58756         * modules/printf-frexpl: New file.
58757         * lib/printf-frexpl.h: New file.
58758         * lib/printf-frexpl.c: New file.
58759         * m4/printf-frexpl.m4: New file.
58760
58761 2007-02-25  Bruno Haible  <bruno@clisp.org>
58762
58763         * modules/printf-frexp-tests: New file.
58764         * tests/test-printf-frexp.c: New file.
58765
58766         * modules/printf-frexp: New file.
58767         * lib/printf-frexp.h: New file.
58768         * lib/printf-frexp.c: New file.
58769         * m4/printf-frexp.m4: New file.
58770
58771 2007-02-25  Bruno Haible  <bruno@clisp.org>
58772
58773         Assume automake >= 1.10 for the tests.
58774         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58775         * modules/arctwo-tests: Likewise.
58776         * modules/argp-tests: Likewise.
58777         * modules/avltree-list-tests: Likewise.
58778         * modules/avltree-oset-tests: Likewise.
58779         * modules/avltreehash-list-tests: Likewise.
58780         * modules/carray-list-tests: Likewise.
58781         * modules/crc-tests: Likewise.
58782         * modules/des-tests: Likewise.
58783         * modules/gc-arcfour-tests: Likewise.
58784         * modules/gc-arctwo-tests: Likewise.
58785         * modules/gc-des-tests: Likewise.
58786         * modules/gc-hmac-md5-tests: Likewise.
58787         * modules/gc-hmac-sha1-tests: Likewise.
58788         * modules/gc-md2-tests: Likewise.
58789         * modules/gc-md4-tests: Likewise.
58790         * modules/gc-md5-tests: Likewise.
58791         * modules/gc-pbkdf2-sha1-tests: Likewise.
58792         * modules/gc-rijndael-tests: Likewise.
58793         * modules/gc-sha1-tests: Likewise.
58794         * modules/gc-tests: Likewise.
58795         * modules/getaddrinfo-tests: Likewise.
58796         * modules/hmac-md5-tests: Likewise.
58797         * modules/hmac-sha1-tests: Likewise.
58798         * modules/linked-list-tests: Likewise.
58799         * modules/linkedhash-list-tests: Likewise.
58800         * modules/lock-tests: Likewise.
58801         * modules/md2-tests: Likewise.
58802         * modules/md4-tests: Likewise.
58803         * modules/md5-tests: Likewise.
58804         * modules/rbtree-list-tests: Likewise.
58805         * modules/rbtree-oset-tests: Likewise.
58806         * modules/rbtreehash-list-tests: Likewise.
58807         * modules/read-file-tests: Likewise.
58808         * modules/rijndael-tests: Likewise.
58809         * modules/stdint-tests: Likewise.
58810         * modules/tls-tests: Likewise.
58811
58812 2007-02-24  Bruno Haible  <bruno@clisp.org>
58813
58814         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58815         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58816         function; instead check whether isnan with a double argument links.
58817         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58818         function; instead check whether isnan with a 'long double' argument
58819         links.
58820         Reported by Eric Blake <ebb9@byu.net>.
58821
58822 2007-02-24  Bruno Haible  <bruno@clisp.org>
58823
58824         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58825         defined.
58826         * lib/isnanl.c: Remove all code. Just include isnan.c.
58827         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58828
58829 2007-02-25  Jim Meyering  <jim@meyering.net>
58830
58831         Avoid conflicting types for 'unsetenv' on FreeBSD.
58832         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58833         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58834         in stdlib.h.
58835
58836 2007-02-24  Bruno Haible  <bruno@clisp.org>
58837
58838         * modules/isnanl-nolibm-tests: New file.
58839         * tests/test-isnanl.c: New file.
58840
58841         * modules/isnanl-nolibm: New file.
58842         * lib/isnanl.h: New file.
58843         * lib/isnanl.c: New file.
58844         * m4/isnanl.m4: New file.
58845
58846 2007-02-24  Bruno Haible  <bruno@clisp.org>
58847
58848         * modules/isnan-nolibm-tests: New file.
58849         * tests/test-isnan.c: New file.
58850
58851         * modules/isnan-nolibm: New file.
58852         * lib/isnan.h: New file.
58853         * lib/isnan.c: New file.
58854         * m4/isnan.m4: New file.
58855
58856 2007-02-24  Bruno Haible  <bruno@clisp.org>
58857
58858         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58859         assume that an exponent fits in 20 bits.
58860
58861 2007-02-24  Jim Meyering  <jim@meyering.net>
58862
58863         * m4/regex.m4: Update the description of the configure-time option,
58864         --without-included-regex, to state accurately what the defaults are,
58865         and perhaps to give people an idea why using this option is risky.
58866
58867 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58868
58869         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58870         loops on small arguments.  This attempts to avoid the problem
58871         Bruno Haible reported for AIX 4.3.2 in
58872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58873
58874 2007-02-23  Bruno Haible  <bruno@clisp.org>
58875
58876         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58877         Needed for help2man.
58878
58879 2007-02-23  Karl Berry  <karl@gnu.org>
58880
58881         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58882         exists, foo.h should be cvs-ignored, not committed.
58883
58884 2007-02-23  Eric Blake  <ebb9@byu.net>
58885
58886         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58887         * lib/stat-time.h (includes): Likewise.
58888         * lib/utimecmp.c (includes): Likewise.
58889         * lib/utimens.h (includes): Likewise.
58890         * lib/getdate.y (includes): Also include "timespec.h" for use
58891         internal to the module.
58892         * modules/utimens (Depends-on): Revert yesterday's patch.
58893         * modules/nanosleep (Depends-on): Add missing dependency.
58894
58895 2007-02-22  Bruno Haible  <bruno@clisp.org>
58896
58897         * lib/glob.c: Don't include getlogin_r.h.
58898
58899 2007-02-22  Jim Meyering  <jim@meyering.net>
58900
58901         * modules/utimens (Depends-on): Add timespec, required for
58902         utimens.h's inclusion of timespec.h.
58903
58904 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58905
58906         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58907         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58908         Schwab in
58909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58910         I'll try to think of a better way to fix the Solaris problem.
58911
58912         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58913         like glibc; on Solaris 10, it fails with errno == EINVAL.
58914         POSIX says the behavior is unspecified if the first argument is NULL,
58915         so play it safe and never pass NULL to the system getcwd.
58916
58917 2007-02-21  Jim Meyering  <jim@meyering.net>
58918
58919         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58920         of gettimeofday.  It would conflict with the one now always
58921         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58922         an IRIX 6.5 build failure.
58923
58924 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58925
58926         Minor fixups to port to Solaris 10 with Sun C 5.8.
58927         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58928         * modules/getcwd (Depends-on): Add dirfd.
58929         * lib/putenv.c (putenv): #undef it.
58930         (rpl_putenv): New decl.
58931         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58932
58933 2007-02-20  Bruno Haible  <bruno@clisp.org>
58934
58935         * modules/stdio-tests: New file.
58936         * tests/test-stdio.c: New file.
58937
58938         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58939         (Depends-on): Add stdio.
58940         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58941         (Include): Use <stdio.h> instead of vsnprintf.h.
58942         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58943         HAVE_DECL_VSNPRINTF.
58944         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58945
58946         * modules/snprintf (Files): Remove lib/snprintf.h.
58947         (Depends-on): Add stdio.
58948         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58949         (Include): Use <stdio.h> instead of snprintf.h.
58950         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58951         HAVE_DECL_SNPRINTF.
58952         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58953         * lib/getaddrinfo.c: Likewise.
58954
58955         * modules/stdio: New file.
58956         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58957         * lib/snprintf.h: Remove file.
58958         * lib/vsnprintf.h: Remove file.
58959         * lib/.cppi-disable: Remove snprintf.h.
58960         * m4/stdio_h.m4: New file.
58961         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58962
58963 2007-02-20  Jim Meyering  <jim@meyering.net>
58964
58965         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58966         used by e.g., mingw.  From Bruno Haible.
58967
58968 2007-02-19  Bruno Haible  <bruno@clisp.org>
58969
58970         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58971         warnings.
58972         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58973
58974 2007-02-19  Bruno Haible  <bruno@clisp.org>
58975
58976         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58977         from mingw users.
58978
58979 2007-02-19  Bruno Haible  <bruno@clisp.org>
58980
58981         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58982         warnings.
58983         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58984
58985 2007-02-19  Jim Meyering  <jim@meyering.net>
58986
58987         Don't use FD after a successful "fdopendir (fd)".
58988         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58989         Reset it by calling dirfd on the just-obtained DIR*.
58990
58991         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58992         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58993
58994 2007-02-18  Bruno Haible  <bruno@clisp.org>
58995
58996         * lib/readlink.c: Include <unistd.h>.
58997         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58998         HAVE_READLINK.
58999         * modules/readlink (Depends-on): Add unistd.
59000         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59001         (Include): Add <unistd.h>.
59002
59003         * lib/getlogin_r.h: Remove file.
59004         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59005         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59006         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59007         HAVE_DECL_GETLOGIN_R.
59008         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59009         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59010         (Include): Use <unistd.h> instead of getlogin_r.h.
59011
59012         * lib/getcwd.h: Remove file.
59013         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59014         * lib/xgetcwd.c: Likewise.
59015         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59016         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59017         * modules/getcwd (Files): Remove lib/getcwd.h.
59018         (Depends-on): Add unistd.
59019         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59020         (Include): Use <unistd.h> instad of getcwd.h.
59021
59022         * lib/ftruncate.c: Include <unistd.h> first.
59023         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59024         Set HAVE_FTRUNCATE.
59025         * modules/ftruncate (Depends-on): Add unistd.
59026         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59027
59028         * lib/fchdir.c: Include <unistd.h> first.
59029         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59031         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59032         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59033         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59034
59035         * lib/dup2.c: Include <unistd.h> first.
59036         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59037         HAVE_DUP2.
59038         * modules/dup2 (Depends-on): Add unistd.
59039         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59040
59041         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59042         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59043         REPLACE_CHOWN. Don't define chown as a macro here.
59044         * modules/chown (Depends-on): Add unistd.
59045         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59046
59047         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59048         Add definition for GL_LINK_WARNING.
59049         (chown, dup2): New declarations.
59050         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59051         link warning.
59052         (ftruncate): New declaration.
59053         (getcwd): New declaration, taken from old getcwd.h.
59054         (getlogin_r): New declaration, taken from old getlogin_r.h.
59055         (readlink): New declaration.
59056         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59057         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59058         (gl_PREREQ_UNISTD): Remove macro.
59059         (gl_UNISTD_MODULE_INDICATOR): New macro.
59060         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59061         many new variables. Don't set UNISTD_H.
59062         * modules/unistd (Description): Change.
59063         (Depends-on): Add link-warning.
59064         (configure.ac): Update.
59065         (Makefile.am): Create unistd.h always. Substitute many new variables
59066         into it.
59067
59068 2007-02-18  Bruno Haible  <bruno@clisp.org>
59069
59070         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59071         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59072         HAVE_GETSUBOPT.
59073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59074         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59075         * lib/getsubopt.h: Remove file.
59076         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59077         (Depends-on): Add stdlib.
59078         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59079         (Includes): Use <stdlib.h> instead of getsubopt.h.
59080         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59081         Set HAVE_GETSUBOPT.
59082         * lib/getsubopt.c: Don't include getsubopt.h.
59083
59084 2007-02-18  Bruno Haible  <bruno@clisp.org>
59085
59086         * modules/fchdir (Depends-on): Add dup2.
59087
59088 2007-02-18  Bruno Haible  <bruno@clisp.org>
59089
59090         * lib/stdlib_.h: Handle glibc's special invocation convention
59091         specially.
59092
59093 2007-02-18  Bruno Haible  <bruno@clisp.org>
59094
59095         * modules/stdlib-tests: New file.
59096         * tests/test-stdlib.c: New file.
59097
59098         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59099         (Depends-on): Add stdlib.
59100         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59101         (Includes): Use <stdlib.h> instead of mkstemp.h.
59102         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59103         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59104         * lib/mkstemp.c: Don't include mkstemp.h.
59105         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59106         * lib/stdlib--.h: Don't include mkstemp.h.
59107
59108         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59109         (Depends-on): Add stdlib.
59110         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59111         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59112         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59113         HAVE_MKDTEMP.
59114         * lib/mkdtemp.c: Don't include mkdtemp.h.
59115         * lib/clean-temp.c: Don't include mkdtemp.h.
59116
59117         * modules/exit (Files): Remove lib/exit.h.
59118         (Depends-on): Add stdlib.
59119         (Makefile.am): Remove lib_SOURCES.
59120         (Include): Use <stdlib.h> instead of exit.h.
59121         * lib/argmatch.c: Don't include exit.h.
59122         * lib/execute.c: Likewise.
59123         * lib/pagealign_alloc.c: Likewise.
59124         * lib/pipe.c: Likewise.
59125         * lib/wait-process.c: Likewise.
59126         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59127         * lib/exitfail.c: Likewise.
59128         * lib/savewd.c: Likewise.
59129         * lib/xsetenv.c: Likewise.
59130
59131         * modules/stdlib: New file.
59132         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59133         and extra comments about mkstemp().
59134         * lib/exit.h: Remove file.
59135         * lib/mkdtemp.h: Remove file.
59136         * lib/mkstemp.h: Remove file.
59137         * m4/stdlib_h.m4: New file.
59138         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59139
59140 2007-02-18  Bruno Haible  <bruno@clisp.org>
59141
59142         * modules/math-tests: New file.
59143         * tests/test-math.c: New file.
59144
59145         * modules/math: New file.
59146         * modules/mathl (Files): Remove lib/mathl.h.
59147         (Depends-on): Add math.
59148         (Makefile.am): Don't mention mathl.h.
59149         (Include): Use <math.h> instead of mathl.h.
59150         * lib/math_.h: New file.
59151         * lib/mathl.h: Remove file.
59152         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59153         mathl.h.
59154         * lib/asinl.c: Likewise.
59155         * lib/atanl.c: Likewise.
59156         * lib/ceill.c: Likewise.
59157         * lib/cosl.c: Likewise.
59158         * lib/expl.c: Likewise.
59159         * lib/floorl.c: Likewise.
59160         * lib/frexpl.c: Likewise.
59161         * lib/ldexpl.c: Likewise.
59162         * lib/logl.c: Likewise.
59163         * lib/sincosl.c: Likewise.
59164         * lib/sinl.c: Likewise.
59165         * lib/sqrtl.c: Likewise.
59166         * lib/tanl.c: Likewise.
59167         * lib/trigl.c: Likewise.
59168         * m4/math_h.m4: New file.
59169         * MODULES.html.sh (Mathematics): Add math.
59170
59171 2007-02-17  Bruno Haible  <bruno@clisp.org>
59172
59173         * modules/wctype-tests: New file.
59174         * tests/test-wctype.c: New file.
59175
59176         * modules/wchar-tests: New file.
59177         * tests/test-wchar.c: New file.
59178
59179         * modules/unistd-tests: New file.
59180         * tests/test-unistd.c: New file.
59181
59182         * modules/time-tests: New file.
59183         * tests/test-time.c: New file.
59184
59185         * modules/sysexits-tests: New file.
59186         * tests/test-sysexits.c: New file.
59187
59188         * modules/sys_time-tests: New file.
59189         * tests/test-sys_time.c: New file.
59190
59191         * modules/sys_stat-tests: New file.
59192         * tests/test-sys_stat.c: New file.
59193
59194         * modules/sys_socket-tests: New file.
59195         * tests/test-sys_socket.c: New file.
59196
59197         * modules/sys_select-tests: New file.
59198         * tests/test-sys_select.c: New file.
59199
59200         * modules/string-tests: New file.
59201         * tests/test-string.c: New file.
59202
59203         * modules/stdbool-tests: New file.
59204         * tests/test-stdbool.c: New file.
59205
59206         * modules/netinet_in-tests: New file.
59207         * tests/test-netinet_in.c: New file.
59208
59209         * modules/inttypes-tests: New file.
59210         * tests/test-inttypes.c: New file.
59211
59212         * modules/fcntl-tests: New file.
59213         * tests/test-fcntl.c: New file.
59214
59215         * modules/byteswap-tests: New file.
59216         * tests/test-byteswap.c: New file.
59217
59218         * modules/arpa_inet-tests: New file.
59219         * tests/test-arpa_inet.c: New file.
59220
59221 2007-02-17  Bruno Haible  <bruno@clisp.org>
59222
59223         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59224         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59225         if the corresponding module is not enabled. Emit link warnings if
59226         the function is used nevertheless.
59227         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59228         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59229         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59230         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59231         * modules/inttypes (Depends-on): Add link-warning.
59232         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59233         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59234         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59235         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59236         * modules/imaxdiv (configure.ac): Likewise.
59237         * modules/strtoimax (configure.ac): Likewise.
59238         * modules/strtoumax (configure.ac): Likewise.
59239
59240 2007-02-17  Bruno Haible  <bruno@clisp.org>
59241
59242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59243         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59244         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59245         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59246
59247 2007-02-17  Bruno Haible  <bruno@clisp.org>
59248
59249         * modules/link-warning: New file.
59250         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59251         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59252         * modules/string (Depends-on): Add link-warning.
59253         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59254         string.h.
59255         * MODULES.html.sh (Support for building libraries and executables): Add
59256         link-warning.
59257
59258 2007-02-17  Bruno Haible  <bruno@clisp.org>
59259
59260         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59261         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59262         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59263         long lines.
59264
59265 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59266             Bruno Haible  <bruno@clisp.org>
59267
59268         * modules/tmpfile: New file.
59269         * lib/tmpfile.c: New file.
59270         * m4/tmpfile.m4: New file.
59271         * MODULES.html.sh (func_all_modules): New section "Input/output".
59272
59273 2007-02-15  Bruno Haible  <bruno@clisp.org>
59274
59275         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59276         (supports_delete_on_close): New function.
59277         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59278
59279 2007-02-14  Bruno Haible  <bruno@clisp.org>
59280
59281         * modules/mbspcasecmp-tests: New file.
59282         * tests/test-mbspcasecmp.sh: New file.
59283         * tests/test-mbspcasecmp.c: New file.
59284
59285         New module mbspcasecmp.
59286         * modules/mbspcasecmp: New file.
59287         * lib/mbspcasecmp.c: New file.
59288         * lib/string_.h (strncasecmp): Change warning message.
59289         (mbspcasecmp): New declaration.
59290         * m4/mbspcasecmp.m4: New file.
59291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59292         GNULIB_MBSPCASECMP.
59293         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59294         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59295
59296 2007-02-14  Bruno Haible  <bruno@clisp.org>
59297
59298         * modules/mbsncasecmp-tests: New file.
59299         * tests/test-mbsncasecmp.sh: New file.
59300         * tests/test-mbsncasecmp.c: New file.
59301
59302         New module mbsncasecmp.
59303         * modules/mbsncasecmp: New file.
59304         * lib/mbsncasecmp.c: New file.
59305         * lib/string_.h (mbsncasecmp): New declaration.
59306         * m4/mbsncasecmp.m4: New file.
59307         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59308         GNULIB_MBSNCASECMP.
59309         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59310         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59311
59312 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59313
59314         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59315         Verify that it doesn't overlap with our flags.
59316         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59317         do not have the desired effect in multibyte locales; instead, use
59318         mbscasecmp.
59319         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59320         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59321         we don't require GNU fnmatch ourselves (if our users require it, they
59322         should do so explicitly).
59323
59324         Fix regex code so it doesn't rely on strcasecmp.
59325         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59326         Otherwise, include gnulib's langinfo.h.
59327         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59328         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59329         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59330         * modules/regex (FILES): Remove m4/codeset.m4.
59331         (Depends-on): Add localcharset.  Remove strcase.
59332
59333 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59334
59335         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59336         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59337
59338 2007-02-13  Bruno Haible  <bruno@clisp.org>
59339
59340         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59341         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59342
59343 2007-02-12  Bruno Haible  <bruno@clisp.org>
59344
59345         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59346         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59347         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59348         time warning rather than a link error.
59349
59350 2007-02-12  Bruno Haible  <bruno@clisp.org>
59351
59352         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59353         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59354         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59355
59356 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59357
59358         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59359         args, not 2.
59360
59361 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59362
59363         New module 'time', so that apps can include <time.h> as per
59364         POSIX and GNU instead of separate include files like time_r.h
59365         and timegm.h.  This implementation tries out a simpler approach
59366         for replacing decls in standard include files (as compared to
59367         the string module), somewhat as an experiment.
59368
59369         * config/srclist.txt: Comment out mktime.c for now.
59370         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59371         since it doesn't apply any more.  Use generic wording instead.
59372         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59373         'time'.
59374         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59375         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59376         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59377         Don't include <sys/types.h>; no longer needed since we assume C89.
59378         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59379         * lib/strftime.c: Likewise.
59380         * lib/time_r.c: Likewise.
59381         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59382         * lib/nanosleep.c: Include <time.h> first, to check interface.
59383         * lib/strptime.c: Likewise.
59384         * lib/time_r.c: Likewise.
59385         * lib/timegm.c: Likewise.
59386         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59387         needed.
59388         * lib/timegm.c: Don't include timegm.h; no longer needed.
59389         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59390         time.h now handles any problems in that area.
59391         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59392         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59393         that time.h defines struct timespec.
59394         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59395         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59396         handles that.
59397         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59398         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59399         needed.  Set REPLACE_LOCALTIME.
59400         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59401         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59402         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59403         nanosleep; time_h.m4 now does that.  Don't require
59404         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59405         module handles this now.
59406         * modules/getdate (Depends-on): Remove timespec.  Add time.
59407         * modules/nanosleep (Depends-on): Likewise.
59408         * modules/stat-time (Depends-on): Likewise.
59409         * modules/nanosleep (Include): Include time.h, not timespec.h.
59410         * modules/strptime (Files): Remove lib/strptime.h.
59411         (Depends-on): Add extensions, time.
59412         (Include): Include time.h, not strptime.h.
59413         * modules/time_r (Files): Remove lib/time_r.h.
59414         (Depends-on): Add time.
59415         (Include): Include time.h, not time_r.h.
59416         * modules/timegm: Likewise.
59417         * modules/timespec (Description): Now does timespec-related decls
59418         of our own, instead of struct timespec itself.
59419         (Depends-on): Add time; remove extensions.
59420         (Maintainer): Add self.
59421         * modules/utimecmp (Depends-on): Add time; remove timespec.
59422         * modules/utimens (Depends-on): Likewise.
59423         * modules/xnanosleep (Depends-on): Likewise.
59424
59425 2007-02-11  Bruno Haible  <bruno@clisp.org>
59426
59427         * lib/c-strstr.c: Include allocsa.h.
59428         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59429         * lib/c-strcasestr.c: Include allocsa.h.
59430         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59431         * lib/strcasestr.c: Include allocsa.h.
59432         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59433         * lib/mbsstr.c: Include allocsa.h.
59434         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59435         allocsa/freesa instead of malloc/free.
59436         * lib/mbscasestr.c: Include allocsa.h.
59437         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59438         allocsa/freesa instead of malloc/free.
59439         * modules/c-strstr (Depends-on): Add allocsa.
59440         * modules/c-strcasestr (Depends-on): Likewise.
59441         * modules/strcasestr (Depends-on): Likewise.
59442         * modules/mbsstr (Depends-on): Likewise.
59443         * modules/mbscasestr (Depends-on): Likewise.
59444
59445 2007-02-11  Bruno Haible  <bruno@clisp.org>
59446
59447         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59448
59449         * modules/mbsspn-tests: New file.
59450         * tests/test-mbsspn.sh: New file.
59451         * tests/test-mbsspn.c: New file.
59452
59453 2007-02-11  Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59456
59457         * modules/mbspbrk-tests: New file.
59458         * tests/test-mbspbrk.sh: New file.
59459         * tests/test-mbspbrk.c: New file.
59460
59461 2007-02-11  Bruno Haible  <bruno@clisp.org>
59462
59463         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59464         unneeded cast.
59465
59466         * modules/mbscspn-tests: New file.
59467         * tests/test-mbscspn.sh: New file.
59468         * tests/test-mbscspn.c: New file.
59469
59470 2007-02-11  Bruno Haible  <bruno@clisp.org>
59471
59472         * modules/mbscasecmp-tests: New file.
59473         * tests/test-mbscasecmp.sh: New file.
59474         * tests/test-mbscasecmp.c: New file.
59475
59476 2007-02-11  Bruno Haible  <bruno@clisp.org>
59477
59478         Ensure O(n) worst-case complexity of mbscasestr.
59479         * lib/mbscasestr.c: Include stdbool.h.
59480         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59481         functions.
59482         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59483         the bookkeeping indicates that it's worth it.
59484         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59485
59486         * modules/mbscasestr-tests: New file.
59487         * tests/test-mbscasestr1.c: New file.
59488         * tests/test-mbscasestr2.sh: New file.
59489         * tests/test-mbscasestr2.c: New file.
59490         * tests/test-mbscasestr3.sh: New file.
59491         * tests/test-mbscasestr3.c: New file.
59492         * tests/test-mbscasestr4.sh: New file.
59493         * tests/test-mbscasestr4.c: New file.
59494         * m4/locale-tr.m4: New file.
59495
59496 2007-02-11  Bruno Haible  <bruno@clisp.org>
59497
59498         Ensure O(n) worst-case complexity of mbsstr.
59499         * lib/mbsstr.c: Include stdbool.h.
59500         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59501         functions.
59502         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59503         bookkeeping indicates that it's worth it.
59504         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59505
59506         * modules/mbsstr-tests: New file.
59507         * tests/test-mbsstr1.c: New file.
59508         * tests/test-mbsstr2.sh: New file.
59509         * tests/test-mbsstr2.c: New file.
59510         * tests/test-mbsstr3.sh: New file.
59511         * tests/test-mbsstr3.c: New file.
59512         * m4/locale-fr.m4: New file.
59513
59514 2007-02-11  Bruno Haible  <bruno@clisp.org>
59515
59516         * lib/mbsrchr.c (mbsrchr): Fix bug.
59517
59518         * modules/mbsrchr-tests: New file.
59519         * tests/test-mbsrchr.sh: New file.
59520         * tests/test-mbsrchr.c: New file.
59521
59522 2007-02-11  Bruno Haible  <bruno@clisp.org>
59523
59524         * lib/mbschr.c (mbschr): Fix bug.
59525
59526         * modules/mbschr-tests: New file.
59527         * tests/test-mbschr.sh: New file.
59528         * tests/test-mbschr.c: New file.
59529         * m4/locale-zh.m4: New file.
59530
59531 2007-02-11  Bruno Haible  <bruno@clisp.org>
59532
59533         Support for copying multibyte string iterators.
59534         * lib/mbiter.h: Include <string.h>.
59535         (mbiter_multi_copy): New function.
59536         (mbi_copy): New macro.
59537         * lib/mbuiter.h: Include <string.h>.
59538         (mbuiter_multi_copy): New function.
59539         (mbui_copy): New macro.
59540
59541 2007-02-11  Bruno Haible  <bruno@clisp.org>
59542
59543         New module mbslen.
59544         * modules/mbslen: New file.
59545         * lib/mbslen.c: New file.
59546         * lib/string_.h (mbslen): New declaration.
59547         * m4/mbslen.m4: New file.
59548         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59549         GNULIB_MBSLEN.
59550         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59551         * MODULES.html.sh (Internationalization functions): Add mbslen.
59552
59553 2007-02-11  Bruno Haible  <bruno@clisp.org>
59554
59555         Ensure O(n) worst-case complexity of strcasestr substitute.
59556         * lib/strcasestr.c: Include stdbool.h.
59557         (knuth_morris_pratt): New function.
59558         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59559         bookkeeping indicates that it's worth it.
59560         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59561
59562         * modules/strcasestr-tests: New file.
59563         * tests/test-strcasestr.c: New file.
59564
59565 2007-02-11  Bruno Haible  <bruno@clisp.org>
59566
59567         Ensure O(n) worst-case complexity of c_strcasestr.
59568         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59569         (knuth_morris_pratt): New function.
59570         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59571         the bookkeeping indicates that it's worth it.
59572         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59573
59574         * modules/c-strcasestr-tests: New file.
59575         * tests/test-c-strcasestr.c: New file.
59576
59577 2007-02-11  Bruno Haible  <bruno@clisp.org>
59578
59579         Ensure O(n) worst-case complexity of c_strstr.
59580         * lib/c-strstr.c: Include stdbool.h, string.h.
59581         (knuth_morris_pratt): New function.
59582         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59583         bookkeeping indicates that it's worth it.
59584         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59585
59586         * lib/c-strstr.c: Complete rewrite for maintainability.
59587
59588         * modules/c-strstr-tests: New file.
59589         * tests/test-c-strstr.c: New file.
59590
59591 2007-02-11  Bruno Haible  <bruno@clisp.org>
59592
59593         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59594         5.2.1 and earlier, whereby \055 was treated just like the range
59595         delimiter '-'.
59596         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59597
59598 2007-02-08  Bruno Haible  <bruno@clisp.org>
59599
59600         * modules/regex (Depends-on): Add stdbool.
59601         Reported by Dalibor Topic <robilad@kaffe.org>.
59602
59603 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59604
59605         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59606         Prefer returning from main to exiting from it.
59607         Remove unnecessary parens after sizeof.
59608
59609 2007-02-05  Bruno Haible  <bruno@clisp.org>
59610
59611         New module mbssep.
59612         * modules/mbssep: New file.
59613         * lib/mbssep.c: New file.
59614         * lib/string_.h (strsep): Add a conditional link warning.
59615         (mbssep): New declaration.
59616         * m4/mbssep.m4: New file.
59617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59618         GNULIB_MBSSEP.
59619         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59620         * MODULES.html.sh (Internationalization functions): Add mbssep.
59621
59622 2007-02-05  Bruno Haible  <bruno@clisp.org>
59623
59624         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59625         Optimize search in case of 1 delimiter.
59626
59627 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59628
59629         * lib/acl.h: Include sys/types.h before sys/acl.h.
59630
59631 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59632
59633         Merge upstream fix for glibc bugzilla #3957:
59634
59635         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59636
59637         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59638         bit for RE_HAT_LISTS_NOT_NEWLINE.
59639         (build_charclass_op): Remove bogus comment.
59640
59641 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59642
59643         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59644
59645 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59646
59647         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59648         * lib/memmem.c [!defined _LIBC]: Include config.h.
59649
59650 2007-02-04  Bruno Haible  <bruno@clisp.org>
59651
59652         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59653         warning message.
59654
59655 2007-02-04  Bruno Haible  <bruno@clisp.org>
59656
59657         New module mbstok_r.
59658         * modules/mbstok_r: New file.
59659         * lib/mbstok_r.c: New file.
59660         * lib/string_.h (strtok_r): Change argument names to match the
59661         comments. Add a conditional link warning.
59662         (mbstok_r): New declaration.
59663         * m4/mbstok_r.m4: New file.
59664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59665         GNULIB_MBSTOK_R.
59666         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59667         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59668
59669 2007-02-04  Bruno Haible  <bruno@clisp.org>
59670
59671         New module mbsspn.
59672         * modules/mbsspn: New file.
59673         * lib/mbsspn.c: New file.
59674         * lib/string_.h (strspn): Add a conditional link warning.
59675         (mbsspn): New declaration.
59676         * m4/mbsspn.m4: New file.
59677         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59678         GNULIB_MBSSPN.
59679         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59680         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59681
59682 2007-02-04  Bruno Haible  <bruno@clisp.org>
59683
59684         New module mbspbrk.
59685         * modules/mbspbrk: New file.
59686         * lib/mbspbrk.c: New file.
59687         * lib/string_.h (strpbrk): Add a conditional link warning.
59688         (mbspbrk): New declaration.
59689         * m4/mbspbrk.m4: New file.
59690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59691         GNULIB_MBSPBRK.
59692         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59693         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59694
59695 2007-02-04  Bruno Haible  <bruno@clisp.org>
59696
59697         New module mbscspn.
59698         * modules/mbscspn: New file.
59699         * lib/mbscspn.c: New file.
59700         * lib/string_.h (strcspn): Add a conditional link warning.
59701         (mbscspn): New declaration.
59702         * m4/mbscspn.m4: New file.
59703         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59704         GNULIB_MBSCSPN.
59705         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59706         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59707
59708 2007-02-04  Bruno Haible  <bruno@clisp.org>
59709
59710         New module mbscasestr, reduced goal of strcasestr.
59711         * modules/mbscasestr: New file.
59712         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59713         (mbscasestr): Renamed from strcasestr.
59714         * lib/strcasestr.c: Don't include mbuiter.h.
59715         (strcasestr): Remove support for multibyte locales.
59716         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59717         Change the conditional link warning.
59718         (mbscasestr): New declaration.
59719         * m4/mbscasestr.m4: New file.
59720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59721         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59722         REPLACE_STRCASESTR.
59723         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59725         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59726         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59727         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59728         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59729         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59730         (Depends-on): Remove mbuiter.
59731         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59732
59733 2007-02-04  Bruno Haible  <bruno@clisp.org>
59734
59735         Simplify handling of strncasecmp.
59736         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59737         the conditional link warning.
59738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59739         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59740         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59741         * modules/strcase (configure.ac): Don't invoke
59742         gl_STRING_MODULE_INDICATOR.
59743         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59744
59745 2007-02-04  Bruno Haible  <bruno@clisp.org>
59746
59747         New module mbscasecmp, reduced goal of strcasecmp.
59748         * modules/mbscasecmp: New file.
59749         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59750         (mbscasecmp): Renamed from strcasecmp.
59751         * lib/strcasecmp.c: Don't include mbuiter.h.
59752         (strcasecmp): Remove support for multibyte locales.
59753         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59754         Change the conditional link warning.
59755         (mbscasecmp): New declaration.
59756         * m4/mbscasecmp.m4: New file.
59757         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59758         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59759         REPLACE_STRCASECMP.
59760         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59761         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59762         GNULIB_MBSCASECMP.
59763         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59764         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59765         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59766         (Depends-on): Remove mbuiter.
59767         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59768
59769 2007-02-04  Bruno Haible  <bruno@clisp.org>
59770
59771         New module mbsstr. Remove module strstr.
59772         * modules/mbsstr: New file.
59773         * modules/strstr: Remove file.
59774         * lib/mbsstr.c: Renamed from lib/strstr.c.
59775         (mbsstr): Renamed from strstr.
59776         * lib/string_.h (strstr): Remove declaration. Change the conditional
59777         link warning.
59778         (mbsstr): New declaration.
59779         * m4/mbsstr.m4: New file.
59780         * m4/strstr.m4: Remove file.
59781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59782         REPLACE_STRSTR.
59783         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59784         Don't initialize GNULIB_STRSTR.
59785         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59786         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59787         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59788         (Support for systems lacking ANSI C 89): Remove strstr.
59789
59790 2007-02-04  Bruno Haible  <bruno@clisp.org>
59791
59792         New module mbsrchr.
59793         * modules/mbsrchr: New file.
59794         * lib/mbsrchr.c: New file.
59795         * lib/string_.h (strrchr): Add a conditional link warning.
59796         (mbsrchr): New declaration.
59797         * m4/mbsrchr.m4: New file.
59798         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59799         GNULIB_MBSRCHR.
59800         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59801         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59802
59803 2007-02-04  Bruno Haible  <bruno@clisp.org>
59804
59805         New module mbschr.
59806         * modules/mbschr: New file.
59807         * lib/mbschr.c: New file.
59808         * lib/string_.h (strchr): Add a conditional link warning.
59809         (mbschr): New declaration.
59810         * m4/mbschr.m4: New file.
59811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59812         GNULIB_MBSCHR.
59813         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59814         * MODULES.html.sh (Internationalization functions): Add mbschr.
59815
59816 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59817
59818         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59819
59820         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59821
59822 2007-02-04  Bruno Haible  <bruno@clisp.org>
59823
59824         New module description section 'configure.ac-early'.
59825         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59826         (func_get_autoconf_early_snippet): New function.
59827         (func_import, func_create_testdir): Use it. Remove special cases for
59828         modules 'extensions' and 'lock'.
59829         * modules/extensions (configure.ac-early): Require
59830         gl_USE_SYSTEM_EXTENSIONS.
59831         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59832
59833 2007-02-04  Bruno Haible  <bruno@clisp.org>
59834
59835         Make use of gcj-4.3's -fsource and -ftarget option.
59836         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59837         and if so try the options -fsource and -ftarget.
59838         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59839         source_version, ftarget_option, target_version arguments.
59840         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59841         (is_envjavac_oldgcj_14_14_usable): Renamed from
59842         is_envjavac_gcj_14_14_usable.
59843         (is_envjavac_oldgcj_14_13_usable): Renamed from
59844         is_envjavac_gcj_14_13_usable.
59845         (is_gcj_present): Update.
59846         (is_gcj_43, is_gcj43_usable): New functions.
59847         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59848         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59849         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59850         try the options -fsource and -ftarget.
59851
59852 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59853
59854         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59855         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59856         larger value.
59857
59858 2007-02-03  Jim Meyering  <jim@meyering.net>
59859
59860         Give tools a better chance to allocate space for very large buffers.
59861         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59862
59863         Make pwd and readlink work also when run with an unreadable parent dir
59864         on systems with openat support.
59865         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59866         provided getcwd function, even when we have openat support.
59867         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59868
59869 2007-02-02  Bruno Haible  <bruno@clisp.org>
59870
59871         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59872         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59873         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59874         portability problems if one of these functions is only used on specific
59875         platforms.
59876         Reported by Paul Eggert.
59877
59878 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59879
59880         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59881         is causing more trouble than it's curing.
59882         * lib/regex_internal.h (__mempcpy): Remove.
59883         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59884         (and make the code a tad smaller to boot).
59885         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59886
59887 2007-02-02  Jim Meyering  <jim@meyering.net>
59888
59889         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59890         section, not in the Makefile.am: one.
59891
59892 2007-02-02  Eric Blake  <ebb9@byu.net>
59893
59894         * lib/strchrnul.c: Always include config.h first.
59895
59896         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59897         gnulib strstr is not necessary here.
59898
59899 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59900
59901         * m4/socklen.m4: Fix typo.
59902
59903 2007-02-02  Eric Blake  <ebb9@byu.net>
59904
59905         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59906         * modules/netinet_in (Makefile.am): Likewise.
59907
59908 2007-02-01  Bruno Haible  <bruno@clisp.org>
59909
59910         * lib/string_.h (GL_LINK_WARNING): New macro.
59911         (strcasecmp, strstr, strcasestr): If provided by the system,
59912         conditionally define as a macro that leads to a warning instead of to
59913         an error.
59914         (strncasecmp): Conditionally define as a macro that leads to a warning.
59915
59916 2007-02-01  Karl Berry  <karl@gnu.org>
59917
59918         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59919
59920 2007-02-01  Bruno Haible  <bruno@clisp.org>
59921
59922         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59923         renamings.
59924
59925 2007-02-01  Eric Blake  <ebb9@byu.net>
59926
59927         * modules/regex (Depends-on): Revert dependence on mempcpy.
59928         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59929         module's definition of mempcpy.
59930         Reported by Paul Eggert.
59931
59932 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59933
59934         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59935         the symbol XYZ before redefining it.  This fixes a problem with
59936         programs that don't use XYZ, when compiled on systems that define
59937         XYZ to something else.
59938
59939 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59940
59941         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59942         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59943         writeable to group or other and (2) is intended to have a special
59944         mode bit that is set or cleared.  In such a case, the directory
59945         should be neither group- nor other-writeable until the special
59946         mode bits are right.
59947
59948 2007-01-31  Eric Blake  <ebb9@byu.net>
59949
59950         * modules/mountlist (Depends-on): Add strstr.
59951
59952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59953         bug.
59954         * modules/string (Makefile.am): Remove redundant replacement.
59955         * modules/regex (Depends-on): Add mempcpy.
59956
59957 2007-01-31  Bruno Haible  <bruno@clisp.org>
59958
59959         New module description field 'Link'.
59960         * gnulib-tool (func_usage): Document --extract-link-directive.
59961         (sed_extract_prog): Recognize 'Link' directive.
59962         (func_get_link_directive): New function.
59963         (func_import): Show summary of link directives.
59964         Handle --extract-link-directive option.
59965         * modules/acl (Link): New section.
59966         * modules/clock-time (Link): New section.
59967         * modules/euidaccess (Link): New section.
59968         * modules/gettext (Link): New section.
59969         * modules/iconv (Link): New section.
59970         * modules/lock (Link): New section.
59971         * modules/nanosleep (Link): New section.
59972         * modules/readline (Link): New section.
59973
59974 2007-01-27  Bruno Haible  <bruno@clisp.org>
59975
59976         Enforce the use of gnulib modules for unportable <string.h> functions.
59977         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59978         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59979         (gl_HEADER_STRING_H_BODY): Require it.
59980         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59981         the symbol XYZ to one that gives a link error.
59982         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59983         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59984         * modules/mempcpy (configure.ac): Likewise.
59985         * modules/memrchr (configure.ac): Likewise.
59986         * modules/stpcpy (configure.ac): Likewise.
59987         * modules/stpncpy (configure.ac): Likewise.
59988         * modules/strcase (configure.ac): Likewise.
59989         * modules/strcasestr (configure.ac): Likewise.
59990         * modules/strchrnul (configure.ac): Likewise.
59991         * modules/strdup (configure.ac): Likewise.
59992         * modules/strndup (configure.ac): Likewise.
59993         * modules/strnlen (configure.ac): Likewise.
59994         * modules/strpbrk (configure.ac): Likewise.
59995         * modules/strsep (configure.ac): Likewise.
59996         * modules/strstr (configure.ac): Likewise.
59997         * modules/strtok_r (configure.ac): Likewise.
59998
59999 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60000
60001         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60002
60003 2007-01-30  Jim Meyering  <jim@meyering.net>
60004
60005         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60006
60007 2007-01-29  Bruno Haible  <bruno@clisp.org>
60008
60009         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60010         * lib/execute.c: Likewise.
60011         * lib/pipe.c: Likewise.
60012         * lib/printf-args.h: Likewise.
60013         * lib/printf-args.c: Likewise.
60014         * lib/printf-parse.c: Likewise.
60015         * lib/vasnprintf.c: Likewise.
60016
60017 2007-01-29  Eric Blake  <ebb9@byu.net>
60018
60019         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60020         declaration.
60021
60022 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60023
60024         * lib/strptime.h (strptime): Use 'restrict' for args where
60025         POSIX requires this.
60026         * lib/strptime.c (strptime): Likewise.
60027         Change license notice from LGPL to GPL, since gnulib-tool will
60028         change this as needed.
60029         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60030         defined.
60031         Include "strptime.h" first, to check interface.
60032         Do not #undef _LIBC and _NL_CURRENT.
60033         Do not include <stdlib.h>; no longer needed.
60034         Include "time_r.h" and declare ptime_locale_status
60035         only if _LIBC is not defined.
60036         (__P): Remove unused macro.
60037         (match_string): Bring back glibc version, but use it only if _LIBC
60038         is defined.
60039         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60040         Remove unnecessary assertion and abort() call.
60041         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60042         * m4/strptime.m4: Fix serial number comment.
60043         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60044         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60045         (Depends-on): Add time_r.
60046
60047 2007-01-29  Bruno Haible  <bruno@clisp.org>
60048
60049         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60050         strptime.
60051         * modules/strptime (Depends-on): Add stdbool.
60052         * lib/strptime.h: Include <time.h> always. Add comments.
60053
60054 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60055
60056         * modules/strptime: New file.
60057         * lib/strptime.h: New file.
60058         * lib/strptime.c: New file.
60059         * m4/strptime.m4: New file.
60060
60061 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60062
60063         * MODULES.html.sh: New module mpsort.
60064         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60065
60066         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60067         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60068         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60069         All uses changed.
60070         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60071         All uses changed.
60072         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60073         to _Restrict_.
60074         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60075         the parameter matches the prototype.
60076
60077 2007-01-28  Jim Meyering  <jim@meyering.net>
60078
60079         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60080         sys/time.h here, reverting that part of the previous patch:
60081         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60082
60083 2007-01-28  Bruno Haible  <bruno@clisp.org>
60084
60085         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60086         value of $(SYS_TIME_H).
60087         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60088         remove it conditionally, too. [added by Jim Meyering]
60089         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60090         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60091         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60092         GETTIMEOFDAY_REPLACEMENT to 1.
60093
60094 2007-01-28  Bruno Haible  <bruno@clisp.org>
60095
60096         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60097         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60098         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60099         Set UNISTD_H instead of UNISTD_H2.
60100         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60101
60102 2007-01-28  Bruno Haible  <bruno@clisp.org>
60103
60104         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60105         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60106
60107 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60108
60109         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60110         (func_create_testdir): Ensure C locale for `grep' and `tr'
60111         character ranges.
60112         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60113         ACLOCAL_AMFLAGS parsing state machine.
60114
60115 2007-01-27  Bruno Haible  <bruno@clisp.org>
60116
60117         * modules/unistr/base: Update.
60118
60119 2007-01-27  Bruno Haible  <bruno@clisp.org>
60120
60121         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60122         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60123         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60124         modules/unistr/u32-mbtouc.
60125         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60126         * lib/unistr.h: Update.
60127         * lib/linebreak.c: Update.
60128         * modules/unistr/u32-mbtouc: Renamed from
60129         modules/unistr/u32-mbtouc-safe.
60130         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60131         * lib/unistr.h: Update.
60132         * lib/unistr/u32-to-u8.c: Update.
60133         * lib/unistr/u32-to-u16.c: Update.
60134
60135 2007-01-27  Bruno Haible  <bruno@clisp.org>
60136
60137         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60138         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60139         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60140         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60141         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60142         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60143         modules/unistr/u16-mbtouc.
60144         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60145         * lib/unistr.h: Update.
60146         * lib/linebreak.c: Update.
60147         * modules/linebreak: Update.
60148         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60149         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60150         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60151         * modules/unistr/u16-mbtouc: Renamed from
60152         modules/unistr/u16-mbtouc-safe.
60153         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60154         * lib/unistr.h: Update.
60155         * lib/unistr/u16-to-u8.c: Update.
60156         * modules/unistr/u16-to-u8: Update.
60157         * lib/unistr/u16-to-u32.c: Update.
60158         * modules/unistr/u16-to-u32: Update.
60159
60160 2007-01-27  Bruno Haible  <bruno@clisp.org>
60161
60162         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60163         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60164         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60165         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60166         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60167         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60168         modules/unistr/u8-mbtouc.
60169         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60170         * lib/unistr.h: Update.
60171         * lib/striconveh.c: Update.
60172         * modules/striconveh: Update.
60173         * lib/linebreak.c: Update.
60174         * modules/linebreak: Update.
60175         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60176         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60177         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60178         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60179         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60180         * lib/unistr.h: Update.
60181         * lib/striconveh.c: Update.
60182         * modules/striconveh: Update.
60183         * lib/unistr/u8-to-u16.c: Update.
60184         * modules/unistr/u8-to-u16: Update.
60185         * lib/unistr/u8-to-u32.c: Update.
60186         * modules/unistr/u8-to-u32: Update.
60187
60188 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60189
60190         Sync from Libtool.
60191         * lib/argz.c: Do not include strings.h nor memory.h, include
60192         string.h unconditionally.  Patch by Simon Josefsson.
60193
60194 2007-01-27  Bruno Haible  <bruno@clisp.org>
60195
60196         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60197         from gl_HEADER_STRING_H_BODY.
60198         (gl_HEADER_STRING_H_BODY): Require it.
60199         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60200         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60201         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60202         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60203         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60204         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60206         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60207         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60208         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60209         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60210         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60211         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60212         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60213         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60214
60215 2007-01-27  Bruno Haible  <bruno@clisp.org>
60216
60217         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60218         check_PROGRAMS into noinst_PROGRAMS.
60219         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60220         check_PROGRAMS in this case.
60221         (func_import): Set for_test to false.
60222         (func_create_testdir): Set for_test to true.
60223
60224 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60225             Bruno Haible  <bruno@clisp.org>
60226
60227         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60228         (Depends-on): Add string.
60229         (Includes): Use <string.h> instead of strcasestr.h.
60230         * modules/string (Makefile.am): Also substitute the value of
60231         REPLACE_STRCASESTR.
60232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60233         assume strcasestr is declared in <string.h> not <strings.h>. Also
60234         set REPLACE_STRCASESTR.
60235         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60236         REPLACE_STRCASESTR.
60237         * lib/strcasestr.h: Remove file.
60238         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60239         * lib/string_.h (strcasestr): New declaration.
60240
60241 2007-01-27  Bruno Haible  <bruno@clisp.org>
60242
60243         * lib/string_.h: Use 'extern'.
60244
60245 2007-01-27  Jim Meyering  <jim@meyering.net>
60246
60247         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60248         of set-but-not-used local, "q".
60249
60250         * lib/mempcpy.c: Include <config.h> before <string.h>.
60251         This fixes a compilation error on HP-UX, due to the system's
60252         "restrict"-using mempcpy prototype.
60253
60254 2007-01-26  Bruno Haible  <bruno@clisp.org>
60255
60256         Small optimization.
60257         * lib/javacomp.c: Include c-strstr.h.
60258          (is_envjavac_gcj): Use c_strstr instead of strstr.
60259         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60260
60261 2007-01-26  Bruno Haible  <bruno@clisp.org>
60262
60263         * MODULES.html.sh (Unicode string functions): Add the new modules.
60264
60265         * modules/uniconv/u32-strconv-to-locale: New file.
60266         * lib/uniconv/u32-strconv-to-locale.c: New file.
60267
60268         * modules/uniconv/u16-strconv-to-locale: New file.
60269         * lib/uniconv/u16-strconv-to-locale.c: New file.
60270
60271         * modules/uniconv/u8-strconv-to-locale: New file.
60272         * lib/uniconv/u8-strconv-to-locale.c: New file.
60273
60274         * modules/uniconv/u32-strconv-from-locale: New file.
60275         * lib/uniconv/u32-strconv-from-locale.c: New file.
60276
60277         * modules/uniconv/u16-strconv-from-locale: New file.
60278         * lib/uniconv/u16-strconv-from-locale.c: New file.
60279
60280         * modules/uniconv/u8-strconv-from-locale: New file.
60281         * lib/uniconv/u8-strconv-from-locale.c: New file.
60282
60283         * modules/uniconv/u32-strconv-to-enc: New file.
60284         * lib/uniconv/u32-strconv-to-enc.c: New file.
60285         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60286         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60287
60288         * modules/uniconv/u16-strconv-to-enc: New file.
60289         * lib/uniconv/u16-strconv-to-enc.c: New file.
60290         * lib/uniconv/u-strconv-to-enc.h: New file.
60291         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60292         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60293
60294         * modules/uniconv/u8-strconv-to-enc: New file.
60295         * lib/uniconv/u8-strconv-to-enc.c: New file.
60296         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60297         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60298
60299         * modules/uniconv/u32-strconv-from-enc: New file.
60300         * lib/uniconv/u32-strconv-from-enc.c: New file.
60301         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60302         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60303
60304         * modules/uniconv/u16-strconv-from-enc: New file.
60305         * lib/uniconv/u16-strconv-from-enc.c: New file.
60306         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60307         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60308
60309         * modules/uniconv/u8-strconv-from-enc: New file.
60310         * lib/uniconv/u8-strconv-from-enc.c: New file.
60311         * lib/uniconv/u-strconv-from-enc.h: New file.
60312         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60313         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60314
60315         * modules/uniconv/u32-conv-from-enc: New file.
60316         * lib/uniconv/u32-conv-from-enc.c: New file.
60317         * modules/uniconv/u32-conv-from-enc-tests: New file.
60318         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60319
60320         * modules/uniconv/u16-conv-from-enc: New file.
60321         * lib/uniconv/u16-conv-from-enc.c: New file.
60322         * lib/uniconv/u-conv-from-enc.h: New file.
60323         * modules/uniconv/u16-conv-from-enc-tests: New file.
60324         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60325
60326         * modules/uniconv/u8-conv-from-enc: New file.
60327         * lib/uniconv/u8-conv-from-enc.c: New file.
60328         * modules/uniconv/u8-conv-from-enc-tests: New file.
60329         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60330
60331         * modules/uniconv/base: New file.
60332         * lib/uniconv.h: New file.
60333
60334 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60335
60336         * doc/gnulib-tool.texi (Initial import): Update to match current
60337         behavior with strdup module.
60338         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60339         * lib/memmem.h: Remove; all uses removed.  This is now done
60340         by <string.h>.
60341         * lib/mempcpy.h: Likewise.
60342         * lib/memrchr.h: Likewise.
60343         * lib/stpcpy.h: Likewise.
60344         * lib/stpncpy.h: Likewise.
60345         * lib/strcase.h: Likewise.
60346         * lib/strchrnul.h: Likewise.
60347         * lib/strdup.h: Likewise.
60348         * lib/strndup.h: Likewise.
60349         * lib/strnlen.h: Likewise.
60350         * lib/strpbrk.h: Likewise.
60351         * lib/strsep.h: Likewise.
60352         * lib/strstr.h: Likewise.
60353         * lib/strtok_r.h: Likewise.
60354         * lib/string_.h: New file.
60355         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60356         Rely on <string.h> instead.
60357         * lib/canon-host.c: Likewise.
60358         * lib/chdir-long.c: Likewise.
60359         * lib/concatpath.c: Likewise.
60360         * lib/exclude.c: Likewise.
60361         * lib/fchdir.c: Likewise.
60362         * lib/getaddrinfo.c: Likewise.
60363         * lib/getcwd.c: Likewise.
60364         * lib/getsubopt.c: Likewise.
60365         * lib/glob.c: Likewise.
60366         * lib/hard-locale.c: Likewise.
60367         * lib/iconvme.c: Likewise.
60368         * lib/javacomp.c: Likewise.
60369         * lib/mempcpy.c: Likewise.
60370         * lib/memrchr.c: Likewise.
60371         * lib/regex_internal.h: Likewise.
60372         * lib/stpncpy.c: Likewise.
60373         * lib/strcasecmp.c: Likewise.
60374         * lib/strchrnul.c: Likewise.
60375         * lib/strdup.c: Likewise.
60376         * lib/striconv.c: Likewise.
60377         * lib/striconveh.c: Likewise.
60378         * lib/striconveha.c: Likewise.
60379         * lib/strncasecmp.c: Likewise.
60380         * lib/strndup.c: Likewise.
60381         * lib/strnlen.c: Likewise.
60382         * lib/strsep.c: Likewise.
60383         * lib/strstr.c: Likewise.
60384         * lib/strtok_r.c: Likewise.
60385         * lib/userspec.c: Likewise.
60386         * lib/w32spawn.h: Likewise.
60387         * lib/xstrndup.c: Likewise.
60388         * lib/mountlist.c (strstr): Remove decl.
60389         * m4/string_h.m4: New file.
60390         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60391         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60392         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60393         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60394         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60395         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60396         Set REPLACE_STRCASECMP if necessary.
60397         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60398         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60399         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60400         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60401         HAVE_DECL_STRDUP if necessary.
60402         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60403         since gl_FUNC_STRNDUP does that now.
60404         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60405         Check for decl here...
60406         (gl_PREREQ_STRNLEN): ... not here.
60407         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60408         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60409         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60410         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60411         necessary.
60412         * modules/string: New file.
60413         * modules/memmem (Files): Remove special-purpose include file.
60414         (Depends-on): Add string.
60415         (Include): Include <string.h>, not the removed file.
60416         * modules/mempcpy: Likewise.
60417         * modules/memrchr: Likewise.
60418         * modules/stpcpy: Likewise.
60419         * modules/stpncpy: Likewise.
60420         * modules/strcase: Likewise.
60421         * modules/strchrnul: Likewise.
60422         * modules/strdup: Likewise.
60423         * modules/strndup: Likewise.
60424         * modules/strnlen: Likewise.
60425         * modules/strpbrk: Likewise.
60426         * modules/strsep: Likewise.
60427         * modules/strstr: Likewise.
60428         * modules/strtok_r: Likewise.
60429         * tests/test-dirname.c: Don't include "strdup.h", since
60430         <string.h> now suffices.
60431         * tests/test-memmem.c: Don't include "memmem.h", since
60432         <string.h> now suffices.
60433
60434 2007-01-25  Bruno Haible  <bruno@clisp.org>
60435
60436         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60437         *resultp is 0.
60438
60439         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60440         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60441         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60442         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60443
60444         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60445         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60446         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60447         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60448         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60449         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60450
60451 2007-01-24  Bruno Haible  <bruno@clisp.org>
60452
60453         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60454         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60455         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60456         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60457         gl_FUNC_FTS_CORE.
60458         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60459         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60460         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60461         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60462         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60463         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60464         gl_FUNC_FCHOWNAT.
60465         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60466         gl_FUNC_STRFTIME.
60467         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60468         Reported by Ralf Wildenhues.
60469
60470 2007-01-24  Bruno Haible  <bruno@clisp.org>
60471
60472         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60473         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60474         gl_GETADDRINFO.
60475         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60476         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60477         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60478
60479 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60480
60481         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60482         Don't use 'exit'; just return from 'main'.
60483         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60484
60485         * lib/fnmatch_.h: Readjust white space and comments to match
60486         glibc, to avoid spurious diffs.
60487
60488 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60489
60490         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60491         2004-12-01 change by Jakub Jelinek, since this code won't compile
60492         if !LIBC.  Problem reported by Bob Proulx.
60493
60494 2007-01-23  Bruno Haible  <bruno@clisp.org>
60495
60496         * lib/striconveh.c: Include c-strcaseeq.h.
60497         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60498         * modules/striconveh (Depends-on): Add c-strcaseeq.
60499
60500 2007-01-23  Bruno Haible  <bruno@clisp.org>
60501
60502         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60503
60504         * modules/c-strcaseeq: New file.
60505         * lib/c-strcaseeq.h: New file.
60506
60507         * modules/streq: New file.
60508         * lib/streq.h: New file.
60509
60510 2007-01-23  Bruno Haible  <bruno@clisp.org>
60511
60512         * modules/striconveha-tests: New file.
60513         * tests/test-striconveha.c: New file.
60514
60515         * lib/striconveha.h: Include <stdbool.h>.
60516         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60517         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60518         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60519         (mem_iconveha): New function.
60520         (str_iconveha_notranslit): Renamed from str_iconveha.
60521         (str_iconveha): New function.
60522         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60523         c-strcase.
60524
60525 2007-01-23  Bruno Haible  <bruno@clisp.org>
60526
60527         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60528         encodings without forgiving before trying any encoding with handler.
60529         (str_iconveha): Try all encodings without forgiving before trying any
60530         encoding with handler.
60531
60532 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60533
60534         Import the following changes from libc.
60535
60536         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60537
60538         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60539
60540         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60541
60542         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60543         normal_bracket label.
60544
60545         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60546
60547         [BZ #361]
60548         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60549         to normal_bracket after fetching the next character.
60550
60551 2007-01-22  Bruno Haible  <bruno@clisp.org>
60552
60553         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60554         argument.
60555         * lib/striconveh.c (iconv_carefully_1): New function.
60556         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60557         argument.
60558         (str_cd_iconveh): Update.
60559         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60560         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60561         * tests/test-striconveh.c (MAGIC): New macro.
60562         (new_offsets): New function.
60563         (main): Test call with and without offsets.
60564
60565 2007-01-22  Bruno Haible  <bruno@clisp.org>
60566
60567         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60568         * modules/sys_select (Makefile.am): Likewise.
60569         * modules/sys_socket (Makefile.am): Likewise.
60570         * modules/sys_time (Makefile.am): Likewise.
60571
60572 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60573
60574         * modules/gettimeofday (License): Change from GPL to LGPL, since
60575         gettimeofday is a library function.
60576
60577 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60578
60579         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60580
60581 2007-01-21  Bruno Haible  <bruno@clisp.org>
60582
60583         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60584
60585 2007-01-21  Bruno Haible  <bruno@clisp.org>
60586
60587         * modules/striconveha: New file.
60588         * lib/striconveha.h: New file.
60589         * lib/striconveha.c: New file.
60590         * MODULES.html.sh (Internationalization functions): Add striconveha.
60591         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60592         string.
60593         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60594
60595 2007-01-21  Bruno Haible  <bruno@clisp.org>
60596
60597         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60598         * lib/striconveh.c (str_iconveh): Likewise.
60599
60600 2007-01-21  Bruno Haible  <bruno@clisp.org>
60601
60602         * lib/striconveh.h (mem_iconveh): New declaration.
60603         * lib/striconveh.c (mem_iconveh): New function.
60604         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60605
60606 2007-01-21  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60609
60610         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60611         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60612         original result buffer.
60613         (str_cd_iconveh): Update.
60614         * tests/test-striconveh.c (main): Update.
60615
60616         * lib/striconv.h (mem_cd_iconv): Change specification.
60617         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60618         result buffer.
60619         (str_cd_iconv): Update.
60620         * tests/test-striconv.c (main): Update.
60621
60622 2007-01-21  Bruno Haible  <bruno@clisp.org>
60623
60624         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60625
60626 2007-01-20  Jim Meyering  <jim@meyering.net>
60627
60628         * lib/userspec.c (parse_with_separator): If a user or group string
60629         starts with "+", skip the corresponding name-to-ID look-up, since
60630         such a look-up must fail: user and group names may not include "+".
60631
60632 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60633
60634         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60635         since we now assume the sys_time module.
60636         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60637         check for sys/time.h; no longer needed.
60638         * modules/poll (Depends-on): Depend on sys_time.
60639
60640 2007-01-18  Bruno Haible  <bruno@clisp.org>
60641
60642         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60643         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60644
60645         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60646         gettimeofday.
60647
60648         * tests/test-gettimeofday.c: Include <time.h>.
60649         (dummy): Remove variable.
60650
60651         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60652         gl_HEADER_SYS_TIME_H.
60653         (gl_HEADER_SYS_TIME_H): New macro.
60654
60655         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60656         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60657         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60658         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60659         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60660         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60661         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60662         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60663         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60664         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60665         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60666
60667         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60668         last change; it caused a compilation error when cross-compiling to
60669         Cygwin.
60670
60671 2007-01-18  Jim Meyering  <jim@meyering.net>
60672
60673         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60674         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60675         than the race-prone "test -d sys || mkdir sys".
60676         (configure.ac): Use AC_PROG_MKDIR_P.
60677         * modules/sys_select: Likewise.
60678         * modules/sys_socket: Likewise.
60679         * modules/sys_time: Likewise.
60680
60681 2007-01-18  Eric Blake  <ebb9@byu.net>
60682
60683         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60684         replace gettimeofday.
60685         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60686         name, to avoid infinite recursion.
60687
60688 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60689
60690         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60691         module sys_time.
60692         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60693         assume timespec.h defines struct timeval.
60694         * lib/settime.c: Likewise.
60695         * lib/utimens.c: Likewise.
60696         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60697         since we now assume the gettimeofday module.
60698         * lib/tempname.c (__gen_tempname): Likewise.
60699         * lib/gettimeofday.h: Remove.
60700         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60701         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60702         Include <time.h>, for 'time()'.
60703         (localtime_buffer_addr): Also use this workaround if
60704         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60705         to simplify the uses.  All uses changed.
60706         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60707         that #undef is inside {}, and 'const' follows type name consistently.
60708         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60709         (gettimeofday): Do not use the maximum possible value for
60710         tv->tv_usec, since that might break usages other than ls.c.
60711         Instead, we'll leave ls.c alone.  This undoes today's patch
60712         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60713         we've never observed the problem but might as well keep the
60714         canary.
60715         * lib/nanosleep.c: Include timespec.h first, for interface check.
60716         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60717         now assume the sys_time module.
60718         * lib/tempname.c: Likewise.
60719         * lib/timespec.h: Likewise.
60720         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60721         needed.
60722         * lib/strftime.c: Likewise.
60723         * lib/timespec.h: Likewise.
60724         * lib/posixtm.c: Include posixtm.h first, for interface check.
60725         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60726         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60727         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60728         * lib/sys_time_.h: New file.
60729         * lib/timespec.h (struct timespec): Use long int, not long.
60730         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60731         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60732         Remove obsolescent call to AC_HEADER_TIME.
60733         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60735         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60736         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60737         Likewise.
60738         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60739         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60740         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60741         into the sys_time module.  Check for gettimeofday just once.
60742         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60743         for gettimeofday signature to just check the signature.  Merely
60744         compile it, since linking doesn't test signature.  Improve test for
60745         whether gettimeofday.o is actually needed.
60746         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60747         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60748         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60749         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60750         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60751         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60752         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60753         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60754         than worrying about sys/time.h.
60755         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60756         Don't bother worrying about TIME_WITH_SYS_TIME.
60757         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60758         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60759         * m4/sys_time_h.m4: New file.
60760         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60761         Don't include sys/time.h.  Return from main rather than exiting.
60762         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60763         all uses changed.
60764         * modules/gethrxtime (Depends-on): Add sys_time.
60765         * modules/gettime (Depends-on): Likewise.
60766         * modules/gettimeofday (Depends-on): Likewise.
60767         * modules/nanosleep (Depends-on): Likewise.
60768         * modules/settime (Depends-on): Likewise.
60769         * modules/tempname (Depends-on): Likewise.
60770         * modules/utimens (Depends-on): Likewise.
60771         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60772         (Include): Change back to <sys/time.h>.
60773         (Maintainer): Add self.
60774         * modules/sys_time: New file.
60775         * modules/tempname (Depends-on): Add gettimeofday.
60776         * tests/test-gettimeofday.c: Include <sys/time.h>
60777         rather than gettimeofday.h.
60778
60779 2007-01-17  Bruno Haible  <bruno@clisp.org>
60780
60781         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60782         the license default to GPL.
60783         (func_create_testdir): Don't complain if a module is LGPL and its
60784         tests module depends on GPLed modules.
60785
60786 2007-01-17  Bruno Haible  <bruno@clisp.org>
60787
60788         * lib/gettimeofday.c (gettimeofday): Add code for the case
60789         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60790         maximum possible value for tv->tv_usec, rather than the minimum one.
60791
60792 2005-10-08  Martin Lambers  <marlam@marlam.de>
60793 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60794 2007-01-16  Bruno Haible  <bruno@clisp.org>
60795
60796         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60797         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60798         gl_FUNC_GETTIMEOFDAY.
60799         (Include): Add gettimeofday.h.
60800         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60801         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60802         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60803         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60804         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60805         * lib/gettimeofday.h: New file.
60806         * lib/gettimeofday.c: Include <sys/timeb.h>.
60807         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60808         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60809         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60810         fall back on time().
60811
60812         * tests/test-gettimeofday.c: New file.
60813         * modules/gettimeofday-tests: New file.
60814
60815 2007-01-16  Eric Blake  <ebb9@byu.net>
60816
60817         * modules/fnmatch (Depends-on): Depend on wchar.
60818         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60819         * m4/fnmatch.m4: Likewise.
60820         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60821         * m4/mbchar.m4: Likewise.
60822         * modules/mbswidth (Depends-on): Depend on wchar.
60823         * lib/mbswidth.c: Assume <wchar.h>.
60824         * m4/mbswidth.m4: Likewise.
60825         * modules/quotearg (Depends-on): Depend on wchar.
60826         * lib/quotearg.c: Assume <wchar.h>.
60827         * m4/quotearg.m4: Likewise.
60828         * modules/regex (Depends-on): Depend on wchar.
60829         * lib/regex_internal.h: Assume <wchar.h>.
60830         * m4/regex.m4: Likewise.
60831         * modules/stdint (Depends-on): Depend on wchar.
60832         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60833         * m4/stdint.m4: Likewise.
60834         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60835         * modules/strftime (Depends-on): Depend on wchar.
60836         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60837         * modules/strtol (Depends-on): Depend on wchar.
60838         * lib/strtol.c: Assume <wchar.h>.
60839         * modules/wcwidth (Depends-on): Depend on wchar.
60840         * lib/wcwidth.h: Assume <wchar.h>.
60841         * m4/wcwidth.m4: Likewise.
60842
60843 2007-01-16  Bruno Haible  <bruno@clisp.org>
60844
60845         * modules/csharpexec-script: New, created from...
60846         * modules/csharpexec: ... this.
60847
60848 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60849
60850         * modules/javaexec-script: New, created from...
60851         * modules/javaexec: ... this.
60852
60853 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60854
60855         * modules/poll (Dependencies): Add sys_select.
60856
60857 2007-01-15  Jim Meyering  <jim@meyering.net>
60858
60859         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60860         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60861         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60862         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60863
60864 2007-01-15  Bruno Haible  <bruno@clisp.org>
60865
60866         * modules/striconveh: New file.
60867         * lib/striconveh.h: New file.
60868         * lib/striconveh.c: New file.
60869         * MODULES.html.sh (Internationalization functions): Add striconveh.
60870
60871         * modules/striconveh-tests: New file.
60872         * tests/test-striconveh.c: New file.
60873
60874 2007-01-15  Bruno Haible  <bruno@clisp.org>
60875
60876         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60877         not from GNU libiconv or GNU libc.
60878
60879 2007-01-15  Bruno Haible  <bruno@clisp.org>
60880
60881         * doc/gnulib-intro.texi (Copyright): Explain the different license
60882         terms for module descriptions, autoconf macros, tests, documentation.
60883
60884 2007-01-14  Bruno Haible  <bruno@clisp.org>
60885
60886         * modules/striconv-tests: New file.
60887         * tests/test-striconv.c: New file.
60888
60889 2007-01-14  Bruno Haible  <bruno@clisp.org>
60890
60891         * modules/iconv-tests: New file.
60892         * tests/test-iconv.c: New file.
60893
60894 2007-01-14  Bruno Haible  <bruno@clisp.org>
60895
60896         * gnulib-tool (func_get_license): For test modules, use the license of
60897         the main module.
60898
60899 2007-01-14  Bruno Haible  <bruno@clisp.org>
60900
60901         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60902         if iconv is found to exist.
60903
60904 2007-01-14  Bruno Haible  <bruno@clisp.org>
60905
60906         * modules/c-ctype-tests: New file.
60907         * tests/test-c-ctype.c: New file.
60908
60909 2007-01-14  Bruno Haible  <bruno@clisp.org>
60910
60911         * modules/binary-io-tests: New file.
60912         * tests/test-binary-io.sh: New file.
60913         * tests/test-binary-io.c: New file.
60914
60915 2007-01-14  Bruno Haible  <bruno@clisp.org>
60916
60917         * modules/array-oset-tests: New file.
60918         * tests/test-array_oset.c: New file.
60919
60920 2007-01-14  Bruno Haible  <bruno@clisp.org>
60921
60922         * modules/array-list-tests: New file.
60923         * tests/test-array_list.c: New file.
60924
60925 2007-01-14  Bruno Haible  <bruno@clisp.org>
60926
60927         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60928         and make.
60929         Reported by Simon Josefsson in
60930         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60931
60932 2007-01-14  Bruno Haible  <bruno@clisp.org>
60933
60934         * modules/allocsa-tests: New file.
60935         * tests/test-allocsa.c: New file.
60936
60937 2007-01-14  Bruno Haible  <bruno@clisp.org>
60938
60939         * modules/fchdir (Depends-on): Add absolute-header.
60940         * modules/unistd (Depends-on): Likewise.
60941
60942 2006-12-30  Bruno Haible  <bruno@clisp.org>
60943
60944         * modules/fchdir: New file.
60945         * modules/unistd (Files): Add lib/unistd_.h.
60946         (Makefile.am): Generate unistd.h from unistd_.h.
60947         * lib/fchdir.c: New file.
60948         * lib/dirent_.h: New file.
60949         * lib/unistd_.h: New file.
60950         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60951         * m4/fchdir.m4: New file.
60952         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60953         (gl_HEADER_UNISTD): Invoke it.
60954         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60955         function.
60956         * lib/backupfile.c (opendir, closedir): Undefine.
60957         * lib/chown.c (open, close): Undefine.
60958         * lib/clean-temp.c (open, close): Undefine.
60959         * lib/copy-file.c (open, close): Undefine.
60960         * lib/execute.c (open, close): Undefine.
60961         * lib/fsusage.c (open, close): Undefine.
60962         * lib/gc-gnulib.c (open, close): Undefine.
60963         * lib/getcwd.c (opendir, closedir): Undefine.
60964         * lib/glob.c (opendir, closedir): Undefine.
60965         * lib/javacomp.c (open, close): Undefine.
60966         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60967         * lib/openat-proc.c (open, close): Undefine.
60968         * lib/pagealign_alloc.c (open, close): Undefine.
60969         * lib/pipe.c (open, close): Undefine.
60970         * lib/progreloc.c (open, close): Undefine.
60971         * lib/savedir.c (opendir, closedir): Undefine.
60972         * lib/utime.c (open, close): Undefine.
60973         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60974
60975 2007-01-10  Bruno Haible  <bruno@clisp.org>
60976
60977         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60978
60979 2007-01-12  Eric Blake  <ebb9@byu.net>
60980
60981         Provide a robust <wchar.h>.  Further simplifications are now
60982         possible in other modules, but not included here.
60983         * modules/wchar: New module.
60984         * m4/wchar.m4: New file.
60985         * lib/wchar_.h: Likewise.
60986         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60987         of the new module.
60988         * MODULES.html.sh (Extended multibyte and wide character utilities):
60989         New section.
60990
60991 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60992
60993         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60994         to a reasonable default for memory allocation.
60995         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60996         file system that reports garbage st_size values for symlinks.
60997         Problem reported by Liyang Hu.
60998
60999 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61000
61001         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61002         Emacs .#* auto-save files).
61003
61004 2007-01-11  Bruno Haible  <bruno@clisp.org>
61005
61006         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61007         directory.
61008
61009 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61010
61011         Use @...@ consistently in lib/wctype_.h.
61012         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61013         on it being set to 1 or 0.
61014         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61015         go back to AC_SUBSTing it.
61016         * modules/wctype (Makefile.am): Undo previous change.
61017
61018 2007-01-10  Eric Blake  <ebb9@byu.net>
61019
61020         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61021         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61022         * modules/wctype (Makefile.am): Likewise.
61023         Reported by Chris McGuire.
61024
61025 2007-01-10  Jim Meyering  <jim@meyering.net>
61026
61027         fts.c: a small readability/maintainability improvement
61028         * lib/fts.c (fts_read): Make this code slightly more readable and
61029         maintainable by hoisting the "sp->fts_cur = p" assignments to
61030         immediately follow the statements that set P.  Derived from
61031         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61032
61033 2007-01-10  Eric Blake  <ebb9@byu.net>
61034
61035         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61036         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61038         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61039         Reported by Chris McGuire.
61040
61041 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61042
61043         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61044         in sed script.
61045
61046 2007-01-09  Bruno Haible  <bruno@clisp.org>
61047
61048         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61049         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61050         variables.
61051         (func_module): Use them.
61052
61053 2007-01-09  Bruno Haible  <bruno@clisp.org>
61054
61055         * modules/unistr/base: New file.
61056         * lib/unistr.h: New file.
61057
61058         * modules/unistr/u8-to-u16: New file.
61059         * lib/unistr/u8-to-u16.c: New file.
61060
61061         * modules/unistr/u8-to-u32: New file.
61062         * lib/unistr/u8-to-u32.c: New file.
61063
61064         * modules/unistr/u16-to-u8: New file.
61065         * lib/unistr/u16-to-u8.c: New file.
61066
61067         * modules/unistr/u16-to-u32: New file.
61068         * lib/unistr/u16-to-u32.c: New file.
61069
61070         * modules/unistr/u32-to-u8: New file.
61071         * lib/unistr/u32-to-u8.c: New file.
61072
61073         * modules/unistr/u32-to-u16: New file.
61074         * lib/unistr/u32-to-u16.c: New file.
61075
61076         * modules/unistr/u8-check: New file.
61077         * modules/unistr/u16-check: New file.
61078         * modules/unistr/u32-check: New file.
61079         * lib/unistr/u8-check.c: New file.
61080         * lib/unistr/u16-check.c: New file.
61081         * lib/unistr/u32-check.c: New file.
61082
61083         * modules/unistr/u8-chr: New file.
61084         * modules/unistr/u16-chr: New file.
61085         * modules/unistr/u32-chr: New file.
61086         * lib/unistr/u8-chr.c: New file.
61087         * lib/unistr/u16-chr.c: New file.
61088         * lib/unistr/u32-chr.c: New file.
61089
61090         * modules/unistr/u8-cmp: New file.
61091         * modules/unistr/u16-cmp: New file.
61092         * modules/unistr/u32-cmp: New file.
61093         * lib/unistr/u8-cmp.c: New file.
61094         * lib/unistr/u16-cmp.c: New file.
61095         * lib/unistr/u32-cmp.c: New file.
61096
61097         * modules/unistr/u8-cpy: New file.
61098         * modules/unistr/u16-cpy: New file.
61099         * modules/unistr/u32-cpy: New file.
61100         * lib/unistr/u8-cpy.c: New file.
61101         * lib/unistr/u16-cpy.c: New file.
61102         * lib/unistr/u32-cpy.c: New file.
61103         * lib/unistr/u-cpy.h: New file.
61104
61105         * modules/unistr/u8-cpy-alloc: New file.
61106         * modules/unistr/u16-cpy-alloc: New file.
61107         * modules/unistr/u32-cpy-alloc: New file.
61108         * lib/unistr/u8-cpy-alloc.c: New file.
61109         * lib/unistr/u16-cpy-alloc.c: New file.
61110         * lib/unistr/u32-cpy-alloc.c: New file.
61111         * lib/unistr/u-cpy-alloc.h: New file.
61112
61113         * modules/unistr/u8-endswith: New file.
61114         * modules/unistr/u16-endswith: New file.
61115         * modules/unistr/u32-endswith: New file.
61116         * lib/unistr/u8-endswith.c: New file.
61117         * lib/unistr/u16-endswith.c: New file.
61118         * lib/unistr/u32-endswith.c: New file.
61119         * lib/unistr/u-endswith.h: New file.
61120
61121         * modules/unistr/u8-mblen: New file.
61122         * modules/unistr/u16-mblen: New file.
61123         * modules/unistr/u32-mblen: New file.
61124         * lib/unistr/u8-mblen.c: New file.
61125         * lib/unistr/u16-mblen.c: New file.
61126         * lib/unistr/u32-mblen.c: New file.
61127
61128         * modules/unistr/u8-mbtouc: New file.
61129         * modules/unistr/u16-mbtouc: New file.
61130         * modules/unistr/u32-mbtouc: New file.
61131         * lib/unistr/u8-mbtouc.c: New file.
61132         * lib/unistr/u16-mbtouc.c: New file.
61133         * lib/unistr/u32-mbtouc.c: New file.
61134
61135         * modules/unistr/u8-mbtouc-safe: New file.
61136         * modules/unistr/u16-mbtouc-safe: New file.
61137         * modules/unistr/u32-mbtouc-safe: New file.
61138         * lib/unistr/u8-mbtouc-safe.c: New file.
61139         * lib/unistr/u16-mbtouc-safe.c: New file.
61140         * lib/unistr/u32-mbtouc-safe.c: New file.
61141
61142         * modules/unistr/u8-move: New file.
61143         * modules/unistr/u16-move: New file.
61144         * modules/unistr/u32-move: New file.
61145         * lib/unistr/u8-move.c: New file.
61146         * lib/unistr/u16-move.c: New file.
61147         * lib/unistr/u32-move.c: New file.
61148         * lib/unistr/u-move.h: New file.
61149
61150         * modules/unistr/u8-next: New file.
61151         * modules/unistr/u16-next: New file.
61152         * modules/unistr/u32-next: New file.
61153         * lib/unistr/u8-next.c: New file.
61154         * lib/unistr/u16-next.c: New file.
61155         * lib/unistr/u32-next.c: New file.
61156
61157         * modules/unistr/u8-prev: New file.
61158         * modules/unistr/u16-prev: New file.
61159         * modules/unistr/u32-prev: New file.
61160         * lib/unistr/u8-prev.c: New file.
61161         * lib/unistr/u16-prev.c: New file.
61162         * lib/unistr/u32-prev.c: New file.
61163
61164         * modules/unistr/u8-set: New file.
61165         * modules/unistr/u16-set: New file.
61166         * modules/unistr/u32-set: New file.
61167         * lib/unistr/u8-set.c: New file.
61168         * lib/unistr/u16-set.c: New file.
61169         * lib/unistr/u32-set.c: New file.
61170         * lib/unistr/u-set.h: New file.
61171
61172         * modules/unistr/u8-startswith: New file.
61173         * modules/unistr/u16-startswith: New file.
61174         * modules/unistr/u32-startswith: New file.
61175         * lib/unistr/u8-startswith.c: New file.
61176         * lib/unistr/u16-startswith.c: New file.
61177         * lib/unistr/u32-startswith.c: New file.
61178         * lib/unistr/u-startswith.h: New file.
61179
61180         * modules/unistr/u8-stpcpy: New file.
61181         * modules/unistr/u16-stpcpy: New file.
61182         * modules/unistr/u32-stpcpy: New file.
61183         * lib/unistr/u8-stpcpy.c: New file.
61184         * lib/unistr/u16-stpcpy.c: New file.
61185         * lib/unistr/u32-stpcpy.c: New file.
61186         * lib/unistr/u-stpcpy.h: New file.
61187
61188         * modules/unistr/u8-stpncpy: New file.
61189         * modules/unistr/u16-stpncpy: New file.
61190         * modules/unistr/u32-stpncpy: New file.
61191         * lib/unistr/u8-stpncpy.c: New file.
61192         * lib/unistr/u16-stpncpy.c: New file.
61193         * lib/unistr/u32-stpncpy.c: New file.
61194         * lib/unistr/u-stpncpy.h: New file.
61195
61196         * modules/unistr/u8-strcat: New file.
61197         * modules/unistr/u16-strcat: New file.
61198         * modules/unistr/u32-strcat: New file.
61199         * lib/unistr/u8-strcat.c: New file.
61200         * lib/unistr/u16-strcat.c: New file.
61201         * lib/unistr/u32-strcat.c: New file.
61202         * lib/unistr/u-strcat.h: New file.
61203
61204         * modules/unistr/u8-strchr: New file.
61205         * modules/unistr/u16-strchr: New file.
61206         * modules/unistr/u32-strchr: New file.
61207         * lib/unistr/u8-strchr.c: New file.
61208         * lib/unistr/u16-strchr.c: New file.
61209         * lib/unistr/u32-strchr.c: New file.
61210
61211         * modules/unistr/u8-strcmp: New file.
61212         * modules/unistr/u16-strcmp: New file.
61213         * modules/unistr/u32-strcmp: New file.
61214         * lib/unistr/u8-strcmp.c: New file.
61215         * lib/unistr/u16-strcmp.c: New file.
61216         * lib/unistr/u32-strcmp.c: New file.
61217
61218         * modules/unistr/u8-strcpy: New file.
61219         * modules/unistr/u16-strcpy: New file.
61220         * modules/unistr/u32-strcpy: New file.
61221         * lib/unistr/u8-strcpy.c: New file.
61222         * lib/unistr/u16-strcpy.c: New file.
61223         * lib/unistr/u32-strcpy.c: New file.
61224         * lib/unistr/u-strcpy.h: New file.
61225
61226         * modules/unistr/u8-strcspn: New file.
61227         * modules/unistr/u16-strcspn: New file.
61228         * modules/unistr/u32-strcspn: New file.
61229         * lib/unistr/u8-strcspn.c: New file.
61230         * lib/unistr/u16-strcspn.c: New file.
61231         * lib/unistr/u32-strcspn.c: New file.
61232         * lib/unistr/u-strcspn.h: New file.
61233
61234         * modules/unistr/u8-strdup: New file.
61235         * modules/unistr/u16-strdup: New file.
61236         * modules/unistr/u32-strdup: New file.
61237         * lib/unistr/u8-strdup.c: New file.
61238         * lib/unistr/u16-strdup.c: New file.
61239         * lib/unistr/u32-strdup.c: New file.
61240         * lib/unistr/u-strdup.h: New file.
61241
61242         * modules/unistr/u8-strlen: New file.
61243         * modules/unistr/u16-strlen: New file.
61244         * modules/unistr/u32-strlen: New file.
61245         * lib/unistr/u8-strlen.c: New file.
61246         * lib/unistr/u16-strlen.c: New file.
61247         * lib/unistr/u32-strlen.c: New file.
61248         * lib/unistr/u-strlen.h: New file.
61249
61250         * modules/unistr/u8-strmblen: New file.
61251         * modules/unistr/u16-strmblen: New file.
61252         * modules/unistr/u32-strmblen: New file.
61253         * lib/unistr/u8-strmblen.c: New file.
61254         * lib/unistr/u16-strmblen.c: New file.
61255         * lib/unistr/u32-strmblen.c: New file.
61256
61257         * modules/unistr/u8-strmbtouc: New file.
61258         * modules/unistr/u16-strmbtouc: New file.
61259         * modules/unistr/u32-strmbtouc: New file.
61260         * lib/unistr/u8-strmbtouc.c: New file.
61261         * lib/unistr/u16-strmbtouc.c: New file.
61262         * lib/unistr/u32-strmbtouc.c: New file.
61263
61264         * modules/unistr/u8-strncat: New file.
61265         * modules/unistr/u16-strncat: New file.
61266         * modules/unistr/u32-strncat: New file.
61267         * lib/unistr/u8-strncat.c: New file.
61268         * lib/unistr/u16-strncat.c: New file.
61269         * lib/unistr/u32-strncat.c: New file.
61270         * lib/unistr/u-strncat.h: New file.
61271
61272         * modules/unistr/u8-strncmp: New file.
61273         * modules/unistr/u16-strncmp: New file.
61274         * modules/unistr/u32-strncmp: New file.
61275         * lib/unistr/u8-strncmp.c: New file.
61276         * lib/unistr/u16-strncmp.c: New file.
61277         * lib/unistr/u32-strncmp.c: New file.
61278
61279         * modules/unistr/u8-strncpy: New file.
61280         * modules/unistr/u16-strncpy: New file.
61281         * modules/unistr/u32-strncpy: New file.
61282         * lib/unistr/u8-strncpy.c: New file.
61283         * lib/unistr/u16-strncpy.c: New file.
61284         * lib/unistr/u32-strncpy.c: New file.
61285         * lib/unistr/u-strncpy.h: New file.
61286
61287         * modules/unistr/u8-strnlen: New file.
61288         * modules/unistr/u16-strnlen: New file.
61289         * modules/unistr/u32-strnlen: New file.
61290         * lib/unistr/u8-strnlen.c: New file.
61291         * lib/unistr/u16-strnlen.c: New file.
61292         * lib/unistr/u32-strnlen.c: New file.
61293         * lib/unistr/u-strnlen.h: New file.
61294
61295         * modules/unistr/u8-strpbrk: New file.
61296         * modules/unistr/u16-strpbrk: New file.
61297         * modules/unistr/u32-strpbrk: New file.
61298         * lib/unistr/u8-strpbrk.c: New file.
61299         * lib/unistr/u16-strpbrk.c: New file.
61300         * lib/unistr/u32-strpbrk.c: New file.
61301         * lib/unistr/u-strpbrk.h: New file.
61302
61303         * modules/unistr/u8-strrchr: New file.
61304         * modules/unistr/u16-strrchr: New file.
61305         * modules/unistr/u32-strrchr: New file.
61306         * lib/unistr/u8-strrchr.c: New file.
61307         * lib/unistr/u16-strrchr.c: New file.
61308         * lib/unistr/u32-strrchr.c: New file.
61309
61310         * modules/unistr/u8-strspn: New file.
61311         * modules/unistr/u16-strspn: New file.
61312         * modules/unistr/u32-strspn: New file.
61313         * lib/unistr/u8-strspn.c: New file.
61314         * lib/unistr/u16-strspn.c: New file.
61315         * lib/unistr/u32-strspn.c: New file.
61316         * lib/unistr/u-strspn.h: New file.
61317
61318         * modules/unistr/u8-strstr: New file.
61319         * modules/unistr/u16-strstr: New file.
61320         * modules/unistr/u32-strstr: New file.
61321         * lib/unistr/u8-strstr.c: New file.
61322         * lib/unistr/u16-strstr.c: New file.
61323         * lib/unistr/u32-strstr.c: New file.
61324         * lib/unistr/u-strstr.h: New file.
61325
61326         * modules/unistr/u8-strtok: New file.
61327         * modules/unistr/u16-strtok: New file.
61328         * modules/unistr/u32-strtok: New file.
61329         * lib/unistr/u8-strtok.c: New file.
61330         * lib/unistr/u16-strtok.c: New file.
61331         * lib/unistr/u32-strtok.c: New file.
61332         * lib/unistr/u-strtok.h: New file.
61333
61334         * modules/unistr/u8-uctomb: New file.
61335         * modules/unistr/u16-uctomb: New file.
61336         * modules/unistr/u32-uctomb: New file.
61337         * lib/unistr/u8-uctomb.c: New file.
61338         * lib/unistr/u16-uctomb.c: New file.
61339         * lib/unistr/u32-uctomb.c: New file.
61340
61341         * MODULES.html.sh (Unicode string functions): Add the new modules.
61342
61343 2007-01-08  Bruno Haible  <bruno@clisp.org>
61344
61345         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61346         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61347         subdirectories.
61348
61349 2007-01-08  Karl Berry  <karl@gnu.org>
61350
61351         * doc/error.texi: mention that main() fns must set program_name
61352         when progname is used.
61353
61354 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61355
61356         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61357         WCTYPE_H is empty, for the benefit of builds from non-distclean
61358         directories.  Problem reported by Eric Blake in
61359         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61360
61361 2007-01-08  Bruno Haible  <bruno@clisp.org>
61362
61363         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61364         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61365         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61366         PROVIDE_CANONICALIZE_FILENAME_MODE.
61367         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61368
61369 2007-01-08  Bruno Haible  <bruno@clisp.org>
61370
61371         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61372         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61373         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61374         * lib/fts.c: Likewise.
61375         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61376
61377 2006-12-25  Bruno Haible  <bruno@clisp.org>
61378
61379         * modules/utf8-ucs4-safe: New file.
61380         * lib/utf8-ucs4-safe.h: New file.
61381         * lib/unistr/utf8-ucs4-safe.c: New file.
61382
61383         * modules/utf16-ucs4-safe: New file.
61384         * lib/utf16-ucs4-safe.h: New file.
61385         * lib/unistr/utf16-ucs4-safe.c: New file.
61386
61387         * MODULES.html.sh (Unicode string functions): Add the new modules.
61388
61389 2007-01-08  Bruno Haible  <bruno@clisp.org>
61390
61391         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61392         (Depends-on): Add unitypes.
61393         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61394         (u8_mbtouc_aux): Move out to separate file.
61395         (u8_mbtouc): Use ucs4_t, uint8_t types.
61396         * lib/unistr/utf8-ucs4.c: New file.
61397
61398         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61399         (Depends-on): Add unitypes.
61400         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61401         (u16_mbtouc_aux): Move out to separate file.
61402         (u16_mbtouc): Use ucs4_t, uint16_t types.
61403         * lib/unistr/utf16-ucs4.c: New file.
61404
61405         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61406         (Depends-on): Add unitypes.
61407         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61408         (u8_uctomb_aux): Move out to separate file.
61409         (u8_uctomb): Use ucs4_t, uint8_t types.
61410         * lib/unistr/ucs4-utf8.c: New file.
61411
61412         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61413         (Depends-on): Add unitypes.
61414         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61415         (u16_uctomb_aux): Move out to separate file.
61416         (u16_uctomb): Use ucs4_t, uint16_t types.
61417         * lib/unistr/ucs4-utf16.c: New file.
61418
61419 2006-12-25  Bruno Haible  <bruno@clisp.org>
61420
61421         * modules/unitypes: New file.
61422         * lib/unitypes.h: New file.
61423         * MODULES.html.sh (func_all_modules): New section "Unicode string
61424         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61425         this section. Add unitypes.
61426
61427 2007-01-08  Bruno Haible  <bruno@clisp.org>
61428
61429         Avoid variable names that conflict with those from libtool.
61430         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61431         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61432         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61433         library_names_spec to acl_library_names_spec, hardcode_* to
61434         acl_hardcode_*.
61435         Reported by Ralf Wildenhues.
61436
61437 2007-01-08  Bruno Haible  <bruno@clisp.org>
61438
61439         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61440         definition.
61441         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61442         definition.
61443         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61444         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61445         definition.
61446         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61447         definition.
61448         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61449         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61450         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61451         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61452         definition.
61453         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61454         definition.
61455         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61456         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61457         GC_USE_<algorithm>.
61458         * lib/gc-libgcrypt.c: Likewise.
61459         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61460         * modules/gc-arctwo (configure.ac): Likewise.
61461         * modules/gc-des (configure.ac): Likewise.
61462         * modules/gc-hmac-md5 (configure.ac): Likewise.
61463         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61464         * modules/gc-md2 (configure.ac): Likewise.
61465         * modules/gc-md4 (configure.ac): Likewise.
61466         * modules/gc-md5 (configure.ac): Likewise.
61467         * modules/gc-random (configure.ac): Likewise.
61468         * modules/gc-rijndael (configure.ac): Likewise.
61469         * modules/gc-sha1 (configure.ac): Likewise.
61470
61471 2007-01-08  Bruno Haible  <bruno@clisp.org>
61472
61473         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61474         macro definition.
61475         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61476         definition.
61477         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61478         definition.
61479         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61480         * modules/fcntl-safer (configure.ac): Likewise.
61481         * modules/fopen-safer (configure.ac): Likewise.
61482         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61483         GNULIB_FWRITEERROR macro definition.
61484
61485 2007-01-08  Bruno Haible  <bruno@clisp.org>
61486
61487         * m4/gnulib-common.m4: New file.
61488         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61489         (func_get_filelist): Add m4/gnulib-common.m4.
61490
61491 2007-01-08  Bruno Haible  <bruno@clisp.org>
61492
61493         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61494         command.
61495
61496 2007-01-08  Jim Meyering  <jim@meyering.net>
61497
61498         Use a more robust test for a "can't happen" condition.
61499         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61500         narrowed the st_size value.  Presuming the "can't happen" condition
61501         is true, that narrowing could conceivably convert an invalid st_size
61502         value into a valid one.  Instead, use a change based on Matthew
61503         Woehlke's original patch.
61504
61505         Slight readability improvement: use an assert-like macro
61506         in place of literal "abort ()" uses.
61507         * lib/fts.c (fts_assert): Define.
61508         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61509         Use this macro instead of a bare 'abort'.
61510
61511 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61512
61513         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61514         simply work around them.
61515         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61516         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61517         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61518         declaring.
61519         Don't bother to define as macros, since the standard doesn't require it.
61520         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61521         longer worry about IRIX 5.3.
61522         (HAVE_WCTYPE_CTMP_BUG): Remove.
61523
61524 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61525
61526         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61527         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61528         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61529         Problems reported by Georg Schwarz for IRIX 5.3.
61530
61531         * gnulib-tool (autoconf_minversion): Take the maximum version number
61532         found, not the minimum.  Problem reported by James Youngman.
61533
61534 2007-01-03  Karl Berry  <karl@gnu.org>
61535
61536         * doc/error.texi: new file, explaining interaction with progname.
61537         * doc/gnulib.texi: include it.  Update copyright.
61538
61539 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61540
61541         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61542         AC_CANONICAL_HOST, to improve autobuild outputs.
61543
61544 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61545             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61546
61547         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61548         sockets, server sockets, and other file descriptors.  Count errors
61549         to compute the return value.  Reorder the code a bit to be easier
61550         to follow.  Don't set event bits that were not requested (except
61551         POLLERR and POLLHUP).
61552
61553 2007-01-01  Bruno Haible  <bruno@clisp.org>
61554
61555         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61556
61557 2007-01-03  Jim Meyering  <jim@meyering.net>
61558
61559         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61560
61561 2007-01-02  Bruno Haible  <bruno@clisp.org>
61562
61563         * modules/settime (Include): Require timespec.h.
61564         * modules/nanosleep (Include): Likewise.
61565
61566 2007-01-01  Bruno Haible  <bruno@clisp.org>
61567
61568         * gnulib-tool (func_emit_copyright_notice): Bump year.
61569         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61570
61571 2007-01-01  Bruno Haible  <bruno@clisp.org>
61572
61573         Improve support for OpenBSD.
61574         * build-aux/config.rpath (libname_spec): Export.
61575         (library_names_spec): New variable. Export.
61576         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61577         library_names_spec from the config.rpath output. Locate shared library
61578         through the name pattern in library_names_spec.
61579
61580 2007-01-01  Eric Blake  <ebb9@byu.net>
61581
61582         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61583
61584 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61587         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61588         assume the C locale, and avoid an "eval" that could cause trouble.
61589         Problem with SORT reported by Bob Proulx.
61590
61591         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61592         Define.  Trivial patch from Henning Nielsen Lund, originally
61593         sent to bug-grep@gnu.org today.
61594
61595 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61596
61597         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61598         struct stat.  Problem reported by Henning Nielsen Lund.
61599         * lib/acl.c: Include acl.h first, to check interface.  Don't
61600         bother to include sys/types.h and sys/stat.h again.
61601
61602 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61603
61604         Import the following change from libc; problem reported by
61605         Sven Verdoolaege.
61606
61607         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61608
61609         [BZ #1373]
61610         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61611
61612 2006-12-28  Jim Meyering  <jim@meyering.net>
61613
61614         * build-aux/announce-gen: Do not assume that the package
61615         builds any of tar.gz, tar.bz2, and .xdelta files.
61616         Suggestion from Simon Josefsson.
61617
61618 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61619
61620         * modules/announce-gen: New file.
61621
61622 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61623
61624         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61625         handles its gotchas now.
61626         * lib/mbswidth.c: Likewise.
61627         * lib/wcwidth.h: Likewise.
61628         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61629         and iswcntrl; the wctype module does this stuff now.
61630         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61631         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61632         * modules/mbchar (Depends-on): Add wctype.
61633         * modules/mbswidth (Depends-on): Likewise.
61634         * modules/wcwidth (Depends-on): Likewise.
61635
61636 2006-12-27  Eric Blake  <ebb9@byu.net>
61637
61638         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61639         module uses more than what <wctype.h> is required to provide.
61640
61641 2006-12-26  Eric Blake  <ebb9@byu.net>
61642
61643         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61644
61645 2006-12-26  Eric Blake  <ebb9@byu.net>
61646
61647         * modules/absolute-header: New module.
61648         * modules/fcntl (Depends-on): Depend on it.
61649         * modules/inttypes (Depends-on): Likewise.
61650         * modules/stdint (Depends-on): Likewise.
61651         * modules/sys_stat (Depends-on): Likewise.
61652         * modules/wctype (Depends-on): Likewise.
61653         * MODULES.html.sh (Support for building libraries and
61654         executables): Document it.
61655
61656 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61657
61658         * gnulib-tool (SED): Remove, undoing previous change.
61659         The problem was that it broke coreutils on Solaris, because
61660         "sed --posix" leaked into a makefile.
61661         (sed): New alias, if 'alias' and GNU sed.
61662
61663 2006-12-24  Jim Meyering  <jim@meyering.net>
61664
61665         Work around an fchownat bug in glibc-2.4:
61666         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61667         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61668         in spite of the -P option.
61669         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61670         New macros.
61671         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61672         * modules/openat (Files): Add lib/fchownat.c.
61673         * lib/openat.c (fchownat): Don't define here.  Move to...
61674         * lib/fchownat.c: ...this new file.
61675
61676 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61677
61678         Fix bug reported by Bruno Haible in
61679         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61680         where quotearg.c didn't compile on Mac OS X 10.2 because it
61681         lacks <wchar.h> and wint_t.
61682         * lib/wctype_.h (__wctype_wint_t): New type.
61683         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61684         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61685         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61686         Arg is now of type __wctype_wint_t, not wint_t.
61687         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61688         substitute HAVE_WINT_T.
61689         * modules/wctype (Files): Add m4/wint_t.m4.
61690         (wctype.h): Substitute HAVE_WINT_T.
61691
61692 2006-12-23  Bruno Haible  <bruno@clisp.org>
61693
61694         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61695
61696 2006-12-23  Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61699         S_ISLNK.
61700         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61701         mingw.
61702
61703 2006-12-22  Bruno Haible  <bruno@clisp.org>
61704
61705         * lib/copy-file.c: Include acl.h.
61706         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61707         Close the file descriptors only after being done with copy_acl.
61708         * modules/copy-file (Depends-on): Add acl.
61709
61710 2006-12-22  Bruno Haible  <bruno@clisp.org>
61711
61712         * gnulib-tool (SED): New variable.
61713         Use $SED instead of sed everywhere.
61714
61715 2006-12-22  Bruno Haible  <bruno@clisp.org>
61716
61717         * modules/no-c++: New file.
61718         * m4/no-c++.m4: New file.
61719         * MODULES.html.sh (Support for building libraries and executables):
61720         Add no-c++.
61721
61722 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61723
61724         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61725         Include <limits.h>, and use its INT_MAX to rewrite the
61726         j loop so that it does not overflow 'int'.  Problem reported by
61727         Ralf Wildenhues in
61728         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61729         Play it safe by shifting left by 1 rather than multiplying by 2,
61730         as GCC is less likely to optimize this away when the value
61731         is signed (when it assumes overflow leads to undefined behavior).
61732         Also, don't assume time_t uses two's complement.
61733
61734 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61735
61736         * MODULES.html.sh: New module wctype.
61737         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61738         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61739         <wctype.h>, since the new wctype module should fix this.
61740         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61741         the wctype module should arrange for it.
61742         * lib/regex_internal.h: Likewise.
61743         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61744         since the wctype module should handle this now.
61745         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61746         * modules/fnmatch (Depends-on): Add wctype.
61747         * modules/quotearg (Depends-on): Likewise.
61748         * modules/regex (Depends-on): Likewise.
61749
61750 2006-12-19  Bruno Haible  <bruno@clisp.org>
61751
61752         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61753         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61754
61755 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61756
61757         * modules/savewd (Depends-on): Fix dependency on fcntl.
61758
61759 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61760
61761         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61762         conforms to C99, rather than relying on the user's environment
61763         setting of STDINT_H.
61764
61765 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61766         and Eric Blake  <ebb9@byu.net>
61767
61768         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61769         This is more consistent with the other defines here.
61770         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61771         Port to z/OS.  Problem reported by Paul Gilmartin.
61772         Change local vars to use gl_ prefix rather than ac_.
61773         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61774         with other defines.
61775         * modules/double-slash-root: New module.
61776         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61777         (Depends-on): Add double-slash-root.
61778         * MODULES.html.sh (File system functions): Mention new module.
61779
61780 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61781
61782         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61783         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61784         This is for the benefit of gzip, which doesn't do i18n.
61785
61786 2006-12-12  Jim Meyering  <jim@meyering.net>
61787
61788         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61789         Reported by Andreas Schwab <schwab@suse.de>.
61790
61791 2006-12-12  Bruno Haible  <bruno@clisp.org>
61792
61793         Merge these changes.
61794         2006-09-05  Bruno Haible  <bruno@clisp.org>
61795         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61796         iconv_alloc succeeded.
61797         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61798         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61799         test for " && dest " at the end - dest is always != NULL there. Call
61800         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61801         with 2xNULL arguments, also to flush the state storage. Handle the
61802         IRIX iconv behaviour. Realloc the final result, to throw away unused
61803         memory.
61804
61805 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61808         and fchmodat unconditionally, since glibc 2.4 has them.
61809         Problem reported by Arkadiusz Miskiewicz.
61810
61811 2006-12-10  Bruno Haible  <bruno@clisp.org>
61812
61813         * gnulib-tool (func_import): Show the include files only for those
61814         modules that are copied and specified.
61815         Reported by Karl Berry.
61816
61817 2006-12-08  Jim Meyering  <jim@meyering.net>
61818
61819         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61820         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61821
61822         * build-aux/announce-gen: Add two new options, both optional:
61823         --bootstrap-tools=TOOL_LIST
61824               a comma-separated list of tools, e.g.,
61825               autoconf,automake,bison,gnulib
61826         --gnulib-snapshot-date=DATE
61827               if gnulib is in the bootstrap tool list,
61828               then report this as the snapshot date.
61829               If not specified, use the current date/time.
61830               If you specify a date here, be sure it's UTC.
61831
61832 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61833
61834         * tests/test-argp-2.sh: Fix test to match actual output.
61835         (func_compare): Fix sed script to be portable.
61836
61837 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61838
61839         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61840         workaround for this case.  It is not autoconfigured now; offhand
61841         it's hard to see how to autoconfigure it.
61842
61843 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61844
61845         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61846         a directory that is about to be chowned.  Such a directory's
61847         initial file permissions should permit the owner only and this
61848         should not be changed until after the chown, since the group and
61849         other bits would be incorrect if they granted permission before
61850         the chown.
61851
61852         Fix porting problem for iswctype reported by Georg Schwarz in:
61853         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61854         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61855         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61856         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61857         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61858
61859 2006-12-03  Jim Meyering  <jim@meyering.net>
61860
61861         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61862         p->fts_statp may not yet be defined.
61863         (fts_read): Instead, set it in the caller, once p->fts_statp is
61864         sure to be defined, and corresponds to a top-level directory.
61865         This bug made du -x fail.  Here's the coreutils test case:
61866         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61867         Reported by Mike Frysinger.
61868
61869 2006-12-01  Jim Meyering  <jim@meyering.net>
61870
61871         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61872         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61873         Reported by Simon Josefsson.
61874
61875 2006-11-30  Jim Meyering  <jim@meyering.net>
61876
61877         * m4/warning.m4: Use the all-permissive copyright notice
61878         recommended by RMS (rather than LGPL).
61879         * m4/vararrays.m4: Likewise.
61880         * m4/flexmember.m4: Likewise.
61881
61882 2006-11-29  Bruno Haible  <bruno@clisp.org>
61883
61884         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61885         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61886         using +=.
61887         Reported by Simon Josefsson <simon@josefsson.org>.
61888
61889 2006-11-28  James Youngman <jay@gnu.org>
61890
61891         * README: Advise users that they might find the bug-gnulib@gnu.org
61892         and autotools-announce@gnu.org mailing lists useful.
61893
61894 2006-11-28  Bruno Haible  <bruno@clisp.org>
61895
61896         * m4/ptrdiff_max.m4: Remove file.
61897
61898 2006-11-21  Bruno Haible  <bruno@clisp.org>
61899
61900         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61901         _AC_COMPUTE_INT.
61902         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61903         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61904         _AC_COMPUTE_INT.
61905         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61906         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61907         _AC_COMPUTE_INT.
61908         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61909
61910 2006-11-28  Jim Meyering  <jim@meyering.net>
61911
61912         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61913         warning from "gcc -Wshadow" about shadowing the builtin.
61914
61915 2006-11-27  Bruno Haible  <bruno@clisp.org>
61916
61917         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61918         _AC_COMPUTE_INT.
61919         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61920
61921 2006-11-27  Bruno Haible  <bruno@clisp.org>
61922             Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61925
61926 2006-11-26  Bruno Haible  <bruno@clisp.org>
61927
61928         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61929         noinst_LTLIBRARIES.
61930
61931 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61932             Bruno Haible  <bruno@clisp.org>
61933
61934         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61935         if compiling with "gcc -ansi".
61936
61937 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61938
61939         Fix some incompatibilities with gcc -ansi -pedantic.
61940         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61941         if compiling pedantically with GCC, unless it's C99 or later.
61942         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61943         it mishandles gcc -ansi -pedantic as well.
61944         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61945         if gcc -pedantic.
61946         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61947         initializers for struct if -pedantic, unless it's C99 or later.
61948
61949 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61950
61951         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61952         Don't close an fd more than once. Identical atimes indicate
61953         success, not failure.
61954
61955 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61956
61957         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61958
61959 2006-11-23  Jim Meyering  <jim@meyering.net>
61960
61961         * build-aux/announce-gen: New file.  From coreutils.
61962
61963 2006-11-22  Jim Meyering  <jim@meyering.net>
61964
61965         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61966         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61967         (fts_read): Use a temporary to narrow the overused st_size member
61968         before using it in a switch statement.  Reported by Matthew Woehlke.
61969
61970         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61971         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61972
61973 2006-11-20  Bruno Haible  <bruno@clisp.org>
61974
61975         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61976         changequote instead of pairs of brackets.
61977         Reported by Andreas Schwab <schwab@suse.de>.
61978
61979 2006-11-21  Jim Meyering  <jim@meyering.net>
61980
61981         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61982         so as to remain compatible with older compilers.
61983         Patch from Michael Deutschmann.
61984
61985 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61986
61987         * MODULES.html.sh (File system functions): Add openat.
61988
61989         * lib/openat.h (rpl_fstatat): New macro, if
61990         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61991         (fstatat): Define to rpl_fstatat under the same conditions,
61992         unless COMPILING_FSTATAT.
61993         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61994         seems to have the bug.
61995         * lib/fstatat.c: New file.
61996         * modules/openat (Files): Add it.
61997
61998 2006-11-20  Bruno Haible  <bruno@clisp.org>
61999
62000         * Makefile: New file.
62001
62002 2006-11-20  Jim Meyering  <jim@meyering.net>
62003
62004         The beginnings of syntax-related checks for gnulib.
62005         * lib/Makefile: New file.
62006         * lib/t-idcache: New script.  Ensure that the two halves of
62007         idcache.c stay in sync.
62008
62009         * lib/idcache.c: Adjust comments in user- and group- portions to
62010         be more accurate, and to be consistent with one another.
62011
62012 2006-11-20  Jim Meyering  <jim@meyering.net>
62013
62014         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62015         continue using the flexible array member (thus, this module performs
62016         half as many malloc calls), with the addition that...
62017         (getgroup, getuser): Consistently record a non-match via an empty
62018         "name" string, and map an empty string match to a NULL return value.
62019         * modules/idcache (Depends-on): Re-add flexmember.
62020
62021         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62022         (getuidbyname, getgroup, getgidbyname): Likewise.
62023
62024         Use cleaner syntax: NULL rather than 0.
62025         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62026
62027 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62028
62029         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62030         It mishandled the case where the group was missing.
62031         Problem reported by Greg Schafer.
62032         * modules/idcache: Likewise.
62033
62034 2006-11-18  Jim Meyering  <jim@meyering.net>
62035
62036         * check-module (%exempt_header): Add exception for some
62037         conditionally-included headers.
62038
62039         * modules/i-ring (Depends-on): Add verify.
62040         (License): Change to LGPL.
62041
62042 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62043
62044         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62045         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62046         and inttostr.h.  Use snprintf rather than uinttostr, so that
62047         LGPLed code doesn't depend on GPLed.
62048
62049 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62050
62051         * modules/inline (License): Change from GPL to LGPL.
62052
62053 2006-11-17  Jim Meyering  <jim@meyering.net>
62054
62055         * modules/d-type (License): Switch to LGPL.
62056
62057 2006-11-15  Bruno Haible  <bruno@clisp.org>
62058
62059         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62060
62061 2006-11-15  Eric Blake  <ebb9@byu.net>
62062
62063         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62064         the module dependency.
62065
62066 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62067             Bruno Haible  <bruno@clisp.org>
62068
62069         * gnulib-tool (func_create_testdir): Add license consistency check.
62070
62071 2006-11-15  Eric Blake  <ebb9@byu.net>
62072
62073         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62074         random "(cached)" in configure output.
62075
62076 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62077
62078         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62079         test for conforming inttypes.h is both announced and cached.
62080
62081         * MODULES.html.sh (seen_modules, seen_files): New variables.
62082         (func_module): Rewrite to use a few less gnulib-tool and sed
62083         invocations.  Avoid a couple of quadratic algorithms for ...
62084         (missed_modules, missed_files): ... these, with ...
62085         (func_append, func_tmpdir): ... these new functions, from
62086         gnulib-tool.  Analogously, install traps for cleanup.
62087
62088         * tests/test-gc.c (main): Remove unused variables.
62089         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62090
62091 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62092
62093         * modules/inttostr (License): Change to LGPL.
62094
62095 2006-11-14  Eric Blake  <ebb9@byu.net>
62096
62097         * modules/tempname (License): Change to LGPL.
62098
62099 2006-11-14  Eric Blake  <ebb9@byu.net>
62100
62101         * doc/functions.texi (Function Portability): *printf functions on
62102         Cygwin now understand all POSIX size specifiers.
62103
62104 2006-11-14  Bruno Haible  <bruno@clisp.org>
62105
62106         * modules/c-ctype (License): Change to LGPL.
62107
62108 2006-11-12  Bruno Haible  <bruno@clisp.org>
62109
62110         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62111         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62112         for GNOME libraries, for which the include files are installed in
62113         subdirectories of $prefix/include.
62114
62115 2006-11-12  Bruno Haible  <bruno@clisp.org>
62116
62117         * m4/lib-link.m4: Require at least autoconf-2.54.
62118         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62119         name to underscores for the --with option.
62120
62121 2006-11-13  Bruno Haible  <bruno@clisp.org>
62122
62123         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62124         the tests directory.
62125         Reported by Ralf Wildenhues.
62126
62127 2006-11-13  Bruno Haible  <bruno@clisp.org>
62128
62129         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62130         (func_emit_initmacro_end): Undo the override here.
62131         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62132         Works around the famous automake error in coreutils.
62133
62134 2006-11-13  Eric Blake  <ebb9@byu.net>
62135
62136         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62137         element, not its node.
62138
62139 2006-11-12  Bruno Haible  <bruno@clisp.org>
62140
62141         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62142         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62143
62144 2006-11-12  Bruno Haible  <bruno@clisp.org>
62145
62146         * gnulib-tool: New option --local-symlink.
62147         (func_usage): Document it.
62148         (lsymbolic): New variable.
62149         (func_import, func_create_testdir): If --symlink was not specified,
62150         test whether --local-symlink was specified and the file comes from
62151         the local_gnulib_dir.
62152
62153 2006-11-12  Bruno Haible  <bruno@clisp.org>
62154
62155         * gnulib-tool (func_ln): New function.
62156         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62157
62158 2006-11-12  Bruno Haible  <bruno@clisp.org>
62159
62160         Finish support for source files in subdirectories.
62161         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62162         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62163         AUTOMAKE_OPTIONS.
62164         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62165
62166 2006-11-12  Bruno Haible  <bruno@clisp.org>
62167
62168         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62169         EXTRA_lib_SOURCES augmentation.
62170         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62171
62172 2006-11-12  Jim Meyering  <jim@meyering.net>
62173
62174         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62175         file descriptors.  This also averts a failure on systems with
62176         native openat support when a traversed directory lacks "x" access.
62177         * lib/fts_.h: Include "i-ring.h"
62178         (struct FTS) [fts_fd_ring]: New member.
62179         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62180         (FCHDIR): Add parentheses.
62181         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62182         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62183         When descending, rather than simply closing the previous
62184         fts_cwd_fd value, push that file descriptor onto the ring.
62185         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62186         (fts_open): Initialize the new fd_ring member.
62187         (fts_close): Clear the ring.
62188         (fts_safe_changedir): When possible, use our new fd_ring to skip
62189         the diropen and fstat and dev/ino comparison that would normally
62190         accompany a virtual `chdir ("..")'.
62191
62192         * modules/fts (Depends-on): Add i-ring.
62193         * modules/i-ring: New module.
62194         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62195         * m4/i-ring.m4: New file.
62196
62197 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62198
62199         * gnulib-tool (func_create_testdir): Fix replacement of
62200         `build-aux' in configure.ac.  Run autotools in gltests
62201         subdirectory.
62202         (func_create_testdir, func_create_megatestdir, test): There is
62203         no need for '--force' in most autotool invocations in a new
62204         tree.  Actually fail the whole test if any of the tools, or the
62205         configure or make stages fail.
62206
62207         Sync from Automake.
62208         * build-aux/gnupload: Revert last change.  Add pointer to upload
62209         instructions of the GNU Maintenance Instructions.
62210         Suggestion by Karl Berry.
62211
62212 2006-11-10  Jim Meyering  <jim@meyering.net>
62213
62214         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62215
62216 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62217
62218         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62219         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62220         (bind_textdomain_codeset) [! ENABLE_NLS]:
62221         Evaluate all the arguments.  That way, callers get compatible behavior
62222         if the arguments have side effects.  Also, it avoids some GCC
62223         diagnostics in some cases; Joel E. Denny reported problems when Bison
62224         was configured with --enable-gcc-warnigs.
62225
62226 2006-11-10  Jim Meyering  <jim@meyering.net>
62227
62228         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62229         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62230         account.
62231
62232 2006-11-10  Jim Meyering  <jim@meyering.net>
62233
62234         * modules/inline: New file/module.
62235         * modules/xalloc (Files): Remove m4/inline.m4.
62236         (Depends-on): Add inline, instead.
62237         * modules/oset: Likewise.
62238         * modules/list: Likewise.
62239
62240 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62241
62242         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62243         Problem reported by Matthew Woehlke.
62244
62245 2006-11-09  Bruno Haible  <bruno@clisp.org>
62246
62247         * lib/tempname.c (gen_tempname): Remove variant that invokes
62248         __gen_tempname.
62249         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62250         __gen_tempname.
62251
62252 2006-11-08  Bruno Haible  <bruno@clisp.org>
62253
62254         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62255         to 'yes' instead of 'cross-compiling'.
62256
62257 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62258
62259         * lib/quotearg.h (quotearg_free): New decl.
62260         * lib/quotearg.c (quotearg_free): New function.
62261         (slot0, nslots, slotvec0, slotvec):
62262         Now file-scope so that quotearg_free can get at them.
62263
62264 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62265
62266         Sync from Automake.
62267         * build-aux/gnupload: Add missing 'gnu' to example URL.
62268         Report by Karl Berry.
62269
62270 2006-11-08  Bruno Haible  <bruno@clisp.org>
62271
62272         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62273         Suggested by Paul Eggert.
62274
62275 2006-11-08  Jim Meyering  <jim@meyering.net>
62276
62277         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62278         It's already included if !_LIBC.
62279         (fts_safe_changedir): Add a comment.
62280
62281 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62282
62283         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62284         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62285         Matthew Woehlke.
62286
62287         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62288         definitions up, to avoid colliding with change below.
62289         (static_inline) [HAVE_INLINE]: New macro.
62290         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62291         Provide extern decls when !HAVE_INLINE.  Do not define unless
62292         static_inline is defined, either by us or by xmalloc.c.  Use
62293         static_inline rather than static inline.
62294         (XCALLOC): Optimize sizeof(T) = 1 case.
62295         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62296
62297 2006-11-07  Bruno Haible  <bruno@clisp.org>
62298
62299         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62300         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62301         AC_C_INLINE.
62302         * modules/xalloc (Files): Add m4/inline.m4.
62303
62304 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62305
62306         * README: Fix typo.
62307         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62308         (Miscellanous Notes): ...from this.
62309
62310 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62311
62312         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62313         Mention that offsetof should be used instead of sizeof.
62314         From Bruno Haible.
62315
62316 2006-11-07  Bruno Haible  <bruno@clisp.org>
62317
62318         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62319
62320 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62321
62322         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62323         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62324         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62325         (gl_tree_add_before, gl_tree_add_after):
62326         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62327         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62328         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62329         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62330         (gl_linked_add_after, gl_linked_add_at): Likewise.
62331         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62332         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62333         (gl_tree_add_before, gl_tree_add_after): Likewise.
62334         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62335         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62336         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62337
62338 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62339
62340         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62341
62342 2006-11-06  Bruno Haible  <bruno@clisp.org>
62343
62344         * m4/inline.m4: New file.
62345         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62346         * modules/list (Files): Add m4/inline.m4.
62347         * modules/oset (Files): Likewise.
62348
62349 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62350
62351         * lib/idcache.c: Include <stddef.h>, for offsetof.
62352         (struct userid.name): Change from char * to a flexible array member.
62353         All uses changed.
62354         * modules/idcache (Depends-on): Add flexmember.
62355
62356         * MODULES.html.sh (Core language properties): New module flexmember.
62357         * modules/flexmember, m4/flexmember.m4: New files.
62358
62359         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62360         inline functions that are identical with the old xnmalloc_inline,
62361         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62362         that we can avoid some unnecessary integer multiplications and
62363         divisions in the common case where the element size is known at
62364         compile time.
62365         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62366         needed.
62367         (xnboundedmalloc): Remove.
62368         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62369         arguments, for consistency with rest of this header.
62370         (xcharalloc): Rewrite using XNMALLOC.
62371         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62372         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62373         versions have been moved to lib/xalloc.h and renamed to be the
62374         non-*_inline versions.
62375         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62376         and xnrealloc functions, since those functions are now inline and
62377         now call us.
62378         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62379         renaming described above.
62380         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62381         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62382         captures the dependency in AC_C_INLINE.
62383
62384         New module canonicalize-lgpl, proposed by Charles Wilson in
62385         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62386         with a few small changes afterwards.
62387         * MODULES.html.sh (File system functions): New module
62388         canonicalize-lgpl.
62389         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62390         and canonicalize_file_name.
62391         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62392         * modules/canonicalize-lgpl: New files.
62393
62394 2006-11-05  Bruno Haible  <bruno@clisp.org>
62395
62396         * gnulib-tool (func_import, func_create_testdir): Create directories
62397         also for files in subdirectories of lib/.
62398
62399 2006-11-05  Bruno Haible  <bruno@clisp.org>
62400
62401         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62402         ANSI C compliant.
62403
62404 2006-11-03  Bruno Haible  <bruno@clisp.org>
62405
62406         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62407         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62408         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62409         (xnboundedmalloc): New inline function.
62410         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62411         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62412         xmalloc.
62413         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62414         xmalloc.
62415         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62416         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62417         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62418         xmalloc.
62419         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62420         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62421         xmalloc.
62422         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62423         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62424         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62425         xmalloc.
62426         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62427         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62428         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62429         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62430         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62431         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62432         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62433
62434 2006-11-03  Bruno Haible  <bruno@clisp.org>
62435
62436         * lib/c-ctype.h [C++]: Define functions without name mangling.
62437         * lib/fwriteerror.h [C++]: Likewise.
62438         * lib/gcd.h [C++]: Likewise.
62439         * lib/linebreak.h [C++]: Likewise.
62440
62441 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62444         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62445         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62446         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62447         Check for functions and headers just once.
62448         Check for declaration of canonicalize_file_name.
62449         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62450
62451 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62452
62453         * gnulib-tool (func_import): Fix typo in actioncmd.
62454
62455 2006-11-02  Bruno Haible  <bruno@clisp.org>
62456
62457         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62458         newline sequence in the Makefile.am snippet as a space, like "make"
62459         does.
62460         Reported by Roger Persson <perrog@gmail.com>.
62461
62462 2006-11-01  Bruno Haible  <bruno@clisp.org>
62463
62464         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62465         already declared in <string.h>.
62466         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62467
62468 2006-11-01  Bruno Haible  <bruno@clisp.org>
62469
62470         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62471         * lib/strcase.h: Include <string.h>.
62472         (strcasecmp): Define to rpl_strcasecmp here.
62473
62474 2006-11-01  Bruno Haible  <bruno@clisp.org>
62475
62476         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62477
62478 2006-11-01  Eric Blake  <ebb9@byu.net>
62479
62480         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62481
62482         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62483
62484 2006-10-29  Bruno Haible  <bruno@clisp.org>
62485
62486         Make it compile in C++ mode.
62487         * lib/full-write.c (full_rw): Add a cast.
62488
62489 2006-11-01  Bruno Haible  <bruno@clisp.org>
62490
62491         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62492         be POSIX compliant.
62493         Reported by Roger Persson <perrog@gmail.com>.
62494
62495 2006-11-01  Eric Blake  <ebb9@byu.net>
62496
62497         * lib/getopt_.h: Fix comments.
62498
62499 2006-10-31  Eric Blake  <ebb9@byu.net>
62500
62501         * modules/tmpdir (Depends-on): Add sys_stat.
62502         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62503         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62504         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62505         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62506         tempname.
62507
62508 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         Avoid some C++ diagnostics reported by Bruno Haible.
62511         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62512         xmalloc.
62513         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62514         (struct slotvec): Move to top level.
62515         (quotearg_n_options): Rewrite to avoid xmalloc.
62516         * lib/xalloc.h (xcharalloc): New function.
62517         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62518         [defined __cplusplus]: Add function template that provides result
62519         type propagation.  This part of the change is from Bruno Haible.
62520
62521 2006-10-29  Bruno Haible  <bruno@clisp.org>
62522
62523         Make it compile in C++ mode.
62524         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62525         * lib/strnlen1.c (strnlen1): Cast memchr result.
62526         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62527         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62528         (create_temp_dir): Rename local variable 'template'.
62529         (compile_csharp_using_sscli): Add cast.
62530         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62531         * lib/findprog.c (find_in_path): Likewise.
62532         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62533         * lib/wait-process.c (register_slave_subprocess): Likewise.
62534
62535 2006-10-22  Bruno Haible  <bruno@clisp.org>
62536
62537         * modules/tsearch: New file.
62538         * lib/tsearch.h: New file.
62539         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62540         * m4/tsearch.m4: New file.
62541         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62542
62543 2006-10-29  Eric Blake  <ebb9@byu.net>
62544
62545         * lib/arcfour.c: Assume config.h.
62546         * lib/arctwo.c: Likewise.
62547         * lib/base64.c: Likewise.
62548         * lib/check-version.c: Likewise.
62549         * lib/crc.c: Likewise.
62550         * lib/des.c: Likewise.
62551         * lib/gc-gnulib.c: Likewise.
62552         * lib/gc-libgcrypt.c: Likewise.
62553         * lib/gc-pbkdf2-sha1.c: Likewise.
62554         * lib/getaddrinfo.c: Likewise.
62555         * lib/getdelim.c: Likewise.
62556         * lib/getline.c: Likewise.
62557         * lib/hmac-md5.c: Likewise.
62558         * lib/hmac-sha1.c: Likewise.
62559         * lib/iconvme.c: Likewise.
62560         * lib/md2.c: Likewise.
62561         * lib/md4.c: Likewise.
62562         * lib/memxor.c: Likewise.
62563         * lib/read-file.c: Likewise.
62564         * lib/readline.c: Likewise.
62565         * lib/rijndael-alg-fst.c: Likewise.
62566         * lib/rijndael-api-fst.c: Likewise.
62567         * lib/xgetdomainname.c: Likewise.
62568
62569 2006-10-28  Eric Blake  <ebb9@byu.net>
62570
62571         * lib/xstrndup.c: Assume config.h.
62572
62573 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62574
62575         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62576         stat-macros.h is now for our own macros, whereas stat_h is for
62577         macros in the <sys/stat.h> name space.
62578         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62579         (STAT_MACROS_H): Remove.
62580         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62581         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62582         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62583         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62584         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62585         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62586         Move these macros to ...
62587         * lib/stat_.h: here.  Don't include stat-macros.h.
62588         * lib/canonicalize.c: Don't include stat-macros.h.
62589         * lib/chown.c: Likewise.
62590         * lib/euidaccess.c: Likewise.
62591         * lib/file-type.c: Likewise.
62592         * lib/filemode.c: Likewise.
62593         * lib/glob.c: Likewise.
62594         * lib/isapipe.c: Likewise.
62595         * lib/lchown.c: Likewise.
62596         * lib/lstat.c: Likewise.
62597         * lib/mkdir-p.c: Likewise.
62598         * lib/rmdir.c: Likewise.
62599         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62601         unless mkdir isn't declared, to speed up 'configure'.
62602         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62603         would define all the S_* symbols.
62604         * modules/canonicalize (Depends-on):
62605         Depend on sys_stat, not stat-macros.
62606         * modules/chown: Likewise.
62607         * modules/euidaccess: Likewise.
62608         * modules/filemode: Likewise.
62609         * modules/file-type: Likewise.
62610         * modules/glob: Likewise.
62611         * modules/isapipe: Likewise.
62612         * modules/lchown: Likewise.
62613         * modules/lstat: Likewise.
62614         * modules/mkancesdirs: Likewise.
62615         * modules/rmdir: Likewise.
62616         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62617         * modules/modechange: Likewise.
62618         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62619         (configure.ac): Remove gl_STAT_MACROS.
62620         * modules/sys_stat (Depends-on): Remove stat-macros.
62621
62622 2006-10-27  Bruno Haible  <bruno@clisp.org>
62623
62624         * m4/signed.m4: Remove file.
62625         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62626         invocation.
62627         * modules/vasnprintf (Files): Remove m4/signed.m4.
62628
62629 2006-10-27  Bruno Haible  <bruno@clisp.org>
62630
62631         Update to GNU gettext 0.16.
62632         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62633         m4/inttypes-h.m4, m4/signed.m4.
62634         * m4/gettext.m4: Update to GNU gettext 0.16.
62635         * m4/intl.m4: New file, from GNU gettext.
62636         * m4/intldir.m4: New file, from GNU gettext.
62637         * config/srclist.txt: Update
62638
62639 2006-10-27  Eric Blake  <ebb9@byu.net>
62640
62641         * MODULES.html.sh: Document tempname.
62642         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62643         dependencies.
62644         (Files): Move lib/tempname.c...
62645         * modules/tempname: ...to this new module.
62646         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62647         (gl_PREREQ_TEMPNAME): Move...
62648         * m4/tempname.m4: ...to this new file.
62649         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62650         * modules/sys_stat (Depends-on): Add stat-macros.
62651         * lib/stat_.h (includes): Pick up stat macros.
62652         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62653         if stat macros are broken.
62654         * lib/tempname.c (includes): No need to include "stat-macros.h".
62655         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62656         (direxists, __path_search) [!_LIBC]: Don't compile these in
62657         gnulib; the tmpdir module covers that.
62658         * lib/tempname.h: New file.
62659
62660 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62661
62662         * COPYING: Explain how gnulib-tool converts licence headers.
62663         Almost all wording by Eric Blake.
62664
62665 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62666
62667         * lib/mbchar.h (is_basic_table): Make read-only.
62668         * lib/mbchar.c (is_basic_table): Likewise.
62669         Reported by John Darrington.
62670
62671 2006-10-25  Bruno Haible  <bruno@clisp.org>
62672
62673         * lib/progname.h (set_program_name): Undefine before defining.
62674
62675 2006-10-25  Bruno Haible  <bruno@clisp.org>
62676
62677         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62678         false for non-gcc C++ compilers.
62679         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62680
62681 2006-10-24  Bruno Haible  <bruno@clisp.org>
62682
62683         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62684         iconv implementations like Irix iconv.
62685
62686 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62687
62688         * modules/vararrays: New file.
62689         * m4/vararrays.m4: New file, taken from diffutils.
62690         * MODULES.html.sh: New module vararrays.
62691
62692 2006-10-24  Karl Berry  <karl@gnu.org>
62693
62694         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62695         Don't call GNU Unix.
62696
62697 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62698
62699         * users.txt: Add Libtool.
62700
62701         Sync from Libtool:
62702
62703         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62704
62705         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62706         to gnulib's policy of including config.h unconditionally.
62707
62708 2006-10-24  Bruno Haible  <bruno@clisp.org>
62709
62710         * modules/wcwidth (Files): Add m4/wint_t.m4.
62711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62712         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62713
62714 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62715
62716         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62717         to pacify GCC with some -W flags enabled.  Problem reported by
62718         Bruno Haible.
62719
62720 2006-10-24  Jim Meyering  <jim@meyering.net>
62721
62722         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62723         Reported by Karl Berry.
62724
62725 2006-10-23  Bruno Haible  <bruno@clisp.org>
62726
62727         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62728
62729 2006-10-24  Bruno Haible  <bruno@clisp.org>
62730
62731         * lib/gl_list.h: Use C comment style, not C++ comment style.
62732
62733 2006-10-23  Eric Blake  <ebb9@byu.net>
62734
62735         * lib/getaddrinfo.c (includes): Add missing include.
62736
62737 2006-10-23  Bruno Haible  <bruno@clisp.org>
62738             Paul Eggert  <eggert@cs.ucla.edu>
62739
62740         Ability to rename obstack_free.
62741         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62742         obstack_free.
62743         (obstack_free): Invoke the __obstack_free macro.
62744         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62745
62746 2006-10-23  Bruno Haible  <bruno@clisp.org>
62747             Paul Eggert  <eggert@cs.ucla.edu>
62748
62749         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62750         __argc, __argv from the declaration. (They are defined as macros on
62751         mingw.)
62752
62753 2006-10-22  Bruno Haible  <bruno@clisp.org>
62754
62755         * doc/gnulib-intro.texi: New file.
62756         * doc/gnulib.texi: Include it.
62757
62758 2006-10-21  Bruno Haible  <bruno@clisp.org>
62759
62760         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62761         "Introduction", "Miscellanous Notes", "Particular Modules".
62762
62763 2006-10-21  Bruno Haible  <bruno@clisp.org>
62764
62765         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62766         Change mostlyclean-local rule to avoid sh syntax error from bash
62767         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62768
62769 2006-10-23  Jim Meyering  <jim@meyering.net>
62770
62771         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62772         in place of snprintf.
62773
62774         * modules/inttostr (Files): Add lib/uinttostr.c.
62775         * lib/uinttostr.c (inttostr): New file/function.
62776         * lib/inttostr.h (uinttostr): Declare.
62777         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62778         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62779         Add uinttostr.
62780         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62781
62782 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62783
62784         * lib/canonicalize.c (ELOOP): Define if not already defined.
62785         Problem reported by Bruno Haible in
62786         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62787
62788 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62789
62790         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62791         Problem reported by Perry Smith and Ville Laurikari.
62792
62793         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62794         uses.
62795
62796 2006-10-19  Bruno Haible  <bruno@clisp.org>
62797
62798         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62799         for mingw.
62800
62801 2006-10-19  Bruno Haible  <bruno@clisp.org>
62802
62803         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62804         Needed for mingw.
62805
62806 2006-10-19  Bruno Haible  <bruno@clisp.org>
62807
62808         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62809
62810 2006-10-19  Bruno Haible  <bruno@clisp.org>
62811
62812         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62813         it.
62814
62815 2006-10-19  Bruno Haible  <bruno@clisp.org>
62816
62817         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62818         invocation.
62819
62820 2006-10-19  Bruno Haible  <bruno@clisp.org>
62821
62822         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62823         mountlist by default.
62824
62825 2006-10-16  Bruno Haible  <bruno@clisp.org>
62826
62827         * lib/c-strstr.c: Include c-strstr.h.
62828
62829 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62830
62831         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62832         in a slash.
62833
62834 2006-10-18  Bruno Haible  <bruno@clisp.org>
62835
62836         * lib/lock.h [C++]: Wrap definitions in extern "C".
62837
62838 2006-10-18  Bruno Haible  <bruno@clisp.org>
62839
62840         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62841         gl_LIBOBJS list.
62842
62843 2006-10-18  Bruno Haible  <bruno@clisp.org>
62844
62845         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62846
62847 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62848
62849         * lib/xstrtol.h: Include gettext.h.
62850         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62851         Problem reported by Eric Blake.
62852         * modules/xstrtol (Depends-on): Add gettext-h.
62853
62854 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62855
62856         * lib/strftime.c (advance): New macro.
62857         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62858         incomplete type, so you can't add 0 to it.  Problem and patch
62859         reported by Eelco Dolstra for dietlibc.
62860
62861 2006-10-18  Jim Meyering  <jim@meyering.net>
62862
62863         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62864         type for a local, and rename it: s/up/user_proc/.
62865
62866 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62867
62868         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62869         READ_UTMP_USER_PROCESS.
62870         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62871
62872 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62873
62874         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62875         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62876
62877 2006-10-17  Eric Blake  <ebb9@byu.net>
62878
62879         * lib/sigprocmask.c (sigprocmask): Fix typo.
62880
62881         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62882
62883         * modules/clean-temp (Makefile.am): Don't add to make output...
62884         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62885         config.h.
62886
62887 2006-10-17  Bruno Haible  <bruno@clisp.org>
62888
62889         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62890         differently if DEFAULT_TEXT_DOMAIN is set.
62891
62892 2006-10-16  Bruno Haible  <bruno@clisp.org>
62893
62894         * lib/clean-temp.c: Include fwriteerror.h.
62895
62896 2006-10-16  Bruno Haible  <bruno@clisp.org>
62897
62898         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62899
62900 2006-10-16  Bruno Haible  <bruno@clisp.org>
62901
62902         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62903         * lib/sigprocmask.h: Include <sys/types.h>.
62904         (sigset_t): Use the system's definition if present.
62905
62906 2006-10-17  Eric Blake  <ebb9@byu.net>
62907
62908         * lib/xvasprintf.c (includes): Assume config.h.
62909         * lib/xasprintf.c (includes): Likewise.
62910
62911 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62912
62913         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62914         at least as wide as intmax_t.
62915
62916 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62917
62918         (Imported from Automake.)
62919         * build-aux/gnupload: Update to version 1.1 of directive file.
62920
62921 2006-10-16  Eric Blake  <ebb9@byu.net>
62922
62923         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62924         match Automake 1.10a.
62925
62926 2006-10-14  Bruno Haible  <bruno@clisp.org>
62927
62928         * modules/sigprocmask: New file.
62929         * lib/sigprocmask.h: New file.
62930         * lib/sigprocmask.c: New file.
62931         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62932         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62933         request sigprocmask.o.
62934         (gl_PREREQ_SIGPROCMASK): New macro.
62935         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62936         (Depends-on): Add sigprocmask.
62937         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62938         gt_SIGNALBLOCKING. Test for 'raise' only once.
62939         * lib/fatal-signal.c: Include sigprocmask.h.
62940         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62941         unblock_fatal_signals): Define always.
62942         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62943         sigprocmask.
62944
62945 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62946
62947         Sync from Automake.
62948         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62949         which incorrectly sets the mode of an existing destination
62950         directory.  In some cases the unpatched install-sh could do the
62951         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62952         system.  We hope this is rare in practice, but it's clearly worth
62953         fixing.  Problem reported by Alex Unleashed in
62954         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62955         Also, don't bother to check for -m bugs unless we're using -m;
62956         suggested by Stepan Kasal.
62957
62958 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62959
62960         Sync from Automake.
62961         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62962         `-c' flag, so they appear at the same position as in %FASTDEP%
62963         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62964         which ignores unknown options only after the first non-option.
62965         Bug report against M4 by Nelson H. F. Beebe.
62966
62967 2006-10-13  Jim Meyering  <jim@meyering.net>
62968
62969         Fix a bug in yesterday's change.
62970         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62971         p->fts_statp->st_dev would be used uninitialized.
62972         Ensures that we always call fts_stat on the very first entry.
62973         Miklos Szeredi reported that find -xdev stopped working.
62974
62975 2006-10-12  Bruno Haible  <bruno@clisp.org>
62976
62977         * gnulib-tool (func_get_automake_snippet): Append an automatically
62978         computed EXTRA_DIST augmentation.
62979         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62980         * modules/alloca-opt (Makefile.am): Likewise.
62981         * modules/allocsa (Makefile.am): Likewise.
62982         * modules/arcfour (Makefile.am): Likewise.
62983         * modules/arctwo (Makefile.am): Likewise.
62984         * modules/argmatch (Makefile.am): Likewise.
62985         * modules/argz (Makefile.am): Likewise.
62986         * modules/atexit (Makefile.am): Likewise.
62987         * modules/backupfile (Makefile.am): Likewise.
62988         * modules/byteswap (Makefile.am): Likewise.
62989         * modules/c-strtod (Makefile.am): Likewise.
62990         * modules/c-strtold (Makefile.am): Likewise.
62991         * modules/calloc (Makefile.am): Likewise.
62992         * modules/canon-host (Makefile.am): Likewise.
62993         * modules/canonicalize (Makefile.am): Likewise.
62994         * modules/chdir-long (Makefile.am): Likewise.
62995         * modules/chdir-safer (Makefile.am): Likewise.
62996         * modules/check-version (Makefile.am): Likewise.
62997         * modules/chown (Makefile.am): Likewise.
62998         * modules/cloexec (Makefile.am): Likewise.
62999         * modules/close-stream (Makefile.am): Likewise.
63000         * modules/closeout (Makefile.am): Likewise.
63001         * modules/crc (Makefile.am): Likewise.
63002         * modules/csharpexec (Makefile.am): Likewise.
63003         * modules/cycle-check (Makefile.am): Likewise.
63004         * modules/des (Makefile.am): Likewise.
63005         * modules/dev-ino (Makefile.am): Likewise.
63006         * modules/dirfd (Makefile.am): Likewise.
63007         * modules/dirname (Makefile.am): Likewise.
63008         * modules/dup2 (Makefile.am): Likewise.
63009         * modules/eealloc (Makefile.am): Likewise.
63010         * modules/error (Makefile.am): Likewise.
63011         * modules/euidaccess (Makefile.am): Likewise.
63012         * modules/exclude (Makefile.am): Likewise.
63013         * modules/exitfail (Makefile.am): Likewise.
63014         * modules/fcntl-safer (Makefile.am): Likewise.
63015         * modules/fcntl (Makefile.am): Likewise.
63016         * modules/file-type (Makefile.am): Likewise.
63017         * modules/fileblocks (Makefile.am): Likewise.
63018         * modules/filemode (Makefile.am): Likewise.
63019         * modules/filenamecat (Makefile.am): Likewise.
63020         * modules/fnmatch (Makefile.am): Likewise.
63021         * modules/fopen-safer (Makefile.am): Likewise.
63022         * modules/fpending (Makefile.am): Likewise.
63023         * modules/fprintftime (Makefile.am): Likewise.
63024         * modules/free (Makefile.am): Likewise.
63025         * modules/fsusage (Makefile.am): Likewise.
63026         * modules/ftruncate (Makefile.am): Likewise.
63027         * modules/fts (Makefile.am): Likewise.
63028         * modules/gc-arcfour (Makefile.am): Likewise.
63029         * modules/gc-des (Makefile.am): Likewise.
63030         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63031         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63032         * modules/gc-md4 (Makefile.am): Likewise.
63033         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63034         * modules/gc-sha1 (Makefile.am): Likewise.
63035         * modules/gc (Makefile.am): Likewise.
63036         * modules/getaddrinfo (Makefile.am): Likewise.
63037         * modules/getcwd (Makefile.am): Likewise.
63038         * modules/getdelim (Makefile.am): Likewise.
63039         * modules/getdomainname (Makefile.am): Likewise.
63040         * modules/getgroups (Makefile.am): Likewise.
63041         * modules/gethostname (Makefile.am): Likewise.
63042         * modules/gethrxtime (Makefile.am): Likewise.
63043         * modules/getline (Makefile.am): Likewise.
63044         * modules/getloadavg (Makefile.am): Likewise.
63045         * modules/getlogin_r (Makefile.am): Likewise.
63046         * modules/getndelim2 (Makefile.am): Likewise.
63047         * modules/getopt (Makefile.am): Likewise.
63048         * modules/getpagesize (Makefile.am): Likewise.
63049         * modules/getpass-gnu (Makefile.am): Likewise.
63050         * modules/getpass (Makefile.am): Likewise.
63051         * modules/getsubopt (Makefile.am): Likewise.
63052         * modules/gettime (Makefile.am): Likewise.
63053         * modules/gettimeofday (Makefile.am): Likewise.
63054         * modules/getugroups (Makefile.am): Likewise.
63055         * modules/getusershell (Makefile.am): Likewise.
63056         * modules/glob (Makefile.am): Likewise.
63057         * modules/group-member (Makefile.am): Likewise.
63058         * modules/hard-locale (Makefile.am): Likewise.
63059         * modules/hash (Makefile.am): Likewise.
63060         * modules/hmac-md5 (Makefile.am): Likewise.
63061         * modules/hmac-sha1 (Makefile.am): Likewise.
63062         * modules/human (Makefile.am): Likewise.
63063         * modules/idcache (Makefile.am): Likewise.
63064         * modules/imaxabs (Makefile.am): Likewise.
63065         * modules/imaxdiv (Makefile.am): Likewise.
63066         * modules/inet_ntop (Makefile.am): Likewise.
63067         * modules/inet_pton (Makefile.am): Likewise.
63068         * modules/intprops (Makefile.am): Likewise.
63069         * modules/inttostr (Makefile.am): Likewise.
63070         * modules/inttypes (Makefile.am): Likewise.
63071         * modules/isapipe (Makefile.am): Likewise.
63072         * modules/javaversion (Makefile.am): Likewise.
63073         * modules/lchmod (Makefile.am): Likewise.
63074         * modules/lchown (Makefile.am): Likewise.
63075         * modules/localcharset (Makefile.am): Likewise.
63076         * modules/long-options (Makefile.am): Likewise.
63077         * modules/lstat (Makefile.am): Likewise.
63078         * modules/malloc (Makefile.am): Likewise.
63079         * modules/mathl (Makefile.am): Likewise.
63080         * modules/mbchar (Makefile.am): Likewise.
63081         * modules/md2 (Makefile.am): Likewise.
63082         * modules/md4 (Makefile.am): Likewise.
63083         * modules/md5 (Makefile.am): Likewise.
63084         * modules/memcasecmp (Makefile.am): Likewise.
63085         * modules/memchr (Makefile.am): Likewise.
63086         * modules/memcmp (Makefile.am): Likewise.
63087         * modules/memcoll (Makefile.am): Likewise.
63088         * modules/memcpy (Makefile.am): Likewise.
63089         * modules/memmem (Makefile.am): Likewise.
63090         * modules/memmove (Makefile.am): Likewise.
63091         * modules/mempcpy (Makefile.am): Likewise.
63092         * modules/memrchr (Makefile.am): Likewise.
63093         * modules/memset (Makefile.am): Likewise.
63094         * modules/memxor (Makefile.am): Likewise.
63095         * modules/mkancesdirs (Makefile.am): Likewise.
63096         * modules/mkdir-p (Makefile.am): Likewise.
63097         * modules/mkdir (Makefile.am): Likewise.
63098         * modules/mkdtemp (Makefile.am): Likewise.
63099         * modules/mkstemp (Makefile.am): Likewise.
63100         * modules/mktime (Makefile.am): Likewise.
63101         * modules/modechange (Makefile.am): Likewise.
63102         * modules/mountlist (Makefile.am): Likewise.
63103         * modules/nanosleep (Makefile.am): Likewise.
63104         * modules/obstack (Makefile.am): Likewise.
63105         * modules/openat (Makefile.am): Likewise.
63106         * modules/pagealign_alloc (Makefile.am): Likewise.
63107         * modules/pathmax (Makefile.am): Likewise.
63108         * modules/physmem (Makefile.am): Likewise.
63109         * modules/poll (Makefile.am): Likewise.
63110         * modules/posixtm (Makefile.am): Likewise.
63111         * modules/posixver (Makefile.am): Likewise.
63112         * modules/putenv (Makefile.am): Likewise.
63113         * modules/quote (Makefile.am): Likewise.
63114         * modules/quotearg (Makefile.am): Likewise.
63115         * modules/raise (Makefile.am): Likewise.
63116         * modules/read-file (Makefile.am): Likewise.
63117         * modules/readline (Makefile.am): Likewise.
63118         * modules/readlink (Makefile.am): Likewise.
63119         * modules/readtokens (Makefile.am): Likewise.
63120         * modules/readutmp (Makefile.am): Likewise.
63121         * modules/realloc (Makefile.am): Likewise.
63122         * modules/regex (Makefile.am): Likewise.
63123         * modules/rename-dest-slash (Makefile.am): Likewise.
63124         * modules/rename (Makefile.am): Likewise.
63125         * modules/rijndael (Makefile.am): Likewise.
63126         * modules/rmdir (Makefile.am): Likewise.
63127         * modules/rpmatch (Makefile.am): Likewise.
63128         * modules/safe-read (Makefile.am): Likewise.
63129         * modules/safe-write (Makefile.am): Likewise.
63130         * modules/same-inode (Makefile.am): Likewise.
63131         * modules/same (Makefile.am): Likewise.
63132         * modules/save-cwd (Makefile.am): Likewise.
63133         * modules/savedir (Makefile.am): Likewise.
63134         * modules/setenv (Makefile.am): Likewise.
63135         * modules/settime (Makefile.am): Likewise.
63136         * modules/sha1 (Makefile.am): Likewise.
63137         * modules/sig2str (Makefile.am): Likewise.
63138         * modules/snprintf (Makefile.am): Likewise.
63139         * modules/stat-macros (Makefile.am): Likewise.
63140         * modules/stat-time (Makefile.am): Likewise.
63141         * modules/stdbool (Makefile.am): Likewise.
63142         * modules/stdint (Makefile.am): Likewise.
63143         * modules/stdlib-safer (Makefile.am): Likewise.
63144         * modules/stpcpy (Makefile.am): Likewise.
63145         * modules/stpncpy (Makefile.am): Likewise.
63146         * modules/strcase (Makefile.am): Likewise.
63147         * modules/strcasestr (Makefile.am): Likewise.
63148         * modules/strchrnul (Makefile.am): Likewise.
63149         * modules/strcspn (Makefile.am): Likewise.
63150         * modules/strdup (Makefile.am): Likewise.
63151         * modules/strerror (Makefile.am): Likewise.
63152         * modules/strftime (Makefile.am): Likewise.
63153         * modules/strndup (Makefile.am): Likewise.
63154         * modules/strnlen (Makefile.am): Likewise.
63155         * modules/strpbrk (Makefile.am): Likewise.
63156         * modules/strsep (Makefile.am): Likewise.
63157         * modules/strstr (Makefile.am): Likewise.
63158         * modules/strtod (Makefile.am): Likewise.
63159         * modules/strtoimax (Makefile.am): Likewise.
63160         * modules/strtok_r (Makefile.am): Likewise.
63161         * modules/strtol (Makefile.am): Likewise.
63162         * modules/strtoll (Makefile.am): Likewise.
63163         * modules/strtoul (Makefile.am): Likewise.
63164         * modules/strtoull (Makefile.am): Likewise.
63165         * modules/strtoumax (Makefile.am): Likewise.
63166         * modules/strverscmp (Makefile.am): Likewise.
63167         * modules/sys_socket (Makefile.am): Likewise.
63168         * modules/sys_stat (Makefile.am): Likewise.
63169         * modules/sysexits (Makefile.am): Likewise.
63170         * modules/time_r (Makefile.am): Likewise.
63171         * modules/timegm (Makefile.am): Likewise.
63172         * modules/timespec (Makefile.am): Likewise.
63173         * modules/tmpfile-safer (Makefile.am): Likewise.
63174         * modules/trim (Makefile.am): Likewise.
63175         * modules/unistd-safer (Makefile.am): Likewise.
63176         * modules/unlinkdir (Makefile.am): Likewise.
63177         * modules/unlocked-io (Makefile.am): Likewise.
63178         * modules/userspec (Makefile.am): Likewise.
63179         * modules/utime (Makefile.am): Likewise.
63180         * modules/utimecmp (Makefile.am): Likewise.
63181         * modules/utimens (Makefile.am): Likewise.
63182         * modules/vasnprintf (Makefile.am): Likewise.
63183         * modules/vasprintf (Makefile.am): Likewise.
63184         * modules/vsnprintf (Makefile.am): Likewise.
63185         * modules/xalloc (Makefile.am): Likewise.
63186         * modules/xgetcwd (Makefile.am): Likewise.
63187         * modules/xnanosleep (Makefile.am): Likewise.
63188         * modules/xreadlink (Makefile.am): Likewise.
63189         * modules/xstrtod (Makefile.am): Likewise.
63190         * modules/xstrtol (Makefile.am): Likewise.
63191         * modules/xstrtold (Makefile.am): Likewise.
63192         * modules/yesno (Makefile.am): Likewise.
63193         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63194
63195 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63196
63197         * modules/error (Makefile.am): Distribute files through
63198         EXTRA_DIST, not lib_SOURCES.
63199
63200 2006-10-12  Eric Blake  <ebb9@byu.net>
63201
63202         * modules/error (Makefile.am): Distribute files in /lib.
63203         * modules/obstack (Makefile.am): Likewise.
63204
63205 2006-10-12  Bruno Haible  <bruno@clisp.org>
63206
63207         * modules/acl (Makefile.am): Distribute all files in lib/ through
63208         EXTRA_DIST.
63209         * modules/arcfour (Makefile.am): Likewise.
63210         * modules/arctwo (Makefile.am): Likewise.
63211         * modules/argmatch (Makefile.am): Likewise.
63212         * modules/argz (Makefile.am): Likewise.
63213         * modules/atexit (Makefile.am): Likewise.
63214         * modules/backupfile (Makefile.am): Likewise.
63215         * modules/c-strtod (Makefile.am): Likewise.
63216         * modules/c-strtold (Makefile.am): Likewise.
63217         * modules/calloc (Makefile.am): Likewise.
63218         * modules/canon-host (Makefile.am): Likewise.
63219         * modules/canonicalize (Makefile.am): Likewise.
63220         * modules/chdir-long (Makefile.am): Likewise.
63221         * modules/chdir-safer (Makefile.am): Likewise.
63222         * modules/check-version (Makefile.am): Likewise.
63223         * modules/chown (Makefile.am): Likewise.
63224         * modules/cloexec (Makefile.am): Likewise.
63225         * modules/close-stream (Makefile.am): Likewise.
63226         * modules/closeout (Makefile.am): Likewise.
63227         * modules/crc (Makefile.am): Likewise.
63228         * modules/cycle-check (Makefile.am): Likewise.
63229         * modules/des (Makefile.am): Likewise.
63230         * modules/dirfd (Makefile.am): Likewise.
63231         * modules/dirname (Makefile.am): Likewise.
63232         * modules/dup2 (Makefile.am): Likewise.
63233         * modules/euidaccess (Makefile.am): Likewise.
63234         * modules/exclude (Makefile.am): Likewise.
63235         * modules/exitfail (Makefile.am): Likewise.
63236         * modules/fcntl-safer (Makefile.am): Likewise.
63237         * modules/file-type (Makefile.am): Likewise.
63238         * modules/fileblocks (Makefile.am): Likewise.
63239         * modules/filemode (Makefile.am): Likewise.
63240         * modules/filenamecat (Makefile.am): Likewise.
63241         * modules/fnmatch (Makefile.am): Likewise.
63242         * modules/fopen-safer (Makefile.am): Likewise.
63243         * modules/fpending (Makefile.am): Likewise.
63244         * modules/fprintftime (Makefile.am): Likewise.
63245         * modules/free (Makefile.am): Likewise.
63246         * modules/fsusage (Makefile.am): Likewise.
63247         * modules/ftruncate (Makefile.am): Likewise.
63248         * modules/fts (Makefile.am): Likewise.
63249         * modules/gc (Makefile.am): Likewise.
63250         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63251         * modules/getaddrinfo (Makefile.am): Likewise.
63252         * modules/getcwd (Makefile.am): Likewise.
63253         * modules/getdelim (Makefile.am): Likewise.
63254         * modules/getdomainname (Makefile.am): Likewise.
63255         * modules/getgroups (Makefile.am): Likewise.
63256         * modules/gethostname (Makefile.am): Likewise.
63257         * modules/gethrxtime (Makefile.am): Likewise.
63258         * modules/getline (Makefile.am): Likewise.
63259         * modules/getloadavg (Makefile.am): Likewise.
63260         * modules/getlogin_r (Makefile.am): Likewise.
63261         * modules/getopt (Makefile.am): Likewise.
63262         * modules/getpass (Makefile.am): Likewise.
63263         * modules/getpass-gnu (Makefile.am): Likewise.
63264         * modules/getsubopt (Makefile.am): Likewise.
63265         * modules/gettime (Makefile.am): Likewise.
63266         * modules/gettimeofday (Makefile.am): Likewise.
63267         * modules/getugroups (Makefile.am): Likewise.
63268         * modules/getusershell (Makefile.am): Likewise.
63269         * modules/glob (Makefile.am): Likewise.
63270         * modules/group-member (Makefile.am): Likewise.
63271         * modules/hard-locale (Makefile.am): Likewise.
63272         * modules/hash (Makefile.am): Likewise.
63273         * modules/hmac-md5 (Makefile.am): Likewise.
63274         * modules/hmac-sha1 (Makefile.am): Likewise.
63275         * modules/human (Makefile.am): Likewise.
63276         * modules/idcache (Makefile.am): Likewise.
63277         * modules/imaxabs (Makefile.am): Likewise.
63278         * modules/imaxdiv (Makefile.am): Likewise.
63279         * modules/inet_ntop (Makefile.am): Likewise.
63280         * modules/inet_pton (Makefile.am): Likewise.
63281         * modules/inttostr (Makefile.am): Likewise.
63282         * modules/isapipe (Makefile.am): Likewise.
63283         * modules/lchown (Makefile.am): Likewise.
63284         * modules/long-options (Makefile.am): Likewise.
63285         * modules/lstat (Makefile.am): Likewise.
63286         * modules/malloc (Makefile.am): Likewise.
63287         * modules/mathl (Makefile.am): Likewise.
63288         * modules/mbchar (Makefile.am): Likewise.
63289         * modules/md2 (Makefile.am): Likewise.
63290         * modules/md4 (Makefile.am): Likewise.
63291         * modules/md5 (Makefile.am): Likewise.
63292         * modules/memcasecmp (Makefile.am): Likewise.
63293         * modules/memchr (Makefile.am): Likewise.
63294         * modules/memcmp (Makefile.am): Likewise.
63295         * modules/memcoll (Makefile.am): Likewise.
63296         * modules/memcpy (Makefile.am): Likewise.
63297         * modules/memmem (Makefile.am): Likewise.
63298         * modules/memmove (Makefile.am): Likewise.
63299         * modules/mempcpy (Makefile.am): Likewise.
63300         * modules/memrchr (Makefile.am): Likewise.
63301         * modules/memset (Makefile.am): Likewise.
63302         * modules/memxor (Makefile.am): Likewise.
63303         * modules/mkancesdirs (Makefile.am): Likewise.
63304         * modules/mkdir (Makefile.am): Likewise.
63305         * modules/mkdir-p (Makefile.am): Likewise.
63306         * modules/mkdtemp (Makefile.am): Likewise.
63307         * modules/mkstemp (Makefile.am): Likewise.
63308         * modules/mktime (Makefile.am): Likewise.
63309         * modules/modechange (Makefile.am): Likewise.
63310         * modules/mountlist (Makefile.am): Likewise.
63311         * modules/nanosleep (Makefile.am): Likewise.
63312         * modules/openat (Makefile.am): Likewise.
63313         * modules/pagealign_alloc (Makefile.am): Likewise.
63314         * modules/physmem (Makefile.am): Likewise.
63315         * modules/poll (Makefile.am): Likewise.
63316         * modules/posixtm (Makefile.am): Likewise.
63317         * modules/posixver (Makefile.am): Likewise.
63318         * modules/putenv (Makefile.am): Likewise.
63319         * modules/quote (Makefile.am): Likewise.
63320         * modules/quotearg (Makefile.am): Likewise.
63321         * modules/raise (Makefile.am): Likewise.
63322         * modules/read-file (Makefile.am): Likewise.
63323         * modules/readline (Makefile.am): Likewise.
63324         * modules/readlink (Makefile.am): Likewise.
63325         * modules/readtokens (Makefile.am): Likewise.
63326         * modules/readutmp (Makefile.am): Likewise.
63327         * modules/realloc (Makefile.am): Likewise.
63328         * modules/regex (Makefile.am): Likewise.
63329         * modules/rename (Makefile.am): Likewise.
63330         * modules/rename-dest-slash (Makefile.am): Likewise.
63331         * modules/rijndael (Makefile.am): Likewise.
63332         * modules/rmdir (Makefile.am): Likewise.
63333         * modules/rpmatch (Makefile.am): Likewise.
63334         * modules/safe-read (Makefile.am): Likewise.
63335         * modules/safe-write (Makefile.am): Likewise.
63336         * modules/same (Makefile.am): Likewise.
63337         * modules/save-cwd (Makefile.am): Likewise.
63338         * modules/savedir (Makefile.am): Likewise.
63339         * modules/setenv (Makefile.am): Likewise.
63340         * modules/settime (Makefile.am): Likewise.
63341         * modules/sha1 (Makefile.am): Likewise.
63342         * modules/sig2str (Makefile.am): Likewise.
63343         * modules/snprintf (Makefile.am): Likewise.
63344         * modules/stdlib-safer (Makefile.am): Likewise.
63345         * modules/stpcpy (Makefile.am): Likewise.
63346         * modules/stpncpy (Makefile.am): Likewise.
63347         * modules/strcase (Makefile.am): Likewise.
63348         * modules/strcasestr (Makefile.am): Likewise.
63349         * modules/strchrnul (Makefile.am): Likewise.
63350         * modules/strcspn (Makefile.am): Likewise.
63351         * modules/strdup (Makefile.am): Likewise.
63352         * modules/strerror (Makefile.am): Likewise.
63353         * modules/strftime (Makefile.am): Likewise.
63354         * modules/strndup (Makefile.am): Likewise.
63355         * modules/strnlen (Makefile.am): Likewise.
63356         * modules/strpbrk (Makefile.am): Likewise.
63357         * modules/strsep (Makefile.am): Likewise.
63358         * modules/strstr (Makefile.am): Likewise.
63359         * modules/strtod (Makefile.am): Likewise.
63360         * modules/strtoimax (Makefile.am): Likewise.
63361         * modules/strtok_r (Makefile.am): Likewise.
63362         * modules/strtol (Makefile.am): Likewise.
63363         * modules/strtoll (Makefile.am): Likewise.
63364         * modules/strtoul (Makefile.am): Likewise.
63365         * modules/strtoull (Makefile.am): Likewise.
63366         * modules/strtoumax (Makefile.am): Likewise.
63367         * modules/strverscmp (Makefile.am): Likewise.
63368         * modules/time_r (Makefile.am): Likewise.
63369         * modules/timegm (Makefile.am): Likewise.
63370         * modules/tmpfile-safer (Makefile.am): Likewise.
63371         * modules/unistd-safer (Makefile.am): Likewise.
63372         * modules/unlinkdir (Makefile.am): Likewise.
63373         * modules/userspec (Makefile.am): Likewise.
63374         * modules/utime (Makefile.am): Likewise.
63375         * modules/utimecmp (Makefile.am): Likewise.
63376         * modules/utimens (Makefile.am): Likewise.
63377         * modules/vasnprintf (Makefile.am): Likewise.
63378         * modules/vasprintf (Makefile.am): Likewise.
63379         * modules/vsnprintf (Makefile.am): Likewise.
63380         * modules/xalloc (Makefile.am): Likewise.
63381         * modules/xgetcwd (Makefile.am): Likewise.
63382         * modules/xnanosleep (Makefile.am): Likewise.
63383         * modules/xreadlink (Makefile.am): Likewise.
63384         * modules/xstrtod (Makefile.am): Likewise.
63385         * modules/xstrtol (Makefile.am): Likewise.
63386         * modules/xstrtold (Makefile.am): Likewise.
63387         * modules/yesno (Makefile.am): Likewise.
63388
63389 2006-10-12  Jim Meyering  <jim@meyering.net>
63390
63391         * m4/getloadavg.m4: Revert the change below.
63392
63393         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63394         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63395         fail with a symlink, which is what coreutils' ./bootstrap now
63396         creates by default.
63397
63398 2006-10-12  Bruno Haible  <bruno@clisp.org>
63399
63400         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63401         mingw.
63402         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63403         MSVC and mingw explicitly.
63404
63405 2006-10-11  Simon Josefsson  <jas@extundo.com>
63406             Bruno Haible  <bruno@clisp.org>
63407
63408         Add support for multiple gnulib-tool invocations in the scope of a
63409         single configure.ac file.
63410         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63411         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63412         with the same contents as the _LIBADD variable.
63413         (func_emit_initmacro_start, func_emit_initmacro_end,
63414         func_emit_initmacro_done): New functions.
63415         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63416         gl_LIBOBJS and gl_LTLIBOBJS.
63417
63418 2006-10-11  Bruno Haible  <bruno@clisp.org>
63419
63420         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63421         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63422         autoreconf. Instead, invoke autopoint explicitly but move back the
63423         *.m4 files from gnulib.
63424
63425 2006-10-11  Bruno Haible  <bruno@clisp.org>
63426
63427         * gnulib-tool (func_usage): Make module names after --create-testdir
63428         optional.
63429         (func_create_testdir): If no module was specified, use nearly all
63430         modules.
63431
63432 2006-10-12  Jim Meyering  <jim@meyering.net>
63433
63434         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63435         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63436         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63437         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63438         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63439         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63440         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63441         (fts_set_stat_required): New function.
63442         (fts_open): Defer the calls to fts_stat, if possible or requested.
63443         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63444         into fts_stat itself.
63445         (fts_read): Perform any required (deferred) fts_stat call.
63446         (fts_build): Likewise, for the directory we're about to open and read.
63447         In the readdir loop, carefully decide whether each entry will require
63448         an eventual call to fts_stat, using dirent.d_type info if available.
63449         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63450         a command line argument into this function.  Update all callers.
63451         Map a return value of FTS_DOT to FTS_D for a command line argument.
63452         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63453         Thanks to Miklos Szeredi for his tenacity and for the initial
63454         bug report about "find" failing on a FUSE-based file system.
63455
63456         * lib/fts.c (fts_open): Use consistent indentation.
63457
63458 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63459
63460         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63461         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63462         reported by Jim Meyering.  All uses of cache variables renamed
63463         to match Autoconf's.
63464         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63465         the other one.
63466
63467         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63468         Fix misspelling in diagnostic.
63469
63470 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63471
63472         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63473         defined.  Problem reported by Matthew Woehlke.
63474
63475         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63476         Add support for Tandem NonStop R series.
63477         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63478         Use new macro.
63479
63480         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63481         (has_trailing_slash): Omit size arg; all callers changed.
63482         Omit 'inline', since it doesn't help performance and we'd
63483         need to configure it.
63484         Don't count //, ///, etc. as having a trailing slash.
63485         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63486         (rpl_rename_dest_slash): On failure, use rename's errno rather
63487         than (in some cases) an incorrect or junk errno.
63488         Simplify code by removing need to compute length; this does
63489         cause it to make two passes instead of one over the file name,
63490         but it's worth it.
63491
63492         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63493         change, since Autoconf's version may no longer be appropriate now
63494         that we are using CVS Autoconf's version.  Add support for Tandem.
63495
63496 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63497             Bruno Haible  <bruno@clisp.org>
63498
63499         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63500         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63501         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63502         gl_AC_TYPE_LONG_LONG.
63503
63504         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63505         instead of HAVE_LONG_LONG.
63506         * lib/printf-args.c (printf_fetchargs): Likewise.
63507         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63508         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63509         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63510         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63511         gl_AC_TYPE_LONG_LONG.
63512
63513 2006-10-11  Bruno Haible  <bruno@clisp.org>
63514
63515         * m4/longlong.m4: Add comments.
63516         * m4/ulonglong.m4: Likewise.
63517
63518 2006-10-10  Bruno Haible  <bruno@clisp.org>
63519
63520         Make it possible to #define stpcpy, strdup to aliases.
63521         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63522         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63523
63524 2006-10-10  Bruno Haible  <bruno@clisp.org>
63525
63526         Make it possible to #define gcd to an alias.
63527         * lib/gcd.c: Include config.h.
63528
63529 2006-10-10  Bruno Haible  <bruno@clisp.org>
63530
63531         Make it possible to #define c_isascii to an alias.
63532         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63533         defined. Undefine the macros before defining them, to avoid gcc
63534         warnings.
63535         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63536         define NO_C_CTYPE_MACROS early.
63537
63538 2006-10-10  Bruno Haible  <bruno@clisp.org>
63539
63540         Make it possible to #define set_program_name to an alias.
63541         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63542         ENABLE_RELOCATABLE early.
63543
63544 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63545
63546         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63547         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63548         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63549         More generally, don't assume that 64-bit signed int is available
63550         if unsigned int is, and vice versa.
63551         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63552         unsigned symbols, not on their signed counterparts.
63553         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63554         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63555         (UINT64_C, UINTMAX_C):
63556         Likewise.
63557         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63558         unsigned counterparts.
63559         (Have_long_long, Unsigned): New macros.
63560         (Int): Renamed from INT.
63561         (strtoimax): Use the new macros.
63562         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63563         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63564         * modules/inttypes (inttypes.h): Substitute
63565         HAVE_UNSIGNED_LONG_LONG_INT.
63566         * modules/stdint (stdint.h): Likewise.
63567         (Files): Add m4/ulonglong.m4.
63568
63569 2006-10-10  Bruno Haible  <bruno@clisp.org>
63570
63571         Fix a gcc -Wshadow warning.
63572         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63573         to 'bucket'.
63574         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63575         gl_linked_indexof_from_to): Likewise.
63576         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63577         Likewise.
63578         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63579         Likewise.
63580         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63581         Reported by Eric Blake.
63582
63583 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63584
63585         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63586         for NetBSD.  Problem reported by Bruno Haible.
63587
63588 2006-10-09  Jim Meyering  <jim@meyering.net>
63589
63590         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63591         Patch from Bruno Haible.
63592
63593 2006-10-09  Jim Meyering  <jim@meyering.net>
63594
63595         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63596         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63597         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63598
63599 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         Don't include <config.h> twice; this doesn't work in some cases,
63602         e.g., when config.h has "#define intmax_t long long int" and
63603         we include <config.h>, <inttypes.h>, <config.h> in that order.
63604         Problem reported by Matthew Woehlke in:
63605         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63606         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63607         * lib/fts-cycle.c: Don't include config.h.
63608         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63609         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63610         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63611         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63612         inttypes.h.
63613         * lib/xstrtoumax.c: Likewise.
63614         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63615         __strtol and the like, so that this module is more like its siblings.
63616         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63617         Remove; no longer needed now that we assume gnulib inttypes.h.
63618
63619 2006-10-08  Bruno Haible  <bruno@clisp.org>
63620
63621         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63622         option.
63623
63624 2006-10-07  Jim Meyering  <jim@meyering.net>
63625
63626         * modules/inttypes (inttypes.h): Revert what seems to have been
63627         an inadvertent part of today's change: use "|", not "/" in the
63628         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63629
63630 2006-10-07  Bruno Haible  <bruno@clisp.org>
63631
63632         * modules/sublist: New file.
63633
63634 2006-10-07  Bruno Haible  <bruno@clisp.org>
63635
63636         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63637         * modules/argz (argz.h): Likewise.
63638         * modules/arpa_inet (arpa/inet.h): Likewise.
63639         * modules/byteswap (byteswap.h): Likewise.
63640         * modules/configmake (configmake.h): Likewise.
63641         * modules/fcntl (fcntl.h): Likewise.
63642         * modules/fnmatch (fnmatch.h): Likewise.
63643         * modules/getopt (getopt.h): Likewise.
63644         * modules/glob (glob.h): Likewise.
63645         * modules/inttypes (inttypes.h): Likewise.
63646         * modules/netinet_in (netinet/in.h): Likewise.
63647         * modules/poll (poll.h): Likewise.
63648         * modules/stdbool (stdbool.h): Likewise.
63649         * modules/stdint (stdint.h): Likewise.
63650         * modules/sys_select (sys/select.h): Likewise.
63651         * modules/sys_socket (sys/socket.h): Likewise.
63652         * modules/sys_stat (sys/stat.h): Likewise.
63653         * modules/sysexits (sysexits.h): Likewise.
63654         * modules/unistd (unistd.h): Likewise.
63655         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63656         Add a "DO NOT EDIT" comment to the generated file.
63657         (func_import): Likewise for gnulib-comp.m4.
63658
63659 2006-10-07  Bruno Haible  <bruno@clisp.org>
63660
63661         * lib/gl_sublist.h: New file.
63662         * lib/gl_sublist.c: New file.
63663
63664 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63665
63666         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63667         name (relative to the original working directory) and the file
63668         name component (relative to the temporary working directory).  All
63669         callers changed.
63670         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63671         * lib/mkdir-p.c (make_dir_parents): Likewise.
63672         * lib/mkdir-p.h (make_dir_parents): Likewise.
63673
63674 2006-10-06  Eric Blake  <ebb9@byu.net>
63675
63676         Define several macros for use by the clean-temp module.
63677         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63678         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63679         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63680
63681         * lib/clean-temp.h (close_stream_temp): New declaration.
63682         * lib/clean-temp.c (includes): Pull in headers according to what
63683         other modules are in use.
63684         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63685
63686 2006-10-06  Bruno Haible  <bruno@clisp.org>
63687
63688         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63689         instead of fopen, fwriteerror.
63690
63691 2006-10-06  Bruno Haible  <bruno@clisp.org>
63692
63693         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63694         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63695         int.
63696         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63697         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63698         Return an error indicator.
63699         Suggested by Eric Blake.
63700
63701 2006-10-06  Bruno Haible  <bruno@clisp.org>
63702
63703         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63704         Reported by Eric Blake.
63705
63706 2006-10-06  Bruno Haible  <bruno@clisp.org>
63707
63708         * modules/closeout (Description): Mention stderr too.
63709
63710 2006-10-06  Bruno Haible  <bruno@clisp.org>
63711         and Paul Eggert  <eggert@cs.ucla.edu>
63712
63713         * lib/closeout.c (close_stdout): Also close stderr.
63714         * lib/closeout.h: Update comment.
63715
63716 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63717
63718         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63719         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63720         * lib/dirchownmod.c: Include lchown.h.
63721         * lib/lchown.c: Don't include files that lchown.h now includes.
63722         Don't declare chown, since lchown.h now does that.
63723         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63724         (lchown): Define to rpl_chown if lchown is declared but
63725         does not exist.  Declare using a prototype if lchown is not
63726         declared.  Add a copyright notice.
63727         * lib/mkstemp.h: Include <unistd.h>.
63728         * lib/openat.c: Include lchown.h.
63729
63730         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63731         we now test for that separately.
63732         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63733         rather than O_NOFOLLOW, when testing whether it's possible to
63734         avoid a race condition reliably.
63735         * lib/savewd.c (savewd_chdir): Likewise.
63736
63737         Remove macros that are no longer needed now that stdint.h is
63738         reliable.
63739         * lib/fsusage.c (UINTMAX_MAX): Remove.
63740         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63741         * lib/utimecmp.c (SIZE_MAX): Remove.
63742
63743         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63744
63745         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63746         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63747         O_NOATIME works.
63748
63749 2006-10-05  Bruno Haible  <bruno@clisp.org>
63750
63751         * lib/gl_list.h (gl_sortedlist_search_from_to,
63752         gl_sortedlist_indexof_from_to): New declarations.
63753         (gl_list_implementation): New fields sortedlist_search_from_to,
63754         sortedlist_indexof_from_to.
63755         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63756         inline functions.
63757         * lib/gl_list.c (gl_sortedlist_search_from_to,
63758         gl_sortedlist_indexof_from_to): New functions.
63759         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63760         function.
63761         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63762         (gl_array_sortedlist_search_from_to): New function.
63763         (gl_array_list_implementation): Update.
63764         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63765         function.
63766         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63767         (gl_carray_sortedlist_search_from_to): New function.
63768         (gl_carray_list_implementation): Update.
63769         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63770         gl_linked_sortedlist_indexof_from_to): New functions.
63771         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63772         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63773         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63774         gl_tree_sortedlist_indexof_from_to): New functions.
63775         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63776         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63777         Update.
63778         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63779         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63780         Update.
63781
63782 2006-10-05  Bruno Haible  <bruno@clisp.org>
63783
63784         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63785         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63786         (struct gl_list_implementation): Add fields search_from_to,
63787         indexof_from_to. Remove fields search, indexof.
63788         (gl_list_search): Use the search_from_to method.
63789         (gl_list_search_from, gl_list_search_from_to): New functions.
63790         (gl_list_indexof): Use the indexof_from_to method.
63791         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63792         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63793         (gl_list_search_from, gl_list_search_from_to): New functions.
63794         (gl_list_indexof): Use the indexof_from_to method.
63795         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63796         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63797         gl_array_indexof. Add start_index, end_index arguments.
63798         (gl_array_search_from_to): Renamed from gl_array_search. Add
63799         start_index, end_index arguments.
63800         (gl_array_remove, gl_array_list_implementation): Update.
63801         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63802         gl_carray_indexof. Add start_index, end_index arguments.
63803         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63804         start_index, end_index arguments.
63805         (gl_carray_remove, gl_carray_list_implementation): Update.
63806         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63807         gl_linked_search. Add start_index, end_index arguments.
63808         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63809         start_index, end_index arguments.
63810         (gl_linked_remove): Update.
63811         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63812         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63813         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63814         field to 'size_t'.
63815         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63816         gl_tree_search. Add start_index, end_index arguments.
63817         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63818         start_index, end_index arguments.
63819         (gl_tree_remove): Update.
63820         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63821         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63822         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63823         function.
63824         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63825         gl_tree_search. Add start_index, end_index arguments.
63826         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63827         start_index, end_index arguments.
63828         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63829         Update.
63830         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63831
63832 2006-10-05  Bruno Haible  <bruno@clisp.org>
63833
63834         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63835
63836         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63837         fwriteerror_temp): New declarations.
63838         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63839         (descriptors): New variable.
63840         (cleanup): First, close the descriptors.
63841         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63842         fclose_temp, fwriteerror_temp): New functions.
63843
63844 2006-10-04  Jim Meyering  <jim@meyering.net>
63845
63846         * lib/fts.c (fts_open): Tiny comment change.
63847
63848 2006-10-04  Bruno Haible  <bruno@clisp.org>
63849
63850         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63851         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63852         gl_LOCK_BODY.
63853         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63854         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63855         gl_LOCK_EARLY_BODY.
63856         (gl_LOCK): Require gl_LOCK_BODY.
63857
63858 2006-10-04  Bruno Haible  <bruno@clisp.org>
63859
63860         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63861         (gl_oset_search_atleast): New declaration.
63862         (struct gl_oset_implementation): Add field 'search_atleast'.
63863         (gl_oset_search_atleast): New inline function.
63864         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63865         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63866         (gl_array_oset_implementation): Update.
63867         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63868         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63869         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63870
63871 2006-10-04  Bruno Haible  <bruno@clisp.org>
63872
63873         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63874
63875 2006-10-03  Bruno Haible  <bruno@clisp.org>
63876
63877         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63878         from gl_avltreehash_list_implementation.
63879
63880 2006-10-03  Bruno Haible  <bruno@clisp.org>
63881
63882         * lib/gl_oset.c (gl_oset_add): Fix return type.
63883
63884 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63885
63886         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63887
63888 2006-10-02  Eric Blake  <ebb9@byu.net>
63889
63890         * modules/strnlen (Depends-on): Add extensions.
63891
63892 2006-10-02  Eric Blake  <ebb9@byu.net>
63893
63894         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63895         definition in 2.60+.
63896
63897 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63898
63899         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63900         checks.
63901
63902 2006-10-02  Bruno Haible  <bruno@clisp.org>
63903
63904         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63905         to the AUTOMAKE_OPTIONS.
63906         Reported by Jim Meyering.
63907
63908 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63909
63910         Work around bug in Solaris 10 /proc file system:
63911         /proc/self/fd/NNN/.. isn't the parent directory of
63912         the directory whose file descriptor is NNN.  This needs to
63913         be worked around at run time, not compile time, since a
63914         program might be built on Solaris 8, where things work, and
63915         run on Solaris 10.
63916         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63917         to use the following interface instead:
63918         (OPENAT_BUFFER_SIZE): New macro.
63919         (openat_proc_name): New function.
63920         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63921         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63922         Likewise.
63923         * lib/openat-proc.c: New file.
63924         * modules/openat (Files): Add lib/openat-proc.c.
63925         (Depends-on): Add same-inode, stdbool.
63926         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63927
63928 2006-09-29  Bruno Haible  <bruno@clisp.org>
63929
63930         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63931         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63932         argument. Set stdout_closed before testing for ferror, not after.
63933         (fwriteerror, fwriteerror_no_ebadf): New functions.
63934
63935 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63936
63937         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63938
63939 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63940
63941         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63942         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63943
63944 2006-09-28  Jim Meyering  <jim@meyering.net>
63945
63946         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63947         Include <unistd.h>.
63948
63949 2006-09-28  Bruno Haible  <bruno@clisp.org>
63950
63951         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63952         * modules/linkedhash-list (Depends-on): Likewise.
63953         * modules/rbtreehash-list (Depends-on): Likewise.
63954
63955 2006-09-28  Bruno Haible  <bruno@clisp.org>
63956
63957         * lib/strndup.h: Simplify the redefinition of strndup.
63958         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63959         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63960
63961 2006-09-28  Bruno Haible  <bruno@clisp.org>
63962
63963         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63964         * lib/gl_linkedhash_list.c: Likewise.
63965         * lib/gl_rbtreehash_list.c: Likewise.
63966
63967 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63968
63969         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63970         getaddrinfo.
63971
63972         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63973         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63974         it causes <stdio_ext.h> to cause a compile-time error.
63975         Problem reported by Nelson H. F. Beebe.
63976         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63977         of HAVE_DECL___PENDING.
63978
63979         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63980         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63981         declaration.
63982
63983 2006-09-27  Jim Meyering  <jim@meyering.net>
63984
63985         This file could end up with a definition for a function
63986         named __strndup, rather than rpl_strndup on a system with
63987         incomplete weak_alias support.
63988         * lib/strndup.c (strndup): Rename from __strndup.
63989         Remove #defines that used to map __strndup to strndup.
63990         Don't use K&R prototypes.
63991         Remove LIBC-related code, since this file is not sync'd with glibc.
63992         * lib/strndup.h: Revamp, accordingly.
63993         * m4/strndup.m4: Modernize.
63994
63995 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63996
63997         * modules/savewd (Depends-on): Add 'raise'.
63998         * lib/savewd.c: Include <signal.h>, for 'raise'.
63999
64000 2006-09-26  Jim Meyering  <jim@meyering.net>
64001
64002         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64003         when we detect Darwin 8.7.0's acl_get_file bug.
64004         Rearrange to perform the new (below) run-test while $LIBS
64005         contains any acl-related library.  Set USE_ACL at the end.
64006         (gl_ACL_GET_FILE): New function.
64007
64008 2006-09-26  Eric Blake  <ebb9@byu.net>
64009
64010         * lib/verror.c: Include <config.h> unconditionally.
64011
64012 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64013
64014         * modules/clock-time (Maintainer): Add self.
64015         * modules/getlogin_r (Depends-on): Add extensions.
64016
64017 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64018
64019         * modules/clock-time: New module.
64020         * modules/nanosleep (Depends-on): Add clock-time.
64021         * modules/gethrxtime (Depends-on): Likewise.
64022         * modules/gettime (Depends-on): Likewise.
64023         * modules/settime (Depends-on): Likewise.
64024
64025         * modules/fts-lgpl: Depend on openat.
64026         * modules/mkancesdirs: Depend on savewd.
64027         * modules/mkdir-p: Likewise.
64028
64029 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64030
64031         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64032
64033         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64034         `gl_have_arbitrary_file_name_length_limit' to
64035         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64036         actually works between configure runs.
64037
64038 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64039             Bruno Haible  <bruno@clisp.org>
64040
64041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64042
64043 2006-09-25  Jim Meyering  <jim@meyering.net>
64044
64045         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64046         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64047
64048 2006-09-25  Eric Blake  <ebb9@byu.net>
64049
64050         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64051         exec's in 2006-09-18 patch when shuffling fds.
64052
64053 2006-09-25  Bruno Haible  <bruno@clisp.org>
64054
64055         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64056         Reported by Jim Meyering.
64057
64058 2006-09-24  Jim Meyering  <jim@meyering.net>
64059
64060         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64061         compare a pointer against a literal "0".  That caused failures with
64062         at least HP-UX's hpcc.
64063
64064 2006-09-22  Simon Josefsson  <jas@extundo.com>
64065
64066         * modules/gc-sha1:
64067         * modules/gc-md4:
64068         * modules/gc-hmac-sha1:
64069         * modules/gc-hmac-md5:
64070         * modules/gc-des:
64071         * modules/gc-arcfour: Distribute more files.
64072
64073 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64074
64075         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64076         (gl_linked_iterator_from_to): Initialize struct completely.
64077         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64078         (gl_tree_iterator_from_to): Likewise
64079         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64080         * lib/gl_array_list.c [lint] (gl_array_iterator)
64081         (gl_array_iterator_from_to): Likewise.
64082         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64083         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64084         (gl_carray_iterator_from_to): Likewise.
64085
64086         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64087         * lib/md4.c (md4_process_block): Remove unused variable.
64088         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64089         parentheses for clarity.
64090
64091 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64092
64093         * modules/bison-i18n (Depends-on): Add gettext.
64094
64095 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64096
64097         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64098         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64099         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64100         also add missing comma that caused broken test.
64101         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64102         stdlib.h, for `abort'.
64103         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64104         variables.
64105         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64106         include unistd.h if present, for `rmdir'.
64107         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64108         variables.
64109         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64110         in the process include standard headers for prototypes.
64111         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64112         gets declared on GNU/Linux.
64113         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64114         unistd.h, for `rmdir'.
64115         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64116
64117         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64118         always true.
64119         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64120
64121         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64122
64123 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64124
64125         * gnulib-tool (func_version): Create output all at once.  This
64126         may help avoid triggering unnecessary SIGPIPEs, and at any
64127         rate it doesn't hurt.
64128
64129 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64130             Bruno Haible  <bruno@clisp.org>
64131
64132         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64133         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64134         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64135
64136         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64137         (gl_FUNC_VASPRINTF): Invoke it.
64138
64139 2006-09-22  Bruno Haible  <bruno@clisp.org>
64140
64141         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64142         getloadavg.c as first argument.
64143
64144 2006-09-22  Bruno Haible  <bruno@clisp.org>
64145
64146         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64147         at the beginning of the gl_INIT macro.
64148         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64149         gl_GETLOADAVG.
64150
64151 2006-09-22  Bruno Haible  <bruno@clisp.org>
64152
64153         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64154         module.
64155         Suggested by Ralf Wildenhues.
64156
64157 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64158
64159         Import this patch from libc:
64160
64161         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64162
64163         * lib/regex_internal.c (re_string_reconstruct): Handle
64164         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64165         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64166         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64167         re_string_context_at.
64168
64169         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64170         now requires it.
64171         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64172         gl_REGEX now does it for us.
64173         (gl_REGEX): Add test taken from
64174         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64175
64176         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64177         Check that large offsets work.  Modernize Autoconf usages.
64178         Prefer "yes" to mean a good thing rather than a bad.
64179         Don't put "#define mkstemp" in config.h, as this might interfere
64180         with standard system headers that "#define mkstemp mkstemp64".
64181
64182         * modules/mkstemp (Depends-on): Add extensions, so that
64183         mkstemp is visible on some platforms.
64184         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64185         (Include): Change to "mkstemp.h" from <stdlib.h>.
64186         (Files): Add mkstemp.h.
64187
64188         * lib/mkstemp.h: New file, since some standard headers
64189         #define mkstemp.
64190         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64191         Include "mkstemp.h".
64192         Make the _LIBC code resemble glibc original more,
64193         e.g., use K&R style.
64194         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64195         (mkstemp): Remove, since mkstemp.h does this for us.
64196         * lib/stdlib--.h: Include mkstemp.h.
64197
64198         Import this patch from libc:
64199
64200         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64201
64202         * lib/tempname.c (__gen_tempname): Change attempts_min
64203         into a macro.  Use preprocessor to decide how to initialize
64204         attempts [Coverity CID 67].
64205
64206 2006-09-20  Bruno Haible  <bruno@clisp.org>
64207
64208         * lib/mkdtemp.c: Import from libc.
64209         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64210                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64211                 attempts_min into a macro.  Use preprocessor to decide how to
64212                 initialize attempts [Coverity CID 67].
64213         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64214                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64215                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64216
64217 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64218
64219         * gnulib-tool (func_exit): New function, to allow to pass the
64220         exit status portably through the trap.  Use everywhere.
64221         (--help, --version): Signal a write error.
64222         (trap): catch SIGPIPE, for write errors.
64223         Exit at the end of the trap, with the correct exit status.
64224
64225 2006-09-19  Karl Berry  <karl@gnu.org>
64226
64227         * doc/gnulib.texi: note about the license texinfo files.
64228
64229 2006-09-19  Eric Blake  <ebb9@byu.net>
64230
64231         * gnulib-tool: Avoid space-tab.
64232
64233 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64234
64235         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64236         that prevented coreutils 6.1 from building.  Problem reported
64237         by Petter Reinholdtsen.
64238
64239 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64240
64241         * gnulib-tool (avoidlist): Fix typo that broke options like
64242         --avoid=lock that are used by coreutils bootstrap.
64243
64244 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64245
64246         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64247         more systematically.
64248
64249 2006-09-18  Jim Meyering  <jim@meyering.net>
64250
64251         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64252
64253 2006-09-18  Bruno Haible  <bruno@clisp.org>
64254
64255         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64256
64257 2006-09-18  Bruno Haible  <bruno@clisp.org>
64258
64259         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64260         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64261         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64262         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64263         * m4/gettext.m4: Require autoconf >= 2.52.
64264         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64265         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64266         of gl_cv_header_inttypes_h.
64267
64268 2006-09-18  Bruno Haible  <bruno@clisp.org>
64269
64270         * lib/javaversion.c: Include configmake.h.
64271
64272 2006-09-18  Bruno Haible  <bruno@clisp.org>
64273
64274         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64275         avoid that the while loops be executed in a subshell.
64276
64277 2006-09-18  Bruno Haible  <bruno@clisp.org>
64278
64279         * MODULES.html.sh (func_module): Break long lines.
64280         Suggested by Bruce Korb <bkorb@gnu.org>.
64281
64282 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64283
64284         Speed up by a factor of 1.12.
64285         * gnulib-tool (nl): New variable.
64286         (func_import): Rewrite include directive extraction to only read each
64287         directive once.
64288
64289 2006-09-17  Bruno Haible  <bruno@clisp.org>
64290
64291         * modules/javaversion (Makefile.am): Remove DEFS setting.
64292         (Depends-on): Add configmake, for PKGDATADIR definition.
64293
64294 2006-09-17  Bruno Haible  <bruno@clisp.org>
64295
64296         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64297
64298 2006-09-17  Bruno Haible  <bruno@clisp.org>
64299
64300         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64301         (func_modules_transitive_closure, func_modules_add_dummy,
64302         func_modules_to_filelist, func_import, func_create_testdir,
64303         func_create_megatestdir, ...): Use it wherever possible.
64304         Suggested by Ralf Wildenhues.
64305
64306 2006-09-16  Karl Berry  <karl@gnu.org>
64307
64308         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64309         to avoid sectioning errors.
64310         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64311         [ifinfo]: blank line after @center-ed titles.
64312         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64313         Spell FSF address consistently with others.
64314         (These changes approved by rms.)
64315
64316 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64317
64318         Speed up by a factor of 1.61.
64319         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64320         already checked module names again.
64321
64322 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64323
64324         Speed up by a factor of 1.13.
64325         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64326         for new_files, and the input to func_add_or_update.
64327
64328 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64329
64330         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64331         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64332
64333 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64334
64335         * modules/mkancesdirs (Depends-on): Add fcntl.
64336         * modules/savewd: New file.
64337         * MODULES.html.sh (File system functions): Add savewd.
64338
64339         * modules/configmake (Makefile.am): Add support for the
64340         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64341
64342 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64343
64344         * m4/savewd.m4: New file.
64345
64346 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64347
64348         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64349         (dirchownmod): New arg FD.  All callers changed.
64350         Use FD rather than opening the directory ourself, as opening is
64351         now the caller's responsibility.
64352         * lib/dirchownmod.h: Likewise.
64353         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64354         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64355         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64356         (test_dir): Remove.
64357         (mkancesdirs): Return length of prefix of FILE that has already
64358         been made, or -2 if there is a child doing the work.  Redo
64359         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64360         ".", and treat ".." specially since it might stray back into
64361         already-created areas.  Use a subprocess if necessary.  New arg
64362         WD; all users changed.  MAKE_DIR function should now return 1
64363         if it creates a directory that is not readable.  Return -2 if
64364         a child process is spun off.
64365         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64366         Adjust signature to match code.
64367         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64368         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64369         all users changed.
64370         * lib/savewd.c, lib/savewd.h: New files.
64371
64372 2006-09-15  Jim Meyering  <jim@meyering.net>
64373
64374         * modules/rename-dest-slash: New module.
64375         * MODULES.html.sh (posix_compat): Add it here.
64376
64377         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64378
64379 2006-09-15  Jim Meyering  <jim@meyering.net>
64380
64381         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64382         file.
64383
64384         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64385
64386 2006-09-15  Jim Meyering  <jim@meyering.net>
64387
64388         * lib/rename-dest-slash.c (has_trailing_slash): Use
64389         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64390         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64391         test before testing whether SRC is a directory.
64392         Suggestions from Bruno Haible.
64393
64394         Avoid a warning about an unused variable.
64395         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64396         into the #ifdef block where it's used.
64397
64398         * lib/rename-dest-slash.c: New file.
64399
64400 2006-09-14  Bruno Haible  <bruno@clisp.org>
64401
64402         * lib/allocsa.c: Include <config.h> unconditionally.
64403         * lib/asnprintf.c: Likewise.
64404         * lib/asprintf.c: Likewise.
64405         * lib/c-strcasecmp.c: Likewise.
64406         * lib/c-strcasestr.c: Likewise.
64407         * lib/c-strncasecmp.c: Likewise.
64408         * lib/c-strstr.c: Likewise.
64409         * lib/classpath.c: Likewise.
64410         * lib/clean-temp.c: Likewise.
64411         * lib/concatpath.c: Likewise.
64412         * lib/copy-file.c: Likewise.
64413         * lib/csharpcomp.c: Likewise.
64414         * lib/csharpexec.c: Likewise.
64415         * lib/execute.c: Likewise.
64416         * lib/fatal-signal.c: Likewise.
64417         * lib/findprog.c: Likewise.
64418         * lib/fwriteerror.c: Likewise.
64419         * lib/gl_array_list.c: Likewise.
64420         * lib/gl_array_oset.c: Likewise.
64421         * lib/gl_avltree_list.c: Likewise.
64422         * lib/gl_avltree_oset.c: Likewise.
64423         * lib/gl_avltreehash_list.c: Likewise.
64424         * lib/gl_carray_list.c: Likewise.
64425         * lib/gl_linked_list.c: Likewise.
64426         * lib/gl_linkedhash_list.c: Likewise.
64427         * lib/gl_list.c: Likewise.
64428         * lib/gl_oset.c: Likewise.
64429         * lib/gl_rbtree_list.c: Likewise.
64430         * lib/gl_rbtree_oset.c: Likewise.
64431         * lib/gl_rbtreehash_list.c: Likewise.
64432         * lib/imaxabs.c: Likewise.
64433         * lib/imaxdiv.c: Likewise.
64434         * lib/javacomp.c: Likewise.
64435         * lib/javaexec.c: Likewise.
64436         * lib/javaversion.c: Likewise.
64437         * lib/linebreak.c: Likewise.
64438         * lib/localcharset.c: Likewise.
64439         * lib/lock.c: Likewise.
64440         * lib/mbchar.c: Likewise.
64441         * lib/mbswidth.c: Likewise.
64442         * lib/mkdtemp.c: Likewise.
64443         * lib/pipe.c: Likewise.
64444         * lib/printf-args.c: Likewise.
64445         * lib/printf-parse.c: Likewise.
64446         * lib/progname.c: Likewise.
64447         * lib/progreloc.c: Likewise.
64448         * lib/readlink.c: Likewise.
64449         * lib/sh-quote.c: Likewise.
64450         * lib/stpcpy.c: Likewise.
64451         * lib/stpncpy.c: Likewise.
64452         * lib/strcasecmp.c: Likewise.
64453         * lib/strcasestr.c: Likewise.
64454         * lib/strcspn.c: Likewise.
64455         * lib/striconv.c: Likewise.
64456         * lib/strncasecmp.c: Likewise.
64457         * lib/strnlen1.c: Likewise.
64458         * lib/strstr.c: Likewise.
64459         * lib/strtok_r.c: Likewise.
64460         * lib/tls.c: Likewise.
64461         * lib/tmpdir.c: Likewise.
64462         * lib/unicodeio.c: Likewise.
64463         * lib/unsetenv.c: Likewise.
64464         * lib/vasnprintf.c: Likewise.
64465         * lib/vasprintf.c: Likewise.
64466         * lib/wait-process.c: Likewise.
64467         * lib/xallocsa.c: Likewise.
64468         * lib/xsetenv.c: Likewise.
64469         * lib/xstriconv.c: Likewise.
64470
64471 2006-09-13  Simon Josefsson  <jas@extundo.com>
64472
64473         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64474         that internally, suggested by Ralf Wildenhues
64475         <Ralf.Wildenhues@gmx.de>.
64476
64477 2006-09-13  Simon Josefsson  <jas@extundo.com>
64478
64479         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64480         @LIBOBJS@.
64481         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64482
64483 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64484
64485         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64486         longer worry about uses that don't define HAVE_CONFIG_H.
64487         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64488         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64489         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64490         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64491         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64492         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64493         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64494         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64495         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64496         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64497         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64498         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64499         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64500         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64501         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64502         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64503         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64504         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64505         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64506         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64507         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64508         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64509         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64510         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64511         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64512         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64513         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64514         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64515         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64516         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64517         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64518         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64519         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64520         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64521         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64522         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64523         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64524         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64525         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64526         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64527         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64528         Likewise.
64529
64530 2006-09-13  Eric Blake  <ebb9@byu.net>
64531
64532         * lib/getopt.c: Fix typo in last commit.
64533
64534 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64535
64536         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64537         dgettext.
64538
64539 2006-09-12  Jim Meyering  <jim@meyering.net>
64540
64541         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64542         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64543         Reported by Nelson H. F. Beebe.
64544
64545 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64546
64547         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64548         program_invocation_name and program_invocation_short_name are
64549         initialized.
64550         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64551         and program_invocation_short_name to argp.h, so they are visible
64552         to user programs.
64553         * lib/argp.h: Likewise
64554
64555 2006-09-10  Bruno Haible  <bruno@clisp.org>
64556
64557         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64558         m4/inttypes_h.m4, m4/uintmax_t.m4.
64559
64560 2006-09-10  Bruno Haible  <bruno@clisp.org>
64561
64562         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64563         gl_AC_TYPE_UINTMAX_T.
64564
64565 2006-09-10  Bruno Haible  <bruno@clisp.org>
64566
64567         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64568
64569 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64570
64571         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64572         convention.  Text proposed by Bruno Haible.
64573         (struct argp_option): Document the use of N_() wrappers.
64574
64575         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64576         '\v', and translate the two parts separately, instead of feeding
64577         the whole string to gettext.  This allows to exclude
64578         '\v' from the strings visible to the translator by writing doc
64579         strings as N_("..") "\v" N_("..").
64580
64581 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64582
64583         * config/srclist.txt: Undo latest change; the bug was fixed.
64584
64585 2006-09-09  Bruno Haible  <bruno@clisp.org>
64586
64587         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64588         assignments if building a library without libtool.
64589         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64590         in func_emit_lib_Makefile_am.
64591         (func_import): When building a static library libfoo.a, arrange to
64592         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64593         (func_create_testdir): Likewise.
64594         * modules/gc (configure.ac, Makefile.am): If building statically,
64595         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64596         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64597         * modules/striconv (configure.ac, Makefile.am): Likewise.
64598         Based on a suggestion by Ralf Wildenhues.
64599
64600 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64601
64602         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64603         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64604         Also:
64605
64606         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64607         Add year_2050_test to catch glibc bug 2821
64608         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64609
64610         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64611         Prefer #ifdef to #if.
64612
64613         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64614         Return from 'main' instead of calling 'exit'.
64615
64616 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64617
64618         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64619         returned the maximum time_t value rather than (time_t) -1.
64620         Problem originally reported by William Bardwell
64621         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64622
64623         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64624         Moved to here ...
64625         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64626         ... from here.
64627
64628 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64629
64630         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64631         2821 is fixed.
64632
64633 2006-09-08  Jim Meyering  <jim@meyering.net>
64634
64635         Don't make generated files read-only.  That would bother too many
64636         people.  However, do retain the ability to work when targets are
64637         read-only: remove the destination and temporary files before writing
64638         them (when generated via sed or echo), or by using the -f option for
64639         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
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-08  Jim Meyering  <jim@meyering.net>
64648
64649         Avoid new build failure on FreeBSD 6.0.
64650         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64651         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64652         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64653
64654 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64655
64656         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64657
64658 2006-09-07  Jim Meyering  <jim@meyering.net>
64659
64660         Fix global typo in last change: use chmod u-w, not chmod u-x.
64661         Spotted by Paul Eggert and Bruce Korb.
64662         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64663         * modules/byteswap, modules/configmake, modules/fcntl:
64664         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64665         * modules/localcharset, modules/netinet_in, modules/poll:
64666         * modules/stdbool, modules/stdint, modules/sys_select:
64667         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64668
64669 2006-09-06  Jim Meyering  <jim@meyering.net>
64670
64671         Make generated files be read-only.
64672         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64673         Ensure that each generated file is now read-only.
64674         * modules/argz: Likewise.
64675         * modules/arpa_inet: Likewise.
64676         * modules/byteswap: Likewise.
64677         * modules/configmake: Likewise.
64678         * modules/fcntl: Likewise.
64679         * modules/fnmatch: Likewise.
64680         * modules/getopt: Likewise.
64681         * modules/glob: Likewise.
64682         * modules/inttypes: Likewise.
64683         * modules/netinet_in: Likewise.
64684         * modules/poll: Likewise.
64685         * modules/stdbool: Likewise.
64686         * modules/stdint: Likewise.
64687         * modules/sys_select: Likewise.
64688         * modules/sys_socket: Likewise.
64689         * modules/sys_stat: Likewise.
64690         * modules/sysexits: Likewise.
64691         * modules/localcharset: Same as above, but continue using temporary
64692         file named "t-$@" (why different?) rather than the "$@-t" used
64693         everywhere else.
64694
64695         * modules/sysexits (Makefile.am): Replace literal occurrences
64696         of "sysexit.h" more readable, and more consistent, "$@".
64697
64698 2006-09-06  Bruno Haible  <bruno@clisp.org>
64699
64700         * modules/striconv: New file.
64701         * modules/xstriconv: New file.
64702         * MODULES.html.sh (Internationalization functions): Add striconv,
64703         xstriconv.
64704
64705 2006-09-06  Bruno Haible  <bruno@clisp.org>
64706
64707         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64708         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64709         not using libtool correctly.
64710
64711 2006-09-06  Bruno Haible  <bruno@clisp.org>
64712
64713         * lib/striconv.h: New file.
64714         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64715         iconvstring.c.
64716         * lib/xstriconv.h: New file.
64717         * lib/xstriconv.c: New file.
64718
64719 2006-09-06  Bruno Haible  <bruno@clisp.org>
64720
64721         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64722         lib_..._LDFLAGS.
64723
64724 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64725
64726         * lib/argz_.h: Sync from Libtool.
64727
64728         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64729                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64730
64731         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64732
64733 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64734
64735         * modules/trim: New file.
64736
64737 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64738
64739         * lib/trim.h: New file.
64740         * lib/trim.c: New file.
64741
64742 2006-09-05  Bruno Haible  <bruno@clisp.org>
64743
64744         * MODULES.html.sh (String handling): Add trim.
64745
64746 2006-09-04  Karl Berry  <karl@gnu.org>
64747
64748         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64749         until next release.
64750
64751 2006-09-03  Bruno Haible  <bruno@clisp.org>
64752
64753         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64754         correctly.
64755
64756 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64757
64758         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64759         not gl_GETLOADAVG.  Omit unneeded semicolons.
64760         Problems reported by Ralf Wildenhues in
64761         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64762         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64763         at the end, which is the usual gnulib style.
64764
64765         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64766         of doing all the work ourselves.
64767         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64768         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64769
64770 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64771
64772         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64773         Problem reported by Ralf Wildenhues in
64774         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64775
64776         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64777         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64778
64779 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64782         yesterday's patch by changing test -n to test -z.
64783
64784 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64785
64786         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64787         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64788         the former is now obsolescent.
64789
64790         * modules/chdir-long (Depends-on): Add fcntl.
64791
64792 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64795         obsolescent, and programs should use gnulib instead.
64796         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64797         but with prefixes changed.
64798
64799 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64802         or stdbool.h, because they might not exist while configuring.
64803
64804         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64805         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64806         does that for us.
64807         (O_DIRECTORY): Remove.
64808
64809 2006-08-31  Eric Blake  <ebb9@byu.net>
64810
64811         * gnulib-tool: Don't let emacs change spaces to TAB.
64812
64813 2006-08-31  Bruno Haible  <bruno@clisp.org>
64814
64815         * gnulib-tool: When calling func_import more than once, do it in a
64816         subshell.
64817         Reported by Eric Blake <ebb9@byu.net>.
64818
64819 2006-08-31  Bruno Haible  <bruno@clisp.org>
64820
64821         * gnulib-tool (nl): Remove variable.
64822         (sed_transform_lib_file): Use more robust test for config-h module.
64823         (func_import): Fix typo in 2006-08-25 patch.
64824
64825 2006-08-31  Bruno Haible  <bruno@clisp.org>
64826
64827         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64828         specified, augment Makefile.am variables instead of assigning them.
64829
64830 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64831
64832         Work around a bug in both the Linux and SunOS 64-bit kernels:
64833         nanosleep mishandles sleeps for longer than 2**31 seconds.
64834         Problem reported by Frank v Waveren in
64835         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64837         Check for nanosleep bug.
64838         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64839
64840 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64841
64842         Work around a bug in both the Linux and SunOS 64-bit kernels:
64843         nanosleep mishandles sleeps for longer than 2**31 seconds.
64844         Problem reported by Frank v Waveren in
64845         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64846         * lib/nanosleep.c (BILLION): New constant.
64847         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64848         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64849         implementation.
64850
64851 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64852
64853         * modules/nanosleep (Depends-on): Add gettime.
64854
64855 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64856         and Simon Josefsson  <jas@extundo.com>
64857         and Oskar Liljeblad  <oskar@osk.mine.nu>
64858
64859         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64860         * gnulib-tool (func_import): New license type 'unmodifiable license
64861         text'.
64862         * modules/fdl: Use it.  Longer description.
64863         * module/gpl, module/lgpl: New files.
64864
64865 2006-08-30  Jim Meyering  <jim@meyering.net>
64866
64867         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64868         shadowing the parameter.
64869
64870 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64871
64872         Sync from Libtool:
64873
64874         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64875
64876         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64877         sharing with gnulib.  Report by Eric Blake.
64878
64879 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64880
64881         * modules/isapipe: New file.
64882         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64883
64884 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64885
64886         * modules/configmake (Makefile.am): Add a comment, and omit
64887         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64888         by Bruno Haible.
64889
64890 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         * m4/isapipe.m4: New file.
64893
64894 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64895
64896         * lib/isapipe.c, lib/isapipe.h: New files.
64897
64898 2006-08-29  Jim Meyering  <jim@meyering.net>
64899
64900         * modules/configmake (Makefile.am): Make configmake.h depend on
64901         Makefile.  Otherwise, a stale configmake.h could hang around.
64902
64903 2006-08-29  Eric Blake  <ebb9@byu.net>
64904
64905         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64906         resolution of upstream bug 3044.
64907
64908 2006-08-29  Bruno Haible  <bruno@clisp.org>
64909
64910         * modules/localcharset (Depends-on): Add configmake.
64911         (Makefile.am): Remove setting of LIBDIR through DEFS.
64912
64913 2006-08-29  Bruno Haible  <bruno@clisp.org>
64914
64915         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64916         defined.
64917
64918 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64919
64920         * modules/fcntl: New file.
64921         * modules/chdir-safer (Depends-on): Add fcntl.
64922         * modules/fts: Likewise.
64923         * modules/mkdir-p: Likewise.
64924
64925         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64926         This undoes the most recent change, since we're now addressing the
64927         problem in a different way.
64928
64929         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64930         into output, since the output might be called Makefile.am even
64931         if $makefile_name is something different.
64932         (func_import): Use $makefile_am rather than
64933         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64934         empty.
64935
64936         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64937
64938 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64939
64940         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64941         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64942         recent change to stdint.m4, since we're now addressing the problem in a
64943         different way.
64944
64945 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64946
64947         * m4/fcntl_h.m4: New file.
64948
64949 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64950
64951         * lib/fcntl_.h: New file.
64952         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64953         the fcntl module.
64954         * lib/dirchownmod.c: Likewise.
64955         * lib/fts.c: Likewise.
64956
64957         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64958         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64959         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64960         just before including <inttypes.h>, to avoid circular inclusion.
64961
64962 2006-08-28  Jim Meyering  <jim@meyering.net>
64963
64964         * doc/visibility.texi: Actually read and correct the grammar of the
64965         sentence affected by yesterday's change.
64966
64967 2006-08-28  Eric Blake  <ebb9@byu.net>
64968
64969         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64970         needs wrapper.
64971
64972 2006-08-28  Eric Blake  <ebb9@byu.net>
64973
64974         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64975
64976 2006-08-28  Eric Blake  <ebb9@byu.net>
64977
64978         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64979
64980 2006-08-28  Bruno Haible  <bruno@clisp.org>
64981
64982         * modules/c-strstr: New file, from GNU gettext.
64983         * MODULES.html.sh (String handling): Add c-strstr.
64984
64985 2006-08-28  Bruno Haible  <bruno@clisp.org>
64986
64987         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64988         macros.
64989         Reported by Eric Blake.
64990
64991 2006-08-28  Bruno Haible  <bruno@clisp.org>
64992
64993         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64994         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64995         * lib/vasprintf.c: Include errno.h, limits.h.
64996         (EOVERFLOW): New fallback definition.
64997         (vasprintf): Test here whether the string length is > INT_MAX.
64998         * lib/vsnprintf.c: Include errno.h, limits.h.
64999         (EOVERFLOW): New fallback definition.
65000         (vsnprintf): Fix bug when generated string was too long for the buffer.
65001         Test here whether the string length is > INT_MAX.
65002
65003 2006-08-28  Bruno Haible  <bruno@clisp.org>
65004
65005         * lib/inttypes_.h (SCNX*): Remove definitions.
65006         Reported by Eric Blake.
65007
65008 2006-08-28  Bruno Haible  <bruno@clisp.org>
65009
65010         * lib/c-strstr.h: New file, from GNU gettext.
65011         * lib/c-strstr.c: New file, from GNU gettext.
65012
65013 2006-08-28  Bruno Haible  <bruno@clisp.org>
65014
65015         * gnulib-tool: Reorder some statements.
65016
65017 2006-08-28  Bruno Haible  <bruno@clisp.org>
65018
65019         * gnulib-tool: New option --makefile-name.
65020         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65021         $makefile_name.
65022         (func_import): Write $makefile_name to the cache file, and read it from
65023         there unless explicitly specified. Use $makefile_name as file name
65024         instead of Makefile.am. Adjust the recommendations accordingly.
65025
65026 2006-08-28  Bruno Haible  <bruno@clisp.org>
65027
65028         * gnulib-tool (func_verify_module): Check against misapplying patch.
65029
65030 2006-08-28  Bruno Haible  <bruno@clisp.org>
65031
65032         * gnulib-tool (func_relativize, func_relconcat): New functions.
65033         Give an error if --local-dir is given with --update.
65034         Remove trailing slashes from $local_gnulib_dir.
65035         (func_import): Store the relativized $local_gnulib_dir in
65036         gnulib-cache.m4, and read it from there if not specified explicitly.
65037
65038 2006-08-28  Bruno Haible  <bruno@clisp.org>
65039
65040         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65041         is the current directory. Respect also $local_gnulib_dir.
65042
65043 2006-08-28  Bruno Haible  <bruno@clisp.org>
65044             Simon Josefsson  <jas@extundo.com>
65045
65046         BeOS portability.
65047         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65048
65049 2006-08-27  Jim Meyering  <jim@meyering.net>
65050
65051         * doc/visibility.texi: Remove duplicate word: "pointer".
65052
65053 2006-08-26  Bruno Haible  <bruno@clisp.org>
65054
65055         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65056         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65057         (Makefile.am): Create inttypes.h from inttypes_.h.
65058         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65059
65060         * modules/imaxabs: New file.
65061
65062         * modules/imaxdiv: New file.
65063
65064 2006-08-26  Bruno Haible  <bruno@clisp.org>
65065
65066         * m4/inttypes.m4: New file.
65067         * m4/_inttypes_h.m4: Remove file.
65068         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65069         PRI_MACROS_BROKEN.
65070         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65071
65072         * m4/imaxabs.m4: New file.
65073
65074         * m4/imaxdiv.m4: New file.
65075
65076 2006-08-26  Bruno Haible  <bruno@clisp.org>
65077
65078         * lib/inttypes_.h: New file.
65079         * lib/inttypes.h: Remove file.
65080         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65081
65082         * lib/imaxabs.c: New file.
65083
65084         * lib/imaxdiv.c: New file.
65085
65086 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65087
65088         New config-h module, so that "make" output needn't be cluttered
65089         by -DHAVE_CONFIG_H.
65090         * MODULES.html.sh (Support for building libraries and executables):
65091         Add config-h.
65092         * modules/config-h: New file.
65093         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65094         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65095         the config-h module is used.
65096
65097         New configmake module, so that "make" output needn't be cluttered
65098         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65099         * MODULES.html.sh (Support for building libraries and executables):
65100         Add configmake.
65101         * modules/configmake: New file.
65102
65103 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65104
65105         * m4/config-h.m4: New file.
65106
65107 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65108
65109         * config/srclist.txt: Add elisp-comp.
65110
65111 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65112
65113         * MODULES.html.sh (Support for building libraries and executables):
65114         Add elisp-comp.
65115         * build-aux/elisp-comp: New file.
65116         * modules/elisp-comp: New file.
65117
65118 2006-08-24  Bruno Haible  <bruno@clisp.org>
65119
65120         * gnulib-tool (func_create_testdir): Use non-default values of
65121         sourcebase and m4base.
65122
65123 2006-08-24  Bruno Haible  <bruno@clisp.org>
65124
65125         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65126         HTML structure.
65127
65128 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65129
65130         * modules/openat (Depends-on): Add lchown.
65131
65132 2006-08-23  Bruno Haible  <bruno@clisp.org>
65133
65134         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65135         of gl_LOCK_EARLY instead of gl_LOCK.
65136
65137 2006-08-23  Bruno Haible  <bruno@clisp.org>
65138
65139         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65140         on OSF/1 to no.
65141         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65142
65143 2006-08-23  Bruno Haible  <bruno@clisp.org>
65144
65145         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65146         as unusable.
65147
65148         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65149         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65150         (gl_LOCK): New macro.
65151
65152 2006-08-22  Simon Josefsson  <jas@extundo.com>
65153
65154         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65155         to md5 module.
65156
65157 2006-08-22  Simon Josefsson  <jas@extundo.com>
65158
65159         * MODULES.html.sh: Add "Support for maintaining and release
65160         projects".
65161
65162         * build-aux/gnupload: New file, from coreutils.
65163
65164 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65165
65166         Avoid the need for AC_LIBSOURCES in m4 macros.
65167         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65168         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65169         * modules/check-version (EXTRA_DIST): Add check-version.h.
65170         * modules/crc (EXTRA_DIST): Add crc.h.
65171         * modules/des (EXTRA_DIST): Add des.h.
65172         * modules/gc (EXTRA_DIST): Add gc.h.
65173         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65174         * modules/getline (EXTRA_DIST): Add getline.h.
65175         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65176         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65177         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65178         * modules/md2 (EXTRA_DIST): Add md2.h.
65179         * modules/md4 (EXTRA_DIST): Add md4.h.
65180         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65181         * modules/read-file (EXTRA_DIST): Add read-file.h.
65182         * modules/readline (EXTRA_DIST): Add readline.h.
65183         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65184         rijndael-api-fst.h.
65185
65186 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65187
65188         * m4/rijndael.m4 (gl_ARCFOUR):
65189         * m4/arctwo.m4 (gl_ARCTWO):
65190         * m4/check-version.m4 (gl_CHECK_VERSION):
65191         * m4/crc.m4 (gl_CRC):
65192         * m4/des.m4 (gl_DES):
65193         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65194         * m4/gc.m4 (gl_GC):
65195         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65196         * m4/getline.m4 (gl_FUNC_GETLINE):
65197         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65198         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65199         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65200         * m4/md2.m4 (gl_MD2):
65201         * m4/md4.m4 (gl_MD4):
65202         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65203         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65204         * m4/readline.m4 (gl_FUNC_READLINE):
65205         * m4/rijndael.m4 (gl_RIJNDAEL):
65206         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65207         to get the necessary .h files and whatnot.
65208
65209 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65210
65211         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65212         gnulib rather than the other way around.
65213         * config/srclistvars.sh (COREUTILS): Remove.
65214
65215 2006-08-22  Jim Meyering  <jim@meyering.net>
65216
65217         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65218
65219         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65220
65221 2006-08-22  Eric Blake  <ebb9@byu.net>
65222
65223         * modules/regexprops-generic: New file.
65224         * MODULES.html.sh (Support for building documentation): List it.
65225
65226 2006-08-22  Eric Blake  <ebb9@byu.net>
65227
65228         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65229         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65230         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65231         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65232
65233 2006-08-22  Bruno Haible  <bruno@clisp.org>
65234
65235         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65236         and lib_LTLIBRARIES like the other lib_* variables.
65237
65238 2006-08-22  Bruno Haible  <bruno@clisp.org>
65239
65240         * build-aux/x-to-1.in: New file, from GNU gettext.
65241
65242 2006-08-22  Bruno Haible  <bruno@clisp.org>
65243
65244         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65245         <utmpx.h> exists.
65246
65247 2006-08-22  Bruno Haible  <bruno@clisp.org>
65248
65249         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65250         <utmpx.h> exists.
65251
65252 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65253
65254         BeOS portability.
65255         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65256         exist.
65257         Problem reported by Bruno Haible.
65258
65259 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65260
65261         Avoid the need for AC_LIBSOURCES in m4 macros.
65262         * modules/acl (EXTRA_DIST): Add acl.h.
65263         * modules/argmatch (Files): Add m4/argmatch.m4.
65264         (configure.ac): Add gl_ARGMATCH.
65265         (EXTRA_DIST): Renamed from lib_SOURCES, for
65266         consistency with the other modules.  Remove argmatch.c.
65267         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65268         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65269         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65270         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65271         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65272         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65273         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65274         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65275         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65276         * modules/closeout (EXTRA_DIST): Add closeout.h.
65277         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65278         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65279         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65280         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65281         dirname.h; remove basename.c and stripslash.c.
65282         * modules/exclude (EXTRA_DIST): Add exclude.h.
65283         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65284         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65285         * modules/file-type (EXTRA_DIST): Add file-type.h.
65286         * modules/filemode (EXTRA_DIST): Add filemode.h.
65287         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65288         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65289         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65290         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65291         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65292         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65293         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65294         * modules/getdate (EXTRA_DIST): Add getdate.c.
65295         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65296         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65297         * modules/getpass (EXTRA_DIST): Add getpass.h.
65298         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65299         * modules/group-member (EXTRA_DIST): Add group-member.h.
65300         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65301         * modules/hash (EXTRA_DIST): Add hash.h.
65302         * modules/human (EXTRA_DIST): Add human.h.
65303         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65304         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65305         * modules/lchown (EXTRA_DIST): Add lchown.h.
65306         * modules/long-options (EXTRA_DIST): Add long-options.h.
65307         * modules/lstat (EXTRA_DIST): Add lstat.h.
65308         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65309         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65310         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65311         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65312         * modules/memxor (EXTRA_DIST): Add memxor.h.
65313         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65314         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65315         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65316         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65317         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65318         * modules/physmem (EXTRA_DIST): Add physmem.h.
65319         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65320         * modules/posixver (EXTRA_DIST): Add posixver.h.
65321         * modules/quote (EXTRA_DIST): Add quote.h.
65322         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65323         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65324         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65325         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65326         regex_internal.h regexec.c.
65327         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65328         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65329         * modules/same (EXTRA_DIST): Add same.h.
65330         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65331         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65332         * modules/savedir (EXTRA_DIST): Add savedir.h.
65333         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65334         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65335         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65336         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65337         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65338         * modules/strdup (EXTRA_DIST): Add strdup.h.
65339         * modules/strftime (EXTRA_DIST): Add strftime.h.
65340         * modules/strndup (EXTRA_DIST): Add strndup.h.
65341         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65342         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65343         * modules/time_r (EXTRA_DIST): Add time_r.h.
65344         * modules/timespec (EXTRA_DIST): Add timespec.h.
65345         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65346         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65347         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65348         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65349         * modules/userspec (EXTRA_DIST): Add userspec.h.
65350         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65351         * modules/utimens (EXTRA_DIST): Add utimens.h.
65352         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65353         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65354         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65355         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65356         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65357         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65358         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65359         * modules/yesno (EXTRA_DIST): Add yesno.h.
65360
65361 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65362
65363         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65364
65365         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65366         * m4/dev-ino.m4, same-inode.m4: Remove.
65367
65368         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65369         * m4/acl.m4 (AC_FUNC_ACL):
65370         * m4/backupfile.m4 (gl_BACKUPFILE):
65371         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65372         * m4/canon-host.m4 (gl_CANON_HOST):
65373         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65374         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65375         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65376         * m4/cloexec.m4 (gl_CLOEXEC):
65377         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65378         * m4/closeout.m4 (gl_CLOSEOUT):
65379         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65380         * m4/dirname.m4 (gl_DIRNAME):
65381         * m4/exclude.m4 (gl_EXCLUDE):
65382         * m4/exitfail.m4 (gl_EXITFAIL):
65383         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65384         * m4/file-type.m4 (gl_FILE_TYPE):
65385         * m4/filemode.m4 (gl_FILEMODE):
65386         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65387         * m4/fpending.m4 (gl_FUNC_FPENDING):
65388         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65389         * m4/fts.m4 (gl_FUNC_FTS):
65390         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65391         * m4/getdate.m4 (gl_GETDATE):
65392         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65393         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65394         * m4/getpass.m4 (gl_FUNC_GETPASS):
65395         * m4/gettime.m4 (gl_GETTIME):
65396         * m4/getugroups.m4 (gl_GETUGROUPS):
65397         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65398         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65399         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65400         * m4/hash.m4 (gl_HASH):
65401         * m4/idcache.m4 (gl_IDCACHE):
65402         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65403         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65404         * m4/long-options.m4 (gl_LONG_OPTIONS):
65405         * m4/lstat.m4 (gl_FUNC_LSTAT):
65406         * m4/md5.m4 (gl_MD5):
65407         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65408         * m4/memcoll.m4 (gl_MEMCOLL):
65409         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65410         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65411         * m4/memxor.m4 (gl_MEMXOR):
65412         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65413         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65414         * m4/modechange.m4 (gl_MODECHANGE):
65415         * m4/mountlist.m4 (gl_MOUNTLIST):
65416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65417         * m4/openat.m4 (gl_FUNC_OPENAT):
65418         * m4/pathmax.m4 (gl_PATHMAX):
65419         * m4/physmem.m4 (gl_PHYSMEM):
65420         * m4/posixtm.m4 (gl_POSIXTM):
65421         * m4/posixver.m4 (gl_POSIXVER):
65422         * m4/quote.m4 (gl_QUOTE):
65423         * m4/quotearg.m4 (gl_QUOTEARG):
65424         * m4/readtokens.m4 (gl_READTOKENS):
65425         * m4/readutmp.m4 (gl_READUTMP):
65426         * m4/regex.m4 (gl_REGEX):
65427         * m4/safe-read.m4 (gl_SAFE_READ):
65428         * m4/safe-write.m4 (gl_SAFE_WRITE):
65429         * m4/same.m4 (gl_SAME):
65430         * m4/save-cwd.m4 (gl_SAVE_CWD):
65431         * m4/savedir.m4 (gl_SAVEDIR):
65432         * m4/settime.m4 (gl_SETTIME):
65433         * m4/sha1.m4 (gl_SHA1):
65434         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65435         * m4/stat-macros.m4 (gl_STAT_MACROS):
65436         * m4/stat-time.m4 (gl_STAT_TIME):
65437         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65438         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65439         * m4/strdup.m4 (gl_FUNC_STRDUP):
65440         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65441         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65442         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65443         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65444         * m4/time_r.m4 (gl_TIME_R):
65445         * m4/timespec.m4 (gl_TIMESPEC):
65446         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65447         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65448         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65449         * m4/userspec.m4 (gl_USERSPEC):
65450         * m4/utimecmp.m4 (gl_UTIMECMP):
65451         * m4/utimens.m4 (gl_UTIMENS):
65452         * m4/xalloc.m4 (gl_XALLOC):
65453         * m4/xgetcwd.m4 (gl_XGETCWD):
65454         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65455         * m4/xreadlink.m4 (gl_XREADLINK):
65456         * m4/xstrtod.m4 (gl_XSTRTOD):
65457         * m4/yesno.m4 (gl_YESNO):
65458         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65459         to get the necessary .h files and whatnot.
65460
65461 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65462             Bruno Haible  <bruno@clisp.org>
65463
65464         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65465         /bin/sh understanding of '!' conditional negation.
65466
65467 2006-08-21  Jim Meyering  <jim@meyering.net>
65468
65469         * modules/openat (Depends-on): Really alphabetize.
65470
65471         * modules/acl (Depends-on): Add error and quote.
65472
65473         * check-module (find_included_lib_files): Add at-func.c to the
65474         ok-to-include-more-than-once white list.
65475
65476         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65477
65478 2006-08-21  Bruno Haible  <bruno@clisp.org>
65479
65480         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65481         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65482         Reported by Martin Lambers <marlam@marlam.de>.
65483
65484 2006-08-21  Bruno Haible  <bruno@clisp.org>
65485
65486         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65487         specify an installation location, don't emit a noinst_LIBRARIES or
65488         noinst_LTLIBRARIES assignment.
65489
65490 2006-08-21  Bruno Haible  <bruno@clisp.org>
65491
65492         BeOS portability.
65493         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65494         BeOS has mbrtowc() but no <wctype.h>.
65495
65496 2006-08-21  Bruno Haible  <bruno@clisp.org>
65497
65498         BeOS portability.
65499         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65500         exist.
65501
65502 2006-08-21  Bruno Haible  <bruno@clisp.org>
65503
65504         BeOS portability.
65505         * lib/mbchar.h: Include <wctype.h> only if it exists.
65506
65507 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65508
65509         Remove files that are no longer needed by their respective modules.
65510         * m4/obstack.m4: Remove.
65511         * m4/strerror_r.m4: Remove.
65512         * m4/uint32_t.m4: Remove.
65513         * m4/uintptr_t.m4: Remove.
65514         * m4/ullong_max.m4: Remove.
65515         * m4/xstrtoimax.m4: Remove.
65516         * m4/xstrtoumax.m4: Remove.
65517
65518         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65519         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65520         dependencies now capture this.
65521
65522         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65523         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65524         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65525         * m4/human.m4 (gl_HUMAN): Likewise.
65526         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65527         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65528
65529         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65530
65531         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65532         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65533         stdint.
65534         * m4/human.m4 (gl_HUMAN): Likewise.
65535         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65536         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65537         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65538         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65539         * m4/xstrtol (gl_XSTRTOL): Likewise.
65540
65541         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65542         AC_TYPE_LONG_LONG_INT.
65543         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65544         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65545         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65546         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65547
65548         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65549         on stdbool.
65550
65551         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65552         (gl_PREREQ_XSTRTOUL): Remove.
65553
65554         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65555
65556         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65557         mode.
65558
65559 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         Add and change modules to make it easier for coreutils to use
65562         gnulib-tool.
65563         * modules/backupfile (Files): Remove m4/d-ino.m4.
65564         (Depends-on): Add d-ino.
65565         * modules/cycle-check (Depends-on): Add stdint.
65566         (lib_SOURCES): Add cycle-check.h.
65567         * modules/d-ino: New module.
65568         * modules/d-type: New module.
65569         * modules/error (Files): Remove m4/strerror_r.m4.
65570         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65571         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65572         m4/inttypes_h.m4, m4/uintmax_t.m4.
65573         (Depends-on): Add stdint.
65574         (lib_SOURCES): Add fsusage.h.
65575         * modules/getcwd (Files): Remove d-ino.m4.
65576         (Depends-on): Add d-ino.
65577         * modules/getndelim2 (Depends-on): Add stdint.
65578         * modules/glob (Files): Remove m4/d-type.m4.
65579         (Depends-on): Add d-type.
65580         * modules/host-os: New module.
65581         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65582         m4/inttypes_h.m4, m4/uintmax_t.m4.
65583         * Depends-on: Add stdint.
65584         (lib_SOURCES): Add human.h.
65585         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65586         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65587         m4/uintmax_t.m4, m4/ulonglong.m4.
65588         (Depends-on): Add stdint.
65589         (EXTRA_DIST): Add inttostr.h.
65590         * modules/lchmod: New module.
65591         * modules/link-follow: New module.
65592         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65593         (Depends-on): Add lchmod.
65594         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65595         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65596         (Depends-on): Add stdint.
65597         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65598         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65599         (Depends-on): Add stdint.
65600         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65601         * modules/perl: New module.
65602         * modules/regex (Depends-on): Add stdint.
65603         * modules/rmdir-errno: New module.
65604         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65605         m4/intmax_t.m4.
65606         (Depends-on): Add stdint.
65607         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65608         m4/uintmax_t.m4.
65609         (Depends-on): Add stdint.
65610         * modules/unlink-busy: New module.
65611         * modules/utimecmp (Depends-on): Add stdint.
65612         * modules/uptime: New module.
65613         * modules/winsz-ioctl: New module.
65614         * modules/winsz-termios: New module.
65615         * modules/xnanosleep (Depends-on): Add nanosleep.
65616         * modules/ullong_max: Remove.
65617         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65618         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65619         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65620         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65621         (Depends-on): Add inttypes.
65622         (lib_SOURCES): Add xstrtol.h.
65623         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65624         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65625         * MODULES.html.sh: Move 'assert' into the assert section.
65626         Move 'dummy' into the linking section.
65627         Remove ullong_max.
65628         Add section for compatibility checks for POSIX:2001 functions,
65629         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65630         winsz-ioctl, and winsz-termios into it.
65631         Add lchmod.
65632         Add top-level Misc section and put host-os, perl, and uptime
65633         into it.
65634
65635 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65636
65637         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65638         now assume the stdint module.  Do not include inttypes.h.
65639         * lib/fsusage.h: Likewise.
65640         * lib/getndelim2.c: Likewise.
65641         * lib/human.h: Likewise.
65642         * lib/inttostr.h: Likewise.
65643         * lib/obstack.c: Likewise.
65644         * lib/regex_internal.h: Likewise.
65645         * lib/tempname.c: Likewise.
65646         * lib/utimecmp.c: Likewise.
65647         * lib/xstrtol.h: Likewise.
65648
65649         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65650
65651         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65652         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65653         * lib/xtime.h: Likewise.
65654
65655 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * modules/openat (Files): Add lib/fchmodat.c.
65658         Fixes problem reported by Jay Youngman.
65659
65660 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65661
65662         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65663         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65664
65665 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65666             Bruno Haible  <bruno@clisp.org>
65667
65668         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65669         and is a script that invokes bison. Tighten the code. Add comments.
65670
65671 2006-08-18  Jim Meyering  <jim@meyering.net>
65672
65673         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65674         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65675         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65676         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65677
65678 2006-08-18  Bruno Haible  <bruno@clisp.org>
65679
65680         * modules/bison-i18n: New file.
65681         * MODULES.html.sh (Internationalization functions): Add it.
65682
65683 2006-08-18  Bruno Haible  <bruno@clisp.org>
65684
65685         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65686         sys/statvfs.h. When getmntinfo was found, check its declaration and
65687         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65688
65689 2006-08-18  Bruno Haible  <bruno@clisp.org>
65690
65691         * m4/bison-i18n.m4: New file, from bison.
65692
65693 2006-08-18  Bruno Haible  <bruno@clisp.org>
65694
65695         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65696         (ME_DUMMY): Treat "kernfs" as a dummy.
65697         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65698
65699 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65700
65701         Update from coreutils.
65702
65703         2006-08-15  Jim Meyering  <jim@meyering.net>
65704
65705         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65706
65707         2006-01-17  Jim Meyering  <jim@meyering.net>
65708
65709         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65710
65711         2006-01-11  Jim Meyering  <jim@meyering.net>
65712
65713         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65714         Check for the lchmod function.
65715
65716 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65717
65718         Update from coreutils.
65719
65720         * lib/__fpending.h: Add copyright notice.
65721         * lib/fprintftime.h: Likewise.
65722         * lib/savedir.c: Use (C) in copyright notice.
65723         * lib/savedir.h: Likewise.
65724
65725         2006-08-15  Jim Meyering  <jim@meyering.net>
65726
65727         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65728         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65729         in support of the EXPECTED_ERRNO macro.
65730         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65731         definitions.  Instead, define the appropriate symbols and include
65732         "at-func.c".
65733         * lib/mkdirat.c (mkdirat): Likewise.
65734         * lib/fchmodat.c (fchmodat): Likewise.
65735         (ENOSYS): Remove definition.
65736         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65737         it.  Don't include "unistd--.h" -- it wasn't ever used.
65738
65739         2006-01-17  Jim Meyering  <jim@meyering.net>
65740
65741         Rewrite fts.c not to change the current working directory,
65742         by using openat, fstatat, fdopendir, etc..
65743
65744         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65745         (HAVE_OPENAT_SUPPORT): Define.
65746         [_LIBC] (fchdir): Don't undef or define; no longer used.
65747         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65748         Now, this `function' always succeeds, and consumes its file descriptor
65749         parameter -- so callers must not close such FDs.  Update callers.
65750         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65751         (diropen): Add parameter, SP.  Adjust all callers.
65752         Implement using diropen_fd, rather than open.
65753         (fts_open): Initialize new member, fts_cwd_fd.
65754         Remove fts_rft-setting code.
65755         (fts_close): Close fts_cwd_fd, if necessary.
65756         (__opendir2): Define in terms of opendir or opendirat,
65757         depending on whether the FST_NOCHDIR flag is set.
65758         (fts_build): Since fts_safe_changedir consumes its FD, and since
65759         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65760         and close the dup'd file descriptor upon failure.
65761         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65762         (fts_safe_changedir): Tweak semantics to reflect that this function
65763         now calls cwd_advance_fd and hence consumes its FD argument.
65764         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65765         [struct FTS] (fts_rft): Remove now-unused member.
65766         [struct FTS] (fts_cycle.state): Improve comment.
65767
65768         * lib/openat.c (openat_needs_fchdir): New function.
65769         * lib/openat.h (openat_needs_fchdir): Declare it.
65770
65771 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65774         Problem and fix reported by Pádraig Brady in
65775         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65776
65777 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65778
65779         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65780
65781 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65782
65783         * lib/memcoll.c (memcoll): Optimize for the common case where the
65784         arguments are bytewise equal.
65785
65786 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         * doc/regexprops-generic.texi: Add a copyright notice.
65789
65790 2006-08-15  Bruno Haible  <bruno@clisp.org>
65791
65792         * modules/tmpdir (License): Change to LGPL.
65793
65794 2006-08-15  Bruno Haible  <bruno@clisp.org>
65795
65796         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65797         module.
65798
65799 2006-08-14  Simon Josefsson  <jas@extundo.com>
65800
65801         * config/srclist.txt: Add gnupload.
65802
65803 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65804
65805         Change copyright notice from LGPL 2 to GPL 2, since that's the
65806         standard form used in the gnulib repository.
65807         * tests/test-lock.c: Likewise.
65808         * tests/test-stdint.c: Likewise.
65809         * tests/test-tls.c: Likewise.
65810
65811         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65812         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65813         Add copyright notice.
65814
65815         * check-module: Add copyright notice.  Output a copyright
65816         notice if "--version" is specified.
65817         * modules/COPYING: New file.
65818         * tests/test-getaddrinfo.c: Add copyright notice.
65819         * tests/test-verify.c: Likewise.
65820
65821 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65822
65823         Change copyright notice from LGPL 2 to GPL 2, since that's the
65824         standard form used in the gnulib repository.
65825         * lib/lock.c: LGPL -> GPL.
65826         * lib/lock.h: Likewise.
65827         * lib/strnlen1.c: Likewise.
65828         * lib/strnlen1.h: Likewise.
65829         * lib/tls.c: Likewise.
65830         * lib/tls.h: Likewise.
65831         * lib/tmpdir.c: Likewise.
65832
65833         * lib/TODO: Remove; this belongs only in coreutils.
65834
65835 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65836
65837         Add copyright notices to long-enough files that lack them, since
65838         otherwise the files aren't clearly free.  Use the same notice that
65839         getdate.texi already uses.
65840         * doc/alloca-opt.texi: Add copyright notice.
65841         * doc/alloca.texi: Likewise.
65842         * doc/ctime.texi: Likewise.
65843         * doc/functions.texi: Likewise.
65844         * doc/gcd.texi: Likewise.
65845         * doc/gnulib-tool.texi: Likewise.
65846         * doc/inet_ntoa.texi: Likewise.
65847         * doc/visibility.texi: Likewise.
65848
65849         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65850         * doc/quote.texi: Add copyright notice.
65851
65852         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65853         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65854         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65855         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65856         is now obsolete, and give a pointer to the Sun list.
65857         Add copyright notice.
65858
65859 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65860
65861         * config/srclistvars.sh: Add copyright notice.
65862
65863 2006-08-14  Eric Blake  <ebb9@byu.net>
65864
65865         Import the following change from libc:
65866
65867         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65868
65869         Upstream bug 2997.
65870         * lib/misc/error.c: Add space between program name and message if file
65871         name is missing.
65872
65873 2006-08-12  Karl Berry  <karl@gnu.org>
65874
65875         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65876         remove, these originate in gnulib now.
65877
65878 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65879
65880         * doc/Makefile (standards.info standards.html standards.dvi):
65881         Also depend on make-stds.texi.
65882
65883 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65884
65885         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65886         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65887
65888         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65889         in wchar_t.  Problem reported by Eric Blake.
65890
65891         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65892         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65893         Also, help the compiler to keep LEN in a register.
65894
65895 2006-08-11  Eric Blake  <ebb9@byu.net>
65896
65897         * users.txt: Sort.  Add tar.
65898
65899 2006-08-11  Bruno Haible  <bruno@clisp.org>
65900
65901         * users.txt: New file.
65902
65903 2006-08-11  Bruno Haible  <bruno@clisp.org>
65904
65905         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65906         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65907
65908 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65909
65910         * modules/snprintf (Depends-on): Remove minmax.
65911         (Maintainer): Add self and Bruno.
65912
65913 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65914
65915         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65916         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65917         (EOVERFLOW): Define if the system does not.
65918         Do not include "minmax.h"; it wasn't used.
65919         (snprintf): Don't assume size_t promotes to an unsigned type.
65920         Fix bug when generated string was too long for the buffer: the
65921         buffer's contents are supposed to be the initial prefix of the
65922         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65923         exceeds INT_MAX; do the check ourselves.
65924
65925         Import the following changes from libc:
65926
65927         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65928
65929         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65930         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65931         set wc to the byte which couldn't be converted.
65932         (re_string_reconstruct): Don't clear valid_raw_len before calling
65933         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65934         tip_context using re_string_context_at.
65935
65936         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65937
65938         * lib/posix/regex.h: g++ still cannot handled [restrict].
65939
65940         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65941
65942         * lib/posix/regex.h: Remove special handling for VMS.
65943
65944 2006-08-10  Jim Meyering  <jim@meyering.net>
65945
65946         * modules/same-inode: New module.
65947         * modules/dev-ino: New module.
65948         * modules/cycle-check: Depend on these modules, rather than simply
65949         including their .h files.
65950         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65951         required via m4/cycle-check.m4.
65952         * modules/same: Depend on new same-inode module, rather than
65953         including same-inode.h.
65954         * modules/chdir-safer: New file.
65955
65956         * modules/chown (Depends-on): Add stat-macros.
65957
65958 2006-08-10  Jim Meyering  <jim@meyering.net>
65959
65960         * m4/cycle-check.m4: New file.
65961         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65962         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65963
65964 2006-08-10  Eric Blake  <ebb9@byu.net>
65965
65966         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65967         in from original proposal.
65968
65969 2006-08-10  Eric Blake  <ebb9@byu.net>
65970         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65971
65972         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65973         namespace.
65974
65975 2006-08-10  Bruno Haible  <bruno@clisp.org>
65976
65977         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65978         as well.
65979
65980 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65981
65982         Sync from coreutils.
65983
65984         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65985
65986         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65987         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65988
65989 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65990
65991         * modules/restrict: Remove; no longer needed now that we assume
65992         Autoconf 2.59 or later.
65993         * MODULES.html.sh: Remove 'restrict'.
65994         * modules/argp (Depends-on): Remove 'restrict'.
65995         * modules/base64 (Depends-on): Likewise.
65996         * modules/gc (Depends-on): Likewise.
65997         * modules/getaddrinfo (Depends-on): Likewise.
65998         * modules/glob (Depends-on): Likewise.
65999         * modules/inet_ntop (Depends-on): Likewise.
66000         * modules/inet_pton (Depends-on): Likewise.
66001         * modules/memxor (Depends-on): Likewise.
66002         * modules/regex (Depends-on): Likewise.
66003         * modules/strtok_r (Depends-on): Likewise.
66004         * modules/time_r (Depends-on): Likewise.
66005
66006 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66007
66008         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66009         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66010         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66011         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66012         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66013         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66014         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66015         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66016
66017         Merge from coreutils.
66018         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66019         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66020         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66021         * m4/time_r.m4 (gl_TIME_R): Likewise.
66022
66023 2006-08-09  Karl Berry  <karl@gnu.org>
66024
66025         * config/srclist.txt: no more gettext-tools, per Bruno.
66026
66027 2006-08-08  Eric Blake  <ebb9@byu.net>
66028
66029         * modules/verror: New module.
66030         * MODULES.html.sh: Document it.
66031
66032 2006-08-08  Eric Blake  <ebb9@byu.net>
66033
66034         * lib/verror.h, lib/verror.c: New files.
66035
66036 2006-08-08  Eric Blake  <ebb9@byu.net>
66037
66038         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66039         verror_at_line output complies with GNU Coding Standards even when
66040         file is NULL.
66041
66042 2006-08-07  Bruno Haible  <bruno@clisp.org>
66043
66044         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66045         versions of AIX.
66046         Reported by Ralf Wildenhues.
66047
66048 2006-08-07  Bruno Haible  <bruno@clisp.org>
66049
66050         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66051         in an AC_DEFUN. Needed so that the autoconf snippets can use
66052         AC_REQUIRE.
66053
66054 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66055
66056         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66057         Initialize pkgdata_DATA.
66058         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66059         overriding it.
66060
66061 2006-08-06  Eric Blake  <ebb9@byu.net>
66062
66063         * lib/error.h: Fold in some upstream changes from glibc.
66064         * lib/error.c: Likewise.
66065
66066 2006-08-04  Bruno Haible  <bruno@clisp.org>
66067
66068         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66069         Make the mostlyclean-local rule depend on mostlyclean-generic.
66070         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66071
66072 2006-07-31  Bruno Haible  <bruno@clisp.org>
66073
66074         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66075         <stdlib.h>, <string.h>.
66076
66077 2006-07-30  Bruno Haible  <bruno@clisp.org>
66078
66079         * modules/readlink (License): Change to LGPL.
66080
66081 2006-07-30  Bruno Haible  <bruno@clisp.org>
66082
66083         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66084         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66085         set PKGDATADIR to point to it.
66086
66087 2006-07-30  Bruno Haible  <bruno@clisp.org>
66088
66089         * modules/csharpexec (configure.ac): Comment out macro invocation.
66090         * modules/javaexec (configure.ac): Likewise.
66091         * modules/javacomp-script (configure.ac): Likewise.
66092
66093         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66094
66095 2006-07-30  Bruno Haible  <bruno@clisp.org>
66096
66097         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66098         linked-list.
66099
66100 2006-07-30  Bruno Haible  <bruno@clisp.org>
66101
66102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66103
66104 2006-07-30  Bruno Haible  <bruno@clisp.org>
66105
66106         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66107         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66108         get removed.
66109
66110 2006-07-29  Bruno Haible  <bruno@clisp.org>
66111
66112         Make it possible for gnulib-tool to work with locally modified or
66113         augmented gnulib repositories.
66114         * gnulib-tool (func_usage): Document --local-dir option.
66115         (local_gnulib_dir): New variable.
66116         Handle --local-dir option.
66117         (func_lookup_file): New function.
66118         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66119         (func_get_description, func_get_filelist, func_get_description,
66120         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66121         func_get_automake_snippet, func_get_include_directive,
66122         func_get_license, func_get_maintainer): Use func_lookup_file.
66123         (func_import, func_create_testdir): Use func_lookup_file.
66124
66125 2006-07-29  Bruno Haible  <bruno@clisp.org>
66126
66127         * modules/setenv (Depends-on): Add unistd.
66128
66129 2006-07-29  Bruno Haible  <bruno@clisp.org>
66130
66131         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66132
66133 2006-07-29  Bruno Haible  <bruno@clisp.org>
66134
66135         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66136
66137 2006-07-29  Bruno Haible  <bruno@clisp.org>
66138
66139         * gnulib-tool (import, update): If there is no Makefile.am, look at
66140         aclocal.m4, instead of bailing out.
66141
66142 2006-07-29  Bruno Haible  <bruno@clisp.org>
66143
66144         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66145         Categorize the options by when they are useful.
66146
66147 2006-07-29  Bruno Haible  <bruno@clisp.org>
66148
66149         * gnulib-tool (func_usage): Document option --no-libtool.
66150         Handle option --no-libtool.
66151         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66152         for changed semantics of $libtool variable.
66153         (func_import): Likewise. If libtool is not used, show this through
66154         an option --no-libtool.
66155         (func_create_testdir): Update.
66156
66157 2006-07-29  Bruno Haible  <bruno@clisp.org>
66158
66159         * gnulib-tool (func_import): Extend error message about missing
66160         --doc-base.
66161
66162 2006-07-29  Bruno Haible  <bruno@clisp.org>
66163
66164         * gnulib-tool (func_import): Don't create the $docbase directory if
66165         there is no file to store there.
66166
66167 2006-07-29  Bruno Haible  <bruno@clisp.org>
66168
66169         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66170         relevant, look for configure.ac there, not in the current directory.
66171         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66172
66173 2006-07-29  Bruno Haible  <bruno@clisp.org>
66174
66175         * gnulib-tool (SORT): New variable.
66176         (func_usage): Undocument --assume-autoconf option.
66177         Remove --assume-autoconf option handling.
66178         (autoconf_minversion): Determine from the contents of configure.ac.
66179         (func_import): Remove autoconf_minversion handling.
66180         Suggested by Eric Blake.
66181
66182 2006-07-29  Bruno Haible  <bruno@clisp.org>
66183
66184         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66185
66186 2006-07-29  Bruno Haible  <bruno@clisp.org>
66187
66188         * config/srclist.txt (*setenv.[ch]): Remove rules.
66189
66190 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66191
66192         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66193
66194 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66195
66196         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66197         arpa/inet.h.
66198
66199 2006-07-28  Simon Josefsson  <jas@extundo.com>
66200
66201         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66202         * modules/inet_pton (Depends-on): Likewise.
66203
66204 2006-07-28  Simon Josefsson  <jas@extundo.com>
66205
66206         * m4/netinet_in_h.m4: New file.
66207
66208 2006-07-28  Simon Josefsson  <jas@extundo.com>
66209
66210         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66211         #include's.
66212
66213 2006-07-28  Simon Josefsson  <jas@extundo.com>
66214
66215         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66216         #include's.
66217
66218 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66219
66220         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66221         setgid on directories only if they set these bits.
66222         * lib/modechange.h: Remove obsolete comment about masks.
66223
66224 2006-07-28  Eric Blake  <ebb9@byu.net>
66225
66226         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66227         macro expansion.
66228
66229 2006-07-28  Bruno Haible  <bruno@clisp.org>
66230
66231         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66232
66233 2006-07-28  Bruno Haible  <bruno@clisp.org>
66234
66235         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66236
66237 2006-07-28  Bruno Haible  <bruno@clisp.org>
66238
66239         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66240         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66241         Define fallbacks.
66242         Avoids link error on FreeBSD 4.x.
66243         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66244
66245         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66246         encoding.
66247         * lib/mbswidth.c (iswcntrl): Likewise.
66248
66249 2006-07-27  Bruno Haible  <bruno@clisp.org>
66250
66251         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66252         test.
66253
66254 2006-07-27  Bruno Haible  <bruno@clisp.org>
66255
66256         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66257         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66258         defined.
66259
66260 2006-07-26  Eric Blake  <ebb9@byu.net>
66261
66262         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66263
66264 2006-07-26  Eric Blake  <ebb9@byu.net>
66265
66266         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66267         like mingw that lack mkstemp.
66268         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66269         avoid compilation warning on mingw.
66270
66271 2006-07-26  Bruno Haible  <bruno@clisp.org>
66272
66273         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66274         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66275         INT_FAST*_MIN, INTPTR_MIN.
66276
66277 2006-07-25  Bruno Haible  <bruno@clisp.org>
66278
66279         * modules/version-etc (Depends-on): Add stdarg.
66280
66281 2006-07-25  Bruno Haible  <bruno@clisp.org>
66282
66283         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66284         complex commands.
66285
66286 2006-07-25  Bruno Haible  <bruno@clisp.org>
66287
66288         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66289         defined in <stdarg.h> or config.h.
66290
66291 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66292
66293         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66294         (gl_STDIO_SAFER): Remove.
66295
66296 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66297
66298         * MODULES.html.sh (File stream based Input/Output):
66299         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66300         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66301         * modules/fopen-safer, modules/tmpfile-safer: New files.
66302         * modules/stdio-safer: Remove.
66303
66304 2006-07-24  Bruno Haible  <bruno@clisp.org>
66305
66306         * modules/tmpdir: New file.
66307         * MODULES.html.sh (File system functions): Add it.
66308
66309 2006-07-24  Bruno Haible  <bruno@clisp.org>
66310
66311         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66312         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66313
66314 2006-07-24  Bruno Haible  <bruno@clisp.org>
66315
66316         * modules/clean-temp: New file.
66317
66318 2006-07-24  Bruno Haible  <bruno@clisp.org>
66319
66320         * m4/tmpdir.m4: New file, from GNU gettext.
66321
66322 2006-07-24  Bruno Haible  <bruno@clisp.org>
66323
66324         * lib/tmpdir.h: New file, from GNU gettext.
66325         * lib/tmpdir.c: New file, from GNU gettext.
66326
66327 2006-07-24  Bruno Haible  <bruno@clisp.org>
66328
66329         * lib/clean-temp.h: New file, from GNU gettext.
66330         * lib/clean-temp.c: New file, from GNU gettext.
66331
66332 2006-07-23  Eric Blake  <ebb9@byu.net>
66333
66334         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66335         (Depends-on): Add binary-io.
66336
66337 2006-07-23  Eric Blake  <ebb9@byu.net>
66338
66339         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66340
66341 2006-07-23  Eric Blake  <ebb9@byu.net>
66342
66343         * lib/tmpfile-safer.c: New file.
66344         * lib/stdio-safer.h (fopen_safer): Add prototype.
66345         * lib/stdio--.h (tmpfile): Make safer.
66346
66347 2006-07-23  Bruno Haible  <bruno@clisp.org>
66348
66349         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66350         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66351         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66352         gl_linked_remove_at): Use it.
66353
66354 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66355         and Simon Josefsson <jas@extundo.com>
66356
66357         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66358
66359         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66360
66361 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66362
66363         * modules/close-stream: New file.
66364         * modules/closeout (Description): Make it clear that it exits
66365         with a diagnostic on error.
66366         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66367         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66368
66369 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66370
66371         * m4/close-stream.m4: New file.
66372
66373 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66374
66375         * lib/close-stream.c, lib/close-stream.h: New files.
66376
66377 2006-07-22  Bruno Haible  <bruno@clisp.org>
66378
66379         Merge from GNU gettext 0.15.
66380
66381         2006-05-01  Bruno Haible  <bruno@clisp.org>
66382
66383                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66384
66385         2006-07-22  Bruno Haible  <bruno@clisp.org>
66386
66387                 * modules/javaversion: New file.
66388                 * MODULES.html.sh (Java): Add javaversion.
66389
66390         2006-03-12  Bruno Haible  <bruno@clisp.org>
66391
66392                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66393
66394         2005-12-04  Bruno Haible  <bruno@clisp.org>
66395
66396                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66397                 (untested).
66398
66399         2006-06-21  Bruno Haible  <bruno@clisp.org>
66400
66401                 Avoid warnings from recent versions of mcs.
66402                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66403                 -o, -L, -r any more. Use options documented since mcs-1.0
66404                 instead. Similarly for -g.
66405
66406         2005-12-04  Bruno Haible  <bruno@clisp.org>
66407
66408                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66409                 .resources, not .resource.
66410
66411         2005-07-09  Bruno Haible  <bruno@clisp.org>
66412
66413                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66414                 add a .dll suffix.
66415                 Reported by Mark Junker <mjscod@gmx.de>.
66416
66417         2006-07-22  Bruno Haible  <bruno@clisp.org>
66418
66419                 * modules/gettext: Upgrade to gettext-0.15.
66420                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66421                 m4/visibility.m4.
66422                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66423
66424 2006-07-22  Bruno Haible  <bruno@clisp.org>
66425
66426         Merge from GNU gettext 0.15.
66427
66428         2006-03-25  Bruno Haible  <bruno@clisp.org>
66429
66430                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66431
66432         2006-07-21  Bruno Haible  <bruno@clisp.org>
66433
66434                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66435                 "1.1".
66436
66437         2006-05-09  Bruno Haible  <bruno@clisp.org>
66438
66439                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66440                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66441                 for the conftestver execution.
66442
66443         2006-05-01  Bruno Haible  <bruno@clisp.org>
66444
66445                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66446                 optional target-version argument. Verify that the compiler
66447                 groks source of the specified source-version, or add -source
66448                 option as necessary. Verify that the compiler produces
66449                 bytecode in the specified target-version, or add -target and
66450                 -source options as necessary. Make the result of the test
66451                 available as variable CONF_JAVAC. Also log error output in
66452                 config.log.
66453
66454         2006-03-11  Bruno Haible  <bruno@clisp.org>
66455
66456                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66457
66458         2006-05-09  Bruno Haible  <bruno@clisp.org>
66459
66460                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66461                 CLASSPATH_SEPARATOR to a semicolon.
66462
66463         2006-03-12  Bruno Haible  <bruno@clisp.org>
66464
66465                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66466                 available as variable CONF_JAVA, for subsequent autoconf
66467                 tests. Also log error output in config.log.
66468
66469         2006-07-19  Bruno Haible  <bruno@clisp.org>
66470
66471                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66472                 that getline works on glibc2 systems. Needed to avoid trouble
66473                 in relocatable.c.
66474                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66475
66476         2005-12-04  Bruno Haible  <bruno@clisp.org>
66477
66478                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66479                 launcher (untested).
66480
66481         2005-12-04  Bruno Haible  <bruno@clisp.org>
66482
66483                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66484
66485         2006-07-22  Bruno Haible  <bruno@clisp.org>
66486
66487                 * gettext.m4: Update from GNU gettext-0.15.
66488                 * nls.m4: Likewise.
66489                 * po.m4: Likewise.
66490                 * inttypes-pri.m4: Likewise.
66491                 * inttypes-h.m4: Renamed from inttypes.m4.
66492                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66493
66494 2006-07-22  Bruno Haible  <bruno@clisp.org>
66495
66496         Merge from GNU gettext 0.15.
66497
66498         2005-07-05  Bruno Haible  <bruno@clisp.org>
66499
66500                 * printf-args.c (printf_fetchargs): Work around broken
66501                 definition of wint_t on mingw.
66502
66503         2005-02-12  Bruno Haible  <bruno@clisp.org>
66504
66505                 * xallocsa.h: Add extern "C" for C++.
66506
66507         2006-05-17  Bruno Haible  <bruno@clisp.org>
66508
66509                 Cygwin portability.
66510                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66511
66512         2006-04-30  Bruno Haible  <bruno@clisp.org>
66513
66514                 * progreloc.c: Include <mach-o/dyld.h> if available.
66515                 (find_executable): Use _NSGetExecutablePath when possible.
66516
66517         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66518
66519                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66520                 function.
66521
66522         2005-12-29  Bruno Haible  <bruno@clisp.org>
66523
66524                 * progreloc.c (set_program_name_and_installdir): Fix
66525                 compilation error.
66526
66527         2005-12-04  Bruno Haible  <bruno@clisp.org>
66528
66529                 Cygwin portability.
66530                 * progreloc.c: Include <windows.h> also on Cygwin.
66531                 (find_executable): Add support for Cygwin.
66532                 (set_program_name_and_installdir): Handle also platforms with
66533                 nonempty EXEEXT.
66534
66535         2006-07-11  Bruno Haible  <bruno@clisp.org>
66536
66537                 * javacomp.c: Fix a comment.
66538                 Reported by Jim Meyering.
66539
66540         2006-04-30  Bruno Haible  <bruno@clisp.org>
66541
66542                 * javacomp.h (compile_java_class): Add source_version,
66543                 target_version arguments.
66544                 * javacomp.c: Rewritten to choose only a compiler that
66545                 respects the specified source_version and target_version.
66546
66547         2006-06-27  Bruno Haible  <bruno@clisp.org>
66548
66549                 Assume correct S_ISDIR macro.
66550                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66551
66552         2006-07-22  Bruno Haible  <bruno@clisp.org>
66553
66554                 * javaversion.h: New file, from GNU gettext.
66555                 * javaversion.c: New file, from GNU gettext.
66556                 * javaversion.java: New file, from GNU gettext.
66557                 * javaversion.class: New file, from GNU gettext.
66558
66559         2006-05-17  Bruno Haible  <bruno@clisp.org>
66560
66561                 Cygwin portability.
66562                 * javaexec.c (execute_java_class): Test for jview program
66563                 also on Cygwin.
66564
66565         2006-04-09  Bruno Haible  <bruno@clisp.org>
66566
66567                 * fatal-signal.c: Don't include string.h.
66568                 (at_fatal_signal): Use a copying loop instead of memcpy.
66569
66570         2005-12-04  Bruno Haible  <bruno@clisp.org>
66571
66572                 * csharpexec.c: Add support for 'clix' launcher (untested).
66573                 (execute_csharp_using_sscli): New function.
66574                 (execute_csharp_program): Call it.
66575
66576         2006-06-21  Bruno Haible  <bruno@clisp.org>
66577
66578                 Avoid warnings from recent versions of mcs.
66579                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66580                 -o, -L, -r any more. Use options documented since mcs-1.0
66581                 instead. Similarly for -g.
66582
66583         2005-07-09  Bruno Haible  <bruno@clisp.org>
66584
66585                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66586                 add a .dll suffix.
66587                 Reported by Mark Junker <mjscod@gmx.de>.
66588
66589         2006-06-17  Bruno Haible  <bruno@clisp.org>
66590
66591                 * config.charset: Update for NetBSD 3.0.
66592
66593         2006-05-17  Bruno Haible  <bruno@clisp.org>
66594
66595                 Cygwin portability.
66596                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66597
66598         2006-05-16  Bruno Haible  <bruno@clisp.org>
66599
66600                 * localcharset.c [CYGWIN]: Include <windows.h>.
66601                 (get_charset_aliases): For Cygwin, return the same CPxxx
66602                 aliases list as under WIN32.
66603                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66604                 the environment variables. Fall back to GetACP().
66605
66606         2006-04-05  Bruno Haible  <bruno@clisp.org>
66607
66608                 * config.charset: Update Juan Manuel Guerrero's address.
66609
66610         2005-02-12  Bruno Haible  <bruno@clisp.org>
66611
66612                 * allocsa.h: Add extern "C" for C++.
66613
66614         2005-02-10  Bruno Haible  <bruno@clisp.org>
66615
66616                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66617                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66618
66619         2006-07-22  Bruno Haible  <bruno@clisp.org>
66620
66621                 * gettext.h: Update to GNU gettext-0.15.
66622
66623 2006-07-22  Bruno Haible  <bruno@clisp.org>
66624
66625         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66626         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66627         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66628
66629 2006-07-21  Eric Blake  <ebb9@byu.net>
66630
66631         * modules/stdlib-safer: New file.
66632         * MODULES.html.sh (File stream based Input/Output): Add
66633         stdlib-safer.
66634
66635 2006-07-21  Eric Blake  <ebb9@byu.net>
66636
66637         * lib/stdlib-safer.h: New file from coreutils, required by
66638         stdlib--.h.
66639
66640 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66641
66642         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66643
66644 2006-07-20  Bruno Haible  <bruno@clisp.org>
66645
66646         * gnulib-tool: Recognize new option --assume-autoconf.
66647         (autoconf_minversion): New variable.
66648         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66649
66650 2006-07-20  Bruno Haible  <bruno@clisp.org>
66651
66652         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66653
66654 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66655
66656         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66657         Reindent and repaginate.
66658
66659 2006-07-19  Derek Price  <derek@ximbiot.com>
66660
66661         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66662         Correct grammar.
66663
66664 2006-07-17  Bruno Haible  <bruno@clisp.org>
66665
66666         * modules/list: New file.
66667         * modules/array-list: New file.
66668         * modules/carray-list, modules/carray-list-tests: New files.
66669         * modules/linked-list, modules/linked-list-tests: New files.
66670         * modules/avltree-list, modules/avltree-list-tests: New files.
66671         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66672         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66673         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66674         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66675         * modules/oset: New file.
66676         * modules/array-oset: New file.
66677         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66678         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66679         * tests/test-carray_list.c: New file.
66680         * tests/test-linked_list.c: New file.
66681         * tests/test-avltree_list.c: New file.
66682         * tests/test-rbtree_list.c: New file.
66683         * tests/test-linkedhash_list.c: New file.
66684         * tests/test-avltreehash_list.c: New file.
66685         * tests/test-rbtreehash_list.c: New file.
66686         * tests/test-avltree_oset.c: New file.
66687         * tests/test-rbtree_oset.c: New file.
66688         * MODULES.html.sh (Container data structures): New section.
66689
66690 2006-07-17  Bruno Haible  <bruno@clisp.org>
66691
66692         * m4/gl_list.m4: New file.
66693
66694 2006-07-17  Bruno Haible  <bruno@clisp.org>
66695
66696         * lib/gl_list.h: New file.
66697         * lib/gl_list.c: New file.
66698         * lib/gl_array_list.h: New file.
66699         * lib/gl_array_list.c: New file.
66700         * lib/gl_carray_list.h: New file.
66701         * lib/gl_carray_list.c: New file.
66702         * lib/gl_linked_list.h: New file.
66703         * lib/gl_linked_list.c: New file.
66704         * lib/gl_anylinked_list1.h: New file.
66705         * lib/gl_anylinked_list2.h: New file.
66706         * lib/gl_avltree_list.h: New file.
66707         * lib/gl_avltree_list.c: New file.
66708         * lib/gl_anyavltree_list1.h: New file.
66709         * lib/gl_anyavltree_list2.h: New file.
66710         * lib/gl_rbtree_list.h: New file.
66711         * lib/gl_rbtree_list.c: New file.
66712         * lib/gl_anyrbtree_list1.h: New file.
66713         * lib/gl_anyrbtree_list2.h: New file.
66714         * lib/gl_anytree_list1.h: New file.
66715         * lib/gl_anytree_list2.h: New file.
66716         * lib/gl_linkedhash_list.h: New file.
66717         * lib/gl_linkedhash_list.c: New file.
66718         * lib/gl_anyhash_list1.h: New file.
66719         * lib/gl_anyhash_list2.h: New file.
66720         * lib/gl_avltreehash_list.h: New file.
66721         * lib/gl_avltreehash_list.c: New file.
66722         * lib/gl_rbtreehash_list.h: New file.
66723         * lib/gl_rbtreehash_list.c: New file.
66724         * lib/gl_anytreehash_list1.h: New file.
66725         * lib/gl_anytreehash_list2.h: New file.
66726
66727         * lib/gl_oset.h: New file.
66728         * lib/gl_oset.c: New file.
66729         * lib/gl_array_oset.h: New file.
66730         * lib/gl_array_oset.c: New file.
66731         * lib/gl_avltree_oset.h: New file.
66732         * lib/gl_avltree_oset.c: New file.
66733         * lib/gl_rbtree_oset.h: New file.
66734         * lib/gl_rbtree_oset.c: New file.
66735         * lib/gl_anytree_oset.h: New file.
66736
66737 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66738
66739         * m4/mkancesdirs.m4: New file.
66740         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66741         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66742         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66743         it.
66744
66745 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66746
66747         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66748         * lib/mkancesdirs.h: New files.
66749         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66750         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66751         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66752         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66753         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66754         callers changed.  Revamp internals significantly, by not
66755         attempting to create directories that are temporarily more
66756         permissive than the final results.  Do not attempt to use
66757         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66758         This removes some race conditions, fixes some bugs, and simplifies
66759         things.  Use new dirchownmod function to do owner and mode changes.
66760         * lib/mkdir-p.h: Likewise.
66761         * lib/modechange.c (octal_to_mode): New function.
66762         (struct mode_change): New member mentioned.
66763         (make_node_op_equals): New arg mentioned.  All callers changed.
66764         (mode_compile): Keep track of which mode bits the user has explicitly
66765         mentioned.
66766         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66767         New arg PMODE_BITS, to keep track of which mode bits the user
66768         mentioned; it treats S_ISUID and S_ISGID speciall.
66769         All callers changed.
66770         * lib/modechange.h: Likewise.
66771
66772 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66773
66774         * MODULES.html.sh: Add mkancestors.
66775         * modules/mkancesdirs: New module.
66776         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66777         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66778         The chdir-safer and afs files are now orphans; I'll remove them
66779         unless someone speaks up.
66780         Add lib/dirchownmod.c, lib/dirchownmod.h.
66781         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66782         Add lchown, mkancesdirs.
66783         (Maintainer): Add self.
66784
66785 2006-07-15  Karl Berry  <karl@gnu.org>
66786
66787         * gnulib-tool: help message wording/arrangement.
66788
66789 2006-07-14  Simon Josefsson  <jas@extundo.com>
66790
66791         * doc/gnulib.texi (Libtool and Windows): New section.
66792
66793 2006-07-12  Simon Josefsson  <jas@extundo.com>
66794
66795         * modules/gendocs (License): Fix license, approved by Karl.
66796
66797 2006-07-12  Eric Blake  <ebb9@byu.net>
66798
66799         * MODULES.html.sh: Add gendocs.
66800
66801 2006-07-11  Eric Blake  <ebb9@byu.net>
66802
66803         * modules/fdl: New module, to install doc/fdl.texi.
66804         * MODULES.html.sh: Add new section for documentation modules.
66805         * gnulib-tool: Avoid space-tab.
66806         (--doc-base): New option, to manage files from doc.
66807
66808 2006-07-11  Eric Blake  <ebb9@byu.net>
66809
66810         * m4/absolute-header.m4: Fix comments to match recent change.
66811
66812 2006-07-11  Eric Blake  <ebb9@byu.net>
66813
66814         * gnulib-tool: List --doc-base before --tests-base.
66815
66816 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66817
66818         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66819
66820 2006-07-11  Bruno Haible  <bruno@clisp.org>
66821
66822         * README: Mention where to put documentation.
66823
66824 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66825
66826         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66827
66828 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66829
66830         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66831         to stdint.m4.
66832
66833 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66834
66835         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66836         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66837         "no/such/file/stdint.h" when there is no such file, so that
66838         the resulting C code can be parsed by dodgy compilers.
66839         Problems reported by Bob Proulx.
66840
66841 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66842
66843         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66844         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66845         macros into the GNU _D_EXACT_NAMLEN.
66846         * lib/savedir.c:  Likewise.
66847         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66848
66849 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66850         and Paul Eggert  <eggert@cs.ucla.edu>
66851
66852         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66853         * m4/savedir.m4:
66854         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66855         macros into the GNU _D_EXACT_NAMLEN.
66856
66857 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66858
66859         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66860         around the absolute name, to work around a problem with the HP-UX
66861         11.23 native C compiler, reported by Bob Proulx.
66862
66863 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66864
66865         * doc/maintain.texi, make-stds.texi: Sync from
66866         <http://savannah.gnu.org/projects/gnustandards>.
66867
66868 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66869
66870         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66871
66872 2006-07-09  Jim Meyering  <jim@meyering.net>
66873
66874         * m4/glob.m4: Remove a doubled word in a comment.
66875
66876 2006-07-09  Jim Meyering  <jim@meyering.net>
66877
66878         * lib/argp-pv.c: Remove a doubled word in a comment.
66879         * lib/check-version.c (check_version): Likewise.
66880         * lib/javacomp.c (compile_java_class): Likewise.
66881
66882 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66883
66884         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66885         for the benefit of people using Autoconf 2.60.  If you want to
66886         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66887         (or m4/onceonly.m4, if pre-2.57) manually.
66888
66889 2006-07-08  Jim Meyering  <jim@meyering.net>
66890
66891         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66892         comment.
66893         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66894         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66895         comment.
66896
66897 2006-07-08  Jim Meyering  <jim@meyering.net>
66898
66899         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66900
66901 2006-07-07  Simon Josefsson  <jas@extundo.com>
66902
66903         * tests/test-crc.c: Change expected crc value, the test vector
66904         were probably computed using the old broken crc.c?
66905
66906 2006-07-06  Simon Josefsson  <jas@extundo.com>
66907
66908         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66909         now the canonical place for the M4 file).
66910
66911         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66912         from the sys_socket dependency now.
66913
66914         * modules/inet_pton (Files): Ditto.
66915
66916         * modules/inet_ntop (Files): Ditto.
66917
66918 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66919
66920         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66921         not gl_PREREQ_GETUSERSHELL.
66922
66923 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66924
66925         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66926         with only one argument, for Autoconf 2.60.
66927         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66928         expand to nothing, so add a shell command to avoid syntax error.
66929         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66930
66931 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66932
66933         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66934
66935 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66936
66937         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66938         no longer needed.  Check for isblank decl.
66939         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66940         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66941         of existence.
66942
66943 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66944
66945         * lib/getloadavg.c: Use __VMS, not VMS.
66946         * lib/getopt.c: Likewise.
66947         * lib/getpagesize.h: Likewise.
66948         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66949         and probably does not work.
66950
66951 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66952
66953         * lib/.cppi-disable: Add wcwidth.
66954         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66955         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66956         (ISGRAPH): Remove.  All uses changed to isgraph.
66957         (FOLD) [!defined _LIBC]: Remove special case.
66958         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66959         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66960         HAVE_ISBLANK.
66961         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66962         case.
66963
66964 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66965
66966         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66967         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66968         brackets.  Other minor changes to suppress some compiler
66969         warnings.
66970
66971 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66972         and Paul Eggert  <eggert@cs.ucla.edu>
66973
66974         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66975         of invoking obsolescent AC_HEADER_DIRENT macro.
66976         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66977         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66978         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66979         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66980         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66981         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66982         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66983         * m4/readdir.m4: Remove; no longer needed.
66984
66985 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66986         and Paul Eggert  <eggert@cs.ucla.edu>
66987
66988         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66989         Don't worry about this obsolete case any more.
66990         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66991         directories.
66992         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66993         worry about this obsolete case any more.
66994         * lib/fts.c: Likewise.
66995         * lib/getcwd.c: Likewise.
66996         * lib/glob.h: Likewise.
66997         * lib/savedir.c: Likewise.
66998
66999 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67000
67001         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67002         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67003         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67004         needed.
67005         All uses removed.
67006         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67007         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67008         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67009         needed.
67010         * m4/getdate.m4 (gl_GETDATE): Likewise.
67011         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67012         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67013         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67014         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67015         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67016         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67017         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67018         needed.
67019
67020 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67021
67022         * lib/memcasecmp.c: Include <limits.h>.
67023         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67024         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67025         Don't assume isdigit succeeds only on '0' through '9'.
67026
67027 2006-07-05  Eric Blake  <ebb9@byu.net>
67028
67029         * modules/getaddrinfo (Depends-on): Add snprintf.
67030
67031 2006-07-05  Eric Blake  <ebb9@byu.net>
67032
67033         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67034         to avoid 'header present but could not be compiled' on cygwin.
67035
67036 2006-07-05  Eric Blake  <ebb9@byu.net>
67037
67038         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67039         missing from netdb.h.
67040         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67041
67042 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67043
67044         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67045         no longer needed.
67046         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67047         * m4/getdate.m4 (gl_GETDATE): Likewise.
67048         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67049         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67050         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67051         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67052         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67053
67054 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67055
67056         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67057         All uses of is_space replaced by isspace.
67058         * lib/exit.h: Don't talk about STDC_HEADERS.
67059         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67060         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67061         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67062         replaced by isprint etc.
67063         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67064         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67065         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67066         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67067         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67068         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67069
67070 2006-07-05  Bruno Haible  <bruno@clisp.org>
67071
67072         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67073         the function exists, before testing against AIX.
67074         Reported by Martin Lambers <marlam@marlam.de>.
67075
67076 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67077
67078         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67079         From Mark D. Baushke.
67080
67081 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67082
67083         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67084         to the absolute name, not just one, to bypass Sun C 5.8's
67085         "warning: #include of /usr/include/... may be non-portable".
67086
67087 2006-07-04  Eric Blake  <ebb9@byu.net>
67088
67089         * modules/dirname-tests: New test module.
67090         * tests/test-dirname.c: New file, replacing dirname.c
67091         TEST_DIRNAME section that was recently deleted.
67092
67093 2006-07-04  Bruno Haible  <bruno@clisp.org>
67094
67095         Assume ANSI C header files and <ctype.h> functions.
67096         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67097         (mbsnwidth): Use isprint, iscntrl instead.
67098
67099 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67100
67101         Merge from coreutils.
67102         * MODULES.html.sh: Add xstrtold.
67103         * modules/xstrtold: New file.
67104         * modules/cycle-check (Files): Add lib/same-inode.h.
67105         * modules/dirname (Files): Add m4/double-slash-root.m4.
67106         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67107         * modules/mkdir-p (Files): Add lib/same-inode.h.
67108         * modules/same (Files): Add lib/same-inode.h.
67109
67110 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67111
67112         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67113         This is to keep the terminology clean; POSIX talks about
67114         "absolute pathnames", not "full pathnames", but the GNU
67115         Coding Standards say to use "path" for something else;
67116         so use "absolute" to keep both sides happy.
67117         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67118         Set gl_absolute_header, not gl_full_header_path.
67119         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67120         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67121         All uses changed.
67122
67123         Merge from coreutils.
67124
67125         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67126
67127         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67128         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67129         want to require the building of c-strtod.o.
67130         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67131         needs -lm directly.
67132         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67133
67134         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67135
67136         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67137         --as-needed option if available.  Problem reported by Albert Chin in
67138         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67139         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67140         cc merely issues a bunch of annoying warnings for --as-needed
67141         (this problem was reported by Bob Proulx).  Also, try linking with
67142         -lm to detect a bug in binutils 2.16 (this problem was reported
67143         by Ralf Wildenhues).
67144
67145         2006-06-18  Jim Meyering  <jim@meyering.net>
67146
67147         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67148         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67149         macro.
67150         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67151         also check for glibc-2.4's abort-inducing bug.
67152
67153         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67154         Low-probability clean-up should be to use rmdir to get rid of
67155         the just-created directory, not unlink.
67156
67157         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67158         configure fail, and request a bug report to inform us about it.
67159         Add a comment that, barring reports to the contrary, in 2007 we'll
67160         assume ftruncate is universally available.
67161
67162         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67163
67164         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67165
67166         2006-03-12  Jim Meyering  <jim@meyering.net>
67167
67168         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67169         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67170         * m4/same.m4 (gl_SAME): Likewise.
67171         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67172
67173         2006-03-11  Eric Blake  <ebb9@byu.net>
67174
67175         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67176         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67177         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67178         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67179
67180 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67181
67182         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67183         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67184         reported by Mark D. Baushke, one in
67185         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67186
67187         Merge from coreutils.
67188
67189         * lib/.cppi-disable: Add stdint_.h.
67190         * lib/.cvsignore: Add stdint.h.
67191
67192         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67193
67194         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67195         both double and long double versions.
67196         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67197         * lib/xstrtold.c: New file.
67198         * lib/xstrtod.h (xstrtold): New decl.
67199
67200         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67201
67202         * lib/filemode.c (setst): Remove.
67203         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67204         (arguably) clearer, and the generated code is a bit smaller on my
67205         Debian GNU/Linux stable x86 host.
67206
67207         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67210         Assume that filemode.h includes sys/types.h and sys/stat.h.
67211         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67212         (ftypelet): Reorder to put common cases first, for efficiency.
67213         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67214         to do 'M'.
67215         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67216         of 10, for compatibility with FreeBSD.  All callers changed.
67217         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67218         types that can't be deduced solely from st_mode.  First arg is now a
67219         const pointer.
67220         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67221         (strmode): Renamed from mode_string.
67222         (filemodestring): New decl.
67223         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67224         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67225         needed.
67226         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67227
67228         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67229
67230         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67231         fsusage.h now does that.  Include fsusage.h first, to test interface.
67232         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67233         at most one method (the old code could have generated decls that
67234         didn't conform to C89, not that this was ever exercised).
67235         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67236
67237         2006-03-19  Jim Meyering  <jim@meyering.net>
67238
67239         Work even in a chroot where d_ino values for entries in "/"
67240         don't match the stat.st_ino values for the same names.
67241         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67242         number, iterate through all entries again, using lstat instead.
67243         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67244         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67245
67246         * lib/getcwd.c (__getcwd): Clarify a comment.
67247         Use memcpy in place of a call to strcpy.
67248
67249         2006-03-12  Jim Meyering  <jim@meyering.net>
67250
67251         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67252         matches that of the current directory (which we're about to chdir ".."
67253         out of), then save the dev-ino of the parent, instead.
67254
67255         * lib/same-inode.h (SAME_INODE): New file/macro.
67256         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67257         Include "same-inode.h", instead.
67258         * lib/same.c: Likewise.
67259         * lib/cycle-check.h: Include "same-inode.h".
67260         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67261         * lib/cycle-check.c (SAME_INODE): Remove definition.
67262         * lib/root-dev-ino.h: Include "same-inode.h".
67263
67264         2006-03-11  Eric Blake  <ebb9@byu.net>
67265
67266         * lib/same.c (same_name): s/base_name/last_component/
67267         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67268         * lib/filenamecat.c (file_name_concat): Likewise.
67269
67270         2006-03-11  Eric Blake  <ebb9@byu.net>,
67271                     Paul Eggert  <eggert@cs.ucla.edu>
67272
67273         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67274         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67275         drive prefix.
67276         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67277         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67278         (last_component): New method.
67279         * lib/dirname.c (dir_len): Determine when drive letters need a
67280         subsequent slash.  Preserve // when it is special.
67281         (dir_name): Don't append dot when drive letter is absolute.
67282         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67283         * lib/basename.c (base_name): New semantics - malloc the result.
67284         Preserve // when it is special.  Preserve relative files that look
67285         like drive letters.
67286         (base_len): Preserve // when it is special.
67287         (last_component): New method, similar to old base_name semantics.
67288         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67289         base_name.  Strip redundant slashes from ///.
67290
67291 2006-07-03  Jim Meyering  <jim@meyering.net>
67292
67293         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67294         macro is used before the first cycle_check call.
67295
67296 2006-07-03  Eric Blake  <ebb9@byu.net>
67297
67298         * modules/dirname (Depends-on): Add xstrndup.
67299
67300 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67301
67302         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67303         test cases, so that config.log is a bit easier to follow.
67304
67305 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67306
67307         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67308         both are 64 bits, since this seems to be the tradition, and this
67309         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67310         we ever run into a host that prefers long long to long in this
67311         case, we'll need another configure-time test.  Problem reported by
67312         Jim Meyering.
67313
67314 2006-07-02  Eric Blake  <ebb9@byu.net>
67315
67316         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67317
67318 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         * modules/inttypes (Depends-on): No longer depends on stdint.
67321         * modules/stdint (Description): Say more about assumptions.
67322         Say that the fast types might differ.  Say macros are used.
67323         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67324         (Makefile.am): Revise list of substituted symbols to match
67325         new stdint.m4.
67326         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67327         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67328         * tests/test-stdint.c (verify_same_types)
67329         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67330         the code conforms to C99/C89.
67331         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67332         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67333
67334 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67337         but fix a bug, by requiring at least 64 bits.
67338         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67339         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67340         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67341         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67342
67343         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67344         changes.  Make 2.59 a prerequisite.  Check and substitute for
67345         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67346         inttypes.h.  Do not use special include files; just use the
67347         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67348         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67349         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67350         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67351         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67352         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67353         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67354         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67355         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67356         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67357         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67358         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67359         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67360         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67361         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67362         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67363         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67364         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67365         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67366         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67367         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67368         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67369         not check for things that C99 does not require, e.g., int8_t.  If
67370         a test isn't needed unless <stdint.h> isn't working, and is
67371         unlikely to be needed for any other reason, then don't do it
67372         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67373         size_t, since we assume C89 freestanding at least.  Do not check
67374         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67375         the right thing even if the types are not defined.  Instead use:
67376         (gl_STDINT_TYPE_PROPERTIES): New macro.
67377         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67378         testing whether <sys/types.h> clashes, as Autoconf does this for
67379         us now.  All uses removed.
67380         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67381         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67382         (gl_CHECK_TYPE_SAME):
67383         Remove; no longer needed.
67384         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67385         exists, since we'll return 0 anyway in that case.
67386         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67387
67388 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67391         possible collision with system files.
67392         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67393         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67394         WCHAR_MIN and WCHAR_MAX in this case.
67395         (<stddef.h>): Do not include; no longer needed.
67396         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67397         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67398         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67399         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67400         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67401         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67402         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67403         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67404         !defined(__c99))]: Include in this case too, since it's harmless
67405         now.
67406         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67407         dangerous to do so.
67408         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67409         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67410         (_STDINT_MIN, _STDINT_MAX): New macros.
67411         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67412         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67413         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67414         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67415         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67416         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67417         macros, not typedefs; this simplifies things quite a bit.
67418         Use long int for all types narrower than int64_t.
67419         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67420         Define in terms of long long int or int64_t or long int,
67421         not int64_t or int32_t.  This saves some compile-time testing.
67422         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67423         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67424         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67425         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67426         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67427         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67428         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67429         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67430         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67431         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67432         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67433         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67434         undef any previous version and define our own version, for
67435         simplicity and consistency with the new macros for types.
67436         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67437         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67438         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67439         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67440         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67441         @WINT_T_SUFFIX@ to keep things simple here.
67442         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67443         Simplify by assuming typical 8/16/32/64 host, since we're
67444         already doing that elsewhere anyway.
67445         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67446         and assume long long int is 64 bits if available.  This
67447         speeds up 'configure'.
67448
67449 2006-07-01  Eric Blake  <ebb9@byu.net>
67450
67451         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67452         Reported by Andreas Buening.
67453
67454 2006-07-01  Eric Blake  <ebb9@byu.net>
67455
67456         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67457
67458 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67459
67460         * lib/getaddrinfo.c: fixed typo
67461
67462 2006-06-29  Jim Meyering  <jim@meyering.net>
67463
67464         * modules/strftime (Maintainer): Add my name, since with the
67465         FPRINTFTIME changes strftime.c has forked from glibc.
67466
67467 2006-06-29  Eric Blake  <ebb9@byu.net>
67468
67469         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67470
67471 2006-06-29  Eric Blake  <ebb9@byu.net>
67472
67473         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67474
67475 2006-06-29  Eric Blake  <ebb9@byu.net>
67476
67477         * lib/stat_.h: New file.
67478
67479 2006-06-29  Eric Blake  <ebb9@byu.net>
67480
67481         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67482         unused static function.
67483
67484 2006-06-29  Eric Blake  <ebb9@byu.net>
67485
67486         * doc/functions.texi (Function Portability): Document missing lstat
67487         on mingw.
67488
67489 2006-06-29  Eric Blake  <ebb9@byu.net>
67490
67491         * MODULES.html.sh: Add sys_stat.
67492         * modules/sys_stat: New module.
67493         * modules/mkstemp (Depends-on): Add sys_stat.
67494
67495 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67496
67497         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67498
67499 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67500
67501         * m4/c-bs-a.m4: Removed.
67502
67503 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67504
67505         * lib/strftime.c: Assume strftime() exists.
67506
67507 2006-06-29  Derek Price  <derek@ximbiot.com>
67508
67509         * modules/c-bs-a: Removed - \a is C89.
67510         * MODULES.html.sh: Remove c-bs-a.
67511
67512 2006-06-29  Bruno Haible  <bruno@clisp.org>
67513
67514         * modules/wcwidth (License): Change to LGPL.
67515
67516 2006-06-28  Simon Josefsson  <jas@extundo.com>
67517
67518         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67519         on _WIN32.
67520
67521         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67522         getnameinfo.
67523
67524 2006-06-28  Simon Josefsson  <jas@extundo.com>
67525
67526         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67527
67528 2006-06-28  Simon Josefsson  <jas@extundo.com>
67529
67530         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67531         functions there.  It will succeed on Windows XP, but on Windows
67532         2000 and (presumably) earlier, it will fail, and use the internal
67533         re-implementation.
67534         (use_win32_p): New function.
67535         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67536         Support AI_NUMERICSERV to disable getservbyname.
67537         (getnameinfo): New function, only supports
67538         NI_NUMERICHOST|NI_NUMERICSERV for now.
67539
67540         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67541         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67542         getnameinfo.
67543
67544 2006-06-28  Eric Blake  <ebb9@byu.net>
67545
67546         * modules/wcwidth: New file.
67547         * modules/mbchar (Depends-on): Add wcwidth.
67548         * modules/mbswidth (Depends-on): Add wcwidth.
67549         * MODULES.html.sh: Add wcwidth.
67550
67551 2006-06-28  Eric Blake  <ebb9@byu.net>
67552
67553         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67554         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67555
67556 2006-06-28  Eric Blake  <ebb9@byu.net>
67557
67558         * lib/xvasprintf.h: Fix comments.
67559
67560 2006-06-28  Eric Blake  <ebb9@byu.net>
67561
67562         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67563         * lib/mbswidth.c (wcwidth): Move from here...
67564         * lib/wcwidth.h: ...to this new file.
67565
67566 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67567
67568         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67569
67570         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67571         it's obsolete.
67572         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67573
67574 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67575
67576         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67577         Autoconf 2.60 says this stuff was obsolete.
67578
67579 2006-06-28  Bruno Haible  <bruno@clisp.org>
67580
67581         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67582
67583 2006-06-28  Bruno Haible  <bruno@clisp.org>
67584
67585         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67586         gt_TYPE_WCHAR_T.
67587
67588 2006-06-28  Bruno Haible  <bruno@clisp.org>
67589
67590         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67591         declaration for wcwidth.
67592         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67593
67594 2006-06-28  Bruno Haible  <bruno@clisp.org>
67595
67596         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67597         (mkdir): Define using _mkdir.
67598
67599 2006-06-28  Bruno Haible  <bruno@clisp.org>
67600
67601         * lib/getaddrinfo.h: Fix POSIX URL.
67602         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67603         _WIN32.
67604         (use_win32_p): Make static.
67605         (getaddrinfo): Reject service name if it is empty or does not consist
67606         solely of decimal digits, or if its value is > 65535.
67607         (getnameinfo): Remove useless casts.
67608
67609 2006-06-27  Simon Josefsson  <jas@extundo.com>
67610
67611         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67612         Eggert and Martin Lambers.
67613
67614 2006-06-27  Simon Josefsson  <jas@extundo.com>
67615
67616         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67617         Eggert and Martin Lambers.
67618
67619 2006-06-27  Bruno Haible  <bruno@clisp.org>
67620
67621         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67622         result to 0, not to empty.
67623         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67624
67625 2006-06-27  Bruno Haible  <bruno@clisp.org>
67626
67627         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67628
67629 2006-06-26  Simon Josefsson  <jas@extundo.com>
67630
67631         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67632         present.
67633
67634 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67635
67636         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67637         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67638         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67639
67640 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67641
67642         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67643
67644 2006-06-26  Bruno Haible  <bruno@clisp.org>
67645
67646         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67647
67648 2006-06-26  Bruno Haible  <bruno@clisp.org>
67649
67650         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67651
67652 2006-06-26  Bruno Haible  <bruno@clisp.org>
67653
67654         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67655         SGI C compiler in pre-C99 mode.
67656         Suggested by Mark D. Baushke and Larry Jones.
67657
67658 2006-06-26  Bruno Haible  <bruno@clisp.org>
67659
67660         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67661         WCHAR_MAX.
67662         Reported by Mark D. Baushke and Larry Jones.
67663
67664 2006-06-26  Bruno Haible  <bruno@clisp.org>
67665
67666         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67667         in pre-C99 mode.
67668         Suggested by Mark D. Baushke and Larry Jones.
67669
67670 2006-06-23  Simon Josefsson  <jas@extundo.com>
67671             Bruno Haible  <bruno@clisp.org>
67672
67673         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67674         Emit mostlyclean-local rule.
67675         (func_emit_tests_Makefile_am): Likewise.
67676         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67677
67678 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67679
67680         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67681
67682 2006-06-23  Bruno Haible  <bruno@clisp.org>
67683
67684         * tests/test-stdint.c: Update to match ISO C 99 Technical
67685         Corrigendum 1.
67686
67687 2006-06-23  Bruno Haible  <bruno@clisp.org>
67688
67689         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67690
67691 2006-06-23  Bruno Haible  <bruno@clisp.org>
67692
67693         * lib/stdint_.h: Treat IRIX like OpenBSD.
67694
67695 2006-06-23  Bruno Haible  <bruno@clisp.org>
67696
67697         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67698         ISO C 99 Technical Corrigendum 1.
67699
67700 2006-06-22  Simon Josefsson  <jas@extundo.com>
67701
67702         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67703         MinGW.
67704
67705 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67706
67707         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67708         needed.  Some compiler complained about some of them.  Problem reported
67709         by Larry Jones in
67710         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67711
67712 2006-06-21  Simon Josefsson  <jas@extundo.com>
67713
67714         * tests/test-getaddrinfo.c: New file.
67715
67716         * modules/getaddrinfo-tests: New file.
67717
67718         * MODULES.html.sh: Add inet_pton.
67719
67720         * modules/inet_pton: New file.
67721
67722 2006-06-21  Simon Josefsson  <jas@extundo.com>
67723
67724         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67725         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67726         of using the (limited) gnulib implementation on Windows XP.
67727
67728         * m4/inet_pton.m4: New file.
67729
67730 2006-06-21  Simon Josefsson  <jas@extundo.com>
67731
67732         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67733         variable.
67734
67735         * lib/socket_.h: Don't define WINVER.
67736
67737         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67738         slightly modified to work in gnulib.
67739
67740 2006-06-21  Simon Josefsson  <jas@extundo.com>
67741
67742         * doc/gnulib.texi (Windows sockets): Add.
67743
67744 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         * lib/read-file.c (fread_file): Start with buffer allocation of
67747         0 bytes rather than 1 byte; this simplifies the code.
67748         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67749         code to free buffer and save/restore errno.
67750         (internal_read_file): Remove unused local.
67751
67752 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67753
67754         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67755         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67756         Problem reported by Denis Excoffier in
67757         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67758
67759 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67760
67761         * modules/sys_socket, modules/socklen: Include sys/types since
67762         FreeBSD 4.x's sys/socket.h needs it.
67763
67764 2006-06-19  Simon Josefsson  <jas@extundo.com>
67765
67766         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67767
67768 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67769
67770         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67771
67772 2006-06-19  Bruno Haible  <bruno@clisp.org>
67773
67774         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67775         and FULL_PATH_INTTYPES_H in angle brackets.
67776         Reported by Mark D. Baushke <mdb@gnu.org>.
67777
67778 2006-06-17  Eric Blake  <ebb9@byu.net>
67779
67780         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67781         errno.
67782
67783 2006-06-17  Bruno Haible  <bruno@clisp.org>
67784
67785         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67786         <sys/inttypes.h>.
67787
67788 2006-06-17  Bruno Haible  <bruno@clisp.org>
67789
67790         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67791         whether errno is declared. Assume <errno.h> declares errno.
67792
67793 2006-06-17  Bruno Haible  <bruno@clisp.org>
67794
67795         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67796
67797 2006-06-17  Bruno Haible  <bruno@clisp.org>
67798
67799         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67800         problem on Solaris 2.5.1.
67801
67802 2006-06-16  Eric Blake  <ebb9@byu.net>
67803
67804         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67805         * lib/unicodeio.c [!defined errno]: Likewise.
67806         * lib/strtol.c [!defined errno]: Likewise.
67807         * lib/strtod.c [!defined errno]: Likewise.
67808
67809 2006-06-15  Eric Blake  <ebb9@byu.net>
67810
67811         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67812
67813 2006-06-15  Eric Blake  <ebb9@byu.net>
67814
67815         * config/srclist.txt (ssize_t.m4): Lose sync.
67816
67817 2006-06-15  Bruno Haible  <bruno@clisp.org>
67818
67819         * modules/stdint (Files): Include m4/full-header-path.m4,
67820         m4/size_max.m4, m4/wchar_t.m4.
67821         (Makefile.am): Many more substitutions.
67822         * modules/stdint-tests: New file.
67823         * tests/test-stdint.c: New file.
67824
67825 2006-06-15  Bruno Haible  <bruno@clisp.org>
67826
67827         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67828         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67829         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67830         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67831         gl_CHECK_TYPE_SAME): New macros.
67832
67833 2006-06-15  Bruno Haible  <bruno@clisp.org>
67834
67835         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67836
67837 2006-06-15  Bruno Haible  <bruno@clisp.org>
67838
67839         * lib/stdint_.h: Rewritten to be fully auto-configured.
67840         Fixes bug on HP-UX/IA64.
67841
67842 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67843
67844         * lib/getdate.y (__attribute__): Don't define if already defined.
67845         Problem reported by Larry Jones.
67846         * lib/utimens.c (__attribute__): Likewise.
67847
67848 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67849
67850         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67851         reported by Andreas Schwab.
67852
67853 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67854             Bruno Haible  <bruno@clisp.org>
67855
67856         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67857         check for the declaration of strnlen and a run test that exposes the
67858         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67859         rpl_strndup.
67860
67861 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67862             Bruno Haible  <bruno@clisp.org>
67863
67864         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67865
67866 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67867
67868         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67869         compile test, for Tru64 4.0D.
67870
67871 2006-05-28  Karl Berry  <karl@gnu.org>
67872
67873         * config/srclist.txt (printf-args.c): lose sync.
67874
67875 2006-05-26  Martin Lambers  <marlam@marlam.de>
67876
67877         * lib/getpass.c: Updates the test for the native W32 API, and adds
67878         missing includes, thus fixing compilation warnings.
67879
67880 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67881
67882         * lib/exclude.c (exclude_fnmatch): New function.
67883         (excluded_file_name): Call exclude_fnmatch.
67884         * lib/exclude.h (excluded_file_name): New prototype
67885
67886 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67887
67888         * lib/tempname.c (small_open, large_open): New macros.
67889         (__open, __open64) [!_LIBC]: Remove.
67890         (__gen_tempname): Use small_open and large_open instead of __open
67891         and __open64.  This fixes a portability bug on HP-UX 11.11i
67892         reported by Simon Wing-Tang in
67893         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67894
67895 2006-05-24  Bruno Haible  <bruno@clisp.org>
67896
67897         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67898         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67899         Reported by Thorsten Maerz <torte@netztorte.de> via
67900         Aaron Stone <aaron@serendipity.cx>.
67901
67902 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67903
67904         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67905         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67906         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67907         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67908         not really conditional on the cache.
67909         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67910
67911 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67914         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67915         (my_usleep): Don't mishandle maximum value.
67916
67917 2006-05-19  Jim Meyering  <jim@meyering.net>
67918
67919         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67920
67921 2006-05-17  Bruno Haible  <bruno@clisp.org>
67922
67923         Cygwin portability.
67924         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67925
67926 2006-05-17  Bruno Haible  <bruno@clisp.org>
67927
67928         * lib/stdint_.h: Fix recognition of Cygwin.
67929
67930 2006-05-15  Bruno Haible  <bruno@clisp.org>
67931
67932         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67933         on libtool patch by Ralf Wildenhues.
67934
67935 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67938         test for C99 conformance; (bool) 0.5 is an integer constant
67939         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67940         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67941
67942 2006-05-11  Simon Josefsson  <jas@extundo.com>
67943
67944         * m4/xvasprintf.m4: Fix obvious typo.
67945
67946 2006-05-11  Jim Meyering  <jim@meyering.net>
67947
67948         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67949         James Lemley.
67950
67951 2006-05-10  Simon Josefsson  <jas@extundo.com>
67952
67953         * lib/md4.c: Typo fix, update copyright years.
67954         (K1, K2): Don't use L because it turn computations into 64-bit on
67955         64-bit platforms.
67956
67957 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67958
67959         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67960         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67961         unwanted sign propagation, e.g., on hosts with 64-bit int.
67962         There still are some problems with reeelly weird theoretical hosts
67963         (e.g., 33-bit int) but it's not worth worrying about now.
67964         * lib/sha1.c (rol): Likewise.
67965         (K1, K2, K3, K4): Remove unnecessary L suffix.
67966
67967 2006-05-10  Bruno Haible  <bruno@clisp.org>
67968
67969         * lib/des.c: Cast to avoid warnings.
67970
67971 2006-05-09  Bruno Haible  <bruno@clisp.org>
67972
67973         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67974         (Depends-on): Depend also on xsize, stdarg.
67975         (configure.ac): Add gl_XVASPRINTF.
67976
67977 2006-05-09  Bruno Haible  <bruno@clisp.org>
67978
67979         * m4/xvasprintf.m4: New file.
67980
67981 2006-05-09  Bruno Haible  <bruno@clisp.org>
67982
67983         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67984         (EOVERFLOW): Define fallback value.
67985         (xstrcat): New function.
67986         (xvasprintf): Recognize the special case of a string concatenation.
67987
67988 2006-05-08  Eric Blake  <ebb9@byu.net>
67989
67990         * gnulib-tool (func_version): Base copyright year on CVS date.
67991         (func_emit_copyright_notice): New function.
67992         (func_emit_lib_Makefile_am): Use it.
67993         (func_emit_tests_Makefile_am): Likewise.
67994         (func_import): Likewise.
67995
67996 2006-05-08  Bruno Haible  <bruno@clisp.org>
67997
67998         * modules/stdarg: New file.
67999         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68000
68001 2006-05-08  Bruno Haible  <bruno@clisp.org>
68002
68003         * m4/stdarg.m4: New file, from GNU gettext.
68004
68005 2006-05-08  Bruno Haible  <bruno@clisp.org>
68006
68007         * config/srclist.txt (build-aux/config.rpath): different from latest
68008         release.
68009
68010 2006-05-08  Bruno Haible  <bruno@clisp.org>
68011
68012         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68013
68014 2006-05-05  Jim Meyering  <jim@meyering.net>
68015
68016         * m4/warning.m4: New file, derived from bison's file by the same name.
68017
68018 2006-05-03  Bruno Haible  <bruno@clisp.org>
68019
68020         * lib/stdint_.h: Shorter URL.
68021         * lib/inttypes.h: Likewise.
68022
68023 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68024
68025         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68026
68027 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68028
68029         * lib/verify.h: Document the internals better.  Most of this change
68030         was written by Bruno Haible.
68031
68032 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68033
68034         * doc/verify.texi: New file, partly based on a proposal by
68035         Bruno Haible.
68036
68037 2006-05-02  Bruno Haible  <bruno@clisp.org>
68038
68039         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68040         test from here...
68041         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68042
68043 2006-04-29  Bruno Haible  <bruno@clisp.org>
68044
68045         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68046         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68047
68048 2006-04-29  Bruno Haible  <bruno@clisp.org>
68049
68050         * gnulib-tool: Make --update option actually work.
68051
68052 2006-04-29  Bruno Haible  <bruno@clisp.org>
68053
68054         * doc/gcd.texi: New file.
68055         * doc/gnulib.texi: Include it.
68056
68057 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68058
68059         * lib/getdate.y (get_date): When adding relative date, start with the
68060         initial time, not with the result of the first mktime call.
68061
68062 2006-04-25  Bruno Haible  <bruno@clisp.org>
68063
68064         * gnulib-tool (func_import): Output the include directives in three
68065         blocks, sorted separately.
68066         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68067
68068 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68069
68070         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68071         to define main with arguments, for C++.  Reported by Eric Blake.
68072         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68073         Prefer 'int main ()' to 'int main (void)', for C++.
68074         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68075         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68076         for 'main', for C99 and C++.
68077
68078 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68079
68080         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68081         Don't assume that exit status -1 is valid.
68082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68083         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68084         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68085         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68086         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68087         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68088         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68089         functions can be used without declaring them, or that you can
68090         exit with status -1.
68091         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68092
68093 2006-04-24  Karl Berry  <karl@gnu.org>
68094
68095         * config/srclist.txt (longdouble.m4): sync lost.
68096
68097 2006-04-24  Eric Blake  <ebb9@byu.net>
68098
68099         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68100
68101 2006-04-24  Bruno Haible  <bruno@clisp.org>
68102
68103         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68104         poll() implementation in AIX.
68105         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68106
68107 2006-04-24  Bruno Haible  <bruno@clisp.org>
68108
68109         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68110         assigned exactly once.
68111
68112 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68113             Bruno Haible  <bruno@clisp.org>
68114
68115         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68116         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68117         for AM_CPPFLAGS.
68118
68119 2006-04-23  Bruno Haible  <bruno@clisp.org>
68120
68121         * modules/copy-file: Depend on unistd.
68122         * modules/execute: Likewise.
68123         * modules/fatal-signal: Likewise.
68124         * modules/findprog: Likewise.
68125         * modules/mkdtemp : Likewise.
68126         * modules/pipe: Likewise.
68127         * modules/wait-process: Likewise.
68128
68129 2006-04-23  Bruno Haible  <bruno@clisp.org>
68130
68131         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68132         condition was already detected.
68133         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68134
68135 2006-04-23  Bruno Haible  <bruno@clisp.org>
68136
68137         * lib/copy-file.c: Include <unistd.h> unconditionally.
68138         * lib/execute.c: Likewise.
68139         * lib/fatal-signal.c: Likewise.
68140         * lib/findprog.c: Likewise.
68141         * lib/mkdtemp.c: Likewise.
68142         * lib/pipe.h: Likewise.
68143         * lib/pipe.c: Likewise.
68144         * lib/wait-process.h: Likewise.
68145
68146 2006-04-23  Bruno Haible  <bruno@clisp.org>
68147
68148         * gnulib-tool (func_usage): Fix --import description. Document
68149         --update.
68150         (func_import): Create temporary file in a temporary directory, if
68151         --dry-run is specified. Silence errors from 'grep' when there are no
68152         m4 files in $m4dir.
68153         (func_create_testdir): Silence errors from 'grep' when there are no
68154         m4 files in $m4dir.
68155         Reported by Karl Berry <karl@freefriends.org>.
68156
68157 2006-04-20  Bruno Haible  <bruno@clisp.org>
68158
68159         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68160         one argument, so that the code will be portable to Autoconf 2.60.
68161         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68162         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68163         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68164
68165 2006-04-19  Derek Price  <derek@ximbiot.com>
68166             Eric Blake  <ebb9@byu.net>
68167
68168         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68169         rather than "/full/path.h".  Update comment to match.  Shorten &
68170         generalize m4_translit call via AS_TR_CPP.
68171
68172 2006-04-19  Derek Price  <derek@ximbiot.com>
68173             Eric Blake  <ebb9@byu.net>
68174
68175         * lib/inttypes.h: Correct grammar in comment.
68176
68177 2006-04-18  Derek Price  <derek@ximbiot.com>
68178             Paul Eggert  <eggert@cs.ucla.edu>
68179
68180         * modules/inttypes: New file.
68181         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68182
68183 2006-04-18  Derek Price  <derek@ximbiot.com>
68184             Paul Eggert  <eggert@cs.ucla.edu>
68185
68186         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68187         New files.
68188
68189 2006-04-18  Derek Price  <derek@ximbiot.com>
68190             Paul Eggert  <eggert@cs.ucla.edu>
68191
68192         * lib/inttypes.h: New file.
68193         * lib/strtoimax.c: Assume <inttypes.h>.
68194
68195 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68196
68197         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68198         isn't mounted.  Problem reported by Kir Kolyshkin.
68199
68200 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68201
68202         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68203         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68204         Derek R. Price.
68205         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68206         implementation.
68207
68208 2006-04-12  Eric Blake  <ebb9@byu.net>
68209
68210         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68211         is now done automatically by the corresponding Autoconf macro.
68212
68213 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68214
68215         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68216         time_r.h.
68217
68218 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68219
68220         Merge regex changes from libc, removing some of our
68221         POSIX-conformance changes that were rejected and redoing them in a
68222         less-intrusive way.
68223
68224         * lib/regcomp.c (re_compile_internal, init_dfa):
68225         Length arg is now size_t, not Idx.  All uses changed.
68226         (peek_token): Forward decl now says internal_function.
68227         (__re_error_msgid, __re_error_msgid_idx):
68228         Now static rather than extern with attribute_hidden.
68229         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68230         For some reason libc prefers K&R style defns for external functions.
68231         (regerror) [!defined _LIBC]: Likewise.
68232         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68233         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68234         (build_range_exp, build_collating_symbol):
68235         Use K&R-style defn.
68236         (re_compile_fastmap): Use '\0' to memset, not 0.
68237         (utf8_sb_map): Make the calculations more obvious.
68238         (init_dfa, parse_bracket_exp, build_charclass_op):
68239         Call calloc and cast result, as glibc does.
68240         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68241         (build_range_exp, build_collating_symbol):
68242         Now internal functions.
68243
68244         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68245
68246         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68247         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68248         Don't depend on VMS; depend on __VMS instead, for POSIX
68249         namespace cleanness.
68250         (regoff_t): Define to ssize_t, not long int.
68251
68252         Remove the REG_ macros named below.  Instead, make the old names
68253         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68254         __USE_GNU_REGEX.
68255         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68256         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68257         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68258         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68259         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68260         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68261         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68262         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68263         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68264         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68265         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68266         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68267         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68268         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68269         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68270         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68271         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68272         (REG_NREGS):
68273         Remove.  All uses replaced by the old RE_* names.
68274         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68275         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68276         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68277         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68278         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68279         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68280         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68281         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68282         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68283         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68284         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68285         Don't bother having these macros be independent of each others'
68286         values, since they no longer exist in the POSIX name space.
68287
68288         Rename the following member names back to their old names,
68289         unless !__USE_GNU_REGEX.  All uses changed back.
68290         (buffer): Renamed from re_buffer.
68291         (allocated): Renamed from re_allocated.
68292         (used): Renamed from re_used.
68293         (syntax): Renamed from re_syntax.
68294         (fastmap): Renamed from re_fastmap.
68295         (translate): Renamed from re_translate.
68296         (can_be_null): Renamed from re_can_be_null.
68297         (regs_allocated): Renamed from re_regs_allocated.
68298         (fastmap_accurate): Renamed from re_fastmap_accurate.
68299         (no_sub): Renamed from re_no_sub.
68300         (not_bol): Renamed from re_not_bol.
68301         (not_eol): Renamed from re_not_eol.
68302         (newline_anchor): Renamed from re_newline_anchor.
68303         (num_regs): Renamed from rm_num_regs.
68304         (start): Renamed from rm_start.
68305         (end): Renamed from rm_end.
68306
68307         (free_state): Move up a bit.
68308
68309         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68310         #define to be empty.
68311         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68312         when that is what is intended.
68313         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68314         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68315         (MAX): New macro.
68316         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68317         All uses changed back to re_malloc, etc.  It's now the caller's
68318         responsibility to check for overflow; all callers changed.
68319         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68320         (re_x2nrealloc): Remove.
68321         (free_state): Remove decl.
68322
68323         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68324         (re_set_registers, re_exec):
68325         Use K&R-style defn.
68326
68327         2006-01-31  Roland McGrath  <roland@redhat.com>
68328
68329         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68330         Reported by Mike Frysinger <vapier@gentoo.org>.
68331
68332         2006-01-15  Andreas Jaeger  <aj@suse.de>
68333
68334         [BZ #1950]
68335         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68336         build_wcs_upper_buffer change.
68337         (build_wcs_upper_buffer): Change return type.
68338
68339         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68340
68341         * lib/regex_internal.h: Include <stdint.h> if available.
68342
68343         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68344
68345         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68346
68347         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68348
68349         * lib/regcomp.c: Adjust for changed secondary hash function.
68350
68351         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68352
68353         * lib/regex.h: Pretty printing.
68354         Clean up namespace a bit.
68355
68356         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68357
68358         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68359         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68360
68361         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68362                     Ulrich Drepper  <drepper@redhat.com>
68363
68364         [BZ #1302]
68365         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68366         changed.
68367         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68368
68369         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68370
68371         [BZ #281]
68372         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68373         * lib/regcomp.c: Remove unnecessary uses of
68374         unsigned RE_TRANSLATE_TYPE.
68375         * lib/regex_internal.h: Likewise.
68376         * lib/regex_internal.c: Likewise.
68377         * lib/regexec.c: Likewise.
68378         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68379
68380         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68381
68382         * lib/regexec.c (find_recover_state): Remove unnecessary
68383         initialization.
68384         (transit_state_bkref): Make DFA a const pointer.
68385         (get_subexp): Likewise.
68386         (check_arrival): Likewise.
68387         (update_cur_sifted_state): Likewise.
68388         (re_search_internal): Likewise.
68389         (prune_impossible_nodes): Likewise.
68390         (acquire_init_state_context): Likewise.
68391         (proceed_next_node): Likewise.
68392         (set_regs): Likewise.
68393         (free_fail_stack_return): Likewise.
68394         (check_arrival_expand_ecl): Mark DFA parameter as const.
68395         (check_arrival_expand_ecl_sub): Likewise.
68396         (check_subexp_limits): Likewise.
68397         (sub_epsilon_src_nodes):  Likewise.
68398         (add_epsilon_src_nodes):  Likewise.
68399         (merge_state_array): Likewise.
68400         (update_regs): Likewise.
68401         (build_trtable): Likewise.
68402         (sift_states_backward): Mark MCTX parameter as const.
68403         (build_sifted_states): Likewise.
68404         (update_cur_sifted_state): Likewise.
68405         (sift_states_mkref): Likewise.
68406         (check_arrival_expand_ecl): Mark eclosure as const.
68407         (check_dst_limits_calc_pos_1): Likewise.
68408         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68409         pointer.
68410
68411         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68412
68413         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68414         (transit_state_sb): Likewise.
68415         (transit_state_mb): Likewise.
68416         (sift_states_iter_mb): Likewise.
68417         (check_arrival_add_next_nodes): Likewise.
68418         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68419         [_LIBC] (re_search_2_stub): Use mempcpy.
68420
68421         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68422         mbrtowc for very simple UTF-8 case.
68423
68424         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68425         a pointer-to-const.
68426         (re_acquire_state_context): Likewise.
68427         * lib/regex_internal.h: Adjust prototypes.
68428
68429         * lib/regex.c: Prevent using C++ compilers.
68430
68431         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68432         (re_acquire_state_context): Likewise.
68433
68434 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68435
68436         * modules/regex (Depends-on): Add ssize_t.
68437
68438 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68439
68440         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68441         translation table.
68442
68443 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68444
68445         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68446
68447 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68448             Bruno Haible  <bruno@clisp.org>
68449
68450         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68451         <sys/types.h> and <inttypes.h>.
68452
68453 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68454
68455         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68456         `__error_t_defined', so argp.h will not typedef the former.
68457
68458 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68459
68460         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68461         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68462         glibc names.  Even if glibc is changed to conform to POSIX, the
68463         traditional names will be available anyway, since regex depends on
68464         the extensions module.  Also, fix a longstanding typo in the
68465         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68466         reported by Emanuele Giaquinta.  Also, change sense of cached
68467         variable, so that the message makes sense.
68468
68469 2006-03-24  Simon Josefsson  <jas@extundo.com>
68470
68471         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68472         including some doc fixes.
68473         (base64_encode_alloc): Fix +1 bug on allocation failures.
68474
68475 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68476
68477         * lib/base64.c (base64_encode): Do not read past end of array with
68478         unsanitized input on systems with CHAR_BIT > 8.
68479
68480 2006-03-24  Eric Blake  <ebb9@byu.net>
68481
68482         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68483
68484 2006-03-22  Karl Berry  <karl@gnu.org>
68485
68486         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68487         * config/srclistvars.sh (COREUTILS): new var.
68488
68489 2006-03-17  Jim Meyering  <jim@meyering.net>
68490
68491         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68492         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68493
68494 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68495
68496         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68497         no longer needs it.  Instead, check that regoff_t is as least
68498         as wide as ptrdiff_t.
68499
68500         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68501         so that our regex.h stays compatible with the installed regex.
68502         This is helpful for installers who configure --without-included-regex.
68503         Problem reported by Emanuele Giaquinta.
68504
68505 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68506
68507         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68508         Typedef to long int, not to off_, as POSIX will likely change
68509         in that direction.
68510
68511 2006-03-15  Eric Blake  <ebb9@byu.net>
68512
68513         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68514
68515 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68516
68517         * lib/argp-help.c (validate_uparams): Fix typo
68518         * lib/argp-parse.c (argp_default_options): Consistently begin help
68519         messages with a lowercase letter.
68520
68521 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68524         overrun buffers and shouldn't be used (much as gets shouldn't be
68525         used).
68526         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68527
68528 2006-03-08  Simon Josefsson  <jas@extundo.com>
68529
68530         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68531         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68532
68533 2006-03-08  Simon Josefsson  <jas@extundo.com>
68534
68535         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68536         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68537
68538 2006-03-08  Simon Josefsson  <jas@extundo.com>
68539
68540         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68541         signal that configure disabled the device.
68542
68543 2006-03-08  Simon Josefsson  <jas@extundo.com>
68544
68545         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68546         languages.
68547
68548 2006-03-07  Simon Josefsson  <jas@extundo.com>
68549
68550         * modules/getopt (Depends-on): Add unistd.
68551
68552         * modules/unistd: New file.
68553
68554 2006-03-07  Simon Josefsson  <jas@extundo.com>
68555
68556         * modules/gc-random: New file.
68557
68558 2006-03-07  Simon Josefsson  <jas@extundo.com>
68559
68560         * m4/unistd_h.m4: New file.
68561
68562 2006-03-07  Simon Josefsson  <jas@extundo.com>
68563
68564         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68565         test to be side-effect free by storing the result in the cache
68566         variable gl_cv_lib_readline, and moving the assignment of
68567         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68568         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68569
68570 2006-03-07  Simon Josefsson  <jas@extundo.com>
68571
68572         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68573         error on missing devices (the functions will return an error).
68574
68575         * m4/gc.m4: Move random stuff to gc-random.m4
68576
68577 2006-03-07  Simon Josefsson  <jas@extundo.com>
68578
68579         * lib/unistd_.h: New file.
68580
68581 2006-03-07  Simon Josefsson  <jas@extundo.com>
68582
68583         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68584
68585 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68586
68587         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68588         Problem reported by Juan Manuel Guerrero.
68589
68590 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68591
68592         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68593         the unistd module.
68594         * lib/getlogin_r.c: Likewise.
68595         * lib/getlogin_r.h: Likewise.
68596         * lib/glob.c: Likewise.
68597         * lib/pagealign_alloc.c: Likewise.
68598         * lib/unistd_.h: Remove; no longer needed.
68599
68600 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68601
68602         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68603         Add unistd.
68604         * modules/c-stack (Depends-on): Add unistd.
68605         * modules/getlogin_r: Likewise.
68606         * modules/glob: Likewise.
68607         * modules/pagealign_alloc: Likewise.
68608         * modules/unistd (Files): Remove lib/unistd_.h.
68609         (EXTRA_DIST): Remove.
68610         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68611         need unistd_.h.
68612         (MOSTLYCLEANFILES): Remove unistd.h-t.
68613
68614 2006-03-03  Simon Josefsson  <jas@extundo.com>
68615
68616         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68617
68618 2006-03-03  Simon Josefsson  <jas@extundo.com>
68619
68620         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68621         libidn and bison.
68622
68623 2006-03-03  Simon Josefsson  <jas@extundo.com>
68624
68625         * build-aux/maint.mk: Add indent target.
68626
68627 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68628
68629         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68630         our replacement poll.h in any case, to avoid a differing
68631         declaration from a system header.  Seen on AIX.
68632
68633 2006-03-01  Simon Josefsson  <jas@extundo.com>
68634
68635         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68636         <kasal@ucw.cz>.
68637
68638 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68639
68640         * modules/gettime (Depends-on): Add extensions module.
68641         * modules/nanosleep (Depends-on): Likewise.
68642         * modules/settime (Depends-on): Likewise.
68643
68644 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68647         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68648         pedantically.
68649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68650         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68651
68652         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68653         not "==".  Reported by Ralf Wildenhues.
68654
68655 2006-03-01  Karl Berry  <karl@gnu.org>
68656
68657         * doc/Copyright/request-*: new files, synced from gnuorg.
68658
68659 2006-03-01  Karl Berry  <karl@gnu.org>
68660
68661         * config/srclist.txt (Copyright/*): new entries.
68662
68663 2006-02-28  Simon Josefsson  <jas@extundo.com>
68664
68665         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68666
68667 2006-02-27  Simon Josefsson  <jas@extundo.com>
68668
68669         * lib/base64.h: Indent #define's.  From Jim Meyering
68670         <jim@meyering.net>.
68671
68672 2006-02-27  Jim Meyering  <jim@meyering.net>
68673
68674         Revert the change of 2006-02-24, so these files can continue
68675         to be sync'd from gettext.
68676         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68677         of `config.h'.
68678
68679 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68680
68681         * modules/intprops: New file.
68682         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68683         Add intprops.
68684         * modules/getloadavg (Files): Remove lib/intprops.h.
68685         (Depends-on): Add intprops.
68686         * modules/human: Likewise.
68687         * modules/inttostr: Likewise.
68688         * modules/openat: Likewise.
68689         * modules/sig2str: Likewise.
68690         * modules/userspec: Likewise.
68691         * modules/utimecmp: Likewise.
68692         * modules/xnanosleep: Likewise.
68693         * modules/xstrtol: Likewise.
68694
68695 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68696
68697         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68698         * modules/lock-tests (TESTS): Use $(EXEEXT).
68699         * modules/tls-tests: Likewise.
68700         * modules/argp-tests: Likewise.
68701         (check_PROGRAMS): New var, replacing...
68702         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68703
68704 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68705
68706         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68707         `config.h'.
68708
68709 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68710
68711         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68712
68713 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68714
68715         Sync from coreutils.
68716         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68717         gl_CHDIR_SAFER.
68718
68719 2006-02-22  Jim Meyering  <jim@meyering.net>
68720
68721         Sync from coreutils.
68722         * m4/chdir-safer.m4: New file.
68723
68724 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68725
68726         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68727         AT_FDCWD exceeds INT_MAX.
68728         * lib/openat.h (AT_FDCWD): Likewise.
68729
68730 2006-02-17  Eric Blake  <address@hidden>
68731
68732         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68733
68734 2006-02-16  Simon Josefsson  <jas@extundo.com>
68735
68736         * modules/getaddrinfo (Depends-on): Add sys_socket.
68737
68738 2006-02-15  Simon Josefsson  <jas@extundo.com>
68739
68740         * build-aux/maint.mk: Add dsyntax-check rule.
68741
68742 2006-02-15  Eric Blake  <ebb9@byu.net>
68743
68744         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68745         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68746         'present but cannot compile' warnings on cygwin.
68747         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68748         use ws2tcpip.h if sys/socket.h works.
68749         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68750         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68751
68752 2006-02-14  Simon Josefsson  <jas@extundo.com>
68753
68754         * modules/maintainer-makefile (Files): Rename.
68755
68756         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68757         and (the local) Makefile.cfg to maint-cfg.mk.
68758
68759         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68760         to the latter.
68761
68762         * modules/maintainer-makefile: New module.
68763
68764         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68765         severaly stripped to make it possible to build it up from scratch
68766         with reliable tests.
68767
68768         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68769         fixes to permit overriding the default actions when configure and
68770         makefile are not available.
68771
68772 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68773
68774         Sync from coreutils.
68775         * modules/lstat (Depends-on): Don't depend on xalloc.
68776         (License): Change from GPL to LGPL, since this is now simply a
68777         replacement for a libc function.
68778
68779 2006-02-14  Jim Meyering  <jim@meyering.net>
68780
68781         Sync from coreutils.
68782
68783         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68784         failure on deficient systems, and simplify gnulib lgpl dependencies.
68785         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68786         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68787
68788         * lib/xalloc-die.c: Remove unused definition of N_.
68789
68790 2006-02-14  Jim Meyering  <jim@meyering.net>
68791
68792         Sync from coreutils.
68793         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68794         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68795         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68796         double-quote uses of that variable, to accommodate the rare case in
68797         which getmntent is available in none of the libraries checked.  This
68798         happens at least on FreeBSD 5.0.
68799
68800 2006-02-13  Simon Josefsson  <jas@extundo.com>
68801
68802         * gnulib-tool (Usage): Fix --import, from
68803         karl@freefriends.org (Karl Berry).
68804
68805 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68806
68807         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68808
68809 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68810
68811         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68812         "autoupdate" on 2005-12-12.
68813
68814 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68815
68816         * modules/closeout (Depends-on): Remove atexit.
68817
68818 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68821         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68822
68823 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68824
68825         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68826         __EXTENSIONS__ if this causes compilation to fail.  Problem
68827         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68828         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68829
68830 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68831
68832         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68833         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68834         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68835         All uses changed.
68836
68837 2006-01-26  Simon Josefsson  <jas@extundo.com>
68838
68839         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68840         prototype is visible on mingw32.
68841
68842         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68843         for mingw32.
68844
68845         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68846         mingw32).
68847
68848 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68849
68850         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68851         attempt to open for write; this always fails, at least on POSIX
68852         hosts.  This reinstates the 2006-01-09 change, which was
68853         inadvertently removed.
68854
68855 2006-01-26  Bruno Haible  <bruno@clisp.org>
68856
68857         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68858         Reported by Paul Eggert.
68859
68860 2006-01-26  Bruno Haible  <bruno@clisp.org>
68861             Paul Eggert  <eggert@cs.ucla.edu>
68862
68863         * lib/stdbool_.h (_Bool)
68864         [(! (defined __cplusplus || defined __BEOS__)
68865           && !defined __GNUC__
68866           && !(defined __HP_cc || defined __xlc__
68867                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68868                || defined __sgi))]:
68869         #define to signed char in these cases too; this simplifies
68870         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68871         etc., separately) and makes it more conservative.
68872
68873 2006-01-25  Simon Josefsson  <jas@extundo.com>
68874
68875         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68876         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68877         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68878
68879 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68880
68881         * lib/argp-namefrob.h: Bugfix. Remove stray #
68882
68883 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68884
68885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68886         so that we test the test.
68887         Check for yet another HP-UX cc bug involving *bool |= bool.
68888
68889 2006-01-25  Karl Berry  <karl@gnu.org>
68890
68891         * config/srclist.txt (vasnprintf.c): sync lost.
68892
68893 2006-01-25  Jim Meyering  <jim@meyering.net>
68894
68895         Sync from the stable (b5) branch of coreutils:
68896
68897         * lib/fts.c (fts_children): Don't let close() clobber errno from
68898         failed fchdir().
68899
68900         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68901         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68902         a dangling symlink.  That can also happen at least for ELOOP.
68903         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68904         FYI, this bug predates the inclusion of fts.c in coreutils.
68905
68906         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68907         in their own block, so pre-c99 compilers don't object.
68908
68909         Avoid the double-free (first in fts_read, second in fts_close) that
68910         would occur when an `active' directory is made inaccessible (e.g.,
68911         via chmod a-x) during a traversal.
68912         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68913         before returning.  Reproduce this failure by
68914         mkdir -p a/b; cd a; chmod a-x . b
68915         Reported by Stavros Passas.
68916
68917 2006-01-25  Jim Meyering  <jim@meyering.net>
68918
68919         * lib/fileblocks.c: Remove more useless parentheses.
68920         * lib/readutmp.h: Likewise.
68921
68922 2006-01-25  Bruno Haible  <bruno@clisp.org>
68923
68924         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68925         warnings.
68926         Reported by Paul Eggert.
68927
68928 2006-01-25  Bruno Haible  <bruno@clisp.org>
68929
68930         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68931         rid of a trap command. For Solaris sh.
68932         Reported by Mark D. Baushke <mdb@gnu.org>.
68933
68934 2006-01-24  Simon Josefsson  <jas@extundo.com>
68935
68936         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68937         Bruno.
68938
68939 2006-01-24  Karl Berry  <karl@gnu.org>
68940
68941         * config/srclist.txt (argp-namefrob.h): sync lost.
68942
68943 2006-01-24  Jim Meyering  <jim@meyering.net>
68944
68945         * modules/openat (Files): Add lib/intprops.h.
68946         From Mark D. Baushke.
68947
68948 2006-01-24  Jim Meyering  <jim@meyering.net>
68949
68950         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68951         Reported by Mark D. Baushke.
68952
68953 2006-01-24  Jim Meyering  <jim@meyering.net>
68954
68955         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68956
68957 2006-01-24  Bruno Haible  <bruno@clisp.org>
68958
68959         * modules/strnlen (Maintainer): Change from glibc to all.
68960
68961 2006-01-24  Bruno Haible  <bruno@clisp.org>
68962
68963         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68964         Patch by Paul Eggert.
68965
68966 2006-01-24  Bruno Haible  <bruno@clisp.org>
68967
68968         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68969         already has it.
68970         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68971         2005-11-26.
68972
68973         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68974         'signed char' to avoid problems with the built-in _Bool type.
68975         Reported by Paul Eggert on 2005-11-26.
68976
68977 2006-01-24  Bruno Haible  <bruno@clisp.org>
68978
68979         * gnulib-tool (func_import): Avoid constructing complicated sed
68980         expressions inside backquote.
68981         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68982
68983 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68984
68985         These changes imported from libc.
68986         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68987         test and two separate function calls.
68988         * lib/strndup.c (__strndup): Add libc_hidden_def.
68989
68990 2006-01-23  Simon Josefsson  <jas@extundo.com>
68991
68992         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68993         Remove the test_*_SOURCES variable: automake infers it by default.
68994         * modules/tls-tests: Likewise.
68995
68996 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68997
68998         Work around porting bugs reported by Dieter in
68999         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69000         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69001         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69002         Include "getopt.h" first, to check interface.
69003         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69004         !HAVE_DECL_GETENV.
69005         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69006         (__strndup): Revert to K&R-style function dfns, the glibc style.
69007         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69008         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69009         Include strnlen.h first, to get prototype properly.
69010         (strnlen): Renamed from __strnlen.
69011         Remove weak alias.
69012
69013 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69014
69015         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69016
69017 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69018
69019         * config/srclist.txt: Adjust to reflect glibc reorganization.
69020         This affects only comments.
69021
69022 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69023
69024          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69025          Reported by Bruce Korb <bkorb@gnu.org>.
69026
69027 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69028
69029         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69030         to pacify gcc -Wswitch-default.
69031
69032 2006-01-22  Bruno Haible  <bruno@clisp.org>
69033
69034         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69035         temporary buffer for sprintf, take into account the precision also
69036         for 'd', 'i', 'u', 'o', 'x', 'X'.
69037
69038 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69039
69040         * modules/argp-tests: New module
69041         * tests/test-argp.c: New file
69042         * tests/test-argp-2.sh: New file
69043
69044 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69045
69046         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69047         (__argp_base_name): Removed
69048         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69049         typo.
69050         (__argp_base_name): Provide macro definition or extern declaration
69051         depending on the configuration
69052
69053 2006-01-20  Simon Josefsson  <jas@extundo.com>
69054
69055         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69056
69057 2006-01-20  Simon Josefsson  <jas@extundo.com>
69058
69059         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69060
69061 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69062
69063         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69064         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69065         Suggested by Bruno Haible.
69066
69067 2006-01-20  Karl Berry  <karl@gnu.org>
69068
69069         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69070         until changes propagate, I guess.
69071
69072 2006-01-19  Simon Josefsson  <jas@extundo.com>
69073
69074         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69075
69076 2006-01-19  Simon Josefsson  <jas@extundo.com>
69077
69078         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69079
69080 2006-01-19  Simon Josefsson  <jas@extundo.com>
69081
69082         * gnulib-tool: Set check_PROGRAMS.
69083
69084         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69085         modules/des-tests, modules/gc-arcfour-tests,
69086         modules/gc-arctwo-tests, modules/gc-des-tests,
69087         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69088         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69089         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69090         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69091         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69092         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69093         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69094         test_*_SOURCES.
69095
69096 2006-01-18  Simon Josefsson  <jas@extundo.com>
69097
69098         * modules/socklen (Depends-on): Depend on sys_socket.
69099
69100 2006-01-18  Simon Josefsson  <jas@extundo.com>
69101
69102         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69103         modules/des-tests, modules/gc-arcfour-tests,
69104         modules/gc-arctwo-tests, modules/gc-des-tests,
69105         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69106         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69107         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69108         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69109         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69110         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69111         $(EXEEXT) to automake TESTS variable, for mingw32.
69112
69113 2006-01-17  Simon Josefsson  <jas@extundo.com>
69114
69115         * modules/socklen (Include): Need sys/socket.h.
69116
69117 2006-01-17  Bruno Haible  <bruno@clisp.org>
69118
69119         * modules/ssize_t (Include): Add <sys/types.h>.
69120
69121 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69124         it's not portable and it doesn't work with cross-compiles.
69125         Problem reported by Bruno Haible.  Fix missing-$ typo in
69126         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69127         -zignore from being used with Sun's C compiler.
69128
69129 2006-01-12  Simon Josefsson  <jas@extundo.com>
69130
69131         * lib/base64.c: Fix warning, reported by Bruno Haible
69132         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69133
69134 2006-01-12  Bruno Haible  <bruno@clisp.org>
69135
69136         * modules/ldd: New file.
69137         * build-aux/ldd.sh.in: New file.
69138         * MODULES.html.sh (Support for building libraries and executables): Add
69139         ldd.
69140
69141 2006-01-12  Bruno Haible  <bruno@clisp.org>
69142
69143         * m4/ldd.m4: New file.
69144
69145 2006-01-12  Bruno Haible  <bruno@clisp.org>
69146
69147         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69148         endless loop while replacing $auxdir with build-aux.
69149
69150 2006-01-11  Simon Josefsson  <jas@extundo.com>
69151
69152         * lib/stdint_.h (SIZE_MAX): Add missing (.
69153
69154 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         Sync from coreutils.
69157         * lib/md5.c: Fix commentary typos.
69158         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69159         * lib/md5.h (__attribute__): Remove; unused.
69160         * lib/sha1.c: Fix commentary to match md5 better.
69161         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69162         so that we don't need to worry about alignment.  All uses changed.
69163         This merges the 2005-10-28 md5 change into sha1.
69164
69165 2006-01-11  Jim Meyering  <jim@meyering.net>
69166
69167         Sync from coreutils.
69168         * lib/md5.c (OP): Fix spacing.
69169
69170 2006-01-11  Bruno Haible  <bruno@clisp.org>
69171
69172         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69173         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69174         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69175
69176 2006-01-11  Bruno Haible  <bruno@clisp.org>
69177
69178         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69179         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69180         the "early" section as well.
69181
69182 2006-01-11  Bruno Haible  <bruno@clisp.org>
69183
69184         Avoid "ar: no archive members specified" error on MacOS X.
69185         * gnulib-tool (func_modules_add_dummy): New function.
69186         (func_import, func_create_testdir): Invoke it.
69187
69188 2006-01-11  Bruno Haible  <bruno@clisp.org>
69189
69190         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69191         with $auxdir in AC_CONFIG_FILES statements.
69192
69193 2006-01-11  Bruno Haible  <bruno@clisp.org>
69194
69195         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69196         Initialize also noinst_HEADERS to empty.
69197
69198 2006-01-11  Bruno Haible  <bruno@clisp.org>
69199
69200         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69201         variables.
69202         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69203         autoreconf.
69204
69205 2006-01-11  Bruno Haible  <bruno@clisp.org>
69206
69207         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69208         overridable by the user.
69209         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69210
69211 2006-01-10  Simon Josefsson  <jas@extundo.com>
69212
69213         * modules/sys_socket: New file.
69214
69215 2006-01-10  Simon Josefsson  <jas@extundo.com>
69216
69217         * m4/sys_socket_h.m4: New file.
69218
69219 2006-01-10  Simon Josefsson  <jas@extundo.com>
69220
69221         * lib/socket_.h: New file.
69222
69223 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69224
69225         * modules/readutmp (Maintainer): Add myself.
69226
69227 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69228
69229         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69230         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69231         People who are still concerned with buggy memcmp implementations
69232         can invoke gl_FUNC_MEMCMP themselves.
69233
69234 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69235
69236         * lib/regex_internal.h (BITSET_WORD_BITS):
69237         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69238         preprocessor mishandles large unsigned values as if they were signed.
69239         Problem reported by Claudio Fontana in
69240         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69241
69242 2006-01-10  Jim Meyering  <jim@meyering.net>
69243
69244         Avoid the double-free (first in fts_read, second in fts_close) that
69245         would occur when an `active' directory is made inaccessible (e.g.,
69246         via chmod a-x) during a traversal.
69247         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69248         before returning.  Reproduce this failure by
69249         mkdir -p a/b; cd a; chmod a-x . b
69250         Reported by Stavros Passas.
69251
69252         Sync from coreutils.
69253         * lib/sha1.c: Tweak grammar in a comment.
69254
69255 2006-01-10  Jim Meyering  <jim@meyering.net>
69256
69257         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69258         Patch by Joerg Sonnenberger.
69259
69260 2006-01-10  Bruno Haible  <bruno@clisp.org>
69261
69262         * modules/readutmp: Depend on module free.
69263         * modules/strtok_r: Depend on module restrict.
69264
69265 2006-01-10  Bruno Haible  <bruno@clisp.org>
69266
69267         * modules/gettext (configure.ac): Add an invocation of
69268         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69269
69270 2006-01-10  Bruno Haible  <bruno@clisp.org>
69271
69272         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69273         Reported by Werner Lemberg <wl@gnu.org>.
69274
69275 2006-01-10  Bruno Haible  <bruno@clisp.org>
69276
69277         * lib/localcharset.c: Update from GNU gettext.
69278
69279 2006-01-10  Bruno Haible  <bruno@clisp.org>
69280
69281         * lib/argp.h (__const): Remove macro. Use const instead.
69282         * lib/argp-fmtstream.h (__const): Likewise.
69283         * lib/glob_.h (__const): Remove macro.
69284         * lib/glob-libc.h: Use const instead of __const.
69285
69286 2006-01-10  Bruno Haible  <bruno@clisp.org>
69287
69288         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69289         variable.
69290         Needed to avoid an automake error regarding the 'gettext' module.
69291
69292 2006-01-09  Simon Josefsson  <jas@extundo.com>
69293
69294         * modules/inet_ntop (Depends-on): Add restrict.
69295
69296 2006-01-09  Simon Josefsson  <jas@extundo.com>
69297
69298         * modules/gc-rijndael-tests (License): Put under LGPL.
69299
69300         * modules/gc-des-tests (License): Likewise.
69301
69302         * modules/gc-arcfour-tests (License): Likewise.
69303
69304         * modules/gc-arctwo-tests (License): Likewise.
69305
69306         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69307
69308         * modules/gc-hmac-sha1-tests (Files): Likewise.
69309
69310         * modules/gc-hmac-md5-tests (License): Likewise.
69311
69312         * modules/gc-sha1-tests (License): Likewise.
69313
69314         * modules/gc-md5-tests (License): Likewise.
69315
69316         * modules/gc-md4-tests (License): Likewise.
69317
69318         * modules/gc-md2-tests (License): Likewise.
69319
69320         * modules/gc-tests (License): Likewise.
69321
69322         * modules/des-tests (License): Likewise.
69323
69324         * modules/md4-tests (License): Likewise.
69325
69326         * modules/md2-tests (License): Likewise.
69327
69328 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69329
69330         Sync from coreutils:
69331
69332         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69333         * modules/lib-ignore: New file.
69334         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69335         chdir-safer.m4, lchmod.m4.
69336         * modules/openat: Add mkdirat.c, openat-priv.h.
69337
69338 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69339
69340         Sync from coreutils.
69341         * m4/lib-ignore.m4: New file.
69342         * m4/lchmod.m4: New file.
69343
69344 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69345
69346         Sync from coreutils.
69347         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69348         for write access: POSIX says that must fail.
69349         * lib/fts.c (diropen): Likewise.
69350         * lib/save-cwd.c (save_cwd): Likewise.
69351         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69352         well, for minor improvements on hosts that lack O_DIRECTORY.
69353         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69354         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69355         Fall back on chown if open failed with EACCES.
69356
69357         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69358         Report an error at compile-time if only a 1-second nominal clock
69359         resolution is found.
69360
69361         * lib/lchmod.h: New file.
69362         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69363         (make_dir_parents): Use lchown rather than chown, and
69364         lchmod rather than chmod.
69365
69366         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69367         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69368         "proc" reported by n0dalus.
69369
69370         * lib/mountlist.c: Include <limits.h>.
69371         (dev_from_mount_options)
69372         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69373         New function.  It no longer assumes "dev=" has the System V meaning
69374         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69375         (read_file_system_list)
69376         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69377         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69378         dev= in that case.
69379
69380         * lib/posixtm.h (PDS_PRE_2000): New macro.
69381         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69382         allow_century.  All usages changed.  Reject dates outside the range
69383         1969-1999 if PDS_PRE_2000 is used.
69384
69385 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         Sync from coreutils.
69388         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69389         (Time of day items): Mention the possibility of leap seconds.
69390         Problem reported by Dr. David Alan Gilbert.
69391
69392 2006-01-09  Jim Meyering  <jim@meyering.net>
69393
69394         Sync from coreutils.
69395
69396         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69397
69398         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69399
69400         * lib/modechange.c (mode_compile): Reject an invalid mode string
69401         that starts with an octal digit.  From Andreas Gruenbacher.
69402
69403         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69404         and dup to open_safer and dup_safer, respectively.
69405         (openat_permissive): Fix typo in comment.
69406
69407         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69408         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69409         (_): Remove; no longer needed.
69410         (openat): Renamed from rpl_openat; no need for rpl_openat
69411         since openat.h renames openat for us.
69412         Replace most of the body with a call to openat_permissive,
69413         to avoid duplicate code.
69414         Port to (probably hypothetical) environments were mode_t is
69415         wider than int.
69416         (openat_permissive): Require mode arg, so that we can check
69417         types better.  Put it just after flags.  Change cwd failure
69418         indicator from pointer-to-bool to pointer-to-errno-value.
69419         All callers changed.
69420         Invoke openat_save_fail and/or openat_restore_fail if
69421         cwd_errno is null, so that openat can call us.
69422         (openat_permissive, fdopendir, fstatat, unlinkat):
69423         Simplify errno handling to avoid some duplicate code,
69424         as it's OK to set errno on success.
69425         * lib/openat.h: Revamp code so that function macros depend on
69426         __OPENAT_PREFIX only, not also on AT_FDCWD.
69427         (openat_ro): Remove.  Caller changed to use openat_permissive.
69428         (openat_permissive): Now a macro, if not a function.
69429         (openat_restore_fail, openat_save_fail): Now always functions,
69430         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69431
69432         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69433         and openat.c.
69434         * lib/mkdirat.c: Include openat-priv.h.
69435         Remove definitions of macros defined therein.
69436         * lib/openat.c: Likewise.
69437
69438         * lib/mkdirat.c (mkdirat): New file and function.
69439         * lib/openat.h (mkdirat): Declare.
69440
69441         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69442
69443         * lib/openat.h (openat_permissive): Declare.
69444         (openat_ro): Define.
69445
69446         * lib/openat.c (EXPECTED_ERRNO): New macro.
69447         (openat_permissive): New function -- used in remove.c rewrite.
69448         (all functions): Set errno just before returning, only if there
69449         was an actual failure.
69450         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69451
69452         Emulate openat-family functions using Linux's procfs, if possible.
69453         Idea and some code based on Ulrich Drepper's glibc changes.
69454
69455         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69456         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69457         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69458         before falling back on save_cwd and restore_cwd.
69459         (fdopendir, fstatat, unlinkat): Likewise.
69460
69461         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69462         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69463
69464         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69465         as second argument to va_arg.  Otherwise, some versions of gcc
69466         warn that `if this code is reached, the program will abort'.
69467
69468 2006-01-09  Jim Meyering  <jim@meyering.net>
69469
69470         Sync from coreutils.
69471         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69472         Require openat-priv.h.
69473
69474 2006-01-09  Bruno Haible  <bruno@clisp.org>
69475
69476         * modules/strnlen (Include): Use strnlen.h.
69477
69478 2006-01-09  Bruno Haible  <bruno@clisp.org>
69479
69480         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69481
69482 2006-01-09  Bruno Haible  <bruno@clisp.org>
69483
69484         * lib/sysexit_.h (EX_OK): New macro.
69485         Suggested by Martin Lambers <marlam@marlam.de>.
69486
69487 2006-01-09  Bruno Haible  <bruno@clisp.org>
69488
69489         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69490         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69491
69492 2006-01-09  Bruno Haible  <bruno@clisp.org>
69493
69494         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69495         numbers.
69496
69497 2006-01-09  Bruno Haible  <bruno@clisp.org>
69498
69499         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69500         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69501         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69502         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69503
69504 2006-01-09  Bruno Haible  <bruno@clisp.org>
69505
69506         * build-aux/javacomp.sh.in: New file, moved from lib/.
69507         * modules/javacomp-script (Files): Update.
69508         (configure.ac): Add AC_CONFIG_FILES invocation.
69509         (EXTRA_DIST): Remove variable.
69510
69511         * build-aux/javaexec.sh.in: New file, moved from lib/.
69512         * modules/javaexec (Files): Update.
69513         (configure.ac): Add AC_CONFIG_FILES invocation.
69514         (EXTRA_DIST): Remove javaexec.sh.in.
69515
69516         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69517         * modules/csharpcomp-script (Files): Update.
69518         (configure.ac): Add AC_CONFIG_FILES invocation.
69519         (EXTRA_DIST): Remove variable.
69520
69521         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69522         * modules/csharpexec (Files): Update.
69523         (configure.ac): Add AC_CONFIG_FILES invocation.
69524         (EXTRA_DIST): Remove csharpexec.sh.in.
69525
69526 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69527
69528         Sync from coreutils.
69529
69530         Add POSIX ACL support
69531         * lib/acl.h (copy_acl, set_acl): Add declarations.
69532         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69533         systems other than Linux.
69534         (chmod_or_fchmod): New function: use fchmod when possible,
69535         and chmod otherwise.
69536         (file_has_acl): Add a POSIX ACL implementation, with a
69537         Linux-specific subcase.
69538         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69539         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69540         acls are unsupported.
69541         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69542         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69543         are unsupported.
69544
69545 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69546
69547         Sync from coreutils.
69548         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69549
69550 2006-01-07  Bruno Haible  <bruno@clisp.org>
69551
69552         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69553         gl_EARLY.
69554
69555 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69556
69557         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69558         Problem reported for Mingw by Mark Junker.
69559
69560 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         * README: Gnulib normally doesn't generate a tarball.
69563
69564 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69565
69566         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69567         long int, not int, for nanosecond counts, so that people who are
69568         used to POSIX struct timespec won't be surprised.  Reported by Jim
69569         Meyering.
69570
69571 2005-12-28  Bruno Haible  <bruno@clisp.org>
69572
69573         * build-aux/config.rpath: Update from GNU gettext.
69574
69575 2005-12-16  Jim Meyering  <jim@meyering.net>
69576
69577         * modules/fprintftime: New module.
69578         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69579
69580 2005-12-16  Jim Meyering  <jim@meyering.net>
69581
69582         * m4/fprintftime.m4: New file.
69583
69584 2005-12-16  Jim Meyering  <jim@meyering.net>
69585
69586         * lib/fprintftime.c, lib/fprintftime.h: New files.
69587
69588 2005-12-15  Simon Josefsson  <jas@extundo.com>
69589
69590         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69591         new m4/socklen.m4.
69592
69593 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69594
69595         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69596         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69597
69598 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69599
69600         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69601         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69602         struct uparams is valid. Fall back to the default values if it is
69603         not.
69604
69605 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69606
69607         * modules/argp (Files): Add argp-pin.c
69608         (Depends-on): dirname
69609         (lib_SOURCES): Add argp-pin.c
69610
69611 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69612
69613         * m4/argp.m4:  Check if program_invocation_name and
69614         program_invocation_short_name are declared and define appropriate
69615         macros if they are not.
69616
69617 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69618
69619         * lib/argp-help.c (__argp_base_name): New function
69620         (__argp_short_program_name): Rewrite using __argp_base_name
69621         * lib/argp-namefrob.h: Define program_invocation_name and
69622         program_invocation_short_name if requested
69623         (__argp_base_name): Add prototype
69624         * lib/argp-parse.c (argp_def): Use gettext wrappers
69625         (argp_default_parser): Use __argp_base_name
69626         * lib/argp-pin.c: New file. Defines program_invocation_name and
69627         program_invocation_short_name on systems that lack them.
69628
69629 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69630
69631         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69632         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69633         porting problem reported by Georg Schwarz in
69634         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69635
69636 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69637
69638         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69639         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69640         porting problem reported by Georg Schwarz in
69641         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69642
69643 2005-12-05  Bruno Haible  <bruno@clisp.org>
69644
69645         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69646         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69647         Reported by Mark Junker <mjscod@gmx.de>.
69648
69649 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69652         Use implementation from Albert Chin, with some
69653         comments/corrections by Stepan Kasal and myself.
69654
69655 2005-12-02  Bruno Haible  <bruno@clisp.org>
69656
69657         * gnulib-tool (func_import): Accept GPLed build tool modules when
69658         --lgpl is given.
69659         * modules/csharpcomp-script: New file.
69660         * modules/csharpcomp: Depend on it.
69661         * modules/javacomp-script: New file.
69662         * modules/javacomp: Depend on it.
69663         Suggested by Simon Josefsson.
69664
69665 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69666
69667         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69668         statement, to work around an HP-UX 10.20 compiler bug reported by
69669         Peter O'Gorman.
69670
69671 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69672
69673         * modules/savedir (Depends-on): Add openat.
69674
69675 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69676
69677         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69678         (uintmax_t) [defined uintmax_t]: Do not declare.
69679         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69680         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69681         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69682         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69683         sake of portability to weird hosts that C allows (though we don't
69684         know of any practical examples).
69685
69686         * lib/savedir.h (fdsavedir): New decl.
69687         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69688         contains most of the former guts of savedir.
69689         (savedir): Use savedirstream.
69690         Include "openat.h".
69691
69692 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69693
69694         * modules/obstack (Files): Add m4/ulonglong.m4.
69695         Problem reported by Davide Angelocola.
69696
69697 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69698
69699         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69700         coreutils no longer futzes with rounding modes.
69701
69702 2005-11-14  Jim Meyering  <jim@meyering.net>
69703
69704         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69705         replacement of mkstemp.
69706
69707 2005-11-10  Simon Josefsson  <jas@extundo.com>
69708
69709         * lib/readline.c: Remove EOL.
69710
69711 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69712
69713         * modules/gethrxtime (Depends-on): Add gettime.
69714
69715 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69716
69717         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69718         or gettimeofday; no longer needed.
69719
69720 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69723         time business.
69724         (gethrxtime) [! (HAVE_NANOUPTIME
69725         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69726         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69727         our own approximation.
69728
69729 2005-11-08  Eric Blake  <ebb9@byu.net>
69730
69731         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69732
69733 2005-11-08  Eric Blake  <ebb9@byu.net>
69734
69735         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69736
69737 2005-11-04  Bruno Haible  <bruno@clisp.org>
69738
69739         * gnulib-tool: Implement --update mode.
69740
69741 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69742
69743         Fix porting problem reported by Theodoros V. Kalamatianos.
69744         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69745         Don't assume that futimes failing means we must fail.
69746
69747 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69748
69749         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69750         variables to suggest the intended function of the PATH_MAX check.
69751
69752 2005-10-30  Kean Johnston  <jkj@sco.com>
69753
69754         Trivial changes to support SCO systems.
69755         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69756         as PATH_MAX.
69757         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69758         where __ptr is null when no I/O is pending.
69759
69760 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69761
69762         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69763         leave errno alone.  Problem reported by Dmitry V. Levin.
69764
69765 2005-10-28  Simon Josefsson  <jas@extundo.com>
69766
69767         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69768         Test more.
69769
69770         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69771
69772         * modules/md2, modules/md2-tests: New files.
69773
69774 2005-10-28  Simon Josefsson  <jas@extundo.com>
69775
69776         * m4/inet_ntop.m4: More tests.
69777
69778         * m4/gc-md2.m4, md2.m4: New file.
69779
69780 2005-10-28  Simon Josefsson  <jas@extundo.com>
69781
69782         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69783         "restrict" keywords, as per POSIX.  Protect the function
69784         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69785         Don't use K&R prototypes.  Check the sprintf return values.
69786         Re-define EAFNOSUPPORT if not present.  Indent.
69787
69788         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69789         suggested by Bruno Haible <bruno@clisp.org>.
69790
69791         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69792
69793         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69794
69795         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69796         libgcrypt).
69797
69798         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69799
69800         * lib/md2.h, lib/md2.c: New files.
69801
69802 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69805         errno alone.  Problem reported by Frederic Jolliton.
69806
69807 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69808
69809         * modules/verify (License): Change from GPL to LGPL.  This is a
69810         tiny module and there are apparently near-equivalents that are
69811         under the BSD license.
69812
69813 2005-10-24  Simon Josefsson  <jas@extundo.com>
69814
69815         * modules/sha1: Relicense to LGPL.
69816
69817 2005-10-24  Simon Josefsson  <jas@extundo.com>
69818
69819         * lib/md4.h: Shrink buffer size, now that we changed the type.
69820
69821 2005-10-23  Simon Josefsson  <jas@extundo.com>
69822
69823         * gnulib-tool (func_import): Fix --tests-base.
69824
69825 2005-10-22  Simon Josefsson  <jas@extundo.com>
69826
69827         * modules/arcfour (Depends-on): Need stdint.
69828
69829 2005-10-22  Simon Josefsson  <jas@extundo.com>
69830
69831         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69832         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69833
69834 2005-10-22  Simon Josefsson  <jas@extundo.com>
69835
69836         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69837         suggested by Bruno Haible <bruno@clisp.org>.
69838
69839 2005-10-22  Simon Josefsson  <jas@extundo.com>
69840
69841         * lib/crc.h: Include stddef.h, for size_t.
69842
69843 2005-10-22  Simon Josefsson  <jas@extundo.com>
69844
69845         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69846         arcfour_context struct (simplify test vector testing in GNU
69847         Shishi).
69848
69849 2005-10-21  Simon Josefsson  <jas@extundo.com>
69850
69851         * modules/des, modules/des-tests: New files.
69852
69853         * modules/gc-des, modules/gc-des-tests: New files.
69854
69855         * tests/test-des.c, tests/test-gc-des.c: New file.
69856
69857 2005-10-21  Simon Josefsson  <jas@extundo.com>
69858
69859         * modules/arctwo, modules/arctwo-tests: New files.
69860
69861         * tests/test-arctwo.c: New file.
69862
69863         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69864
69865         * tests/test-gc-arctwo.c: New file.
69866
69867 2005-10-21  Simon Josefsson  <jas@extundo.com>
69868
69869         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69870         Bruno Haible <bruno@clisp.org>.
69871
69872         * m4/gc-des.m4: New file.
69873
69874 2005-10-21  Simon Josefsson  <jas@extundo.com>
69875
69876         * m4/arctwo.m4: New file.
69877
69878         * m4/gc-arctwo.m4: New file.
69879
69880 2005-10-21  Simon Josefsson  <jas@extundo.com>
69881
69882         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69883         block.
69884
69885 2005-10-21  Simon Josefsson  <jas@extundo.com>
69886
69887         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69888         <bruno@clisp.org>.
69889
69890         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69891
69892         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69893         Bruno Haible <bruno@clisp.org>.
69894
69895         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69896         <bruno@clisp.org>.
69897
69898 2005-10-21  Simon Josefsson  <jas@extundo.com>
69899
69900         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69901
69902 2005-10-21  Simon Josefsson  <jas@extundo.com>
69903
69904         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69905
69906 2005-10-21  Simon Josefsson  <jas@extundo.com>
69907
69908         * lib/des.h, lib/des.c: New files.
69909
69910         * lib/gc-gnulib.c: Support DES.c
69911
69912 2005-10-21  Simon Josefsson  <jas@extundo.com>
69913
69914         * lib/arctwo.h, lib/arctwo.c: New files.
69915
69916         * lib/gc-gnulib.c: Support ARCTWO.
69917
69918 2005-10-21  Simon Josefsson  <jas@extundo.com>
69919
69920         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69921         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69922
69923 2005-10-21  Simon Josefsson  <jas@extundo.com>
69924
69925         * gnulib-tool (func_import, func_create_testdir): Define automake
69926         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69927         Makefile.am snippet),
69928         suggested by Bruno Haible <bruno@clisp.org>.
69929
69930         * modules/gc (Makefile.am): Use it.
69931
69932 2005-10-21  Bruno Haible  <bruno@clisp.org>
69933
69934         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69935         patch.
69936
69937 2005-10-19  Simon Josefsson  <jas@extundo.com>
69938
69939         * tests/test-gc-rijndael.c: New file.
69940
69941         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69942
69943 2005-10-19  Simon Josefsson  <jas@extundo.com>
69944
69945         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69946         interface too.
69947
69948 2005-10-19  Simon Josefsson  <jas@extundo.com>
69949
69950         * tests/test-gc-arcfour.c: New file.
69951
69952         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69953
69954 2005-10-19  Simon Josefsson  <jas@extundo.com>
69955
69956         * modules/gc-md4, modules/gc-md4-tests: New file.
69957
69958         * tests/test-gc-md4.c: New file.
69959
69960 2005-10-19  Simon Josefsson  <jas@extundo.com>
69961
69962         * m4/gc-md4.m4: New file.
69963
69964 2005-10-19  Simon Josefsson  <jas@extundo.com>
69965
69966         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69967         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69968         <kasal@ucw.cz>.
69969
69970 2005-10-19  Simon Josefsson  <jas@extundo.com>
69971
69972         * m4/gc-arcfour.m4: New file.
69973
69974         * m4/gc-rijndael.m4: New file.
69975
69976 2005-10-19  Simon Josefsson  <jas@extundo.com>
69977
69978         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69979
69980 2005-10-19  Simon Josefsson  <jas@extundo.com>
69981
69982         * lib/gc-gnulib.c: Support ARCFOUR.
69983
69984 2005-10-19  Simon Josefsson  <jas@extundo.com>
69985
69986         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69987         support.
69988
69989         * lib/gc.h: Add ECB enum type.
69990
69991         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69992
69993 2005-10-18  Simon Josefsson  <jas@extundo.com>
69994
69995         * tests/test-md5.c: New file.
69996
69997         * modules/md5-tests: New file.
69998
69999 2005-10-18  Simon Josefsson  <jas@extundo.com>
70000
70001         * tests/test-md4.c: New file.
70002
70003         * modules/md4, modules/md4-tests: New files.
70004
70005 2005-10-18  Simon Josefsson  <jas@extundo.com>
70006
70007         * m4/md4.m4: New file.
70008
70009 2005-10-18  Simon Josefsson  <jas@extundo.com>
70010
70011         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70012
70013 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70014
70015         * gnulib-tool (func_create_testdir): Omit the second check whether
70016         BUILT_SOURCES in nonempty.
70017
70018 2005-10-17  Simon Josefsson  <jas@extundo.com>
70019
70020         * tests/test-rijndael.c: New file.
70021
70022 2005-10-17  Simon Josefsson  <jas@extundo.com>
70023
70024         * modules/sha1: Depend on stdint instead of md5.
70025
70026         * modules/md5: Depend on stdint, remove uint32_t.
70027
70028 2005-10-17  Simon Josefsson  <jas@extundo.com>
70029
70030         * modules/gc-sha1-tests: New file.
70031
70032         * tests/test-gc-sha1.c: New file.
70033
70034 2005-10-17  Simon Josefsson  <jas@extundo.com>
70035
70036         * m4/md5.m4: Remove call to uint32_t.m4.
70037
70038 2005-10-17  Simon Josefsson  <jas@extundo.com>
70039
70040         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70041
70042         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70043         md5.h.
70044
70045         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70046
70047         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70048
70049 2005-10-17  Simon Josefsson  <jas@extundo.com>
70050
70051         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70052
70053 2005-10-17  Simon Josefsson  <jas@extundo.com>
70054
70055         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70056
70057 2005-10-17  Simon Josefsson  <jas@extundo.com>
70058
70059         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70060
70061         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70062
70063 2005-10-17  Bruno Haible  <bruno@clisp.org>
70064
70065         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70066         that it can also be used in a test.
70067
70068 2005-10-16  Bruno Haible  <bruno@clisp.org>
70069
70070         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70071         TESTS_ENVIRONMENT, so that individual tests can augment it.
70072
70073         * gnulib-tool (func_create_testdir): Use an intermediate target for
70074         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70075         macros, like $(ALLOCA_H), which cannot be passed through the command
70076         line.
70077
70078 2005-10-15  Simon Josefsson  <jas@extundo.com>
70079
70080         * modules/rijndael-tests: New file.
70081
70082         * modules/rijndael: New file.
70083
70084 2005-10-15  Simon Josefsson  <jas@extundo.com>
70085
70086         * m4/rijndael.m4: New file.
70087
70088 2005-10-15  Simon Josefsson  <jas@extundo.com>
70089
70090         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70091
70092         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70093
70094 2005-10-14  Simon Josefsson  <jas@extundo.com>
70095
70096         * tests/test-arcfour.c: New file.
70097
70098         * modules/arcfour, modules/arcfour-tests: New files.
70099
70100 2005-10-14  Simon Josefsson  <jas@extundo.com>
70101
70102         * m4/arcfour.m4: New file.
70103
70104 2005-10-14  Simon Josefsson  <jas@extundo.com>
70105
70106         * lib/arcfour.h, lib/arcfour.c: New files.
70107
70108 2005-10-14  Roland McGrath  <roland@redhat.com>
70109
70110         Import from libc.  [BZ #1331]
70111         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70112         macro argument.
70113         Reported by Matej Vela <vela@debian.org>.
70114
70115 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70116
70117         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70118         include <wchar.h>; no longer needed.
70119
70120 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70121
70122         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70123
70124 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70125         and  Ulrich Drepper  <drepper@redhat.com>
70126
70127         Import from libc.
70128         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70129         instead of inline stream orientation test and two separate
70130         function calls.  Pay no attention to USE_IN_LIBIO.
70131
70132 2005-10-13  Simon Josefsson  <jas@extundo.com>
70133
70134         * modules/gc-hmac-md5-tests: New file.
70135
70136         * tests/test-gc-hmac-sha1.c: New file.
70137
70138         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70139
70140         * modules/gc-hmac-md5-tests: New file.
70141
70142         * tests/test-gc-md5.c: New file.
70143
70144         * modules/gc-md5-tests: New file.
70145
70146 2005-10-13  Simon Josefsson  <jas@extundo.com>
70147
70148         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70149         Move memory allocation outside of loop.
70150
70151 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70152
70153         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70154         intermediate directory is in a read-only file system.  Problem
70155         reported by Eric Blake.
70156
70157 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70158
70159         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70160
70161 2005-10-12  Simon Josefsson  <jas@extundo.com>
70162
70163         * tests/test-hmac-sha1.c: New file.
70164
70165         * modules/hmac-sha1-tests: New file.
70166
70167         * modules/hmac-sha1: New file.
70168
70169 2005-10-12  Simon Josefsson  <jas@extundo.com>
70170
70171         * modules/gc-sha1: New file.
70172
70173 2005-10-12  Simon Josefsson  <jas@extundo.com>
70174
70175         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70176
70177         * tests/test-gc-pbkdf2-sha1.c: New file.
70178
70179 2005-10-12  Simon Josefsson  <jas@extundo.com>
70180
70181         * modules/gc-md5, modules/gc-hmac-md5: New files.
70182
70183         * modules/gc (Files): Remove md5, memxor and hmac files.
70184
70185 2005-10-12  Simon Josefsson  <jas@extundo.com>
70186
70187         * m4/gc-pbkdf2-sha1.m4: New file.
70188
70189         * m4/gc-hmac-sha1.m4: New file.
70190
70191         * m4/gc-sha1: New file.
70192
70193         * m4/hmac-sha1.m4: New file.
70194
70195 2005-10-12  Simon Josefsson  <jas@extundo.com>
70196
70197         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70198
70199         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70200
70201 2005-10-12  Simon Josefsson  <jas@extundo.com>
70202
70203         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70204         suggested by Bruno Haible <bruno@clisp.org>.
70205
70206 2005-10-12  Simon Josefsson  <jas@extundo.com>
70207
70208         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70209
70210 2005-10-12  Simon Josefsson  <jas@extundo.com>
70211
70212         * lib/gc-pbkdf2-sha1.c: New file.
70213
70214         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70215
70216 2005-10-12  Simon Josefsson  <jas@extundo.com>
70217
70218         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70219
70220         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70221
70222 2005-10-12  Simon Josefsson  <jas@extundo.com>
70223
70224         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70225         GC_USE_HMAC_MD5, respectively.
70226
70227         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70228         (gc_md5): Fix typo.
70229
70230         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70231
70232         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70233
70234         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70235
70236 2005-10-12  Bruno Haible  <bruno@clisp.org>
70237
70238         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70239         Reported by Stepan Kasal <kasal@ucw.cz>.
70240
70241 2005-10-11  Simon Josefsson  <jas@extundo.com>
70242
70243         * tests/test-crc.c: New file.
70244
70245         * modules/crc, modules/crc-tests: New files.
70246
70247 2005-10-11  Simon Josefsson  <jas@extundo.com>
70248
70249         * m4/crc.m4: New file.
70250
70251 2005-10-11  Simon Josefsson  <jas@extundo.com>
70252
70253         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70254
70255         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70256
70257         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70258
70259 2005-10-11  Simon Josefsson  <jas@extundo.com>
70260
70261         * lib/crc.h, lib/crc.c: New files.
70262
70263         * lib/gc.h (gc_hash_buffer): Add doc.
70264
70265 2005-10-11  Bruno Haible  <bruno@clisp.org>
70266
70267         * modules/c-strcasestr: New file.
70268         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70269
70270 2005-10-11  Bruno Haible  <bruno@clisp.org>
70271
70272         * modules/c-strcase: New file.
70273         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70274
70275 2005-10-11  Bruno Haible  <bruno@clisp.org>
70276
70277         * lib/strcasecmp.c: Include limits.h.
70278         (strcasecmp): Avoid integer overflow on exotic platforms.
70279         * lib/strncasecmp.c: Include limits.h.
70280         (strncasecmp): Avoid integer overflow on exotic platforms.
70281         Reported by Paul Eggert.
70282
70283 2005-10-11  Bruno Haible  <bruno@clisp.org>
70284
70285         * lib/c-strcasestr.h: New file, from GNU gettext.
70286         * lib/c-strcasestr.c: New file, from GNU gettext.
70287
70288 2005-10-11  Bruno Haible  <bruno@clisp.org>
70289
70290         * lib/c-strcase.h: New file, from GNU gettext.
70291         * lib/c-strcasecmp.c: New file, from GNU gettext.
70292         * lib/c-strncasecmp.c: New file, from GNU gettext.
70293
70294 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70295
70296         * modules/mempcpy (License): GPL -> LGPL.
70297         * modules/strchrnul (License): Likewise.
70298         * modules/sysexits (License): Likewise.
70299
70300 2005-10-08  Simon Josefsson  <jas@extundo.com>
70301
70302         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70303
70304 2005-10-07  Simon Josefsson  <jas@extundo.com>
70305
70306         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70307
70308 2005-10-06  Simon Josefsson  <jas@extundo.com>
70309
70310         * tests/test-hmac-md5.c: New file.
70311
70312         * modules/hmac-md5-tests: New file.
70313
70314         * modules/hmac-md5: New file.
70315
70316 2005-10-06  Simon Josefsson  <jas@extundo.com>
70317
70318         * m4/hmac-md5.m4: New file.
70319
70320         * m4/memxor.m4: Require gl_C_RESTRICT.
70321
70322 2005-10-06  Simon Josefsson  <jas@extundo.com>
70323
70324         * lib/memxor.c (memxor): Avoid casts and warnings.
70325
70326 2005-10-06  Simon Josefsson  <jas@extundo.com>
70327
70328         * lib/hmac-md5.c: New file.
70329
70330         * lib/hmac.h: New file.
70331
70332 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70335         promotes to int, not unsigned int, to catch the AIX 5.3
70336         compiler bug.
70337
70338 2005-10-05  Simon Josefsson  <jas@extundo.com>
70339
70340         * modules/memxor: New file.
70341
70342         * modules/iconv (Files): Move config.rpath to havelib, it is used
70343         there.
70344
70345         * modules/havelib (Files): Add config.rpath.
70346
70347 2005-10-05  Simon Josefsson  <jas@extundo.com>
70348
70349         * m4/memxor.m4: New file.
70350
70351 2005-10-05  Simon Josefsson  <jas@extundo.com>
70352
70353         * lib/memxor.c (memxor): Fix compiler error.
70354
70355         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70356         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70357
70358         * lib/memxor.h, lib/memxor.c: New files.
70359
70360         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70361         we assume all systems have it, suggested by Jim Meyering
70362         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70363         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70364         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70365         same reasons.
70366
70367 2005-10-05  Simon Josefsson  <jas@extundo.com>
70368
70369         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70370
70371 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70372
70373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70374         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70375         needed, since the source code now assumes these .h files.
70376
70377 2005-10-05  Derek Price  <derek@ximbiot.com>
70378
70379         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70380
70381 2005-10-05  Bruno Haible  <bruno@clisp.org>
70382
70383         * modules/stdint (License): Change to LGPL.
70384
70385 2005-10-04  Simon Josefsson  <jas@extundo.com>
70386
70387         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70388         D. Baushke" <mdb@gnu.org>.
70389
70390 2005-10-04  Bruno Haible  <bruno@clisp.org>
70391
70392         * lib/verify.h (verify_true): Provide alternative definition for C++.
70393
70394 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70395
70396         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70397         (SSIZE_MAX): New macro, if not already defined.
70398         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70399         than 2 GiB.
70400
70401 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70402
70403         Sync from coreutils.
70404         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70405         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70406         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70407         ULLONG_MAX doesn't work with 2.7.2.1.
70408
70409 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70410
70411         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70412         From Ben Pfaff.
70413
70414         * modules/exclude (Depends-on): Depend on verify.
70415         * modules/strtoimax (Depends-on): Likewise.
70416         * modules/utimecmp (Depends-on): Likewise.
70417
70418 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70419
70420         * lib/exclude.c: Include verify.h.
70421         (verify): Remove.  All callers changed to use verify.h's version.
70422         * lib/strtoimax.c: Likewise.
70423         * lib/utimecmp.c: Likewis.e
70424
70425         Sync from coreutils.
70426         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70427         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70428         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70429         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70430         bother returning ENOSYS if settimeofday or stime fails; just let
70431         them return whatever errno they want to return.
70432         * lib/utimens.c: Include unistd.h, for dup2.
70433         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70434         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70435
70436 2005-10-02  Jim Meyering  <jim@meyering.net>
70437
70438         Sync from coreutils.
70439         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70440         from glibc-2.2.5 that fails for read-only files.
70441
70442 2005-10-02  Jim Meyering  <jim@meyering.net>
70443
70444         Sync from coreutils.
70445         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70446         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70447         `#if HAVE_CONFIG_H'.
70448         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70449         Remove AT_FDCWD test.
70450         Do not consume the fd unless successful.
70451         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70452         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70453         block, so that we don't even try to compile it if settimeofday is
70454         available.  This works around a compilation failure on OSF1 V5.1,
70455         due to stime requiring a `long int*' while tv_sec is `int'.
70456
70457 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70458
70459         Sync from coreutils.
70460         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70461         against `yes', rather than just testing for nonempty.
70462
70463 2005-10-01  Simon Josefsson  <jas@extundo.com>
70464
70465         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70466         and Darwin.
70467
70468         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70469         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70470         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70471         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70472         Check if struct addrinfo is declared.
70473
70474 2005-10-01  Simon Josefsson  <jas@extundo.com>
70475
70476         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70477         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70478         AI_* and EAI_* definitions.  Protect function declarations.
70479
70480 2005-10-01  Jim Meyering  <jim@meyering.net>
70481
70482         Sync from coreutils.
70483
70484         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70485         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70486         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70487         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70488         in the inet and nsl libraries.  Required on Solaris 5.7.
70489
70490 2005-10-01  Jim Meyering  <jim@meyering.net>
70491
70492         Sync from coreutils.
70493         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70494         in the inet and nsl libraries.  Required on Solaris 5.7.
70495
70496 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70497
70498         * lib/getdelim.c (getdelim): Remove unused variables.
70499
70500 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70501
70502         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70503         so that the code works even with ancient cpp.  Portability problem
70504         with GCC 2.7.2.1 reported by Thomas M.Ott.
70505
70506 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70507
70508         * modules/regex (Depends-on): Add strcase.
70509
70510         * modules/gethostname (Licence): Change from GPL to LGPL, since
70511         gethostname.c is a trivial implementation of a standard library
70512         function.
70513         * modules/poll (License): Change from GPL to LGPL, since it's
70514         derived from LGPL code.
70515
70516 2005-09-27  Jim Meyering  <jim@meyering.net>
70517
70518         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70519         HAVE_CONFIG_H.
70520
70521         * lib/intprops.h (signed_type_or_expr__): Define.
70522         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70523         for unsigned types.
70524
70525 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70526
70527         * lib/verify.h (verify_expr): Remove, replacing with:
70528         (verify_true): New macro that returns true instead of void.
70529         (verify_type__): Remove.
70530         (verify): Use verify_true rather than verify_type__.
70531
70532 2005-09-26  Bruno Haible  <bruno@clisp.org>
70533
70534         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70535         is necessary.
70536         (lib_SOURCES): Remove mbchar.c.
70537         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70538         (Files): Add m4/mbrtowc.m4.
70539         * modules/mbiter: Likewise.
70540         * modules/mbuiter: Likewise.
70541
70542 2005-09-26  Bruno Haible  <bruno@clisp.org>
70543
70544         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70545         compile mbchar.c if they are not both present.
70546         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70547         * m4/mbiter.m4 (gl_MBITER): Likewise.
70548         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70549         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70550         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70551
70552 2005-09-25  Jim Meyering  <jim@meyering.net>
70553
70554         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70555         also uses socklen_t.
70556
70557 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70558
70559         * lib/utimens.c (ENOSYS): Define if not already defined.
70560         (futimens): Support having a null PATH if the file descriptor
70561         is nonnegative.
70562
70563         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70564         Remove.
70565         (__attribute): Define to empty unless GCC 3.1 or later.
70566         This works around a core dump on OpenBSD 3.4, which has GCC
70567         2.95.3, which dumps core when given __attribute__(()).  It also
70568         simplifies other tests, since we really don't want to bother with
70569         worrying about which ancient version of GCC supported what.
70570         Original problem reported by Yoann Vandoorselaere, with part of
70571         the fix suggested by Derek Price.
70572
70573 2005-09-24  Jim Meyering  <jim@meyering.net>
70574
70575         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70576         so we can once again use a positive bitfield width of 1 -- now we
70577         don't have to explain why we were using a bitfield width of 2.
70578
70579 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70582         and similarly for the other external symbols.  Problem reported
70583         by James Gallager.
70584
70585         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70586         bug reported by Jim Meyering.
70587
70588         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70589         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70590         not needed, since socklen is a prerequisite module.
70591
70592 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70593
70594         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70595         Problem reported by Eric Blake.
70596         (getaddrinfo): Initialize se so that it's not garbage.
70597         Redo internal storage allocation so that it doesn't make unportable
70598         assumptions about alignment.
70599         Fix a memory leak.
70600
70601         * lib/utimens.c (futimens): Use futimesat if available.
70602         Prefer it to futimes since it doesn't have the futimes bug.
70603
70604         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70605         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70606         Instead, declare a function that returns a pointer to an array,
70607         and use verify_type__ to declare the size of the array.
70608         Problem and germ of a solution reported by Bruno Haible.
70609         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70610         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70611
70612 2005-09-23  Jim Meyering  <jim@meyering.net>
70613
70614         Sync from coreutils.
70615         Correct build failure (socklen_t not defined) on at least
70616         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70617         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70618
70619 2005-09-23  Jim Meyering  <jim@meyering.net>
70620
70621         * modules/getaddrinfo (Depends-on): Add socklen.
70622
70623 2005-09-23  Bruno Haible  <bruno@clisp.org>
70624
70625         * tests/test-verify.c: New file.
70626
70627 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70628
70629         Sync from coreutils.
70630
70631         * modules/argmatch (Depends-on): Add verify.
70632         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70633         unistd-safer.
70634         * modules/save-cwd (Depends-on): Likewise.
70635
70636         * modules/openat (Files): Add lib/openat-die.c.
70637         (Depends-on): Remove error, exitfail.
70638         Add dirname.
70639
70640         * modules/verify: New file.
70641         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70642         with "verify" module.
70643
70644 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70645
70646         Sync from coreutils.
70647
70648         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70649         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70650         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70651         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70652         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70653         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70654         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70655         Don't bother checking for string.h, stdlib.h, unistd.h.
70656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70657         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70658         module's job.
70659         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70660         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70661
70662         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70663         (gl_GETDATE): Use it.
70664
70665         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70666
70667 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70668
70669         Sync from coreutils.
70670
70671         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70672         stat-time.h.
70673         * lib/argmatch.h: Include verify.h
70674         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70675         (ARGMATCH_ASSERT): Remove; unused.
70676         * lib/canonicalize.c: Assume STDC_HEADERS.
70677         * lib/exclude.c: Include "strcase.h".
70678         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70679         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70680         and stdio-safer.h.
70681         (getusershell): Call fopen, not fopen_safer.
70682         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70683         Do not include unistd-safer.h.
70684         (save_cwd): Don't call fd_safer; no longer needed
70685         now that we include fcntl--.h.
70686
70687         * lib/getdate.y (relative_time): New type.
70688         (RELATIVE_TIME_0): New constant.
70689         (parser_control): Use relative_time instead of doing it ourselves.
70690         (%union): Add new relative_time rel member.
70691         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70692         Now typeless.
70693         (relunit, relunit_snumber): Now of type rel.
70694         (zone, rel, relunit, get_date): Adjust to above changes.
70695
70696         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70697         Do not include unistd-safer.h.
70698         (getloadavg): Don't call fd_safer; no longer needed
70699         now that we include fcntl--.h.
70700
70701         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70702         (make_dir_parents): Treat ENOSYS like EEXIST.
70703
70704         Improve quality of diagnostics on restore_cwd failure.
70705         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70706         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70707         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70708         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70709         each time through the loop.  Do not diagnose restore_cwd failure;
70710         that is the caller's job (and perhaps the caller does not care).
70711
70712         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70713         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70714         If the file already exists but is not a directory, don't bother
70715         to try to make its parents.
70716         Close potential file descriptor leak if we can't chdir("/") (!).
70717         Don't always return true if chdir($PWD) fails; return true only
70718         if the requested action was done successfully (except for the
70719         chdir($PWD)).
70720         Don't log final directory unless we actually made it.
70721         Refactor to avoid duplicate code to fix up permissions.
70722         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70723
70724         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70725         to make it a bit faster and (I hope) clearer.
70726         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70727         Fix bug in formats like %2N.
70728
70729         * lib/verify.h: New file.
70730
70731 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70732
70733         Sync from coreutils.
70734         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70735
70736 2005-09-22  Jim Meyering  <jim@meyering.net>
70737
70738         Sync from coreutils.
70739
70740         * m4/lstat.m4 (gl_FUNC_LSTAT):
70741         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70742         Remove obsolete comment.
70743         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70744         * m4/xstrtod.m4: Likewise.
70745
70746         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70747
70748 2005-09-22  Jim Meyering  <jim@meyering.net>
70749
70750         Sync from coreutils.
70751
70752         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70753
70754         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70755         the .tm_year member, since otherwise gcc-4.0 would now warn about
70756         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70757
70758         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70759         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70760
70761         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70762         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70763         when run in a time zone for which daylight savings time is in effect
70764         for the starting date.
70765
70766         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70767         stop us from restricting permissions of just-created absolute-named
70768         directories.
70769         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70770         to restore initial working directory.
70771         * lib/mkdir-p.c (make_dir_parents): New parameter:
70772         different_working_dir, to tell caller if/when we change the working
70773         directory and are unable to return to the initial one.
70774         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70775         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70776         `return false'.  This fixes a bug introduced on 2004-07-30.
70777
70778         * lib/openat.c (fdopendir): Be sure to close the supplied
70779         file descriptor before returning.  This makes our replacement
70780         implementation a little closer to Solaris's, where fdopendir
70781         ties the file descriptor to the returned DIR* pointer.
70782         * lib/openat.c (unlinkat): New function.
70783         * lib/openat.h (unlinkat): Add prototype.
70784         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70785         (openat_restore_fail): Rename from openat_restore_die.
70786         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70787
70788         Provide an alternative to exiting immediately upon save_cwd or
70789         restore_cwd failure.  Now, an application can arrange e.g.,
70790         to perform a longjump in that case.
70791         * lib/openat.c: Include dirname.h.
70792         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70793         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70794         and openat_restore_die rather than calling error directly.
70795         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70796
70797         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70798         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70799         define.
70800
70801         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70802         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70803                             int utc, int nanoseconds);
70804         Background:
70805         date should not have to allocate a megabyte of virtual memory to
70806         handle a format argument like +%1048575T.  When implemented with
70807         strftime, it must allocate such a buffer, use strftime to fill it
70808         in, print it, then free it.
70809         With fprintftime, it simply prints everything and exits.
70810         With no need for memory allocation, that's one fewer way to fail.
70811         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70812         optional field width, not before, so we accept %9:z, not %:9z.
70813         (my_strftime): Be sure to use L_('x') for literals.
70814
70815         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70816         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70817         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70818         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70819         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70820         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70821         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70822         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70823         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70824         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70825         * lib/xgethostname.c, lib/xreadlink.c:
70826         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70827
70828         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70829         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70830         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70831         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70832         and don't include <sys/file.h>).
70833
70834 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70835
70836         Sync from coreutils.
70837
70838         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70839         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70840         [!LDAV_DONE]: Avoid unused variable warning.
70841
70842 2005-09-21  Bruno Haible  <bruno@clisp.org>
70843
70844         * lib/unicodeio.h (unicode_to_mb): New declaration.
70845
70846 2005-09-20  Derek Price  <derek@ximbiot.com>
70847
70848         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70849         getaddrinfo.h.
70850
70851 2005-09-20  Bruno Haible  <bruno@clisp.org>
70852
70853         * gnulib-tool: Remove trailing slashes from the values specified for
70854         --source-base, --m4-base, --tests-base, --aux-dir.
70855         Suggested by Simon Josefsson <jas@extundo.com>.
70856
70857 2005-09-20  Bruno Haible  <bruno@clisp.org>
70858
70859         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70860         func_modules_to_filelist, func_import, func_create_testdir): Make all
70861         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70862         change when gnulib-tool is invoked in a different locale.
70863
70864 2005-09-19  Simon Josefsson  <jas@extundo.com>
70865
70866         * m4/socklen.m4: Fix typo.
70867
70868 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70869
70870         Use a consistent style for including <config.h>.
70871         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70872         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70873         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70874         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70875         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70876         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70877         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70878         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70879         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70880         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70881         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70882         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70883         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70884         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70885         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70886         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70887         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70888         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70889         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70890         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70891         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70892         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70893         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70894         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70895         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70896         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70897         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70898         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70899         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70900         lib/xstrtoumax.c, lib/yesno.c:
70901         Standardize inclusion of config.h.
70902         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70903         lib/inttostr.h:  Removed inclusion of config.h from header files.
70904         * lib/inttostr.c:  Adjusted in-tree users.
70905         * lib/timespec.h: Remove superfluous warning to include config.h.
70906         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70907         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70908         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70909         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70910         config.h with HAVE_CONFIG_H.
70911
70912 2005-09-19  Jim Meyering  <jim@meyering.net>
70913
70914         * modules/pathmax (License): Change to LGPL.
70915
70916 2005-09-19  Derek Price  <derek@ximbiot.com>
70917
70918         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70919
70920 2005-09-19  Bruno Haible  <bruno@clisp.org>
70921
70922         * gnulib-tool (import): Provide default for --tests-base.
70923
70924 2005-09-19  Bruno Haible  <bruno@clisp.org>
70925
70926         * doc/quote.texi: New file, extracted from gnulib.texi.
70927         * doc/ctime.texi: New file, extracted from gnulib.texi.
70928         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70929         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70930         * doc/gnulib.texi: Include them.
70931
70932 2005-09-18  Bruno Haible  <bruno@clisp.org>
70933
70934         Portability fix.
70935         * gnulib-tool (func_readlink): New function.
70936         (func_ln_if_changed): Use it.
70937
70938 2005-09-18  Bruno Haible  <bruno@clisp.org>
70939
70940         * gnulib-tool: Support --with-tests also with --import.
70941         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70942         (func_import): Use variables $testsbase and $inctests. Emit a
70943         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70944         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70945         SUBDIRS += $testsdir.
70946         (func_create_testdir): Update.
70947
70948 2005-09-18  Bruno Haible  <bruno@clisp.org>
70949
70950         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70951         instead of $dry_run.
70952         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70953         (func_ln_if_changed): Don't handle dry-run here.
70954         (func_import): In dry-run mode, detect more precisely which actions
70955         would be performed, and don't use "...ing" verbs.
70956
70957 2005-09-18  Bruno Haible  <bruno@clisp.org>
70958
70959         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70960         (func_import): Use join on two temporary files instead of three nested
70961         loops, in order to determine which files are new or old.
70962
70963 2005-09-18  Bruno Haible  <bruno@clisp.org>
70964
70965         * gnulib-tool (func_import): Comment out code that spits out the
70966         new files with --dry-run.
70967
70968 2005-09-18  Bruno Haible  <bruno@clisp.org>
70969
70970         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70971
70972 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         * lib/stat-time.h: New file.
70975         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70976         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70977         in a different way.
70978         (timespec_cmp): New function.
70979         * lib/utimecmp.c: Include stat-time.h.
70980         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70981         members exist, not on the obsolescent ST_MTIM_NSEC.
70982         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70983
70984 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70985
70986         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70987
70988 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70989
70990         * MODULES.html.sh (File system functions): Add stat-time.
70991         * modules/stat-time: New file.
70992         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70993         is now done in a different way, by the stat-time module.
70994         * modules/utimecmp (Depends-on): Add stat-time.
70995
70996 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70997
70998         * m4/st_mtim.m4: Remove.  Superseded by...
70999         * m4/stat-time.m4: New file.
71000         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71001         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71002
71003 2005-09-15  Derek Price  <derek@ximbiot.com>
71004
71005         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71006
71007 2005-09-15  Derek Price  <derek@ximbiot.com>
71008
71009         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71010         * lib/regex_internal.c: Ditto, using this...
71011         (__GNUC_PREREQ): ...new macro.
71012         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71013         using...
71014         (__GNUC_PREREQ): ...this new macro.
71015
71016         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71017
71018 2005-09-15  Derek Price  <derek@ximbiot.com>
71019             Paul Eggert  <eggert@cs.ucla.edu>
71020
71021         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71022         changes, consolidating in...
71023         * lib/regex_internal.h: ...this file.
71024
71025 2005-09-13  Jim Meyering  <jim@meyering.net>
71026
71027         * lib/canon-host.c: Filter through gnu indent and reword comments
71028         slightly.
71029         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71030
71031 2005-09-13  Derek Price  <derek@ximbiot.com>
71032
71033         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71034         failure.
71035         Reported by Jim Meyering  <jim@meyering.net>.
71036
71037 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71038
71039         * lib/base64.c: Typo.
71040         (base64_encode): Put b64str in initialized data section.
71041
71042 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71043
71044         Merge glibc and coreutils changes into gnulib, plus a few
71045         extra fixes.
71046         * lib/md5.c: Use #error rather than a string.
71047         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71048         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71049         (__attribute__): Define to empty for non recent-GCC.
71050         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71051         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71052         Renamed from their non-__ counterparts, with new macros replacing
71053         them if not _LIBC.  Add __THROW attribute.
71054         (rol): Remove.
71055         (struct md5_ctx): Align buffer if using GCC.
71056         * lib/sha1.h (struct sha1_ctx): Likewise.
71057         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71058         The old name was backwards.
71059         (NOTSWAP): Remove; not used.
71060         (rol): New macro, moved here from md5.h.
71061         (sha1_process_block): Remove a FIXME that doesn't make sense.
71062
71063 2005-09-12  Derek Price  <derek@ximbiot.com>
71064
71065         Return usable errors from canon-host.
71066         * lib/canon-host.h: New file.
71067         * lib/canon-host.c (canon_host): Wrap...
71068         (canon_host_r): ...this new function, which now relies exclusively on
71069         getaddrinfo.
71070         (ch_strerror): New function.
71071         (last_cherror): New global.
71072         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71073         interface.
71074         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71075         void *.
71076         (freeaddrinfo): Free ai->ai_canonname when set.
71077
71078 2005-09-12  Derek Price  <derek@ximbiot.com>
71079
71080         Make canon-host require getaddrinfo.
71081         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71082         AC_LIBSOURCE canon-host.h.  Call...
71083         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71084         gl_GETADDRINFO.
71085         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71086
71087 2005-09-12  Derek Price  <derek@ximbiot.com>
71088
71089         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71090         LGPL.
71091         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71092
71093 2005-09-12  Derek Price  <derek@ximbiot.com>
71094
71095         * lib/gai_strerror.c: Include config.h when available.  Include
71096         getaddrinfo.h before other headers to test interface.
71097         Reported by Larry Jones <lawrence.jones@ugs.com>.
71098
71099 2005-09-12  Derek Price  <derek@ximbiot.com>
71100             Paul Eggert  <eggert@cs.ucla.edu>
71101
71102         * modules/glob (Files): Add glob-libc.h.
71103
71104 2005-09-12  Derek Price  <derek@ximbiot.com>
71105             Paul Eggert  <eggert@cs.ucla.edu>
71106
71107         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71108         glob_.h, glob-libc.h.
71109         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71110
71111 2005-09-12  Derek Price  <derek@ximbiot.com>
71112             Paul Eggert  <eggert@cs.ucla.edu>
71113
71114         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71115         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71116         protecting things that should be done only in gnulib contexts.
71117         * lib/glob_.h: New file, containing only the glob things needed for
71118         gnulib.
71119         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71120         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71121         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71122         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71123         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71124         and to respect the namespace rules better.
71125
71126 2005-09-08  Simon Josefsson  <jas@extundo.com>
71127
71128         * modules/socklen: New file.
71129
71130 2005-09-08  Simon Josefsson  <jas@extundo.com>
71131
71132         * m4/socklen.m4: New file.
71133
71134 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71135
71136         * modules/utimens (Files): Add m4/utimbuf.m4, since
71137         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71138         Reported by Sergey Poznyakoff.
71139
71140 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71141
71142         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71143         definitions, since that's the preferred style in glibc.
71144         Fix a minor spacing issue, and update copyright notice to match
71145         glibc's.
71146
71147 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71150
71151 2005-09-06  Simon Josefsson  <jas@extundo.com>
71152
71153         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71154         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71155
71156 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71159         warning.
71160
71161 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * config/srclist.txt: Add glibc bug 1302.
71164
71165 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71166
71167         Change bitset word type from unsigned int to unsigned long int,
71168         as this has better performance on typical 64-bit hosts.
71169         Port bitset code to hosts with unusual word sizes.
71170         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71171         (build_collating_symbol):
71172         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71173         argument is a bitset.  This is merely a style issue, but it makes
71174         it clearer that an entire array is expected.
71175         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71176         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71177         Port to the case where bitset_word is not the same as unsigned int.
71178         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71179         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71180         Likewise.
71181         * lib/regexec.c (check_dst_limits_calc_pos_1,
71182         check_subexp_matching_top):
71183         (build_trtable, group_nodes_into_DFAstates):
71184         Likewise.
71185         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71186         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71187         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71188         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71189         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71190         * lib/regcomp.c (optimize_subexps, lower_subexp):
71191         Work even if bitset_word has holes in its bitwise representation.
71192         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71193         * lib/regexec.c (check_dst_limits_calc_pos_1,
71194         check_subexp_matching_top):
71195         Likewise.
71196         * lib/regex_internal.c (re_string_reconstruct):
71197         Don't assume UCHAR_MAX == 255.
71198         * lib/regex_internal.h (bitset_set_all): Likewise.
71199         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71200         All uses changed.
71201         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71202         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71203         All uses changed.
71204         (BITSET_WORD_MAX): New macro.
71205         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71206         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71207         (bitset_empty, bitset_copy):
71208         Prefer sizeof (bitset) to multiplying it out ourselves.
71209         (bitset_not_merge): Remove; unused.
71210         (bitset_contain): Return bool, not unsigned int with one bit on.
71211         All callers changed.
71212         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71213         alignment than re_node_set; do this by defining a new internal
71214         type struct dests_alloc and using it to allocate memory.
71215
71216 2005-09-05  Bruno Haible  <bruno@clisp.org>
71217
71218         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71219         links.
71220
71221 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71222
71223         * modules/size_max (Makefile.am): Add size_max.h
71224
71225 2005-09-04  Derek Price  <derek@ximbiot.com>
71226
71227         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71228
71229 2005-09-03  Simon Josefsson  <jas@extundo.com>
71230
71231         * gnulib-tool: Fix typo.
71232
71233 2005-09-03  Simon Josefsson  <jas@extundo.com>
71234
71235         * config/srclist.txt: Add glibc bug 1293.
71236
71237 2005-09-03  Derek Price  <derek@ximbiot.com>
71238
71239         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71240         From Larry Jones <lawrence.jones@ugs.com>.
71241
71242 2005-09-02  Simon Josefsson  <jas@extundo.com>
71243
71244         * modules/socklen: New file.
71245
71246 2005-09-02  Simon Josefsson  <jas@extundo.com>
71247
71248         * modules/havelib: New module.
71249
71250         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71251         Use havelib.
71252
71253 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         Check for arithmetic overflow when calculating sizes, to prevent
71256         some buffer-overflow issues.  These patches are conservative, in the
71257         sense that when I couldn't determine whether an overflow was possible,
71258         I inserted a run-time check.
71259         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71260         macros.
71261         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71262         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71263         (re_xnrealloc, re_x2nrealloc): New inline functions.
71264         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71265         parse_bracket_exp):
71266         (build_equiv_class, build_charclass): Check for arithmetic overflow
71267         in size expression calculations.
71268         * lib/regex_internal.c (re_string_realloc_buffers):
71269         (build_wcs_upper_buffer, re_node_set_add_intersect):
71270         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71271         (re_dfa_add_node, register_state): Likewise.
71272         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71273         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71274         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71275         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71276
71277 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71278
71279         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71280         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71281
71282 2005-09-02  Bruno Haible  <bruno@clisp.org>
71283
71284         Support for lib vs. lib64 distinction on biarch platforms.
71285         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71286         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71287         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71288
71289 2005-09-02  Bruno Haible  <bruno@clisp.org>
71290
71291         * gnulib-tool (import): In the other first-use case, provide defaults
71292         as well.
71293
71294 2005-09-02  Bruno Haible  <bruno@clisp.org>
71295
71296         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71297         patches not yet found in the latest gettext release.
71298
71299 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71302         to avoid a collision with bits/local_lim.h in glibc.
71303         All uses changed.  Problem reported by Dmitry V. Levin in
71304         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71305
71306         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71307         bugs in int versus size_t comparisons.
71308         (re_string_context_at): Fix bug where the code assumed that
71309         Idx is signed.
71310
71311         Use bool where appropriate.
71312         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71313         All callers changed.
71314         (calc_eclosure_iter): Likewise, for ROOT arg.
71315         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71316         (build_charclass_op): Likewise, for NON_MATCH arg.
71317         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71318         (re_string_construct_common): Likewise, for ICASE arg.
71319         * lib/regexec.c (re_search_2_stub, re_search_stub):
71320         Likewise, for RET_LEN arg.
71321         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71322         (set_regs): Likewise, for FL_BACKTRACK arg.
71323         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71324         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71325         (calc_eclosure_iter, parse_bracket_exp):
71326         Use bool for internal variables that are booleans.
71327         * lib/regexec.c (re_search_internal, check_matching,
71328         proceed_next_node):
71329         (set_regs, build_sifted_states, sift_states_bkref):
71330         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71331         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71332         (find_collation_sequence_value):
71333         Likewise.
71334         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71335         (re_node_set_compare):
71336         Return bool, not int. All callers changed.
71337         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71338         (build_trtable, check_node_accept): Likewise.
71339         * lib/regex_internal.h: Include stdbool.h.
71340
71341         Fix bugs uncovered when converting to bool.
71342         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71343         failure instead of charging ahead blindly.
71344         * lib/regex_internal.c (register_state): Likewise.
71345         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71346         for freeing internal storage.
71347         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71348         bitset pieces used as boolean, to avoid undefined behavior
71349         on hosts that do int overflow checking.
71350
71351 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71352
71353         * config/srclist.txt: Add glibc bugs 1285-1287.
71354
71355 2005-09-01  Jim Meyering  <jim@meyering.net>
71356
71357         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71358         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71359         Require gl_STAT_MACROS, too.
71360
71361 2005-09-01  Bruno Haible  <bruno@clisp.org>
71362
71363         * gnulib-tool (import): In the first-use case, provide defaults.
71364
71365 2005-09-01  Bruno Haible  <bruno@clisp.org>
71366
71367         * gnulib-tool (func_import): Remove the .tmp files.
71368
71369 2005-09-01  Bruno Haible  <bruno@clisp.org>
71370
71371         * gnulib-tool (func_import): Fix handling of symbolic links.
71372
71373 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71374
71375         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71376         old glibc regex code mishandles strings longer than 2**31 bytes.
71377         This patch fixes this when the regex code is used in gnulib
71378         (i.e., outside glibc).
71379
71380         This patch should not affect the use of the regex code inside
71381         glibc.  No doubt this problem also needs to be handled for glibc
71382         as well, but the result will be an incompatible change to the
71383         glibc ABI, and the old ABI will have to be supported too.  That
71384         can be the the subject for another patch.
71385
71386         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71387         governing whether the rest of this patch is active.  By default,
71388         the macro is disabled and the patch has no effect.
71389         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71390         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71391         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71392         (re_match_2, re_set_registers): Use the new types.
71393         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71394         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71395         New macros.
71396         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71397         (re_string_context_at, bin_tree_t, re_dfastate_t):
71398         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71399         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71400         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71401         (re_string_char_size_at, re_string_wchar_at):
71402         (re_string_elem_size_at):
71403         Use the new types and macros to port to 64-bit hosts.
71404         Use unsigned types for internal values, so that the code
71405         mostly works even for arrays larger than SSIZE_MAX.
71406         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71407         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71408         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71409         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71410         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71411         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71412         (calc_inveclosure, parse_dup_op, build_range_exp):
71413         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71414         (fetch_number, create_token_tree, mark_opt_subexp):
71415         Likewise.
71416         * lib/regex_internal.c (re_string_construct_common,
71417         create_ci_newstate):
71418         (create_cd_newstate, re_string_allocate, re_string_construct):
71419         (re_string_realloc_buffers, build_wcs_upper_buffer):
71420         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71421         (re_string_reconstruct, re_string_peek_byte_case):
71422         (re_string_fetch_byte_case, re_string_context_at):
71423         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71424         (re_node_set_init_copy, re_node_set_add_intersect):
71425         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71426         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71427         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71428         (re_acquire_state, re_acquire_state_context, register_state):
71429         Likewise.
71430         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71431         search_cur_bkref_entry):
71432         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71433         (re_search_internal, re_search_2_stub, re_search_stub)
71434         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71435         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71436         (update_cur_sifted_state, check_dst_limits):
71437         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71438         (check_subexp_limits, sift_states_bkref, merge_state_array):
71439         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71440         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71441         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71442         (expand_bkref_cache, check_node_accept_bytes):
71443         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71444         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71445         (acquire_init_state_context, check_halt_node_context):
71446         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71447         (sift_states_backward, clean_state_log_if_needed):
71448         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71449         (find_recover_state, transit_state_sb, transit_state_mb):
71450         (transit_state_bkref, build_trtable, match_ctx_clean):
71451         Likewise.
71452         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71453         to work around an assumption that REG_MISSING is negative.
71454
71455         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71456         (seek_collating_symbol_entry) [defined _LIBC]:
71457         (lookup_collation_sequence_value) [defined _LIBC]:
71458         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71459         Use prototypes rather than old-style function definitions.
71460         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71461         (transit_state_sb) [0]:
71462         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71463
71464         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71465         rm_eo.
71466
71467         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71468         (optimize_subexps, lower_subexp):
71469         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71470         since the signed shift might overflow.  Use 1u<<31 instead.
71471         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71472         Likewise.
71473         * lib/regexec.c (check_dst_limits_calc_pos_1,
71474         check_subexp_matching_top): Likewise.
71475
71476         * lib/regcomp.c (optimize_subexps, lower_subexp):
71477         Use CHAR_BIT rather than 8, for clarity.
71478         * lib/regexec.c (check_dst_limits_calc_pos_1):
71479         (check_subexp_matching_top): Likewise.
71480         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71481         have to worry about portability issues when shifting it left.
71482         Remove no-longer-needed test for table_size > 0.
71483         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71484         in a word, as the resulting behavior is undefined.
71485         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71486         in one case, a <= should have been an <, and in another case the
71487         whole test was missing.
71488         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71489         the standard name CHAR_BIT.
71490         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71491         this is not true on one's complement and signed-magnitude hosts.
71492
71493         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71494         next_last_offset.
71495         (struct re_dfa_t): Remove unused member states_alloc.
71496         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71497
71498 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71499
71500         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71501         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71502         and large-file glibc and in 32-bit large-file Solaris.
71503
71504 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71505
71506         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71507         lengths fit in regoff_t; this isn't true if regoff_t is the same
71508         width as size_t.
71509         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71510         (= START + RANGE) instead of RANGE.  This avoids overflow
71511         problems when regoff_t is the same width as size_t.
71512         All callers changed.
71513         (re_search_2_stub): Check for overflow when adding the
71514         sizes of the two strings.
71515         (re_search_stub): Check for overflow when adding START
71516         to RANGE; if it occurs, substitute the extreme value.
71517
71518 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71519
71520         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71521
71522 2005-08-31  Jim Meyering  <jim@meyering.net>
71523
71524         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71525         a pointer-to-const.
71526         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71527         (register_state): Likewise.
71528         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71529         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71530         (group_nodes_into_DFAstates): Likewise.
71531
71532 2005-08-31  Jim Meyering  <jim@meyering.net>
71533
71534         * check-module: Add a FIXME comment.
71535
71536 2005-08-31  Eric Blake  <ebb9@byu.net>
71537
71538         * modules/unistd-safer (Files): Add unistd--.h.
71539         * modules/stdio-safer (Files): Add stdio--.h.
71540
71541 2005-08-31  Derek Price  <derek@ximbiot.com>
71542
71543         * lib/getdelim.c (getdelim): Return EOF on EOF.
71544         Reported by Larry Jones <lawrence.jones@ugs.com>.
71545
71546 2005-08-31  Bruno Haible  <bruno@clisp.org>
71547
71548         Avoid unnecessary diffs in the generated lib/Makefile.am.
71549         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71550         the generated files.
71551         (func_import): Don't set cmd.
71552
71553 2005-08-31  Bruno Haible  <bruno@clisp.org>
71554
71555         * lib/strstr.c: Include <stddef.h>, for NULL.
71556         * lib/strcasestr.c: Likewise.
71557         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71558
71559 2005-08-31  Bruno Haible  <bruno@clisp.org>
71560
71561         * gnulib-tool: New option --macro-prefix.
71562         (func_import): Use macro_prefix.
71563         (import): Handle option --macro-prefix.
71564
71565 2005-08-31  Bruno Haible  <bruno@clisp.org>
71566
71567         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71568         Also use new variables cached_lgpl, cached_libtool.
71569
71570 2005-08-31  Bruno Haible  <bruno@clisp.org>
71571
71572         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71573         always instantiating them.
71574
71575 2005-08-31  Bruno Haible  <bruno@clisp.org>
71576
71577         * gnulib-tool (func_import): Read the previous cached settings
71578         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71579         earlier added by gnulib but are now dropped. Warn when a gnulib file
71580         overwrites a non-gnulib file.
71581
71582 2005-08-31  Bruno Haible  <bruno@clisp.org>
71583
71584         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71585         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71586         projects that don't keep autogenerated files in CVS. Put into
71587         actioncmd only the specified modules, not the transitive closure.
71588
71589 2005-08-31  Bruno Haible  <bruno@clisp.org>
71590
71591         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71592         Create directories that shall be filled.
71593         (import): Don't look for gl_* macros in configure.ac. Recurse across
71594         all directories containing a gnulib-cache.m4 files, if meaningful.
71595
71596 2005-08-31  Bruno Haible  <bruno@clisp.org>
71597
71598         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71599         (import): Set seen_libtool when we see gl_LIBTOOL.
71600
71601 2005-08-31  Bruno Haible  <bruno@clisp.org>
71602
71603         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71604         declaration macro definitions from generated gnulib.m4.
71605
71606 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71607
71608         * lib/iconvme.h: Add prototype for iconv_alloc.
71609
71610 2005-08-29  Simon Josefsson  <jas@extundo.com>
71611
71612         * lib/iconvme.c: Fix errno.
71613
71614 2005-08-29  Bruno Haible  <bruno@clisp.org>
71615
71616         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71617         that it works when the directory contains spaces.
71618
71619 2005-08-29  Bruno Haible  <bruno@clisp.org>
71620
71621         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71622
71623 2005-08-29  Bruno Haible  <bruno@clisp.org>
71624
71625         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71626         Emit more advice.
71627
71628 2005-08-29  Bruno Haible  <bruno@clisp.org>
71629         and Stepan Kasal  <kasal@ucw.cz>
71630
71631         * check-module: If more parameters are given, check each of them
71632         separately; add more exceptions, as noted by Jim Meyering.
71633         (check_module): New procedure.
71634         (%exempt_header): Now contains all exceptions.
71635
71636 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71637
71638         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71639
71640 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71641
71642         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71643
71644 2005-08-28  Bruno Haible  <bruno@clisp.org>
71645
71646         * m4/gnulib-tool.m4: New file.
71647
71648 2005-08-27  Jim Meyering  <jim@meyering.net>
71649
71650         * modules/unistd-safer (Files): Add pipe-safer.c.
71651         * modules/fcntl-safer (Files): Add creat-safer.c.
71652
71653 2005-08-27  Jim Meyering  <jim@meyering.net>
71654
71655         * m4/stdlib-safer.m4: New file.  From coreutils.
71656         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71657         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71658         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71659         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71660         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71661
71662 2005-08-27  Jim Meyering  <jim@meyering.net>
71663
71664         * lib/fopen-safer.c: Merge minor changes from coreutils.
71665         * lib/dup-safer.c: Likewise.
71666         * lib/fd-safer.c: Likewise.
71667
71668         Merge from coreutils.
71669         * lib/stdio--.h: New file.
71670         * lib/stdlib--.h: New file.
71671         * lib/mkstemp-safer.c: New file.
71672
71673         GNU tar needs these.
71674         * lib/pipe-safer.c: New file.
71675         * lib/creat-safer.c: New file.
71676         * lib/fcntl--.h (creat): Define to creat_safer.
71677         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71678         * lib/unistd--.h (pipe): Define to pipe_safer.
71679         * lib/unistd-safer.h: Declare pipe_safer.
71680
71681 2005-08-26  Simon Josefsson  <jas@extundo.com>
71682
71683         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71684         Haible <bruno@clisp.org>.
71685
71686 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71687
71688         * lib/regex_internal.h: Remove all references to
71689         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71690         or better.
71691         (bitset_not, bitset_merge, bitset_not_merge):
71692         (bitset_mask, re_string_allocate, re_string_construct):
71693         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71694         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71695         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71696         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71697         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71698         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71699         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71700         (re_acquire_state_context):
71701         Remove unnecessary forward decls.
71702         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71703         Put __attribute at function definition,
71704         now that the function decl has been removed.
71705         * lib/regex_internal.c (re_string_peek_byte_case):
71706         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71707         Likewise.
71708
71709 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71710
71711         * m4/regex.m4: Add AC_PREREQ(2.50).
71712         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71713
71714 2005-08-25  Simon Josefsson  <jas@extundo.com>
71715
71716         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71717         __fsetlocking.
71718
71719 2005-08-25  Simon Josefsson  <jas@extundo.com>
71720
71721         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71722         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71723         GLIBC specific code.
71724
71725 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71726
71727         Make regex safe for g++.  This fixes one real bug (an "err"
71728         that should have been "*err").  g++ problem reported by
71729         Sam Steingold.
71730         * lib/regex_internal.h (re_calloc): New macro, consistent with
71731         re_malloc etc.  All callers of calloc changed to use re_calloc.
71732         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71733         not int.  All callers changed.
71734         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71735         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71736         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71737         (find_recover_state): Change "err" to "*err"; this fixes what
71738         appears to be a real bug.
71739         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71740         versus int.
71741
71742 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * modules/regex (Depends-on): Add malloc, since the code
71745         assumes that !malloc(0) means failure.
71746
71747 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71748
71749         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71750
71751         alloca modernization/simplification for regex.
71752         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71753         needs to be at the start of the file, and can be moved into
71754         regex_internal.h and simplified.
71755         * lib/regex_internal.h: Include <alloca.h>.
71756         (__libc_use_alloca) [!defined _LIBC]: New macro.
71757         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71758         now works outside glibc.
71759
71760 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         * config/srclist.txt: Add glibc bugs 1241, 1245.
71763
71764 2005-08-25  Jim Meyering  <jim@meyering.net>
71765
71766         * lib/open-safer.c: Include <config.h>.
71767         Otherwise, we'd lose LARGEFILE support in any file using
71768         e.g. "fcntl--.h"
71769
71770 2005-08-25  Bruno Haible  <bruno@clisp.org>
71771
71772         * m4/minmax.m4: Require autoconf 2.52.
71773         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71774         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71775         alternatives of translit over the alphabet.
71776         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71777
71778 2005-08-24  Simon Josefsson  <jas@extundo.com>
71779
71780         * tests/test-getpass.c: New file.
71781
71782 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71783
71784         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71785         for GNU regex features.
71786
71787 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71790         * lib/regex.h (regerror): Likewise.
71791
71792         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71793         requires this.  (The code never needed it.)
71794
71795         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71796         All uses of recently-renamed identifiers changed to use the new,
71797         POSIX-compliant names.  The code will build and run just fine
71798         without these changes, but it's better to eat our own dog food
71799         and use the standard-conforming names.
71800
71801         * lib/regex.h: Fix a multitude of POSIX name space violations.
71802         These changes have an effect only for programs that define
71803         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71804         do not change anything for programs compiled in the normal way.
71805         Also, there is no effect on the ABI.
71806
71807         (_REGEX_SOURCE): New macro.
71808         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71809         defined and _GNU_SOURCE is not; this fixes a name space violation.
71810
71811         Rename the following macros to obey POSIX requirements.
71812         The old names are still visible as macros if _REGEX_SOURCE is defined.
71813         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71814         RE_BACKSLASH_ESCAPE_IN_LISTS.
71815         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71816         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71817         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71818         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71819         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71820         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71821         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71822         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71823         (REG_INTERVALS): renamed from RE_INTERVALS.
71824         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71825         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71826         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71827         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71828         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71829         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71830         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71831         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71832         RE_UNMATCHED_RIGHT_PAREN_ORD.
71833         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71834         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71835         (REG_DEBUG): renamed from RE_DEBUG.
71836         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71837         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71838         unusual, since we can't clash with the POSIX REG_ICASE.
71839         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71840         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71841         (REG_NO_SUB): renamed from RE_NO_SUB.
71842         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71843         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71844         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71845         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71846         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71847         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71848         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71849         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71850         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71851         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71852         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71853         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71854         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71855         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71856         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71857         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71858         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71859         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71860         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71861         (REG_FIXED): Renamed from REGS_FIXED.
71862         (REG_NREGS): Renamed from RE_NREGS.
71863
71864         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71865         of other REG_* macros, since POSIX says the user is allowed to
71866         #undef these macros selectively.
71867
71868         (reg_errcode_t): Update comment stating what other tables need
71869         to be consistent.
71870
71871         Rename the following enum values to obey POSIX requirements.
71872         The old names are still visible as macros.
71873         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71874         is not defined, since GNU is supposed to be a superset of POSIX as
71875         much as possible, and since we want reg_errcode_t to be a signed
71876         type for implementation consistency.
71877         (_REG_NOERROR): Renamed from REG_NOERROR.
71878         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71879         (_REG_BADPAT): Renamed from REG_BADPAT.
71880         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71881         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71882         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71883         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71884         (_REG_EBRACK): Renamed from REG_EBRACK.
71885         (_REG_EPAREN): Renamed from REG_EPAREN.
71886         (_REG_EBRACE): Renamed from REG_EBRACE.
71887         (_REG_BADBR): Renamed from REG_BADBR.
71888         (_REG_ERANGE): Renamed from REG_ERANGE.
71889         (_REG_ESPACE): Renamed from REG_ESPACE.
71890         (_REG_BADRPT): Renamed from REG_BADRPT.
71891         (_REG_EEND): Renamed from REG_EEND.
71892         (_REG_ESIZE): Renamed from REG_ESIZE.
71893         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71894         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71895         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71896         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71897         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71898
71899         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71900         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71901         changed.  But support the old name if the new one is not defined
71902         and if _REGEX_SOURCE.
71903
71904         Change the following member names in struct re_pattern_buffer.
71905         The old names are still supported if !_REGEX_SOURCE.
71906         The new names are always supported, regardless of _REGEX_SOURCE.
71907         (re_buffer): Renamed from buffer.
71908         (re_allocated): Renamed from allocated.
71909         (re_used): Renamed from used.
71910         (re_syntax): Renamed from syntax.
71911         (re_fastmap): Renamed from fastmap.
71912         (re_translate): Renamed from translate.
71913         (re_can_be_null): Renamed from can_be_null.
71914         (re_regs_allocated): Renamed from regs_allocated.
71915         (re_fastmap_accurate): Renamed from fastmap_accurate.
71916         (re_no_sub): Renamed from no_sub.
71917         (re_not_bol): Renamed from not_bol.
71918         (re_not_eol): Renamed from not_eol.
71919         (re_newline_anchor): Renamed from newline_anchor.
71920
71921         Change the following member names in struct re_registers.
71922         The old names are still supported if !_REGEX_SOURCE.
71923         The new names are always supported, regardless of _REGEX_SOURCE.
71924         (rm_num_regs): Renamed from num_regs.
71925         (rm_start): Renamed from start.
71926         (rm_end): Renamed from end.
71927
71928         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71929         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71930         Prepend __ to parameter names.
71931
71932         Undo yesterday's changes.
71933
71934 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71935
71936         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71937         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71938         lib/regex.c.
71939
71940 2005-08-24  Jim Meyering  <jim@meyering.net>
71941
71942         Sync from coreutils.
71943         * m4/fcntl-safer.m4: New file.
71944
71945         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71946         and object files for this module.
71947
71948 2005-08-24  Jim Meyering  <jim@meyering.net>
71949
71950         Sync from coreutils.
71951         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71952
71953 2005-08-24  Jim Meyering  <jim@meyering.net>
71954
71955         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71956         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71957
71958 2005-08-24  Jim Meyering  <jim@meyering.net>
71959
71960         * modules/fcntl-safer: New module.
71961         * modules/fts (Depends-on): Add fcntl-safer.
71962         * MODULES.html.sh (File descriptor based Input/Output):
71963         Add fcntl-safer.
71964
71965 2005-08-24  Bruno Haible  <bruno@clisp.org>
71966
71967         Support for unit test modules.
71968         * modules/README: Mention tests modules.
71969         * modules/TEMPLATE-TESTS: New file.
71970         * gnulib-tool: New options --extract-tests-module, --with-tests and
71971         --tests-base (unused for the moment).
71972         (testsbase, inctests): New variables.
71973         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71974         (func_verify_module): Exclude TEMPLATE-TESTS.
71975         (func_verify_nontests_module, func_verify_tests_module): New functions.
71976         (func_get_dependencies): Add implicit dependency for tests modules.
71977         (func_get_tests_module): New function.
71978         (func_modules_transitive_closure): When --with-tests was specified,
71979         include the unit tests as well, unless explicitly avoided.
71980         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71981         (func_emit_tests_Makefile_am): New function.
71982         (func_create_testdir): When --with-tests was specified, emit a
71983         tests/ directory.
71984         * MODULES.html.sh (Future developments): Update.
71985
71986 2005-08-24  Bruno Haible  <bruno@clisp.org>
71987
71988         * modules/tls-tests: New file.
71989         * tests/test-tls.c: New file, from GNU gettext.
71990
71991 2005-08-24  Bruno Haible  <bruno@clisp.org>
71992
71993         * modules/lock-tests: New file.
71994         * tests/test-lock.c: New file, from GNU gettext.
71995
71996 2005-08-24  Bruno Haible  <bruno@clisp.org>
71997
71998         * lib/lock.h: Add multiple inclusion guard.
71999         * lib/tls.h: Add multiple inclusion guard.
72000
72001 2005-08-24  Bruno Haible  <bruno@clisp.org>
72002
72003         * gnulib-tool: Add support for the --aux-dir option to
72004         --create-testdir, --create-megatestdir, --test, --megatest.
72005         (func_create_testdir, func_create_megatestdir): Optionally emit a
72006         AC_CONFIG_AUX_DIR directive.
72007         (create-testdir, create-megatestdir, test, megatest): Provide a
72008         default value for $auxdir.
72009
72010 2005-08-24  Bruno Haible  <bruno@clisp.org>
72011
72012         * gnulib-tool (import): Use compound statement instead of subshell
72013         where possible.
72014
72015 2005-08-24  Bruno Haible  <bruno@clisp.org>
72016
72017         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72018
72019 2005-08-24  Bruno Haible  <bruno@clisp.org>
72020
72021         * gnulib-tool (func_version): Update.
72022
72023 2005-08-24  Bruno Haible  <bruno@clisp.org>
72024
72025         * gnulib-tool (func_import, func_create_testdir,
72026         func_create_megatestdir): Quote all autoconf macro arguments.
72027
72028 2005-08-24  Bruno Haible  <bruno@clisp.org>
72029
72030         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72031         option --force, because --force causes the aclocal.m4 of each
72032         subdirectory to be newer than the corresponding config.h.in.
72033
72034 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72035
72036         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72037         All contents moved to gl_REGEX.
72038         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72039         assume that it does.
72040
72041 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72042
72043         * lib/regex.h (REG_NOSYS)
72044         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72045         Define, since POSIX requires it as of 2001.
72046         (_REG_ENOSYS)
72047         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72048         New private symbol, used to keep the enum signed in all cases.
72049         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72050         Youngman in
72051         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72052
72053         * lib/regex_internal.c (re_string_skip_chars, register_state):
72054         (calc_state_hash):
72055         Remove forward decls; no longer needed now that we use prototypes.
72056         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72057         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72058         (clean_state_log_if_needed): Likewise.
72059
72060 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72061
72062         * config/srclist.txt: Add glibc bugs 1231-1233.
72063
72064 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72065
72066         Fix problems reported by Sam Steingold in
72067         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72068         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72069         assumed that reg_errcode_t is a signed type, which is not
72070         necessarily true if _XOPEN_SOURCE is not defined.
72071         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72072         since some compilers warn about it otherwise.
72073
72074 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72075
72076         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72077         (init_word_char, create_initial_state, duplicate_node_closure):
72078         (fetch_token, peek_token_bracket, build_range_exp):
72079         (build_collating_symbol): Remove forward decls; no longer needed
72080         now that we use prototypes.
72081
72082         * lib/regcomp.c:
72083         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72084         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72085         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72086         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72087         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72088         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72089         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72090         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72091         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72092         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72093         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72094         (build_charclass, build_charclass_op, fetch_number, create_tree):
72095         (create_token_tree, mark_opt_subexp, duplicate_tree):
72096         Use prototypes rather than old-style definitions.
72097
72098         * lib/regex_internal.c:
72099         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72100         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72101         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72102         (re_string_reconstruct, re_string_peek_byte_case):
72103         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72104         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72105         (re_node_set_init_copy, re_node_set_add_intersect):
72106         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72107         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72108         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72109         (re_acquire_state, re_acquire_state_context, register_state):
72110         (create_ci_newstate, create_cd_newstate, free_state):
72111         Likewise.
72112         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72113         re_search_2):
72114         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72115         (re_search_internal, prune_impossible_nodes):
72116         (acquire_init_state_context, check_matching, static):
72117         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72118         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72119         (update_regs, sift_states_backward, build_sifted_states):
72120         (clean_state_log_if_needed, merge_state_array):
72121         (update_cur_sifted_state, add_epsilon_src_nodes):
72122         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72123         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72124         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72125         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72126         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72127         (check_arrival, check_arrival_add_next_nodes):
72128         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72129         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72130         (check_node_accept_bytes, check_node_accept, extend_buffers):
72131         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72132         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72133         (sift_ctx_init):
72134         Likewise.
72135
72136         * lib/regex_internal.h:
72137         (re_string_allocate, re_string_construct, re_string_reconstruct):
72138         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72139         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72140         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72141         (re_string_context_at, re_string_peek_byte_case):
72142         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72143         is defined, since we now use prototypes always.
72144
72145         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72146         C89 or better.  All uses removed.
72147
72148 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72149
72150         * config/srclist.txt: Add glibc bugs 1220-1227.
72151
72152 2005-08-20  Jim Meyering  <jim@meyering.net>
72153
72154         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72155         of unused local, dfa.
72156
72157 2005-08-20  Bruno Haible  <bruno@clisp.org>
72158
72159         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72160
72161 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72162
72163         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72164         (re_node_set_insert_last, re_dfa_add_node):
72165         Rename local variables to avoid GCC shadowing warnings.
72166
72167 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72168
72169         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72170         [defined lint]: Suppress bogus uninitialized-variable warnings.
72171
72172         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72173         and let the caller return REG_ESPACE if out of space.  This
72174         removes an uninitialied-variable warning with GCC 4.0.1, and also
72175         avoids taking the address of a local variable.  All callers
72176         changed.
72177
72178 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72179
72180         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72181         $LIBCSRC/posix/regexec.c.
72182         Add glibc bug 1217 for regcomp.c.
72183
72184 2005-08-19  Jim Meyering  <jim@meyering.net>
72185
72186         * lib/regexec.c (proceed_next_node): Redo local variables to
72187         avoid GCC shadowing warnings.
72188
72189 2005-08-18  Bruno Haible  <bruno@clisp.org>
72190
72191         * lib/strstr.c (strstr): Fix return value in multibyte case.
72192         * lib/strcasestr.c (strcasestr): Likewise.
72193
72194 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72195
72196         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72197
72198 2005-08-17  Jim Meyering  <jim@meyering.net>
72199
72200         Make the %s format (seconds since the epoch) work for a negative
72201         number and when used with a zero-padded field width, e.g. %015s.
72202
72203         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72204         label so that it precedes the code to set `digits'.  Otherwise,
72205         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72206         print `00-22'.  Now, it prints `-0022', as it should.
72207
72208 2005-08-17  Bruno Haible  <bruno@clisp.org>
72209
72210         * modules/strstr (Files): Add m4/mbrtowc.m4.
72211         (Depends-on): Add mbuiter.
72212
72213 2005-08-17  Bruno Haible  <bruno@clisp.org>
72214
72215         * modules/strcasestr: New file.
72216         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72217         strcasestr.
72218
72219 2005-08-17  Bruno Haible  <bruno@clisp.org>
72220
72221         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72222
72223 2005-08-17  Bruno Haible  <bruno@clisp.org>
72224
72225         * modules/mbuiter: New file.
72226         * MODULES.html.sh (Extended multibyte and wide character utilities):
72227         Add mbuiter.
72228
72229 2005-08-17  Bruno Haible  <bruno@clisp.org>
72230
72231         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72232         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72233
72234 2005-08-17  Bruno Haible  <bruno@clisp.org>
72235
72236         * m4/strcasestr.m4: New file.
72237
72238 2005-08-17  Bruno Haible  <bruno@clisp.org>
72239
72240         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72241         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72242
72243 2005-08-17  Bruno Haible  <bruno@clisp.org>
72244
72245         * lib/strcasestr.h: New file.
72246         * lib/strcasestr.c: New file.
72247
72248 2005-08-17  Bruno Haible  <bruno@clisp.org>
72249
72250         * lib/strcasecmp.c: Use mbuiter.h.
72251
72252 2005-08-17  Bruno Haible  <bruno@clisp.org>
72253
72254         * lib/mbuiter.h: New file.
72255
72256 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72257
72258         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72259         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72260         and gl_GETOPT are both invoked via different paths (as happens
72261         with GNU tar CVS because it uses both argp and getopt), the former
72262         wins.
72263
72264 2005-08-16  Bruno Haible  <bruno@clisp.org>
72265
72266         * modules/tls: New file.
72267         * MODULES.html.sh (Multithreading): Add tls.
72268
72269 2005-08-16  Bruno Haible  <bruno@clisp.org>
72270
72271         * modules/strnlen1: New file.
72272         * MODULES.html.sh (String handling): Add strnlen1.
72273
72274 2005-08-16  Bruno Haible  <bruno@clisp.org>
72275
72276         * modules/strcase (Files): Add m4/mbrtowc.m4.
72277         (Depends-on): Add strnlen1, mbchar.
72278
72279 2005-08-16  Bruno Haible  <bruno@clisp.org>
72280
72281         * modules/mbiter: New file.
72282         * MODULES.html.sh (Extended multibyte and wide character utilities):
72283         Add mbiter.
72284
72285 2005-08-16  Bruno Haible  <bruno@clisp.org>
72286
72287         * modules/mbfile: New file.
72288         * MODULES.html.sh (Extended multibyte and wide character utilities):
72289         Add mbfile.
72290
72291 2005-08-16  Bruno Haible  <bruno@clisp.org>
72292
72293         * modules/mbchar: New file.
72294         * MODULES.html.sh (Extended multibyte and wide character utilities):
72295         New section.
72296
72297 2005-08-16  Bruno Haible  <bruno@clisp.org>
72298
72299         * m4/tls.m4: New file, from GNU gettext.
72300
72301 2005-08-16  Bruno Haible  <bruno@clisp.org>
72302
72303         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72304         always.
72305         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72306
72307 2005-08-16  Bruno Haible  <bruno@clisp.org>
72308
72309         * m4/mbiter.m4: New file.
72310
72311 2005-08-16  Bruno Haible  <bruno@clisp.org>
72312
72313         * m4/mbfile.m4: New file.
72314
72315 2005-08-16  Bruno Haible  <bruno@clisp.org>
72316
72317         * m4/mbchar.m4: New file.
72318
72319 2005-08-16  Bruno Haible  <bruno@clisp.org>
72320
72321         * lib/tls.h: New file, from GNU gettext.
72322         * lib/tls.c: New file, from GNU gettext.
72323
72324 2005-08-16  Bruno Haible  <bruno@clisp.org>
72325
72326         * lib/strnlen1.h: New file.
72327         * lib/strnlen1.c: New file.
72328
72329 2005-08-16  Bruno Haible  <bruno@clisp.org>
72330
72331         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72332         (mbi_init): Update.
72333         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72334         NUL byte, not after it.
72335
72336 2005-08-16  Bruno Haible  <bruno@clisp.org>
72337
72338         * lib/strcase.h (strcasecmp): Add note in comments.
72339         * lib/strncasecmp.c: Use code from strcasecmp.c.
72340         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72341         (strcasecmp): Work correctly in multibyte locales.
72342
72343 2005-08-16  Bruno Haible  <bruno@clisp.org>
72344
72345         * lib/mbiter.h: New file.
72346
72347 2005-08-16  Bruno Haible  <bruno@clisp.org>
72348
72349         * lib/mbfile.h: New file.
72350
72351 2005-08-16  Bruno Haible  <bruno@clisp.org>
72352
72353         * lib/mbchar.h: New file.
72354         * lib/mbchar.c: New file.
72355
72356 2005-08-16  Bruno Haible  <bruno@clisp.org>
72357
72358         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72359         the valid ones. Makes the comparison operations transitive:
72360         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72361         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72362
72363 2005-08-15  Simon Josefsson  <jas@extundo.com>
72364
72365         * modules/ssize_t (License): Change to 'unlimited'.
72366
72367         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72368
72369 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72370
72371         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72372         Add comments for each pending glibc patch.
72373
72374 2005-08-15  Bruno Haible  <bruno@clisp.org>
72375
72376         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72377         __cplusplus is defined.
72378
72379 2005-08-14  Jim Meyering  <jim@meyering.net>
72380
72381         Sync from coreutils.
72382
72383         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72384         Use the hash-table-based cycle-detection code not just when
72385         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72386         Reported by James Youngman in
72387         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72388         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72389         FTS_TIGHT_CYCLE_CHECK.
72390         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72391         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72392         once again.
72393         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72394         * lib/fts.c (fd_safer): Remove decl.
72395         Include fcntl--.h rather than unistd-safer.h
72396         (fts_safe_changedir): Don't call fd_safer; no longer needed
72397         now that we include fcntl--.h.
72398
72399 2005-08-12  Simon Josefsson  <jas@extundo.com>
72400
72401         * modules/getndelim2: Use ssize_t module.
72402         * modules/getnline: Likewise.
72403         * modules/safe-read: Likewise.
72404         * modules/xreadlink: Likewise.
72405
72406         * modules/ssize_t: New file.
72407
72408 2005-08-12  Simon Josefsson  <jas@extundo.com>
72409
72410         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72411
72412 2005-08-12  Simon Josefsson  <jas@extundo.com>
72413
72414         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72415         ssize_t.
72416
72417 2005-08-12  Simon Josefsson  <jas@extundo.com>
72418
72419         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72420         readline, getdelim and check_version.
72421         (Support for systems lacking ISO C 99: Sizes of integer types):
72422         Add size_max.
72423
72424 2005-08-12  Bruno Haible  <bruno@clisp.org>
72425
72426         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72427
72428 2005-08-11  Simon Josefsson  <jas@extundo.com>
72429
72430         * modules/readline: New file.
72431
72432         * modules/strnlen (Files): Add strnlen.h.
72433
72434 2005-08-11  Simon Josefsson  <jas@extundo.com>
72435
72436         * m4/readline.m4: New file.
72437
72438 2005-08-11  Simon Josefsson  <jas@extundo.com>
72439
72440         * lib/readline.h, readline.c: New file.
72441
72442 2005-08-11  Simon Josefsson  <jas@extundo.com>
72443
72444         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72445         gl_AVOID.
72446
72447 2005-08-11  Bruno Haible  <bruno@clisp.org>
72448
72449         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72450
72451 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72452
72453         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72454
72455 2005-08-10  Simon Josefsson  <jas@extundo.com>
72456
72457         * tests/test-iconvme.c: New file.
72458
72459 2005-08-10  Simon Josefsson  <jas@extundo.com>
72460
72461         * m4/strnlen.m4: New file.
72462
72463         * m4/strndup.m4: Don't check for strnlen declaration, done in
72464         strnlen.m4.
72465
72466 2005-08-10  Simon Josefsson  <jas@extundo.com>
72467
72468         * lib/strndup.c: Use strnlen.h.
72469
72470         * lib/strnlen.h: New file.
72471
72472 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72473
72474         * README: Typos.
72475
72476 2005-08-02  Simon Josefsson  <jas@extundo.com>
72477
72478         * modules/readline: New file.
72479
72480 2005-08-02  Simon Josefsson  <jas@extundo.com>
72481
72482         * modules/getdelim: New file.
72483
72484         * modules/getline: Rewrite, don't use getndelim2.
72485
72486 2005-08-02  Simon Josefsson  <jas@extundo.com>
72487
72488         * m4/getline.m4: Separate out getdelim stuff into separate module.
72489
72490         * m4/getdelim.m4: New file.
72491
72492 2005-08-02  Simon Josefsson  <jas@extundo.com>
72493
72494         * lib/getline.h, getline.c: Rewrite.
72495
72496         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72497
72498 2005-07-31  Bruno Haible  <bruno@clisp.org>
72499
72500         * lib/lock.h (gl_lock_initializer): New macro.
72501         (gl_lock_define_initialized): Use it.
72502         (gl_rwlock_initializer): New macro.
72503         (gl_rwlock_define_initialized): Use it.
72504         (gl_recursive_lock_initializer): New macro.
72505         (gl_recursive_lock_define_initialized): Use it.
72506
72507 2005-07-30  Karl Berry  <karl@gnu.org>
72508
72509         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72510         Report from Ben Pfaff, regarding getopt.
72511
72512 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72513
72514         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72515         normal way.
72516         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72517         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72518         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72519         (gl_GETOPT): Use the new macros.  Most of the implementation
72520         is moved to the new macros.  This is for programs like Emacs
72521         that don't want all the functionality of gl_GETOPT.
72522
72523 2005-07-26  Bruno Haible  <bruno@clisp.org>
72524
72525         * m4/lock.m4: Update from GNU gettext.
72526
72527 2005-07-26  Bruno Haible  <bruno@clisp.org>
72528
72529         * lib/lock.h: Update from GNU gettext.
72530         * lib/lock.c: Update from GNU gettext.
72531
72532 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72533
72534         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72535         obsolescent AC_TRY_RUN.  Include the default includes files, for
72536         'exit'.
72537
72538 2005-07-24  Bruno Haible  <bruno@clisp.org>
72539
72540         * modules/visibility: New file.
72541         * MODULES.html.sh (Misc): Add visibility.
72542
72543 2005-07-24  Bruno Haible  <bruno@clisp.org>
72544
72545         * m4/visibility.m4: New file.
72546
72547 2005-07-24  Bruno Haible  <bruno@clisp.org>
72548
72549         * doc/visibility.texi: New file.
72550
72551 2005-07-22  Bruno Haible  <bruno@clisp.org>
72552
72553         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72554         $(ALLOCA_H), redundant through BUILT_SOURCES.
72555         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72556         redundant through BUILT_SOURCES.
72557         * modules/byteswap (Makefile.am): Remove explicit dependency on
72558         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72559         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72560         $(FNMATCH_H), redundant through BUILT_SOURCES.
72561         * modules/getopt (Makefile.am): Remove explicit dependency on
72562         $(GETOPT_H), redundant through BUILT_SOURCES.
72563         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72564         redundant through BUILT_SOURCES.
72565         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72566         redundant through BUILT_SOURCES.
72567         * modules/stdbool (Makefile.am): Remove explicit dependency on
72568         $(STDBOOL_H), redundant through BUILT_SOURCES.
72569         * modules/stdint (Makefile.am): Remove explicit dependency on
72570         $(STDINT_H), redundant through BUILT_SOURCES.
72571         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72572         Remove explicit dependency on $(SYSEXITS_H).
72573         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72574
72575 2005-07-18  Simon Josefsson  <jas@extundo.com>
72576
72577         * lib/check-version.c (check_version): Accept identical versions too.
72578
72579 2005-07-18  Bruno Haible  <bruno@clisp.org>
72580
72581         * modules/lock: New file.
72582         * MODULES.html.sh (Multithreading): New section.
72583
72584 2005-07-18  Bruno Haible  <bruno@clisp.org>
72585
72586         * m4/lock.m4: New file, from GNU gettext.
72587
72588 2005-07-18  Bruno Haible  <bruno@clisp.org>
72589
72590         * lib/lock.h: New file, from GNU gettext.
72591         * lib/lock.c: New file, from GNU gettext.
72592
72593 2005-07-18  Bruno Haible  <bruno@clisp.org>
72594
72595         * lib/lock.h (gl_once_t): New type.
72596         (gl_once_define, gl_once): New macros.
72597         * lib/lock.c (fresh_once): New variable.
72598         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72599         functions.
72600
72601 2005-07-16  Simon Josefsson  <jas@extundo.com>
72602
72603         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72604         workaround, suggested by Bruno.
72605
72606 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         * modules/xalloc (Depends-on): Add xalloc-die.
72609         * modules/xvasprintf (Depends-on): Add xalloc-die.
72610
72611 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72612
72613         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72614         with a minor change.
72615
72616 2005-07-15  Bruno Haible  <bruno@clisp.org>
72617
72618         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72619         When using lib/poll.c, define poll as rpl_poll.
72620
72621 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72622
72623         * modules/argp (Depends-on): Remove unlocked-io.
72624
72625 2005-07-14  Derek Price  <derek@ximbiot.com>
72626
72627         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72628         for glob symlink bug.
72629
72630 2005-07-14  Bruno Haible  <bruno@clisp.org>
72631
72632         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72633         Instead, test for *_unlocked function declarations directly.
72634
72635 2005-07-11  Simon Josefsson  <jas@extundo.com>
72636
72637         * modules/size_max: New file.
72638
72639         * modules/xsize: Depend on size_max module for size_max.m4.
72640
72641 2005-07-11  Simon Josefsson  <jas@extundo.com>
72642
72643         * lib/size_max.h: New file.
72644
72645 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72646
72647         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72648         copyright symbol and the year.
72649         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72650         (version_etc_va): Use parameterized copyright notice.
72651         Reword to conform to the current GNU coding standards.
72652
72653 2005-07-11  Karl Berry  <karl@gnu.org>
72654
72655         * doc/gnulib.texi (Quoting): new node.
72656         (Initial import): more info, from Patrice.
72657
72658 2005-07-11  Bruno Haible  <bruno@clisp.org>
72659
72660         * gnulib-tool (func_usage): Document option --avoid.
72661         (Command line options): Handle --avoid.
72662         (func_acceptable): New function.
72663         (func_modules_transitive_closure): Use it.
72664
72665 2005-07-11  Bruno Haible  <bruno@clisp.org>
72666
72667         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72668         Reported by Jim Meyering.
72669
72670 2005-07-10  Bruno Haible  <bruno@clisp.org>
72671
72672         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72673         Needed when size_t is smaller than 'unsigned int'.
72674         Reported by Paul Eggert.
72675
72676 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72677
72678         * modules/argp (Depends-on): Add unlocked-io
72679
72680 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72681
72682         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72683         block of defines.
72684
72685 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72688         fix now.
72689
72690 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72691         and Paul Eggert  <eggert@cs.ucla.edu>
72692
72693         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72694         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72695
72696 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72697
72698         * modules/regex (Files): Add lib/regex_internal.c,
72699         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72700         (Depends-on): Add extensions.
72701         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72702
72703 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72704
72705         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72706         pathconf.
72707         * m4/same.m4 (gl_SAME): Likewise.
72708         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72709
72710         * m4/regex.m4: Adjust to new libc regex implementation.
72711         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72712         all the .c and .h parts of (the new) regex.
72713         Quote the m4 stuff better.
72714         Check for RE_ICASE bug of old gnulib.
72715         Check for REG_STARTEND of recent libc.
72716         Rename local variables from jm_* to gl_*.
72717         Quote operand of "test -f".
72718         Say "recent enough" version of libc, not "version 2".
72719         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72720         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72721         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72722         Remove check for btowc, isascii.
72723         Require AM_LANGINFO_CODESET.
72724
72725 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72726
72727         * lib/regex.c, regex.h: Sync from libc.
72728         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72729         * lib/regexec.c:
72730         New files, synced from libc, except that regex_internal.h
72731         currently has a small porting fix.
72732
72733 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72734
72735         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72736         regex_internal.c, regexec.c.
72737         Add regex_internal.h too, but as a comment, since the libc version
72738         is currently broken in gnulib mode.
72739
72740 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         Support programs like Emacs that use gnulib but not gettext.
72743         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72744         * modules/gettext-h: New file.
72745         * modules/gettext (Files): Remove lib/gettext.h.
72746         (Depends-on): Add gettext-h.
72747         (Makefile.am): Remove lib_SOURCES.
72748         * modules/argmatch, modules/c-stack, modules/closeout:
72749         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72750         * modules/execute, modules/file-type, modules/getaddrinfo:
72751         * modules/getopt, modules/human, modules/javacomp:
72752         * modules/javaexec, modules/mkdir-p, modules/obstack:
72753         * modules/openat, modules/pagealign_alloc, modules/pipe:
72754         * modules/quotearg, modules/regex, modules/rpmatch:
72755         * modules/unicodeio, modules/userspec, modules/version-etc:
72756         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72757         * modules/xsetenv:
72758         Depend on gettext-h, not gettext.
72759
72760 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72761
72762         * gnulib-tool (func_import): Add support for 'public domain' license.
72763         * modules/alloca, modules/atexit, modules/memmove:
72764         Now public domain, not GPL.
72765         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72766         * modules/realloc, modules/strerror, modules/strtod:
72767         Now LGPL, not GPL.
72768
72769 2005-07-05  Bruno Haible  <bruno@clisp.org>
72770
72771         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72772         autoconf CVS. Needed for mingw.
72773
72774 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72775
72776         Remove the dependency of the strftime module on the tzset module.
72777         * modules/strftime (Depends-on): Remove dependency on tzset.
72778
72779 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72780
72781         Remove the dependency of the strftime module on the tzset module.
72782         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72783         gl_FUNC_TZSET_CLOBBER.
72784
72785 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         Remove the dependency of the strftime module on the tzset module.
72788         * lib/strftime.c (my_strftime)
72789         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72790         Copy the input structure, to work around some of the bug with
72791         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72792         Solaris releases, you should also use the tzset module, but we won't
72793         require it as a dependency any more since we don't want LGPLed code
72794         to depend on GPLed code.
72795
72796 2005-07-02  Jim Meyering  <jim@meyering.net>
72797
72798         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72799         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72800         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72801         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72802
72803 2005-07-02  Jim Meyering  <jim@meyering.net>
72804
72805         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72806
72807 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72808
72809         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72810         declares only 'struct timespec;' (!).
72811
72812 2005-07-01  Jim Meyering  <jim@meyering.net>
72813
72814         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72815         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72816         * lib/save-cwd.c, tempname.c:
72817         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72818         and don't include <sys/file.h>).
72819
72820 2005-06-29  Jim Meyering  <jim@meyering.net>
72821
72822         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72823         type name.  Use the variable name instead.
72824         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72825         Likewise.
72826
72827 2005-06-28  Simon Josefsson  <jas@extundo.com>
72828
72829         * modules/check-version (Files): Add check-version.m4.
72830
72831 2005-06-28  Simon Josefsson  <jas@extundo.com>
72832
72833         * m4/check-version.m4: New file, suggested by Jim Meyering
72834         <jim@meyering.net>.
72835
72836 2005-06-28  Simon Josefsson  <jas@extundo.com>
72837
72838         * lib/check-version.h, lib/check-version.c: New files.
72839
72840 2005-06-28  Simon Josefsson  <jas@extundo.com>
72841
72842         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72843         collision with global variable.  Better indentation.  Don't
72844         increment buffer pointer beyond buffer end.  Based on comments
72845         from Paul Eggert <eggert@cs.ucla.edu>.
72846
72847         * lib/base64.h: Indent.
72848
72849 2005-06-28  Simon Josefsson  <jas@extundo.com>
72850
72851         * doc/gnulib.texi (Library version handling): New section.
72852
72853 2005-06-28  Jim Meyering  <jim@meyering.net>
72854
72855         * check-module (find_included_lib_files): Hard-code another
72856         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72857         but modules/fts-lgpl (correctly) does not list those files.
72858
72859         * modules/canonicalize (Files): Add lib/pathmax.h.
72860
72861 2005-06-25  Simon Josefsson  <jas@extundo.com>
72862
72863         * modules/check-version: New file.
72864
72865 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72868         initializer of struct addrinfo, as an indication that we don't
72869         care how many members the structure has.
72870
72871 2005-06-24  Derek Price  <derek@ximbiot.com>
72872         and Bruno Haible  <bruno@clisp.org>
72873
72874         Remove stat module & update lstat.
72875         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72876         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72877         * m4/stat.m4: Remove this file.
72878
72879 2005-06-24  Derek Price  <derek@ximbiot.com>
72880         and Bruno Haible  <bruno@clisp.org>
72881
72882         Remove stat module & update lstat.
72883         * lib/stat.c: Remove this file...
72884         (slash_aware_lstat): ...moving this content and its support...
72885         * lib/lstat.c (rpl_lstat): ...into here.
72886         * lib/lstat.h: New file.
72887
72888 2005-06-24  Derek Price  <derek@ximbiot.com>
72889         and Bruno Haible  <bruno@clisp.org>
72890
72891         Remove stat module & update lstat.
72892         * config/srclist.txt (libc sources): Remove stat.
72893
72894 2005-06-24  Derek Price  <derek@ximbiot.com>
72895         and Bruno Haible  <bruno@clisp.org>
72896
72897         Remove stat module & update lstat.
72898         * MODULES.html.sh (stat): Remove.
72899         * MODULES.html: Regenerated.
72900         * modules/lstat (Description): Correct function name.
72901         (Files): Add "lstat.h".
72902         (Depends-on): Remove stat, add xalloc, stat-macros.
72903         * modules/stat: Remove this file.
72904         (Include): Add "lstat.h", remove <sys/stat.h>.
72905
72906 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72907
72908         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72909         (ranged_convert): Don't save conversion in a temporary struct.
72910         This causes a warning with GCC 4.0.0, and anyway in the typical
72911         case it's not worth the extra 100 bytes or so of code.
72912         (ranged_convert, __mktime_internal): When calling a function via a
72913         pointer P, use P () rather than (*P) (), as we now assume C89 or
72914         better.
72915
72916 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72917
72918         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72919         "who -r" failed to give output.  Problem reported by Tim Waugh.
72920
72921         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72922         (xcalloc): Use it to avoid needless tests.
72923         Problem reported by Jim Meyering.
72924
72925 2005-06-20  Derek Price  <derek@ximbiot.com>
72926
72927         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72928         unnecessary for Autoconfs > 2.59c.
72929
72930 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72931
72932         * lib/argp.h (__option_is_short): Check upper limit of
72933         __key. Isprint() requires its argument to have the value
72934         of an unsigned char or EOF.
72935
72936 2005-06-16  Jim Meyering  <jim@meyering.net>
72937
72938         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72939         when either N or S is zero.
72940
72941 2005-06-16  Derek Price  <derek@ximbiot.com>
72942
72943         * m4/bison.m4: Declare YACC & YFLAGS precious.
72944
72945 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72946
72947         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72948         multibyte string or pattern, fall back on unibyte matching.
72949         Problem reported by James Youngman.
72950
72951 2005-06-08  Bruno Haible  <bruno@clisp.org>
72952
72953         * modules/csharpcomp: New file.
72954         * MODULES.html.sh (C#): Add csharpcomp.
72955
72956 2005-06-08  Bruno Haible  <bruno@clisp.org>
72957
72958         * m4/csharpcomp.m4: New file, from GNU gettext.
72959
72960 2005-06-08  Bruno Haible  <bruno@clisp.org>
72961
72962         * lib/csharpcomp.h: New file, from GNU gettext.
72963         * lib/csharpcomp.c: New file, from GNU gettext.
72964         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72965
72966 2005-06-08  Bruno Haible  <bruno@clisp.org>
72967
72968         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72969         warning on mingw.
72970
72971 2005-06-07  Derek Price  <derek@ximbiot.com>
72972
72973         Sync from CVS.
72974         * lib/glob_.h: Indent nested #ifdef.
72975
72976 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72977
72978         Sync from coreutils.
72979         Use "file name" when talking about file names, instead of "filename"
72980         or "path", as per the GNU coding standards.
72981         * lib/mkdir-p.c: Renamed from makepath.c.
72982         (make_dir_parents): Renamed from make_path.  All callers changed.
72983         * lib/mkdir-p.h: Likewise.  All includers changed.
72984         * lib/filenamecat.c: Renamed from path-concat.c.
72985         (file_name_concat): Renamed from path_concat.  All callers changed.
72986         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72987         * lib/filenamecat.h: Likewise.  All includers changed.
72988         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72989         in comments or local variable names.
72990         * lib/basename.c: Likewise.
72991         * lib/canonicalize.c, canonicalize.h: Likewise.
72992         * lib/dirname.c, dirname.h: Likewise.
72993         * lib/euidaccess.c: Likewise.
72994         * lib/exclude.c: Likewise
72995         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72996         * lib/fsusage.c, fsuage.h: Likewise.
72997         * lib/fts.c, fts_.h: Likewise.
72998         * lib/getcwd.c: Likewise.
72999         * lib/getloadavg.c: Likewise.
73000         * lib/mkstemp.c: Likewise.
73001         * lib/mountlist.c, mountlist.h: Likewise.
73002         * lib/openat.c, openat.h: Likewise.
73003         * lib/readlink-stub.c: Likewise.
73004         * lib/readutmp.c, readutmp.h: Likewise.
73005         * lib/rename.c: Likewise.
73006         * lib/rmdir.c: Likewise.
73007         * lib/same.c: Likewise.
73008         * lib/savedir.c: Likewise.
73009         * lib/stripslash.c: Likewise.
73010         * lib/tempname.c: Likewise.
73011         * lib/xreadlink.c: Likewise.
73012         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73013         All uses changed.
73014         * lib/exclude.h: Likewise.
73015
73016         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73017         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73018         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73019         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73020         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73021         files have been getting away with it for years (MORE/BSD 4.3
73022         is extinct now).
73023         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73024         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73025
73026         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73027         Define to 256, not 255, as per modern POSIX.
73028
73029 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73030
73031         Sync from coreutils.
73032         Use "file name" when talking about file names, instead of "filename"
73033         or "path", as per the GNU coding standards.
73034         * MODULES.html.sh: mkdir-p renamed from makepath.
73035         filenamecat renamed from path-concat.
73036         * modules/filenamecat: Renamed from modules/path-concat.
73037         (Files): filenamecat.h and filenamecat.c renamed from
73038         path-concat.h and path-concat.c.
73039         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73040         (Include): filenamecat.h, not path-concat.h.
73041         * modules/mkdir-p: Renamed from modules/makepath.
73042         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73043         makepath.c.
73044         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73045         (Include): mkdir-p.h, not makepath.h.
73046
73047 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         Sync from coreutils.
73050         * m4/mkdir-p.m4: Renamed from makepath.m4.
73051         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73052         Rename files from makepath.c to mkdir-p.c, and from
73053         makepath.h to mkdir-p.h.
73054         * m4/filenamecat.m4: Renamed from path-concat.m4.
73055         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73056         Rename files from path-concat.c to filenamecat.c,
73057         and from path-concat.h to filenamecat.h.
73058         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73059         "file name" in local variables or comments.
73060         * m4/rename.m4: Likewise.
73061
73062 2005-06-01  Bruno Haible  <bruno@clisp.org>
73063
73064         * modules/csharpexec: New file.
73065         * MODULES.html.sh (C#): New section.
73066
73067 2005-06-01  Bruno Haible  <bruno@clisp.org>
73068
73069         * m4/csharp.m4: New file, from GNU gettext.
73070         * m4/csharpexec.m4: New file, from GNU gettext.
73071
73072 2005-06-01  Bruno Haible  <bruno@clisp.org>
73073
73074         * lib/csharpexec.h: New file, from GNU gettext.
73075         * lib/csharpexec.c: New file, from GNU gettext.
73076         * lib/csharpexec.sh.in: New file, from GNU gettext.
73077
73078 2005-05-31  Derek Price  <derek@ximbiot.com>
73079             Paul Eggert  <eggert@cs.ucla.edu>
73080
73081         Sync from cvs.
73082         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73083
73084 2005-05-31  Derek Price  <derek@ximbiot.com>
73085             Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         Sync from cvs.
73088         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73089
73090 2005-05-29  Derek Price  <derek@ximbiot.com>
73091
73092         * config/srclist.txt (glob_.h, glob.c): Add these files.
73093
73094 2005-05-29  Derek Price  <derek@ximbiot.com>
73095
73096         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73097         * modules/glob: New file.
73098         * modules/getlogin_r: Add link to POSIX spec in description.
73099
73100 2005-05-29  Derek Price  <derek@ximbiot.com>
73101             Paul Eggert  <eggert@cs.ucla.edu>
73102
73103         * m4/glob.m4: New file.
73104
73105 2005-05-29  Derek Price  <derek@ximbiot.com>
73106             Paul Eggert  <eggert@cs.ucla.edu>
73107
73108         * lib/glob_.h, lib/glob.c: New files.
73109
73110 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73111
73112         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73113         * modules/fts-lgpl (Depends-on): Remove gettext.
73114
73115 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73116
73117         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73118         and don't require gt_INTTYPES_PRI.
73119
73120 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73121
73122         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73123
73124         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73125         the configuration hassle isn't worth it.
73126         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73127         (LONGEST_MODIFIER, PRIuMAX): Remove.
73128
73129 2005-05-27  Bruno Haible  <bruno@clisp.org>
73130
73131         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73132
73133 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73134
73135         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73136         _POSIX_PTHREAD_SEMANTICS for Solaris.
73137
73138 2005-05-25  Derek Price  <derek@ximbiot.com>
73139
73140         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73141
73142 2005-05-25  Derek Price  <derek@ximbiot.com>
73143             Paul Eggert  <eggert@cs.ucla.edu>
73144
73145         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73146         * lib/getlogin_r.c, getlogin_r.h: New files.
73147
73148 2005-05-25  Bruno Haible  <bruno@clisp.org>
73149             Derek Price  <derek@ximbiot.com>
73150
73151         * lib/getlogin_r.h: Simplify API documentation.
73152
73153 2005-05-23  Derek Price  <derek@ximbiot.com>
73154
73155         * modules/minmax (Files): Add m4/minmax.m4.
73156         (configure.ac): Add gl_MINMAX.
73157
73158 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73159
73160         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73161         so that unistd-safer.h (GPL'ed code) need not be included.
73162
73163 2005-05-22  Bruno Haible  <bruno@clisp.org>
73164
73165         * m4/minmax.m4: New file.
73166         Based on a patch by Derek Price <derek@ximbiot.com>.
73167
73168 2005-05-22  Bruno Haible  <bruno@clisp.org>
73169
73170         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73171         (INT64_MIN): Fix definition.
73172         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73173
73174         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73175         NEED_SIGNED_INT_TYPES.
73176
73177         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73178         HAVE_SYSTEM_INTTYPES.
73179
73180 2005-05-22  Bruno Haible  <bruno@clisp.org>
73181
73182         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73183         Also include <sys/param.h> if it defines MIN, MAX.
73184         Based on a patch by Derek Price <derek@ximbiot.com>.
73185
73186 2005-05-21  Jim Meyering  <jim@meyering.net>
73187
73188         * modules/fts (Files): Add m4/inttypes-pri.m4.
73189         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73190
73191 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73192
73193         New fts module.
73194         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73195         (setup_dir, free_dir): New functions.
73196         (enter_dir, leave_dir): Define trivial
73197         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73198         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73199         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73200         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73201         Move to fts-cycle.c.
73202         (fts_open): Use setup_dir.
73203         (fts_close): Use free_dir.
73204         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73205         This adds a label and some gotos, but the alternatives were messier.
73206         Check for memory allocation failure when entering a dir.
73207         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73208         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73209         (FTS): New member fts_cycle, that is a union that contains the
73210         old active_dir_ht and cycle_state.  All uses changed to mention
73211         fts_cycle.ht and fts_cycle.state.
73212         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73213         fts.c, with the following changes:
73214         (setup_dir, free_dir): New functions.
73215         (enter_dir): Now returns bool.  Return true if successful, false
73216         if memory exhausted.  All callers changed.
73217         Do not bother partly cleaning up on
73218         memory allocation failure; that is free_dir's job.
73219         However, free ad if hash_insert fails, to avoid memory leak.
73220         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73221         fts->fts_options to see which union member to use.
73222
73223 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73224
73225         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73226         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73227
73228 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73229
73230         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73231
73232 2005-05-20  Jim Meyering  <jim@meyering.net>
73233
73234         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73235         Now a macro, to pacify GCC.
73236
73237 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73238
73239         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73240         of -1.
73241
73242 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73243
73244         * lib/chown.c (rpl_chown): Return -1 on failure.
73245
73246 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73247
73248         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73249         Don't check for stddef.h.
73250         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73251         don't use its results.
73252         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73253         since we include them unconditionally.  Don't require
73254         AM_STDBOOL_H, since stdbool is a prerequisite.
73255         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73256         since we assume C89 or better.
73257         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73258         as we don't use their results.
73259         Don't check for fchdir, memmove, memset, strrchr, as we use
73260         them unconditionally.
73261         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73262         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73263
73264 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73265
73266         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73267         Include <stddef.h> unconditionally, since we assume C89 now.
73268         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73269         * lib/fts.c: Include fts_.h first, to check interface.
73270         Do not include intprops.h; no longer needed.
73271         Include cycle-check.h and hash.h, since fts_.h no longer does.
73272         Remove unnecessary casts of closedir to void.
73273         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73274         decide whether to decrement nlinks.
73275         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73276         (FTS): Use struct hash_table * instead of Hash_table, so that
73277         we no longer need to include hash.h here.
73278
73279 2005-05-18  Jim Meyering  <jim@meyering.net>
73280
73281         * modules/dirfd (License): Change to LGPL.  Most of the code
73282         is already in the public domain.
73283
73284 2005-05-18  Jim Meyering  <jim@meyering.net>
73285
73286         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73287         Reported by Yoann Vandoorselaere.
73288
73289 2005-05-17  Jim Meyering  <jim@meyering.net>
73290
73291         * m4/fts.m4: New file, from coreutils.
73292
73293 2005-05-17  Jim Meyering  <jim@meyering.net>
73294
73295         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73296
73297 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73298
73299         Sync from coreutils.
73300         * m4/unlinkdir.m4: New file.
73301
73302 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         Sync from coreutils.
73305         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73306         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73307         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73308         White space changes only.
73309         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73310         special.
73311         * lib/yesno.c: Include getline.h, not ctype.h.
73312         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73313         Use getline to remove arbitrary restriction on response length.
73314
73315 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73316
73317         * config/srclist-update: Spell out "Street" in FSF postal
73318         mail address; this is the style the FSF seems to prefer.
73319
73320         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73321         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73322         this updates FSF postal mail address.
73323
73324         Sync from coreutils.
73325         * modules/unlinkdir: New file.
73326         * modules/yesno (Depends-on): Add getline.
73327         * MODULES.html.sh (File system functions): Add unlinkdir.
73328
73329 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73330
73331         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73332         lib/strsep.h:
73333         Change the initial comment to refer to GPL, not LGPL.
73334         gnulib-tool will change it to LGPL as needed.
73335
73336         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73337         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73338         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73339         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73340         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73341         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73342         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73343         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73344         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73345         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73346         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73347         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73348         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73349         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73350         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73351         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73352         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73353         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73354         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73355         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73356         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73357         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73358         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73359         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73360         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73361         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73362         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73363         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73364         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73365         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73366         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73367         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73368         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73369         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73370         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73371         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73372         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73373         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73374         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73375         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73376         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73377         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73378         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73379         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73380         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73381         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73382         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73383         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73384         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73385         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73386         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73387         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73388         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73389         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73390         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73391         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73392         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73393         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73394         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73395         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73396         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73397         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73398         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73399         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73400         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73401         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73402         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73403         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73404         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73405         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73406         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73407         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73408         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73409         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73410         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73411         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73412         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73413         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73414         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73415         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73416         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73417         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73418         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73419         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73420         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73421         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73422         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73423         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73424         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73425         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73426         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73427         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73428         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73429         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73430         lib/yesno.c, lib/yesno.h:
73431         Update FSF postal mail address.
73432
73433 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73434
73435         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73436         tests/test-memmem.c, tests/test-stpncpy.c:
73437         Update FSF postal mail address.
73438
73439 2005-05-13  Bruno Haible  <bruno@clisp.org>
73440
73441         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73442         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73443         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73444         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73445         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73446         Add support for 64-bit integers in the MSVC compiler.
73447
73448 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73449
73450         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73451
73452 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73453
73454         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73455
73456 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73457
73458         * doc/getdate.texi (General date syntax): Don't say that date
73459         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73460         Problem reported by Nic Ferrier.
73461
73462 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73463
73464         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73465         specified in ai_socktype. Fix invalid ai_protocol
73466         check. ai_protocol is usually set to 0 or depending on
73467         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73468         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73469         ai_socktype / ai_protocol in the returned addrinfo structure.
73470
73471 2005-05-10  Simon Josefsson  <jas@extundo.com>
73472
73473         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73474         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73475
73476 2005-05-10  Karl Berry  <karl@gnu.org>
73477
73478         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73479         (from http://www.gnu.org/licenses).
73480         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73481         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73482         fdl.texi suffices.
73483
73484 2005-05-10  Karl Berry  <karl@gnu.org>
73485
73486         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73487         (COPYING.DOC): remove.
73488
73489         * config/srclist-update: new FSF address.
73490
73491 2005-05-10  Derek Price  <derek@ximbiot.com>
73492
73493         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73494         possible.
73495
73496 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73497             Bruno Haible  <bruno@clisp.org>
73498
73499         * modules/inet_ntop: New file.
73500         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73501         inet_ntop.
73502
73503 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73504             Bruno Haible  <bruno@clisp.org>
73505
73506         * m4/inet_ntop.m4: New file.
73507
73508 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73509             Bruno Haible  <bruno@clisp.org>
73510
73511         * lib/inet_ntop.h: New file.
73512         * lib/inet_ntop.c: New file, from glibc with modifications.
73513
73514 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73515
73516         * modules/time_r (License): Change to LGPL.
73517         * modules/extensions (License): Change to LGPL.  Actually,
73518         the license is more permissive than that, but currently gnulib-tool
73519         doesn't know how to handle more-permissive licenses.
73520
73521         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73522         Problem reported by Dave Love.
73523
73524 2005-05-08  Jim Meyering  <jim@meyering.net>
73525
73526         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73527         blank.
73528
73529 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * modules/argmatch (Depends-on): Add stdbool.
73532         * modules/backupfile (Depends-on): Likewise.
73533         * modules/chdir-long (Depends-on): Likewise.
73534         * modules/closeout (Depends-on): Likewise.
73535         * modules/cycle-check (Depends-on): Likewise.
73536         * modules/dirname (Depends-on): Likewise.
73537         * modules/fnmatch (Depends-on): Likewise.
73538         * modules/fsusage (Depends-on): Likewise.
73539         * modules/fwriteerror (Depends-on): Likewise.
73540         * modules/getcwd (Depends-on): Likewise.
73541         * modules/getloadavg (Depends-on): Likewise.
73542         * modules/hard-locale (Depends-on): Likewise.
73543         * modules/makepath (Depends-on): Likewise.
73544         * modules/mountlist (Depends-on): Likewise.
73545         * modules/nanosleep (Depends-on): Likewise.
73546         * modules/posixtm (Depends-on): Likewise.
73547         * modules/quotearg (Depends-on): Likewise.
73548         * modules/readtokens (Depends-on): Likewise.
73549         * modules/readtokens0 (Depends-on): Likewise.
73550         * modules/readutmp (Depends-on): Likewise.
73551         * modules/save-cwd (Depends-on): Likewise.
73552         * modules/strftime (Depends-on): Likewise.
73553         * modules/userspec (Depends-on): Likewise.
73554         * modules/utimecmp (Depends-on): Likewise.
73555         * modules/xgetcwd (Depends-on): Likewise.
73556         * modules/xnanosleep (Depends-on): Likewise.
73557         * modules/xstrtod (Depends-on): Likewise.
73558         * modules/yesno (Depends-on): Likewise.
73559
73560 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73561
73562         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73563         needless checks.
73564
73565 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73566
73567         Merge from coreutils.  Among other things,
73568         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73569         * lib/fd-safer.c: New file.
73570         * lib/fcntl-safer.h, open-safer.c: Remove.
73571         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73572         * lib/dup-safer.c: Include unistd-safer.h first.
73573         Don't include errno.h.
73574         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73575         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73576         * lib/file-type.c: Rely on file-type.h change.
73577         * lib/getloadavg.c: Include unistd-safer.h.
73578         (getloadavg): Use safer open.
73579         * lib/getusershell.c: Include "stdio-safer.h".
73580         (getusershell): Use safer fopen.
73581         * lib/long-options.c (long_options): Use NULL rather than 0.
73582         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73583         'free'.
73584         * lib/modechange.c: Likewise.
73585         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73586         (MODE_DONE): New constant.
73587         (struct mode_change): Remove 'next' member.
73588         (make_node_op_equals): New function; like the old one of the
73589         same name, except it allocates an array.
73590         (mode_compile, mode_create_from_ref): Use it.
73591         (mode_compile): Allocate result as an array, not a linked list.
73592         Parse octal string ourself, so that we catch mistakes like "+0".
73593         (mode_adjust): Arg is an array, not a linked list.
73594         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73595         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73596         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73597         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73598         Remove.  This is now stat-macros.h's job.
73599         (talloc): Remove.  All callers replaced by xalloc, so that
73600         our invokers don't have to worry about reporting memory failures.
73601         (make_node_op_equals): Remove.
73602         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73603         New constants.
73604         (struct mode_change): Moved here from modechange.h.
73605         (mode_append_entry): Remove.
73606         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73607         apps to have incorrect behavior.  Use simpler algorithm for head
73608         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73609         Detect more invalid usages rather than having somewhat-random behavior.
73610         Don't insert an "a=" action, as that leads to incorrect behavior.
73611         (mode_compile, mode_create_from_ref): Return NULL on error instead
73612         of an enum, since now there's only one way to have an error.  All
73613         callers changed.
73614         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73615         at the correct time.  Simplify calculation of "+u" and its ilk.
73616         Don't mishandle "+X".
73617         (mode_free): Remove "register" and localize decls.
73618         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73619         (struct mode_change): Move to modechange.c; callers don't
73620         need to see this stuff.
73621         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73622         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73623         (mode_change, mode_adjust): Reflect the new signatures noted above.
73624         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73625         that might redefine system include files.
73626         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73627         (my_usleep): Use NULL rather than (void *) 0.
73628         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73629         Use siginterrupt to specify that system calls should be interrupted.
73630         (rpl_nanosleep): Move initialization of suspended closer to call of
73631         my_usleep.
73632         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73633         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73634         (desirable_utmp_entry): New function.
73635         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73636         using x2nrealloc, to simplify logic.
73637         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73638         size calculation.  Do not assume utmp file is a regular file.
73639         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73640         (READ_UTMP_CHECK_PIDS): New constant.
73641         * lib/save-cwd.c: Include unistd-safer.h.
73642         (save_cwd): Use fd_safer.
73643         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73644         [!_LIBC] Include "stat-macros.h" instead.
73645         * lib/unistd-safer.h (fd_safer): New decl.
73646
73647 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73648
73649         * modules/getloadavg (Depends-on): Add unistd-safer.
73650         * modules/getusershell (Depends-on): Add stdio-safer.
73651         * modules/lstat (Depends-on): Remove xalloc.
73652         * modules/mkstemp (Depends-on): Add stat-macros.
73653         * modules/modechange (Depends-on): Remove xstrtol.
73654         Add stat-macros, xalloc.
73655         * modules/save-cwd (Depends-on): Add unistd-safer.
73656         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73657         * modules/unistd-safer (Files): Add lib/fd-safer.c
73658         (Makefile.am): Remove lib_SOURCES.
73659
73660         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73661         Remove fcntl-safer; unistd-safer supersedes it.
73662
73663 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73664
73665         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73666         AC_HEADER_STAT.
73667         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73668         (gl_PREREQ_CHOWN): Remove.
73669         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73670         it.  Don't require AC_HEADER_STAT.
73671         (gl_PREREQ_LSTAT): Remove.
73672         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73673         Don't require AC_HEADER_STAT.
73674         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73675         (gl_PREREQ_RMDIR): Remove.
73676         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73677         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73678         the stat-macros module a prerequisite.
73679         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73680         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73681         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73682         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73683         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73684         variable names.
73685         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73686         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73687         variable prefixes.
73688         * m4/fcntl-safer.m4: Remove.
73689         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73690         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73691         Invoke gl_PREREQ_FD_SAFER.
73692         (gl_PREREQ_FD_SAFER): New macro.
73693         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73694         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73695         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73696         Remove duplicate call to AC_LIBOBJ(readutmp).
73697         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73698
73699         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73700         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73701
73702 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73703
73704         * MODULES.html.sh (Misc): Add byteswap.
73705
73706 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73707
73708         * modules/getcwd (Depends-on): Add extensions.
73709         * modules/openat (Depends-on): Likewise.
73710
73711 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73712
73713         * modules/byteswap: New file.
73714
73715 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73716
73717         * m4/byteswap.m4: New file.
73718
73719 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73720
73721         * lib/byteswap_.h: New file.
73722
73723 2005-04-25  Karl Berry  <karl@gnu.org>
73724
73725         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73726
73727 2005-04-25  Albert Chin  <china@thewrittenword.com>
73728
73729         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73730         Toolkit C bug.
73731
73732 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73733
73734         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73735         (func_ln_if_changed): Remove forcibly for no error message
73736         in case file does not exist.
73737
73738 2005-04-19  Simon Josefsson  <jas@extundo.com>
73739
73740         * gnulib-tool (Options): Make --symlink mean --symbolic.
73741
73742 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73743
73744         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73745
73746 2005-04-16  Simon Josefsson  <jas@extundo.com>
73747
73748         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73749
73750 2005-04-15  Simon Josefsson  <jas@extundo.com>
73751
73752         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73753
73754 2005-04-15  Simon Josefsson  <jas@extundo.com>
73755
73756         * gnulib-tool: Rename --symlink to --symbolic.
73757
73758 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73759
73760         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73761         symbolic links to files instead of copying/moving.  Add --aux-dir,
73762         specifying directory relative --dir where auxiliary build tools
73763         are placed.
73764
73765 2005-04-14  Bruno Haible  <bruno@clisp.org>
73766
73767         * modules/allocsa (License): Change to LGPL.
73768         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73769
73770 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73771
73772         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73773         that "UTC +1 second" continues to work.  Problem reported
73774         by Dmitry V. Levin.
73775         (relunit_snumber): New rule.
73776         (relunit): Use it.
73777
73778 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73779
73780         * lib/getdate.y (universal_time_zone_table): New constant.
73781         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73782         universal_time_zone_table.
73783         (lookup_zone): Prefer universal_time_zone_table to
73784         local_time_zone_table, so that "GMT" time stamps are allowed in
73785         London during the summer.  Problem reported by Ian Abbott.
73786
73787 2005-04-12  Jim Meyering  <jim@meyering.net>
73788
73789         * lib/human.c (humblock): Set *options even when returning due to
73790         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73791         warning from gcc-4.
73792
73793 2005-04-09  Jim Meyering  <jim@meyering.net>
73794
73795         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73796         -Wuninitialized: initialize tm0.tm_year.
73797
73798 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73799
73800         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73801         count, since there's no maximum.  All uses changed.
73802         Add member dsts_seen.
73803         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73804         not being INT_MAX.
73805         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73806         Use pc_rels_seen to decide whther a date is absolute.
73807
73808         * lib/getdate.y (number): Don't overwrite year.
73809         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73810         check.
73811
73812 2005-04-02  Simon Josefsson  <jas@extundo.com>
73813
73814         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73815         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73816
73817 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73818
73819         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73820         where no absolute path name can be longer than PATH_MAX.
73821
73822 2005-03-27  Jim Meyering  <jim@meyering.net>
73823
73824         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73825
73826 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73827
73828         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73829         "one's complement" -> "ones' complement" in comment, as per Knuth.
73830         "value of type" -> "type or expression" in comment.
73831         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73832
73833 2005-03-26  Jim Meyering  <jim@meyering.net>
73834
73835         Comment nits.
73836         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73837         Correct typos: s/or/of/.
73838
73839 2005-03-26  Jim Meyering  <jim@meyering.net>
73840
73841         * modules/check-include-files: Move to ../ and rename to...
73842         * check-module: ...this.
73843
73844 2005-03-25  Jim Meyering  <jim@meyering.net>
73845
73846         * modules/xvasprintf (Files): Add xalloc.h.
73847
73848 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         * modules/gettext (Files): config/config.rpath ->
73851         build-aux/config.rpath
73852         * modules/iconv (Files): Likewise.
73853         Problem reported by Oskar Liljeblad.
73854
73855 2005-03-23  Jim Meyering  <jim@meyering.net>
73856
73857         * modules/check-include-files: New script to check for
73858         missing dependencies, multiple includes, etc.
73859
73860         * modules/c-strtold (Depends-on): Add xalloc.
73861         * modules/c-strtod (Depends-on): Add xalloc.
73862         * modules/hash (Depends-on): Add xalloc.
73863         (Files): Remove lib/xalloc.h.
73864
73865         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73866         * modules/userspec (Files): Add lib/inttostr.h.
73867
73868 2005-03-23  Jim Meyering  <jim@meyering.net>
73869
73870         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73871
73872 2005-03-22  Jim Meyering  <jim@meyering.net>
73873
73874         * modules/stat-macros: New module.
73875         * modules/canonicalize, modules/euidaccess, modules/file-type,
73876         * modules/filemode, modules/lchown, modules/makepath,
73877         * modules/rmdir, modules/stat: Depend on new stat-macros module
73878         rather than listing lib/stat-macros.h manually.
73879         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73880
73881 2005-03-22  Jim Meyering  <jim@meyering.net>
73882
73883         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73884
73885 2005-03-22  Bruno Haible  <bruno@clisp.org>
73886
73887         * config/srclist.txt: Replace target directory 'config' with
73888         'build-aux'.
73889         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73890         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73891         ../build-aux/.
73892
73893 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73894
73895         * modules/chdir-long (Depends-on): Add mempcpy.
73896
73897         * modules/acl, modules/backupfile, modules/c-strtod,
73898         modules/c-strtold, modules/canon-host, modules/canonicalize,
73899         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73900         modules/exclude, modules/exitfail, modules/file-type,
73901         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73902         modules/getdate, modules/getline, modules/getpagesize,
73903         modules/getpass, modules/getugroups, modules/group-member,
73904         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73905         modules/inttostr, modules/long-options, modules/makepath,
73906         modules/md5, modules/memcasecmp, modules/memcoll,
73907         modules/modechange, modules/mountlist, modules/path-concat,
73908         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73909         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73910         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73911         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73912         modules/strftime, modules/strndup, modules/strverscmp,
73913         modules/timespec, modules/unlocked-io, modules/userspec,
73914         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73915         modules/yesno:
73916         Remove lib_SOURCES line from Makefile.am section, as this is now
73917         done automatically by the corresponding Autoconf macro.
73918
73919 2005-03-21  Jim Meyering  <jim@meyering.net>
73920
73921         Changes imported from coreutils.
73922
73923         * lib/cycle-check.c: Don't include xalloc.h.
73924
73925         * lib/path-concat.c: Don't include assert.h.
73926         (path_concat): Remove assertion that would have triggered
73927         for ABASE starting with more than one slash.
73928         Reported by Andreas Schwab.
73929
73930         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73931         properly when ABASE is an absolute file name.
73932         Correct the description of this function.
73933         Include <assert.h>.
73934         Add an assertion and a test driver.
73935         This fixes a bug introduced on 2004-07-02.
73936         Andreas Schwab reported the resulting failure of cp --parents:
73937         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73938
73939 2005-03-21  Jim Meyering  <jim@meyering.net>
73940
73941         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73942         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73943
73944 2005-03-21  Jim Meyering  <jim@meyering.net>
73945         and  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73948         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73949         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73950         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73951         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73952         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73953         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73954         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73955         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73956         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73957         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73958         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73959         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73960         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73961         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73962         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73963         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73964         for these modules.
73965
73966 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73969         (which shouldn't happen), generate nothing instead of returning 0
73970         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73971
73972 2005-03-16  Bruno Haible  <bruno@clisp.org>
73973
73974         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73975         HAVE_LONGLONG_64BIT.
73976
73977 2005-03-16  Bruno Haible  <bruno@clisp.org>
73978
73979         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73980         HAVE_LONGLONG_64BIT.
73981
73982 2005-03-16  Bruno Haible  <bruno@clisp.org>
73983
73984         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73985         HAVE_LONGLONG_64BIT.
73986
73987 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73988
73989         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73990         reliably distinguish strftime failure from empty output on POSIX
73991         hosts.
73992
73993 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73994
73995         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73996         (iconv_string): Don't guess a size-zero buffer, as that might cause
73997         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73998         result would be 'too large', where 'too large' is (heuristically)
73999         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74000         overflow concerns.  This will prevent some unwanted malloc failures
74001         when the inputs are very large.
74002
74003 2005-03-15  Karl Berry  <karl@gnu.org>
74004
74005         * config/srclist.txt (config.rpath): from gettext.
74006         * config/config.rpath: update.
74007
74008 2005-03-15  Bruno Haible  <bruno@clisp.org>
74009
74010         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74011         to 'negate'.
74012
74013         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74014         variable.
74015
74016         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74017         results.
74018
74019 2005-03-14  Simon Josefsson  <jas@extundo.com>
74020
74021         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74022         <fx@gnu.org>.
74023
74024 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74025
74026         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74027         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74028         intprops.h.
74029         * lib/strtol.c: Likewise.
74030
74031 2005-03-14  Jim Meyering  <jim@meyering.net>
74032
74033         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74034         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74035         to be nonzero so that we (and caller) can detect the difference
74036         between a valid zero-length expansion and an error return, even
74037         when the underlying strftime fails before writing anything into
74038         that location.
74039
74040 2005-03-14  Bruno Haible  <bruno@clisp.org>
74041
74042         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74043         Update from GNU gettext 0.14.3.
74044
74045 2005-03-10  Jim Meyering  <jim@meyering.net>
74046
74047         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74048
74049 2005-03-10  Jim Meyering  <jim@meyering.net>
74050
74051         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74052         so that this module works on systems without fchdir.
74053
74054 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74055
74056         Factor int-properties macros into a single file, except for
74057         glibc-related files.
74058         * lib/intprops.h: New file.
74059         * lib/getloadavg.c: Include it instead of limits.h.
74060         (INT_STRLEN_BOUND): Remove.
74061         * lib/human.c: Include intprops.h.
74062         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74063         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74064         302/1000.
74065         * lib/inttostr.h: Include intprops.h instead of limits.h.
74066         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74067         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74068         for consistency with intprops.h.
74069         (time_t_is_integer, twos_complement_arithmetic): Use them.
74070         * lib/sig2str.h: Include <signal.h>, intprops.h.
74071         (INT_STRLEN_BOUND): Remove.
74072         * lib/strftime.c (TYPE_SIGNED): Remove.
74073         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74074         * lib/strtol.c: Adjust comments to match intprops.h.
74075         * lib/userspec.c: Include intprops.h.
74076         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74077         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74078         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74079         instead of rolling our own expressions.
74080         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74081
74082         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74083         instead of int.
74084         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74085         the right thing even if adding 1900 would overflow.  Similarly
74086         for tm_mon + 1 and tm_yday + 1.
74087         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74088         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74089         (DO_SIGNED_NUMBER): New macro.
74090         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74091
74092 2005-03-07  Bruno Haible  <bruno@clisp.org>
74093
74094         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74095
74096 2005-03-07  Bruno Haible  <bruno@clisp.org>
74097
74098         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74099
74100 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74101
74102         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74103         (func_import): Only replace files via --import when they have actually
74104         changed.
74105
74106 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74107
74108         * m4/mmap-anon.m4: New file.
74109         * m4/pagealign_alloc.m4: New file.
74110
74111 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74112             Bruno Haible  <bruno@clisp.org>
74113
74114         * modules/pagealign_alloc: New file.
74115         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74116
74117 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74118             Bruno Haible  <bruno@clisp.org>
74119
74120         * lib/pagealign_alloc.h: New file.
74121         * lib/pagealign_alloc.c: New file.
74122
74123 2005-03-03  Bruno Haible  <bruno@clisp.org>
74124
74125         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74126         Use an all-permissive copyright notice, recommended by RMS.
74127
74128 2005-03-02  Bruno Haible  <bruno@clisp.org>
74129
74130         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74131         of AIX, the replacement has to be done only after <string.h> is
74132         included, therefore not in config.h. stpncpy.h does the replacement,
74133         and stpncpy.c uses it.
74134
74135 2005-03-02  Bruno Haible  <bruno@clisp.org>
74136
74137         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74138         stpncpy.c uses it.
74139
74140 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74141
74142         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74143         The workaround isn't strictly needed for POSIX conformance, and
74144         it's too much of a pain to configure and maintain.  We'll ask
74145         people to fix their kernels instead.
74146         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74147         (NANOSLEEP_BUG_WORKAROUND): Remove.
74148         (xnanosleep): Remove the workaround.
74149
74150 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74151
74152         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74153         Reported by Derek Price.
74154         (Include): Add "timespec.h".
74155
74156         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74157
74158 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74159
74160         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74161         to detect nanosleep bug.
74162
74163 2005-03-01  Bruno Haible  <bruno@clisp.org>
74164
74165         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74166
74167 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74168
74169         * modules/gethrxtime: New file.
74170         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74171         (Depends-on): Add gethrxtime.
74172         (configure.ac): Add gl_XNANOSLEEP.
74173         (Makefile.am): Remove lib_SOURCES line.
74174
74175 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74176
74177         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74178         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74179
74180 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74181
74182         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74183         * lib/timespec.h (gettime): Return void, since it always
74184         succeeds now.  All uses changed.
74185         * lib/gettime.c (gettime): Likewise.
74186         [HAVE_NANOTIME]: Prefer nanotime.
74187         Assume gettimeofday succeeds, as POSIX requires.
74188         Assime time () succeeds, since other code already does.
74189         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74190         (timespec_subtract): Remove.
74191         (NANOSLEEP_BUG_WORKAROUND): New constant.
74192         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74193         things considerably.  Use it only on GNU/Linux hosts, since the
74194         workaround shouldn't be needed elsewhere.
74195
74196 2005-02-24  Bruno Haible  <bruno@clisp.org>
74197
74198         * modules/gettext (Files): Add m4/glibc2.m4.
74199
74200 2005-02-24  Bruno Haible  <bruno@clisp.org>
74201
74202         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74203         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74204         * m4/progtest.m4:
74205         Update from GNU gettext 0.14.2.
74206         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74207
74208 2005-02-24  Bruno Haible  <bruno@clisp.org>
74209
74210         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74211         * lib/config.charset: Update from GNU gettext 0.14.2.
74212
74213 2005-02-24  Bruno Haible  <bruno@clisp.org>
74214
74215         * lib/gettext.h: Update from GNU gettext 0.14.2.
74216
74217 2005-02-23  Simon Josefsson  <jas@extundo.com>
74218
74219         * m4/iconvme.m4: New file.
74220
74221 2005-02-23  Jim Meyering  <jim@meyering.net>
74222
74223         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74224         change.
74225         Thanks to Bruno Haible for catching it.
74226
74227 2005-02-22  Simon Josefsson  <jas@extundo.com>
74228
74229         * modules/iconvme: New file.
74230
74231         * MODULES.html.sh: Add iconvme.
74232
74233 2005-02-22  Simon Josefsson  <jas@extundo.com>
74234
74235         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74236
74237 2005-02-22  Simon Josefsson  <jas@extundo.com>
74238
74239         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74240
74241 2005-02-22  Jim Meyering  <jim@meyering.net>
74242
74243         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74244         s/ifndef/ifdef/.
74245
74246 2005-02-20  Neil Conway  <neilc@samurai.com>
74247
74248         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74249         returned by OSX/Darwin if the specified buffer is not large
74250         enough for the hostname.
74251
74252 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74253
74254         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74255         pass it to _help, otherwise the latter coredumps trying to
74256         dereference state.root_argp.
74257
74258 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74259
74260         * modules/chdir-long (Depends-on): Add memrchr.
74261         * modules/memrchr (Files): Add lib/memrchr.h.
74262         (Include): "memrchr.h".
74263
74264 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74265
74266         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74267
74268 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74269
74270         * lib/memrchr.h: New file.
74271         * lib/chdir-long.c: Include it.
74272         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74273         Don't bother including stddef.h.
74274
74275 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74276
74277         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74278         inclusion.
74279         Include <sys/types.h>, for dev_t.
74280         (ME_DUMMY, ME_REMOTE): Move from here....
74281         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74282         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74283         Dmitry V. Levin.
74284         Include mountlist.h first, to test the interface.
74285
74286 2005-01-29  Bruno Haible  <bruno@clisp.org>
74287
74288         * lib/progname.c (program_name): Initialize.
74289         Needed when linking statically on MacOS X.
74290
74291 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74292
74293         Sync from coreutils.
74294         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74295         (Depends-on): Add c-strtod.
74296         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74297
74298 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         Sync from coreutils.
74301         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74302
74303         Remove files that are specific to coreutils.
74304         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74305
74306 2005-01-28  Bruno Haible  <bruno@clisp.org>
74307
74308         * modules/javacomp: New file.
74309         * MODULES.html.sh (Java): Add javacomp.
74310
74311 2005-01-28  Bruno Haible  <bruno@clisp.org>
74312
74313         * m4/javacomp.m4: New file, from GNU gettext.
74314
74315 2005-01-28  Bruno Haible  <bruno@clisp.org>
74316
74317         * lib/javacomp.sh.in: New file, from GNU gettext.
74318         * lib/javacomp.h: New file, from GNU gettext.
74319         * lib/javacomp.c: New file, from GNU gettext.
74320
74321 2005-01-26  Simon Josefsson  <jas@extundo.com>
74322
74323         * lib/gai_strerror.c: Use GPL in header.
74324
74325 2005-01-26  Bruno Haible  <bruno@clisp.org>
74326
74327         * modules/javaexec: New file.
74328         * MODULES.html.sh (Java): Add javaexec.
74329
74330 2005-01-26  Bruno Haible  <bruno@clisp.org>
74331
74332         * m4/javaexec.m4: New file, from GNU gettext.
74333
74334 2005-01-26  Bruno Haible  <bruno@clisp.org>
74335
74336         * lib/javaexec.sh.in: New file, from GNU gettext.
74337         * lib/javaexec.h: New file, from GNU gettext.
74338         * lib/javaexec.c: New file, from GNU gettext.
74339
74340 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74341
74342         * modules/lchown (Depends-on): Remove lchown.h
74343
74344 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74345
74346         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74347         must be defined if the header file was not found, in order
74348         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74349
74350 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74351
74352         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74353         initializers for struct pentry_state.
74354         (__argp_error): Check return value of __asprintf
74355         (__argp_failure): Translate error message
74356
74357         * lib/argp-parse.c: Removed braces around the expansion of N_()
74358
74359 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74360
74361         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74362         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74363         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74364         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74365         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74366         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74367         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74368         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74369         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74370         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74371         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74372         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74373         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74374         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74375         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74376         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74377         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74378         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74379         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74380         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74381         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74382         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74383         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74384         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74385         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74386         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74387         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74388         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74389         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74390         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74391         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74392         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74393         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74394         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74395         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74396         Use an all-permissive copyright notice, recommended by RMS.
74397
74398 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74399
74400         * modules/chdir-long (Depends-on): Remove mempcpy.
74401
74402 2005-01-21  Jim Meyering  <jim@meyering.net>
74403
74404         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74405         same value as for Solaris 9.
74406
74407         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74408         component length.  This included changing the parameter to be
74409         of type `char *' rather than `char const *'.
74410         * lib/chdir-long.h (chdir_long): Update prototype.
74411
74412         * lib/openat.c (fdopendir, fstatat): New functions.
74413         * lib/openat.h: Include headers required for use of DIR and struct
74414         stat.
74415         [AT_SYMLINK_NOFOLLOW]: Define.
74416         (fdopendir, fstatat): Add prototypes.
74417
74418 2005-01-21  Bruno Haible  <bruno@clisp.org>
74419
74420         * modules/classpath: New file.
74421         * MODULES.html.sh (Java): Add classpath.
74422
74423 2005-01-21  Bruno Haible  <bruno@clisp.org>
74424
74425         * lib/classpath.h: New file, from GNU gettext.
74426         * lib/classpath.c: New file, from GNU gettext.
74427
74428 2005-01-20  Simon Josefsson  <jas@extundo.com>
74429
74430         * modules/version-etc-fsf: New file.
74431
74432 2005-01-20  Simon Josefsson  <jas@extundo.com>
74433
74434         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74435         * lib/version-etc.c: Remove version_etc_copyright.
74436         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74437         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74438
74439 2005-01-20  Simon Josefsson  <jas@extundo.com>
74440
74441         * lib/base64.h (isbase64): Add.
74442
74443         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74444         using a unsigned prototype, don't inline.
74445         (base64_decode): Use it.
74446
74447 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74450         it.
74451
74452 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74453
74454         * lib/save-cwd.c (save_cwd): Remove code to support the case
74455         where fchdir is missing or flaky.
74456
74457 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74458
74459         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74460
74461 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74464         AC_LIBSOURCES now does this.
74465         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74466         with new ullong_max module.
74467
74468 2005-01-19  Bruno Haible  <bruno@clisp.org>
74469
74470         * modules/sh-quote: New file.
74471         * MODULES.html.sh (Executing programs): Add sh-quote.
74472
74473 2005-01-19  Bruno Haible  <bruno@clisp.org>
74474
74475         * lib/sh-quote.h: New file, from GNU gettext.
74476         * lib/sh-quote.c: New file, from GNU gettext.
74477
74478 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74479
74480         Merge from coreutils.
74481         * m4/ullong_max.m4: New file.
74482         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74483         (gl_MACROS): Assume localeconv exists.
74484
74485 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74486
74487         Merge changes from coreutils, as described below in several
74488         changelogs dated today.
74489
74490         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74491         (O_DIRECTORY): Remove; not needed here, since "." must be
74492         a directory.  All uses removed.
74493         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74494         universal on Suns, and we also need to test for IRIX.
74495         Revamp code to use 'if' rather than '#if'.
74496         Avoid unnecessary comparison of cwd->desc to 0.
74497
74498         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74499         for known valid error numbers rather than observed invalid ones.
74500
74501 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74502
74503         * modules/ullong_max: New file.
74504
74505         * modules/chdir-long, modules/openat: New files.
74506         * modules/save-cwd (Depends-on): Depend on chdir-long.
74507         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74508
74509 2005-01-18  Jim Meyering  <jim@meyering.net>
74510
74511         Merge from coreutils.
74512         * m4/chdir-long.m4, m4/openat.m4: New files.
74513         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74514         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74515         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74516         is sane and DOES follow symlinks.  Besides, testing 20 different
74517         systems found no broken chown implementations.
74518         Prompted by a change in rsync's copy of this macro.
74519         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74520
74521         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74522
74523         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74524         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74525         NULL-means-set-to-current-time semantics.
74526         Remove temporary file immediately, rather than waiting
74527         for configure's at-exit trap code to do it.
74528
74529 2005-01-18  Jim Meyering  <jim@meyering.net>
74530
74531         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74532
74533         * lib/utimens.c (futimens): Account for the fact that futimes
74534         can also fail with errno == ENOSYS or errno == ENOENT.
74535         Patch from Dmitry V. Levin.
74536
74537         Change the name of the robust chdir function from chdir to chdir_long.
74538         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74539         (restore_cwd): Use chdir_long, not chdir.
74540         * lib/chdir-long.c: Renamed from chdir.c.
74541         * lib/chdir-long.h: Renamed from chdir.h.
74542         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74543         Hurd.
74544
74545 2005-01-18  Bruno Haible  <bruno@clisp.org>
74546
74547         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74548         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74549         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74550         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74551         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74552         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74553         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74554         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74555         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74556         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74557         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74558         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74559         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74560         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74561         Use an all-permissive copyright notice, recommended by RMS.
74562
74563 2005-01-18  Bob Proulx  <bob@proulx.com>
74564
74565         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74566         simplify offsetof() macro construct to avoid compile failure with
74567         native HP-UX 11.0 ANSI C compiler.
74568
74569 2005-01-17  Bruno Haible  <bruno@clisp.org>
74570
74571         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74572         redundant because stpncpy.m4 takes care of it.
74573
74574 2005-01-17  Bruno Haible  <bruno@clisp.org>
74575
74576         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74577
74578 2005-01-17  Bruno Haible  <bruno@clisp.org>
74579
74580         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74581         used.
74582
74583 2005-01-17  Bruno Haible  <bruno@clisp.org>
74584
74585         * lib/fwriteerror.h (fwriteerror): Change specification to include
74586         fclose.
74587         * lib/fwriteerror.c: Include <stdbool.h>.
74588         (fwriteerror): At the end, close the file stream. Record whether
74589         stdout was already closed.
74590
74591 2005-01-17  Bruno Haible  <bruno@clisp.org>
74592
74593         * lib/execute.c (environ): Declare if needed.
74594         * lib/pipe.c (environ): Likewise.
74595         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74596
74597 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74598
74599         * modules/argp: Depend on vsnprintf
74600
74601 2005-01-10  Jim Meyering  <jim@meyering.net>
74602
74603         * modules/closeout (Depends-on): Add atexit.
74604
74605 2005-01-06  Bruno Haible  <bruno@clisp.org>
74606
74607         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74608
74609 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74610
74611         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74612         definitions to be after all include files, to avoid collisions.
74613         Problem reported by Bob Proulx.
74614
74615 2005-01-04  Jim Meyering  <jim@meyering.net>
74616
74617         Changes imported from coreutils.
74618         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74619         as the mkstemp template, use a temporary directory and an
74620         8.3-friendly template to avoid trouble on systems like DJGPP.
74621         Reported by Juan M. Guerrero via Stepan Kasal.
74622         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74623         close. Remove the temporary directory right away, rather than waiting
74624         for configure's at-exit trap code to do it.
74625         Suggestion from Stepan Kasal.
74626
74627 2005-01-01  Simon Josefsson  <jas@extundo.com>
74628
74629         * gnulib-tool: Print #include directives when --import'ing.
74630
74631 2004-12-28  Simon Josefsson  <jas@extundo.com>
74632
74633         * tests/test-base64.c: Include required header files.  Remove
74634         unused variables.
74635
74636 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74637
74638         * modules/error (Depends-on): Remove gettext.
74639
74640 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74643         not needed.  This removes a dependency on the gettext module.
74644         [defined _LIBC]: Do not include <libintl.h>; not needed.
74645
74646 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74647
74648         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74649         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74650
74651 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74652
74653         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74654         HAVE_DECL_STRTOLD.
74655
74656 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74657
74658         * modules/getdate (Depends-on): Remove alloca-opt.
74659
74660 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74661
74662         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74663
74664 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         * lib/argp-parse.c: Include <stddef.h>.
74667         (alignof, alignto): New macros.
74668         (parser_init): Don't assume that void * is aligned sufficiently
74669         for struct option.
74670
74671         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74672         need to extend the stack.
74673         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74674         large.
74675
74676 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74677
74678         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74679
74680 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74681
74682         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74683         (2004-10-24) change.  Apparently this was a false alarm.
74684
74685         * modules/getdate: Depend on alloca-opt, not alloca.
74686
74687 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74688
74689         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74690         Remove now-obsolete comment about AIX.
74691         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74692         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74693         (YYMAXDEPTH): New macro.
74694
74695 2004-12-18  Simon Josefsson  <jas@extundo.com>
74696
74697         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74698
74699 2004-12-18  Bruno Haible  <bruno@clisp.org>
74700
74701         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74702
74703 2004-12-18  Bruno Haible  <bruno@clisp.org>
74704
74705         * lib/fatal-signal.c (fatal_signals): Make non-const.
74706         (init_fatal_signals): New function.
74707         (uninstall_handlers, install_handlers): Ignore signals that were set to
74708         SIG_IGN.
74709         (at_fatal_signal): Call init_fatal_signals.
74710         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74711         SIG_IGN.
74712         Reported by Paul Eggert.
74713
74714 2004-12-18  Bruno Haible  <bruno@clisp.org>
74715
74716         * doc/alloca.texi: New file.
74717         * doc/alloca-opt.texi: New file.
74718
74719 2004-12-17  Jim Meyering  <jim@meyering.net>
74720
74721         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74722         Otherwise, install-sh could exit with improper exit status when
74723         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74724
74725 2004-12-16  Simon Josefsson  <jas@extundo.com>
74726
74727         * tests/test-base64.c: Add license.
74728
74729 2004-12-15  Stepan Kasal  <address@hidden>
74730
74731         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74732
74733 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74734
74735         * modules/getcwd (Files): Add m4/d-ino.m4.
74736         Suggested by Mark D. Baushke.
74737
74738 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74739
74740         * lib/getdate.y (textint): New member "negative".
74741         (time_zone_hhmm): New function.
74742         Expect 14 shift-reduce conflicts, not 13.
74743         (o_colon_minutes): New rule.
74744         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74745         (yylex): Set the "negative" member of signed numbers.
74746
74747 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74748
74749         * doc/getdate.texi (Time of day items, Time zone items):
74750         Describe new formats +00:00, UTC+00:00.
74751
74752 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74753
74754         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74755         spurious "-l"s.  Problem reported by Stepan Kasal.
74756
74757 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74758
74759         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74760         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74761
74762 2004-12-04  Simon Josefsson  <jas@extundo.com>
74763
74764         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74765         Vandoorselaere <yoann@prelude-ids.org>.
74766
74767 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74768
74769         Changes imported from coreutils.
74770         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74771         exist.
74772         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74773
74774 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74775
74776         Changes imported from coreutils.
74777         * lib/hard-locale.c: Assume <locale.h> exists.
74778         Include "strdup.h".
74779         (GLIBC_VERSION): New macro.
74780         (hard_locale): Assume setlocale exists.
74781         Rewrite to avoid #ifdef.
74782         Use strdup rather than malloc + strcpy.
74783         * lib/human.c: Assume <locale.h> exists.
74784         (human_readable): Assume localeconv exists.
74785
74786 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74787
74788         * modules/hard-locale (Depends-on): Add strdup.
74789
74790 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74791
74792         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74793         convert T2, not T.  (Imported from libc.)
74794
74795 2004-11-30  Simon Josefsson  <jas@extundo.com>
74796
74797         * modules/restrict (License): Change to LGPL.
74798
74799 2004-11-30  Simon Josefsson  <jas@extundo.com>
74800
74801         * m4/restrict.m4: Add copyright and copying conditions.
74802
74803 2004-11-30  Simon Josefsson  <jas@extundo.com>
74804
74805         * m4/base64.m4: New file.
74806
74807 2004-11-30  Simon Josefsson  <jas@extundo.com>
74808
74809         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74810         base64.
74811
74812         * tests/test-base64.c: New file.
74813
74814         * modules/base64: New file.
74815
74816 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74817
74818         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74819         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74820
74821         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74822
74823 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74826         (__getcwd.c): Don't restore errno; glibc doesn't.
74827         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74828         first, falling back to our code only if its results look suspicious.
74829         Ensure that the resulting buffer is only as large as necessary.
74830
74831         * lib/readutmp.c: Include readutmp.h first.
74832         Include <errno.h>, since readutmp.h no longer does that.
74833         * lib/readutmp.h: Don't include <errno.h>,
74834         <sys/param.h>, <time.h>; not needed to establish interface.
74835         (errno): Remove decl.
74836         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74837         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74838         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74839
74840 2004-11-28  Simon Josefsson  <jas@extundo.com>
74841
74842         * lib/base64.h, base64.c: New file.
74843
74844 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74847
74848 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74849
74850         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74851         (Depends-on): Remove pathmax, same.  Add mempcpy.
74852         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74853         (Makefile.am): Append getcwd.h to lib_SOURCES.
74854         (Include): Add getcwd.h.
74855         (Maintainer): Change from Jim Meyering to "all, glibc",
74856         since getdate now uses intended-for-glibc code.
74857         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74858         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74859
74860 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74861
74862         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74863         HP's ANSI C compiler.
74864         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74865         Declaring int functions causes warnings on some modern systems and
74866         shouldn't be needed to compile on ancient ones.
74867         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74868         defined.
74869
74870         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74871         with the following changes.
74872         (__set_errno): Parenthesize properly.
74873         Include <stdbool.h>.
74874         (MIN, MAX, MATCHING_INO): New macros.
74875         (__getcwd): Define with prototype, not K&R form.
74876         Use heuristics to allocate default buffer on stack if possible.
74877         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74878         behavior, and to avoid the PATH_MAX limit when computing
74879         ../../../../...
74880         Use MATCHING_INO to compare inode number to file.
74881         Check for arithmetic overflow in size calculations.
74882         Fix bug in reallocation of dot array that caused getcwd to fail
74883         on directories nested deeper than 75.
74884         Be more careful about saving errno on error.
74885         Do not use realloc; use only free+malloc, as this is a bit
74886         more flexible and avoids a needless copy operation.
74887         Do not inspect st_dev and st_ino for symbolic links; POSIX
74888         doesn't specify the latter.
74889         Check for closedir errors.
74890         Avoid needless casts.
74891         Use "#ifdef weak_alias" around weak_alias, to be like other
74892         glibc code.
74893         The following changes to getcwd.c have effect only when used in
74894         gnulib; they have no effect inside glibc proper.
74895         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74896         as alloca isn't used.
74897         (alloca, __alloca): Likewise.
74898         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74899         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74900         unconditionally, as gnulib assumes C89 or better.
74901         Do not include <sys/param.h>.
74902         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74903         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74904         better.
74905         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74906         Include <dirent.h> in a way that is compatible with modern Autoconf.
74907         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74908         New macros, if not already defined.
74909         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74910         Use "_LIBC", not "defined _LIBC", for consistency.
74911         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74912         a mempcpy module.
74913         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74914         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74915         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74916         credit only to Jim Meyering and adjust the copyright dates.
74917         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74918         <stdlib.h>, <unistd.h>, "pathmax.h".
74919         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74920         (INITIAL_BUFFER_SIZE): Remove.
74921         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74922
74923 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74924
74925         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74926         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74927         Use the _ONCE methods, for efficiency.
74928         Check for fcntl.h.  In test program, include <errno.h>
74929         and <fcntl.h> if available.  Remove old K&R cruft from
74930         test program.  Check for common errors in GNU/Linux,
74931         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74932         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74933         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74934         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74935         name accordingly.
74936         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74937         accommodate new getcwd.c.
74938         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74939         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74940         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74941         that's all we need now.
74942
74943 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74944
74945         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74946         argp-parse.c depends on getopt internals, that means we should
74947         always use our getopt, to be on the safe side.
74948         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74949         order not to spoil the result of an eventual previous invocation
74950         of gl_GETOPT_SUBSTITUTE.
74951
74952 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74953
74954         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74955         redefinition warnings. To avoid them, include the defines
74956         in `#if !defined __need_getopt ... #endif'. The only place
74957         where __getopt_argv_const is used is in definitions
74958         of getopt_long and getopt_long_only below, which are as well
74959         protected by `#ifndef __need_getopt'.
74960         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74961         __need_getopt after including <stdio.h> and <unistd.h> These
74962         headers might have defined it.
74963
74964 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74965
74966         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74967
74968 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74971         (futimens): New function, which uses futimes if available.
74972         (futimens, utimens): Support timespec==NULL, with same semantics
74973         as utime and utimens.
74974         * lib/utimens.h (futimens): New decl.
74975
74976 2004-11-23  Jim Meyering  <jim@meyering.net>
74977
74978         * lib/getopt_.h: Remove trailing blanks.
74979
74980 2004-11-23  Jim Meyering  <jim@meyering.net>
74981
74982         * lib/__fpending.c: Add comment.
74983
74984 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         * modules/canonicalize (Depends-on): Add xreadlink.
74987         Problem reported by James Youngman.
74988
74989 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74990
74991         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74992         New macros.
74993         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74994         optopt): Use them instead of invoking ## directly; otherwise, the
74995         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74996
74997 2004-11-19  Bruno Haible  <bruno@clisp.org>
74998
74999         * lib/strtok_r.c: Move comments from here...
75000         * lib/strtok_r.h: ... to here.
75001
75002 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75003
75004         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75005         implementations that mishandle size_t overflow.
75006
75007 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75010         might fail.  Problem reported by Yoann Vandoorselaere.
75011         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75012         implementations that mishandle size_t overflow.
75013
75014 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75015
75016         * modules/canon-host (Depends-on): Add strdup.
75017
75018 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75019
75020         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75021
75022 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75023
75024         * lib/canon-host.c: Include "strdup.h".
75025         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75026         Use strdup instead of malloc/strcpy to duplicate strings.
75027
75028         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75029         (human_space_before_unit): New constant.
75030         * lib/human.c (human_readable): Support it.
75031
75032         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75033         (xgetcwd): Set errno correctly when failing.
75034         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75035         the failure is actually due to a PATH_MAX problem.
75036
75037         Further getopt changes to make it more likely that glibc will
75038         buy the changes back.
75039         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75040         (getopt): Use it, so to preserve glibc semantic
75041         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75042         when compiling for libc.
75043         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75044         (getopt_long, getopt_long_only): Use it.
75045
75046         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75047         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75048         (getopt): Argv is now char * const *, as per standard.
75049         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75050         not char *__getopt_argv_const *.
75051         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75052         _getopt_long_only_r): Likewise.
75053         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75054         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75055         _getopt_long_r, _getopt_long_only_r): Likewise.
75056         * lib/getopt_.h (__getopt_argv_const): Remove.
75057         (getopt): Argv is now char * const *, as per standard.
75058
75059         * lib/getdate.y (tORDINAL): New token.
75060         (day, relunit): Allow it for relative times.
75061         (relative_time_table): Use tORDINAL for ordinals.
75062
75063 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75064
75065         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75066         Document that "second" isn't allowed as an ordinal number.
75067
75068 2004-11-16  Jim Meyering  <jim@meyering.net>
75069
75070         * modules/closeout (Depends-on): Add fpending.
75071
75072 2004-11-15  Jim Meyering  <jim@meyering.net>
75073
75074         * lib/closeout.c: Include "__fpending.h" once again.
75075         Include <stdbool.h>.
75076         (close_stdout): Don't fail just because stdout was closed initially,
75077         since some programs don't write to stdout in the normal course of
75078         operation (other than --version and --help), and we don't want this
75079         function to make e.g. `touch file >&-' fail.
75080         But do fail if it was closed and someone has tried to write to it.
75081         E.g., `printf foo >&-' must fail.
75082
75083 2004-11-13  Jim Meyering  <jim@meyering.net>
75084
75085         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75086
75087 2004-11-12  Simon Josefsson  <jas@extundo.com>
75088
75089         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75090         small doc fix is still pending.
75091
75092 2004-11-11  Simon Josefsson  <jas@extundo.com>
75093
75094         * modules/strtok_r: New file.
75095
75096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75097         strtok_r.
75098
75099 2004-11-11  Simon Josefsson  <jas@extundo.com>
75100
75101         * m4/strtok_r.m4: New file.
75102
75103         * m4/getopt.m4: Replace opterr.
75104
75105 2004-11-11  Simon Josefsson  <jas@extundo.com>
75106
75107         * lib/strtok_r.h, strtok_r.c: New file.
75108
75109 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75110
75111         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75112         of replacing opterr, getopt, etc.  This should handle the
75113         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75114
75115 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75118         we can stop lying to compilers about the constness of argv when we
75119         are compiled outside glibc.
75120         (getopt, getopt_long, getopt_long_only): Use it.
75121         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75122         _getopt_internal, getopt): Likewise.
75123         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75124         _getopt_long_only_r): Likewise.
75125         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75126         _getopt_long_r, _getopt_long_only_r): Likewise.
75127
75128         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75129         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75130         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75131         the other external symbols.
75132         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75133         declaration, since the above renaming now works around collisions.
75134
75135 2004-11-11  Jim Meyering  <jim@meyering.net>
75136
75137         * lib/linebreak.c: Remove trailing blanks.
75138         * lib/alloca_.h: Likewise.
75139         * lib/acosl.c: Likewise.
75140         * lib/euidaccess.c: Likewise.
75141         * lib/allocsa.h: Likewise.
75142
75143 2004-11-10  Simon Josefsson  <jas@extundo.com>
75144
75145         * m4/getaddrinfo.m4: New file.
75146
75147 2004-11-10  Simon Josefsson  <jas@extundo.com>
75148
75149         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75150
75151 2004-11-10  Simon Josefsson  <jas@extundo.com>
75152
75153         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75154         getaddrinfo.
75155
75156         * modules/getaddrinfo: New file.
75157
75158 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75159
75160         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75161
75162 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75163
75164         * lib/mktime.c (SHR): New macro, which is a portable
75165         substitute for >> that should work even on Crays.
75166         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75167         Problem reported by Mark D. Baushke in
75168         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75169         * lib/getdate.y (SHR): Likewise.
75170         (tm_diff): Use it.
75171         * lib/strftime.c (SHR): Likewise.
75172         (tm_diff): Use it.
75173         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75174         quote_these_too, so that right shifts are well defined.  All uses
75175         changed.
75176
75177 2004-11-10  Jim Meyering  <jim@meyering.net>
75178
75179         Ensure that no close failure goes unreported.
75180         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75181         return early when it seems there's nothing to flush.
75182         Don't include __fpending.h.
75183
75184 2004-11-10  Jim Meyering  <jim@meyering.net>
75185
75186         * modules/closeout (Depends-on): Remove fpending.
75187
75188 2004-11-10  Jim Meyering  <jim@meyering.net>
75189
75190         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75191
75192 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75193
75194         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75195         gl_FUNC_STRFTIME.
75196         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75197         and AC_REQUIRE when possible, to avoid duplicate checks.
75198         Check for <wchar.h>.
75199
75200 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75201
75202         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75203
75204 2004-11-09  Bruno Haible  <bruno@clisp.org>
75205
75206         * m4/sockpfaf.m4: New file.
75207
75208 2004-11-05  Bruno Haible  <bruno@clisp.org>
75209
75210         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75211         Reported by Mark D. Baushke <mdb@cvshome.org>.
75212
75213 2004-11-04  Bruno Haible  <bruno@clisp.org>
75214
75215         2004-09-11  Bruno Haible  <bruno@clisp.org>
75216                 * allocsa.valgrind: New file.
75217         2004-02-06  Bruno Haible  <bruno@clisp.org>
75218                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75219                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75220                 Reported by Christopher Seip <chris.seip@hp.com>.
75221
75222 2004-11-04  Bruno Haible  <bruno@clisp.org>
75223
75224         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75225         (Makefile.am): Distribute it.
75226
75227 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75230         with errno == ERANGE if the buffer is too small.
75231         Problem reported by Mark D. Baushke.
75232
75233 2004-11-03  Albert Chin  <china@thewrittenword.com>
75234             Paul Eggert  <eggert@cs.ucla.edu>
75235
75236         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75237         equivalent, substitute $ac_type for equivalent type rather than
75238         blindly using uint32_t *always* which won't work if uint32_t is not
75239         available.  Define _UINT32_T to work around typedef of uint32_t if
75240         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75241         2.5.1.
75242
75243 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75244
75245         * m4/jm-macros.m4: Sync from coreutils.
75246         (gl_MACROS): Check for mbrlen, for pathchk.
75247         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75248
75249 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75250
75251         * lib/xreadlink.c (MAXSIZE): New macro.
75252         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75253         size does not exceed MAXSIZE.  Avoid cast.
75254         As suggested by Mark D. Baushke in
75255         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75256         if readlink fails with buffer size just under MAXSIZE, try again
75257         with MAXSIZE.
75258
75259 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75260
75261         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75262
75263 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75264         and  Paul Eggert  <eggert@cs.ucla.edu>
75265
75266         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75267         (get_date): Overparenthesize to avoid GCC warning.
75268
75269 2004-11-02  Bruno Haible  <bruno@clisp.org>
75270
75271         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75272         returns void.
75273
75274 2004-11-02  Bruno Haible  <bruno@clisp.org>
75275
75276         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75277         function returns void.
75278
75279 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75280
75281         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75282         fflush_unlocked, flockfile, funlockfile, funlockfile,
75283         fputs_unlocked, putc_unlocked.
75284
75285 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75286
75287         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75288         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75289         already declared.
75290
75291 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75292
75293         * modules/getdate (Files): Add doc/getdate.texi.
75294         (Depends-on): Add setenv, xalloc.
75295
75296 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         * lib/getdate.y: Add support for TZ="foo" within a date string.
75299         Fix some bugs near time_t boundaries.  Reject dates with
75300         out-of-range components, e.g., "Sept 31".
75301         Include <stdlib.h>, "setenv.h", "xalloc.h".
75302         (ISDIGIT_LOCALE): Remove; unused.
75303         Note that the TZ and time functions used here are not reentrant.
75304         (mktime_ok, get_tz): New functions.
75305         (TZBUFSIZE): New constant.
75306         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75307         This requires that we sometimes generate our own TZ="XXX..." setting.
75308
75309 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75310
75311         * doc/getdate.texi: New file, from coreutils with modifications for
75312         the new TZ parsing.
75313
75314 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75315
75316         * lib/mktime.c (not_equal_tm): Remove redundant check.
75317
75318 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * modules/regex (lib_SOURCES): Add regex.c.
75321         Reported by James Youngman in
75322         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75323
75324 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75325
75326         * lib/getdate.y: Use Bison 1.875 features, and some minor
75327         code cleanups.  This change does not affect semantics.
75328         Don't include <stdlib.h>; no longer needed.
75329         Don't include unlocked-io.h; only the "#if TEST" code uses
75330         stdio, and performance isn't crucial there.
75331         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75332         Bison 1.875 features as described below.
75333         All uses of "PC." replaced by "pc->".
75334         (YYSTYPE): Add a forward declaration.
75335         (yylex, yyerror): Use full prototypes in forward decls.
75336         Use "%pure-parser" rather than obsolescent "%pure_parser".
75337         Use %parse-param and %lex-param instead of obsolescent
75338         YYPARSE_PARAM and YYLEX_PARAM.
75339         (meridian_table, month_and_day_table, time_units_table,
75340         relative_time_table, time_zone_table, military_table,
75341         lookup_zone, lookup_word, get_date):
75342         Use NULL instead of 0 where appropriate.
75343         (to_hour): Avoid abort (), to avoid a dependency on
75344         stdlib.h.
75345         (yyerror, yylex): Now accepts parser_control * arg.
75346         (main) [TEST]: Use '\0' rather than 0 for char.
75347
75348 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75351
75352 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75353
75354         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75355         It's now the caller's responsibility to handle the case where
75356         !HAVE_GETPAGESIZE && !defined getpagesize.
75357
75358         * lib/mktime.c (leapyear): Arg is long int, not int.
75359
75360 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75363
75364 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75365
75366         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75367         missing.  Problem reported by James Youngman.
75368
75369 2004-10-16  Simon Josefsson  <jas@extundo.com>
75370
75371         * gnulib-tool: Fix comments.  Fix parse problem.
75372         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75373
75374 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75377         implementation of getopt_long.  Problem reported by Alexander Taler in:
75378         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75379
75380 2004-10-15  Bruno Haible  <bruno@clisp.org>
75381
75382         * gnulib-tool: Untabify. Initialize supplied_libname.
75383         (func_usage): More homogenous output.
75384         (func_modules_transitive_closure, func_modules_to_filelist,
75385         func_emit_lib_Makefile_am): New functions.
75386         (func_import): New function, extracted from big case statement. Use
75387         func_get_license, func_modules_transitive_closure,
75388         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75389         opt_lgpl. Don't use test -a, as it's not portable.
75390         (func_create_testdir): Use func_modules_transitive_closure,
75391         func_modules_to_filelist, func_emit_lib_Makefile_am.
75392
75393 2004-10-15  Bruno Haible  <bruno@clisp.org>
75394
75395         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75396
75397 2004-10-15  Bruno Haible  <bruno@clisp.org>
75398
75399         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75400         the portions belonging to each module.
75401         Suggested by Derek Robert Price <derek@ximbiot.com>.
75402
75403 2004-10-12  Simon Josefsson  <jas@extundo.com>
75404
75405         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75406         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75407         to real functions.
75408
75409 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75410
75411         * modules/vsnprintf: New file.
75412
75413 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75414
75415         * m4/vsnprintf.m4: New file.
75416
75417 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75418
75419         * lib/vsnprintf.h: New file.
75420         * lib/vsnprintf.c: New file.
75421
75422 2004-10-11  Bruno Haible  <bruno@clisp.org>
75423
75424         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75425         vsnprintf.
75426
75427 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75428
75429         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75430
75431 2004-10-07  Bruno Haible  <bruno@clisp.org>
75432
75433         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75434         fits into the provided buffer.
75435
75436 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         * lib/diacrit.c, diacrit.h: Add GPL notice.
75439
75440         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75441         notice.
75442         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75443         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75444         This avoids a potential constant-folding bug.
75445
75446 2004-10-05  Bruno Haible  <bruno@clisp.org>
75447
75448         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75449         for the declaration of strsep.
75450
75451 2004-10-05  Bruno Haible  <bruno@clisp.org>
75452
75453         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75454
75455 2004-10-04  Simon Josefsson  <jas@extundo.com>
75456
75457         * modules/memmem: New file.
75458         * tests/test-memmem.c: New file.
75459         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75460
75461 2004-10-04  Simon Josefsson  <jas@extundo.com>
75462
75463         * m4/memmem.m4: New file.
75464
75465 2004-10-04  Simon Josefsson  <jas@extundo.com>
75466
75467         * lib/memmem.h: New file.
75468         * lib/memmem.c: New file, taken from glibc.
75469
75470 2004-10-04  Simon Josefsson  <jas@extundo.com>
75471
75472         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75473         '#ifdef USE_UNLOCKED_IO'.
75474
75475 2004-10-04  Simon Josefsson  <jas@extundo.com>
75476
75477         * config/srclist.txt: Add memmem from glibc.
75478
75479 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75480
75481         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75482
75483         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75484         modules/exclude, modules/getdate, modules/getline,
75485         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75486         modules/getusershell, modules/linebuffer, modules/md5,
75487         modules/mountlist, modules/posixtm, modules/readtokens,
75488         modules/readutmp, modules/regex, modules/sha1,
75489         modules/version-etc, modules/yesno:
75490         Remove dependency on unlocked-io.
75491
75492 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75495
75496         * m4/unlocked-io.m4: Add copyright notice.
75497         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75498
75499 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75500
75501         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75502         * lib/xmalloc.c (xmemdup): Likewise.
75503         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75504         XFREE): Remove these long-obsolescent macros.
75505         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75506         * lib/xstrdup.c: Remove.
75507
75508         * lib/regex.c (re_comp): Cast gettext return value to char *,
75509         Problem reported by Martin Neitzel via Mark D. Baushke.
75510
75511 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75514         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75515         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75516         regex.c, sha1.c, version-etc.c, yesno.c:
75517         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75518         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75519         the includer's responsibility.
75520
75521         Sync from coreutils.
75522
75523         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75524         points to the start of a string, as the C Standard says the
75525         resulting behavior is undefined.
75526
75527         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75528         simple -> simple_backups, numbered_existing ->
75529         numbered_existing_backups, numbered -> numbered_backups
75530         to avoid shadowing problems.  All uses changed.
75531         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75532         * lib/backupfile.c (check_extension, numbered_backup):
75533         Rename locals to avoid shadowing 'basename'.
75534         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75535         once.
75536
75537         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75538         * lib/.cvsignore: Add getopt.h.
75539
75540 2004-10-04  Bruno Haible  <bruno@clisp.org>
75541
75542         * modules/README: New file.
75543         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75544         not a module.
75545
75546 2004-10-02  Jim Meyering  <jim@meyering.net>
75547
75548         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75549
75550 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75551
75552         * modules/strsep: New file.
75553
75554 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75555
75556         * m4/strsep.m4: New file.
75557
75558 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75559
75560         * lib/strsep.h: New file.
75561         * lib/strsep.c: New file.
75562
75563 2004-10-01  Simon Josefsson  <jas@extundo.com>
75564
75565         * lib/snprintf.c (snprintf): Handle size==0.
75566
75567 2004-10-01  Simon Josefsson  <jas@extundo.com>
75568             Bruno Haible  <bruno@clisp.org>
75569
75570         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75571         (snprintf): Declare 'args'.
75572
75573 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         * lib/snprintf.c: Remove comments as to why each header is needed.
75576
75577 2004-10-01  Bruno Haible  <bruno@clisp.org>
75578
75579         * MODULES.html.sh: Add strsep.
75580
75581 2004-09-30  Simon Josefsson  <jas@extundo.com>
75582
75583         * modules/snprintf: New file.
75584
75585 2004-09-30  Simon Josefsson  <jas@extundo.com>
75586
75587         * m4/snprintf.m4: New file.
75588
75589 2004-09-30  Simon Josefsson  <jas@extundo.com>
75590
75591         * lib/snprintf.h, lib/snprintf.c: New files.
75592
75593 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75594
75595         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75596         (hol_entry_help): Never translate an empty string.
75597         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75598         * lib/argp.h (OPTION_NO_TRANS): New option.
75599
75600 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75601
75602         * modules/argp (Maintainer): Replace Simon Josefsson
75603         by Sergey Poznyakoff.
75604
75605 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75608         changes merged back into glibc.
75609
75610 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75611
75612         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75613
75614 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75615
75616         * lib/xvasprintf.c: Include xalloc.h.
75617         (xvasprintf): Use xalloc_die, not xmalloc_die.
75618
75619 2004-09-29  Bruno Haible  <bruno@clisp.org>
75620
75621         * modules/alloca-opt: New file, derived from modules/alloca.
75622         * modules/allocsa: Depend on alloca-opt instead of alloca.
75623         * modules/setenv: Likewise.
75624         * modules/vasnprintf: Likewise.
75625         * MODULES.html.sh: Add alloca-opt.
75626
75627 2004-09-28  Simon Josefsson  <jas@extundo.com>
75628
75629         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75630         LGPL, and to replace license template from GPL to LGPL.
75631
75632 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75633
75634         * modules/dummy: Change license to LGPL.
75635
75636 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75637
75638         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75639
75640 2004-09-24  Simon Josefsson  <jas@extundo.com>
75641
75642         * modules/minmax (License): Change from GPL to LGPL.
75643
75644 2004-09-23  Simon Josefsson  <jas@extundo.com>
75645
75646         * gnulib-tool (--import): Typo.
75647
75648 2004-09-23  Simon Josefsson  <jas@extundo.com>
75649
75650         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75651
75652 2004-09-22  Bruno Haible  <bruno@clisp.org>
75653
75654         * modules/*: Add 'License' field.
75655         * gnulib-tool: Accept --extract-license option.
75656         (func_get_license): New function.
75657
75658 2004-09-21  Bruno Haible  <bruno@clisp.org>
75659
75660         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75661         Reported by Simon Josefsson.
75662
75663 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75664
75665         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75666         gl_AC_TYPE_LONG_LONG.
75667
75668 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75669
75670         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75671
75672 2004-09-18  Simon Josefsson  <jas@extundo.com>
75673         and  Paul Eggert  <eggert@cs.ucla.edu>
75674
75675         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75676         calls with autoreconf.  Define GL_LIB.
75677
75678 2004-09-14  Karl Berry  <karl@gnu.org>
75679
75680         * config/srclist.txt: unsync setenv.c, sigh.
75681
75682 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75683
75684         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75685         Problem reported by Bruno Haible in:
75686         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75687
75688 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75689
75690         * config/srclist.txt: Comment out argp-pvh.c.
75691
75692 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75693
75694         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75695         in case some system header has #define'd it.  Problem reported by
75696         Soeren D. Schulze in
75697         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75698
75699 2004-09-09  Karl Berry  <karl@gnu.org>
75700
75701         * regex.[ch]: delete from the root.  These were supposed to be
75702                 synced with emacs cvs, but this has not happened for about
75703                 a year, and anyway nothing else uses emacs regex.[ch].
75704                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75705                 lib/regex[.ch] is untouched.
75706
75707 2004-09-09  Bruno Haible  <bruno@clisp.org>
75708
75709         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75710
75711 2004-09-09  Bruno Haible  <bruno@clisp.org>
75712
75713         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75714         modifications.
75715         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75716
75717 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75718
75719         * modules/xvasprintf: New file.
75720         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75721
75722 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75723
75724         * lib/xvasprintf.h: New file.
75725         * lib/xvasprintf.c: New file.
75726         * lib/xasprintf.c: New file.
75727
75728 2004-09-08  Bruno Haible  <bruno@clisp.org>
75729
75730         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75731
75732 2004-09-08  Bruno Haible  <bruno@clisp.org>
75733
75734         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75735         length is > INT_MAX.
75736         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75737         more.
75738
75739 2004-09-08  Bruno Haible  <bruno@clisp.org>
75740
75741         * lib/stdint_.h: New file, taken from GNU clisp.
75742
75743 2004-09-08  Bruno Haible  <bruno@clisp.org>
75744             Oskar Liljeblad  <oskar@osk.mine.nu>
75745
75746         * modules/stdint: New file.
75747         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75748
75749 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75750
75751         Import from coreutils.
75752         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75753         strings on unbounded length.  alloca's performance benefits aren't
75754         that important here.
75755         (V_STRDUP): Remove.
75756         (parse_with_separator): New function, with most of the internals
75757         of the old parse_user_spec.  Allow user to omit both user and group,
75758         for compatibility with FreeBSD.
75759         Clone only the user name, not the entire spec.
75760         Do not set *uid, *gid unless entirely successful.
75761         Avoid memory leak in some failing cases.
75762         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75763         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75764         (parse_user_spec): Rewrite to use parse_with_separator.
75765
75766 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * modules/userspec: Don't depend on alloca.
75769
75770 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75771
75772         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75773
75774 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75775
75776         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75777         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75778         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75779
75780 2004-08-16  Simon Josefsson  <jas@extundo.com>
75781
75782         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75783         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75784         Add --dry-run for --import.
75785         Let user provided command line parameters override configure.ac
75786         settings.
75787
75788 2004-08-12  Simon Josefsson  <jas@extundo.com>
75789
75790         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75791         as discussed with Paul Eggert in threads rooted at
75792         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75793         and
75794         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75795         Before, the test was empty, and relied on ELIDE_CODE in source
75796         code.)
75797         (gl_PREREQ_GETOPT): New macro.
75798         (gl_GETOPT): Use them.
75799
75800 2004-08-12  Simon Josefsson  <jas@extundo.com>
75801
75802         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75803         * lib/getopt_.h: Renamed from getopt.h.
75804
75805 2004-08-12  Simon Josefsson  <jas@extundo.com>
75806
75807         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75808         Change default library name from libfoo to libgnu.
75809         Now, if you have a configure.ac that says:
75810                 gl_SOURCE_BASE(gl)
75811                 gl_M4_BASE(gl/m4)
75812                 gl_MODULES(error getopt etcetera)
75813                 gl_INIT
75814         you can import all you need by running:
75815                 ../gnulib/gnulib-tool --import
75816
75817         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75818         (Makefile.am): Rewrite, use logic from argz.
75819         (Include): Use <getopt.h> instead of "getopt.h".
75820
75821 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * modules/argp (Files): Add m4/unlocked-io.m4.
75824         (Depends-on): Add extensions.
75825
75826 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75827
75828         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75829         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75830         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75831         Check for program_invocation_name, program_invocation_short_name,
75832         flockfile, funlockfile, features.h, _getopt_long_only_r.
75833
75834 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75835
75836         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75837         its complicated substitute.
75838         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75839         and program_invocation_name.
75840         (__argp_basename) [!_LIBC]: Remove; the only use was
75841         replaced by its body.
75842         (__argp_short_program_name): Change condition from
75843         !defined __argp_short_program_name to
75844         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75845         to match argp-namefrob.h.
75846         (__argp_failure): Don't assume strerror_r returns char *.
75847         * lib/argp-parse.c (N_): Define unconditionally.
75848         (argp_default_options): Fill out initializers with 0 to avoid
75849         gcc warnings.
75850
75851 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75854         getopt1.c.
75855
75856 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75857
75858         Merge from coreutils.
75859
75860         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75861
75862         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75863         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75864
75865 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75866
75867         Merge from coreutils.
75868
75869         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75870         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75871         for Reliant Unix 5.43.
75872
75873         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75874         (union fooround): Use uintmax_t, not long int.
75875         The rest is a merge from libc:
75876         [defined _LIBC]: Include <shlib-compat.h>.
75877         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75878
75879         * lib/settime.c (settime): Recode to avoid warning with
75880         Sun Forte C 6U2.
75881
75882         * lib/strverscmp.c: Convert to UTF-8.
75883
75884 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75885
75886         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75887         m4/uintmax_t.m4.
75888
75889 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75890
75891         * modules/xalloc-die: New file.
75892         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75893
75894         * modules/md5 (Files): Add m4/uint32_t.m4.
75895         * modules/sha1: Renamed from modules/sha.
75896         (Files):
75897         Rename lib/sha.h to lib/sha1.h.
75898         Rename lib/sha.c to lib/sha1.c.
75899         Rename m4/sha.m4 to m4/sha1.m4.
75900         (lib_SOURCES): Likewise.
75901         (configure.ac): Rename gl_SHA to gl_SHA1.
75902         (Include): sha.h -> sha1.h.
75903
75904 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75907         * m4/sha1.m4: Renamed from sha.m4.
75908         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75909
75910 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * lib/obstack.h (obstack_empty_p):
75913         Don't assume that chunk->contents is suitably aligned.
75914         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75915         Likewise. Problem reported by Benno in
75916         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75917
75918         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75919         readable.  This could be improved further but it'd take some work.
75920
75921 2004-08-08  Simon Josefsson  <jas@extundo.com>
75922
75923         * modules/xgethostname (Depends-on): Remove exit and error (not
75924         used).
75925
75926         * modules/getpass-gnu: Add getpass.h.
75927         (Depends-on): Add stdbool.
75928         * modules/getpass: Add getpass.h.
75929
75930 2004-08-08  Simon Josefsson  <jas@extundo.com>
75931
75932         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75933         Check getpass declaration.
75934
75935 2004-08-08  Simon Josefsson  <jas@extundo.com>
75936
75937         * lib/xgethostname.c: Don't include error.h (not used).
75938
75939         * lib/getpass.h: Add.
75940         * lib/getpass.c: Include getpass.h first.
75941
75942 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75943
75944         * lib/xalloc-die.c: New file.
75945         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75946         All uses removed.
75947         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75948         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75949         xalloc-die.c.
75950         (_, N_, xalloc_die): Move to xalloc-die.c.
75951         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75952         so that we needn't mess with xalloc_msg_memory_exhausted.
75953
75954         * lib/sha1.h: Renamed from sha.h.
75955         (SHA1_H): Renamed from _SHA_H.
75956         (sha1_ctx): Renamed from sha_ctx.
75957         (sha1_init_ctx): Renamed from sha_init_ctx.
75958         (sha1_process_block): Renamed from sha_process_block.
75959         (sha1_process_bytes): Renamed from sha_process_bytes.
75960         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75961         (sha1_read_ctx): Renamed from sha_read_ctx.
75962         (sha1_stream): Renamed from sha_stream.
75963         (sha1_buffer): Renamed from sha_buffer.
75964         * lib/sha1.c: Likewise; renamed from sha.c.
75965         Do not include <sys/types.h>.
75966         Include <stddef.h> rather than <stdlib.h>.
75967
75968 2004-08-08  Bruno Haible  <bruno@clisp.org>
75969
75970         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75971         FILESYSTEM_PREFIX_LEN.
75972         * lib/progreloc.c: Likewise.
75973         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75974
75975 2004-08-06  Simon Josefsson  <jas@extundo.com>
75976
75977         * modules/progname (Depends-on): Don't depend on stdbool.
75978
75979 2004-08-06  Simon Josefsson  <jas@extundo.com>
75980
75981         * modules/getsubopt: New file.
75982         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75983         getsubopt.
75984
75985 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75986
75987         More merge from coreutils.
75988
75989         * m4/utimens.m4, m4/utimecmp.m4: New files.
75990         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75991         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75992         prereq.m4, sha.m4: Import changes from coreutils.
75993
75994 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75995
75996         More merge from coreutils.
75997         * modules/raise, modules/readtokens0, modules/utimens:
75998         * modules/utimecmp, module/xnanosleep: New files.
75999         * modules/strftime: Add lib/strftime.h.
76000         Change include from <time.h> to "strftime.h".
76001         * modules/yesno: Add lib/yesno.h.
76002         * modules/backupfile: Remove lib/addext.c.
76003         * modules/euidaccess: Add stat-macros.h.
76004         * modules/canonicalize, modules/euidaccess,
76005         modules/filemode, modules/lchown, modules/makepath,
76006         modules/rmdir, modules/stat: Likewise.
76007
76008 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76009
76010         Merge from tar.
76011         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76012         SIZE_MAX is a valid preprocessor constant.
76013         (__argp_basename): Change from "#ifndef _LIBC"
76014         to "#ifndef __argp_short_program_name", so that
76015         we don't compile these functions for tar.
76016
76017         More merges from coreutils.
76018         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76019         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76020         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76021         * lib/addext.c: Remove; no longer needed.
76022         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76023         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76024         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76025         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76026         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76027         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76028         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76029         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76030         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76031         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76032         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76033         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76034         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76035         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76036         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76037         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76038         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76039         Import changes from coreutils.
76040
76041 2004-08-05  Simon Josefsson  <jas@extundo.com>
76042
76043         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76044
76045 2004-08-05  Simon Josefsson  <jas@extundo.com>
76046
76047         * m4/getsubopt.m4: New file.
76048
76049 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76050
76051         Merge from coreutils.
76052
76053         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76054         * m4/getcwd-path-max.m4: New files.
76055
76056         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76057         FILESYSTEM_PREFIX_LEN ->
76058         FILE_SYSTEM_PREFIX_LEN.
76059         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76060         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76061         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76062         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76063
76064         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76065         prerequisite modules now handle the DOS stuff.
76066         Don't check for unistd.h.
76067
76068 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76069
76070         Merge from coreutils.
76071
76072         * lib/.gdb-history: Remove; this doesn't belong here.
76073
76074         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76075         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76076         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76077         * lib/getcwd.c: New files.
76078
76079         * lib/dirname.h: Include <stdbool.h>.
76080         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76081         for consistency with POSIX terminology.  All uses changed.
76082         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76083         (strip_trailing_slashes): Use bool for booleans.
76084         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76085
76086         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76087         sometimes returns a positive errno value even when it succeeds.
76088         (print_errno_message) [!LIBC]: Fall back on strerror if
76089         __strerror_r fails.
76090
76091         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76092         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76093         (longest_relative_suffix): New function.
76094         (path_concat): Use it.  Assume first argument is not NULL.
76095         Port to DOS.  Omit redundant separators.
76096         Report an error instead of returning NULL.
76097         Use mempcpy instead of memcpy.
76098         (xpath_concat): Remove: not declared or used.
76099
76100         * lib/same.h: Include <stdbool.h>
76101         (same_name): Return bool, not int.
76102         * lib/same.c (same_name): Likewise.
76103         (errno): Don't declare; we assume C89 or better now.
76104
76105         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76106         if not already defined.
76107
76108         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76109         * lib/dup-safer.c (errno): Likewise.
76110
76111 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76112
76113         Merge from coreutils.
76114         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76115         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76116         * modules/path-concat: Don't depend on strdup.
76117
76118 2004-08-03  Simon Josefsson  <jas@extundo.com>
76119
76120         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76121         * lib/progname.h: Don't include stdbool.h.
76122
76123 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76124
76125         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76126         * MODULES.html.sh (func_all_modules): Remove fatal.
76127
76128 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76129
76130         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76131
76132 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76135         working.
76136
76137 2004-08-02  Simon Josefsson  <jas@extundo.com>
76138
76139         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76140         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76141         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76142
76143 2004-08-01  Simon Josefsson  <jas@extundo.com>
76144
76145         * lib/xgetdomainname.c: Include stdlib.h, for free().
76146
76147 2004-07-19  Bruno Haible  <bruno@clisp.org>
76148
76149         * MODULES.html.sh (func_all_modules): Add dummy.
76150
76151 2004-07-16  Simon Josefsson  <jas@extundo.com>
76152
76153         * modules/dummy: New file.
76154
76155 2004-07-16  Simon Josefsson  <jas@extundo.com>
76156
76157         * lib/dummy.c: New file.
76158
76159 2004-07-16  Bruno Haible  <bruno@clisp.org>
76160
76161         * lib/backupfile.h: Add extern "C" for C++.
76162         * lib/closeout.h: Likewise.
76163         * lib/copy-file.h: Likewise.
76164         * lib/findprog.h: Likewise.
76165         * lib/full-write.h: Likewise.
76166         * lib/pathname.h: Likewise.
76167         * lib/progname.h: Likewise.
76168         * lib/stpcpy.h: Likewise.
76169         * lib/stpncpy.h: Likewise.
76170         * lib/strcase.h: Likewise.
76171         * lib/strstr.h: Likewise.
76172         * lib/xalloc.h: Likewise.
76173
76174         * lib/mbswidth.h: Add extern "C" for C++.
76175         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76176
76177 2004-07-13  Robert Millan  <robertmh@gnu.org>
76178
76179         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76180
76181 2004-07-09  Simon Josefsson  <jas@extundo.com>
76182
76183         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76184         failed without this.)
76185
76186 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76187
76188         * modules/chown (Files): Add lib/fchown-stub.c, since
76189         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76190
76191 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76192
76193         * lib/fchown-stub.c: New file.
76194
76195 2004-06-24  Jim Meyering  <jim@meyering.net>
76196
76197         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76198
76199 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76200
76201         * modules/argz: Omit "#include".
76202
76203         * MODULES.html.sh (func_all_modules): Add calloc, to match
76204         2004-06-01 addition of calloc module.
76205
76206 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76207
76208         * m4/argz.m4: New file, which is autoupdated from libtool.
76209
76210 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76211
76212         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76213         libtool.
76214
76215 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76216
76217         * config/srclist-update: Don't insist on "USA." before the
76218         close-comment, as libtool omits the period and puts the */ on a
76219         separate line.
76220         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76221         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76222
76223 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76224
76225         * modules/argz: New file.
76226         * MODULES.html.sh (func_all_modules): Add argz.
76227
76228 2004-06-12  Jim Meyering  <jim@meyering.net>
76229         and  Paul Eggert  <eggert@cs.ucla.edu>
76230
76231         * modules/hash (Files): Add lib/xalloc.h.
76232         * modules/pipe (Depends-on): Add wait-process.
76233         * modules/stat (Depends-on): Add xalloc.
76234         * modules/userspec (Files): Add lib/userspec.h.
76235         * modules/xstrto
76236
76237         Upgrade from gettext-0.13.
76238         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76239         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76240         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76241
76242 2004-06-10  Jim Meyering  <jim@meyering.net>
76243
76244         * lib/calloc.c: New file.
76245
76246 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76247
76248         * lib/getdate.y (yylex): Allow space between sign and number.
76249         Problem reported by Dan Jacobson.
76250
76251 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76252
76253         Merge from coreutils CVS.
76254
76255         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76256         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76257         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76258         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76259         xstrtol.m4: Fix copyright date and/or serial number.
76260
76261         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76262         See if we need an fchown replacement.
76263         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76264         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76265         and use the replacement function if we detect either defect.
76266
76267         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76268         gl_UTIMECMP.
76269
76270 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76271         and  Jim Meyering  <jim@meyering.net>
76272
76273         Merge from coreutils CVS.
76274
76275         * lib/stat-macros.h: New file, with contents from file-type.h
76276         and coreutils' system.h.
76277         * lib/file-type.c: Include "stat-macros.h".
76278         * lib/file-type.h (file_type): Move all macro definitions to new file,
76279         stat-macros.h.
76280
76281         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76282         Wrap old code with this conditional.
76283         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76284         function that does not dereference symlinks.
76285         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76286
76287         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76288         dependency problems.
76289         (xreadlink): Accept new arg SIZE, for efficiency.
76290         All decls and uses changed.
76291         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76292
76293         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76294         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76295
76296         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76297         sysexits.h.
76298
76299 2004-06-01  Jim Meyering  <jim@meyering.net>
76300
76301         * m4/calloc.m4: New file.
76302
76303 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76304
76305         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76306         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76307         Also, fix a typo in a diagnostic.
76308
76309 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76310
76311         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76312         or AC_FUNC_REALLOC.
76313
76314 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76315
76316         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76317         macros to be defined.
76318         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76319         the allocator returns NULL because the requested size is zero.
76320
76321 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76322
76323         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76324         var.  Add comment explaining why libc still defines it.  This
76325         merges the following patch from glibc:
76326         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76327
76328 2004-05-20  Andreas Schwab  <schwab@suse.de>
76329
76330         * m4/free.m4: Replace free if it not known to work, not the other
76331         way round.
76332
76333 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76334
76335         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76336         present in glibc since revision 1.1 of this file.
76337         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76338         obstack_alignment_mask, obstack_alloc, obstack_base,
76339         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76340         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76341         obstack_grow0, obstack_init, obstack_int_grow,
76342         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76343         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76344         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76345         nonexistent functions.
76346
76347 2004-05-18  Karl Berry  <karl@gnu.org>
76348
76349         * config/srclist.txt: break link for vasnprintf.c.
76350
76351 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76352
76353         Port obstack to the AS/400, where pointers are 16 bytes wide and
76354         you cannot cast an integer to a valid pointer.  This patch is
76355         currently waiting to be integrated into glibc; see
76356         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76357
76358         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76359         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76360         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76361         (struct obstack): temp member is now a union of a pointer and
76362         an integer, instead of an integer.  All integer uses changed.
76363         This does not affect the physical layout of struct obstack,
76364         except on hosts (like the AS/400) where the size or alignment of
76365         void * is greater than that of ptrdiff_t.
76366         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76367         __STDC__)]: Store temporary in pointer member of union, not
76368         integer member.
76369         * lib/obstack.c: Include <stddef.h>, for offsetof.
76370         (struct fooalign): Remove; it doesn't need a name.
76371         (union fooround): Change double to long double, and add void *.
76372         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76373         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76374         not a macro.  Hence the values are always int; so remove all
76375         casts-to-int in uses.
76376
76377 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76378
76379         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76380         we can get this patch merged into glibc.
76381
76382 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76383             Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * m4/argp: Depend on alloca.
76386
76387 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76388             Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76391         freecoding.
76392
76393 2004-05-17  Bruno Haible  <bruno@clisp.org>
76394
76395         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76396         precision that consists of a '.' followed by an empty digit string.
76397         Patch by Tor Lillqvist <tml@iki.fi>.
76398
76399 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76400
76401         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76402         for backward compatibility with older code.  We need our own
76403         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76404         it under some other name, and our alloca.h will define it.
76405
76406 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76407             Derek Price  <derek@ximbiot.com>
76408
76409         * lib/alloca.c: Include <alloca.h>, to get our interface.
76410         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76411         include <alloca.h> first.  Use C89 prototype for alloca; this
76412         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76413         Use #elif for simplicity, since we can assume C89 now.
76414         Don't try to source the system alloca.h since it will not be found
76415         and to prevent recursively including its replacement.
76416         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76417         * lib/regex.c: Likewise.
76418
76419 2004-05-16  Derek Price  <derek@ximbiot.com>
76420             Paul Eggert  <eggert@cs.ucla.edu>
76421
76422         getline cleanup.  This changes the getndelim2 API: both order of
76423         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76424         no delimiter).
76425
76426         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76427         interface does that.
76428         (getline): Always use getdelim, so that we don't have two
76429         copies of this code.
76430         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76431         if available.
76432         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76433         (GETNDELIM2_MAXIMUM): New macro.
76434         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76435         instead of the old practice of delim2==0.  All callers changed.
76436         Return -1 on overflow, instead of returning junk.
76437         Do not set *linesize unless allocation succeeds.
76438         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76439         that we include sys/types.h.
76440         * lib/getnline.h: Likewise.
76441         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76442         (getndelim2): Reorder arguments.
76443         * lib/getnline.c (getnline, getndelim):
76444         Don't discard the NMAX argument.
76445         (getnline): Invoke getndelim, to avoid code duplication.
76446         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76447         of (size_t) -1 by callers of the getnline family.
76448
76449 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76450
76451         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76452         Check for gettimeofday.
76453         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76454         Check for settimeofday, stime.
76455
76456 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76457
76458         * lib/nanosleep.c (suspended): Change its type from int to
76459         sig_atomic_t volatile.
76460         (first_call): Make it private to rpl_nanosleep, and have it
76461         be zero initially as that's a bit faster.
76462         (my_usleep): Round up fractional times instead of truncating them,
76463         as this is the usual meaning for 'sleep'.
76464
76465         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76466         doesn't work.
76467         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76468         (ENOSYS): Define if not defined.
76469         (settime): Fall back on stime if it exists and settimeofday fails.
76470         But don't bother with fallbacks if a method fails with errno == EPERM.
76471
76472 2004-05-11  Jim Meyering  <jim@meyering.net>
76473
76474         Prior to this change, the save_cwd caller required read access to the
76475         current directory on most systems (ones with the fchdir function).
76476
76477         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76478         fails, try write-only, and finally, resort to using xgetcwd.
76479
76480 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76481
76482         * lib/obstack.c, obstack.h: Import changes from libc.
76483
76484 2004-04-28  Bruno Haible  <bruno@clisp.org>
76485
76486         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76487         also implicitly appends .exe to executables.
76488         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76489         accepts Windows pathnames.
76490         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76491         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76492         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76493         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76494         Reported by Derek Robert Price <derek@ximbiot.com>.
76495
76496 2004-04-21  Karl Berry  <karl@gnu.org>
76497
76498         * config/srclist.txt (localcharset.c): break sync.
76499
76500 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76501
76502         * m4/host-os.m4: Add a copyright notice.
76503
76504 2004-04-20  Jim Meyering  <jim@meyering.net>
76505
76506         Change UTILS_ to gl_ in AC_DEFINE'd names.
76507         Change utils_- and jm_-prefixed variables, too.
76508         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76509         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76510         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76511
76512         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76513         Don't emit trailing blanks.
76514         Also rename jm_-prefixed variables to have gl_ prefix.
76515
76516         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76517         Also rename jm_-prefixed variables to have gl_ prefix.
76518
76519         * m4/jm-macros.m4: Reflect the renamings.
76520         * m4/prereq.m4: Likewise.
76521
76522 2004-04-20  Jim Meyering  <jim@meyering.net>
76523
76524         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76525         memory.
76526
76527 2004-04-20  Jim Meyering  <jim@meyering.net>
76528             Bruno Haible  <bruno@clisp.org>
76529
76530         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76531         memory when realloc fails.
76532
76533 2004-04-19  Jim Meyering  <jim@meyering.net>
76534
76535         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76536         now that readutmp.c may call `free (0)'.
76537
76538 2004-04-19  Bruno Haible  <bruno@clisp.org>
76539
76540         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76541         * m4/inttypes_h.m4: Likewise.
76542         * m4/stdint_h.m4: Likewise.
76543         * m4/intmax_t.m4: Likewise.
76544         * m4/uintmax_t.m4: Likewise.
76545
76546 2004-04-18  Jim Meyering  <jim@meyering.net>
76547
76548         * m4/prereq.m4: Don't forbid jm_ prefix.
76549
76550         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76551         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76552         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76553         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76554         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76555         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76556         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76557         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76558         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76559         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76560         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76561         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76562         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76563         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76564         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76565         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76566         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76567         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76568         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76569
76570 2004-04-18  Jim Meyering  <jim@meyering.net>
76571
76572         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76573         failure, don't leak memory and do call END_UTMP_ENT.
76574
76575 2004-04-16  Jim Meyering  <jim@meyering.net>
76576
76577         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76578         coreutils' stat program.
76579         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76580
76581 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76582
76583         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76584         C89.
76585         (CHAR_BIT): Remove, since we assume C89.
76586         Include <stdint.h> if available, as per current Autoconf CVS advice.
76587
76588 2004-03-31  Jim Meyering  <jim@meyering.net>
76589
76590         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76591         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76592         * m4/xalloc.m4: Likewise.
76593
76594 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76595
76596         Merge from coreutils.
76597
76598         * m4/inttostr.m4: New file.
76599         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76600         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76601         Require gl_CLOCK_TIME.
76602         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76603
76604 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76605
76606         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76607         not bool, to be more consistent with Unix conventions.
76608         Suggested by Bruno Haible.
76609
76610         Merge from coreutils.
76611
76612         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76613         * lib/umaxtostr.c: New files.
76614
76615         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76616         the usual <time.h> dance.
76617         (get_date): Change signature to support fractional time stamps.
76618         All callers changed.
76619         * lib/getdate.y: Include "getdate.h" first, as we can now
76620         assume C89 and don't need to worry about 'const'.
76621         Similarly, include "unlocked-io.h" near start, not in middle.
76622         Include <limits.h>.
76623         (textint.value): Use long int rather than int.
76624         (textint.digits): Use size_t rather than int.
76625         (BILLION, LOG10_BILLION): New constants.
76626         (parser_control): New member rel_ns.  Members day_ordinal,
76627         time_zone, month, day, hour, minutes, rel_year, rel_month,
76628         rel_day, rel_hour, rel_minutes, rel_seconds
76629         are now long int, not int.  Member seconds is now struct timespec,
76630         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76631         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76632         not int.
76633         (%union.intval): Now long int, not int.
76634         New member timespec.
76635         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76636         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76637         (spec): Now is a timespec or an item list.
76638         (timespec, items): New nonterminals.
76639         (time, rel, relunit, number, get_date):
76640         Add support for fractional seconds.
76641         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76642         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76643         (to_hour): First arg is now long int, not int.
76644         (to_year): Returns long int, not int.
76645         Don't treat year -70 like 70.
76646         (tm_diff): Returns long int, not int.
76647         (lookup_word): Use bool instead of int when appropriate.
76648         (yylex): Use size_t for count, not int.
76649         Detect overflow when parsing large integer constants.
76650         Add support for fractions.
76651         (get_date): Make pointers 'const' if possible.
76652         Use more-portable code to detect integer overflow.
76653         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76654         Don't use ctime; it's not reliable if the year has >4 digits.
76655
76656         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76657         This is for compatibility with BSD.
76658
76659         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76660         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76661         From coreutils' system.h.
76662
76663         * lib/userspec.c: Don't include "posixver.h".
76664         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76665         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76666         compatible extension.  Simplify code by removing a boolean int
76667         that was always nonzero if a string was nonnull.
76668
76669 2004-03-30  Jim Meyering  <jim@meyering.net>
76670
76671         Merge from coreutils.
76672
76673         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76674         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76675         on some systems one must include <grp.h> before it.
76676         Reported by Christian Krackowizer.
76677
76678 2004-03-30  Jim Meyering  <jim@meyering.net>
76679
76680         Merge from coreutils.
76681
76682         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76683
76684         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76685         an empty input stream.
76686
76687         * lib/readtokens.c: Include <stdbool.h>.
76688         (readtoken): Use `size_t' rather than int/long.
76689         All callers adjusted.
76690         Use `bool' rather than `int' where appropriate.
76691         Use memset rather than an explicit loop.
76692         Use x2nrealloc rather than xrealloc.
76693         Allow the use of `\0' as a delimiter.
76694         (readtokens): Likewise.
76695         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76696
76697 2004-03-30  Jim Meyering  <jim@meyering.net>
76698
76699         * m4/realloc.m4: Remove file, since now it does no more than
76700         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76701         the `configure.ac' section of module/realloc.
76702         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76703
76704 2004-03-30  Bruno Haible  <bruno@clisp.org>
76705
76706         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76707         nonnull.
76708
76709 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76710
76711         Merge changes to getloadavg.c from coreutils and Emacs.
76712
76713         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76714         Define to an expression, not to the empty string.
76715         Include cloexec.h and xalloc.h.
76716         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76717         Use set_cloexec_flag rather than rolling our own.
76718         * lib/cloexec.c, lib/cloexec.h: New files.
76719
76720 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76721
76722         * m4/cloexec.m4: New file.
76723
76724 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76725
76726         * lib/getopt.h: Sync with libc CVS.
76727
76728 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76729             Bruno Haible  <bruno@clisp.org>
76730
76731         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76732         mbswidth.
76733
76734 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76735             Bruno Haible  <bruno@clisp.org>
76736
76737         * lib/mbswidth.h: Include <wchar.h> only if
76738         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76739         <wchar.h>.
76740         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76741
76742 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76743
76744         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76745         Sync with libc CVS.
76746         * lib/getopt_int.h: New file, also synced from libc.
76747
76748 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76749
76750         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76751         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76752         Bring back getopt.c, getopt.h, getopt1.c.
76753
76754 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76755
76756         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76757         All uses changed.  Check for sa_sigaction member; this fixes
76758         a bug first reported by Jason Andrade in
76759         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76760
76761 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76762
76763         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76764         '#if' expressions.  Unlike the code it replaces, it does not
76765         depend on (defined _SC_PAGESIZE).  However, it does depend on
76766         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76767         first reported by Jason Andrade in
76768         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76769
76770 2004-02-25  Simon Josefsson  <jas@extundo.com>
76771
76772         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76773
76774 2004-02-25  Simon Josefsson  <jas@extundo.com>
76775
76776         * lib/strdup.h: New file.
76777         * lib/strdup.c: Include it.
76778         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76779         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76780
76781 2004-02-23  Karl Berry  <karl@gnu.org>
76782
76783         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76784         (from fencepost.gnu.org:/gd/gnuorg).
76785
76786 2004-02-23  Karl Berry  <karl@gnu.org>
76787
76788         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76789         * config/srclist.txt: add maintain/standards documents.
76790
76791 2004-02-18  Bruno Haible  <bruno@clisp.org>
76792
76793         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76794         Reported by Derek Robert Price <derek@ximbiot.com>.
76795
76796 2004-02-16  Karl Berry  <karl@gnu.org>
76797
76798         * config/mkinstalldirs, install-sh: update from automake.
76799
76800 2004-02-06  Karl Berry  <karl@gnu.org>
76801
76802         * m4/po.m4: update from gettext 0.14.1.
76803
76804 2004-02-06  Karl Berry  <karl@gnu.org>
76805
76806         * lib/config.charset: update from gettext 0.14.1.
76807
76808 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76809
76810         Add comments and code, prompted by suggestions from Bruno Haible
76811         for sh-quote.
76812         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76813         describing the enum quoting_style values.
76814         * lib/quotearg.c (quotearg_alloc): New function.
76815         (quotearg_buffer_restyled): Treat lone { and } as special.
76816         Treat = as special.  Work around bug with older shells
76817         that "see" a '\' that is really the 2nd byte of a multibyte char.
76818         Quote empty string with shell_quoting_style.
76819
76820 2004-02-03  Bruno Haible  <bruno@clisp.org>
76821
76822         * m4/pipe.m4: New file, from GNU gettext.
76823
76824 2004-02-03  Bruno Haible  <bruno@clisp.org>
76825
76826         * lib/pipe.h: New file, from GNU gettext.
76827         * lib/pipe.c: New file, from GNU gettext.
76828
76829 2004-01-27  Bruno Haible  <bruno@clisp.org>
76830
76831         * m4/execute.m4: New file, from GNU gettext.
76832
76833 2004-01-27  Bruno Haible  <bruno@clisp.org>
76834
76835         * lib/execute.h: New file, from GNU gettext.
76836         * lib/execute.c: New file, from GNU gettext.
76837         * lib/w32spawn.h: New file, from GNU gettext.
76838
76839 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76840
76841         Merge from diffutils.
76842
76843         * lib/file-type.c (file_type): Add typed memory objects.
76844         * lib/file-type.h (S_TYPEISTMO): New macro.
76845
76846         * lib/c-stack.h (c_stack_action): Remove argv argument.
76847         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76848         (die): Don't calculate message unless segv_action returns.
76849         (get_stack_location, min_address_from_argv, max_address_from_argv,
76850         volatile stack_base, volatile_stack_size): Remove.
76851         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76852         that every segmentation violation is a stack overflow.  (Ouch!)
76853         See Debian bug 136249 (still outstanding) for more info about why
76854         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76855
76856 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76857
76858         Exit-status fix from coreutils.
76859
76860         Use exit_failure consistently in place of EXIT_FAILURE,
76861         so that program exit statuses are consistent on failure.
76862
76863         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76864         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76865         * lib/argmatch.h: Comment fix to match the above.
76866         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76867         Now a macro referring to exit_failure, instead of a separate
76868         variable.  Include "exitfail.h" to get it.
76869         * lib/xstrtol.h: Include "exitfail.h".
76870         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76871
76872         * lib/long-options.c (parse_long_options): Use prototype
76873         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76874         for clarity.
76875
76876 2004-01-21  Jim Meyering  <jim@meyering.net>
76877
76878         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76879         so as not to conflict with a different-sized __mktime_internal
76880         function in GNU libc.
76881         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76882         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76883
76884 2004-01-20  Karl Berry  <karl@gnu.org>
76885
76886         * config/config.guess: update from config.
76887
76888         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76889
76890 2004-01-20  Bruno Haible  <bruno@clisp.org>
76891
76892         Safer stack allocation.
76893         * lib/setenv.c: Include allocsa.h.
76894         (alloca): Remove fallback definition.
76895         (freea): Remove macro.
76896         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76897         instead of freea.
76898
76899 2004-01-20  Bruno Haible  <bruno@clisp.org>
76900
76901         * m4/eealloc.m4: New file, from GNU gettext.
76902
76903 2004-01-20  Bruno Haible  <bruno@clisp.org>
76904
76905         * m4/allocsa.m4: New file, from GNU gettext.
76906
76907 2004-01-20  Bruno Haible  <bruno@clisp.org>
76908
76909         * lib/xallocsa.h: New file, from GNU gettext.
76910         * lib/xallocsa.c: New file, from GNU gettext.
76911
76912 2004-01-20  Bruno Haible  <bruno@clisp.org>
76913
76914         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76915
76916 2004-01-20  Bruno Haible  <bruno@clisp.org>
76917
76918         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76919         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76920         specially.
76921
76922 2004-01-20  Bruno Haible  <bruno@clisp.org>
76923
76924         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76925         patch.
76926
76927 2004-01-20  Bruno Haible  <bruno@clisp.org>
76928
76929         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76930
76931 2004-01-20  Bruno Haible  <bruno@clisp.org>
76932
76933         * lib/eealloc.h: New file.
76934
76935 2004-01-20  Bruno Haible  <bruno@clisp.org>
76936
76937         * lib/binary-io.h: Avoid warnings on Cygwin.
76938
76939 2004-01-20  Bruno Haible  <bruno@clisp.org>
76940
76941         * lib/allocsa.h: New file, from GNU gettext.
76942         * lib/allocsa.c: New file, from GNU gettext.
76943
76944 2004-01-18  Karl Berry  <karl@gnu.org>
76945
76946         * doc/gpl.texi, doc/lgpl.texi: new files.
76947
76948 2004-01-18  Karl Berry  <karl@gnu.org>
76949
76950         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76951         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76952
76953 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76954
76955         Merge from coreutils.
76956
76957         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76958         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76959         (gl_DEFAULT_POSIX2_VERSION): Move
76960         the documentation from 'configure' into 'config.hin',
76961         so that 'configure --help' isn't burdened by it and
76962         we don't have to worry about its formatting there.
76963         Reword the documentation so that it's more succinct
76964         and can be run together into a single paragraph.
76965         * m4/same.m4 (gl_SAME): Check for pathconf.
76966
76967 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76968
76969         Merge from coreutils.
76970
76971         * lib/posixver.c: Include posixver.h.
76972
76973         * lib/same.c: Include <stdbool.h>, <limits.h>.
76974         (_POSIX_NAME_MAX): Define if not defined.
76975         (MIN): New macro.
76976         (same_name): If file names are silently truncated, report
76977         that the file names are the same if they are the same after
76978         the silent truncation.
76979
76980         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76981         conversion function.
76982         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76983         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76984         longer needed.
76985
76986 2004-01-15  Jim Meyering  <jim@meyering.net>
76987
76988         Merge from coreutils.
76989
76990         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76991         if no library is required.
76992         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76993         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76994         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76995         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76996         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76997         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76998         value, $ac_cv_search_crypt, if it's "none required".
76999         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77000         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77001         not gl_FUNC_GETLOADAVG.
77002         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77003         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77004
77005 2004-01-15  Jim Meyering  <jim@meyering.net>
77006
77007         Merge from coreutils.
77008
77009         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77010         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77011         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77012
77013         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77014         optional configure-time default.
77015
77016         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77017
77018         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77019
77020 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77021
77022         Merge from coreutils.
77023
77024         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77025         value, $ac_cv_search_nanosleep, if it's "none required".
77026
77027 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77028
77029         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77030         with like-named macro in fnmatch.c.
77031         (EXT): Use an internal constant instead.
77032
77033         Merge fnmatch patches from glibc.
77034         * lib/fnmatch.c (mbsinit): Remove define.
77035         Add libc_hidden_ver (__fnmatch, fnmatch).
77036         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77037         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77038
77039 2004-01-14  Karl Berry  <karl@gnu.org>
77040
77041         * config/install-sh: update from automake.
77042
77043 2004-01-13  Karl Berry  <karl@gnu.org>
77044
77045         * config/install-sh: update from automake.
77046
77047 2004-01-09  Karl Berry  <karl@gnu.org>
77048
77049         * config/install-sh: update from automake.
77050
77051 2004-01-05  Karl Berry  <karl@gnu.org>
77052
77053         * config/config.{sub,guess}: update from config.
77054
77055 2003-12-31  Karl Berry  <karl@gnu.org>
77056
77057         * config/depcomp: update from automake.
77058
77059 2003-12-14  Karl Berry  <karl@gnu.org>
77060
77061         * lib/config.charset: update from gettext-runtime.
77062
77063 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77064
77065         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77066         Bug reported by Alfred M. Szmidt.
77067
77068 2003-12-03  Bruno Haible  <bruno@clisp.org>
77069
77070         * m4/gettext.m4: Upgrade from gettext-0.13.
77071         * m4/po.m4: Upgrade from gettext-0.13.
77072         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77073         * m4/intmax.m4: New file, from gettext-0.13.
77074         * m4/printf-posix.m4: New file, from gettext-0.13.
77075
77076 2003-11-29  Karl Berry  <karl@gnu.org>
77077
77078         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77079
77080 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77081             Bruno Haible  <bruno@clisp.org>
77082
77083         * lib/printf-parse.h: Don't include sys/types.h.
77084         (ARG_NONE): New macro.
77085         (char_directive): Change type of *arg_index fields to size_t.
77086         * lib/printf-parse.c: Don't include sys/types.h.
77087         (SSIZE_MAX): Remove macro.
77088         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77089         Remove unnecessary overflow check.
77090         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77091         fields.
77092
77093 2003-11-25  Bruno Haible  <bruno@clisp.org>
77094
77095         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77096
77097 2003-11-25  Bruno Haible  <bruno@clisp.org>
77098
77099         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77100         gt_TYPE_SSIZE_T.
77101
77102 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77103
77104         * modules/alloca: Remove dependency on xalloc.
77105
77106 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77107
77108         * lib/alloca.c: Remove dependency on xalloc module.
77109         (xalloc_die): Remove.
77110         (memory_full) [!defined emacs]: New macro.
77111         [!defined emacs]: Don't include xalloc.h.
77112         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77113         address arithmetic overflows.  Change datatypes a bit to avoid
77114         unnecessary casts.
77115
77116 2003-11-22  Jim Meyering  <jim@meyering.net>
77117
77118         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77119         s/size/size_t/.
77120
77121 2003-11-21  Karl Berry  <karl@gnu.org>
77122
77123         * config/config.{sub,guess}: update from config.
77124
77125 2003-11-18  Karl Berry  <karl@gnu.org>
77126
77127         * config/config.{sub,guess}: update from config.
77128
77129         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77130
77131 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77132
77133         * README: Mention that S+T cannot overflow if S is the size of
77134         an existing object and T is sufficiently small.
77135
77136 2003-11-17  Jim Meyering  <jim@meyering.net>
77137
77138         On systems without utime and without a utimes function capable of
77139         dealing with a NULL struct utimbuf* argument, this utime replacement
77140         could -- in unusual circumstances -- leak a file descriptor.
77141         * lib/utime.c: Include <unistd.h> and <errno.h>.
77142         (utime_null): Be sure to close `fd' and to preserve errno.
77143         Reported by Geoff Collyer via Arnold Robbins.
77144
77145 2003-11-17  Bruno Haible  <bruno@clisp.org>
77146
77147         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77148         (Depends-on): Add xsize.
77149
77150 2003-11-17  Bruno Haible  <bruno@clisp.org>
77151
77152         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77153
77154 2003-11-17  Bruno Haible  <bruno@clisp.org>
77155
77156         * lib/vasnprintf.c (alloca): Remove fallback definition.
77157         (freea): Remove definition.
77158         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77159         Reported by Paul Eggert.
77160
77161 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77162             Bruno Haible  <bruno@clisp.org>
77163
77164         Protect against address arithmetic overflow.
77165         * lib/printf-args.h: Include stddef.h.
77166         (arguments): Change type of field 'count' to size_t.
77167         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77168         'unsigned int' where appropriate.
77169         * lib/printf-parse.h: Include sys/types.h.
77170         (char_directive): Change type of *arg_index fields to ssize_t.
77171         (char_directives): Change type of fields 'count', max_*_length to
77172         size_t.
77173         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77174         (SSIZE_MAX): Define fallback value.
77175         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77176         instead of 'int' where appropriate. Check a_allocated, d_allocated
77177         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77178         * lib/vasnprintf.c: Include xsize.h.
77179         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77180         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77181         overflow. Avoid wraparound when converting a width or precision from
77182         decimal to binary.
77183
77184 2003-11-16  Bruno Haible  <bruno@clisp.org>
77185
77186         Update from GNU gettext.
77187         * lib/printf-parse.c: Generalize to it can be compiled for wide
77188         strings.
77189         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77190         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77191         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77192         SNPRINTF): New macros.
77193         Don't include <alloca.h> if the file is used inside libintl.
77194         (local_wcslen): New function, for Solaris 2.5.1.
77195         (VASNPRINTF): Use it instead of wcslen.
77196
77197 2003-11-16  Bruno Haible  <bruno@clisp.org>
77198
77199         * lib/xsize.h (xmax): New function.
77200         (xsum, xsum3, xsum4): Declare as "pure" functions.
77201
77202 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77203
77204         * modules/xalloc (Files): Undo latest change, since xalloc.h
77205         no longer needs SIZE_MAX or PTRDIFF_MAX.
77206
77207 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77208
77209         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77210         gl_PTRDIFF_MAX.
77211
77212 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77213
77214         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77215         "return", to pacify some unknown compiler.  Problem reported
77216         by Joerg Schilling.
77217
77218 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77219
77220         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77221         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77222         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77223         heuristic is just as accurate as far as we know, and it removes a
77224         dependency on size_max.m4 and ptrdiff_max.m4.
77225
77226 2003-11-11  Bruno Haible  <bruno@clisp.org>
77227
77228         * modules/xsize (Files): Add m4/size_max.m4.
77229         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77230
77231 2003-11-11  Bruno Haible  <bruno@clisp.org>
77232
77233         * m4/size_max.m4: New file.
77234         * m4/ptrdiff_max.m4: New file.
77235         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77236         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77237         (gl_XALLOC): Invoke it.
77238
77239 2003-11-11  Bruno Haible  <bruno@clisp.org>
77240
77241         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77242         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77243         defined.
77244
77245 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77246
77247         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77248         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77249         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77250         From Bruno Haible.
77251         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77252         not (size_t) -1, since it's defined here.
77253
77254 2003-11-09  Karl Berry  <karl@gnu.org>
77255
77256         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77257
77258 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77259
77260         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77261         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77262         Reject sizes of exactly SIZE_MAX bytes.
77263         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77264         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77265
77266 2003-11-05  Bruno Haible  <bruno@clisp.org>
77267
77268         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77269         SIZE_MAX defined in <limits.h> on Solaris.
77270
77271 2003-11-04  Jim Meyering  <jim@meyering.net>
77272
77273         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77274         variable names, rather than @VAR@.
77275         * modules/poll: Likewise.
77276
77277 2003-11-04  Bruno Haible  <bruno@clisp.org>
77278
77279         * modules/xsize: New file.
77280         * modules/linebreak: Depend on xsize.
77281         * MODULES.html.sh (func_all_modules): Add xsize.
77282
77283 2003-11-04  Bruno Haible  <bruno@clisp.org>
77284
77285         * m4/xsize.m4: New file.
77286
77287 2003-11-04  Bruno Haible  <bruno@clisp.org>
77288
77289         * lib/xsize.h: New file.
77290         * lib/linebreak.c: Include xsize.h.
77291         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77292         argument for overflow.
77293         Suggested by Paul Eggert.
77294
77295 2003-11-03  Karl Berry  <karl@gnu.org>
77296
77297         * config/config.{guess,sub}: update from config.
77298
77299 2003-11-03  Jim Meyering  <jim@meyering.net>
77300
77301         * modules/userspec (lib_SOURCES): Add userspec.h.
77302         (Include): Add "userspec.h".
77303         Improve description.
77304
77305 2003-11-03  Jim Meyering  <jim@meyering.net>
77306
77307         * lib/userspec.c: Include "userspec.h".
77308         * lib/userspec.h: New file.
77309
77310 2003-11-03  Bruno Haible  <bruno@clisp.org>
77311
77312         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77313
77314 2003-11-03  Bruno Haible  <bruno@clisp.org>
77315
77316         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77317         available, to avoid (extremely rare) race condition.
77318         Suggested by Paul Eggert.
77319
77320 2003-11-02  Karl Berry  <karl@gnu.org>
77321
77322         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77323
77324 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77325
77326         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77327         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77328         (read_filesystem_list): Set and use me_type_malloced.
77329         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77330         whatever the type happens to be), for brevity and consistency.
77331         Check for size calculation overflow on Alphas running OSF/1.
77332
77333 2003-10-31  Jim Meyering  <jim@meyering.net>
77334
77335         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77336
77337         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77338
77339 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77340             Bruno Haible  <bruno@clisp.org>
77341
77342         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77343         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77344
77345 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77346
77347         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77348         netbsd*-gnu*.  Suggested by Robert Millan.
77349
77350 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77351
77352         * modules/group-member: Depend on stdbool.
77353
77354 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77355
77356         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77357
77358 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77359
77360         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77361         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77362         after the 'gnu' in these cases.  This fixes some bugs in the
77363         previous change, and is based on suggestions by Robert Millan.
77364
77365 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77366
77367         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77368         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77369         no longer needed.
77370         * lib/quotearg.c (quotearg_n_options): Use it.
77371         * lib/group-member.c: Include <stdbool.h>.
77372         (free_group_info): Arg is now const *; don't free arg.
77373         (get_group_info): Now returns bool and accepts struct group_info *,
77374         rather than returning a malloc'ed struct group_info *.
77375         All uses changed.  Check for overflow in internal size calculation.
77376
77377         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77378         rather than xmalloc/xrealloc.
77379         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77380         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77381         conformance bug: the old code used a pointer after freeing the
77382         storage that it addressed.
77383         * lib/hash.c (hash_initialize): Simplify the code by using
77384         xalloc_oversized rather than doing it by hand.
77385         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77386         the buffer preserved.  Use free and xmalloc instead.
77387         * lib/quotearg.c (quotearg_n_options): Likewise.
77388         Use a simpler test for size overflow.  Don't use xalloc_oversized
77389         because unsigned int might be wider than size_t (!); this suggests
77390         that we should switch from unsigned int to size_t for slot numbers.
77391
77392 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77393
77394         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77395         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77396         NetBSD kernels.  Requested by Richard Stallman.
77397
77398 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77399
77400         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77401         to allocate the returned structure.  Do not allocate a subarray,
77402         as x2nrealloc will do that.
77403         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77404         instead of xnrealloc.
77405         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77406
77407 2003-10-27  Bruno Haible  <bruno@clisp.org>
77408
77409         * lib/stdbool_.h: Better support for BeOS.
77410
77411 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77412
77413         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77414         now uses inline.
77415
77416 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77417
77418         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77419         callers that want to do their own size-overflow checking.  Include
77420         <stdbool.h>, since xalloc_oversized returns bool.
77421         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77422         to use xalloc_oversized.
77423
77424         Add two functions x2realloc, x2nrealloc, for programs that grow
77425         arrays dynamically by doubling their sizes.
77426         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77427         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77428         New functions.
77429
77430         Port to C99 semantics for 'inline' of external functions.
77431         Bug reported by Bruno Haible.
77432         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77433         with the old contents of xnmalloc.
77434         (xnmalloc, xmalloc): Use it.
77435         (xnrealloc_inline): New static inline function,
77436         with the old contents of xnrealloc.
77437         (xnrealloc, xrealloc): Use it.
77438
77439         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77440         that.
77441
77442 2003-10-26  Karl Berry  <karl@gnu.org>
77443
77444         * config/srclist.txt (COPYING.DOC): no longer available from
77445         /gd/gnuorg; don't know where the ultimate source is.
77446
77447 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77448
77449         Fix several address-calculation bugs in the hash modules,
77450         plus some minor code cleanup.
77451
77452         * lib/hash.h: Include <stdbool.h>, for bool.
77453         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77454         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77455         hash_get_n_entries, hash_get_max_bucket_length,
77456         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77457         hash_rehash): Use size_t rather than unsigned.
77458         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77459         hash_get_n_buckets_used, hash_get_n_entries,
77460         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77461         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77462         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77463         Likewise.
77464         (SIZE_MAX): Define if not defined.
77465         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77466         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77467         hash_print):
77468         Use const * when possible.
77469         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77470         (check_tuning): Fix bug: if tuning parameters were very close to
77471         0 or 1, rounding errors could have caused subscript violations.
77472         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77473         (hash_initialize): Add 'fail:' label
77474         to free table and return NULL, and use it to simplify code.
77475         Use calloc rather than clearing the storage ourself.
77476         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77477         buffer size calculations.
77478         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77479         Include <stddef.h>, for size_t.
77480         * lib/hash-pjw.c (hash_pjw): Likewise.
77481         Switch to method described by Bruno Haible.
77482         Include <limits.h>, for CHAR_BIT.
77483         (SIZE_BITS): New macro.
77484
77485 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77486
77487         * m4/getline.m4 (AM_FUNC_GETLINE):
77488         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77489         hosts.  Problem reported by Derek Robert Price in
77490         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77491         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77492         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77493
77494 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77495
77496         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77497         ceiling the allocation at NMAX bytes rather than silently
77498         discarding input bytes before NMAX is reached.  This makes
77499         a difference only if NMAX exceeds SIZE_MAX / 2.
77500
77501         * lib/obstack.c: Merge from glibc.
77502         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77503         Add libc_hidden_def (_obstack_newchunk).
77504         (_obstack_free) [! defined _LIBC]: Remove.
77505         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77506         a clone of the function body.
77507         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77508         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77509
77510         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77511         glibc.
77512         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77513         arg to memcpy.
77514
77515         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77516         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77517         Don't use lvalue casts, as GCC plans to remove support for them
77518         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77519         was also present in the non-GCC version, indicating that this
77520         code had always been buggy and had never been widely used.
77521         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77522         Use the fast variant of each macro, rather than copying the
77523         definiens of the fast variant; that way, we'll be more likely to
77524         catch future bugs in the fast variants.
77525
77526 2003-10-20  Bruno Haible  <bruno@clisp.org>
77527
77528         * modules/wait-process: New file.
77529         * MODULES.html.sh (func_all_modules): Add wait-process.
77530
77531 2003-10-20  Bruno Haible  <bruno@clisp.org>
77532
77533         * m4/wait-process.m4: New file.
77534
77535 2003-10-20  Bruno Haible  <bruno@clisp.org>
77536
77537         * lib/wait-process.h: New file, from GNU gettext.
77538         * lib/wait-process.c: New file, from GNU gettext.
77539
77540 2003-10-19  Jim Meyering  <jim@meyering.net>
77541
77542         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77543         HPUX 10.20.
77544
77545 2003-10-18  Karl Berry  <karl@gnu.org>
77546
77547         * config/config.guess: update from config.
77548
77549 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77550
77551         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77552         (getgroups): First arg is int, not size_t.
77553         Don't let 'free' mangle errno.
77554
77555 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77556
77557         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77558
77559 2003-10-16  Karl Berry  <karl@gnu.org>
77560
77561         * config/config.{guess,sub}: update from config.
77562
77563 2003-10-16  Jim Meyering  <jim@meyering.net>
77564
77565         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77566         memcpy.
77567
77568 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77569
77570         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77571         (SIZE_MAX): Remove.
77572         (new_exclude, add_exclude_file): Initial size no longer needs to
77573         be a power of 2.
77574         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77575         our own address arithmetic overflow checking.
77576
77577         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77578         (fnmatch): Do not alloca more than 2000 wide characters;
77579         instead, use malloc for large buffers.
77580         Check for address arithmetic overflow, and return -1
77581         with errno set to ENOMEM in that case.
77582         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77583         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77584         instead, return -1.  Check for address arithmetic overflow.
77585
77586 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77587
77588         Handle invalid suffixes and overflow independently, so that
77589         callers can treat them independently as needed.  Fix some bugs in
77590         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77591         suffix for a human-readable blocksize.  The major caller-visible
77592         change is the addition of a new
77593         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77594         that both overflow and suffix chars were found.
77595
77596         * lib/human.c (humblock): Don't check separately for invalid suffix
77597         char; that is xstrtoumax's job (now that its bug is fixed).
77598         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77599         INTMAX_MAX]: New macros.
77600         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77601         TYPE_MAXIMUM): New macros.
77602         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77603         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77604         if overflow occurs, as it's what __strtol does and it's more useful
77605         in practice.
77606         (__xstrtol): If __strtol reports some error other than ERANGE,
77607         reflect it to the caller as LONGINT_INVALID.  If it reports
77608         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77609         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77610         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77611         value.
77612         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77613         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77614         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77615         [defined UINTMAX_MAX]: New macros.
77616
77617 2003-10-14  Bruno Haible  <bruno@clisp.org>
77618
77619         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77620
77621 2003-10-14  Bruno Haible  <bruno@clisp.org>
77622
77623         * m4/sig_atomic_t: New file, from GNU gettext.
77624         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77625
77626 2003-10-14  Bruno Haible  <bruno@clisp.org>
77627
77628         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77629         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77630         Also use volatile where needed.
77631
77632 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77633
77634         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77635         Change maintainer from Bruno Haible to 'all'.
77636
77637 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77638
77639         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77640
77641 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77642
77643         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77644         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77645         and define in terms of the other primitives.
77646         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77647         (SIZE_MAX): Define if not already defined.
77648         (array_size_overflow): New function.
77649         (xalloc_die): Abort instead of exiting if 'error' returns.
77650         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77651         (xmalloc, xrealloc): Use them.
77652         (xcalloc): Check for address arithmetic overflow.
77653         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77654         a bit faster than strcpy.
77655
77656 2003-10-10  Simon Josefsson  <jas@extundo.com>
77657
77658         * modules/argp (Depends-on): Add restrict and strcase.
77659
77660 2003-10-10  Simon Josefsson  <jas@extundo.com>
77661
77662         * m4/argp.m4: Add AC_C_INLINE.
77663
77664 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77665
77666         Merge getpass from libc, plus a few fixes.
77667
77668         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77669         Include <stdbool.h>.
77670         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77671         __fsetlocking to empty.
77672         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77673         do include <bits/libc-lock.h>.
77674         Do not include <fcntl.h>; not needed.
77675         [_LIBC]: Include <wchar.h>.
77676         (NOTCANCEL_MODE): New macro.
77677         (flockfile, funlockfile) [_LIBC]: New macros.
77678         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77679         [!_LIBC]: New macros.
77680         (call_fclose): New function.
77681         (getpass): Use it.  Save tty stream separately; this simplifies the
77682         code and makes it more reliable if stdin happens to equal stdout.
77683         Invoke __fsetlocking on tty.
77684         Handle thread cancellation if needed.
77685         Namespace cleanup (use __tcgetattr, __getline).
77686         Use bool for Booleans.
77687         [USE_IN_LIBIO]: Handle wide streams.
77688         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77689         stream might go where.
77690
77691         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77692         doesn't have to include <stdio.h> before us.
77693         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77694         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77695         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77696         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77697         if not declared, so that we can use getpass.c code from libc without
77698         rewriting it.
77699         (flockfile, ftrylockfile, funlockfile): New macros.
77700
77701 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77702
77703         * modules/getpass: Depend on stdbool.
77704
77705 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77706
77707         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77708
77709 2003-10-07  Karl Berry  <karl@gnu.org>
77710
77711         * config/config.{guess,sub}: update from config.
77712
77713 2003-10-06  Jim Meyering  <jim@meyering.net>
77714             Bruno Haible  <bruno@clisp.org>
77715
77716         This lets translators provide better translations for the
77717         "Written by ..." part of --version output.
77718         * lib/version-etc.h: Include stdarg.h.
77719         (version_etc_copyright): Declare as readonly.
77720         (version_etc): Make this function variadic with a NULL-terminated list
77721         of author name strings.
77722         (version_etc_va): New declaration.
77723         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77724         (version_etc_copyright): Declare as readonly.
77725         (version_etc_va): New function. Provide a different translatable string
77726         for each possible number of authors < 10. Abbreviate when there are 10
77727         authors or more.
77728         (version_etc): Make this function variadic. Call version_etc_va.
77729         Suggestion from Gary V. Vaughan.
77730
77731         * lib/long-options.h (parse_long_options): Change prototype: the
77732         authors string is moved to the end and becomes variadic.
77733         * lib/long-options.c: Include stdarg.h.
77734         (parse_long_options): Make this function variadic, too.
77735         Call version_etc_va, not version_etc.
77736
77737 2003-10-06  Bruno Haible  <bruno@clisp.org>
77738
77739         * modules/version-etc-2: Remove file.
77740         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77741
77742 2003-10-06  Bruno Haible  <bruno@clisp.org>
77743
77744         * modules/fatal-signal: New file.
77745         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77746
77747 2003-10-06  Bruno Haible  <bruno@clisp.org>
77748
77749         * m4/fatal-signal.m4: New file.
77750         * m4/signalblocking.m4: New file, from GNU gettext.
77751
77752 2003-10-06  Bruno Haible  <bruno@clisp.org>
77753
77754         * lib/version-etc-2.h: Remove file.
77755         * lib/version-etc-2.c: Remove file.
77756
77757 2003-10-06  Bruno Haible  <bruno@clisp.org>
77758
77759         * lib/fatal-signal.h: New file, from GNU gettext.
77760         * lib/fatal-signal.c: New file, from GNU gettext.
77761
77762 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77763
77764         * README: Rework advice for preventing empty .o files.
77765         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77766         not <sys/types.h>.
77767
77768 2003-10-04  Karl Berry  <karl@gnu.org>
77769
77770         * lib/argp*: update from libc.
77771
77772 2003-10-04  Karl Berry  <karl@gnu.org>
77773
77774         * config/config.{guess,sub}: update from config.
77775
77776 2003-10-02  Bruno Haible  <bruno@clisp.org>
77777
77778         * modules/lchown (Include): Add lchown.h.
77779         * modules/time_r (Include): Use "..." syntax.
77780         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77781
77782 2003-10-01  Simon Josefsson  <jas@extundo.com>
77783
77784         * MODULES.html.sh (func_all_modules): Move gethostname from section
77785         'based on' to section 'lacking' POSIX:2001.
77786
77787 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77788
77789         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77790         to output mode on the same stream.
77791
77792 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77793
77794         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77795         Fix arg typo in previous patch.
77796
77797 2003-09-28  Jim Meyering  <jim@meyering.net>
77798
77799         * lib/error.c: Correct cpp indentation.
77800
77801 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77802
77803         * modules/free: New file.
77804
77805 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77806
77807         * m4/free.m4: New file.
77808
77809 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77810
77811         * lib/minmax.h (MIN, MAX)
77812         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77813         Omit the special code that used __typeof__, since we worry that
77814         it could be more trouble than it's worth.  See:
77815         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77816         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77817
77818         * lib/free.c: New file.
77819
77820 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77821
77822         Trivial fixes to Makefile.am parts of module listings.
77823         * modules/strstr: Append strstr.h to lib_SOURCES.
77824         * modules/strcase: Likewise, for strcase.h.
77825
77826 2003-09-27  Karl Berry  <karl@gnu.org>
77827
77828         * config/mkinstalldirs: update from automake.
77829
77830 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77831
77832         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77833         (error_tail): Do not loop, reallocating temporary buffer, since
77834         the output cannot contain more wide characters than the input
77835         contains bytes, the size must be big enough already.  This avoids
77836         one potential size overflow calculation.  Check for size overflow
77837         when calculating temporary buffer size.  Free temporary buffer
77838         when done, if it was allocated with malloc; this plugs a memory
77839         leak.  Remove casts from void * to pointers, that are no longer
77840         needed now that we're assuming C89 or better.
77841
77842         Merge error changes from glibc.
77843
77844         * lib/error.c, error.h: Update copyright notice header to match glibc.
77845         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77846         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77847         Disable cancellation while printing error.
77848         * lib/error.h: Prepend __ to parameter names.
77849
77850 2003-09-26  Jim Meyering  <jim@meyering.net>
77851
77852         * lib/error.c (error_tail): Move some declarations
77853         into inner scope where the local variables are used.
77854
77855 2003-09-26  Bruno Haible  <bruno@clisp.org>
77856
77857         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77858         stpncpy().
77859         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77860
77861 2003-09-26  Bruno Haible  <bruno@clisp.org>
77862
77863         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77864         (stpncpy): Define as alias for gnu_stpncpy.
77865         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77866
77867 2003-09-25  Simon Josefsson  <jas@extundo.com>
77868
77869         * lib/xgetdomainname.h: New file.
77870         * lib/xgetdomainname.c: New file.
77871
77872 2003-09-25  Simon Josefsson  <jas@extundo.com>
77873             Bruno Haible  <bruno@clisp.org>
77874
77875         * modules/getdomainname: New file.
77876         * modules/xgetdomainname: New file.
77877         * MODULES.html.sh (func_all_modules): Add getdomainname,
77878         xgetdomainname.
77879
77880 2003-09-25  Simon Josefsson  <jas@extundo.com>
77881             Bruno Haible  <bruno@clisp.org>
77882
77883         * m4/getdomainname.m4: New file.
77884
77885 2003-09-25  Simon Josefsson  <jas@extundo.com>
77886             Bruno Haible  <bruno@clisp.org>
77887
77888         * lib/getdomainname.h: New file.
77889         * lib/getdomainname.c: New file.
77890
77891 2003-09-25  Karl Berry  <karl@gnu.org>
77892
77893         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77894
77895 2003-09-25  Karl Berry  <karl@gnu.org>
77896
77897         * config/install-sh: update from automake.
77898
77899 2003-09-25  Bruno Haible  <bruno@clisp.org>
77900
77901         * modules/version-etc-2: New file, from modules/version-etc with
77902         modifications.
77903         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77904
77905 2003-09-25  Bruno Haible  <bruno@clisp.org>
77906
77907         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77908         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77909
77910 2003-09-24  Simon Josefsson  <jas@extundo.com>
77911
77912         * modules/xgethostname: Add xgethostname.h.
77913
77914 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77915
77916         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77917         the buffer associated with the argument.  Bug reported by
77918         Simon Josefsson.
77919
77920 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77921
77922         * README: Document assumptions that 'int' is at least 32 bits
77923         wide, that integer arithmetic is 2's complement without overflow,
77924         that there are no holes in integer values, that adding sizes of
77925         two nonoverlapping objects can't overflow, and that all-bits-zero
77926         yields scalar zero.  Fix spelling and capitalization typos.
77927
77928 2003-09-19  Karl Berry  <karl@gnu.org>
77929
77930         * lib/argp.h: update from libc.
77931
77932 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77933
77934         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77935         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77936         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77937
77938 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77939
77940         * gnulib-tool: Use "test -h", not "test -L", for portability
77941         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77942         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77943         (sed_extract_prog): Issue s commands one-by-one, rather than
77944         using \| in one s command.
77945
77946 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77947
77948         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77949         input error, instead of returning NULL the next time we are called
77950         (and therefore losing track of errno).
77951
77952 2003-09-16  Bruno Haible  <bruno@clisp.org>
77953
77954         * gnulib-tool (func_create_testdir): Warn about duplicated
77955         dependencies.
77956
77957 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77958
77959         * modules/argmatch, modules/fatal, modules/obstack,
77960         modules/xalloc, modules/xgethostname: Sort dependencies by
77961         importance, not alphabetically.
77962
77963 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77964
77965         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77966         fails, so that the caller gets the proper errno.
77967
77968         * lib/readutmp.c (read_utmp): Likewise.
77969         Check for fstat error.  Close stream and free storage
77970         when failing.
77971
77972 2003-09-14  Karl Berry  <karl@gnu.org>
77973
77974         * config/srclist.txt (strdup.c): disable for c89 changes.
77975
77976 2003-09-14  Jim Meyering  <jim@meyering.net>
77977
77978         * lib/getloadavg.c: Correct cpp indentation.
77979         * lib/strdup.c: Likewise.
77980         * lib/vasnprintf.c: Likewise.
77981
77982 2003-09-14  Bruno Haible  <bruno@clisp.org>
77983
77984         * modules/fwriteerror: New file.
77985         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77986
77987 2003-09-14  Bruno Haible  <bruno@clisp.org>
77988
77989         * lib/fwriteerror.h: New file.
77990         * lib/fwriteerror.c: New file.
77991
77992 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77993
77994         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77995         modules/xgethostname, modules/xalloc: Depend on exit.
77996
77997 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77998
77999         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78000
78001         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78002         and AC_MINIX, too, so that their extensions are available.
78003
78004         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78005         This macro has been superseded by gl_BACKUPFILE.
78006
78007         More patches to assume C89 or better.
78008
78009         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78010
78011         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78012         unconditionally.
78013         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78014         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78015         Include <string.h>, <stdlib.h> unconditionally.
78016         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78017         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78018         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78019         headers or for string.h.
78020         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78021         or strtoul.
78022
78023         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78024         headers.
78025         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78026         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78027         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78028         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78029         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78030         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78031         memcpy, memset.
78032         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78033         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78034         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78035         strtol.
78036         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78037         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78038         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78039         strtoul.
78040
78041 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78042
78043         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78044         * lib/obstack.c [!defined _LIBC]: Likewise.
78045         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78046         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78047         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78048
78049         More changes to assume C89 or better.
78050
78051         * lib/error.c (error_tail): Assume vprintf.
78052
78053         * lib/argmatch.c (getenv): Remove decl.
78054         * lib/progreloc.c (get_full_program_name): Define via prototype.
78055         * lib/setenv.c (clearenv): Likewise.
78056         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78057         needed.
78058         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78059         (malloc, memcpy): Remove decls.
78060         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78061         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78062         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78063         (memcpy): Remove macro.
78064         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78065         (__P): Remove.  All uses removed.
78066         (PTR): Remove.  All uses changed to void *.
78067         (CHAR_BIT, NULL): Remove.
78068         (spaces, zeros, memset_space, memset_zero)
78069         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78070         Remove.
78071         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78072         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78073         Define with prototype.
78074         Remove now-unnecessary prototype decl.
78075         (extra_args_spec): Assume ANSI C.  All uses changed.
78076         (extra_args_spec_iso): Remove.
78077         (my_strftime, emacs_strftimeu): Define via prototype.
78078         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78079         unconditionally.
78080         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78081         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78082         (strtoul, strtol): Remove decls.
78083         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78084         LONG_MAX): Remove.
78085         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78086         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78087         (LOCALE_PARAM_PROTO): New macro.
78088         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78089         (INTERNAL (strtol), strtol): Define with a prototype.
78090         (PARAMS): Remove.  All uses removed.
78091         * lib/tempname.c: Include <string.h> unconditionally.
78092         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78093         * lib/xgethostname.c (main): Define with a prototype.
78094         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78095         Include <stdlib.h> unconditionally.
78096         (calloc, malloc, realloc, free): Remove decls.
78097         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78098         Include <stdlib.h> unconditionally.  Sort include file names.
78099         (strtod): Remove.
78100         (xstrtod): Define with a prototype.
78101         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78102         (strtol, strtoul): Remove decls.
78103
78104 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78105
78106         More patches to assume C89 or better.
78107         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78108         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78109         string.h, memchr, STDC_HEADERS.
78110
78111 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78112
78113         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78114         Include <stdlib.h>, <string.h> unconditionally.
78115         Remove now-unnecessary cast to char *.
78116         * lib/strnlen.c: Include <string.h> unconditionally.
78117         * lib/yesno.c (yesno): Define with a prototype.
78118
78119 2003-09-11  Bruno Haible  <bruno@clisp.org>
78120
78121         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78122
78123 2003-09-10  Jim Meyering  <jim@meyering.net>
78124
78125         * lib/error.c: Correct indentation of cpp directives.
78126
78127 2003-09-10  Bruno Haible  <bruno@clisp.org>
78128
78129         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78130         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78131         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78132         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78133         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78134         <stdlib.h> and <string.h> checks.
78135         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78136         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78137
78138 2003-09-10  Bruno Haible  <bruno@clisp.org>
78139
78140         * lib/strcspn.c: Include <string.h> unconditionally.
78141         * lib/strpbrk.c: Include <string.h> unconditionally.
78142         * lib/strstr.c: Include <string.h> unconditionally.
78143         * lib/unicodeio.c: Include <string.h> unconditionally.
78144         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78145         * lib/unsetenv.c: Likewise.
78146         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78147         * lib/yesno.c: Include <stdlib.h> unconditionally.
78148         (rpmatch): Add prototype.
78149
78150 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78151
78152         More patches to assume C89 or better.
78153         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78154         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78155         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78156         or for string.h.
78157         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78158         stdlib.h.
78159         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78160         C headers.
78161         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78162         string.h.
78163         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78164         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78165         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78166         or for string.h.
78167         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78168         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78169         C headers.
78170         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78171         memcpy.
78172         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78173         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78174         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78175         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78176         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78177         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78178         string.h, free.
78179         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78180         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78181         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78182         C headers, or for string.h.
78183         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78184         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78185         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78186         headers, memory.h, stdlib.h, string.h, strings.h.
78187         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78188         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78189         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78190         strchr.
78191         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78192         headers, memory.h, string.h.
78193         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78194         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78195         free.
78196         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78197         headers.
78198         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78199         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78200         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78201         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78202         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78203
78204 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78205
78206         More K&R removal.
78207
78208         * lib/acosl.c (main): Use a prototype.
78209         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78210         tanl.c: Likewise.
78211
78212         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78213
78214         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78215         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78216         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78217         with a prototype.
78218         * lib/getopt.c (const): Remove macro.
78219         Include <string.h> unconditionally.
78220         (my_index): Remove; all uses changed to strchr.
78221         (strlen): Remove decl.
78222         (exchange): Remove forward decl; no longer needed.
78223         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78224         Define with prototype.
78225         * lib/getopt1.c (const): Remove macro.
78226         (getopt_long, getopt_long_only, main): Define with prototype.
78227
78228         * lib/getugroups.c: Include <string.h> unconditionally.
78229
78230         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78231         (getusershell, setusershell, endusershell, readname, main):
78232         Define with prototypes.
78233
78234         * lib/group-member.c: Include group-member.h first.
78235         Include <stdlib.h> unconditionally.
78236
78237         * lib/hard-locale.c: Include hard-locale.h first.
78238         Include <stdlib.h>, <string.h> unconditionally.
78239
78240         * lib/hash.c (free, malloc): Remove decls.
78241         Include <stdlib.h> unconditionally.
78242
78243         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78244         (getenv): Do not declare.
78245
78246         * lib/idcache.c: Include <string.h> unconditionally.
78247
78248         * lib/long-options.c: Include long-options.h first, to test interface.
78249         Include <stdlib.h> unconditionally.
78250
78251         * lib/makepath.c: Include makepath.h first, to test interface.
78252         Include <stdlib.h> and <string.h> unconditionally.
78253
78254         * lib/linebuffer.c: Include <stdlib.h>.
78255         (free): Remove decl.
78256
78257         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78258         stddef.h. rpl_malloc returns void *, not char *.
78259         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78260         prototype.
78261
78262         * lib/md5.h: Include <limits.h> unconditionally.
78263         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78264         (__P): Remove; all uses removed.
78265         * lib/md5.c: Include "md5.h" first.
78266         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78267         md5_buffer, md5_process_bytes, md5_process_block):
78268         Define with prototypes.
78269         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78270         * lib/sha.c: Include "sha.h" first.
78271         Include <stdlib.h>, <string.h> unconditionally.
78272
78273         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78274         * lib/memcmp.c (__ptr_t): Likewise.
78275         * lib/memrchr.c (__ptr_t): Likewise.
78276         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78277         Include <string.h> unconditionally.
78278         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78279         * lib/memchr.c: Include <stdlib.h> unconditionally.
78280         * lib/memchr.c (LONG_MAX): Remove.
78281         * lib/memrchr.c (LONG_MAX): Likewise.
78282         * lib/memchr.c (__memchr): Define via a prototype.
78283         * lib/memrchr.c (__memrchr): Likewise.
78284         * lib/memcmp.c (__P): Remove, and remove all uses.
78285         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78286         Remove forward decls; no longer needed.
78287         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78288         Use types required by C89 in prototype.
78289
78290         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78291         * lib/savedir.c: Likewise.
78292         * lib/mkdir.c (free): Remove decl.
78293         * lib/rmdir.c (rmdir): Define with a prototype.
78294         * lib/savedir.c: Include savedir.h first, to test interface.
78295
78296         * lib/mktime.c (STDC_HEADERS): Remove.
78297         Include <stdlib.h>, <string.h> unconditionally.
78298
78299         * lib/modechange.c: Include <stdlib.h> unconditionally.
78300         (malloc): Remove decl.
78301
78302         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78303         (free): Remove decl.
78304
78305         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78306         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78307         (This type really should be intptr_t, but that's a C99ism.)
78308         (_obstack_memcpy): Remove: all uses changed to memcpy.
78309         Include <string.h> unconditionally.
78310         (struct obstack): Assume __STDC__ for types of members
78311         chunkfun, freefun, extra_arg.
78312         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78313         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78314         obstack_begin, obstack_specify_allocation,
78315         obstack_specify_allocation_with_arg, obstack_chunkfun,
78316         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78317         Remove unprototyped decls and the macros that use them.
78318         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78319         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78320         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78321         (defined __STDC__ && __STDC__)]:
78322         Remove nonprototyped code.
78323         Include <stdlib.h> unconditionally.
78324         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78325         _obstack_allocated_p, _obstack_free, obstack_free,
78326         _obstack_memory_used, print_and_abort):
78327         Define using prototypes.
78328         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78329         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78330         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78331         obstack_next_free, obstack_object_size, obstack_room) [0]:
78332         Remove unused, unprototyped code.
78333
78334         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78335
78336         * lib/physmem.c (physmem_total, physmem_available, main): Define
78337         with prototypes.
78338
78339         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78340         (main): Define with a prototype.
78341
78342         * lib/posixver.c (getenv): Remove decl.
78343
78344         * lib/putenv.c (malloc): Returns void *, not char *.
78345         Include <string.h> unconditionally.
78346         (strchr, memcpy, NULL): Do not define.
78347
78348         * lib/readtokens.c: Include readtokens.h first, to test interface.
78349         Include <stdlib.h>, <string.h> unconditionally.
78350         (init_tokenbuffer): Define with a prototype.
78351
78352         * lib/regex.c (PARAMS): Remove.  All uses removed.
78353         All uses of _RE_ARGS removed, too.
78354         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78355         unconditionally.
78356         (bzero): Assume memset exists.
78357         (memcmp, memcpy, NULL): Remove.
78358         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78359         char, or assignments to local vars of type signed char.
78360         (init_syntax_once, PREFIX(extract_number_and_incr),
78361         PREFIX(print_partial_compiled_pattern),
78362         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78363         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78364         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78365         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78366         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78367         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78368         wcs_compile_range, byte_compile_range, truncate_wchar,
78369         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78370         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78371         count_mbs_length, wcs_re_match_2_internal,
78372         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78373         PREFIX(alt_match_null_string_p),
78374         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78375         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78376         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78377         now-unnecessary declaration, if any.
78378         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78379         regcomp, regexec):
78380         Remove now-unnecessary casts among pointer types.
78381         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78382
78383         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78384         (free): Remove decl.
78385
78386         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78387
78388         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78389         (free): Remove decl.
78390
78391         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78392         * lib/xgetcwd.c: Likewise.
78393
78394         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78395         (free): Remove decl.
78396
78397         * lib/strchrnul.c (strchrnul): Define with a prototype.
78398         Fix bug: c_in was not converted to char before searching.
78399
78400         The following changes are not K&R related:
78401
78402         * lib/group-member.h: Include <sys/types.h>, so that this file is
78403         self-contained.
78404         * lib/makepath.h: Likewise.
78405
78406         * lib/getusershell.c (readname, default_index, line_size, readname):
78407         Use size_t, not int, for sizes.
78408         (readname): If the size overflows, report an error instead of
78409         looping forever.
78410
78411 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78412
78413         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78414         libc.
78415
78416 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78417
78418         * README: New section: portability guidelines.
78419
78420 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78421
78422         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78423         C89 spec.
78424
78425 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78426
78427         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78428
78429 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78430
78431         Assume C89 or better; remove K&R cruft.
78432         A few of these changes were first proposed by Derek Robert Price
78433         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78434
78435         * lib/addext.c: Include <string.h> unconditionally.
78436         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78437         Don't declare getenv or malloc.
78438
78439         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78440         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78441         (NULL): Remove.
78442         (find_stack_direction, alloca): Use prototypes.
78443
78444         * lib/atexit.c (atexit): Define using a prototype.
78445
78446         * lib/basename.c, dirname.c, stripslash.c:
78447         Include <string.h> unconditionally.
78448
78449         * lib/bcopy.c: Include <stddef.h>.
78450         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78451
78452         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78453
78454         * lib/error.h (error, error_at_line, error_print_progname)
78455         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78456         * lib/error.c: Include error.h first, to check interface.
78457         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78458         (VA_START): Remove; all uses changeed to va_start.
78459         (exit, strerror): Remove decls.
78460         (error_print_progname): Prototype uncondionally.
78461         Don't include <errno.h>; no longer needed.
78462         (private_strerror): Remove.
78463         (error_tail): Always define.
78464         (error, error_at_line): Assume C89 or better; always use prototypes.
78465         * lib/fatal.c: Include "fatal.h" first, to test interface.
78466         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78467         (VA_START): Remove; all uses changed to va_start.
78468         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78469         this case.
78470         (exit): Remove decl.
78471         (fatal): Prototype unconditionally.  Assume va_start works.
78472         Abort at end, to pacify gcc.
78473
78474         * lib/euidaccess.c (main): Define with a prototype.
78475
78476         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78477
78478         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78479
78480         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78481         prototypes.
78482         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78483         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78484         (getenv): Remove decl.
78485         (fnmatch): Define using a prototype.
78486         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78487         (FCT): Define using a prototype.
78488
78489         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78490
78491         * lib/gethostname.c: Include <stddef.h>.
78492         (gethostname): Define with prototype.  Length is size_t, not int.
78493
78494 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78495
78496         Assume C89 or better; remove K&R cruft.
78497         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78498         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78499         string.h, getenv, malloc.
78500         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78501         headers.
78502         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78503         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78504         do not check for strerror.
78505         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78506         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78507         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78508         do not check for doprnt or vprintf.
78509         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78510         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78511
78512 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78513
78514         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78515         getversion.c should have been removed then, but was accidentally
78516         preserved.
78517
78518         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78519         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78520
78521 2003-09-08  Karl Berry  <karl@gnu.org>
78522
78523         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78524                 config, forget about prep.
78525
78526         * config/depcomp, missing: update from automake.
78527
78528 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78529
78530         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78531         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78532
78533 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78534
78535         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78536         copy_tm_result.  Bug reported by Simon Josefsson in
78537         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78538
78539 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78540
78541         * m4/time_r.m4: New file.
78542         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78543         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78544         is. Check for timegm declaration.
78545         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78546         Do not check for gmtime_r.
78547         Replace mktime if __mktime_internal does not exist and if mktime
78548         hasn't been replaced already.
78549
78550 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78551
78552         * lib/time_r.c, lib/time_r.h: New files.
78553
78554         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78555         __localtime_r.
78556         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78557         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78558
78559         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78560         __gmtime_r.
78561         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78562         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78563         Include <time_r.h>.
78564
78565         * lib/timegm.c: Switch to glibc implementation, with the following
78566         changes:
78567         [defined HAVE_CONFIG_H]: Include <config.h>.
78568         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78569         (__mktime_internal) [!defined _LIBC]: New decl.
78570         (__gmtime_r) [!defined _LIBC]: New macro and function.
78571         (timegm): Use a prototype, since gnulib assumes C89.
78572         Do not bother declaring tmp to be const, as it's not really usefu.
78573         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78574         (timegm): Declare only if HAVE_DECL_TIMEGM.
78575
78576 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78577
78578         * MODULES.html.sh (func_all_modules): Add time_r.
78579         * modules/time_r: New file.
78580         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78581         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78582
78583 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78584
78585         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78586         Bug reported by Lute Kamstra in
78587         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78588
78589         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78590         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78591         course with correspondingly smaller numbers for tomorrow and
78592         yesterday.  From Tadayoshi Funaba.  Originally installed into
78593         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78594         coreutils merge?).
78595
78596 2003-08-31  Simon Josefsson  <jas@extundo.com>
78597
78598         * modules/timegm: New file.
78599         * MODULES.html.sh (func_all_modules): Add timegm.
78600
78601 2003-08-31  Simon Josefsson  <jas@extundo.com>
78602
78603         * m4/timegm.m4: New file.
78604
78605 2003-08-31  Simon Josefsson  <jas@extundo.com>
78606
78607         * lib/timegm.h: New file.
78608         * lib/timegm.c: New file.  Based on
78609         wget-1.8.2/src/http.c:mktime_from_utc.
78610
78611 2003-08-31  Karl Berry  <karl@gnu.org>
78612
78613         * lib/argp.h: update from libc.
78614
78615 2003-08-28  Bruno Haible  <bruno@clisp.org>
78616
78617         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78618         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78619         followed by '#define fnmatch fnmatch_posix' gives an error.
78620
78621 2003-08-28  Bruno Haible  <bruno@clisp.org>
78622
78623         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78624         warning on QNX, which defines O_BINARY to 000000.
78625
78626 2003-08-27  Jim Meyering  <jim@meyering.net>
78627
78628         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78629         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78630         would fail after 32.  Reported by Danny Levinson.  Details here:
78631         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78632
78633 2003-08-24  Bruno Haible  <bruno@clisp.org>
78634
78635         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78636         MSVC7 <stdio.h> is included later.
78637
78638 2003-08-22  Simon Josefsson  <jas@extundo.com>
78639
78640         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78641
78642 2003-08-20  Karl Berry  <karl@gnu.org>
78643
78644         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78645
78646 2003-08-20  Bruno Haible  <bruno@clisp.org>
78647
78648         * modules/progname: New file.
78649         * MODULES.html.sh (func_all_modules): Add progname.
78650
78651 2003-08-20  Bruno Haible  <bruno@clisp.org>
78652
78653         * lib/progname.h: New file, from GNU gettext.
78654         * lib/progname.c: New file, from GNU gettext.
78655         * lib/progreloc.c: New file, from GNU gettext.
78656
78657 2003-08-19  Jim Meyering  <jim@meyering.net>
78658
78659         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78660         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78661
78662 2003-08-19  Bruno Haible  <bruno@clisp.org>
78663
78664         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78665         more.
78666
78667 2003-08-19  Bruno Haible  <bruno@clisp.org>
78668
78669         * lib/xstrdup.c: Assume <string.h> exists.
78670
78671 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78672
78673         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78674         in makefile rules.
78675
78676 2003-08-18  Jim Meyering  <jim@meyering.net>
78677
78678         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78679         * m4/lib-ld.m4: Likewise.
78680
78681 2003-08-18  Jim Meyering  <jim@meyering.net>
78682
78683         * lib/setenv.h: Indent nested cpp directive.
78684         * lib/vasnprintf.c: Remove trailing blanks.
78685
78686 2003-08-17  Simon Josefsson  <jas@extundo.com>
78687
78688         * modules/xstrndup: New file.
78689         * MODULES.html.sh (func_all_modules): Add xstrndup.
78690
78691 2003-08-17  Simon Josefsson  <jas@extundo.com>
78692
78693         * modules/argp: Fix autoconf macro name. Add more dependencies.
78694
78695 2003-08-17  Simon Josefsson  <jas@extundo.com>
78696
78697         * m4/xstrndup.m4: New file.
78698
78699 2003-08-17  Simon Josefsson  <jas@extundo.com>
78700
78701         * m4/argp.m4: New file.
78702
78703 2003-08-17  Simon Josefsson  <jas@extundo.com>
78704             Bruno Haible  <bruno@clisp.org>
78705
78706         * lib/xstrndup.h: New file.
78707         * lib/xstrndup.c: New file.
78708
78709 2003-08-17  Bruno Haible  <bruno@clisp.org>
78710
78711         * modules/strndup (Files, Include): Add lib/strndup.h.
78712
78713 2003-08-17  Bruno Haible  <bruno@clisp.org>
78714
78715         * modules/euidaccess (Files): Add lib/euidaccess.h.
78716
78717 2003-08-17  Bruno Haible  <bruno@clisp.org>
78718
78719         * lib/strndup.h: New file.
78720
78721 2003-08-17  Bruno Haible  <bruno@clisp.org>
78722
78723         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78724         like AC_GNU_SOURCE.
78725         * modules/extensions (configure.ac): Comment out the invocation of
78726         gl_USE_SYSTEM_EXTENSIONS.
78727
78728 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78729
78730         Merges from coreutils, etc.
78731         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78732         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78733         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78734         fixing a typo.
78735         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78736         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78737
78738 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78739
78740         Document merge from coreutils.
78741         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78742         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78743         * modules/utime: Add m4/utimes-null.m4.
78744
78745 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78746
78747         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78748         space, undoing this 2003-08-12 change:
78749         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78750
78751 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78752
78753         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78754         strtoul.c from libc, undoing this 2003-08-12 change:
78755         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78756
78757 2003-08-16  Jim Meyering  <jim@meyering.net>
78758
78759         Merges from coreutils.
78760         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78761         prefix.  Adjust cache variables similarly.  Create 500 rather than
78762         just 300 files, to exercise bug on Darwin6.5, too.
78763         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78764         $missing_dir.
78765         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78766         AM_SYS_POSIX_TERMIOS.
78767         Reported by mkc@mathdogs.com.
78768         Also change use of $am_cv_sys_posix_termios
78769         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78770         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78771         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78772         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78773         in /proc/mounts until it finds one with matching device number.  This
78774         is unnecessary when the FILE argument *is* a mount point.  No stat call
78775         is necessary in that case.  So, disable the statvfs-testing code on
78776         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78777         as RedHat bug# 84846.
78778         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78779         to 1MB, so as not to render systems with no stack size limit (e.g.,
78780         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78781         Include <unistd.h>.  On some systems,
78782         it is required for the definition of _SC_PAGESIZE.
78783
78784 2003-08-16  Jim Meyering  <jim@meyering.net>
78785
78786         Merge from coreutils.
78787         * lib/xstrtoimax.c: #else #if -> #elif.
78788         * lib/xstrtoumax.c: Likewise.
78789
78790 2003-08-16  Jim Meyering  <jim@meyering.net>
78791
78792         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78793         * m4/utimes.m4: Removed.
78794         * m4/utimes-null.m4: Renamed from utimes.m4.
78795
78796         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78797         to 1MB, so as not to render systems with no stack size limit (e.g.,
78798         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78799         Include <unistd.h>.  On some systems,
78800         it is required for the definition of _SC_PAGESIZE.
78801
78802 2003-08-16  Jim Meyering  <jim@meyering.net>
78803         and Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         Merges from coreutils, etc.
78806
78807         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78808         using the latest version from cvs.  This avoids problems with #line
78809         directives using a vendor (Sun) compiler.
78810         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78811         Don't set GETGROUPS_LIB here; now it's
78812         done via getgroups.m4's wrapper function.
78813         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78814         rather than just in sh-util/configure.in, so that the
78815         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78816         same.
78817         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78818         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78819         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78820         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78821         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78822         Remove code that is now done by the newly-required macros.
78823         Append $(EXEEXT) to DF_PROG.
78824         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78825         Do not invoke or require the following here,
78826         since prereq.m4 or some gnulib .m4 now does this for us:
78827         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78828         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78829         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78830         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78831         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78832         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78833         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78834         AC_FUNC_OBSTACK.
78835         Do not replace the following functions, as this is now the job
78836         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78837         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78838         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78839         atexit getpass, strdup, getpagesize.
78840         Replace 'raise'.
78841         Do not check for the following functions, as this is now the job
78842         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78843         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78844         setregid.
78845         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78846         Check for sys/sysctl.h.
78847         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78848         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78849         of checking for ssize_t ourselves.
78850
78851         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78852         Require every macro that gnulib/modules/* suggests for us.
78853         (jm_PREREQ_ADDEXT): New macro.
78854         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78855         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78856
78857         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78858         (gl_PHYSMEM): Use it.
78859         Also check for `table' function.
78860         Check for new headers and functions.
78861         Add check for sys/sysmp.h.
78862         With suggestions from Kaveh Ghazi.
78863         Ignore headers that are present but cannot be compiled.  This
78864         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78865         C 5.4.
78866
78867 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78868
78869         Document merge from coreutils.
78870         * modules/userspec: Depend on posixver.
78871         * modules/strftime: Depend on tzset.
78872
78873 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78874
78875         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78876         rather than tab, after '#' in shell-script copyright notices.
78877         Suggested by Bruno Haible.
78878
78879 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78880
78881         * config/srclist-update: Use three spaces, rather than tab, after '#'
78882         in shell-script copyright notices.  Suggested by Bruno Haible.
78883         Remove unnecessary parenthesization in regular expression.
78884
78885 2003-08-15  Jim Meyering  <jim@meyering.net>
78886
78887         Merge from coreutils.
78888         * lib/xgethostname.c: Include <stdlib.h>.
78889         (xghostname): Don't exit for anything other than memory-related
78890         failure; just return NULL.
78891         * lib/userspec.c: Include "posixver.h".
78892         (parse_user_spec): Accept `.' as a separator only
78893         in pre-POSIX-200112 mode.
78894         * lib/strtoimax.c: Use #elif rather than #else #if.
78895         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78896         Remove function, now that we can rely on a working tzset function.
78897         [!_LIBC]: Ensure that the required autoconf test has been run.
78898         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78899         Use underlying_strftime for %r.
78900         * lib/sha.c: Merge in some clean-up and optimization changes from
78901         glibc.
78902         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78903         Ensure that it is a multiple of 64.
78904         Rearrange loop exit tests so as to avoid performing an
78905         additional fread after encountering an error or EOF.
78906         * lib/realloc.c: Update copyright date.
78907
78908 2003-08-15  Jim Meyering  <jim@meyering.net>
78909         and Paul Eggert  <eggert@twinsun.com>
78910
78911         Merge from coreutils.
78912         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78913         member but strut utmpx does not.  Needed for AIX 4.3.3.
78914         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78915
78916 2003-08-15  Jim Meyering  <jim@meyering.net>
78917         and Paul Eggert  <eggert@cs.ucla.edu>
78918
78919         Merges from coreutils, etc.
78920         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78921         Require gl_FUNC_TZSET_CLOBBER.
78922         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78923         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78924         members.
78925
78926 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78927
78928         Help the merge from coreutils.
78929         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78930         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78931         * m4/tzset.m4: Use it too.
78932
78933 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78934
78935         * modules/tzset: New file.
78936
78937 2003-08-14  Jim Meyering  <jim@meyering.net>
78938
78939         Merges from coreutils.
78940         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78941         variable names, rather than @FNMATCH_H@.
78942         * modules/alloca: Likewise for $(ALLOCA_H).
78943
78944         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78945         the three copies of the literal target, `fnmatch.h'.
78946         * modules/alloca (alloca.h): Likewise.
78947
78948 2003-08-14  Jim Meyering  <jim@meyering.net>
78949
78950         Merge from coreutils.
78951         * m4/tzset.m4: New file.
78952         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78953         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78954         otherwise, AIX 5.1 systems would end up using the latter.
78955         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78956         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78957         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78958         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78959
78960 2003-08-14  Jim Meyering  <jim@meyering.net>
78961
78962         Merge from coreutils.
78963         * lib/obstack.h: Whitespace changes.
78964         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78965         and xcalloc return values.
78966         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78967         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78968         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78969         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78970         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78971         error from mntctl.
78972         Use mntctl's return value to drive the entry-processing loop, since
78973         we can't rely on the value of the vmt_length member in the last
78974         entry.  On some systems doing so could result in exhausting
78975         virtual memory.  Based in part on a patch from Mike Jetzer.
78976
78977 2003-08-14  Jim Meyering  <jim@meyering.net>
78978         and Paul Eggert  <eggert@twinsun.com>
78979
78980         Merges from coreutils, plus other fixes.
78981         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78982         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78983         for credits and details.  Thanks to Kaveh Ghazi for helping
78984         to keep these files in sync.
78985         (ARRAY_SIZE): Define it.
78986         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78987         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78988         (memcasecmp): Don't assume size_t fits in unsigned int.
78989         Remove casts and duplicate code.
78990         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78991         (memcpy): Remove definition.
78992         Merge in some clean-up and optimization changes from glibc.
78993         [BLOCKSIZE]: Move definition to top of file.
78994         Ensure that it is a multiple of 64.
78995         Rearrange loop exit tests so as to avoid performing an
78996         additional fread after encountering an error or EOF.
78997         * lib/md5.h (md5_uintptr): Define.
78998         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78999         return to the initial working directory.  Preserve errno
79000         for caller.
79001         * lib/idcache.c: Include "xalloc.h".
79002         (xmalloc, xrealloc): Remove decls.
79003         (getuser): Remove casts no longer required in C89.
79004         * lib/human.c: Include stdio.h, for sprintf.
79005         * lib/group-member.c: Include "xalloc.h".
79006         (xmalloc, xrealloc): Remove decls.
79007         (get_group_info): Remove casts no longer required in C89.
79008         * lib/getusershell.c (readname): Remove casts no longer required in
79009         C89.
79010         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79011         * lib/getline.c: Whitespace fix, from coreutils.
79012
79013 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79014
79015         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79016         Check for isascii.
79017
79018         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79019         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79020         Undo previous (whitespace-only) change.
79021
79022 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79023
79024         * lib/exclude.c: Include <ctype.h>
79025         (IN_CTYPE_DOMAIN): New macro.
79026         (is_space): New fn.
79027         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79028         and empty lines.
79029
79030         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79031         Undo previous (whitespace-only) change.
79032
79033 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79034
79035         * config/srclist-update: Change update back to the old behavior,
79036         leaving whitespace alone.  Use one 'sed' command rather than a
79037         pipeline.
79038         (fixlicense): Now a variable, not a function.
79039         (remove_trailing_blanks): Remove.
79040         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79041         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79042         Undo previous (whitespace-only) change.
79043
79044 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79045
79046         Merge from coreutils.
79047         * modules/euidaccess: Add lib_SOURCES, include for new
79048         file euidaccess.h
79049
79050 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79051
79052         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79053         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79054         Normalize leading white space and remove trailing white space.
79055
79056         Merge from coreutils
79057         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79058
79059         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79060         0.12.1.  These files are now being upgraded automatically by
79061         ../config/srclist-update.
79062
79063 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79064
79065         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79066         Normalize leading white space and remove trailing white space.
79067         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79068         notice, as per ../config/srclist-update.
79069
79070         Merge from coreutils.
79071         * lib/euidaccess.h: New file.
79072         * lib/euidaccess.c: Include it.
79073         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79074         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79075         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79076
79077 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79078
79079         * config/srclist-update: Add copyright notice.
79080         (remove_id_lines, remove_trailing_blanks): New constants.
79081         (fixfile): Use them to normalize spacing a bit in copied files.
79082         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79083         Normalize leading white space and remove trailing white space.
79084
79085         * config/texinfo.tex: Sync with texinfo.
79086
79087         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79088         strtoul.c from libc, to merge coreutils whitespace changes.
79089
79090         * config/srclist.txt: Get the following m4 files from gettext:
79091         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79092         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79093         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79094         wint_t.m4.
79095
79096 2003-08-12  Karl Berry  <karl@gnu.org>
79097
79098         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79099         been made.
79100
79101 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79102
79103         * modules/gnu-source, m4/gnu-source.m4:
79104         Remove; we're assuming Autoconf 2.54 or later now.
79105         Suggested by Bruno Haible.
79106         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79107
79108 2003-08-11  Bruno Haible  <bruno@clisp.org>
79109
79110         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79111
79112 2003-08-11  Bruno Haible  <bruno@clisp.org>
79113
79114         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79115         (vasnprintf): Use it instead of wcslen.
79116
79117 2003-08-11  Bruno Haible  <bruno@clisp.org>
79118
79119         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79120         value to ensure that _Bool promotes to int. Use #define for _Bool when
79121         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79122
79123 2003-08-10  Karl Berry  <karl@gnu.org>
79124
79125         * lib/regex.h: update from libc (whitespace fix).
79126
79127 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79128
79129         Merge some files from coreutils.  These changes were
79130         originally made by Jim Meyering.
79131         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79132         many older Unixes require this.
79133         * lib/alloca.c (alloca): Remove cast to argument of free;
79134         no longer needed in C89.
79135         * lib/alloca_.h, regex.h: Fix white space to match
79136         what GNU indent does.
79137
79138 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79139
79140         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79141         apparently Emacs's Unicode mode got confused before my 2003-08-05
79142         checkin.
79143
79144 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79145
79146         * m4/extensions.m4: New file.
79147         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79148         Require gl_USE_SYSTEM_EXTENSIONS.
79149         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79150         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79151
79152 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79153
79154         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79155         * modules/extensions, modules/gnu-source: New files.
79156         * modules/timespec, modules/unlocked-io: Depend on extensions.
79157
79158 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79159
79160         * modules/restrict: New file.
79161         * MODULES.html.sh (func_all_modules): Add restrict.
79162         * modules/regex: Depend on restrict.
79163
79164 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79165
79166         * m4/restrict.m4: New file.
79167         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79168
79169 2003-08-07  Bruno Haible  <bruno@clisp.org>
79170
79171         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79172         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79173
79174 2003-08-07  Bruno Haible  <bruno@clisp.org>
79175
79176         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79177         makes the module 'getndelim2' compatible with the module 'getline'.
79178
79179 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79180
79181         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79182         byte with "\201" to avoid glitches when editing that source file
79183         with multi-gnome-terminal.
79184
79185 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79186
79187         * lib/bumpalloc.h: Remove.
79188
79189 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79190
79191         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79192         * modules/bumpalloc: Remove.
79193
79194 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79195
79196         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79197         GNU coding style.
79198
79199         Merge from coreutils.
79200         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79201         1. From glibc.
79202         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79203         from Karl Berry, implemented by Jim Meyering.
79204         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79205         from Dmitry V. Levin.
79206         Remove anachronistic cast of xrealloc.
79207         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79208         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79209         type. Otherwise, it wouldn't compile with at least /bin/cc on
79210         ymp-cray-unicos9.0.2.X.
79211         Combine two mostly-identical uses of alloca into one.
79212         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79213
79214 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79215
79216         [From Emacs.]
79217
79218         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79219         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79220         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79221         obsolete NLIST_NAME_UNION.
79222         [__GNU__]: Undef BSD and FSCALE.
79223         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79224
79225 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79226
79227         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79228         an enum type, so that it's guaranteed to promote to int.  See:
79229         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79230
79231 2003-08-03  Karl Berry  <karl@gnu.org>
79232
79233         * config/depcomp: update from automake.
79234
79235 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79236
79237         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79238         (strerror): Don't assume that a printable int fits in 14 bytes.
79239
79240 2003-07-31  Bruno Haible  <bruno@clisp.org>
79241
79242         * modules/getpass-gnu: New file.
79243         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79244
79245 2003-07-31  Bruno Haible  <bruno@clisp.org>
79246
79247         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79248
79249 2003-07-24  Karl Berry  <karl@gnu.org>
79250
79251         * config/missing: update from automake.
79252
79253 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79254             Bruno Haible  <bruno@clisp.org>
79255
79256         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79257         * lib/getline.c (getline, getdelim): Likewise.
79258         Remove _GNU_SOURCE define; now it's defined in config.h through
79259         m4/getline.m4.
79260
79261 2003-07-23  Karl Berry  <karl@gnu.org>
79262
79263         * config/config.sub: update from prep.
79264
79265 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79266
79267         * modules/xalloc (Depends-on): Add exitfail.
79268         * modules/xmemcoll: Likewise.
79269
79270 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79271
79272         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79273         over-parenthesization in macros.
79274
79275         Sync with coreutils.
79276
79277         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79278         required by C99.
79279
79280         Use `exit_failure' for xalloc and xmemcoll instead of their own
79281         private exit-failure variables.
79282         * lib/xalloc.h (xalloc_exit_failure): Remove.
79283         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79284         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79285         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79286         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79287         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79288
79289 2003-07-20  Jim Meyering  <jim@meyering.net>
79290
79291         * modules/closeout (Depends-on): Add exitfail.
79292         Suggestion from Bruno Haible.
79293
79294 2003-07-19  Karl Berry  <karl@gnu.org>
79295
79296         * config/config.sub: update from prep.
79297
79298 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79299
79300         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79301         Remove.
79302         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79303         to test that it can stand by itself.  Include "exitfail.h".
79304         Clients should set exit_failure instead.
79305         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79306
79307 2003-07-18  Bruno Haible  <bruno@clisp.org>
79308
79309         * modules/getndelim2: New file.
79310         * modules/getline: Share files with module getndelim2.
79311         * modules/getnline: Depend on getndelim2 instead of sharing files with
79312         it. Add getnline.c to lib_SOURCES.
79313         * MODULES.html.sh (func_all_modules): Add getndelim2.
79314
79315 2003-07-18  Bruno Haible  <bruno@clisp.org>
79316
79317         * m4/getndelim2.m4: New file.
79318         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79319         invoke gl_PREREQ_GETNDELIM2.
79320         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79321         gl_PREREQ_GETNDELIM2.
79322         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79323         gl_GETNDELIM2.
79324
79325 2003-07-18  Bruno Haible  <bruno@clisp.org>
79326
79327         * lib/getndelim2.h: New file.
79328         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79329         getndelim2.h.
79330         (getndelim2): Make non-static. Change return type to ssize_t.
79331         * lib/getline.h: Change argument names.
79332         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79333         * lib/getnline.c: Include getndelim2.h.
79334
79335 2003-07-18  Andreas Schwab  <schwab@suse.de>
79336
79337         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79338
79339 2003-07-17  Karl Berry  <karl@gnu.org>
79340
79341         * config/config.sub: update from prep.
79342
79343 2003-07-17  Bruno Haible  <bruno@clisp.org>
79344
79345         * modules/getnline: New file.
79346         * modules/getline: Add lib/getndelim2.c to source file list.
79347         * MODULES.html.sh (func_all_modules): Add getnline.
79348
79349 2003-07-17  Bruno Haible  <bruno@clisp.org>
79350
79351         * m4/getnline.m4: New file.
79352
79353 2003-07-17  Bruno Haible  <bruno@clisp.org>
79354
79355         * m4/Makefile.am.in: Remove file.
79356         * m4/Makefile.am: Remove file.
79357         * m4/Makefile.in: Remove file.
79358
79359 2003-07-17  Bruno Haible  <bruno@clisp.org>
79360
79361         * lib/getnline.h: New file.
79362         * lib/getnline.c: New file.
79363         * lib/getndelim2.c: New file, extracted from getline.c.
79364         (getndelim2): Renamed from getdelim2, with added nmax argument.
79365         * lib/getline.c: Include getndelim2.c.
79366         (getdelim2): Moved out to getndelim2.c.
79367         (getline, getdelim): Update.
79368
79369 2003-07-17  Bruno Haible  <bruno@clisp.org>
79370
79371         * lib/Makefile.am: Remove file.
79372         * lib/Makefile.in: Remove file.
79373
79374 2003-07-17  Bruno Haible  <bruno@clisp.org>
79375
79376         * configure.in: Remove file.
79377         * Makefile.in: Remove file.
79378
79379 2003-07-17  Bruno Haible  <bruno@clisp.org>
79380
79381         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79382
79383 2003-07-16  Karl Berry  <karl@gnu.org>
79384
79385         * config/srclist-update: was running fixlicense twice, which caused
79386                 texinfo.tex to be nullified for some reason.  Simplify,
79387                 $gplsrc is no longer needed as far as I can see?
79388
79389 2003-07-16  Jim Meyering  <jim@meyering.net>
79390
79391         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79392
79393 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79394
79395         * config/srclist.txt: Get the following files from gettext-runtime/intl
79396         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79397         ref-del.sin.  From Bruno Haible.
79398         * config/srclist-update (fixfile): Change grep pattern again, since the
79399         previous fix didn't work (there was another trailing $).  Use
79400         '[$]' to escape the $s.
79401
79402 2003-07-15  Karl Berry  <karl@gnu.org>
79403
79404         * lib/vasnprintf.c: update from gettext.
79405
79406 2003-07-15  Karl Berry  <karl@gnu.org>
79407
79408         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79409         gets expanded when surrounded by '$'.
79410
79411 2003-07-15  Jim Meyering  <jim@meyering.net>
79412
79413         * modules/save-cwd: Don't depend on error.  From Derek Price.
79414
79415 2003-07-15  Jim Meyering  <jim@meyering.net>
79416
79417         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79418
79419 2003-07-14  Simon Josefsson  <jas@extundo.com>
79420
79421         * modules/mempcpy: New file.
79422         * MODULES.html.sh (func_all_modules): Add mempcpy.
79423
79424 2003-07-14  Simon Josefsson  <jas@extundo.com>
79425
79426         * m4/mempcpy.m4: New file.
79427
79428 2003-07-14  Simon Josefsson  <jas@extundo.com>
79429
79430         * lib/mempcpy.h: New file.
79431         * lib/mempcpy.c: New file.
79432
79433 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79434
79435         * modules/getdate, modules/posixtm: Depend on mktime.
79436
79437 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79438
79439         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79440         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79441         unicodeio.c, unicodeio.h, unlocked-io.h:
79442         Switch from LGPL to GPL.
79443
79444 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79445
79446         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79447         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79448         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79449         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79450         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79451         updated automatically by ../config/srclist-update.  This changes
79452         their license from LPGL to GPL.
79453
79454 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79455
79456         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79457         assumed to refer to the root of the most recent stable gettext version.
79458         * config/srclistvars.sh: Add defaults for eggert.
79459         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79460         Match "This program" as well as "The program".  This is needed
79461         for gettext.
79462
79463 2003-07-14  Jim Meyering  <jim@meyering.net>
79464
79465         Don't emit diagnostics.  Let callers do that.
79466         * lib/save-cwd.c: Don't include "error.h".
79467         (save_cwd): Don't call error.  Ensure that errno is valid
79468         when returning nonzero.
79469
79470         * lib/save-cwd.h (restore_cwd): Update prototype.
79471         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79472         Simplify.  Don't call error upon failure.  Let callers do that.
79473         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79474         when auditing is enabled.  But don't bother updating the #if.
79475
79476 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79477
79478         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79479         it breaks C++ compilation.
79480         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79481
79482 2003-07-10  Simon Josefsson  <jas@extundo.com>
79483
79484         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79485
79486 2003-07-10  Jim Meyering  <jim@meyering.net>
79487
79488         * m4/clock_time.m4: Remove trailing blank.
79489         * m4/intmax_t.m4: Likewise.
79490
79491 2003-07-10  Jim Meyering  <jim@meyering.net>
79492
79493         * lib/vasnprintf.c: Remove trailing blanks.
79494         Make cpp indentation consistent.
79495
79496 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79497
79498         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79499         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79500         Switch from LGPL to GPL.
79501
79502 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79503
79504         * config/srclist.txt: Sort sublists.  Add
79505         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79506         that differ from gnulib for one reason or another; we'd like this list
79507         to be smaller but for now let's document what we have.
79508
79509 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79510
79511         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79512         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79513         and sweeter "eval x=$x".
79514         * config/srclist.txt: Get lib/argp* from glibc.
79515
79516 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79517
79518         * lib/mktime.c: Fix some boundary cases and remove need for floating
79519         point.
79520
79521         Issue a compile-time diagnostic if time_t is floating point, or if
79522         two's complement arithmetic is not in effect, or if arithmetic
79523         right shift does not propagate the sign.  These assumptions were
79524         all in the original code but they weren't checked.
79525
79526         (TIME_T_MIDPOINT, verify): New macros.
79527         (__isleap): Remove; it has integer overflow problems.
79528         (leapyear): New function, without those problems.
79529         (ydhms_tm_diff): Remove; splitting into two parts.
79530         (ydhms_diff): New function, containing the arithmetic part of
79531         the old ydhms_tm_diff function.  Issue a compile-time
79532         diagnostic if we are not using C99 integer division.
79533         Avoid casts when possible.
79534         (guess_time_tm): New function, containing the checking part of
79535         the old ydhms_tm_diff function.  Return the new value, rather than
79536         the difference between it and the old.  Accept a new argument T
79537         so that *T specifies the old value.  Check for overflow in the result.
79538
79539         (__mktime_internal): Use a time_t offset, not a long int offset.
79540         This undoes the 2003-06-04 change, which is no longer needed now
79541         that we have better overflow checking.
79542         (localtime_offset): Likewise.
79543
79544         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79545         and long are 64-bit but int is only 32-bit.
79546         (ydhms_diff): Use long int to store year1 and yday1.
79547         Issue a compile-time diagnostic if long int is not wide enough.
79548
79549         (__mktime_internal): Use long int to store adjusted year and yday.
79550         Use plain C rather than preprocessor commands, if that doesn't
79551         affect efficiency.
79552         Check for overflow (and try to repair) after each probe
79553         rather than checking only at the very end.  This avoids some bugs
79554         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79555         does not equal GMT offset at maximum time).
79556         Use integer to check for overflow rather than floating point; this
79557         is more portable to non-IEEE hosts, and is a tad faster.
79558         When we detect that we are oscillating between two values,
79559         don't check whether tm_isdst has the requested value, since
79560         we already know the answer.  When tm_isdst has the wrong value,
79561         use a different heuristic to find the right one, based on the
79562         extreme values actually observed in practice in tz2003a,
79563         rather than the (overly optimistic) "previous 3 calendar quarters".
79564
79565         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79566         "T const" to accommodate glibc style.
79567         (check_result): Use less-confusing report format.  "long" -> "long int.
79568         (main): Likewise.
79569         Don't loop if the iteration overflows time_t.
79570         Allow a negative step in the iteration.
79571
79572 2003-07-06  Karl Berry  <karl@gnu.org>
79573
79574         * config/depcomp: update from automake.
79575         * config/config.sub: update from prep.
79576
79577 2003-07-03  Karl Berry  <karl@gnu.org>
79578
79579         * config/config.guess: update from prep.
79580
79581 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79582
79583         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79584         xreadlink.c now includes it unconditionally.
79585
79586 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79587
79588         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79589         having it depend on HAVE_SYS_TYPES_H.
79590
79591 2003-07-01  Bruno Haible  <bruno@clisp.org>
79592
79593         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79594         <sys/types.h> should be sufficient.
79595         Reported by Paul Eggert.
79596
79597 2003-06-26  Karl Berry  <karl@gnu.org>
79598
79599         * config/depcomp: update from automake.
79600
79601 2003-06-26  Bruno Haible  <bruno@clisp.org>
79602
79603         * modules/human: Depend on module stdbool.
79604
79605 2003-06-25  Bruno Haible  <bruno@clisp.org>
79606
79607         * modules/readlink: New file.
79608         * modules/xreadlink: Depend on it.
79609         * MODULES.html.sh (func_all_modules): Add readlink.
79610
79611 2003-06-25  Bruno Haible  <bruno@clisp.org>
79612
79613         * m4/readlink.m4: New file.
79614
79615 2003-06-25  Bruno Haible  <bruno@clisp.org>
79616
79617         * lib/readlink.c: New file.
79618
79619 2003-06-22  Karl Berry  <karl@gnu.org>
79620
79621         * config/srclist.txt: update mkinstalldirs from automake.
79622         * config/mkinstalldirs: update.
79623
79624 2003-06-22  Bruno Haible  <bruno@clisp.org>
79625
79626         Portability to mingw32.
79627         * m4/ssize_t.m4: New file, from GNU gettext.
79628         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79629         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79630
79631 2003-06-22  Bruno Haible  <bruno@clisp.org>
79632
79633         * modules/safe-read: Add m4/ssize_t.m4.
79634         * modules/xreadlink: Add m4/ssize_t.m4.
79635
79636 2003-06-20  Bruno Haible  <bruno@clisp.org>
79637
79638         Assume C89, so PARAMS isn't needed.
79639         * lib/unicodeio.h (PARAMS): Remove.
79640         * lib/unicodeio.c: Don't use PARAMS.
79641
79642 2003-06-18  Karl Berry  <karl@gnu.org>
79643
79644         * config/config.{guess,sub}: update from prep.
79645
79646 2003-06-18  Jim Meyering  <jim@meyering.net>
79647
79648         Merge changes from coreutils.
79649         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79650         Remove explicit declarations of xmalloc and realloc.
79651         Include xalloc.h.
79652         (read_utmp): Remove anachronistic cast of xmalloc.
79653
79654 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79655
79656         Assume C89, so PARAMS isn't needed.
79657         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79658         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79659         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79660         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79661         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79662         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79663         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79664         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79665         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79666         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79667         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79668         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79669         no longer needed. Anyway, config.h should always be included before any
79670         other file.
79671
79672 2003-06-11  Simon Josefsson  <jas@extundo.com>
79673
79674         * modules/sysexits: New file.
79675         * MODULES.html.sh (func_all_modules): Add sysexits.
79676
79677 2003-06-11  Simon Josefsson  <jas@extundo.com>
79678
79679         * lib/sysexit_.h: New file.
79680
79681 2003-06-11  Derek Price  <derek@ximbiot.com>
79682
79683         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79684         necessary.
79685
79686 2003-06-11  Bruno Haible  <bruno@clisp.org>
79687
79688         * m4/sysexits.m4: New file.
79689
79690 2003-06-10  Simon Josefsson  <jas@extundo.com>
79691
79692         * lib/argp.h: New file, from glibc.
79693         * lib/argp-ba.c: New file, from glibc.
79694         * lib/argp-eexst.c: New file, from glibc.
79695         * lib/argp-fmtstream.c: New file, from glibc.
79696         * lib/argp-fmtstream.h: New file, from glibc.
79697         * lib/argp-fs-xinl.c: New file, from glibc.
79698         * lib/argp-help.c: New file, from glibc.
79699         * lib/argp-namefrob.h: New file, from glibc.
79700         * lib/argp-parse.c: New file, from glibc.
79701         * lib/argp-pv.c: New file, from glibc.
79702         * lib/argp-pvh.c: New file, from glibc.
79703         * lib/argp-xinl.c: New file, from glibc.
79704
79705 2003-06-10  Simon Josefsson  <jas@extundo.com>
79706
79707         * modules/strchrnul: New file.
79708
79709 2003-06-10  Simon Josefsson  <jas@extundo.com>
79710
79711         * modules/argp: New file.
79712
79713 2003-06-10  Simon Josefsson  <jas@extundo.com>
79714
79715         * m4/strchrnul.m4: New file.
79716
79717 2003-06-10  Simon Josefsson  <jas@extundo.com>
79718
79719         * lib/strchrnul.h: New file.
79720         * lib/strchrnul.c: New file.
79721
79722 2003-06-10  Bruno Haible  <bruno@clisp.org>
79723
79724         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79725
79726 2003-06-07  Karl Berry  <karl@gnu.org>
79727
79728         * config/config.{guess,sub}: update from prep.
79729
79730 2003-06-07  Jim Meyering  <jim@meyering.net>
79731
79732         * modules/strtod: Use $(...) notation, not @...@ for
79733         AC_REPLACE'd variables.
79734         * modules/localcharset: Likewise.
79735
79736 2003-06-07  Jim Meyering  <jim@meyering.net>
79737
79738         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79739         in place of my name in the copyright comment.
79740         Remove definition and uses of __P.
79741
79742         From coreutils.
79743         * lib/stat.c: Don't declare xmalloc explicitly.
79744         Instead, include "xalloc.h".
79745         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79746         xrealloc, and xcalloc return values.
79747         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79748         Improve comment.
79749         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79750
79751 2003-06-07  Bruno Haible  <bruno@clisp.org>
79752
79753         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79754         avoid AC_CONFIG_LINKS.
79755         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79756         fnmatch.h, to avoid AC_CONFIG_LINKS.
79757         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79758
79759 2003-06-07  Bruno Haible  <bruno@clisp.org>
79760
79761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79762         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79763         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79764         directory.
79765         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79766         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79767         directory.
79768
79769 2003-06-06  Jim Meyering  <jim@meyering.net>
79770
79771         Merge from coreutils.
79772         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79773         Consolidate declarations and initializations of *_base* locals.
79774
79775         Merge from coreutils.
79776         This avoids a core dump on systems without GNU putenv,
79777         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79778         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79779         (unsetenv): New static function, from GNU libc.
79780         (rpl_putenv): Use it.
79781
79782         * lib/modechange.c: Remove trailing blanks.
79783
79784         Merge from coreutils.
79785         * lib/fsusage.c: Remove declaration of statfs.
79786         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79787
79788         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79789
79790 2003-06-06  Jim Meyering  <jim@meyering.net>
79791
79792         * lib/stdbool_.h: Renamed from stdbool.h.in.
79793
79794 2003-06-06  Jim Meyering  <jim@meyering.net>
79795             Bruno Haible  <bruno@clisp.org>
79796
79797         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79798         Adjust Makefile.am snippet not to redirect directly to target.
79799         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79800
79801 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79802
79803         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79804         mismatch, look in future quarters as well as past.  This fixes a
79805         bug when processing fall-backwards gaps immediately after a long
79806         period of daylight-saving time.
79807
79808         * lib/mktime.c: Assume freestanding C89 or better.
79809         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79810         (__P): Remove; not used.
79811         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79812         (mktime, not_equal_tm, print_tm, check_result,
79813         main): Use prototypes.  Use const * where appropriate.
79814         (main): Fix typo in testing code that uncovered by above changes.
79815         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79816
79817 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79818
79819         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79820         locale.h, localeconv.  This merges changes from coreutils.
79821
79822         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79823         It can be removed after the next Autoconf is released.
79824         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79825         needed.
79826
79827 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79828
79829         * lib/mktime.c: Fix Debian bug 177940
79830         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79831         (localtime_offset): Now long int, not time_t, because we want it
79832         to be guaranteed to be signed.  All uses changed.
79833         (__mktime_internal): If overflow would occur when adding offset,
79834         don't add it.
79835
79836         Merge 'human' changes from coreutils.  Rewrite to support
79837         locale-specific notations like thousands separators.
79838         * lib/human.c: Simplify authorship notice.
79839         Include human.h immediately after config.h.
79840         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79841         <limits.h>: Do not include, since human.h does.
79842         (SIZE_MAX, UINTMAX_MAX): New macros.
79843         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79844         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79845         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79846         (power_letter): Renamed from suffixes.
79847         (generate_suffix_backwards): Remove.
79848         (adjust_value): Now takes int style (because of human.h changes)
79849         and long double value (for greater precision on some platforms).
79850         (group_number): New function.
79851         (human_readable): Use it.  Use integer options, not enum.
79852         Put the options before the sizes in the arg list.
79853         Support all the new options.
79854         The old human_readable function has been removed;
79855         use inttostr.h instead.
79856         (human_readable, default_block_size, humblock):
79857         Use uintmax_t, not int, for block sizes.
79858         (human_readable_inexact, block_size_types): Remove.
79859         (block_size_opts): New constant.
79860         (human_options): Renamed from human_block_size, with new signature
79861         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79862         * lib/human.h: Add copyright and authorship notice.
79863         Include <limits.h> and <stdbool.h> unconditionally.
79864         (PARAMS): Remove.  All uses removed.
79865         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79866         (enum human_inexact_style): Remove tag; now a nameless enum.
79867         (human_floor, human_ceiling, human_round_to_even): Now have
79868         values 2, 0, 1 rather than -1, 1, 0.
79869         (human_group_digits, human_suppress_point_zero, human_autoscale,
79870         human_base_1024, human_SI, human_B): New constants.
79871         (human_readable_inexact, human_block_size): Remove.
79872         (human_readable): Size args are now uintmax_t, not int.
79873         (human_options): New decl.
79874
79875         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79876         unnecessary now that we assume C89 or better.  This change
79877         imported from coreutils.
79878
79879         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79880         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79881         in the 2003-05-30 sync from glibc.
79882
79883         .h files should stand alone, but we shouldn't include <sys/types.h>
79884         if we can get away with just <stddef.h>.
79885
79886         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79887         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79888         rather than <sys/types.h>, as we merely need size_t.
79889         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79890         to get size_t.
79891         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79892         Include <stdio.h>, to get FILE.
79893         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79894         memcasecmp.h has included <stddef.h> and all we need is size_t.
79895         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79896         our interface, instead of including <sys/types.h>
79897
79898 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79899
79900         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79901         now, as glibc mktime is buggy on non-glibc systems.
79902
79903 2003-06-03  Karl Berry  <karl@gnu.org>
79904
79905         * config/config.sub: update from prep.
79906
79907 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79908
79909         [from coreutils]
79910         Fix some minor time-related bugs with POSIX time arguments.
79911         Some valid time stamps were being rejected (notably -1, and
79912         time stamps before 1900 on 64-bit hosts).  And some invalid
79913         time stamps were being accepted, e.g. September 31.
79914
79915         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79916         that we can return (time_t) -1 successfully.
79917         * lib/posixtm.c: Likewise.
79918         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79919         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79920         (t): Remove static var.
79921         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79922         of static var.  All uses changed.
79923         (year): Do not reject years before 1900; they can occur with
79924         64-bit time_t.
79925         (posix_time_parse): Do not check for out-of-range components;
79926         that is now the caller's responsibility, since our checks were
79927         only approximations.
79928         (posixtime): Use mktime to check for out-of-range components,
79929         since it knows them exactly.
79930         If mktime returns (time_t) -1, check whether an error actually occurred
79931         by invoking localtime on -1.
79932         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79933         posixtime failures better.
79934         Improve the test data (in comments only).
79935
79936 2003-06-02  Karl Berry  <karl@gnu.org>
79937
79938         * config/mkinstalldirs (version): new variable.
79939         (--version): new option.
79940         (usage): improve message.
79941
79942 2003-05-30  Karl Berry  <karl@gnu.org>
79943
79944         * lib/mktime.c: update from libc.
79945
79946 2003-05-30  Bruno Haible  <bruno@clisp.org>
79947
79948         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79949         * config/config.rpath: Upgrade to gettext-0.12.1.
79950
79951 2003-05-30  Bruno Haible  <bruno@clisp.org>
79952
79953         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79954         * m4/nls.m4: New file, from gettext-0.12.1.
79955         * m4/po.m4: New file, from gettext-0.12.1.
79956         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79957
79958 2003-05-30  Bruno Haible  <bruno@clisp.org>
79959
79960         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79961         * lib/localcharset.h: Likewise.
79962         * lib/localcharset.c: Likewise.
79963
79964 2003-05-29  Karl Berry  <karl@gnu.org>
79965
79966         * config/config.rpath: update from gettext.
79967
79968 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79969
79970         Assume the headers required for C89 freestanding compilers.
79971         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79972         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79973         * m4/human.m4 (gl_HUMAN): Likewise.
79974         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79975         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79976         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79977         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79978         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79979         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79980
79981 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79982
79983         Assume the headers required for C89 freestanding compilers.
79984         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79985         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79986         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79987         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79988         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79989         define, since <limits.h> is guaranteed to do that.
79990         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79991         * lib/exclude.c: Include <stdbool.h> unconditionally.
79992         * lib/tempname.c: Include <stddef.h> unconditionally.
79993         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79994         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79995         <stddef.h> does that.
79996         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79997         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79998         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79999         needed.
80000         * lib/xstrtol.c: Likewise.
80001         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80002         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80003
80004         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80005         warnings on some platforms.
80006
80007         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80008         arbitrarily.
80009
80010 2003-05-26  Jim Meyering  <jim@meyering.net>
80011
80012         Merge in a change from coreutils:
80013         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80014         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80015         that condition, rather than `-1' which is slightly misleading.
80016         Change the name of the cache variable to have the gl_ prefix.
80017         Prompted by a patch from Richard Dawe for DJGPP.
80018
80019 2003-05-24  Karl Berry  <karl@gnu.org>
80020
80021         * config/config.guess: update from prep.
80022
80023 2003-05-22  Karl Berry  <karl@gnu.org>
80024
80025         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80026
80027 2003-05-20  Karl Berry  <karl@gnu.org>
80028
80029         * config/config.guess: update from prep.
80030
80031 2003-05-18  Karl Berry  <karl@gnu.org>
80032
80033         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80034         might actually be set by the user.
80035
80036         * config/depcomp, install-sh, mdate-sh: update from automake.
80037
80038 2003-05-17  Bruno Haible  <bruno@clisp.org>
80039
80040         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80041         invalid expansion for AC_EGREP_CPP.
80042         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80043         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80044         Suggested by Akim Demaille <akim@epita.fr> in
80045         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80046
80047 2003-05-12  Jim Meyering  <jim@meyering.net>
80048
80049         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80050         the space-padded-by-default conversion specifiers, %e, %k, %l.
80051
80052 2003-05-12  Bruno Haible  <bruno@clisp.org>
80053
80054         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80055         the string is longer than 4 KB.
80056
80057 2003-05-11  Karl Berry  <karl@gnu.org>
80058
80059         * config/config.{guess,sub}: update from prep.
80060
80061 2003-05-09  Bruno Haible  <bruno@clisp.org>
80062
80063         * modules/error: Add m4/strerror_r.m4 to file list.
80064
80065 2003-05-03  Bruno Haible  <bruno@clisp.org>
80066
80067         Upgrade to Unicode-4.0.
80068         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80069         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80070         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80071         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80072         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80073         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80074         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80075         Change width of U+E0100..U+E01EF from 1 to 0.
80076
80077 2003-04-25  Jim Meyering  <jim@meyering.net>
80078
80079         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80080         of type size_t, not int.
80081
80082 2003-04-25  Bruno Haible  <bruno@clisp.org>
80083
80084         * lib/copy-file.c: Include <stddef.h>, for size_t.
80085
80086 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80087
80088         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80089         code which expansion is under static control.  Patch imported from
80090         Akim Demaille's patch to Bison; see
80091         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80092
80093 2003-04-14  Bruno Haible  <bruno@clisp.org>
80094
80095         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80096
80097 2003-04-11  Jim Meyering  <jim@meyering.net>
80098
80099         Merge changes from Coreutils.
80100
80101         2003-03-22  Jim Meyering  <jim@meyering.net>
80102
80103         * lib/strftime.c (widen): Cast alloca return value to proper type.
80104
80105         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80106
80107         From GNU libc.
80108         * lib/strftime.c (my_strftime): Handle very large width
80109         specifications for numeric values correctly.  Improve checks for
80110         overflow.
80111
80112         2003-01-19  Jim Meyering  <jim@meyering.net>
80113
80114         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80115         definitions.
80116         (nl_get_alt_digit) [! defined my_strftime]: Define.
80117         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80118         _nl_get_alt_digit and _nl_get_walt_digit.
80119
80120         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80121         libc. These changes have no effect outside of _LIBC.
80122
80123 2003-04-10  Bruno Haible  <bruno@clisp.org>
80124
80125         * modules/findprog: New file.
80126         * MODULES.html.sh (func_all_modules): Add it.
80127
80128 2003-04-10  Bruno Haible  <bruno@clisp.org>
80129
80130         * m4/findprog.m4: New file.
80131         * m4/eaccess.m4: New file.
80132
80133 2003-04-10  Bruno Haible  <bruno@clisp.org>
80134
80135         * lib/findprog.h: New file, from GNU gettext.
80136         * lib/findprog.c: New file, from GNU gettext.
80137
80138 2003-04-05  Jim Meyering  <jim@meyering.net>
80139
80140         Merge changes from Coreutils.
80141
80142         * lib/exclude.h (PARAMS): Remove definition and uses.
80143         * lib/exclude.c: Remove uses of `PARAMS'.
80144
80145         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80146         Add test-cases for DOS filenames. Declare program_name.
80147         (main): Set up program_name.  Patch by Rich Dawe.
80148
80149         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80150         error from mntctl.
80151         Use mntctl's return value to drive the entry-processing loop, since
80152         we can't rely on the value of the vmt_length member in the last
80153         entry.  On some systems doing so could result in exhausting
80154         virtual memory.  Based in part on a patch from Mike Jetzer.
80155
80156 2003-04-04  Bruno Haible  <bruno@clisp.org>
80157
80158         * modules/linebreak: New file.
80159         * MODULES.html.sh (func_all_modules): Add it.
80160
80161 2003-04-04  Bruno Haible  <bruno@clisp.org>
80162
80163         * m4/linebreak.m4: New file.
80164
80165 2003-04-04  Bruno Haible  <bruno@clisp.org>
80166
80167         * lib/linebreak.h: New file, from GNU gettext.
80168         * lib/linebreak.c: New file, from GNU gettext with slight
80169         modifications.
80170         * lib/lbrkprop.h: New file, from GNU gettext.
80171
80172 2003-04-03  Bruno Haible  <bruno@clisp.org>
80173
80174         * modules/utf8-ucs4: New file.
80175         * modules/utf16-ucs4: New file.
80176         * modules/ucs4-utf8: New file.
80177         * modules/ucs4-utf16: New file.
80178         * MODULES.html.sh (func_all_modules): Add them.
80179
80180 2003-04-03  Bruno Haible  <bruno@clisp.org>
80181
80182         * m4/utf-ucs4.m4: New file.
80183         * m4/ucs4-utf.m4: New file.
80184
80185 2003-04-03  Bruno Haible  <bruno@clisp.org>
80186
80187         * lib/utf8-ucs4.h: New file, from GNU gettext.
80188         * lib/utf16-ucs4.h: New file, from GNU gettext.
80189         * lib/ucs4-utf8.h: New file, from GNU gettext.
80190         * lib/ucs4-utf16.h: New file, from GNU gettext.
80191
80192 2003-04-02  Bruno Haible  <bruno@clisp.org>
80193
80194         * modules/binary-io: New file.
80195         * MODULES.html.sh (func_all_modules): Add it.
80196
80197 2003-04-02  Bruno Haible  <bruno@clisp.org>
80198
80199         * lib/binary-io.h: New file, from GNU gettext.
80200
80201 2003-04-01  Bruno Haible  <bruno@clisp.org>
80202
80203         * modules/pathname: New file.
80204         * MODULES.html.sh (func_all_modules): Add it.
80205
80206 2003-04-01  Bruno Haible  <bruno@clisp.org>
80207
80208         * lib/pathname.h: New file, from GNU gettext.
80209         * lib/concatpath.c: New file, from GNU gettext.
80210
80211 2003-03-30  Bruno Haible  <bruno@clisp.org>
80212
80213         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80214
80215 2003-03-30  Bruno Haible  <bruno@clisp.org>
80216
80217         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80218         function chown() doesn't exist.
80219
80220 2003-03-28  Bruno Haible  <bruno@clisp.org>
80221
80222         * modules/copy-file: New file.
80223         * MODULES.html.sh (func_all_modules): Add it.
80224
80225 2003-03-28  Bruno Haible  <bruno@clisp.org>
80226
80227         * m4/copy-file.m4: New file.
80228
80229 2003-03-28  Bruno Haible  <bruno@clisp.org>
80230
80231         * lib/copy-file.h: New file, from GNU gettext.
80232         * lib/copy-file.c: New file, from GNU gettext.
80233
80234 2003-03-18  Jim Meyering  <jim@meyering.net>
80235
80236         * lib/quote.c (quote_n): Fix typo in comment.
80237
80238 2003-03-18  Bruno Haible  <bruno@clisp.org>
80239
80240         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80241         checking.
80242         * m4/onceonly_2_57.m4: Likewise.
80243
80244 2003-03-17  Bruno Haible  <bruno@clisp.org>
80245
80246         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80247         (m4_quote): Remove macro.
80248         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80249
80250 2003-03-14  Jim Meyering  <jim@meyering.net>
80251
80252         Merge changes from Coreutils.
80253         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80254         to be const, in order to avoid warnings.
80255         (obstack_room): Likewise.
80256         (obstack_empty_p): Likewise.
80257
80258 2003-03-14  Bruno Haible  <bruno@clisp.org>
80259
80260         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80261         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80262
80263 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80264
80265         Merge changes from Bison.
80266         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80267         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80268         when compiling Bison 1.875's `bitset bset = obstack_alloc
80269         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80270         * lib/hash.c: Include <stdbool.h> unconditionally.
80271
80272 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80273
80274         * m4/onceonly.m4 (m4_quote): New macro.
80275         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80276         Quote AC_FOREACH variable-expansions properly.
80277
80278 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80279
80280         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80281
80282 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80283
80284         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80285         Reported by Bruce Becker; see:
80286         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80287
80288 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80289             Bruno Haible  <bruno@clisp.org>
80290
80291         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80292         Reported by John Hughes, see
80293         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80294
80295 2003-02-20  Bruno Haible  <bruno@clisp.org>
80296
80297         * MODULES.html.sh (func_all_modules): Add poll.
80298
80299 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80300
80301         * modules/poll: New file.
80302
80303 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80304
80305         * lib/poll_.h: New file.
80306         * lib/poll.c: New file.
80307
80308 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80309
80310         * m4/poll.m4: New file.
80311
80312 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80313
80314         * modules/mathl: New file.
80315
80316 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80317
80318         * lib/mathl.h: New file.
80319         * lib/acosl.c: New file.
80320         * lib/asinl.c: New file.
80321         * lib/atanl.c: New file.
80322         * lib/ceill.c: New file.
80323         * lib/cosl.c: New file.
80324         * lib/expl.c: New file.
80325         * lib/floorl.c: New file.
80326         * lib/frexpl.c: New file.
80327         * lib/ldexpl.c: New file.
80328         * lib/logl.c: New file.
80329         * lib/sincosl.c: New file.
80330         * lib/sinl.c: New file.
80331         * lib/sqrtl.c: New file.
80332         * lib/tanl.c: New file.
80333         * lib/trigl.c: New file.
80334         * lib/trigl.h: New file.
80335
80336 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80337
80338         * m4/mathl.m4: New file.
80339
80340 2003-02-18  Bruno Haible  <bruno@clisp.org>
80341
80342         * MODULES.html.sh (func_all_modules): Add mathl.
80343
80344 2003-02-17  Bruno Haible  <bruno@clisp.org>
80345
80346         * modules/mkdtemp: New module.
80347         * MODULES.html.sh (func_all_modules): Add it.
80348
80349 2003-02-17  Bruno Haible  <bruno@clisp.org>
80350
80351         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80352
80353 2003-02-17  Bruno Haible  <bruno@clisp.org>
80354
80355         * lib/mkdtemp.h: New file, from GNU gettext.
80356         * lib/mkdtemp.c: New file, from GNU gettext.
80357
80358 2003-02-02  Jim Meyering  <jim@meyering.net>
80359
80360         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80361         e.g. glibc-2.2.93.
80362
80363 2003-01-31  Bruno Haible  <bruno@clisp.org>
80364
80365         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80366         'rpl_rename'.
80367         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80368         'rpl_strnlen'.
80369         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80370         'rpl_strtod'.
80371         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80372         'rpl_utime'.
80373
80374 2003-01-31  Bruno Haible  <bruno@clisp.org>
80375
80376         * lib/rename.c: #undef rename before defining rpl_rename.
80377         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80378
80379 2003-01-30  Bruno Haible  <bruno@clisp.org>
80380
80381         * modules/vasnprintf, modules/vasprintf: New modules.
80382         * MODULES.html.sh (func_all_modules): Add them.
80383
80384 2003-01-30  Bruno Haible  <bruno@clisp.org>
80385
80386         * m4/signed.m4: New file, from GNU gettext.
80387         * m4/longdouble.m4: New file, from GNU gettext.
80388         * m4/wchar_t.m4: New file, from GNU gettext.
80389         * m4/wint_t.m4: New file, from GNU gettext.
80390         * m4/vasnprintf.m4: New file.
80391         * m4/vasprintf.m4: New file.
80392
80393 2003-01-30  Bruno Haible  <bruno@clisp.org>
80394
80395         * lib/printf-args.h: New file, from GNU gettext.
80396         * lib/printf-args.c: New file, from GNU gettext.
80397         * lib/printf-parse.h: New file, from GNU gettext.
80398         * lib/printf-parse.c: New file, from GNU gettext.
80399         * lib/vasnprintf.h: New file, from GNU gettext.
80400         * lib/vasnprintf.c: New file, from GNU gettext.
80401         * lib/asnprintf.c: New file, from GNU gettext.
80402         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80403         * lib/vasprintf.c: New file, from GNU gettext.
80404         * lib/asprintf.c: New file, from GNU gettext.
80405
80406 2003-01-29  Bruno Haible  <bruno@clisp.org>
80407
80408         * modules/stpncpy: New module.
80409         * MODULES.html.sh (func_all_modules): Add it.
80410
80411 2003-01-29  Bruno Haible  <bruno@clisp.org>
80412
80413         * m4/stpncpy.m4: New file.
80414
80415 2003-01-29  Bruno Haible  <bruno@clisp.org>
80416
80417         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80418         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80419
80420 2003-01-28  Bruno Haible  <bruno@clisp.org>
80421
80422         * modules/c-ctype: New module.
80423         * MODULES.html.sh (func_all_modules): Add it.
80424
80425 2003-01-28  Bruno Haible  <bruno@clisp.org>
80426
80427         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80428         Paul Eggert.
80429         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80430         Paul Eggert.
80431
80432 2003-01-27  Bruno Haible  <bruno@clisp.org>
80433
80434         * modules/xsetenv: New module.
80435         * MODULES.html.sh (func_all_modules): Add it.
80436
80437 2003-01-27  Bruno Haible  <bruno@clisp.org>
80438
80439         * lib/xsetenv.h: New file, from GNU gettext.
80440         * lib/xsetenv.c: New file, from GNU gettext.
80441
80442 2003-01-23  Jim Meyering  <jim@meyering.net>
80443
80444         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80445         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80446
80447 2003-01-23  Bruno Haible  <bruno@clisp.org>
80448
80449         * modules/minmax: New module.
80450         * MODULES.html.sh (func_all_modules): Add it.
80451
80452 2003-01-23  Bruno Haible  <bruno@clisp.org>
80453
80454         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80455         Eggert.
80456
80457 2003-01-22  Bruno Haible  <bruno@clisp.org>
80458
80459         * modules/exit: New module.
80460         * MODULES.html.sh (func_all_modules): Add it.
80461
80462 2003-01-22  Bruno Haible  <bruno@clisp.org>
80463
80464         * lib/exit.h: New file, from GNU gettext.
80465
80466 2003-01-19  Bruno Haible  <bruno@clisp.org>
80467
80468         * gnulib-tool: Recognize option --extract-maintainer.
80469         (func_get_maintainer): New function.
80470         * modules/*: Add Maintainer entry.
80471
80472 2003-01-16  Jim Meyering  <jim@meyering.net>
80473
80474         * m4/regex.m4: The `regex' struct is both input and output.
80475         Initialize it before each use.  Patch by Tim Waugh.
80476
80477 2003-01-16  Bruno Haible  <bruno@clisp.org>
80478
80479         * MODULES.html.sh: Add a table of contents. Add the module name as
80480         leftmost column. Add hyperlinks.
80481
80482 2003-01-15  Bruno Haible  <bruno@clisp.org>
80483
80484         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80485
80486 2003-01-15  Bruno Haible  <bruno@clisp.org>
80487
80488         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80489         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80490         suffix.
80491
80492 2003-01-15  Bruno Haible  <bruno@clisp.org>
80493
80494         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80495
80496 2003-01-15  Bruno Haible  <bruno@clisp.org>
80497
80498         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80499         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80500
80501 2003-01-14  Jim Meyering  <jim@meyering.net>
80502
80503         * lib/same.c (same_name): Tweak a comment.
80504
80505 2003-01-14  Bruno Haible  <bruno@clisp.org>
80506
80507         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80508         when a string comparison is sufficient.
80509
80510 2003-01-14  Bruno Haible  <bruno@clisp.org>
80511
80512         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80513         'unsigned int'.
80514
80515 2003-01-14  Bruno Haible  <bruno@clisp.org>
80516
80517         * lib/hash-pjw.c: Add comment about low quality of this function.
80518
80519 2003-01-13  Bruno Haible  <bruno@clisp.org>
80520
80521         * modules/stpcpy: Distribute lib/stpcpy.h.
80522         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80523
80524 2003-01-13  Bruno Haible  <bruno@clisp.org>
80525
80526         * modules/*: Add a description.
80527         * modules/strpbrk: Fix Makefile.am snippet.
80528         * modules/strtoimax: Fix dependencies.
80529         * modules/strtoumax: Likewise.
80530
80531 2003-01-13  Bruno Haible  <bruno@clisp.org>
80532
80533         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80534         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80535         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80536
80537 2003-01-13  Bruno Haible  <bruno@clisp.org>
80538
80539         * gnulib-tool (func_create_testdir): Store config/* files in the main
80540         directory.
80541         * config.rpath: Move to ...
80542         * config/config.rpath: ... here.
80543         * modules/gettext: Contains config/config.rpath, not config.rpath.
80544         * modules/iconv: Likewise.
80545
80546 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80547
80548         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80549         to avoid collisions with libcurses and libreadline.
80550
80551         * m4/getstr.m4: Remove.
80552         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80553
80554 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80555
80556         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80557         to avoid collisions with libcurses and libreadline.
80558
80559         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80560         * lib/getstr.h, getstr.c: Remove.
80561         * lib/getline.c: Include "getline.h", to check interface.
80562         Move body of old getstr.c here: this defines MIN_CHUNK and
80563         declares getdelim2, which is renamed from getstr.
80564         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80565
80566         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80567         All uses changed.
80568         * lib/linebuffer.h: Likewise.
80569         (readline): Remove backward-compatibility macro.
80570
80571 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80572
80573         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80574         to avoid collisions with libcurses and libreadline.
80575         * getstr: Remove.
80576         * MODULES.html.sh: Remove getstr.
80577         * modules/getline: Depend on unlocked-io, not getstr.
80578
80579 2003-01-12  Jim Meyering  <jim@meyering.net>
80580
80581         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80582
80583 2003-01-10  Bruno Haible  <bruno@clisp.org>
80584
80585         * modules/alloca: Change Makefile.am requirements. Simplify Include
80586         requirements. Add lib/alloca_.h to file list.
80587
80588 2003-01-10  Bruno Haible  <bruno@clisp.org>
80589
80590         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80591
80592 2003-01-10  Bruno Haible  <bruno@clisp.org>
80593
80594         * lib/alloca_.h: New file.
80595         * lib/getdate.y: Unconditionally include alloca.h.
80596         * lib/makepath.c: Likewise.
80597         * lib/setenv.c: Likewise.
80598         * lib/userspec.c: Likewise.
80599
80600 2003-01-09  Karl Berry  <karl@gnu.org>
80601
80602         * MODULES.html.sh: include `dirname $0` in PATH, to find
80603         gnulib-tool.
80604
80605 2003-01-09  Bruno Haible  <bruno@clisp.org>
80606
80607         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80608         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80609
80610 2003-01-09  Bruno Haible  <bruno@clisp.org>
80611
80612         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80613
80614 2003-01-09  Bruno Haible  <bruno@clisp.org>
80615
80616         * lib/stdbool.h.in: New file.
80617
80618 2003-01-09  Bruno Haible  <bruno@clisp.org>
80619
80620         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80621         * MODULES.html.sh: Likewise.
80622
80623 2003-01-08  Jim Meyering  <jim@meyering.net>
80624
80625         * lib/full-write.c: Undefine and define-away `const' after inclusion
80626         of errno.h, not before.  Suggestion from Bruno Haible.
80627
80628 2003-01-08  Bruno Haible  <bruno@clisp.org>
80629
80630         * modules/full-read: Depend on full-write.
80631
80632 2003-01-08  Bruno Haible  <bruno@clisp.org>
80633
80634         * lib/safe-read.c: Include specification header first, to ensure its
80635         selfcontainedness.
80636         * lib/full-write.c: Likewise.
80637
80638 2003-01-07  Jim Meyering  <jim@meyering.net>
80639
80640         * lib/full-write.c: Rework so that it may serve to define full_read,
80641         too.
80642         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80643
80644 2003-01-07  Bruno Haible  <bruno@clisp.org>
80645
80646         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80647         <inttypes.h>.
80648         * lib/xstrtol.h: Likewise.
80649         * lib/xstrtoimax.c: Likewise.
80650         * lib/xstrtoumax.c: Likewise.
80651         * lib/human.h: Likewise.
80652
80653         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80654         on systems that have <inttypes.h> but not <stdint.h>.
80655
80656 2003-01-07  Bruno Haible  <bruno@clisp.org>
80657
80658         * MODULES.html.sh: Add copyright notice.
80659         (missed_files): Omit CVS directory entries.
80660         (func_module): Make it work with sed-3.02.
80661         * MODULES.txt: Remove file.
80662
80663 2003-01-06  Jim Meyering  <jim@meyering.net>
80664
80665         * lib/version-etc.c: Update year in translatable copyright string.
80666
80667 2003-01-03  Karl Berry  <karl@gnu.org>
80668
80669         * config/config.{guess,sub}: update from prep.
80670
80671 2003-01-02  Karl Berry  <karl@gnu.org>
80672
80673         * doc/COPYING.DOC: belatedly updated to 1.2.
80674
80675 2003-01-01  Karl Berry  <karl@gnu.org>
80676
80677         * gnulib-tool (func_verify_module): report module name $module in
80678         error message, not $1.
80679         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80680         be created, only if it doesn't exist.
80681         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80682
80683 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80684
80685         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80686
80687 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80688
80689         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80690         memcmp if strcoll doesn't work.
80691
80692 2002-12-31  Bruno Haible  <bruno@clisp.org>
80693
80694         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80695         nonempty.
80696
80697 2002-12-31  Bruno Haible  <bruno@clisp.org>
80698
80699         * lib/memcoll.c (STRCOLL): New macro.
80700         (memcoll): Use it.
80701
80702 2002-12-31  Bruno Haible  <bruno@clisp.org>
80703
80704         * lib/localcharset.h: New file.
80705         * lib/localcharset.c: Include it.
80706         * lib/unicodeio.c: Likewise.
80707
80708 2002-12-31  Bruno Haible  <bruno@clisp.org>
80709
80710         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80711         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80712
80713 2002-12-31  Bruno Haible  <bruno@clisp.org>
80714
80715         * lib/getline.h: Include <stddef.h>, for size_t.
80716
80717         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80718         * lib/unicodeio.c: Don't include <stddef.h>.
80719
80720 2002-12-31  Bruno Haible  <bruno@clisp.org>
80721
80722         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80723         HAVE_TM_ZONE.
80724
80725 2002-12-24  Karl Berry  <karl@gnu.org>
80726
80727         * config/config.guess: update from prep.
80728
80729 2002-12-24  Bruno Haible  <bruno@clisp.org>
80730
80731         General infrasructure.
80732         * m4/README: Rewritten.
80733         * m4/onceonly.m4: New file.
80734         * m4/onceonly_2_57.m4: New file.
80735
80736         Module atexit.
80737         * m4/atexit.m4: New file.
80738
80739         Module strtod.
80740         * m4/strtod.m4: New file.
80741
80742         Module strtol.
80743         * m4/strtol.m4: New file.
80744
80745         Module strtoul.
80746         * m4/strtoul.m4: New file.
80747
80748         Module memchr.
80749         * m4/memchr.m4: New file.
80750
80751         Module memcmp.
80752         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80753         (jm_FUNC_MEMCMP): Invoke it.
80754
80755         Module memcpy.
80756         * m4/memcpy.m4: New file.
80757
80758         Module memmove.
80759         * m4/memmove.m4: New file.
80760
80761         Module memset.
80762         * m4/memset.m4: New file.
80763
80764         Module strcspn.
80765         * m4/strcspn.m4: New file.
80766
80767         Module strpbrk.
80768         * m4/strpbrk.m4: New file.
80769
80770         Module strstr.
80771         * m4/strstr.m4: New file.
80772
80773         Module strerror.
80774         * m4/strerror.m4: New file.
80775
80776         Module mktime.
80777         * m4/mktime.m4: Renamed from jm-mktime.m4.
80778         (gl_PREREQ_MKTIME): New macro.
80779         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80780
80781         Module malloc.
80782         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80783         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80784         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80785
80786         Module realloc.
80787         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80788         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80789         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80790
80791         Module strftime.
80792         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80793         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80794         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80795         gl_TM_GMTOFF.
80796         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80797
80798         Module xalloc.
80799         * m4/xalloc.m4: New file.
80800
80801         Module alloca.
80802         * m4/alloca.m4: New file.
80803
80804         Module putenv.
80805         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80806         (jm_FUNC_PUTENV): Invoke it.
80807
80808         Module setenv.
80809         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80810         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80811         when invoked twice.
80812         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80813         gt_FUNC_SETENV.
80814
80815         Module memrchr.
80816         * m4/memrchr.m4: New file.
80817
80818         Module stpcpy.
80819         * m4/stpcpy.m4: New file.
80820
80821         Module strcase.
80822         * m4/strcase.m4: New file.
80823
80824         Module strdup.
80825         * m4/strdup.m4: New file.
80826
80827         Module strnlen.
80828         * m4/strnlen.m4: New file.
80829
80830         Module strndup.
80831         * m4/strndup.m4: New file.
80832
80833         Module xstrtod.
80834         * m4/xstrtod.m4: New file.
80835
80836         Module xstrtol.
80837         * m4/xstrtol.m4: New file.
80838
80839         Module getdate.
80840         * m4/getdate.m4: New file.
80841
80842         Module unlocked-io.
80843         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80844         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80845         * m4/jm-glibc-io.m4n: Remove file.
80846
80847         Module long-options.
80848         * m4/long-options.m4: New file.
80849
80850         Module md5.
80851         * m4/md5.m4: New file.
80852
80853         Module sha.
80854         * m4/sha.m4: New file.
80855
80856         Module getstr.
80857         * m4/getstr.m4: New file.
80858
80859         Module getline.
80860         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80861         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80862         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80863         simply getline. Infoke gl_PREREQ_GETLINE.
80864
80865         Module obstack.
80866         * m4/obstack.m4: New file.
80867
80868         Module hash.
80869         * m4/hash.m4: New file.
80870
80871         Module readtokens.
80872         * m4/readtokens.m4: New file.
80873
80874         Module strverscmp.
80875         * m4/strverscmp.m4: New file.
80876
80877         Module stdbool.
80878         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80879         OSF/1.
80880
80881         Module strtoll.
80882         * m4/strtoll.m4: New file.
80883
80884         Module strtoull.
80885         * m4/strtoull.m4: New file.
80886
80887         Module strtoimax.
80888         * m4/strtoimax.m4: New file.
80889
80890         Module strtoumax.
80891         * m4/strtoumax.m4: New file.
80892
80893         Module xstrtoimax.
80894         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80895         jm_AC_PREREQ_XSTRTOIMAX.
80896         Moved the strtol prerequisites to strtol.m4.
80897         Moved the strtoll prerequisites to strtoll.m4.
80898         Moved the strtoimax prerequisites to strtoimax.m4.
80899
80900         Module xstrtoumax.
80901         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80902         jm_AC_PREREQ_XSTRTOUMAX.
80903         Moved the strtoul prerequisites to strtoul.m4.
80904         Moved the strtoull prerequisites to strtoull.m4.
80905         Moved the strtoumax prerequisites to strtoumax.m4.
80906
80907         Module chown.
80908         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80909         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80910
80911         Module dup2.
80912         * m4/dup2.m4: New file.
80913
80914         Module ftruncate.
80915         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80916         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80917
80918         Module getgroups.
80919         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80920         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80921
80922         Module gettimeofday.
80923         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80924         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80925         gl_PREREQ_GETTIMEOFDAY.
80926
80927         Module mkdir.
80928         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80929         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80930
80931         Module mkstemp.
80932         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80933         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80934         jm_AC_TYPE_UINTMAX_T.
80935         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80936
80937         Module stat.
80938         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80939         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80940
80941         Module lstat.
80942         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80943         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80944
80945         Module timespec.
80946         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80947         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80948         * m4/st_mtim.m4: Indentation.
80949
80950         Module nanosleep.
80951         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80952         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80953         gl_PREREQ_NANOSLEEP.
80954
80955         Module regex.
80956         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80957         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80958         (gl_REGEX): New macro.
80959
80960         Module rename.
80961         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80962         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80963
80964         Module rmdir.
80965         * m4/rmdir.m4: New file.
80966
80967         Module utime.
80968         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80969         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80970         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80971
80972         Module dirname.
80973         * m4/dirname.m4: New file.
80974
80975         Module getopt.
80976         * m4/getopt.m4: New file.
80977
80978         Module unistd-safer.
80979         * m4/unistd-safer.m4: New file.
80980
80981         Module fnmatch.
80982         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80983         declaration.
80984         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80985         (gl_FUNC_FNMATCH_POSIX): New macro.
80986         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80987         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80988         simply fnmatch.
80989
80990         Module exclude.
80991         * m4/exclude.m4: New file.
80992
80993         Module human.
80994         * m4/human.m4: New file.
80995
80996         Module acl.
80997         * m4/acl.m4: Nop.
80998
80999         Module backupfile.
81000         * m4/backupfile.m4: New file.
81001         * m4/d-ino.m4: Indentation.
81002
81003         Module fsusage.
81004         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81005         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81006         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81007
81008         Module dirfd.
81009         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81010         requirements.
81011
81012         Module euidaccess.
81013         * m4/euidaccess.m4: New file.
81014
81015         Module file-type.
81016         * m4/file-type.m4: New file.
81017
81018         Module fileblocks.
81019         * m4/fileblocks.m4: New file.
81020
81021         Module filemode.
81022         * m4/filemode.m4: New file.
81023
81024         Module isdir.
81025         * m4/isdir.m4: New file.
81026
81027         Module lchown.
81028         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81029         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81030
81031         Module makepath.
81032         * m4/makepath.m4: New file.
81033
81034         Module modechange.
81035         * m4/modechange.m4: New file.
81036
81037         Module mountlist.
81038         * m4/mountlist.m4: New file.
81039         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81040         Indentation.
81041
81042         Module path-concat.
81043         * m4/path-concat.m4: New file.
81044
81045         Module pathmax.
81046         * m4/pathmax.m4: New file.
81047
81048         Module same.
81049         * m4/same.m4: New file.
81050
81051         Module save-cwd.
81052         * m4/save-cwd.m4: New file.
81053
81054         Module savedir.
81055         * m4/savedir.m4: New file.
81056
81057         Module xgetcwd.
81058         * m4/xgetcwd.m4: New file.
81059         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81060
81061         Module xreadlink.
81062         * m4/xreadlink.m4: New file.
81063
81064         Module safe-read.
81065         * m4/safe-read.m4: New file.
81066
81067         Module safe-write.
81068         * m4/safe-write.m4: New file.
81069
81070         Module closeout.
81071         * m4/closeout.m4: New file.
81072
81073         Module stdio-safer.
81074         * m4/stdio-safer.m4: New file.
81075
81076         Module getpass.
81077         * m4/getpass.m4: New file.
81078
81079         Module getugroups.
81080         * m4/getugroups.m4: New file.
81081
81082         Module group-member.
81083         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81084         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81085
81086         Module idcache.
81087         * m4/idcache.m4: New file.
81088
81089         Module userspec.
81090         * m4/userspec.m4: New file.
81091
81092         Module gettime.
81093         * m4/clock_time.m4: New file.
81094         * m4/gettime.m4: New file.
81095
81096         Module settime.
81097         * m4/settime.m4: New file.
81098
81099         Module posixtm.
81100         * m4/posixtm.m4: New file.
81101
81102         Module gethostname.
81103         * m4/gethostname.m4: New file.
81104
81105         Module canon-host.
81106         * m4/canon-host.m4: New file.
81107
81108         Module gettext.
81109         * m4/codeset.m4: New file, from gettext-0.11.5.
81110         * m4/gettext.m4: New file, from gettext-0.11.5.
81111         * m4/glibc21.m4: New file, from gettext-0.11.5.
81112         * m4/iconv.m4: New file, from gettext-0.11.5.
81113         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81114         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81115         * m4/inttypes.m4: New file, from gettext-0.11.5.
81116         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81117         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81118         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81119         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81120         * m4/lib-link.m4: New file, from gettext-0.11.5.
81121         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81122         * m4/progtest.m4: New file, from gettext-0.11.5.
81123         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81124         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81125         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81126
81127         Module localcharset.
81128         * m4/localcharset.m4: New file.
81129
81130         Module hard-locale.
81131         * m4/hard-locale.m4: New file.
81132
81133         Module mbswidth.
81134         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81135         onceonly macros.
81136         * m4/mbrtowc.m4: Add comment.
81137
81138         Module memcasecmp.
81139         * m4/memcasecmp.m4: New file.
81140
81141         Module memcoll.
81142         * m4/memcoll.m4: New file.
81143
81144         Module unicodeio.
81145         * m4/unicodeio.m4: New file.
81146
81147         Module rpmatch.
81148         * m4/rpmatch.m4: New file.
81149
81150         Module yesno.
81151         * m4/yesno.m4: New file.
81152
81153         Module exitfail.
81154         * m4/exitfail.m4: New file.
81155
81156         Module c-stack.
81157         * m4/c-stack.m4 (gl_C_STACK): New macro.
81158         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81159
81160         Module error.
81161         * m4/error.m4 (gl_ERROR): New macro.
81162         (jm_PREREQ_ERROR): Use onceonly macros.
81163
81164         Module fatal.
81165         * m4/fatal.m4: New file.
81166
81167         Module getloadavg.
81168         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81169         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81170
81171         Module getpagesize.
81172         * m4/getpagesize.m4: New file.
81173
81174         Module getusershell.
81175         * m4/getusershell.m4: New file.
81176
81177         Module physmem.
81178         * m4/physmem.m4: New file.
81179
81180         Module posixver.
81181         * m4/posixver.m4: New file.
81182
81183         Module quotearg.
81184         * m4/quotearg.m4: New file.
81185
81186         Module quote.
81187         * m4/quote.m4: New file.
81188
81189         Module readutmp.
81190         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81191
81192         Module sig2str.
81193         * m4/sig2str.m4: New file.
81194
81195         Other.
81196         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81197         ulonglong.m4.
81198         * m4/intmax_t.m4: New file.
81199         * m4/d-type.m4: Indentation.
81200         * m4/jm-macros.m4: Update.
81201         * m4/prereq.m4 (jm_PREREQ): Update.
81202         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81203         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81204         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81205         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81206         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81207         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81208         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81209         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81210         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81211         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81212         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81213         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81214         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81215         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81216         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81217         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81218         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81219         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81220         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81221
81222 2002-12-24  Bruno Haible  <bruno@clisp.org>
81223
81224         * MODULES.txt: Update according to m4/ changes.
81225
81226         Module gettext.
81227         * config.rpath: New file, from gettext-0.11.5.
81228
81229         * modules/*: New module descriptions.
81230         * gnulib-tool: New file.
81231         * MODULES.html.sh: New file.
81232
81233 2002-12-21  Karl Berry  <karl@gnu.org>
81234
81235         * doc/fdl.texi: update to version 1.2.
81236
81237 2002-12-19  Karl Berry  <karl@gnu.org>
81238
81239         * config/config.guess: update from prep.
81240
81241 2002-12-18  Bruno Haible  <bruno@clisp.org>
81242
81243         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81244         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81245
81246 2002-12-17  Bruno Haible  <bruno@clisp.org>
81247
81248         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81249         stdlib.h, string.h.
81250
81251 2002-12-17  Bruno Haible  <bruno@clisp.org>
81252
81253         * lib/canon-host.c (strdup): Remove unused declaration.
81254
81255         * lib/fsusage.c: Include full_read.h.
81256         (get_fs_usage): Use full_read instead of safe_read.
81257
81258         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81259
81260 2002-12-12  Karl Berry  <karl@gnu.org>
81261
81262         * config/config.guess: update from prep.
81263
81264 2002-12-11  Bruno Haible  <bruno@clisp.org>
81265
81266         * m4/setenv.m4: New file, from gettext-0.11.5.
81267
81268 2002-12-11  Bruno Haible  <bruno@clisp.org>
81269
81270         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81271         not unsetenv().
81272         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81273         modifications:
81274
81275         2002-12-11  Bruno Haible  <bruno@clisp.org>
81276
81277                 * setenv.c (alloca): Fall back to malloc.
81278                 (freea): New macro.
81279                 (setenv): Use freea() to free memory allocated with alloca().
81280
81281         2002-11-13  Bruno Haible  <bruno@clisp.org>
81282
81283                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81284                 function declarations.
81285                 * unsetenv.c (unsetenv): Likewise.
81286
81287         2002-03-04  Bruno Haible  <bruno@clisp.org>
81288
81289                 Portability to AIX 4.3.3.
81290                 * unsetenv.c: New file, extracted from setenv.c.
81291                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81292
81293         2001-12-20  Bruno Haible  <bruno@clisp.org>
81294
81295                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81296                 use malloc instead. For SunOS 4.
81297
81298         2001-12-11  Bruno Haible  <bruno@clisp.org>
81299
81300                 * setenv.c: Declare alloca.
81301                 (compar_fn_t): New typedef.
81302                 (KNOWN_VALUE, STORE_VALUE): Use it.
81303
81304         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81305         setenv.h.
81306
81307 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81308
81309         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81310         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81311         Choose values that are less likely to collide with system fnmatch
81312         options.
81313         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81314         defined (e.g., a pure POSIX system).
81315         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81316         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81317
81318 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81319
81320         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81321         a pain in practice to deal with generated m4 files.  This change
81322         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81323
81324         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81325         and jm-glibc-io.m4, as they are no longer a special case.
81326         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81327         kludge and the auto-generation stuff.  Check only whether the
81328         functions are declared, not whether they exist, since older hosts
81329         that don't declare the functions can't use the optimization anyway.
81330
81331 2002-12-06  Jim Meyering  <jim@meyering.net>
81332
81333         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81334
81335         Merge in changes from libc's misc/error.c, in preparation
81336         for the merge of gnulib's changes back into libc.
81337
81338         * lib/error.c (_): Define only if not already defined.
81339         Move definition to follow all #include directives.
81340         Include unlocked-io.h only if !_LIBC.
81341         [_LIBC]: Include <libio/libioP.h>.
81342         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81343         (fflush): Tweak definition to use INTUSE.
81344         (putc): Define.
81345
81346 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81347
81348         * lib/alloca.c [defined emacs]: Include "lisp.h".
81349         (xalloc_die) [defined emacs]: New macro.
81350         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81351         [! defined emacs]: Include <xalloc.h>.
81352         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81353         (pointer): Typedef to POINTER_TYPE *.
81354         (malloc): Remove decl; we now always use xmalloc.
81355         (alloca): Use old-style definition, since Emacs needs this.
81356         Check for arithmetic overflow when computing combined size.
81357
81358 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81359
81360         Do not generate unlocked-io.h automatically, since it's easier to
81361         maintain it by hand.
81362
81363         * lib/unlocked-io.h: New file, from GNU diffutils,
81364         but with proper copyright notice and attribution.
81365         * lib/gen-uio: Remove.
81366         * lib/Makefile.am: Add copyright notice.
81367         (libfetish_a_SOURCES): Add unlocked-io.h.
81368         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81369         (DISTCLEANFILES, io_functions): Remove macros.
81370         (EXTRA_DIST): Remove gen_uio.
81371         (unlocked-io.h): Remove rule.
81372
81373 2002-12-04  Jim Meyering  <jim@meyering.net>
81374
81375         Reflect the fact that stat.c and lstat.c are no longer generated.
81376         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81377         (DISTCLEANFILES): Likewise.
81378         (EXTRA_DIST): Likewise.
81379         (all_local): Don't depend on stat.c or lstat.c.
81380         (stat.c, lstat.c): Remove rules.
81381         (EXTRA_DIST): Remove xstat.in.
81382
81383         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81384         * lib/stat.c: New file.  Contents mostly from xstat.in.
81385         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81386         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81387
81388         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81389         too.
81390         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81391
81392 2002-12-03  Jim Meyering  <jim@meyering.net>
81393
81394         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81395         but not semantics, to minimize the differences between these two files.
81396         (safe_read): Change comment to mention SAFE_READ_ERROR.
81397
81398         * lib/safe-read.c (IS_EINTR): Define.
81399         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81400
81401 2002-12-02  Jim Meyering  <jim@meyering.net>
81402
81403         * lib/safe-read.c (EINTR): Define.
81404         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81405         (INT_MAX): Provide fallback.
81406         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81407
81408         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81409
81410 2002-12-02  Bruno Haible  <bruno@clisp.org>
81411
81412         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81413         Define, taken from safe-read.c.
81414         (INT_MAX): Provide fallback.
81415         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81416         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81417
81418         * lib/safe-read.c (EINTR): Remove definition.
81419         (safe_read): Don't use EINTR if it is absent.
81420
81421 2002-12-01  Jim Meyering  <jim@meyering.net>
81422
81423         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81424         zero.
81425         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81426
81427 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81428
81429         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81430         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81431         with `if (! (value < limit)) abort ();', for readability.
81432
81433 2002-11-26  Karl Berry  <karl@gnu.org>
81434
81435         * lib/strdup.c: copy from libc again, with jim's ok.
81436         * lib/.cppi-disable: re-add strdup.c
81437
81438 2002-11-25  Karl Berry  <karl@gnu.org>
81439
81440         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81441         instead of "strtol.c".
81442
81443 2002-11-25  Karl Berry  <karl@gnu.org>
81444
81445         * config/install-sh: update from automake for variable quoting, $0 in
81446         error msgs, etc.
81447
81448         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81449         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81450         entry.
81451
81452 2002-11-25  Jim Meyering  <jim@meyering.net>
81453
81454         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81455
81456 2002-11-24  Karl Berry  <karl@gnu.org>
81457
81458         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81459         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81460
81461 2002-11-24  Jim Meyering  <jim@meyering.net>
81462
81463         Update from coreutils:
81464
81465         * lib/mktime.c: Merge in changes from libc.
81466
81467         Avoid a link-time failure on some Linux systems.
81468         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81469         (otherwise).
81470         (__mon_yday): Declare with the STATIC attribute.
81471         (__mktime_internal): Likewise.
81472         Based on a report from Greg Schafer.
81473
81474 2002-11-23  Jim Meyering  <jim@meyering.net>
81475
81476         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81477         Use `unsigned', not `int', as type of index.
81478
81479         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81480
81481         * lib/fsusage.c: Remove unneeded parentheses around operands of
81482         `defined'.
81483
81484 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81485
81486         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81487         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81488         so that we can be included first.
81489         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81490         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81491         No need to include stddef.h or sys/types.h any more.
81492         Surround local include files with "", not "<>".
81493         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81494         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81495         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81496         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81497         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81498         (ISPRINT): Remove; no longer needed now that we assume C89.
81499
81500         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81501         Preserve errno.
81502
81503         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81504         quotearg_char): Use SIZE_MAX rather than
81505         (size_t) -1 when we are talking about "infinity".
81506
81507         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81508
81509 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81510
81511         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81512         hint that one should use `if (! x) abort ();' rather than `assert
81513         (x);', and anyway it's one less thing to worry about configuring.
81514         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81515         hash_rehash, hash_insert): Use abort rather than assert.
81516
81517 2002-11-22  Bruno Haible  <bruno@clisp.org>
81518
81519         * lib/safe-read.h: Assume C89. Add comments.
81520         (safe_read): Change return type to size_t.
81521         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81522         byte counts > SSIZE_MAX correctly.
81523         * lib/safe-write.h: New file.
81524         * lib/safe-write.c: New file.
81525         * lib/full-read.h: New file.
81526         * lib/full-read.c: New file.
81527         * lib/full-write.h: Assume C89. Add comments.
81528         * lib/full-write.c: Include safe-write.h.
81529         (full_write): Rewritten to use safe_write.
81530         Suggested by Jim Meyering and Paul Eggert.
81531
81532 2002-11-21  Jim Meyering  <jim@meyering.net>
81533
81534         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81535
81536         Merge in changes from the coreutils.
81537
81538         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81539         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81540         <stdint.h>.
81541         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81542         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81543         int.  Work more efficiently if X is the same width as uintmax_t.
81544         Do not compare X to -1, to avoid bogus compiler warning.
81545         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81546         Don't assume that f_frsize and f_bsize are the same type.
81547
81548         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81549         warning on FreeBSD.
81550
81551         * lib/makepath.c (make_path): Restore umask *before* creating the final
81552         component.
81553         (make_path): Minor reformatting.
81554
81555         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81556         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81557         HAVE_MALLOC/HAVE_REALLOC.
81558
81559         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81560         dummy ones.  At least on GNU/Linux systems, `auto' means something
81561         else.
81562         From Michael Stone.
81563
81564 2002-11-21  Bruno Haible  <bruno@clisp.org>
81565
81566         Remove case insensitive option matching.
81567         * lib/argmatch.h (argcasematch): Remove declaration.
81568         (ARGCASEMATCH): Remove macro.
81569         (__xargmatch_internal): Remove case_sensitive argument.
81570         (XARGMATCH): Update.
81571         (XARGCASEMATCH): Remove macro.
81572         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81573         case_sensitive argument.
81574         (argcasematch): Remove function.
81575         (__xargmatch_internal): Remove case_sensitive argument.
81576         (main): Use XARGMATCH instead of XARGCASEMATCH.
81577
81578         * lib/xmalloc.c: Change compile-time error message. Add comment about
81579         required autoconf version.
81580
81581 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81582
81583         Merge argmatch cleanups from Bison.  Assume C89.
81584
81585         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81586         Include stdlib.h, for EXIT_FAILURE.
81587         Always include <string.h>, since we assume C89.
81588         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81589         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81590         Include <stddef.h> instead, since it's all we need for size_t.
81591         (PARAMS): Remove.  All uses removed.
81592         (ARRAY_CARDINALITY): Do not bother to #undef.
81593         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81594         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81595         Remove unnecessary parentheses.
81596         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81597         Insert necessary parentheses.
81598         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81599         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81600
81601 2002-11-19  Bruno Haible  <bruno@clisp.org>
81602
81603         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81604         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81605
81606         * lib/mbswidth.h (PARAMS): Remove macro.
81607         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81608         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81609
81610         * lib/gcd.h (PARAMS): Remove macro.
81611         (gcd): Use ANSI C function declarations.
81612         * lib/gcd.c (gcd): Likewise.
81613
81614 2002-11-15  Bruno Haible  <bruno@clisp.org>
81615
81616         * lib/strcspn.c: Include <stddef.h>.
81617         (strcspn): Use ANSI C function declaration. Change return type to
81618         size_t. Use NULL.
81619         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81620         (strpbrk): Use NULL.
81621         * lib/strpbrk.h (PARAMS): Remove macro.
81622         (strpbrk): Use ANSI C function declaration.
81623         * lib/strstr.c: Don't include <sys/types.h>.
81624         * lib/strstr.h (PARAMS): Remove macro.
81625         (strstr): Use ANSI C function declarations.
81626
81627 2002-11-14  Karl Berry  <karl@gnu.org>
81628
81629         * config/mkinstalldirs: `do' on separate line, instead of
81630         `for var; do'.
81631
81632 2002-11-06  Bruno Haible  <bruno@clisp.org>
81633
81634         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81635         * lib/gcd.c (gcd): Likewise.
81636
81637 2002-11-05  Bruno Haible  <bruno@clisp.org>
81638
81639         * lib/gcd.h: New file, from gettext-0.11.5.
81640         * lib/gcd.c: New file, from gettext-0.11.5.
81641
81642 2002-11-05  Bruno Haible  <bruno@clisp.org>
81643
81644         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81645         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81646         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81647         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81648
81649         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81650         <libintl.h>.
81651         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81652         <libintl.h>.
81653
81654         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81655         * lib/human.c: Include gettext.h instead of <libintl.h>.
81656         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81657         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81658         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81659         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81660         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81661         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81662         (textdomain): Remove definition.
81663         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81664
81665         * lib/long-options.c: Remove include of <libintl.h> and definition of
81666         _.
81667         * lib/same.c: Remove include of <libintl.h> and definition of _.
81668
81669 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81670
81671         * lib/config.charset: A few additions for Solaris.
81672
81673 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81674
81675         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81676         * lib/localcharset.c (locale_charset): Declare as extern "C".
81677
81678 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81679
81680         * lib/config.charset: msdos in uk_UA uses CP1125.
81681
81682 2002-11-04  Bruno Haible  <bruno@clisp.org>
81683
81684         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81685         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81686         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81687         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81688         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81689
81690 2002-11-04  Bruno Haible  <bruno@clisp.org>
81691
81692         * lib/localcharset.c (locale_charset): Don't return an empty string.
81693
81694 2002-11-04  Bruno Haible  <bruno@clisp.org>
81695
81696         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81697         aliases.
81698
81699 2002-11-04  Bruno Haible  <bruno@clisp.org>
81700
81701         * lib/config.charset: Update for newest glibc. Add canonical names
81702         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81703
81704 2002-11-04  Bruno Haible  <bruno@clisp.org>
81705
81706         * lib/config.charset: Add support for NetBSD.
81707
81708 2002-11-04  Bruno Haible  <bruno@clisp.org>
81709
81710         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81711
81712 2002-11-01  Bruno Haible  <bruno@clisp.org>
81713
81714         * configure.in: Add AC_CONFIG_AUX_DIR call.
81715         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81716         test/Makefile.
81717         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81718
81719 2002-09-28  Karl Berry  <karl@gnu.org>
81720
81721         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81722         installed automake until the next release, since changes have been
81723         made.
81724
81725 2002-09-25  Karl Berry  <karl@gnu.org>
81726
81727         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81728         * lib/getopt*: copy from libc/posix.
81729         * lib/gettext.h: copy from gettext.
81730         * lib/.cppi-disable: add strdup.c, gettext.h.
81731
81732 2002-09-25  Karl Berry  <karl@gnu.org>
81733
81734         * config/srclist.txt: enable gettext.h check.
81735         * config/config.{guess,sub}: update from prep.
81736         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81737                 from automake 1.6.3.
81738         See srclist*.
81739
81740 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81741
81742         * regex.c (PATFETCH): Remove the translating fetch.
81743         (PATFETCH_RAW): Rename to PATFETCH.
81744         (set_image_of_range): New fun.
81745         (SET_RANGE_TABLE_WORK_AREA): Use it.
81746         (regex_compile): Don't translate the pattern chars so eagerly.
81747         Only do it when inserting an `exactn' bytecode or when handling
81748         a char-range.
81749         (mutually_exclusive_p): Avoid empty statement.
81750
81751 2002-07-06  Jim Meyering  <meyering@lucent.com>
81752
81753         * m4/README: Don't mention Makefile.am.in.
81754         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81755
81756 2002-07-01  Jim Meyering  <meyering@lucent.com>
81757
81758         * lib/c-stack.c: Include sys/time.h.
81759         From Volker Borchert.
81760
81761 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81762
81763         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81764
81765 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81766
81767         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81768         New macro.  Use it uniformly instead of
81769         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81770         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81771         reported by Vin Shelton.
81772
81773 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81774
81775         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81776         Do not assume SA_SIGINFO behavior.
81777         Bug reported by Jim Meyering on NetBSD 1.5.2.
81778
81779 2002-06-22  Jim Meyering  <meyering@lucent.com>
81780
81781         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81782         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81783
81784         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81785         now that configure.ac uses AC_GNU_SOURCE.
81786         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81787         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81788
81789         Update to latest tools.  Suggestions from Paul Eggert.
81790         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81791         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81792         * m4/fnmatch.m4: Likewise.
81793         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81794         to AC_HEADER_STDBOOL
81795
81796 2002-06-22  Jim Meyering  <meyering@lucent.com>
81797
81798         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81799         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81800
81801 2002-06-22  Jim Meyering  <meyering@lucent.com>
81802
81803         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81804
81805         * lib/exitfail.c, exitfail.h: Likewise.
81806         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81807
81808         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81809         of fnmatch.h.
81810         (EXTRA_DIST): Add fnmatch_loop.c.
81811         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81812
81813         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81814         * lib/fnmatch.c: Update from diffutils-2.8.2.
81815         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81816         * lib/fnmatch.h: Remove file.
81817
81818 2002-06-21  Jim Meyering  <meyering@lucent.com>
81819
81820         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81821         * m4/mbrtowc.m4: Likewise.
81822
81823         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81824         * m4/mbswidth.m4: Reflect name change:
81825         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81826         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81827
81828         * m4/lib-link.m4: Update from gettext-0.11.2.
81829         * m4/gettext.m4: Likewise.
81830
81831         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81832         From Alfred M. Szmidt.
81833
81834 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81835
81836         * lib/file-type.h: Report an error if neither S_ISREG nor
81837         S_IFREG is defined, instead of using a test specific to glibc
81838         2.2.  This should be safe, since POSIX requires S_ISREG and
81839         Unix Version 7 had S_IFREG.  We don't need to check for
81840         <sys/types.h> since we don't use any symbols that it defines.
81841
81842 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81843
81844         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81845         $@-t, so that each temporary file name is unique and valid in the first
81846         8 characters, for operation under DOS.
81847
81848 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81849
81850         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81851
81852 2002-06-15  Jim Meyering  <meyering@lucent.com>
81853
81854         Work even with DJGPP 2.03, which lacks support for symlinks.
81855         From Richard Dawe.
81856         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81857         is defined.
81858         * lib/lchown.c (S_ISLNK): Likewise.
81859
81860 2002-06-15  Jim Meyering  <meyering@lucent.com>
81861
81862         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81863         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81864         have been included before this file.
81865
81866 2002-06-14  Jim Meyering  <meyering@lucent.com>
81867
81868         * lib/file-type.h: Use the version from diffutils-2.8.2.
81869         * lib/file-type.c: Likewise.
81870
81871 2002-06-07  Jim Meyering  <meyering@lucent.com>
81872
81873         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81874         They're needed at least for NetBSD 1.5.2.
81875         ($statxfs_includes): Include those same headers.
81876         ($statxfs_includes): Include sys/vfs.h if available.
81877         ($statxfs_includes): Likewise for sys/statvfs.h.
81878         Check for the following members in both structs statfs and statvfs:
81879         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81880
81881 2002-06-01  Jim Meyering  <meyering@lucent.com>
81882
81883         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81884         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81885
81886 2002-05-28  Jim Meyering  <meyering@lucent.com>
81887
81888         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81889         Reported by Volker Borchert.
81890
81891 2002-05-27  Jim Meyering  <meyering@lucent.com>
81892
81893         Fix a problem seen only on nonconforming systems whereby ls.c's
81894         use of localtime, and then of gettimeofday would cause trouble:
81895         the localtime call used to initialize rpl_gettimeofday's save
81896         mechanism would clobber ls's current local time information so
81897         that in any long listing the first file would always be listed
81898         with date 1970-01-01.  Analysis by Volker Borchert.
81899
81900         * lib/gettimeofday.c (localtime): Undefine.
81901         (rpl_localtime): New function.
81902
81903 2002-05-27  Jim Meyering  <meyering@lucent.com>
81904
81905         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81906         localtime.
81907
81908         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81909         use the replacement function; it wouldn't resolve at link time.
81910         Reported by Volker Borchert.
81911
81912 2002-05-22  Jim Meyering  <meyering@lucent.com>
81913
81914         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81915         file-type.h.
81916         * lib/file-type.h: New file.
81917         * lib/file-type.c (file_type): New file/function.  Extracted from
81918         diffutils.
81919
81920 2002-04-30  Jim Meyering  <meyering@lucent.com>
81921
81922         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81923
81924 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81925
81926         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81927
81928 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81929
81930         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81931         Do not check for alloca.h (no longer used) or stdbool.h (was never
81932         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81933
81934 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81935
81936         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81937
81938 2002-04-29  Jim Meyering  <meyering@lucent.com>
81939
81940         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81941         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81942         Use AC_FUNC_STRNLEN here instead.
81943
81944         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81945         With autoconf-2.53a, it's part of AC_PROG_CC.
81946
81947 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81948
81949         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81950         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81951
81952 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81953
81954         * lib/sig2str.h, lib/sig2str.c: New files.
81955         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81956
81957 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81958
81959         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81960         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81961         of 127, since 64 is the largest conceivable number for ancient
81962         nonstandard hosts.
81963         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81964
81965 2002-04-28  Jim Meyering  <meyering@lucent.com>
81966
81967         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81968
81969 2002-04-24  Jim Meyering  <meyering@lucent.com>
81970
81971         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81972         (jm_PREREQ): Use it.
81973
81974         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81975         mach/mach.h fcntl.h.
81976         Check for this function: setlocale.
81977
81978 2002-04-24  Jim Meyering  <meyering@lucent.com>
81979
81980         * lib/gettext.h: New file, from Gettext.
81981         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81982         (libfetish_a_SOURCES): Add gettext.h.
81983
81984 2002-04-16  Jim Meyering  <meyering@lucent.com>
81985
81986         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81987         ut_pid, ut_id, ut_exit.
81988
81989 2002-04-16  Jim Meyering  <meyering@lucent.com>
81990
81991         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81992         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81993         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81994
81995 2002-04-12  Jim Meyering  <meyering@lucent.com>
81996
81997         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81998         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81999         existence of the getmntinfo function.  Needed for Darwin 5.3.
82000
82001         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82002         This is necessary at least on Darwin 5.3.
82003
82004         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82005         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82006         strnlen.o in the library, and that makes some versions of ranlib
82007         object.
82008
82009 2002-04-12  Jim Meyering  <meyering@lucent.com>
82010
82011         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82012
82013 2002-04-09  Jim Meyering  <meyering@lucent.com>
82014
82015         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82016         to be more precise.  Rather than saying we're checking whether the
82017         function `works', say what we're testing.
82018         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82019         Reported by Bruno Haible.
82020
82021 2002-03-10  Jim Meyering  <meyering@lucent.com>
82022
82023         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82024         Suggestion from Santiago Vila.
82025
82026 2002-03-08  Jim Meyering  <meyering@lucent.com>
82027
82028         * lib/rename.c: Mention that this wrapper is needed also on
82029         mips-dec-ultrix4.4 systems.
82030
82031 2002-03-02  Jim Meyering  <meyering@lucent.com>
82032
82033         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82034         not HAVE_CLOCK_SETTIME.
82035
82036 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82037
82038         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82039         Check for clock_settime.
82040
82041 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82042
82043         * lib/nanosleep.h: Rename to....
82044         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82045
82046         * lib/gettime.c: New file.
82047         * lib/settime.c: New file.
82048         * lib/stime.c: Remove.
82049
82050         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82051         timespec.h.  Remove nanosleep.h.
82052
82053 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82054
82055         * m4/acl.m4: New file.
82056         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82057         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82058
82059 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82060
82061         * lib/acl.c, lib/acl.h: New files.
82062         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82063
82064 2002-02-24  Jim Meyering  <meyering@lucent.com>
82065
82066         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82067         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82068         cause trouble.  Reported by Nelson Beebe.
82069
82070 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82071
82072         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82073         compilers that don't know that xalloc_die never returns.
82074
82075 2002-02-20  Jim Meyering  <meyering@lucent.com>
82076
82077         * lib/getdate.c: Regenerate using bison-1.33.
82078
82079 2002-02-17  Jim Meyering  <meyering@lucent.com>
82080
82081         * config/config.guess (main): Don't use `head -1'; it's no longer
82082         portable. Use `sed 1q' instead.
82083
82084 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82085
82086         * m4/codeset.m4: Upgrade to gettext-0.11.
82087         * m4/gettext.m4: Upgrade to gettext-0.11.
82088         * m4/glibc21.m4: Upgrade to gettext-0.11.
82089         * m4/iconv.m4: Upgrade to gettext-0.11.
82090         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82091         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82092         * m4/lib-ld.m4: New file, from gettext-0.11.
82093         * m4/lib-link.m4: New file, from gettext-0.11.
82094         * m4/lib-prefix.m4: New file, from gettext-0.11.
82095         * m4/progtest.m4: Upgrade to gettext-0.11.
82096
82097 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82098
82099         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82100         (jm_PREREQ): Use it.
82101
82102 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82103
82104         * lib/posixver.c, lib/posixver.h: New files.
82105         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82106
82107 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82108             Bruno Haible  <bruno@clisp.org>
82109
82110         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82111         (fwrite_success_callback): New declaration.
82112         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82113         print_unicode_char. Call failure callback instead of error.
82114         (fwrite_success_callback): New function.
82115         (exit_failure_callback): New function.
82116         (fallback_failure_callback): New function.
82117         (print_unicode_char): Call unicode_to_mb.
82118
82119 2002-01-26  Jim Meyering  <meyering@lucent.com>
82120
82121         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82122         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82123
82124 2002-01-26  Jim Meyering  <meyering@lucent.com>
82125
82126         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82127
82128 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82129
82130         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82131
82132 2002-01-22  Jim Meyering  <meyering@lucent.com>
82133
82134         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82135         Otherwise, some versions of automake would omit the rule that makes
82136         Makefile from Makefile.in.
82137
82138 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82139
82140         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82141         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82142         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82143         (memcoll): Set errno to zero if there is no error.
82144
82145         * lib/quotearg.c (quotearg_buffer_restyled):
82146         Fix bug with quoting buffers containing NUL when backslashing escapes.
82147         This bug was exposed by the other changes in this patch.
82148         (quotearg_n_options): New arg ARGSIZE.
82149         All callers changed.
82150         (quoting_options_from_style): New function.
82151         (quotearg_n_style): Use it.
82152         (quotearg_n_style_mem): New function.
82153
82154         * lib/quotearg.h (quotearg_n_style_mem): New function.
82155
82156 2002-01-19  Jim Meyering  <meyering@lucent.com>
82157
82158         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82159         Remove useless quotes: DF_PROG="df".
82160         * m4/strnlen.m4: New file.
82161
82162 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82163
82164         * lib/backupfile.c (ISDIGIT): Comment fix.
82165         * lib/getdate.y (ISDIGIT): Likewise.
82166         * lib/posixtm.c (ISDIGIT, year): Likewise.
82167         * lib/strverscmp.c (ISDIGIT): Likewise.
82168         * lib/userspec.c (ISDIGIT): Likewise.
82169
82170 2002-01-16  Jim Meyering  <meyering@lucent.com>
82171
82172         * lib/getdate.y: Add three semicolons, each just before a closing
82173         brace. Bison (as of version 1.31) no longer papers over that mistake.
82174
82175 2002-01-05  Jim Meyering  <meyering@lucent.com>
82176
82177         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82178
82179 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82180
82181         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82182         not silently exit merely because the output buffer happens to
82183         have nothing pending.
82184
82185 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82186
82187         See the big note in ../ChangeLog.
82188         * lib/human.c (suffixes): Prefer K to k for 1024.
82189         (generate_suffix_backwards): New function.
82190         (human_readable_inexact): Use it.
82191         * lib/xstrtol.c (__xstrtol): If there is no number but there
82192         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82193         Accept 'K' as well as 'k'.
82194
82195 2001-12-15  Jim Meyering  <meyering@lucent.com>
82196
82197         * lib/regex.h (__restrict_arr): Update from libc.
82198
82199         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82200         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82201         (STREQ): Define.
82202
82203 2001-12-14  Jim Meyering  <meyering@lucent.com>
82204
82205         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82206         Suggestion from Bruno Haible.
82207
82208 2001-12-10  Jim Meyering  <meyering@lucent.com>
82209
82210         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82211         xrealloc, Instead, include "xalloc.h".
82212         (initbuffer): Don't cast xmalloc return value to char*.
82213         (readline): Reword comment.
82214         Don't cast xrealloc return value to char*
82215         Return NULL, not 0.
82216
82217 2001-12-09  Jim Meyering  <meyering@lucent.com>
82218
82219         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82220         about `signed and unsigned type in conditional expression'.
82221         * lib/posixtm.c (posix_time_parse): Likewise.
82222
82223         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82224
82225         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82226         to avoid a pedantic warning.
82227
82228         * lib/getstr.c: Don't include assert.h.
82229         (getstr): Remove warning-evoking assertions.
82230         Return -1 if offset parameter is out of bounds.
82231         Change the type of a local from int to size_t.
82232
82233         * lib/strftime.c (my_strftime_localtime_r): Include this function
82234         definition in the `#if ! HAVE_TM_GMTOFF' block.
82235
82236         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82237         Include xalloc.h instead.
82238
82239 2001-12-02  Jim Meyering  <meyering@lucent.com>
82240
82241         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82242         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82243         included.
82244
82245         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82246         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82247
82248 2001-11-30  Akim Demaille  <akim@epita.fr>
82249
82250         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82251         before being defined.
82252
82253 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82254
82255         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82256         First arg is int, not unsigned.
82257         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82258         (SIZE_MAX, UINT_MAX): New macros.
82259         (quotearg_n_options): Abort if N is negative.
82260         Avoid overflow check on hosts where size_t is 64 bits and int
82261         is 32 bits, as overflow is impossible there.
82262         Fix off-by-one typo that caused unnecessary reallocation.
82263
82264 2001-11-27  Jim Meyering  <meyering@lucent.com>
82265
82266         * lib/tempname.c: Merge with version from libc.
82267         * lib/regex.c: Likewise.
82268
82269         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82270         systems for which STDC_HEADERS is 0, it was not included, resulting in
82271         a warning about an integer-to-pointer conversion problem with getenv.
82272         Reported by Volker Borchert.
82273
82274 2001-11-26  Jim Meyering  <meyering@lucent.com>
82275
82276         * lib/gtod.h: Remove file.
82277         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82278         * lib/gettimeofday.c: Don't include gtod.h.
82279         (GTOD_init): Remove function.
82280         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82281         Suggestion from Volker Borchert.
82282
82283 2001-11-23  Jim Meyering  <meyering@lucent.com>
82284
82285         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82286         it.
82287         * lib/hash.c (struct hash_table): Define it here instead.
82288
82289 2001-11-22  Jim Meyering  <meyering@lucent.com>
82290
82291         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82292
82293 2001-11-20  Jim Meyering  <meyering@lucent.com>
82294
82295         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82296         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82297
82298 2001-11-19  Jim Meyering  <meyering@lucent.com>
82299
82300         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82301         directory.  Use "conftestXXXXXX" as the template.
82302         Suggestion from Paul Eggert.
82303
82304         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82305         immediately, so the test doesn't mistakenly hit the max-open-files
82306         limit.
82307
82308 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82309
82310         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82311         (TEMPORARIES): New macro.
82312         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82313         removes an artificial limitation (e.g. HP-UX 10.20, where
82314         TMP_MAX is 17576).
82315
82316 2001-11-18  Jim Meyering  <meyering@lucent.com>
82317
82318         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82319
82320 2001-11-18  Jim Meyering  <meyering@lucent.com>
82321
82322         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82323         on SunOS 4.
82324
82325         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82326         files will be created before anything else.
82327
82328 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82329
82330         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82331         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82332
82333 2001-11-17  Jim Meyering  <meyering@lucent.com>
82334
82335         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82336         Prompted by a report from Bob Proulx.
82337
82338         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82339         Instead, require UTILS_FUNC_MKSTEMP.
82340
82341 2001-11-17  Jim Meyering  <meyering@lucent.com>
82342
82343         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82344         Now, that's done as part of AC_FUNC_STRTOD.
82345
82346 2001-11-17  Jim Meyering  <meyering@lucent.com>
82347
82348         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82349         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82350         rather than group writable.  Patch by Juan F. Codagnone.
82351
82352         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82353         xrealloc, Instead, include "xalloc.h".
82354
82355         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82356         Remove explicit declarations of xmalloc, xrealloc,
82357         and xstrdup.  Instead, include "xalloc.h".
82358
82359         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82360         unlocked-io.h.
82361         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82362         Likewise.
82363         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82364
82365         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82366         Reported by Padraig Brady.
82367
82368         * lib/mkstemp.c: #undef mkstemp.
82369         Include config.h.
82370         (rpl_mkstemp): Rename from mkstemp.
82371         Protoize.
82372
82373 2001-11-16  Jim Meyering  <meyering@lucent.com>
82374
82375         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82376         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82377         determine the amount of total physical memory, use pstat_getstatic.
82378         HPUX-11 doesn't define _SC_PHYS_PAGES.
82379         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82380         If sysconf couldn't be used to determine the amount of available
82381         physical memory, use both pstat_getstatic and pstat_getdynamic.
82382         Based on a patch from Bob Proulx.
82383
82384 2001-11-10  Jim Meyering  <meyering@lucent.com>
82385
82386         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82387         (jm_PREREQ): Use it.
82388
82389 2001-11-09  Jim Meyering  <meyering@lucent.com>
82390
82391         * m4/jm-macros.m4: Require autoconf-2.52f.
82392         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82393         Use these AC_-prefixed names, not the AM_-prefixed ones.
82394
82395         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82396
82397 2001-11-05  Jim Meyering  <meyering@lucent.com>
82398
82399         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82400
82401 2001-11-04  Jim Meyering  <meyering@lucent.com>
82402
82403         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82404         $DEFS.
82405
82406 2001-11-03  Jim Meyering  <meyering@lucent.com>
82407
82408         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82409         of AC_DEFUN.
82410
82411         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82412         know the name of the variable in the macro definition.
82413
82414 2001-11-03  Jim Meyering  <meyering@lucent.com>
82415
82416         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82417         in argmatch_to_argument call.
82418
82419         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82420         argument.
82421
82422         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82423         e.g., a fault due to an attempt to free a NULL pointer.
82424
82425 2001-11-01  Jim Meyering  <meyering@lucent.com>
82426
82427         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82428         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82429
82430 2001-11-01  Jim Meyering  <meyering@lucent.com>
82431
82432         * lib/dirfd.c, lib/dirfd.h: New files.
82433         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82434
82435         * lib/hash.c (hash_print) [TESTING]: Clean up.
82436
82437 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82438
82439         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82440         to avoid a warning if -Wall.
82441
82442 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82443
82444         * README: New file
82445         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82446         (per RMS's instructions, this is now the canonical source)
82447         * lgpl/, gpl/: New directories.
82448
82449 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82450
82451         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82452
82453 2001-10-21  Jim Meyering  <meyering@lucent.com>
82454
82455         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82456         this code would end up calling gettext even in packages built
82457         with --disable-nls.
82458         * lib/getopt.c (_): Likewise.
82459         * lib/regex.c (_): Likewise.
82460
82461 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82462
82463         * m4/error.m4 (jm_PREREQ_ERROR):
82464         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82465         AC_FUNC_STRERROR_R does that.
82466         Check for strerror declaration.
82467
82468         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82469         are supposed to have them these days.
82470         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82471         Merge changes from latest Autoconf CVS.
82472         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82473         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82474         POSIX decided to standardize on the int flavor of strerror_r.
82475
82476 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82477
82478         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82479         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82480         Use strerror_r that is only a macro, even if it is not a function.
82481         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82482         (private_strerror): Use prototypes, not old-style function definition.
82483         (print_errno_message): New function.
82484         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82485         char*-flavored one.
82486         (error_tail, error, error_at_line): Use it.
82487
82488 2001-10-11  Jim Meyering  <meyering@lucent.com>
82489
82490         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82491         and quote_n (1, ... to avoid clobbering a buffer.
82492
82493 2001-10-05  Jim Meyering  <meyering@lucent.com>
82494
82495         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82496         hash-pjw.h.
82497         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82498         * lib/hash-pjw.h: New file.
82499
82500 2001-09-30  Jim Meyering  <meyering@lucent.com>
82501
82502         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82503         `struct fsstat' has the `f_fstypename' member.
82504         Use that to define FS_TYPE, which is now used to make
82505         the getfsstat link test tighter.
82506
82507 2001-09-30  Jim Meyering  <meyering@lucent.com>
82508
82509         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82510         Include <sys/ucred.h>, for Apple Darwin.
82511         Include sys/mount.h and sys/fs_types.h only if available.
82512         (FS_TYPE): Define.
82513         (read_filesystem_list): Use FS_TYPE.
82514
82515 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82516
82517         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82518         a boolean context.
82519
82520 2001-09-29  Jim Meyering  <meyering@lucent.com>
82521
82522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82523         [one-argument getmntent function]): Include stdio.h before mntent.h.
82524         SunOS 4.1.x needs it for the declaration of `FILE'.
82525         Patch by Volker Borchert.
82526
82527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82528         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82529         sys/fs_types.h, and make the link-test for getfsstat guard #include
82530         directives with appropriate #if HAVE_*_H tests so that we can
82531         detect getfsstat on Apple Darwin1.3.7 systems.
82532         Reported by Nelson Beebe.
82533         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82534
82535 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82536
82537         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82538         #defines strtoimax.  Also treat the other strto* functions
82539         like strtoimax.
82540
82541         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82542         Check for strtoul and strtoumax,
82543         as those declarations are made even in the signed case.
82544         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82545         Likewise, for strtol and strtoimax.
82546
82547 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82548
82549         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82550         #defines strtoimax.  Also treat the other strto* functions
82551         like strtoimax.
82552
82553         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82554         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82555         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82556
82557 2001-09-26  Jim Meyering  <meyering@lucent.com>
82558
82559         Most macros in unlocked-io.h had the wrong number of arguments.
82560         * lib/gen-uio: New script.
82561         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82562         * lib/unlocked-io.hin: Remove file.
82563         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82564         rather than trying to embed it here.
82565         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82566         Reported by Padraig Brady.
82567
82568 2001-09-25  Volker Borchert  <bt@teknon.de>
82569
82570         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82571         `result'.
82572
82573 2001-09-24  Jim Meyering  <meyering@lucent.com>
82574
82575         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82576
82577 2001-09-23  Jim Meyering  <meyering@lucent.com>
82578
82579         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82580         instead of the mere test for existence of mntent.h.  The latter
82581         would get a false-positive on AIX 3.4 systems.
82582         In the outer getmntent if-block, don't die if neither of the getmntent
82583         tests succeeds.  Instead, just fall through and continue with the
82584         remaining tests.
82585
82586 2001-09-23  Jim Meyering  <meyering@lucent.com>
82587
82588         * lib/mountlist.c: Remove useless parentheses in #if directives.
82589         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82590         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82591
82592 2001-09-22  Jim Meyering  <meyering@lucent.com>
82593
82594         * m4/gettext.m4: New file.  From gettext.
82595         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82596         * m4/progtest.m4: Likewise
82597         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82598         * m4/glibc21.m4: Likewise.
82599
82600         * m4/libintl.m4: Remove.  No longer used.
82601
82602 2001-09-22  Jim Meyering  <meyering@lucent.com>
82603
82604         * lib/localcharset.c: Update from latest gettext.
82605         * lib/config.charset: Likewise.
82606
82607 2001-09-20  Jim Meyering  <meyering@lucent.com>
82608
82609         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82610         strtoimax.
82611         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82612         strtoumax.
82613
82614 2001-09-20  Jim Meyering  <meyering@lucent.com>
82615
82616         * lib/xstrtol.c (strtoimax): Guard declaration with
82617         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82618         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82619         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82620         (strtoumax): Likewise, for completeness (it wasn't necessary).
82621
82622 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82623
82624         * lib/strtoimax.c (HAVE_LONG_LONG):
82625         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82626         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82627         to work around bug in IBM C compiler.
82628
82629 2001-09-17  Jim Meyering  <meyering@lucent.com>
82630
82631         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82632         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82633         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82634         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82635         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82636         whenever the right hand side need not be expanded by the shell.
82637
82638 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82639
82640         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82641         library.  It's not correct, as some older glibcs are buggy.
82642         fnmatch wasn't fixed until glibc 2.2.
82643
82644         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82645         special shell magic here.
82646
82647 2001-09-16  Jim Meyering  <meyering@lucent.com>
82648
82649         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82650         * m4/jm-macros.m4: Require it.
82651
82652 2001-09-16  Jim Meyering  <meyering@lucent.com>
82653
82654         * lib/mkdir.c: New file.
82655
82656 2001-09-15  Jim Meyering  <meyering@lucent.com>
82657
82658         * m4/jm-macros.m4: Check for help2man.
82659
82660 2001-09-11  Jim Meyering  <meyering@lucent.com>
82661
82662         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82663         The body, by Paul Eggert, was moved here from configure.in.
82664         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82665
82666 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82667
82668         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82669         (jm_PREREQ): Use it.
82670
82671 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82672
82673         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82674         Use ssize_t, not int, to store result of readlink.
82675         Check for ssize_t overflow as well as size_t overflow,
82676         as POSIX says the result of readlink is implementation-defined
82677         when ssize_t overflows.
82678         Remove unnecessary cast to char*.
82679         Use free+malloc instead of realloc, as the storage doesn't need
82680         to be preserved and it's clearer and can be more efficient that way.
82681         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82682         * lib/xreadlink.h (xreadlink): Update prototype.
82683
82684 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82685
82686         * lib/xgetcwd.c: Revert some of the previous change; intead,
82687         fix the HAVE_GETCWD_NULL code to behave more like the
82688         !HAVE_GETCWD_NULL code used to.
82689
82690         Include "xalloc.h".
82691         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82692         invoke xalloc_die.
82693
82694 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82695
82696         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82697         sys/param.h, as pathmax.h includes them.
82698
82699 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82700
82701         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82702         (jm_PREREQ_XGETCWD): New macro.
82703
82704         * m4/getcwd.m4: New file.
82705
82706 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82707
82708         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82709         like the HAVE_GETCWD_NULL code.
82710         Include pathmax.h if not HAVE_GETCWD.
82711         Do not include xalloc.h.
82712         (INITIAL_BUFFER_SIZE): New symbol.
82713         Do not use xmalloc / xrealloc, since the caller is responsible for
82714         handling errors.  Preserve errno around `free' during failure.
82715         Do not overrun buffer when using getwd.
82716
82717 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82718
82719         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82720         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82721         getcwd (NULL, 0).
82722
82723 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82724
82725         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82726         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82727         spotted by Jim Meyering.
82728
82729 2001-09-03  Jim Meyering  <meyering@lucent.com>
82730
82731         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82732         failure.
82733
82734 2001-09-02  Jim Meyering  <meyering@lucent.com>
82735
82736         * lib/error.c: Update from GNU libc.
82737
82738 2001-09-01  Jim Meyering  <meyering@lucent.com>
82739
82740         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82741         Used by df.
82742
82743 2001-09-01  Jim Meyering  <meyering@lucent.com>
82744
82745         * lib/xreadlink.c: New file.
82746         * lib/xreadlink.h: New file.
82747         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82748         xreadlink.h.
82749
82750         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82751         doesn't conflict with sparc Solaris 7's definition in
82752         /usr/include/sys/int_types.h.
82753
82754         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82755         files.
82756         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82757         and strncasecmp as r-values.  Unixware didn't have declarations.
82758
82759 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82760
82761         * lib/xstrtol.h: Add copyright notice.
82762         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82763         LONGINT_INVALID_SUFFIX_CHAR.
82764
82765 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82766
82767         * lib/xstrtol.c (strtoimax): New decl.
82768
82769 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82770
82771         * lib/xgetcwd.c: Don't include pathmax.h.
82772         Include stdlib.h and unistd.h if available.
82773         Include xalloc.h.
82774         (xmalloc, xstrdup, free): Remove decls.
82775         (xgetcwd): Don't assume sizes fit in unsigned.
82776         Check for overflow when computing sizes.
82777         Simplify reallocation code.
82778
82779 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82780
82781         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82782         a directory's st_size can have an arbitrary value, so the old
82783         usage could waste an arbitrary amount of memory.  All uses
82784         changed.
82785         * lib/savedir.h: Update prototype.
82786
82787 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82788
82789         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82790
82791         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82792         old strtoimax.c.
82793
82794         Also, make the following further changes to make this file's
82795         configuration more similar to that of strtol.c:
82796         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82797         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82798         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82799         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82800         changed to signed values.
82801
82802         And make the following changes as well:
82803         Fix copyright notice, as 1999 was missing.
82804         (verify): New macro.
82805         (strtoimax): Check sizes at compile-time, not run-time.
82806         Prefer strtol to strtoll if both work.
82807         (main): Remove; it was not that useful and was a pain to maintain.
82808
82809         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82810
82811 2001-08-31  Jim Meyering  <meyering@lucent.com>
82812
82813         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82814         Use an initial, malloc'd, buffer of length 128 rather than
82815         a statically allocated one of length 1024.
82816
82817 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82818
82819         Simplify code, partly by assuming autoconf 2.52 semantics.
82820
82821         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82822
82823         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82824         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82825         All uses removed.
82826         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82827         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82828         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82829         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82830         jm_AC_HEADER_INTTYPES_H.
82831         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82832
82833         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82834
82835         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82836         Quote first arg of AC_DEFUN.
82837         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82838         since they are needed to parse the include file even if we need
82839         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82840         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82841         but with opposite signedness.
82842
82843 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82844
82845         Merge 'exclude' changes from tar 1.13.22.
82846         This fixes one or two unlikely storage allocation overflow bugs,
82847         but doesn't change user-visible behavior otherwise.
82848
82849 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82850
82851         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82852         (jm_PREREQ_EXCLUDE): New macro.
82853
82854 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82855
82856         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82857         tm to be declared.
82858
82859 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82860
82861         * lib/hash.c: Remove '2001' from copyright notice.
82862
82863 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82864
82865         * lib/full-write.h: New file.
82866         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82867         * lib/full-write.c: Correct credits, as cccp.c no longer
82868         exists and anyway it was so heavily changed from the old cccp
82869         code as to be unrecognizable.  Include full-write.h.
82870         (full_write): Return size_t, with short writes meaning failure.
82871         All callers changed.  This fixes a bug with large buffers
82872         on 64-bit hosts.
82873         * lib/utime.c: Include full-write.h.
82874
82875 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82876
82877         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82878         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82879         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82880         Include if available.
82881         (<xalloc.h>): Include
82882         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82883         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82884         collide with FNM macros.
82885         (struct patopts): New struct.
82886         (struct exclude): Use it, as exclude patterns now come with options.
82887         (new_exclude): Support above changes.
82888         (new_exclude, add_exclude_file):
82889         Initial size must now be a power of two to simplify overflow checking.
82890         (free_exclude, fnmatch_no_wildcards): New function.
82891         (excluded_filename): No longer requires options arg, as the options
82892         are determined by add_exclude.  Now returns bool, not int.
82893         (excluded_filename, add_exclude):
82894         Add support for the fancy new exclusion options.
82895         (add_exclude, add_exclude_file): Now takes int options arg.
82896         Check for arithmetic overflow when computing sizes.
82897         (add_exclude_file): xrealloc might modify errno, so don't
82898         realloc until after errno might be used.
82899
82900         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82901         New macros.
82902         (free_exclude): New decl.
82903         (add_exclude, add_exclude_file): Now takes int options arg.
82904         (excluded_filename): No longer requires options arg, as the options
82905         are determined by add_exclude.  Now returns bool, not int.
82906
82907 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82908
82909         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82910
82911 2001-08-27  Jim Meyering  <meyering@lucent.com>
82912
82913         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82914
82915         * lib/version-etc.c (N_): Remove definition.
82916         Revert most of last change.
82917         Instead, simply don't mark the `Copyright...' string for translation.
82918         Based on advice from Paul Eggert.
82919
82920         * lib/strtoxmax.c: Tweak comment.
82921
82922 2001-08-26  Jim Meyering  <meyering@lucent.com>
82923
82924         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82925
82926         * m4/xstrtoimax.m4: New file.
82927         * m4/xstrtoumax.m4: Add comments explaining why we
82928         AC_REPLACE_FUNCS(strtol).
82929
82930 2001-08-26  Jim Meyering  <meyering@lucent.com>
82931
82932         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82933         of copyright with `%s' so translators don't get an untranslated
82934         message in 2002.
82935         (COPYRIGHT_YEAR): Define.
82936         (version_etc): Use fprintf rather than fputs.
82937         Suggestion from Ulrich Drepper.
82938
82939         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82940
82941         * lib/strtoll.c: New file, from GNU libc.
82942         * lib/xstrtoimax.c: New file.
82943
82944         * lib/xstrtol.h: Add xstrtoimax.
82945         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82946         * lib/strtoimax.c: New file.  Likewise, but first define
82947         STRTOUXMAX_SIGNED.
82948
82949         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82950         ...
82951         * lib/strtoxmax.c: ... then renamed to this.
82952
82953 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82954
82955         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82956         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82957         (jm_AC_TYPE_INTMAX_T): New macro.
82958         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82959
82960         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82961
82962         * m4/longlong.m4: Renamed from ulonglong.m4.
82963         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82964         * m4/uintmax_t.m4: Removed.
82965
82966 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82967
82968         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82969         Port to Solaris 8, where 'sed' requires a space after the 'r'
82970         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82971         Redirect output to $tmp just once.
82972
82973 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82974
82975         * lib/addext.c (<errno.h>): Include.
82976         (errno): Declare if not defined.
82977         (addext): Work correctly when pathconf returns -1 and leaves
82978         errno alone because there is no limit.  Also, work even if
82979         pathconf returns a value greater than SIZE_MAX.
82980
82981 2001-08-12  Jim Meyering  <meyering@lucent.com>
82982
82983         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82984         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82985         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82986         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82987         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82988         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82989         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82990         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82991         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82992         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82993         utime.m4, utimes.m4, xstrtoumax.m4:
82994         Quote the first argument in each use of AC_DEFUN.
82995
82996 2001-08-12  Jim Meyering  <meyering@lucent.com>
82997
82998         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82999         Simply `return getcwd (NULL, 0);'.
83000         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83001         Use 1300 as initial value for length, not PATH_MAX.
83002
83003         * lib/pathmax.h: Clean up cpp syntax.
83004
83005 2001-08-12  Jim Meyering  <meyering@lucent.com>
83006
83007         * lib/gettimeofday.c: New file.
83008         * lib/gtod.h: New file.
83009         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83010
83011 2001-08-05  Jim Meyering  <meyering@lucent.com>
83012
83013         * m4/jm-macros.m4: Require autoconf-2.52.
83014
83015 2001-08-04  Jim Meyering  <meyering@lucent.com>
83016
83017         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83018         stmt, to get in sync with glibc.
83019
83020 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83021
83022         The following changes are from gettext 0.10.39 as maintained by
83023         Bruno Haible.
83024
83025         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83026         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83027         with inverted sense.  All uses changed.
83028
83029         * lib/mbswidth.c: Don't include <limits.h>.
83030         Include <stdlib.h> and <string.h> unconditionally.
83031         (iswcntrl, mbsinit, ISCNTRL): New macros.
83032         (mbsnwidth): Use K&R style function declarations.
83033         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83034         can optimize it when MB_CUR_MAX == 1.
83035         The width of control characters is zero, not 1.
83036
83037 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83038
83039         The following changes are from gettext 0.10.39 as maintained by
83040         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83041
83042         * m4/codeset.m4: Upgrade to serial AM1.
83043         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83044         all uses changed.  Quote first arg of AC_DEFUN.
83045         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83046
83047         * m4/iconv.m4: Upgrade to serial AM2.
83048         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83049         Add --with-libconv-prefix.
83050         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83051         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83052         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83053         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83054         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83055
83056         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83057         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83058         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83059         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83060         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83061         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83062         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83063         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83064         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83065
83066         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83067         string.h any more.
83068
83069         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83070         not the default value.
83071
83072         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83073         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83074         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83075         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83076         Also check for iswcntrl, used for wcwidth fallback.
83077         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83078         to Autoconf 2.13.
83079
83080 2001-08-03  Jim Meyering  <meyering@lucent.com>
83081
83082         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83083         as it was in the original.  Reported by Paul Eggert.
83084
83085 2001-07-16  Jim Meyering  <meyering@lucent.com>
83086
83087         * m4/gettimeofday.m4: New file.
83088         Prompted by a report from Bernhard Baehr.
83089
83090 2001-07-15  Jim Meyering  <meyering@lucent.com>
83091
83092         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83093         stuff. Now it's in ../Makefile.cfg.
83094
83095 2001-07-15  Jim Meyering  <meyering@lucent.com>
83096
83097         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83098         (BUILT_SOURCES): Add unlocked-io.h.
83099         (io_functions): Define.
83100         (unlocked-io.h): New rule.
83101         (DISTCLEANFILES): Add unlocked-io.h.
83102         (all-local): Depend on unlocked-io.h, to ensure it is created.
83103
83104         * lib/unlocked-io.hin: New file
83105
83106         * lib/regex.c: Update from glibc.
83107
83108 2001-07-05  Jim Meyering  <meyering@lucent.com>
83109
83110         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83111         recommendation.
83112         (libfetish_a_SOURCES): Put all .h files here instead.
83113         Remove a thus-exposed (better checks in automake) duplicate and
83114         two unnecessary .h files.
83115
83116 2001-07-04  Jim Meyering  <meyering@lucent.com>
83117
83118         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83119         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83120         distcheck failure.
83121
83122 2001-07-02  Jim Meyering  <meyering@lucent.com>
83123
83124         The following changes were prompted by suggestions from Bruno Haible.
83125
83126         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83127         is now generated.
83128         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83129         definition of EXTRA_DIST.
83130         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83131         ensure that the generated file is created/updated whenever the list
83132         of $(unlocked_functions) is changed.
83133         (jm-glibc-io.m4): New rule.
83134         (unlocked-io.h): New rule -- currently unused.
83135
83136 2001-06-24  Jim Meyering  <meyering@lucent.com>
83137
83138         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83139         unmatched right bracket, rather than kludging it with an extra,
83140         falsely-matching quote in a comment.  Patch by Akim Demaille.
83141
83142 2001-06-11  Jim Meyering  <meyering@lucent.com>
83143
83144         * lib/regex.c: Update from GNU libc.
83145
83146 2001-05-27  Jim Meyering  <meyering@lucent.com>
83147
83148         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83149         Check for ut_type in struct utmp.
83150
83151 2001-05-27  Jim Meyering  <meyering@lucent.com>
83152
83153         * lib/readutmp.h (UT_TYPE): Define.
83154
83155 2001-05-24  Jim Meyering  <meyering@lucent.com>
83156
83157         * lib/argmatch.c: Include "quote.h".
83158         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83159         quote function.  Reported by Göran Uddeborg.
83160
83161 2001-05-22  Jim Meyering  <meyering@lucent.com>
83162
83163         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83164         now that we use the package-supplied version unconditionally.
83165         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83166
83167 2001-05-21  Jim Meyering  <meyering@lucent.com>
83168
83169         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83170         shell syntax errors.
83171
83172 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83173
83174         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83175
83176 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83177
83178         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83179         Don't bother to check library strftime, since
83180         we'll be using our own my_strftime function anyway.
83181         Define my_strftime instead of strftime.
83182
83183 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83184
83185         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83186         which is not yet declared.
83187
83188 2001-05-15  Jim Meyering  <meyering@lucent.com>
83189
83190         * m4/regex.m4: Use proper quoting so brackets appear in the test
83191         program.
83192         Reported by, and with help from, Bruno Haible.
83193
83194 2001-05-13  Jim Meyering  <meyering@lucent.com>
83195
83196         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83197         undefined.
83198
83199 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83200
83201         dirname code cleanup.  base_name now behaves more compatibly
83202         with POSIX basename when given file names that have trailing
83203         slashes, and similarly for dir_name.  Add new primitives
83204         base_len and dir_len.  Put the directory-name-related decls
83205         into dirname.h.
83206
83207         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83208         * lib/backupfile.c (base_name): Likewise.
83209         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83210         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83211         * lib/makepath.c (strip_trailing_slashes): Likewise.
83212         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83213         ISSLASH): Likewise.
83214         * lib/rename.c (strip_trailing_slashes): Likewise.
83215         * lib/same.c (base_name): Likewise.
83216         * lib/stripslash.c (ISSLASH): Likewise.
83217
83218         * lib/addext.c: Include <dirname.h> after size_t is defined.
83219         * lib/backupfile.c: Likewise.
83220
83221         * lib/addext.c (addext): Use base_len to trim redundant
83222         trailing slashes instead of doing it ourselves.
83223         But do not trim the last slash if it is not redundant.
83224
83225         * lib/backupfile.c (find_backup_file_name,
83226         max_backup_version): Use base_len instead of rolling it ourselves.
83227         Handle the case of "" and (on DOS) "C:" correctly.
83228
83229         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83230         needed. Include <string.h>, <dirname.h>.
83231         (base_name): Allow file names ending in slashes, other than names
83232         that are all slashes.  In this case, return the basename followed
83233         by the slashes.  This is more general, and can be used in places
83234         where the original base_name purposely had an assertion failure.
83235         (base_len): New function.
83236
83237         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83238         Do not include <assert.h>; no longer needed.
83239         Include xalloc.h.
83240         (memrchr): Remove decl.
83241         (dir_name_r): Remove.
83242         (dir_len): Renamed from dirlen.  All callers changed.
83243         Rewrite in terms of base_name, for simplicity and consistency.
83244         (dir_name): Never return NULL.  All callers changed.
83245         Do not include <stdlib.h> in test program; no longer needed.
83246         return 0; is fine for test program.
83247
83248         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83249         New macros.
83250         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83251
83252         * lib/path-concat.c (path_concat): Use base_len to compute
83253         base length, not strlen; this means we cannot rely on memcpy
83254         to null-terminate.
83255
83256         * lib/same.c (STREQ): Remove.
83257         (same_name): Handle the case where the basename ends in trailing '/'.
83258
83259         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83260         a slash was stripped.  Do not strip the last slash after a
83261         file system prefix.
83262
83263 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83264
83265         * lib/Makefile.am (libfetish_a_SOURCES):
83266         Add strftime.c, since we now compile it on all hosts.
83267
83268         * lib/strftime.c (my_strftime):
83269         Define to nstrftime if emacs, but only if my_strftime is not defined.
83270         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83271         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83272         Add one more extra argument: a nanoseconds value.
83273         All uses changed.
83274         (ns): New macro.
83275         (my_strftime function): Add %N format.
83276         (emacs_strftimeu): Renamed from emacs_strftime,
83277         with extra ut argument.
83278
83279 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83280
83281         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83282
83283 2001-04-21  Jim Meyering  <meyering@lucent.com>
83284
83285         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83286         doesn't interfere.
83287
83288 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83289
83290         * m4/ftruncate.m4: Check for chsize.
83291         Link with ftruncate.o unconditionally if ftruncate is missing.
83292         This was required when cross-compiling to i586-mingw32msvc.
83293
83294 2001-04-08  Jim Meyering  <meyering@lucent.com>
83295
83296         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83297         recomputed; that's necessary when the offset spans a DST transition.
83298         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83299
83300 2001-04-02  Jim Meyering  <meyering@lucent.com>
83301
83302         * lib/regex.h, regex.c: Update from GNU libc.
83303
83304 2001-03-24  Jim Meyering  <meyering@lucent.com>
83305
83306         * m4/jm-macros.m4: Require autoconf-2.49d.
83307
83308 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83309
83310         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83311
83312 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83313
83314         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83315
83316 2001-03-17  Jim Meyering  <meyering@lucent.com>
83317
83318         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83319         now that the version in autoconf is equivalent.
83320         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83321
83322         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83323         Suggestion from Akim Demaille.
83324
83325         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83326         (jm_PREREQ_TEMPNAME): New function.
83327
83328 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83329
83330         * lib/tempname.c (uint64_t): Define to uintmax_t if
83331         not defined, and if UINT64_MAX is not defined.
83332         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83333         Reported by John David Anglin.
83334
83335 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83336
83337         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83338         resolve alias if codeset is empty.
83339         * lib/config.charset (BeOS): Use wildcard syntax.
83340
83341 2001-03-13  Jim Meyering  <meyering@lucent.com>
83342
83343         * lib/path-concat.c (path_concat)
83344         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83345         concatenating e.g., `C:' and `foo'.
83346         From Bruno Haible.
83347
83348 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83349
83350         * lib/localcharset.c (locale_charset): Don't use
83351         setlocale(LC_CTYPE,NULL). Don't return NULL.
83352         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83353
83354 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83355
83356         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83357         support for DOS/DJGPP.
83358
83359 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83360
83361         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83362         lacks mkstemp.  Compile our own tempname.c if we compile our own
83363         mkstemp.c, as mkstemp relies on tempname.
83364
83365 2001-03-01  Jim Meyering  <meyering@lucent.com>
83366
83367         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83368         AH_VERBATIM really does output its argument verbatim.
83369
83370 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83371
83372         * lib/Makefile.am (libfetish_a_SOURCES):
83373         Add dup-safer.c, fopen-safer.c.
83374         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83375
83376         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83377         * lib/unistd-safer.h: New files.
83378
83379 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83380
83381         The mkstemp replacement is taken from glibc 2.2.2, with some
83382         portability fixes for use outside glibc, as follows:
83383
83384         * lib/tempname.c (struct_stat64): New macro.
83385         (direxists, __gen_tempname): Use it.
83386         This avoids a portability problem with Solaris 8.
83387
83388         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83389         (<stddef.h>, <stdint.h>, <string.h>):
83390         Include only if STDC_HEADERS || _LIBC.
83391         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83392         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83393         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83394         (__set_errno): Define this macro if <errno.h> doesn't.
83395         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83396         Define these macros if <stdio.h> doesn't.
83397         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83398         Define these macros if <sys/stat.h>
83399         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83400         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83401         __xstat64): Define if not _LIBC.
83402         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83403         (__gen_tempname): Invoke gettimeofday only if
83404         HAVE_GETTIMEOFDAY || _LIBC;
83405         otherwise, fall back on plain "time".
83406         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83407
83408         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83409
83410         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83411
83412 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83413
83414         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83415
83416 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83417
83418         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83419         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83420         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83421         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83422
83423 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83424
83425         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83426         Remove workaround macros for hosts that have mbrtowc but not
83427         mbstate_t, as we now insist on proper declarations for both
83428         before using mbrtowc.
83429
83430 2001-02-17  Jim Meyering  <meyering@lucent.com>
83431
83432         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83433         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83434         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83435         UnixWare 7.1.1.
83436
83437         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83438         rather than AC_CACHE_VAL.
83439
83440 2001-02-17  Jim Meyering  <meyering@lucent.com>
83441
83442         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83443         around included file name.
83444
83445         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83446
83447         * lib/strftime.c: Update from GNU libc (the only changes were to
83448         comments).
83449
83450 2001-02-17  Jim Meyering  <meyering@lucent.com>
83451
83452         * lib/regex.c: Update from libc.
83453
83454 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83455
83456         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83457         clash.
83458
83459 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83460
83461         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83462         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83463         Reported by Mark Hounschell via Paul Eggert.
83464
83465 2001-02-07  Jim Meyering  <meyering@lucent.com>
83466
83467         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83468
83469 2001-02-05  Jim Meyering  <meyering@lucent.com>
83470
83471         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83472         it includes the patch required for `large file' support with at least
83473         HP-UX's 10.20 /bin/cc.
83474
83475 2001-02-03  Jim Meyering  <meyering@lucent.com>
83476
83477         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83478         AS_IF, now that it works once again (mysteriously).
83479         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83480
83481 2001-01-30  Jim Meyering  <meyering@lucent.com>
83482
83483         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83484         * m4/chown.m4: Rename conftestchown to conftest.chown.
83485         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83486         s/conftestdir2/conftest.d2/.
83487         * m4/utimes.m4: s/conftestdata/conftest.data/
83488         Inspired by Pavel Roskin's change in autoconf.
83489
83490 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83491
83492         * lib/config.charset: Update for FreeBSD 4.2.
83493
83494 2001-01-27  Jim Meyering  <meyering@lucent.com>
83495
83496         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83497         a use of AS_IF.
83498         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83499
83500 2001-01-26  Jim Meyering  <meyering@lucent.com>
83501
83502         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83503         quotearg.c includes it.
83504
83505 2001-01-26  Jim Meyering  <meyering@lucent.com>
83506
83507         * lib/quotearg.c: Include stddef.h.
83508         * lib/quote.c: Include stddef.h.
83509         Reported by Axel Kittenberger.
83510
83511         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83512         line in double quotes so that it evokes a better diagnostic.
83513         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83514         Reported by Axel Kittenberger.
83515
83516 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83517
83518         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83519         as if it was a `charset'.
83520
83521 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83522
83523         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83524         has const.
83525
83526 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83527
83528         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83529         to avoid a warning.  Add back 'const' to inptr.
83530
83531 2001-01-20  Jim Meyering  <meyering@lucent.com>
83532
83533         Be sure that headers are checked before used in code compiled
83534         for the type checks.
83535         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83536         In place of that, invoke jm_CHECK_ALL_TYPES.
83537         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83538         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83539         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83540         The check for ssize_t was mistakenly run before the test for unistd.h.
83541
83542         The configure-time check for stdbool.h was missing.
83543         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83544         (jm_PREREQ_HASH): New function.
83545
83546 2001-01-17  Jim Meyering  <meyering@lucent.com>
83547
83548         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83549         for autoconf-2.49c.
83550         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83551
83552 2001-01-16  Jim Meyering  <meyering@lucent.com>
83553
83554         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83555         From Bruno Haible.
83556
83557 2001-01-14  Jim Meyering  <meyering@lucent.com>
83558
83559         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83560         foo and bar.  Create conftestdir/ in the script, not in the C code.
83561         Remove directories in the script, not in the C code.
83562         Remove conftestdir{,2} before trying to create the directory.
83563         Make the entire configure script fail if the mkdir fails.
83564
83565 2001-01-14  Jim Meyering  <meyering@lucent.com>
83566
83567         * lib/rename.c: New file.  From Volker Borchert.
83568         Include stdlib.h, string.h or strings.h, and xalloc.h.
83569         Use strip_trailing_slashes rather than open-coding it.
83570
83571 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83572
83573         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83574
83575 2001-01-03  Jim Meyering  <meyering@lucent.com>
83576
83577         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83578         of local `inptr' to avoid warning with some system declarations of
83579         iconv.
83580
83581 2001-01-02  Volker Borchert  <bt@teknon.de>
83582
83583         * m4/rename.m4: New file.
83584         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83585
83586 2001-01-01  Jim Meyering  <meyering@lucent.com>
83587
83588         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83589         even on systems with utmpx.h.  It's necessary for the declaration of
83590         utmp's ut_user member.  Reported by Andreas Jaeger.
83591
83592         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83593         available. They are required for the declarations of getgrgid and
83594         getpwuid resp.
83595         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83596         Reported by Andreas Jaeger.
83597
83598 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83599
83600         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83601         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83602         so `make install' also works in VPATH builds.
83603
83604 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83605
83606         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83607         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83608         can be used in subdirectories.
83609
83610 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83611
83612         * lib/modechange.c: Do not assume that mode_t uses the
83613         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83614         the other-execute bit of FOO even if S_IXOTH != 1.
83615
83616         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83617         WOTH, XOTH, ALLM): New macros.
83618         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83619          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83620         Use them.
83621         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83622         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83623         (mode_compile):
83624         No need to use uintmax_t; unsigned long is long enough.
83625         Don't bother to get suffix since we don't use it.
83626
83627 2000-12-26  Jim Meyering  <meyering@lucent.com>
83628
83629         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83630         better with autoheader.
83631
83632 2000-12-24  Jim Meyering  <meyering@lucent.com>
83633
83634         * lib/hash.c (is_prime): Return explicit boolean values.
83635         (hash_get_first): Return NULL to appease Irix5.6's 89.
83636         Reported by Nelson Beebe.
83637
83638 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83639
83640         * lib/localcharset.c (locale_charset): Add support for Win32.
83641
83642 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83643
83644         * lib/physmem.h, lib/physmem.c: New files.
83645
83646         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83647         (noinst_HEADERS): Add physmem.h.
83648
83649         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83650         't' for compatibility with Solaris 8 sort.
83651
83652 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83653
83654         * lib/config.charset: Add support for BeOS.
83655
83656 2000-12-17  Jim Meyering  <meyering@lucent.com>
83657
83658         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83659         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83660
83661 2000-12-16  Jim Meyering  <meyering@lucent.com>
83662
83663         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83664         N and M) would have treated it like `chown N:N FILE'.
83665
83666         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83667
83668 2000-12-16  Jim Meyering  <meyering@lucent.com>
83669
83670         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83671         SHELLS_FILE to a file name that's useful on djgpp systems.
83672         Include stdlib.h.
83673         (ADDITIONAL_DEFAULT_SHELLS): Define.
83674         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83675         Based mostly on a patch from Prashant TR.
83676
83677 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83678
83679         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83680         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83681         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83682
83683 2000-12-08  Andreas Schwab  <schwab@suse.de>
83684
83685         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83686         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83687
83688 2000-12-07  Jim Meyering  <meyering@lucent.com>
83689
83690         * lib/stripslash.c (ISSLASH): Define.
83691         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83692         `/'.
83693         From Prashant TR.
83694
83695         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83696         (dir_name_r): Declare this function as static.
83697         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83698         manifest itself on a name containing a mix of slashes and
83699         backslashes.
83700         Make this function work with names starting with a DOS-style
83701         drive letter and colon prefix.
83702         (dir_name): Append `.' if necessary.
83703         Based mostly on patches from Prashant TR and Eli Zaretskii.
83704
83705         * lib/dirname.h (dir_name_r): Remove prototype.
83706
83707 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83708
83709         * m4/off_t-format.m4: Remove this file.
83710         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83711
83712 2000-12-06  Jim Meyering  <meyering@lucent.com>
83713
83714         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83715         replacement strtoull, we may well need the replacement strtoul, too.
83716         Check for declarations of strtoul and strtoull.
83717         Check for strtol.  Mainly as a cue to cause automake to include
83718         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83719         Check for limits.h -- strtol.c needs it.
83720
83721 2000-12-05  Jim Meyering  <meyering@lucent.com>
83722
83723         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83724
83725 2000-12-04  Jim Meyering  <meyering@lucent.com>
83726
83727         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83728         Also include memory.h, stdlib.h, unistd.h if appropriate.
83729         Reported by Andreas Jaeger (conflicting declaration of malloc).
83730
83731 2000-12-02  Jim Meyering  <meyering@lucent.com>
83732
83733         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83734         * m4/jm-macros.m4 (jm_MACROS): require it.
83735
83736 2000-12-02  Jim Meyering  <meyering@lucent.com>
83737
83738         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83739
83740 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83741
83742         * lib/memrchr.c: Include <config.h> before any system include file.
83743
83744 2000-11-30  Jim Meyering  <meyering@lucent.com>
83745
83746         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83747
83748 2000-11-30  Jim Meyering  <meyering@lucent.com>
83749
83750         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83751
83752 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83753
83754         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83755
83756 2000-11-26  Jim Meyering  <meyering@lucent.com>
83757
83758         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83759
83760 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83761
83762         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83763         size of (size_t) -1; it's not portable.
83764
83765 2000-11-17  Jim Meyering  <meyering@lucent.com>
83766
83767         * lib/strstr.c: Update from GNU libc.
83768
83769 2000-11-17  Akim Demaille  <akim@epita.fr>
83770
83771         * lib/obstack.h: Formatting changes.
83772         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83773         prevent type checking.
83774         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83775         cast the value to (void *): assigning a `foo *' to a `void *'
83776         variable is valid.
83777         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83778
83779 2000-11-16  Jim Meyering  <meyering@lucent.com>
83780
83781         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83782
83783 2000-11-11  Jim Meyering  <meyering@lucent.com>
83784
83785         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83786
83787 2000-11-10  Jim Meyering  <meyering@lucent.com>
83788
83789         * lib/obstack.h: Update from GNU libc.
83790         * lib/obstack.c: Likewise.
83791
83792 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83793
83794         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83795
83796 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83797
83798         * lib/getusershell.c (setusershell): Use rewind rather than
83799         fseek/fseeko, to avoid configuration hassles with fseeko.
83800         Don't bother opening SHELLS_FILE if shellstream is NULL;
83801         it's not necessary.
83802
83803 2000-11-05  Jim Meyering  <meyering@lucent.com>
83804
83805         * lib/makepath.h (make_dir): Declare.
83806         * lib/makepath.c (make_dir): Remove `static' attribute.
83807         Tweak a comment.
83808
83809 2000-11-04  Jim Meyering  <meyering@lucent.com>
83810
83811         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83812
83813 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83814
83815         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83816         last one in a bucket, advance to the next bucket.
83817
83818 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83819
83820         * lib/fnmatch.c: Do not comment out all the code if we are using
83821         the GNU C library, because in some cases we are replacing buggy
83822         code in the GNU C library itself.
83823
83824 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83825
83826         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83827         (regex_compile): Catch bogus \(\1\).
83828
83829 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83830
83831         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83832         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83833         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83834
83835 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83836
83837         * lib/error.h, getline.h, modechange.h:
83838         Remove "2000" from Copyright line, as the file hasn't been
83839         changed this year other than in the copyright notice.
83840
83841         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83842         was changed this year.
83843
83844 2000-10-29  Jim Meyering  <meyering@lucent.com>
83845
83846         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83847         renaming.
83848         * m4/ls-mntd-fs.m4: Likewise
83849
83850 2000-10-29  Jim Meyering  <meyering@lucent.com>
83851
83852         * lib/xstat.in: Fix grammar in comment.
83853
83854 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83855
83856         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83857         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83858         doesn't define __restrict_arr.
83859
83860 2000-10-28  Jim Meyering  <meyering@lucent.com>
83861
83862         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83863         (jm_PREREQ_MEMCHR): New function.
83864
83865 2000-10-28  Jim Meyering  <meyering@lucent.com>
83866
83867         * lib/memchr.c: Update from libc.
83868         Adjust for portability:
83869         [HAVE_STDLIB_H]: Include stdlib.h.
83870         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83871         Undef __memchr, too.
83872         [!weak_alias]: Define __memchr to memchr.
83873
83874         * lib/regex.c: Update from libc.
83875         * lib/regex.h: Likewise.
83876         * lib/getopt1.c: Likewise.
83877         * lib/memcmp.c: Likewise.
83878
83879         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83880         Avoid using fseek, when possible -- it's broken by design.
83881         Patch by Ulrich Drepper.
83882
83883 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83884
83885         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83886         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83887         Giving in to popular pressure to shut up the compiler with casts.
83888
83889 2000-10-26  Jim Meyering  <meyering@lucent.com>
83890
83891         * lib/strftime.c: Update from libc.
83892
83893 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83894
83895         * regex.c: More `unsigned char' -> `re_char' changes.
83896         Also change several `int' into `re_wchar_t'.
83897         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83898         (PUSH_FAILURE_POINTER): Don't cast any more.
83899         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83900         We want GCC to complain, since this piece of code makes
83901         re_match non-reentrant, which *should* be fixed.
83902         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83903         (EXTEND_BUFFER): Use RETALLOC.
83904         (SET_LIST_BIT): Don't cast.
83905         (re_wchar_t): New type.
83906         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83907         that those two functions will always properly return.
83908         (IMMEDIATE_QUIT_CHECK): Cast to void.
83909         (analyse_first): Use recursion rather than an explicit stack.
83910         (re_compile_fastmap): Can't fail anymore.
83911         (re_search_2): Don't check re_compile_fastmap for failure.
83912         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83913         Now also sets the new value (passed in a new argument).
83914         (re_match_2_internal): Use it.
83915         Also, use a new var `reg' of type size_t when looping through regs
83916         rather than reuse the inappropriate `mcnt'.
83917
83918 2000-10-25  Jim Meyering  <meyering@lucent.com>
83919
83920         * lib/obstack.c: Update from libc.
83921
83922 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83923
83924         * regex.c (regex_compile): Change the way of handling a range from
83925         a char less than 256 to a char not less than 256.
83926
83927 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83928
83929         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83930         NT-Emacs only.
83931         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83932         so that re_search functions only quit when callers expect them to.
83933
83934 2000-10-23  Jim Meyering  <meyering@lucent.com>
83935
83936         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83937         wrong.  That set_locale call must not have any side effects.
83938         From Paul Eggert.
83939
83940 2000-10-22  Jim Meyering  <meyering@lucent.com>
83941
83942         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83943         [CYCLIC]: Remove now-unused definition.
83944
83945         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83946         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83947         Suggestion from Ulrich Drepper.
83948
83949 2000-10-21  Jim Meyering  <meyering@lucent.com>
83950
83951         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83952         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83953         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83954
83955 2000-10-21  Jim Meyering  <meyering@lucent.com>
83956
83957         * lib/dirname.c (memrchr): Declare if necessary.
83958         (dir_name): Remove the restriction that there be no
83959         trailing slashes.  Now, this code skips past them, effectively
83960         ignoring them.
83961         [TEST_DIRNAME] (main): New unit tests.
83962
83963         * lib/memrchr.c: New file from GNU libc.
83964         Undef __memrchr, too.
83965         [!weak_alias]: Define __memrchr to memrchr.
83966         Guard weak_alias use with `#ifdef weak_alias'.
83967
83968 2000-10-21  Jim Meyering  <meyering@lucent.com>
83969
83970         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83971         (dir_name): Use dir_name_r.
83972         * lib/dirname.h (dir_name_r): Declare it.
83973
83974 2000-10-17  Jim Meyering  <meyering@lucent.com>
83975
83976         * lib/quote.h (PARAMS): Define and use.
83977         Reported by Akim Demaille.
83978
83979         * lib/getopt.c: Update from libc.
83980
83981 2000-10-16  Jim Meyering  <meyering@lucent.com>
83982
83983         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83984         setlocale.
83985         From Jan Fedak.
83986
83987 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83988
83989         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83990
83991 2000-09-25  Jim Meyering  <meyering@lucent.com>
83992
83993         * lib/md5.h (rol): Define (from GnuPG).
83994
83995         * lib/sha.c: Give credit (GnuPG) where due.
83996         (M): Use rol rather than open-coding it.
83997         Add a FIXME comment.
83998
83999 2000-09-21  Jim Meyering  <meyering@lucent.com>
84000
84001         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84002         Reported by Michael Stone.
84003
84004 2000-09-20  Jim Meyering  <meyering@lucent.com>
84005
84006         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84007         (noinst_HEADERS): Add sha.h.
84008         Based on code from Scott G. Miller and from GnuPG.
84009
84010 2000-09-18  Jim Meyering  <meyering@lucent.com>
84011
84012         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84013         LIBS. Otherwise, everyone ends up linking with -lelf for some
84014         configurations.
84015         Reported by Mike Stone.
84016
84017 2000-09-15  Jim Meyering  <meyering@lucent.com>
84018
84019         * lib/regex.c: Update from libc.
84020
84021 2000-09-10  Jim Meyering  <meyering@lucent.com>
84022
84023         * lib/getopt.c (_getopt_internal): Update from glibc.
84024
84025 2000-09-09  Jim Meyering  <meyering@lucent.com>
84026
84027         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84028         think it should be used as a general replacement for isascii.
84029         * lib/fnmatch.c: Likewise.
84030         * lib/mbswidth.c: Likewise
84031         * lib/regex.c: Likewise.
84032
84033         Don't use atoi.
84034         * lib/userspec.c: Include sys/param.h and limits.h.
84035         Include xstrtol.h.
84036         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84037         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84038         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84039         UID, GID.  Check range.
84040
84041 2000-09-06  Jim Meyering  <meyering@lucent.com>
84042
84043         * lib/getopt.c (_getopt_internal): Update from glibc.
84044
84045 2000-08-30  Jim Meyering  <meyering@lucent.com>
84046
84047         * lib/strftime.c: Merge in changes from GNU libc.
84048
84049 2000-08-26  Jim Meyering  <meyering@lucent.com>
84050
84051         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84052         * m4/fpending.m4: New file.
84053
84054 2000-08-26  Jim Meyering  <meyering@lucent.com>
84055
84056         * lib/closeout.c: Include "__fpending.h".
84057         (close_stdout_status): Return right away if there's nothing to flush.
84058
84059         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84060         * lib/__fpending.c: New file.
84061         * lib/__fpending.h: New file.
84062
84063 2000-08-20  Jim Meyering  <meyering@lucent.com>
84064
84065         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84066         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84067         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84068
84069 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84070
84071         Improve fileutils installation on systems where running
84072         programs (like install) can't be unlinked.
84073         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84074         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84075
84076 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84077
84078         Standardize on "memory exhausted" instead of "Memory exhausted"
84079         or "virtual memory exhausted".
84080         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84081         "virtual memory exhausted".
84082         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84083         our own message.
84084         * lib/userspec.c (parse_user_spec): Likewise.
84085         * lib/bumpalloc.h: comment fix
84086         * lib/same.c, userspec.c: Include xalloc.h.
84087
84088         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84089         not char *const and pointing to a constant array.
84090         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84091         (xrealloc): Comment fix.
84092
84093         * lib/userspec.c (parse_user_spec):
84094         Don't translate a message until just before returning,
84095         to avoid unnecessary translation.
84096
84097 2000-08-07  Jim Meyering  <meyering@lucent.com>
84098
84099         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84100         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84101         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84102         getgroups.c, gethostname.c, getopt.h, group-member.c,
84103         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84104         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84105         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84106         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84107         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84108         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84109         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84110         yesno.c: Back out Copyright date changes for each file with no change
84111         this year.  This eases coordination with other programs using the same
84112         source code modules.  From Paul Eggert.
84113
84114 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84115
84116         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84117         not char, for compatibility with glibc 2.1.3 strftime.c.
84118
84119 2000-08-03  Greg McGary  <greg@mcgary.org>
84120
84121         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84122         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84123         (EXTEND_BUFFER): Use them.
84124
84125 2000-08-01  Jim Meyering  <meyering@lucent.com>
84126
84127         * lib/dirname.c (ISSLASH): Define.
84128         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84129         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84130         both `\' and `/' may be use as path separators.
84131         Based on a patch from Prashant TR.
84132
84133 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84134
84135         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84136         slot vector a constant, since it might get modified.
84137
84138 2000-07-31  Jim Meyering  <meyering@lucent.com>
84139
84140         * lib/xmalloc.c: Use `virtual memory exhausted', not
84141         `Memory exhausted'.
84142         * lib/obstack.c (print_and_abort): Likewise.
84143
84144 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84145
84146         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84147         buffer, so that the caller can always quote one small
84148         component of a "memory exhausted" message in slot 0.
84149         From a suggestion by Jim Meyering.
84150
84151 2000-07-30  Jim Meyering  <meyering@lucent.com>
84152
84153         * lib/makepath.c (make_path): Quote the other instance, too.
84154
84155         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84156         (STATIC_BUF_SIZE): Define.
84157         (quotearg_n_options): Use only statically allocated storage when
84158         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84159         than STATIC_BUF_SIZE.
84160
84161 2000-07-29  Jim Meyering  <meyering@lucent.com>
84162
84163         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84164         * lib/dirname.c (dir_name): Likewise.
84165
84166         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84167         `/'.
84168
84169         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84170         (dir_name): Assert that there are no trailing slashes.
84171
84172 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84173
84174         * lib/mbswidth.h (mbswidth): Add a flags argument.
84175         (mbswidth): New declaration.
84176         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84177         * lib/mbswidth.c (mbswidth): Add a flags argument.
84178         (mbsnwidth): New function.
84179
84180 2000-07-24  Jim Meyering  <meyering@lucent.com>
84181
84182         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84183
84184 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84185
84186         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84187
84188 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84189
84190         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84191         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84192         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84193         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84194         invoke multibyte primitives.
84195
84196 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84197
84198         * lib/quotearg.c:
84199         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84200         so that mbstate_t is always defined.
84201
84202         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84203         be 1 in at least one GCC installation, and this configuration
84204         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84205         performance on hosts that have mbrtowc but have only unibyte
84206         locales, but I assume these hosts are rare.
84207
84208 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84209
84210         * lib/mbswidth.c (_XOPEN_SOURCE):
84211         Don't define; this causes problems on Solaris 7.
84212         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84213
84214 2000-07-23  Jim Meyering  <meyering@lucent.com>
84215
84216         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84217         too: getgrgid, getpwuid, getuid.
84218
84219 2000-07-23  Jim Meyering  <meyering@lucent.com>
84220
84221         * lib/basename.c (base_name): Add an assertion.
84222
84223 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84224
84225         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84226         shadow its mbsinit function.
84227
84228 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84229
84230         * lib/mbswidth.h: New file.
84231         * lib/mbswidth.c: New file.
84232         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84233         (noinst_HEADERS): Add mbswidth.h.
84234
84235 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84236
84237         * lib/config.charset: Add support for FreeBSD. Improve support for
84238         HP-UX and IRIX 6.
84239
84240 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84241
84242         * m4/mbswidth.m4: New file.
84243         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84244
84245 2000-07-15  Jim Meyering  <meyering@lucent.com>
84246
84247         * lib/makepath.c: Include quote.h.
84248         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84249         corresponding argument in a `quote (...)' call.
84250         Give better diagnostics.
84251
84252         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84253         (noinst_HEADERS): Add quote.h.
84254
84255         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84256         from tar's src/misc.c.
84257         * lib/quote.h: New file.  Prototypes for same.
84258
84259 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84260
84261         From a suggestion by Bruno Haible.
84262         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84263         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84264         to decide whether to define the BeOS workaround macro;
84265         this adjusts to the change to AC_MBSTATE_T.
84266
84267 2000-07-14  Jim Meyering  <meyering@lucent.com>
84268
84269         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84270         jm_AC_TYPE_UINTMAX_T.
84271
84272 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84273
84274         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84275
84276         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84277         quotearg_buffer_restyled): Add support for
84278         clocale_quoting_style.  Undo previous change to
84279         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84280         and "{RIGHT QUOTATION MARK}" msgids.
84281
84282 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84283
84284         From a suggestion by Bruno Haible.
84285         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84286         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84287         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84288         and mbstate_t, to a single-part test that simply defines mbstate_t.
84289         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84290         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84291
84292 2000-07-10  Jim Meyering  <meyering@lucent.com>
84293
84294         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84295
84296         * m4/gnu-source.m4: Output to confdefs.h directly.
84297         Suggestion from Akim Demaille.
84298
84299 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84300
84301         The old behavior of quoting `like this' doesn't look good with
84302         newer, ISO-style fonts.  See:
84303         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84304
84305         Instead, quote "like this" by default.  Let the translator
84306         tailor the locale-specific quoting behavior by providing
84307         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84308
84309         * lib/quotearg.c (N_): New macro.
84310         (gettext_default): New function.
84311         (quotearg_buffer_restyled): Use
84312         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84313         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84314
84315 2000-07-09  Jim Meyering  <meyering@lucent.com>
84316
84317         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84318         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84319
84320         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84322
84323 2000-07-09  Jim Meyering  <meyering@lucent.com>
84324
84325         * lib/Most files: Update copyright dates to include 2000.
84326
84327 2000-07-08  Jim Meyering  <meyering@lucent.com>
84328
84329         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84330         if not defined.
84331         (xgethostname): Remove now-unnecessary #ifdef.
84332         Move declaration of `err' into loop where it's used.
84333
84334 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84335         and Bruno Haible  <haible@clisp.cons.org>
84336
84337         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84338         only if the test for an object-type mbstate_t fails.  This
84339         prevents us from mistakenly reporting that mbstate_t is a
84340         system object type after we "#define mbstate_t int" to work
84341         around its lack.
84342
84343 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84344         and Bruno Haible  <haible@clisp.cons.org>
84345
84346         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84347
84348 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84349
84350         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84351         to strerror_r.
84352         Include <ctype.h> for use of isalpha.
84353
84354 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84355
84356         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84357         by allocating a larger buffer. Test the gethostname return value for
84358         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84359         returns an error and ENAMETOOLONG isn't defined.
84360
84361 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84362
84363         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84364         dimension.
84365
84366 2000-07-04  Jim Meyering  <meyering@lucent.com>
84367
84368         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84369         of the deprecated AC_CHECKING.
84370
84371 2000-07-04  Jim Meyering  <meyering@lucent.com>
84372
84373         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84374         Reported by Bruno Haible.
84375
84376 2000-07-04  Jim Meyering  <meyering@lucent.com>
84377
84378         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84379         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84380         lacks mbrtowc.
84381
84382 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84383
84384         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84385         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84386
84387 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84388         and Bruno Haible  <haible@clisp.cons.org>
84389
84390         * lib/quotearg.c (mbrtowc):
84391         Assign to *pwc, and return 1 only if result is nonzero.
84392         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84393
84394 2000-07-03  Jim Meyering  <meyering@lucent.com>
84395
84396         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84397
84398 2000-07-03  Jim Meyering  <meyering@lucent.com>
84399
84400         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84401         This is necessary to get a definition of e.g., UTMP_FILE on
84402         HP-UX 10.20.
84403         From Bob Proulx.
84404
84405 2000-07-02  Jim Meyering  <meyering@lucent.com>
84406
84407         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84408
84409         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84410         AC_LIBOBJ(function_name).
84411         * m4/chown.m4: Likewise.
84412         * m4/fnmatch.m4: Likewise.
84413         * m4/ftruncate.m4: Likewise.
84414         * m4/getgroups.m4: Likewise.
84415         * m4/getline.m4: Likewise.
84416         * m4/group-member.m4: Likewise.
84417         * m4/jm-macros.m4: Likewise.
84418         * m4/lstat.m4: Likewise.
84419         * m4/malloc.m4: Likewise.
84420         * m4/memcmp.m4: Likewise.
84421         * m4/nanosleep.m4: Likewise.
84422         * m4/putenv.m4: Likewise.
84423         * m4/realloc.m4: Likewise.
84424         * m4/regex.m4: Likewise.
84425         * m4/stat.m4: Likewise.
84426         * m4/strftime.m4: Likewise.
84427
84428 2000-07-02  Jim Meyering  <meyering@lucent.com>
84429
84430         * lib/quotearg.c (mbstate_t): Don't define here.
84431
84432 2000-07-02  Jim Meyering  <meyering@lucent.com>
84433
84434         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84435
84436 2000-07-01  Jim Meyering  <meyering@lucent.com>
84437
84438         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84439
84440 2000-07-01  Jim Meyering  <meyering@lucent.com>
84441
84442         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84443         problem.
84444
84445 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84446
84447         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84448         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84449
84450 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84451
84452         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84453         per change in ../m4/ls-mntd-fs.m4.
84454         (read_filesystem_list): Ignore symbolic links.
84455
84456 2000-06-29  Jim Meyering  <meyering@lucent.com>
84457
84458         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84459         for declaration of strcmp.
84460
84461         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84462
84463         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84464         Avoid warning by casting result to `char *' to remove `const'.
84465
84466 2000-06-28  Jim Meyering  <meyering@lucent.com>
84467
84468         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84469         included by quotearg.c, for which we perform this test.  From
84470         Bruno Haible.
84471
84472 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84473
84474         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84475         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84476         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84477
84478 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84479
84480         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84481
84482 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84483
84484         savedir now sets errno on failure and invokes xmalloc to get memory.
84485         Fix a couple of other minor bugs while we're at it.
84486
84487         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84488         (NAMLEN): Remove macro.
84489         (malloc, realloc): Remove decls.
84490         (stpcpy): Likewise.
84491         ("xalloc.h"): Include.
84492         (NAME_SIZE_DEFAULT): New macro.
84493         (savedir): Use xmalloc / xrealloc to allocate memory.
84494         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84495         Skip "" directory entries.
84496         Use strlen to calculate directory entry length, since the old method
84497         is rarely used these days and isn't worth supporting.
84498         Don't use a pointer after freeing it.
84499         Check for integer overflow when calculating allocation size.
84500         Use memcpy to copy entries, instead of stpcpy.
84501         Set errno properly when returning NULL.
84502         Check for readdir error.
84503
84504 2000-06-26  Jim Meyering  <meyering@lucent.com>
84505
84506         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84507
84508 2000-06-25  Jim Meyering  <meyering@lucent.com>
84509
84510         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84511         Linux header bug when _XOPEN_SOURCE is defined to 500.
84512
84513 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84514
84515         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84516         deficiency.
84517
84518 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84519
84520         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84521         Include xalloc.h.
84522         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84523
84524 2000-06-24  Jim Meyering  <meyering@lucent.com>
84525
84526         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84527         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84528         for which strerror does return char*, but which lacks a conveniently
84529         accessible declaration of the function.  If the compile-test says
84530         strerror_r doesn't work, then resort to a `run'-test that works on
84531         BeOS and segfaults on DEC Unix.
84532
84533 2000-06-24  Jim Meyering  <meyering@lucent.com>
84534
84535         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84536
84537 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84538
84539         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84540         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84541
84542 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84543
84544         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84545         (mbrtowc, mbstate_t): Define substitutes if
84546         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84547         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84548         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84549
84550 2000-06-23  Jim Meyering  <meyering@lucent.com>
84551
84552         * m4/afs.m4: Add missing AC_MSG_RESULT.
84553         Reported by Bruno Haible.
84554
84555         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84556         Suggestion from Bruno Haible.
84557
84558 2000-06-23  Jim Meyering  <meyering@lucent.com>
84559
84560         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84561
84562 2000-06-21  Jim Meyering  <meyering@lucent.com>
84563
84564         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84565
84566 2000-06-21  Jim Meyering  <meyering@lucent.com>
84567
84568         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84569         (noinst_HEADERS): Add getstr.h.
84570
84571         * lib/getline.c (getstr): Move into a separate file.
84572         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84573         the following changes: new parameter, delim2; both delim[12]
84574         parameters have type `int', not `char'.  The latter would lose
84575         with 8-bit delimiters.
84576         * lib/getstr.h: New file.
84577
84578 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84579
84580         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84581         than 1024, return a memory chunk of least possible size, instead
84582         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84583         Use free/xmalloc instead of xrealloc to avoid copying for very long
84584         paths.
84585
84586 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84587
84588         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84589         the empty string.
84590
84591 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84592
84593         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84594         address, not strdup.  Include <stdlib.h> and don't declare free().
84595
84596 2000-06-19  Jim Meyering  <meyering@lucent.com>
84597
84598         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84599
84600 2000-06-18  Jim Meyering  <meyering@lucent.com>
84601
84602         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84603
84604         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84605         `checking whether...' message to be consistent with that of the
84606         lstat test.
84607
84608 2000-06-18  Jim Meyering  <meyering@lucent.com>
84609
84610         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84611         Besides, these days every porting target provides a mkdir function.
84612
84613         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84614         needed. (this snippet comes from src/system.h).
84615
84616 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84617
84618         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84619
84620 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84621
84622         * lib/human.c (adjust_value): New function.
84623         (human_readable_inexact): Apply rounding style even when
84624         printing approximate values.
84625
84626 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84627
84628         * lib/human.c (human_readable_inexact): Allow an input block
84629         size that is not a multiple of the output block size, and vice versa.
84630         Reported by Piergiorgio Sartor.
84631
84632 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84633
84634         * lib/getdate.y (get_date): Apply relative times after time
84635         zone indicator, not before.  Reported by Todd A. Jacobs.
84636
84637 2000-06-13  Jim Meyering  <meyering@lucent.com>
84638
84639         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84640
84641         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84642
84643 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84644
84645         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84646
84647 2000-06-12  Jim Meyering  <meyering@lucent.com>
84648
84649         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84650         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84651         optional argument.
84652         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84653         the optional argument, `lib'.
84654
84655 2000-06-08  Jim Meyering  <meyering@lucent.com>
84656
84657         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84658
84659 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84660
84661         Rewrite largefile configuration so that we don't need to run
84662         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84663         AC_CANONICAL_HOST in configure.in -- jmm]
84664
84665         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84666         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84667         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84668         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84669         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84670         All uses changed.
84671         Instead of inspecting the output of getconf, try to compile the
84672         test program without and with the macro definition.
84673         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84674         for getconf.  Instead, check for the needed flags by compiling
84675         test programs.
84676
84677 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84678
84679         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84680
84681 2000-06-04  Jim Meyering  <meyering@lucent.com>
84682
84683         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84684         SunOS 4.1.4 for which gid_t is an unsigned type.
84685
84686 2000-06-03  Jim Meyering  <meyering@lucent.com>
84687
84688         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84689         now that autoconf requires that.
84690
84691         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84692         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84693         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84694
84695 2000-06-03  Jim Meyering  <meyering@lucent.com>
84696
84697         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84698
84699 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84700
84701         * m4/glibc21.m4: New file.
84702         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84703
84704 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84705
84706         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84707         newer, don't install charset.alias.
84708         * lib/config.charset: Change the Linux/glibc rules so they become empty
84709         on glibc-2.1 or newer.
84710
84711 2000-06-02  Jim Meyering  <meyering@lucent.com>
84712
84713         * lib/mountlist.c: Back out last change.  Instead, do this...
84714         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84715         me_dummy member using the same `ignore'-testing code.
84716         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84717         fs_type strings.
84718         From Mark D. Roth.
84719
84720 2000-05-29  Jim Meyering  <meyering@lucent.com>
84721
84722         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84723         mounts with the `ignore' attribute.  Based on a patch from
84724         Mark D. Roth.
84725
84726 2000-05-28  Jim Meyering  <meyering@lucent.com>
84727
84728         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84729         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84730         * m4/stat.m4: Likewise.
84731         * m4/lstat.m4: Likewise.
84732         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84733
84734         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84735         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84736
84737 2000-05-26  Jim Meyering  <meyering@lucent.com>
84738
84739         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84740
84741 2000-05-24  Jim Meyering  <meyering@lucent.com>
84742
84743         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84744         autoconf requires that.
84745         * m4/lib-check.m4: Likewise.
84746         * m4/jm-macros.m4: Likewise.
84747         * m4/strftime.m4: Likewise.
84748
84749         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84750         AC_CHECK_DECLS, now that autoconf requires that.
84751
84752 2000-05-22  Jim Meyering  <meyering@lucent.com>
84753
84754         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84755         * m4/lstat.m4: Likewise.
84756
84757 2000-05-22  Jim Meyering  <meyering@lucent.com>
84758
84759         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84760
84761 2000-05-20  Jim Meyering  <meyering@lucent.com>
84762
84763         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84764         (jm_PREREQ): Use it.
84765
84766 2000-05-18  Jim Meyering  <meyering@lucent.com>
84767
84768         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84769         back, too, since it may have been modified by allocate_entry.
84770         (hash_delete): Rewrite to use neither the assignment operator
84771         nor the comma operator in an if-expression.
84772
84773 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84774
84775         * lib/closeout.c:
84776         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84777         Remove; no longer needed.
84778         "quotearg.h": Add include.
84779         (file_name): Do not bother to explicitly initialize to NULL; it's less
84780         efficient on some hosts.
84781         (close_stdout_status): Remove test as to whether stdout was already
84782         closed; it breaks for the case "echo x | sort >&-".
84783         Quote file name colons.
84784         Do not assume that _("write error") lacks format strings.
84785
84786 2000-05-15  Jim Meyering  <meyering@lucent.com>
84787
84788         * lib/version-etc.c (version_etc_copyright): Update the copyright
84789         string used in all --version output.
84790
84791 2000-05-14  Jim Meyering  <meyering@lucent.com>
84792
84793         * lib/closeout.c (close_stdout_set_file_name): New function.
84794         (close_stdout_status): Use new file-scoped global.
84795         Return right away if fstat says the stdout file descriptor is invalid.
84796         * lib/closeout.h (close_stdout_set_file_name): Declare.
84797
84798 2000-05-10  Jim Meyering  <meyering@lucent.com>
84799
84800         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84801         (close_stdout_set_status): New function.
84802         * lib/closeout.h (close_stdout_set_status): Declare.
84803
84804 2000-05-09  Jim Meyering  <meyering@lucent.com>
84805
84806         * m4/gettext.m4: Rename this...
84807         * m4/libintl.m4: ...to this.
84808
84809 2000-05-08  Jim Meyering  <meyering@lucent.com>
84810
84811         * lib/long-options.c: Don't include closeout.h.
84812         (parse_long_options): Don't call close_stdout for --version.
84813
84814 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84815
84816         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84817         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84818         2.1.3 bug.  This avoids a clash when files like regex.c define
84819         _GNU_SOURCE.
84820
84821 2000-05-06  Jim Meyering  <meyering@lucent.com>
84822
84823         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84824         (AC_REPLACE_FUNCS): Add strnlen.
84825
84826         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84827         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84828
84829         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84830         AC_SEARCH_LIBS call for nanosleep.
84831         (LIB_NANOSLEEP): Set and AC_SUBST.
84832
84833 2000-05-06  Jim Meyering  <meyering@lucent.com>
84834
84835         * lib/strnlen.c: Undefine __strnlen and strnlen.
84836         [!weak_alias]: Define __strnlen to strnlen.
84837
84838         * lib/atexit.c: New file, from libiberty.
84839
84840 2000-05-06  Jim Meyering  <meyering@lucent.com>
84841
84842         * lib/closeout.c (close_stdout_status): Also check for errors on the
84843         stderr stream.
84844
84845 2000-05-05  Jim Meyering  <meyering@lucent.com>
84846
84847         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84848         AC_SEARCH_LIBS call for clock_gettime.
84849         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84850
84851         * m4/search-libs.m4: Update from autoconf.
84852
84853         su doesn't work on Solaris 2.6.
84854         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84855         <shadow.h>.  Reported by Dragos Harabor.
84856
84857 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84858
84859         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84860         memcpy instead of xmalloc, xrealloc, path_concat.
84861         (locale_charset): Treat empty environment variables as absent.
84862         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84863
84864 2000-05-04  Jim Meyering  <meyering@lucent.com>
84865
84866         * lib/getopt.c: Update from glibc.
84867         * lib/obstack.c: Likewise.
84868         * lib/obstack.h: Likewise.
84869         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84870         file
84871
84872         * lib/regex.h: Likewise.
84873         * lib/strndup.c: Likewise.
84874         * lib/strnlen.c: New file, from glibc.
84875
84876 2000-05-03  Jim Meyering  <meyering@lucent.com>
84877
84878         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84879
84880 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84881
84882         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84883         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84884         compile-time test, rather than inspecting host and OS, to
84885         decide whether to define _LARGEFILE_SOURCE.
84886
84887 2000-05-01  Jim Meyering  <meyering@lucent.com>
84888
84889         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84890
84891         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84892         Based on a patch from Bruno Haible.
84893
84894 2000-05-01  Jim Meyering  <meyering@lucent.com>
84895
84896         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84897
84898 2000-04-29  Jim Meyering  <meyering@lucent.com>
84899
84900         * lib/path-concat.c: Declare strdup only if it's not defined.
84901         * lib/canon-host.c: Likewise.
84902
84903 2000-04-28  Jim Meyering  <meyering@lucent.com>
84904
84905         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84906         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84907         is included first, then limits.h is included by locale.h by libintl.h.
84908         From John David Anglin.
84909
84910 2000-04-25  Jim Meyering  <meyering@lucent.com>
84911
84912         * lib/makepath.c (S_IRWXUGO): Define.
84913         (make_path): Always perform explicit chmod if MODE specifies any
84914         of the `special' permission bits.  Prompted by a bug report against
84915         install from Mate Wierdl and Joost van Baal.
84916
84917 2000-04-18  Jim Meyering  <meyering@lucent.com>
84918
84919         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84920         (jm_PREREQ): Use it.
84921
84922 2000-04-18  Jim Meyering  <meyering@lucent.com>
84923
84924         * lib/README: New file.
84925
84926         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84927         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84928
84929 2000-04-17  Jim Meyering  <meyering@lucent.com>
84930
84931         Get it right :-)
84932         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84933         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84934         Suggestion from Akim Demaille.
84935
84936 2000-04-17  Jim Meyering  <meyering@lucent.com>
84937
84938         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84939         the definition of it to rpl_strftime also defined-away the system's
84940         declaration.
84941
84942 2000-04-15  Jim Meyering  <meyering@lucent.com>
84943
84944         Use `C' to denote so-called `contiguous' files, the same way
84945         that tar does.
84946         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84947         (ftypelet): Use S_ISCTG.
84948         From Michael Deutschmann.
84949
84950 2000-04-14  Jim Meyering  <meyering@lucent.com>
84951
84952         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84953         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84954         clobbered.
84955
84956 2000-04-14  Jim Meyering  <meyering@lucent.com>
84957
84958         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84959
84960 2000-04-13  Jim Meyering  <meyering@lucent.com>
84961
84962         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84963         AH_VERBATIM to insert required #ifndef into config.h.in.
84964         Suggestion from Akim Demaille.
84965
84966 2000-04-12  Jim Meyering  <meyering@lucent.com>
84967
84968         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84969         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84970         Christian Krackowizer.
84971
84972         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84973         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84974         (AC_SYS_LARGEFILE): Require.
84975         (AM_C_PROTOTYPES): Require.
84976
84977 2000-04-08  Jim Meyering  <meyering@lucent.com>
84978
84979         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84980         names don't conflict.  Reported by Eli Zaretskii.
84981
84982 2000-04-07  Jim Meyering  <meyering@lucent.com>
84983
84984         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84985         sys/types.h, to work around system header problems on AIX 3.2.5.
84986         From Bruno Haible.
84987
84988 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84989
84990         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84991         bug.  Deal with the different error behavior of Irix iconv.
84992
84993 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84994
84995         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84996         IRIX if the installer said otherwise.
84997
84998 2000-04-05  Jim Meyering  <meyering@lucent.com>
84999
85000         Portability tweaks required for ultrix4.3.
85001         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85002         (jm_CHECK_DECLS): Add getutent to the list of functions.
85003         (_jm_DECL_HEADERS): Add utmpx.h.
85004         From John David Anglin.
85005
85006         * m4/strftime.m4: Back out the 2000-04-02 change.
85007         Instead of that change, simply undefine putenv in the test program.
85008
85009 2000-04-05  Jim Meyering  <meyering@lucent.com>
85010
85011         Portability tweaks required for ultrix4.3.
85012         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85013         getutent.
85014         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85015         * lib/canon-host.c: Declare strdup.
85016         * lib/path-concat.c: Likewise.
85017         From John David Anglin.
85018
85019 2000-04-04  Jim Meyering  <meyering@lucent.com>
85020
85021         Be more DOS 8.3-friendly.
85022         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85023         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85024         * lib/Makefile.am: Reflect renaming.
85025         Reported by Eli Zaretskii.
85026
85027         Use a temporary file name that won't clash with `charset.alias'
85028         in the DOS 8.3 name space.
85029         * lib/Makefile.am (charset_tmp): Define.
85030         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85031         (uninstall-local): Likewise.
85032         Reported by Eli Zaretskii.
85033
85034 2000-04-03  Jim Meyering  <meyering@lucent.com>
85035
85036         * m4/gettext.m4: Fix typo in comment.
85037
85038         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85039         textutils/configure.in).  Suggestion from Paul Eggert.
85040         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85041
85042 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85043
85044         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85045         variable in the shell rather than using putenv, which isn't
85046         portable.  This avoids the configure-time inter-test dependency
85047         on the potentially-renamed putenv function.
85048
85049 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85050
85051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85052         before checking struct stat.st_blksize, so that
85053         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85054
85055 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85056
85057         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85058         since strftime.c uses HAVE_STRFTIME to decide whether to use
85059         the underlying strftime.
85060
85061 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85062
85063         * lib/time/strftime.c (my_strftime): Make sure we call the system
85064         strftime, not ourselves, when invoking the underlying strftime.
85065
85066 2000-03-24  Jim Meyering  <meyering@lucent.com>
85067
85068         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85069         (charset_alias): Define.
85070         (install-exec-local): Factor out common code.
85071         (uninstall-local): Split lines longer than 80.
85072         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85073         (SUFFIXES): Define.
85074         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85075         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85076
85077 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85078
85079         * lib/config.charset: Output a line containing "Packages using this
85080         file".
85081         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85082         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85083         ref-del.sed): New rules.
85084
85085 2000-03-17  Jim Meyering  <meyering@lucent.com>
85086
85087         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85088         Otherwise, include <strings.h>
85089
85090 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85091
85092         * lib/unicodeio.c (utf8_wctomb): New function.
85093         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85094         format instead of in UCS-4 with platform dependent endianness.
85095
85096 2000-03-10  Jim Meyering  <meyering@lucent.com>
85097
85098         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85099         From Marco Franzen.
85100
85101 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85102
85103         * lib/savedir.c (savedir): Work even if directory size is
85104         negative; this can happen with some screwy NFS configurations.
85105
85106 2000-03-06  Jim Meyering  <meyering@lucent.com>
85107
85108         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85109         if it's NULL (because we ran out of memory).  From Bruno Haible.
85110
85111 2000-03-05  Jim Meyering  <meyering@lucent.com>
85112
85113         * lib/localcharset.c ("path-concat.h"): Include.
85114         (get_charset_aliases): Use path_concat instead of ANSI string
85115         concatenation.
85116
85117         * lib/unicodeio.h (PARAMS): Define.
85118         Use it to guard prototype.
85119
85120 2000-03-04  Jim Meyering  <meyering@lucent.com>
85121
85122         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85123         for lib/localcharset.c.
85124
85125 2000-03-04  Jim Meyering  <meyering@lucent.com>
85126
85127         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85128         installing into it.
85129         (uninstall-local): Uncomment this rule so `make distcheck' works
85130         once again.
85131
85132         * lib/unicodeio.c (<errno.h>): Include it.
85133         (errno): Declare if not defined.
85134
85135         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85136
85137         * lib/config.charset: New version, incorporating remarks from a linux
85138         i18n mailing list.  From Bruno Haible.
85139
85140 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85141
85142         * m4/codeset.m4: New file.
85143         * m4/iconv.m4: New file.
85144         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85145
85146 2000-03-03  Jim Meyering  <meyering@lucent.com>
85147
85148         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85149
85150 2000-03-02  Jim Meyering  <meyering@lucent.com>
85151
85152         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85153         the messages come out on separate lines.
85154
85155         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85156         rather than jm_CHECK_DECLARATIONS.
85157         * m4/decl.m4: Remove now-unused file.
85158
85159         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85160         geteuid.
85161
85162 2000-03-02  Jim Meyering  <meyering@lucent.com>
85163
85164         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85165
85166 2000-03-01  Jim Meyering  <meyering@lucent.com>
85167
85168         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85169         * lib/unicodeio.c: Likewise.
85170
85171 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85172
85173         * lib/config.charset: New file.
85174         * lib/localcharset.c: New file.
85175         * lib/unicodeio.h, lib/unicodeio.c: New files.
85176         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85177         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85178         (noinst_HEADERS): Add unicodeio.h.
85179         (all-local, install-exec-local, charset.alias): New targets.
85180
85181 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85182
85183         * lib/quotearg.c (ALERT_CHAR): New macro.
85184         (quotearg_buffer_restyled): Use it.
85185
85186 2000-02-27  Jim Meyering  <meyering@lucent.com>
85187
85188         * m4/check-decl.m4: Add getenv to the list.
85189
85190 2000-02-27  Jim Meyering  <meyering@lucent.com>
85191
85192         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85193         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85194
85195         * lib/backupfile.c: Guard inclusion of stdlib.h with
85196         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85197         Declare malloc if needed.
85198
85199         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85200         `#ifndef HAVE_DECL..'
85201         now that autoconf always defines the HAVE_DECL_ symbols.
85202         * lib/human.c: Likewise.
85203         * lib/same.c: Likewise.
85204         * lib/strtoumax.c: Likewise.
85205
85206         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85207         declaration check was not run.
85208         * lib/hash.c: Likewise.
85209         * lib/human.c: Likewise.
85210         * lib/same.c: Likewise.
85211         * lib/strtoumax.c: Likewise.
85212
85213         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85214         `.', then first look up the entire `.'-containing string as a login
85215         name.
85216
85217 2000-02-23  Jim Meyering  <meyering@lucent.com>
85218
85219         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85220         in place of my hack.
85221
85222 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85223
85224         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85225         (textint): New typedef.
85226         (parser_control): Member year changed from int to textint.
85227         All uses changed.
85228         (YYSTYPE): Removed; replaced by %union with int and textint members.
85229         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85230         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85231         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85232         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85233         (date, number, to_year): Use width of number in digits, not its value,
85234         to determine whether it's a 2-digit year, or a 2-digit time.
85235         (yylex): Store number of digits of numeric tokens.
85236         Reported by John Kendall.
85237
85238         (parser_control): Changed from struct parser_control to typedef (for
85239         consistency).  All uses changed.
85240
85241         (tID): Removed; not used.
85242         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85243
85244 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85245
85246         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85247         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85248
85249 2000-02-12  Jim Meyering  <meyering@lucent.com>
85250
85251         * lib/userspec.c (ISDIGIT): Define it.
85252         (isdigit): Remove definition.
85253         (is_number): Use ISDIGIT, not isdigit.
85254         <libintl.h>: Include.
85255         (_ and N_): Define.
85256         (parse_user_spec): Mark translatable strings.
85257
85258 2000-02-10  Jim Meyering  <meyering@lucent.com>
85259
85260         With these changes, nanosleep.[ch] are finally enough like the other
85261         lib/* replacement files to compile on a few more losing systems.
85262
85263         * lib/nanosleep.h: Don't include config.h.
85264         Remove prototype from declaration of nanosleep.
85265         (PARAMS): Remove now-unneeded definition.
85266         * lib/nanosleep.c: #undef nanosleep.
85267         (rpl_nanosleep): Rename from nanosleep.
85268
85269 2000-02-10  Jim Meyering  <meyering@lucent.com>
85270
85271         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85272         gnu_nanosleep to rpl_nanosleep.
85273
85274 2000-02-09  Jim Meyering  <meyering@lucent.com>
85275
85276         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85277         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85278
85279 2000-02-08  Akim Demaille  <akim@epita.fr>
85280
85281         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85282         `[' and `]' and remove uses of `changequote'.
85283         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85284         (AC_SYS_LARGEFILE): Likewise.
85285         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85286         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85287         of changequote.
85288         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85289         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85290         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85291         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85292
85293 2000-02-05  Jim Meyering  <meyering@lucent.com>
85294
85295         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85296         Remove explicit use of AC_HEADER_TIME.  It is required by
85297         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85298         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85299         in autoconf whereby the expansion of the latter ended up preceding
85300         the expansion of its prerequisite, AC_HEADER_TIME.
85301         Reported by Volker Borchert.
85302
85303 2000-02-03  Jim Meyering  <meyering@lucent.com>
85304
85305         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85306
85307 2000-02-03  Jim Meyering  <meyering@lucent.com>
85308
85309         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85310         rather than with `#if HAVE_UTMPNAME'.
85311
85312 2000-02-02  Jim Meyering  <meyering@lucent.com>
85313
85314         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85315         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85316         Reported by Eli Zaretskii.
85317
85318 2000-02-01  Jim Meyering  <meyering@lucent.com>
85319
85320         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85321
85322 2000-01-31  Jim Meyering  <meyering@lucent.com>
85323
85324         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85325         functions.  Add the time.h and sys/time.h headers along with the
85326         AC_REQUIRE'ment of AC_HEADER_TIME.
85327
85328 2000-01-31  Jim Meyering  <meyering@lucent.com>
85329
85330         * lib/nanosleep.h (nanosleep): Guard declaration with
85331         `#if ! HAVE_DECL_NANOSLEEP'.
85332         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85333         the declaration in that vendor's sys/timers.h.
85334         Reported by Christian Krackowizer.
85335
85336         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85337         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85338         (ISPRINT): Likewise.
85339         Reported by Tom Tromey.
85340
85341 2000-01-30  Jim Meyering  <meyering@lucent.com>
85342
85343         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85344
85345         * m4/prereq.m4 (utmp_includes): Define.
85346         Check for ut_user and ut_name members in both struct utmpx
85347         and struct utmp.
85348
85349 2000-01-30  Jim Meyering  <meyering@lucent.com>
85350
85351         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85352         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85353         header files where only utmpx.ut_user is declared.
85354
85355         * lib/readutmp.h (UT_USER): Define.
85356
85357 2000-01-29  Jim Meyering  <meyering@lucent.com>
85358
85359         * m4/lib-check.m4: New file containing library-related checks from
85360         fileutils and sh-utils (textutils had none).
85361
85362 2000-01-28  Jim Meyering  <meyering@lucent.com>
85363
85364         * m4/perl.m4: Change format of warning message to look more like that
85365         from the missing script.  Suggestion from François Pinard.
85366
85367 2000-01-25  Jim Meyering  <meyering@lucent.com>
85368
85369         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85370         well as time.h in the compile check.
85371         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85372         Fix typo in cross-compiling case: s/yes/no/.
85373
85374 2000-01-23  Jim Meyering  <meyering@lucent.com>
85375
85376         * m4/jm-macros.m4: Move df-related tests here from
85377         fileutils/configure.in
85378
85379         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85380         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85381
85382         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85383         s/space/ac_fsusage_space/.
85384         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85385
85386         * m4/ftruncate.m4: New file (derived from part of
85387         fileutils/configure.in).
85388         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85389         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85390
85391         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85392         AC_SUBST these here, rather than just in sh-util/configure.in, so
85393         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85394         all the same.
85395         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85396         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85397         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85398         (AC_SUBST(POW_LIBM)): Likewise.
85399         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85400
85401 2000-01-23  Jim Meyering  <meyering@lucent.com>
85402
85403         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85404         obstack.c.
85405
85406 2000-01-22  Jim Meyering  <meyering@lucent.com>
85407
85408         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85409
85410         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85411
85412         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85413         configure.in
85414         (AC_CHECK_HEADERS): Likewise for sh-utils.
85415         (AC_CHECK_HEADERS): Likewise for textutils.
85416         Merge the three lists of headers.
85417
85418         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85419         from fileutils' configure.in.
85420
85421         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85422         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85423         check-decl.m4.
85424
85425         * m4/check-decl.m4: Use #if rather than #ifdef.
85426         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85427         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85428         (_jm_DECL_HEADERS): Define new function.
85429         (jm_CHECK_DECLARATIONS): Require it.
85430
85431 2000-01-22  Jim Meyering  <meyering@lucent.com>
85432
85433         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85434         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85435         Required for some AIX systems.  Reported by Christian Krackowizer.
85436         [TESTING] (main): New function.
85437
85438         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85439         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85440         letters.
85441
85442         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85443         iswprint.
85444
85445         * lib/strverscmp.c (ISDIGIT): Define.
85446         (strverscmp): Use ISDIGIT, not isdigit.
85447
85448 2000-01-19  Jim Meyering  <meyering@lucent.com>
85449
85450         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85451         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85452         defines `struct timespec' in <sys/time.h>
85453
85454         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85455         Thanks to Akim for explaining.
85456
85457 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85458
85459         * lib/nanosleep.c (nanosleep):
85460         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85461         POSIX.1 doesn't require SA_INTERRUPT and some systems
85462         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85463         it's been part of POSIX.1 since day 1 (in 1988).
85464
85465 2000-01-17  Jim Meyering  <meyering@lucent.com>
85466
85467         * lib/interlock: Remove unused file.  Reported by François Pinard.
85468
85469 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85470
85471         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85472         alert, backslash, formfeed, and vertical tab unnecessarily in
85473         shell quoting style.
85474
85475 2000-01-16  Jim Meyering  <meyering@lucent.com>
85476
85477         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85478         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85479         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85480         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85481
85482 2000-01-16  Jim Meyering  <meyering@lucent.com>
85483
85484         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85485         because the latter didn't work.
85486
85487 2000-01-15  Jim Meyering  <meyering@lucent.com>
85488
85489         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85490         (AC_REPLACE_FUNCS): Add memcpy and memset.
85491         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85492         Add strpbrk.
85493         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85494
85495 2000-01-12  Jim Meyering  <meyering@lucent.com>
85496
85497         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85498         (jm_PREREQ): Use it.
85499         (jm_PREREQ_READUTMP): New macro.
85500         (jm_PREREQ): Use it.
85501
85502 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85503
85504         Quote multibyte characters correctly.
85505         * m4/c-bs-a.m4: New file.
85506         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85507         (jm_PREREQ): Use it.
85508
85509 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85510
85511         * m4/uintmax_t.m4: Port to autoconf 2.13.
85512
85513 2000-01-08  Jim Meyering  <meyering@ascend.com>
85514
85515         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85516         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85517
85518 2000-01-04  Jim Meyering  <meyering@ascend.com>
85519
85520         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85521         jm_STRUCT_DIRENT_D_TYPE.
85522         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85523         jm_STRUCT_DIRENT_D_INO.
85524         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85525         jm_STRUCT_UTIMBUF.
85526         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85527         renamings.
85528         * m4/utime.m4: Likewise.
85529
85530         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85531         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85532
85533 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85534
85535         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85536         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85537
85538 2000-01-02  Jim Meyering  <meyering@ascend.com>
85539
85540         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85541         remember if this is necessary.
85542
85543 1999-12-26  Jim Meyering  <meyering@ascend.com>
85544
85545         * m4/jm-macros.m4: Use it here.
85546         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85547
85548 1999-12-23  Jim Meyering  <meyering@ascend.com>
85549
85550         * m4/jm-macros.m4: Check for clock_gettime (moved from
85551         fileutils/configure.in)
85552         Check for gettimeofday.
85553
85554 1999-12-20  Jim Meyering  <meyering@ascend.com>
85555
85556         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85557         autoconf-2.14a-1999-12-20.
85558
85559 1999-12-19  Jim Meyering  <meyering@ascend.com>
85560
85561         * m4/lstat-slash.m4: New file.
85562         * m4/jm-macros.m4: Use the new macro:
85563         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85564
85565 1999-12-07  Jim Meyering  <meyering@ascend.com>
85566
85567         * m4/perl.m4: Require that File::Compare be available, too.
85568         Too many systems seem to lack it.
85569
85570         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85571         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85572
85573 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85574
85575         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85576         problem with the QNX 4.25 shell, which doesn't propagate exit
85577         status of failed commands inside shell assignments.
85578
85579 1999-11-17  Jim Meyering  <meyering@ascend.com>
85580
85581         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85582
85583 1999-11-07  Jim Meyering  <meyering@ascend.com>
85584
85585         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85586
85587 1999-11-06  Jim Meyering  <meyering@ascend.com>
85588
85589         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85590         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85591
85592 1999-11-05  Jim Meyering  <meyering@ascend.com>
85593
85594         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85595         configure.in of textutils, fileutils, and sh-utils into this one
85596         (shared between those packages) file.
85597         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85598         AC_STRUCT_ST_BLKSIZE.
85599
85600 1999-11-03  Jim Meyering  <meyering@ascend.com>
85601
85602         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85603         of AC_CHECK_TYPE checks includes unistd.h.
85604         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85605         Suggestion from Akim Demaille.
85606
85607 1999-10-30  Jim Meyering  <meyering@ascend.com>
85608
85609         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85610         m4-quoted string.
85611         * m4/ls-mntd-fs.m4: Likewise.
85612         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85613         * m4/jm-winsz1.m4: Likewise.
85614
85615         * m4/const.m4: Remove file, since the fix made it into the experimental
85616         version of autoconf.
85617         * m4/mktime.m4: Likewise.
85618
85619         * m4/check-type.m4: Remove file, now that the latest version of
85620         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85621
85622         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85623         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85624         AC_CHECK_TYPE.
85625
85626 1999-10-04  Jim Meyering  <meyering@ascend.com>
85627
85628         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85629
85630 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85631
85632         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85633         2.95.1 bug with HP-UX 10.20.
85634
85635 1999-09-17  Jim Meyering  <meyering@ascend.com>
85636
85637         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85638         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85639         due to missing strdup (against sh-utils-2.0).
85640
85641 1999-08-29  Jim Meyering  <meyering@ascend.com>
85642
85643         * m4/jm-macros.m4: Require jm_BISON.
85644         * m4/bison.m4: New file.
85645
85646 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85647
85648         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85649         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85650
85651 1999-08-05  Jim Meyering  <meyering@ascend.com>
85652
85653         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85654         to avoid conflicts with `conftest' on 8+3 filesystems.
85655         Suggestion from Eli Zaretskii.
85656
85657 1999-08-04  Jim Meyering  <meyering@ascend.com>
85658
85659         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85660         fileutils and sh-utils (textutils's getline test was inadequate).
85661         (AM_FUNC_GETLINE): Run this test.
85662         (AC_CHECK_FUNCS): Check for getdelim.
85663         Reported by Bob Proulx.
85664
85665 1999-08-02  Jim Meyering  <meyering@ascend.com>
85666
85667         * m4/jm-macros.m4: Add a comment.
85668
85669 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85670
85671         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85672         <inttypes.h> defines strtoumax as a macro (and not as a
85673         function).
85674
85675 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85676
85677         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85678         that we can shift, multiply and divide unsigned long long
85679         values; Ultrix cc can't do it.
85680
85681 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85682
85683         * m4/mktime.m4: New file, which is a preview of what should appear
85684         in the next public autoconf release.
85685
85686 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85687
85688         * m4/lfs.m4: Remove this file.
85689         * m4/largefile.m4: New file.  It contains the old contents of
85690         lfs.m4, except that all names with prefix AC_LFS have been
85691         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85692         compatible with future autoconf versions.  Also, some minor m4
85693         quoting problems have been fixed.
85694
85695 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85696
85697         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85698         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85699         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85700         and simplify the shell code.
85701
85702 1999-08-01  Jim Meyering  <meyering@ascend.com>
85703
85704         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85705         m4.
85706
85707 1999-07-20  Jim Meyering  <meyering@ascend.com>
85708
85709         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85710
85711 1999-07-15  Jim Meyering  <meyering@ascend.com>
85712
85713         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85714
85715 1999-05-22  Jim Meyering  <meyering@ascend.com>
85716
85717         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85718
85719 1999-05-20  Jim Meyering  <meyering@ascend.com>
85720
85721         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85722         Add a colon after each `then' in case $4 is empty.
85723
85724 1999-05-16  Jim Meyering  <meyering@ascend.com>
85725
85726         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85727
85728 1999-05-10  Jim Meyering  <meyering@ascend.com>
85729
85730         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85731
85732         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85733         AC_FUNC_MKTIME.
85734
85735 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85736
85737         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85738
85739 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85740
85741         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85742         not CPPFLAGS, so that linking works correctly in IRIX.
85743
85744 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85745
85746         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85747
85748 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85749
85750         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85751         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85752         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85753         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85754         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85755
85756         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85757
85758 1999-04-20  Jim Meyering  <meyering@ascend.com>
85759
85760         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85761         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85762         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85763
85764 1999-04-18  Jim Meyering  <meyering@ascend.com>
85765
85766         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85767         * m4/jm-macros.m4: Use it.
85768
85769 1999-04-06  Jim Meyering  <meyering@ascend.com>
85770
85771         * m4/strftime.m4: Remove test for %f.
85772
85773 1999-03-29  Jim Meyering  <meyering@ascend.com>
85774
85775         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85776         superset of the AC_TYPE_* checks in the textutils, fileutils,
85777         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85778         AC_TYPE_PID_T.
85779
85780 1999-03-28  Jim Meyering  <meyering@ascend.com>
85781
85782         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85783         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85784         replaced e.g., in the *.sh files of the sh-utils.
85785
85786 1999-03-20  Jim Meyering  <meyering@ascend.com>
85787
85788         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85789         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85790         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85791
85792 1999-03-19  Jim Meyering  <meyering@ascend.com>
85793
85794         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85795
85796 1999-03-12  Jim Meyering  <meyering@ascend.com>
85797
85798         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85799
85800 1999-03-07  Jim Meyering  <meyering@ascend.com>
85801
85802         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85803         declared.
85804
85805 1999-02-17  Jim Meyering  <meyering@ascend.com>
85806
85807         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85808         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85809
85810 1999-02-07  Jim Meyering  <meyering@ascend.com>
85811
85812         * m4/group-member.m4: New file -- extracted from sh-utils'
85813         configure.in.
85814
85815         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85816         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85817
85818 1999-02-06  Jim Meyering  <meyering@ascend.com>
85819
85820         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85821         * m4/fnmatch.m4: Likewise.
85822         * m4/getgroups.m4: Likewise.
85823         * m4/lstat.m4: Likewise.
85824         * m4/malloc.m4: Likewise.
85825         * m4/putenv.m4: Likewise.
85826         * m4/realloc.m4: Likewise.
85827         * m4/regex.m4: Likewise.
85828         * m4/stat.m4: Likewise.
85829         * m4/strftime.m4: Likewise.
85830         Suggestion from Alain Magloire.
85831
85832         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85833         * m4/fnmatch.m4: Likewise.
85834         * m4/getgroups.m4: Likewise.
85835         * m4/getline.m4: Likewise.
85836         * m4/lstat.m4: Likewise.
85837         * m4/malloc.m4: Likewise.
85838         * m4/memcmp.m4: Likewise.
85839         * m4/putenv.m4: Likewise.
85840         * m4/realloc.m4: Likewise.
85841         * m4/regex.m4: Likewise.
85842         * m4/stat.m4: Likewise.
85843         * m4/strftime.m4: Likewise.
85844         Suggestion from Alain Magloire.
85845
85846         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85847         an argument.
85848
85849         * m4/regex.m4: Add a run-time Test for proper operation of
85850         re_compile_pattern.
85851
85852 1999-01-31  Jim Meyering  <meyering@ascend.com>
85853
85854         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85855
85856 1999-01-30  Jim Meyering  <meyering@ascend.com>
85857
85858         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85859
85860         * m4/jm-mktime.m4: Make this a wrapper around the official
85861         AM_FUNC_MKTIME rather than my private copy, now that the official one
85862         is up to date.
85863         * m4/mktime.m4: Remove file.
85864
85865         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85866         * m4/uptime.m4: Likewise.
85867         * m4/uintmax_t.m4: Likewise.
85868
85869 1999-01-28  Jim Meyering  <meyering@ascend.com>
85870
85871         * m4/jm-macros.m4: Use jm_AFS.
85872         * m4/afs.m4: New file (from fileutils' configure.in).
85873
85874         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85875         * m4/chown.m4: Likewise.
85876         * m4/d-ino.m4: Likewise.
85877         * m4/d-type.m4: Likewise.
85878         * m4/fnmatch.m4: Likewise.
85879         * m4/getgroups.m4: Likewise.
85880         * m4/gettext.m4: Likewise.
85881         * m4/jm-mktime.m4: Likewise.
85882         * m4/jm-winsz2.m4: Likewise.
85883         * m4/lcmessage.m4: Likewise.
85884         * m4/ls-mntd-fs.m4: Likewise.
85885         * m4/malloc.m4: Likewise.
85886         * m4/memcmp.m4: Likewise.
85887         * m4/putenv.m4: Likewise.
85888         * m4/realloc.m4: Likewise.
85889         * m4/st_mtim.m4: Likewise.
85890         * m4/strftime.m4: Likewise.
85891
85892 1999-01-16  Jim Meyering  <meyering@ascend.com>
85893
85894         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85895         (ARGMATCH_DIE_DECL): Define.
85896
85897 1999-01-12  Jim Meyering  <meyering@ascend.com>
85898
85899         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85900         Reported by Lars Hecking.
85901
85902 1999-01-10  Jim Meyering  <meyering@ascend.com>
85903
85904         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85905         gross kludge.
85906         * m4/inttypes_h.m4: Likewise.
85907         * m4/lstat.m4: Likewise.
85908         * m4/malloc.m4: Likewise.
85909         * m4/readdir.m4: Likewise.
85910         * m4/realloc.m4: Likewise.
85911         * m4/st_dm_mode.m4: Likewise.
85912         * m4/stat.m4: Likewise.
85913         * m4/utimbuf.m4: Likewise.
85914         * m4/utimes.m4: Likewise.
85915
85916         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85917         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85918         comments in config.h.in are meaningful.
85919
85920         * m4/jm-macros.m4: Require autoconf-2.13 here.
85921
85922         * m4/regex.m4: By default, don't use the included regex.c on systems
85923         with glibc 2.  Suggestion from Uli Drepper.
85924
85925 1999-01-02  Jim Meyering  <meyering@ascend.com>
85926
85927         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85928
85929 1998-12-18  Jim Meyering  <meyering@ascend.com>
85930
85931         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85932         Based on a suggestion from Lars Hecking.
85933
85934 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85935
85936         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85937
85938 1998-11-16  Jim Meyering  <meyering@ascend.com>
85939
85940         * m4/lfs.m4: Double-quote the `uname...` expression.
85941
85942 1998-11-14  Jim Meyering  <meyering@ascend.com>
85943
85944         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85945         * m4/stat.m4: Likewise.
85946
85947 1998-11-03  Jim Meyering  <meyering@ascend.com>
85948
85949         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85950         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85951
85952 1998-10-18  Jim Meyering  <meyering@ascend.com>
85953
85954         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85955
85956 1998-10-17  Jim Meyering  <meyering@ascend.com>
85957
85958         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85959         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85960         calls for those previously hard-coded headers.  Instead, take a new
85961         parameter.
85962         (jm_CHECK_DECLARATIONS): Reflect interface change.
85963         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85964         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85965
85966         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85967
85968 1998-10-14  Jim Meyering  <meyering@ascend.com>
85969
85970         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85971         instead of "TZ=America/Vancouver".  From Paul Eggert.
85972
85973 1998-10-11  Jim Meyering  <meyering@ascend.com>
85974
85975         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85976         This adds a test for a recently added compatibility fix for mktime.c.
85977         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85978
85979 1998-09-27  Jim Meyering  <meyering@ascend.com>
85980
85981         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85982
85983         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85984         ../configure.in, including a change from Gordon Matzigkeit to allow
85985         cross-compiling for the Hurd.
85986
85987         * m4/glibc.m4: New file/macro to test for the GNU C Library
85988         versions 1 and 2.  From Gordon Matzigkeit.
85989         Indent.
85990
85991 1998-09-21  Jim Meyering  <meyering@ascend.com>
85992
85993         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85994
85995 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85996
85997         Port nanosecond-resolution times to UnixWare 2.1.2 and
85998         pedantic Solaris 2.6.
85999
86000         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86001         AC_STRUCT_ST_MTIM.
86002         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86003         Generate name of ns member, instead of just 1 or undef.
86004         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86005
86006 1998-08-15  Jim Meyering  <meyering@ascend.com>
86007
86008         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86009         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86010         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86011         instead of jm_TYPE_SSIZE_T.
86012
86013 1998-08-12  Jim Meyering  <meyering@ascend.com>
86014
86015         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86016
86017 1998-08-02  Jim Meyering  <meyering@ascend.com>
86018
86019         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86020         in acconfig.h manually.
86021
86022 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86023
86024         * m4/st_mtim.m4: New file.
86025
86026 1998-07-28  Jim Meyering  <meyering@ascend.com>
86027
86028         * m4/utimes.m4: Undef stat.
86029
86030 1998-07-25  Jim Meyering  <meyering@ascend.com>
86031
86032         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86033         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86034
86035 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86036
86037         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86038         uid and gid actually remain unchanged.
86039
86040 1998-07-07  Jim Meyering  <meyering@ascend.com>
86041
86042         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86043
86044 1998-07-04  Jim Meyering  <meyering@ascend.com>
86045
86046         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86047         to prove that this macro can be used in packages without regex.c.
86048
86049 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86050
86051         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86052         is to be used.
86053
86054 1998-07-03  Jim Meyering  <meyering@ascend.com>
86055
86056         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86057
86058         * m4/gettext.m4: New file -- from gettext-0.10.35.
86059         * m4/lcmessage.m4: Likewise.
86060         * m4/progtest.m4: Likewise.
86061
86062         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86063         * m4/jm-macros.m4: Require the new macro.
86064
86065 1998-06-29  Jim Meyering  <meyering@ascend.com>
86066
86067         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86068         for the definition of NGROUPS (used in a system header included
86069         by sys/mount.h).
86070
86071 1998-06-28  Jim Meyering  <meyering@ascend.com>
86072
86073         * m4/ls-mntd-fs.m4: New file.
86074         * m4/fstypename.m4: New file.
86075
86076         * m4/jm-macros.m4: Require the new macro.
86077         * m4/jm-glibc-io.m4: New file.
86078
86079 1998-05-19  Jim Meyering  <meyering@ascend.com>
86080
86081         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86082         * m4/lchown.m4: New file.
86083
86084         * m4/Makefile.am.in: New file.
86085         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86086
86087 1998-05-14  Jim Meyering  <meyering@ascend.com>
86088
86089         * m4/Makefile.am (EXTRA_DIST): Add them.
86090         * m4/jm-macros.m4: New file.
86091         * m4/utimbuf.m4: New file.
86092
86093 1998-05-12  Jim Meyering  <meyering@ascend.com>
86094
86095         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86096
86097 1998-05-11  Jim Meyering  <meyering@ascend.com>
86098
86099         * m4/isc-posix.m4: New file.
86100
86101 1998-05-10  Jim Meyering  <meyering@ascend.com>
86102
86103         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86104
86105 1998-05-09  Jim Meyering  <meyering@ascend.com>
86106
86107         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86108         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86109         with automake.
86110
86111         * m4/ssize_t.m4: New file.
86112         * m4/mktime.m4: Remove file -- the new automake has this now.
86113
86114 1998-04-26  Jim Meyering  <meyering@ascend.com>
86115
86116         * m4/assert.m4: New file.
86117         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86118
86119 1998-04-05  Jim Meyering  <meyering@ascend.com>
86120
86121         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86122         (jm_PREREQ): Use it here.
86123
86124 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86125
86126         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86127         in acconfig.h.
86128
86129 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86130
86131         * m4/prereq.m4: New file.
86132         * m4/error.m4: New file.
86133         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86134
86135 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86136
86137         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86138         cache-check for the same variable -- that defeated the purpose of
86139         the test; the test program was never run.  This was a problem only
86140         on systems with losing getline functions -- HP-UX 10.20 is one.
86141         Reported by Bjorn Helgaas.
86142
86143 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86144
86145         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86146
86147 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86148
86149         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86150
86151         * m4/const.m4: New file.  Use an initializer in this declaration
86152         typedef int charset[2]; const charset x;
86153         Reported by Bob Glickstein.
86154
86155 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86156
86157         * m4/chown.m4: Fix reversed types on -1 args to chown.
86158         From Kaveh Ghazi.
86159
86160 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86161
86162         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86163         Add lseek and memchr.
86164
86165         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86166         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86167         have a 20-character limit on names.
86168
86169 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86170
86171         * m4/inttypes_h.m4: New file.
86172         * m4/uintmax_t.m4: New file.
86173         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86174
86175
86176         -----
86177
86178         Local Variables:
86179         coding: utf-8
86180         End:
86181
86182         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86183
86184         Copying and distribution of this file, with or without
86185         modification, are permitted provided the copyright notice
86186         and this notice are preserved.