Add dependencies to new dirent related modules.
[gnulib.git] / ChangeLog
1 2011-09-17  Bruno Haible  <bruno@clisp.org>
2
3         Add dependencies to new dirent related modules.
4         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5         * modules/fts (Depends-on): Likewise.
6         * modules/glob (Depends-on): Likewise.
7         * modules/savedir (Depends-on): Likewise.
8         * modules/scandir (Depends-on): Likewise.
9         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10         * modules/fdopendir (Depends-on): Add opendir.
11
12 2011-09-17  Bruno Haible  <bruno@clisp.org>
13
14         inet_pton: Support for MSVC on Windows Vista or newer.
15         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
16         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
17         HAVE_DECL_INET_PTON is defined.
18         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
19         On platforms with <winsock2.h>, test whether inet_pton is declared in
20         <ws2tcpip.h>. If so, arrange to replace it.
21         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
22         REPLACE_INET_PTON.
23         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
24         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
25         (Depends-on, configure.ac): Update condition.
26         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
27
28 2011-09-17  Bruno Haible  <bruno@clisp.org>
29
30         inet_ntop: Support for MSVC on Windows Vista or newer.
31         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
32         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
33         HAVE_DECL_INET_NTOP is defined.
34         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
35         On platforms with <winsock2.h>, test whether inet_ntop is declared in
36         <ws2tcpip.h>. If so, arrange to replace it.
37         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
38         REPLACE_INET_NTOP.
39         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
40         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
41         (Depends-on, configure.ac): Update condition.
42         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
43
44 2011-09-16  Eric Blake  <eblake@redhat.com>
45
46         test-fsync: yet another enhancement
47         * tests/test-fsync.c (main): Also test behavior on read-only text
48         file.
49
50 2011-09-16  Bruno Haible  <bruno@clisp.org>
51
52         Enhance fsync, fdatasync tests.
53         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
54         * tests/test-fdatasync.c (main): Likewise.
55
56 2011-09-16  Bruno Haible  <bruno@clisp.org>
57
58         Support for MSVC compiler: Ensure mode_t gets defined.
59         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
60         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
62         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
63         * tests/test-fcntl-h.c: Check that mode_t is defined.
64         * tests/test-sys_stat.c: Likewise.
65         * tests/test-sys_types.c: Likewise.
66         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
67         * doc/posix-headers/sys_stat.texi: Likewise.
68         * doc/posix-headers/sys_types.texi: Likewise.
69
70 2011-09-16  Bruno Haible  <bruno@clisp.org>
71
72         sys_stat: Support for MSVC.
73         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
74         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
75         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
76         MSVC.
77
78 2011-09-16  Bruno Haible  <bruno@clisp.org>
79
80         Support for MSVC compiler: Ensure off_t gets defined.
81         * lib/unistd.in.h: Include <sys/types.h>.
82         * tests/test-fcntl-h.c: Check that off_t is defined.
83         * tests/test-sys_stat.c: Likewise.
84         * tests/test-sys_types.c: Likewise.
85
86 2011-09-16  Eric Blake  <eblake@redhat.com>
87
88         fdatasync: port to Solaris
89         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
90         * modules/fdatasync (Link): Document it.
91         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
92
93         fdatasync: port to MacOS X 10.7
94         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
95         declared.
96         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
97         * modules/unistd (Makefile.am): Substitute it.
98         * lib/unistd.in.h (fdatasync): Declare on MacOS.
99         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
100
101         fdatasync: minor improvements
102         * modules/fdatasync (Depends-on): Add condition for fsync.
103         * lib/fdatasync.c (fdatasync): Add comment.
104         * tests/test-unistd-c++.cc: Test fdatasync.
105
106         unistd: update refs to newer POSIX
107         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
108         Suggested by Bruno Haible.
109
110         fdatasync: new module
111         * modules/fsync (Description): Document difference to fdatasync.
112         * modules/fdatasync: New module.
113         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
114         * lib/fdatasync.c (fdatasync): Likewise.
115         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
116         defaults.
117         * modules/unistd (Makefile.am): Set witnesses.
118         * lib/unistd.in.h (fdatasync): Declare.
119         * MODULES.html.sh: Document it.
120         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
121         * modules/fdatasync-tests: New test.
122         * tests/test-fdatasync.c: Likewise.
123
124 2011-09-16  Eric Blake  <eblake@redhat.com>
125
126         test-fsync: enhance tests
127         * modules/fsync-tests (Depends-on): Add errno, for mingw.
128         * tests/test-fsync.c (main): Enhance test.
129
130 2011-09-15  Bruno Haible  <bruno@clisp.org>
131
132         Support for MSVC compiler: Ensure ssize_t gets defined.
133         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
134         * doc/posix-headers/stdio.texi: Likewise.
135         * modules/stdio (Depends-on): Add ssize_t.
136         * modules/sys_socket (Depends-on): Likewise.
137         * modules/sys_types (Depends-on): Likewise.
138         * modules/sys_uio (Depends-on): Likewise.
139         * modules/unistd (Depends-on): Likewise.
140         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
141         * tests/test-sys_types.c: Check that ssize_t is defined.
142
143 2011-09-14  Bruno Haible  <bruno@clisp.org>
144
145         Avoid using #, the m4 comment starter character, near brackets.
146         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
147         delimiter character in sed expressions.
148         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
149         Suggested by Eric Blake.
150
151         Properly quote AC_CHECK_DECLS' 4th argument.
152         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
153         argument.
154         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
155         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
156         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
157         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
158         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
159         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
160         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
161         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
162         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
163         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
164         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
165         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
166         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
167         * m4/isinf.m4 (gl_ISINF): Likewise.
168         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
169         * m4/readutmp.m4 (gl_READUTMP): Likewise.
170         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
171         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
172         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
173         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
174         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
175         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
176         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
177         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
178         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
179         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
181         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
183         Reported by Eric Blake.
184
185         Properly quote AC_CHECK_DECL's 4th argument.
186         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
187         argument.
188         * m4/argp.m4 (gl_ARGP): Likewise.
189         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
190         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
191         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
192         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
193         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
194         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
195         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
196         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
197         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
198         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
199         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
200         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
201         Reported by Eric Blake.
202
203 2011-09-14  Eric Blake  <eblake@redhat.com>
204
205         opendir: avoid compile warning
206         * lib/opendir.c (includes): Always include errno.h.
207         Reported by Tatsuro MATSUOKA.
208
209 2011-09-14  Jim Meyering  <meyering@redhat.com>
210
211         maint.mk: sc_tight_scope: propagate failure from sub-make
212         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
213         Reported by Martin von Gagern.
214
215 2011-09-13  Bruno Haible  <bruno@clisp.org>
216
217         tempname: Support for MSVC.
218         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
219         MSVC.
220         * modules/tempname (Depends-on): Add fcntl-h.
221
222 2011-09-13  Bruno Haible  <bruno@clisp.org>
223
224         sys_time: Support for MSVC.
225         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
226         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
227         include <winsock2.h>.
228         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
229         function declarations that collide with POSIX.
230         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
231         (Makefile.am): Substitute HAVE_WINSOCK2_H.
232
233 2011-09-13  Bruno Haible  <bruno@clisp.org>
234
235         stat: Support for MSVC.
236         * lib/stat.c: Include pathmax.h.
237         * modules/stat (Depends-on): Add pathmax.
238
239         pathmax: Support for native Windows.
240         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
241
242 2011-09-12  Bruno Haible  <bruno@clisp.org>
243
244         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
245         * lib/dirent.in.h (struct dirent): New type.
246         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
247         DT_WHT): New macros.
248         (DIR): New type.
249         (opendir, closedir): Declare only if the module 'opendir' is enabled.
250         (readdir, rewinddir): New declarations.
251         * lib/dirent-private.h: New file.
252         * lib/opendir.c: New file.
253         * lib/readdir.c: New file.
254         * lib/rewinddir.c: New file.
255         * lib/closedir.c: New file.
256         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
257         * m4/opendir.m4: New file.
258         * m4/readdir.m4: New file.
259         * m4/rewinddir.m4: New file.
260         * m4/closedir.m4: New file.
261         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
262         REPLACE_CLOSEDIR here.
263         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
264         readdir, rewinddir are declared.
265         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
266         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
267         HAVE_REWINDDIR, HAVE_CLOSEDIR.
268         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
269         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
270         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
271         * modules/opendir: New file.
272         * modules/readdir: New file.
273         * modules/rewinddir: New file.
274         * modules/closedir: New file.
275         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
276         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
277         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
278         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
279         * NEWS: Mention the 'fchdir' change.
280
281 2011-09-11  Bruno Haible  <bruno@clisp.org>
282
283         asm-underscore.m4: Support for MSVC.
284         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
285         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
286
287 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
288
289         Doc about crypt functions.
290         * doc/posix-functions/crypt.texi: Expand range of glibc versions
291         needing for _GNU_SOURCE to get crypt.
292         * doc/posix-functions/encrypt.texi: Likewise.
293         * doc/posix-functions/setkey.texi: Likewise.
294
295 2011-09-11  Bruno Haible  <bruno@clisp.org>
296
297         doc: Update regarding MSVC 9.
298         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
299         tested".
300         * doc/posix-functions/*.texi: Update with info about MSVC 9.
301         * doc/posix-headers/*.texi: Likewise.
302         * doc/pastposix-functions/*.texi: Likewise.
303         * doc/glibc-functions/*.texi: Likewise.
304         * doc/glibc-headers/*.texi: Likewise.
305
306 2011-09-11  Bruno Haible  <bruno@clisp.org>
307
308         unistd et al.: Don't assume <unistd.h> exists.
309         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
310         does not exist.
311         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
312         exist. But include <stdlib.h>.
313         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
314         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
315         symlink() does not exist.
316         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
317         include <io.h> instead.
318         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
319         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
320         include <direct.h> instead.
321         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
322         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
323         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
324         <io.h> instead.
325         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
326         correctly if the system does not have hard links.
327         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
328         <direct.h> instead.
329         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
330         it when looking for function declarations.
331         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
332         <direct.h> and <io.h> instead.
333         * doc/posix-headers/unistd.texi: More details about MSVC problem.
334
335 2011-09-11  Bruno Haible  <bruno@clisp.org>
336
337         strcase: Support for MSVC.
338         * modules/strcase (Status, Notice): Remove obsoletion mark.
339         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
340         * doc/posix-functions/strncasecmp.texi: Likewise.
341
342         strings: Don't assume <strings.h> exists.
343         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
344         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
345         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
346         * doc/posix-headers/strings.texi: Mention the MSVC problem.
347
348 2011-09-11  Bruno Haible  <bruno@clisp.org>
349
350         dirent: Don't assume <dirent.h> exists.
351         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
352         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
353         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
354         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
355
356 2011-09-11  Bruno Haible  <bruno@clisp.org>
357
358         Fix wint_t on MSVC.
359         * lib/wchar.in.h (wint_t): On MSVC, override it.
360         * lib/wctype.in.h (wint_t): Likewise.
361         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
362         MSVC.
363         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
364         * doc/posix-headers/wctype.texi: Likewise.
365
366 2011-09-11  Bruno Haible  <bruno@clisp.org>
367
368         sys_types: Fix typo.
369         * lib/sys_types.in.h: Fix typo in comment.
370         Reported by Paul Eggert.
371
372         Support for MSVC compiler: Ensure size_t gets defined.
373         * modules/strings (Depends-on): Add 'sys_types'.
374         * modules/sys_uio (Depends-on): Likewise.
375         * lib/sys_uio.in.h: Update comment.
376
377         C++ tests for module 'sys_types'.
378         * modules/sys_types-c++-tests: New file.
379         * tests/test-sys_types-c++.cc: New file.
380
381         Tests for module 'sys_types'.
382         * modules/sys_types-tests: New file.
383         * tests/test-sys_types.c: New file.
384
385         New module 'sys_types'.
386         * lib/sys_types.in.h: New file.
387         * m4/sys_types_h.m4: New file.
388         * modules/sys_types: New file.
389         * doc/posix-headers/sys_types.texi: Mention the new module and the
390         size_t problem on MSVC 9.
391
392 2011-09-11  Bruno Haible  <bruno@clisp.org>
393
394         Support for MSVC compiler: Avoid division by a literal 0.
395         * lib/math.in.h (NAN): Define through a function call also on MSVC.
396         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
397         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
398         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
399         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
400         * tests/infinity.h: New file.
401         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
402         on MSVC.
403         * tests/test-ceilf1.c: Include infinity.h.
404         (main): Use Infinityf.
405         * tests/test-ceil1.c: Include infinity.h.
406         (main): Use Infinityd.
407         * tests/test-ceill.c: Include infinity.h.
408         (main): Use Infinityl.
409         * tests/test-dprintf-posix.c: Include infinity.h.
410         (test_function): Use Infinityd.
411         * tests/test-floorf1.c: Include infinity.h.
412         (main): Use Infinityf.
413         * tests/test-floor1.c: Include infinity.h.
414         (main): Use Infinityd.
415         * tests/test-floorl.c: Include infinity.h.
416         (main): Use Infinityl.
417         * tests/test-fprintf-posix.c: Include infinity.h.
418         (test_function): Use Infinityd.
419         * tests/test-frexp.c: Include infinity.h.
420         (main): Use Infinityd.
421         * tests/test-frexpl.c: Include infinity.h.
422         (main): Use Infinityl.
423         * tests/test-isfinite.c: Include infinity.h.
424         (test_isfinitef): Use Infinityf.
425         (test_isfinited): Use Infinityd.
426         (test_isfinitel): Use Infinityl.
427         * tests/test-isinf.c: Include infinity.h.
428         (test_isinff): Use Infinityf.
429         (test_isinfd): Use Infinityd.
430         (test_isinfl): Use Infinityl.
431         * tests/test-isnan.c: Include infinity.h.
432         (test_float): Use Infinityf.
433         (test_double): Use Infinityd.
434         (test_long_double): Use Infinityl.
435         * tests/test-isnanf.h: Include infinity.h.
436         (main): Use Infinityf.
437         * tests/test-isnand.h: Include infinity.h.
438         (main): Use Infinityd.
439         * tests/test-isnanl.h: Include infinity.h.
440         (main): Use Infinityl.
441         * tests/test-ldexpl.c: Include infinity.h.
442         (main): Use Infinityl.
443         * tests/test-printf-posix.h: Include infinity.h.
444         (test_function): Use Infinityd.
445         * tests/test-roundf1.c: Include infinity.h.
446         (main): Use Infinityf.
447         * tests/test-round1.c: Include infinity.h.
448         (main): Use Infinityd.
449         * tests/test-roundl.c: Include infinity.h.
450         (main): Use Infinityl.
451         * tests/test-signbit.c: Include infinity.h.
452         (test_signbitf): Use Infinityf.
453         (test_signbitd): Use Infinityd.
454         (test_signbitl): Use Infinityl.
455         * tests/test-snprintf-posix.h: Include infinity.h.
456         (test_function): Use Infinityd, Infinityl.
457         * tests/test-sprintf-posix.h: Include infinity.h.
458         (test_function): Use Infinityd, Infinityl.
459         * tests/test-truncf1.c: Include infinity.h.
460         (main): Use Infinityf.
461         * tests/test-trunc1.c: Include infinity.h.
462         (main): Use Infinityd.
463         * tests/test-truncl.c: Include infinity.h.
464         (main): Use Infinityl.
465         * tests/test-vasnprintf-posix.c: Include infinity.h.
466         (test_function): Use Infinityd, Infinityl.
467         * tests/test-vasprintf-posix.c: Include infinity.h.
468         (test_function): Use Infinityd, Infinityl.
469         * modules/ceilf-tests (Files): Add tests/infinity.h.
470         * modules/ceil-tests (Files): Likewise.
471         * modules/ceill-tests (Files): Likewise.
472         * modules/dprintf-posix-tests (Files): Likewise.
473         * modules/floorf-tests (Files): Likewise.
474         * modules/floor-tests (Files): Likewise.
475         * modules/floorl-tests (Files): Likewise.
476         * modules/fprintf-posix-tests (Files): Likewise.
477         * modules/frexp-tests (Files): Likewise.
478         * modules/frexp-nolibm-tests (Files): Likewise.
479         * modules/frexpl-tests (Files): Likewise.
480         * modules/frexpl-nolibm-tests (Files): Likewise.
481         * modules/isfinite-tests (Files): Likewise.
482         * modules/isinf-tests (Files): Likewise.
483         * modules/isnan-tests (Files): Likewise.
484         * modules/isnanf-tests (Files): Likewise.
485         * modules/isnanf-nolibm-tests (Files): Likewise.
486         * modules/isnand-tests (Files): Likewise.
487         * modules/isnand-nolibm-tests (Files): Likewise.
488         * modules/isnanl-tests (Files): Likewise.
489         * modules/isnanl-nolibm-tests (Files): Likewise.
490         * modules/ldexpl-tests (Files): Likewise.
491         * modules/printf-posix-tests (Files): Likewise.
492         * modules/roundf-tests (Files): Likewise.
493         * modules/round-tests (Files): Likewise.
494         * modules/roundl-tests (Files): Likewise.
495         * modules/signbit-tests (Files): Likewise.
496         * modules/snprintf-posix-tests (Files): Likewise.
497         * modules/sprintf-posix-tests (Files): Likewise.
498         * modules/truncf-tests (Files): Likewise.
499         * modules/trunc-tests (Files): Likewise.
500         * modules/truncl-tests (Files): Likewise.
501         * modules/vasnprintf-posix-tests (Files): Likewise.
502         * modules/vasprintf-posix-tests (Files): Likewise.
503         * modules/vdprintf-posix-tests (Files): Likewise.
504         * modules/vfprintf-posix-tests (Files): Likewise.
505         * modules/vprintf-posix-tests (Files): Likewise.
506         * modules/vsnprintf-posix-tests (Files): Likewise.
507         * modules/vsprintf-posix-tests (Files): Likewise.
508         * modules/xprintf-posix-tests (Files): Likewise.
509
510 2011-09-11  Bruno Haible  <bruno@clisp.org>
511
512         Ensure pid_t gets defined.
513         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
514         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
515         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
516         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
517         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
518         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
519         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
520         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
521         * tests/test-fcntl-h.c: Check that pid_t is defined.
522         * tests/test-sched.c: Likewise.
523         * tests/test-termios.c: Likewise.
524         * tests/test-time.c: Likewise.
525         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
526         * doc/posix-headers/signal.texi: Likewise.
527         * doc/posix-headers/sys_types.texi: Likewise.
528         * doc/posix-headers/time.texi: Likewise.
529
530 2011-09-11  Bruno Haible  <bruno@clisp.org>
531
532         acl: Fix compilation on Solaris 10 (older version).
533         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
534         of ACE_EVERYONE.
535         * lib/set-mode-acl.c (qset_acl): Likewise.
536         Reported by Christian Jullien <eligis@orange.fr>.
537
538 2011-09-10  Bruno Haible  <bruno@clisp.org>
539
540         iconv, unsetenv: Add support for MSVC compiler.
541         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
542         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
543
544 2011-09-10  Bruno Haible  <bruno@clisp.org>
545
546         *printf: Add support for MSVC compiler.
547         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
548         handles the exception caused by the %n directive. When cross-compiling,
549         guess no on native Windows.
550         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
551         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
552         emulate it through vsnprintf.
553         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
554         * doc/posix-functions/dprintf.texi: Update documentation regarding
555         MSVC 9.
556         * doc/posix-functions/fprintf.texi: Likewise.
557         * doc/posix-functions/printf.texi: Likewise.
558         * doc/posix-functions/snprintf.texi: Likewise.
559         * doc/posix-functions/sprintf.texi: Likewise.
560         * doc/posix-functions/swprintf.texi: Likewise.
561         * doc/posix-functions/vdprintf.texi: Likewise.
562         * doc/posix-functions/vfprintf.texi: Likewise.
563         * doc/posix-functions/vprintf.texi: Likewise.
564         * doc/posix-functions/vsnprintf.texi: Likewise.
565         * doc/posix-functions/vsprintf.texi: Likewise.
566         * doc/glibc-functions/asprintf.texi: Likewise.
567         * doc/glibc-functions/obstack_printf.texi: Likewise.
568         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
569         * doc/glibc-functions/vasprintf.texi: Likewise.
570
571 2011-09-10  Bruno Haible  <bruno@clisp.org>
572
573         nocrash: Add support for native Windows.
574         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
575
576 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
577             Bruno Haible  <bruno@clisp.org>
578
579         absolute-header, include-next: Add support for MSVC compiler.
580         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
581         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
582         directory separator in #line directives.
583         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
584         recognize also backslash as directory separator in #line directives.
585
586 2011-09-08  Jim Meyering  <meyering@redhat.com>
587
588         maint.mk: mark the post-release commit log with "maint: " prefix
589         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
590         one-line commit-log summary.
591
592 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
593             Bruno Haible  <bruno@clisp.org>
594
595         Doc about crypt functions.
596         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
597         systems.
598         * doc/posix-functions/encrypt.texi: Likewise.
599         * doc/posix-functions/setkey.texi: Likewise.
600
601 2011-09-08  Simon Josefsson  <simon@josefsson.org>
602
603         * lib/gc.h: Fix copyright header.
604
605 2011-09-07  Bruno Haible  <bruno@clisp.org>
606
607         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
608         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
609         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
610
611 2011-09-07  Bruno Haible  <bruno@clisp.org>
612
613         openat: Work around compilation error with OSF/1 5.1 DTK cc.
614         * lib/fopen.c: Use different syntax for include of <stdio.h>.
615         * lib/freopen.c: Likewise.
616         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
617         * lib/lstat.c: Likewise.
618         * lib/stat.c: Likewise.
619         * lib/open.c: Use different syntax for include of <fcntl.h>.
620         * lib/openat.c: Include fcntl.h again, explicitly.
621
622 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
623
624         parse-datetime: document the newly accepted format
625         * doc/parse-datetime.texi (Combined date and time of day items):
626         New section.
627
628 2011-09-06  Bruno Haible  <bruno@clisp.org>
629
630         acl: Fix a test failure on newer Solaris 10 with ZFS.
631         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
632         ENOSYS as no ACL.
633         Reported by Jim Meyering.
634
635 2011-09-06  Bruno Haible  <bruno@clisp.org>
636
637         acl: Update for AIX >= 5.3 with NFS.
638         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
639         ENOSYS as no ACL.
640
641         acl: Fix a test failure on AIX >= 5.3 with NFS.
642         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
643         as no ACL.
644
645 2011-09-06  Bruno Haible  <bruno@clisp.org>
646
647         acl: Fix a test failure on IRIX 6.5 with NFS.
648         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
649         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
650         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
651         * lib/copy-acl.c (qcopy_acl): Likewise.
652
653 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
654
655         openat: port to AIX 7.1 with large files
656         AIX 7.1 does a "#define openat open64at" if large files are in use,
657         so we can't simply #undef openat.  Use the orig_openat trick (similar
658         to orig_open in lib/open.c) to work around the problem.  Problem
659         reported by Kevin Brott for GNU tar, in the thread containing
660         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
661         * lib/openat.c (__need_system_fcntl_h): Define first.
662         Include <fcntl.h> and <sys/types.h> before undefining.
663         (orig_openat) [HAVE_OPENAT]: New inline function.
664         (openat) [HAVE_OPENAT]: Do not undef.
665         (rpl_openat): Use orig_openat, not openat.
666
667 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
668             Bruno Haible  <bruno@clisp.org>
669
670         acl: Avoid errors on NonStop Kernel.
671         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
672         ENOTSUP errors.
673
674 2011-09-05  Bruno Haible  <bruno@clisp.org>
675
676         acl: Clean up Solaris code.
677         * lib/acl-internal.h: Remove no-op #if.
678         * lib/file-has-acl.c: Likewise.
679         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
680         * lib/copy-acl.c (qcopy_acl): Likewise.
681
682 2011-09-05  Bruno Haible  <bruno@clisp.org>
683
684         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
685         binaries built on the original Solaris 10.
686         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
687         trivial.
688
689 2011-09-05  Bruno Haible  <bruno@clisp.org>
690
691         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
692         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
693         10.
694         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
695         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
696         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
697         instead of acl_get, facl_get, acl_set, facl_set.
698
699 2011-09-05  Bruno Haible  <bruno@clisp.org>
700
701         copy-file: Try unit tests on more file systems.
702         * tests/test-copy-file-1.sh: New file.
703         * tests/test-copy-file-2.sh: New file.
704         * modules/copy-file-tests (Files): Add them.
705         (Makefile.am): Add them to TESTS.
706
707         acl: Try unit tests on more file systems.
708         * tests/test-file-has-acl-1.sh: New file.
709         * tests/test-file-has-acl-2.sh: New file.
710         * tests/test-set-mode-acl-1.sh: New file.
711         * tests/test-set-mode-acl-2.sh: New file.
712         * tests/test-copy-acl-1.sh: New file.
713         * tests/test-copy-acl-2.sh: New file.
714         * modules/acl-tests (Files): Add them.
715         (Makefile.am): Add them to TESTS.
716
717 2011-09-04  Bruno Haible  <bruno@clisp.org>
718
719         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
720         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
721         10.
722         (OLD_ALLOW, OLD_DENY): New macros.
723         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
724         ACE_ACCESS_ALLOWED_ACE_TYPE.
725         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
726         ACE_ACCESS_DENIED_ACE_TYPE.
727         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
728         (NEW_ACE_EXECUTE): Fix value.
729         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
730         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
731         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
732         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
733         NEW_ACE_SYNCHRONIZE): New macros.
734         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
735         instead of acl_fromtext, acl_set, facl_set.
736         Fixes a coreutils/tests/cp/perm failure.
737
738 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
739
740         openat: test for fstatat (..., 0) bug
741         Further testing with tar suggests that fstatat (..., 0)
742         does not work in general, on AIX 7.1; see
743         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
744         So, give up entirely on AIX 7.1's fstatat, and fall back on our
745         replacement fstatat (which is what older AIX releases were using
746         anyway).
747         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
748         use is now changed to orig_fstatat.  This was probably the right
749         thing to do anyway.
750         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
751         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
752         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
753         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
754         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
755         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
756         if the bug is found.
757
758         openat: test for fstatat (AT_FDCWD, ..., 0) bug
759         This tests for another fstatat bug on AIX 7.1:
760         fstatat (AT_FDCWD, ..., 0) does not work.  See
761         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
762         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
763         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
764         (rpl_fstatat): Adjust so that it works around either (or both)
765         bugs if present.
766         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
767
768 2011-09-03  Karl Berry  <karl@gnu.org>
769
770         * doc/regex.texi (Character Class Operators): Avoid literal ":"
771         in index entries.
772
773 2011-09-02  Bruno Haible  <bruno@clisp.org>
774
775         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
776         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
777         values of AR, ARFLAGS, RANLIB.
778         Reported by John W. Eaton <jwe@gnu.org> for Octave.
779
780 2011-09-02  Bruno Haible  <bruno@clisp.org>
781
782         Find 'ar' program that fits with --host argument.
783         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
784
785 2011-09-02  Bruno Haible  <bruno@clisp.org>
786
787         tests: init.sh: Support any non-GNU diff.
788         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
789         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
790         Solaris 8.
791
792 2011-09-02  Bruno Haible  <bruno@clisp.org>
793
794         tests: init.sh: work also with any non-GNU diff that supports -u
795         * tests/init.sh: Relax check for diff -u support.
796         Rather than checking for GNU diff via --version, simply check
797         for support for -u itself.  Useful at least on OpenBSD 4.9,
798         AIX 7.1, IRIX 6.5, and Solaris 10.
799
800 2011-09-01  Bruno Haible  <bruno@clisp.org>
801
802         strtoimax, strtoumax: Document problem on HP-UX 11.
803         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
804         * doc/posix-functions/strtoumax.texi: Likewise.
805
806 2011-09-01  Bruno Haible  <bruno@clisp.org>
807
808         strtoumax: Avoid link error on OSF/1 with DTK cc.
809         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
810         defined as a function.
811         * modules/strtoumax (Depends-on, configure.ac): Test only whether
812         strtoumax is defined, not whether it is declared.
813
814 2011-09-01  Bruno Haible  <bruno@clisp.org>
815
816         strtoimax: Avoid link error on OSF/1 with DTK cc.
817         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
818         defined as a function.
819         * modules/strtoimax (Depends-on, configure.ac): Test only whether
820         strtoimax is defined, not whether it is declared.
821
822 2011-09-01  Bruno Haible  <bruno@clisp.org>
823
824         imaxdiv: Avoid link error on OSF/1 with DTK cc.
825         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
826         as a function.
827         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
828         whether it is declared.
829
830 2011-09-01  Bruno Haible  <bruno@clisp.org>
831
832         imaxabs: Avoid link error on OSF/1 with DTK cc.
833         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
834         as a function.
835         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
836         whether it is declared.
837
838 2011-09-01  Bruno Haible  <bruno@clisp.org>
839
840         Tests for module 'strtoumax'.
841         * modules/strtoumax-tests: New file.
842         * tests/test-strtoumax.c: New file.
843
844         Tests for module 'strtoimax'.
845         * modules/strtoimax-tests: New file.
846         * tests/test-strtoimax.c: New file.
847
848         Tests for module 'imaxdiv'.
849         * modules/imaxdiv-tests: New file.
850         * tests/test-imaxdiv.c: New file.
851
852         Tests for module 'imaxabs'.
853         * modules/imaxabs-tests: New file.
854         * tests/test-imaxabs.c: New file.
855
856 2011-09-01  Bruno Haible  <bruno@clisp.org>
857
858         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
859         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
860         pthread_create.
861
862 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
863
864         openat: work around AIX 7.1 fstatat issue
865         This should fix the problem that was not properly fixed
866         in the previous change, dated 2011-08-30.
867         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
868         __need_system_stat_h defined.
869         (orig_fstatat) [HAVE_FSTATAT]: New function.
870         (rpl_fstatat): Go back to the old way of doing things,
871         except call orig_fstatat instead of fstatat.
872         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
873         Remove unnecessary check whether fstatat fills in st_size etc.
874
875 2011-09-01  Bruno Haible  <bruno@clisp.org>
876
877         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
878         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
879         just include the system's header.
880
881 2011-08-31  Jim Meyering  <meyering@redhat.com>
882
883         tests: avoid spurious assertion failure in test-float.c on ppc64
884         * tests/test-float.c (test_long_double): Comment out an assertion,
885         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
886         with gcc-4.4.4.
887
888         maint: indent with spaces, not TABs
889         I need to get in the habit of running gnulib's "make check".
890         Both of these would have been caught.
891         * m4/largefile.m4: Indent with spaces, not TABs.
892         * lib/parse-datetime.y (iso_8601_time): Likewise.
893         Spotted by Pádraig Brady.
894
895         test-parse-datetime.c: accommodate a relatively strict gcc warning
896         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
897         to avoid a warning from gcc's -Werror=missing-declarations.
898         Insert a few spaces-before-funcall-parenthesis.
899
900 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
901
902         parse-datetime: accept ISO 8601 date and time rep with "T" separator
903         The parser now accepts ISO 8601 date-time strings with "T" as the
904         separator.  It has long parsed dates like "2004-02-29 16:21:42"
905         with a space between the date and time strings.  Now it also parses
906         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
907         variants like "2004-02-29T16:21:42.333-07:00"
908         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
909         of day representation using the 'T' separator character.
910         * doc/parse-datetime.texi (General date syntax): replace use of
911         deprecated --iso-8601 option with --rfc-3339 in example of date
912         command output formats that can be parsed.
913         * tests/test-parse-datetime.c (tm_diff): New function, taken from
914         lib/parse-datetime.y.
915         (gmt_offset): New function.
916         (main): Add additional test cases to validate ISO8601 extended
917         date and time of day parsing.
918
919 2011-08-31  Bruno Haible  <bruno@clisp.org>
920
921         freopen: Documentation.
922         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
923         name.
924         Reported by Claudio Bley <claudio.bley@gmail.com>.
925
926 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
927
928         freopen: Don't crash if the filename argument is NULL.
929         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
930         NULL.
931
932 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
933
934         openat: work around AIX 7.1 fstatat bug
935         Problem reported by Kevin Brott for GNU tar, in the thread containing
936         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
937         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
938         FSTATAT_ST_SIZE_ETC_BROKEN.
939         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
940         rpl_fstatat.
941         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
942         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
943         AC_CHECK_FUNCS_ONCE for fstatat.
944         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
945         fchmodat, mkdirat, openat and unlinkat.
946
947 2011-08-30  Bruno Haible  <bruno@clisp.org>
948
949         Avoid endless recursions if config.h includes some header files.
950         * lib/fopen.c (__need_FILE): Define already before including config.h.
951         * lib/freopen.c (__need_FILE): Likewise.
952         * lib/open.c (__need_system_fcntl_h): Likewise.
953         * lib/stat.c (__need_system_sys_stat_h): Likewise.
954         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
955         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
956
957 2011-08-25  Karl Berry  <karl@gnu.org>
958
959         * config/srclist.txt (ylwrap): new try.
960         * build-aux/ylwrap: new file.
961
962 2011-08-23  Bruno Haible  <bruno@clisp.org>
963
964         tmpdir: Use a good default directory on native Windows.
965         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
966         (P_tmpdir): Default to _P_tmpdir on native Windows.
967         (path_search): On native Windows, try the value returned by GetTempPath
968         before trying P_tmpdir.
969         * modules/tmpdir (Depends-on): Add pathmax.
970         Suggested by John Darrington <john@darrington.wattle.id.au>.
971
972 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
973
974         doc: fix typo in README-release
975         * top/README-release: Capitalize first word of a sentence.
976
977 2011-08-19  Jim Meyering  <meyering@redhat.com>
978
979         fts: do not exhaust memory when processing million-entry directories
980         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
981         directory would require about 256*N bytes of memory.  Thus, it was
982         easy to construct a directory too large to be processed by any of
983         those tools.  With this change, fts' maximum memory utilization is
984         now limited to around 30MB.
985         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
986         (fts_read): When we've processed the final entry (i.e., when
987         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
988         using the parent entry to read any remaining entries.  Dispatch
989         depending on what fts_build returns:
990         - NULL+stop, aka failure: stop
991         - NULL otherwise: move up in the dir hierarchy
992         - non-NULL: handle this new entry
993         (fts_build): Declare and use new local, continue_readdir.
994         Prepare to be called from fts_read, when the entries
995         from a partially-read directory have just been exhausted.
996         In that case, we'll skip the opendir and instead use the parent's
997         fts_dirp and derive dir_fd from that.
998         Finally, in the readdir loop, if we read max_entries entries,
999         exit the loop ensuring *not* to call closedir.  This is required
1000         so that fts_dirp can be reused on a subsequent call.
1001         Prompted by Ben England's report of memory exhaustion in find
1002         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1003
1004         maint: fts: move decl of `dp' down into while loop; split a long line
1005         * lib/fts.c (fts_build): No semantic change.
1006
1007         fts: add/use new struct member, fts_dirp
1008         We are about to use this to manage any directory with
1009         too many entries to read all of them into memory at once.
1010         To do that, we'll need to save the DIR* pointer in each
1011         affected FTSENT struct.
1012         * lib/fts_.h: Include <dirent.h>.
1013         (struct FTSENT) [fts_dirp]: New member.
1014         * lib/fts.c (closedir_and_clear): Define.
1015         Use it in place of closedir so that we are sure to
1016         clear the new fts_dirp member when done with it.
1017         (fts_alloc): Initialize the new member.
1018         (fts_lfree): Free, if needed.
1019
1020         maint: fts: give __opendir2 a new parameter and rename
1021         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1022         than surreptitiously using sole caller's "dir_fd".
1023         (fts_opendir): Rename from __opendir2.
1024
1025         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1026         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1027
1028         maint: fts.c: correct off-by-one indentation
1029         * lib/fts.c (fts_build): Correct indentation, change style
1030         of a couple of block comments, and bracing style.
1031
1032         maint: fts.c: move __opendir2 #define "up" out of function body
1033         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1034
1035         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1036         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1037         out for a long time and besides was useful only on BSD systems.
1038
1039 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1040
1041         regex: port to Stratus OpenVOS
1042         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1043         define to empty, rather than attempting nonportable optimizations.
1044         Problem reported by Paul Green in:
1045         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1046         and fix suggested by Eric Blake in:
1047         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1048
1049 2011-08-17  Eric Blake  <eblake@redhat.com>
1050
1051         getcwd: fix test failures on mingw
1052         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1053         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1054         test if long directory cannot be created, and allow mingw errno.
1055
1056         getcwd-lgpl: fix m4 to match relaxed test for BSD
1057         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1058         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1059         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1060         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1061         signature problem.
1062
1063         getcwd: fix compilation on mingw64
1064         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1065         getcwd.
1066         Reported by Marc-André Lureau.
1067
1068         pipe2: silence compiler warning
1069         * lib/pipe2.c (pipe2): Hide label if it is not used.
1070
1071 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1072
1073         relocatable-prog: fix link error
1074         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1075         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1076         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1077         into modules/relocatable-lib without noticing that
1078         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1079         also needs to build relocatable.c.
1080
1081 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1082
1083         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1084         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1085         shell code: it contained a 'break' that was not in a loop.
1086         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1087         via a shell-language loop; this may have been true in old Autoconf
1088         versions, but it's not true in Autoconf 2.68.  I found this bug
1089         when testing coreutils git on Solaris 8, whose shell complains
1090         about the syntax error.
1091
1092 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1093
1094         * lib/base64.c: Fix comment to reference RFC 4648.
1095         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1096         <gvtulder@gmail.com>.
1097
1098 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1099
1100         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1101
1102         po/Makefile.in.in: fix make -q problem
1103         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1104         rule, since there's no file named 'check-macro-version' and its
1105         use as a file breaks make -q.
1106         (all): Don't depend on check-macro-version.
1107         (CHECK_MACRO_VERSION): New macro.
1108         (stamp-po): Use it.
1109
1110         configmake: fix make -q problem
1111         * modules/configmake (configmake.h): Update configmake.h's time stamp
1112         even if the file does not change.  Otherwise, 'make -q' fails.
1113         Problem reported by Simon Josefsson in
1114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1115
1116 2011-08-11  Jim Meyering  <meyering@redhat.com>
1117
1118         git-version-gen: correct the advice in a comment
1119         * build-aux/git-version-gen: Correct comment.
1120         Don't recommend to list .tarball-version in .gitignore.
1121
1122 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1123
1124         base64: fix off-by-one buffer size bug
1125         Problem and (trivial) fix reported by Gijs van Tulder in
1126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1127         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1128         * tests/test-base64.c (main): Catch the bug.
1129
1130 2011-08-10  Eric Blake  <eblake@redhat.com>
1131
1132         closein: correct comments
1133         * lib/closein.c (close_stdin): Improve comments.
1134
1135 2011-08-09  Bruno Haible  <bruno@clisp.org>
1136
1137         More tests for 'fseeko'.
1138         * tests/test-fseeko3.c: New file, from Eric Blake.
1139         * tests/test-fseeko3.sh: New file.
1140         * modules/fseeko-tests (Files): Add them.
1141         (TESTS): Add test-fseeko3.sh.
1142         (check_PROGRAMS): Add test-fseeko3.
1143
1144 2011-08-09  Eric Blake  <eblake@redhat.com>
1145
1146         fseeko: remove unneeded hack
1147         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1148
1149         fseeko: fix bug on glibc
1150         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1151         Reported by John W. Eaton.
1152
1153 2011-08-08  Bruno Haible  <bruno@clisp.org>
1154
1155         unictype/base: Fix interoperability with preinstalled libunistring.
1156         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1157         Reported by Simon Josefsson.
1158
1159 2011-08-08  Bruno Haible  <bruno@clisp.org>
1160
1161         iswblank: Detect declaration correctly.
1162         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1163         AC_CHECK_DECLS invocation.
1164
1165 2011-08-08  Bruno Haible  <bruno@clisp.org>
1166
1167         tcgetsid: Detect declaration correctly.
1168         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1169         AC_CHECK_DECLS invocation.
1170         Reported by Simon Josefsson.
1171
1172 2011-08-08  Eric Blake  <eblake@redhat.com>
1173
1174         largefile: fix typo that regressed large file support
1175         * modules/largefile (configure.ac-early): Fix section name.
1176
1177 2011-08-06  Karl Berry  <karl@gnu.org>
1178
1179         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1180         a separate module.
1181
1182 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1183
1184         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1185         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1186         get prototype for free.
1187
1188 2011-08-04  Bruno Haible  <bruno@clisp.org>
1189
1190         Tests for module 'pathmax'.
1191         * modules/pathmax-tests: New file.
1192         * tests/test-pathmax.c: New file.
1193
1194         canonicalize-lgpl: Support larger filenames on the Hurd.
1195         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1196         Reported by Paul Eggert.
1197
1198         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1199         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1200         * lib/chdir-long.h: Include pathmax.h.
1201         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1202         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1203         (PATH_MAX): Remove code that is done by pathmax.h.
1204         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1205         * lib/tmpfile.c: Add a comment.
1206         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1207         * modules/chdir-long (Depends-on): Add pathmax.
1208         * modules/getcwd (Depends-on): Add pathmax.
1209         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1210         is not defined.
1211         * doc/posix-headers/limits.texi: Mention the pathmax module.
1212         * NEWS: Mention the change.
1213
1214 2011-08-02  Bruno Haible  <bruno@clisp.org>
1215
1216         pthread_sigmask: Actually use results of gl_THREADLIB.
1217         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1218         gl_THREADLIB, not gl_[]THREADLIB.
1219         Reported by Eric Blake.
1220
1221 2011-08-02  Jim Meyering  <meyering@redhat.com>
1222
1223         maint.mk: relax the default _gl_TS_function_match regexp
1224         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1225         space between function name and "(" in an "extern" declaration.
1226         That would fail to match a decl with no space there: extern void foo();
1227
1228 2011-07-31  Iain Nicol  <iain@thenicols.net>
1229
1230         git-version-gen: document that EXTRA_DIST must include .version
1231         * build-aux/git-version-gen: In the how-to-use comment, document
1232         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1233         will fail when run from an unpacked distribution tarball.
1234
1235 2011-08-01  Bruno Haible  <bruno@clisp.org>
1236
1237         wctype-h: Fix last change.
1238         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1239         REPLACE_TOWLOWER to 0.
1240         Reported by Sam Steingold <sds@gnu.org>.
1241
1242 2011-07-31  Bruno Haible  <bruno@clisp.org>
1243
1244         frexpl: Update autoconf test.
1245         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1246         according to changes of 2011-06-20.
1247
1248 2011-07-31  Bruno Haible  <bruno@clisp.org>
1249
1250         sys_utsname: Add support for Minix.
1251         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1252         <sys/utsname.h>.
1253         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1254         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1255
1256 2011-07-31  Bruno Haible  <bruno@clisp.org>
1257
1258         strings: Add support for Minix.
1259         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1260         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1261         * doc/posix-headers/strings.texi: Document the Minix problem.
1262
1263 2011-07-31  Bruno Haible  <bruno@clisp.org>
1264
1265         wctype-h: Add support for Minix.
1266         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1267         REPLACE_TOWLOWER.
1268         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1269         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1270         REPLACE_ISWCNTRL.
1271
1272 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1273
1274         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1275         This is a performance improvement for 64-bit hosts: it causes the
1276         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1277
1278 2011-07-31  Bruno Haible  <bruno@clisp.org>
1279
1280         stdioext: Add support for Minix.
1281         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1282         * lib/fpurge.c (fpurge): Likewise.
1283         * lib/freadahead.c (freadahead): Likewise.
1284         * lib/freadable.c (freadable): Likewise.
1285         * lib/freading.c (freading): Likewise.
1286         * lib/freadptr.c (freadptr): Likewise.
1287         * lib/freadseek.c (freadptrinc): Likewise.
1288         * lib/fseeko.c (rpl_fseeko): Likewise.
1289         * lib/fseterr.c (fseterr): Likewise.
1290         * lib/fwritable.c (fwritable): Likewise.
1291         * lib/fwriting.c (fwriting): Likewise.
1292         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1293         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1294
1295 2011-07-31  Bruno Haible  <bruno@clisp.org>
1296
1297         errno: Port to Minix.
1298         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1299         ECONNABORTED are defined.
1300         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1301         GNULIB_defined_ECONNABORTED): New macros.
1302         * lib/strerror-override.h (strerror_override): Test also
1303         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1304         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1305         ECONNABORTED.
1306         * doc/posix-headers/errno.texi: Mention the Minix problem.
1307
1308 2011-07-31  Bruno Haible  <bruno@clisp.org>
1309
1310         Work around declaration collisions on Minix.
1311         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1312         defined, set REPLACE_MBSINIT.
1313         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1314         defined, set REPLACE_MBRTOWC.
1315         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1316         set REPLACE_MBRLEN.
1317         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1318         defined, set REPLACE_MBSRTOWCS.
1319         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1320         defined, set REPLACE_WCRTOMB.
1321         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1322         defined, set REPLACE_WCSRTOMBS.
1323
1324 2011-07-31  Bruno Haible  <bruno@clisp.org>
1325
1326         Add support for Minix with ACK compiler.
1327         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1328         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1329         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1330
1331 2011-07-31  Bruno Haible  <bruno@clisp.org>
1332
1333         Documentation about Minix.
1334         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1335         * doc/glibc-headers/*.texi: Likewise.
1336         * doc/posix-functions/*.texi: Likewise.
1337         * doc/glibc-functions/*.texi: Likewise.
1338
1339 2011-07-31  Bruno Haible  <bruno@clisp.org>
1340
1341         snippet/warn-on-use: Fix indentation.
1342         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1343
1344 2011-07-25  Jim Meyering  <meyering@redhat.com>
1345
1346         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1347         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1348         commands.
1349
1350 2011-07-27  Jim Meyering  <meyering@redhat.com>
1351
1352         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1353         * top/maint.mk (gl_extract_significant_defines_): Now that
1354         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1355         gnulib/lib/signal.in.h, and now that we recommend to
1356         define-if-undefined those two symbols in application code,
1357         we must filter them out of the "significant" list.
1358         This avoids a "make syntax-check" failure in coreutils.
1359
1360 2011-07-26  Eric Blake  <eblake@redhat.com>
1361
1362         warnings: add comments about previous patch
1363         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1364         * m4/include_next.m4: Likewise.
1365         * m4/warn-on-use.m4: Likewise.
1366         * m4/warnings.m4: Likewise, and simplify use.
1367         Suggested by Stefano Lattarini.
1368
1369         include-next, warnings: support older autoconf
1370         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1371         AS_VAR_PUSHDEF in a way that works with older autoconf.
1372         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1373         Reported by Daniel P. Berrange.
1374
1375 2011-07-25  Bruno Haible  <bruno@clisp.org>
1376
1377         fseek, ftell: Fix doc.
1378         * doc/posix-functions/fseek.texi: Reword statement about
1379         AC_SYS_LARGEFILE.
1380         * doc/posix-functions/ftell.texi: Likewise.
1381
1382 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1383             Bruno Haible  <bruno@clisp.org>
1384
1385         Add dependencies to the 'largefile' module.
1386         * modules/fopen (Depends-on): Add 'largefile'.
1387         * modules/freopen (Depends-on): Likewise.
1388         * modules/fseeko (Depends-on): Likewise.
1389         * modules/ftello (Depends-on): Likewise.
1390         * modules/glob (Depends-on): Likewise.
1391         * modules/lseek (Depends-on): Likewise.
1392         * modules/lstat (Depends-on): Likewise.
1393         * modules/mkostemp (Depends-on): Likewise.
1394         * modules/mkostemps (Depends-on): Likewise.
1395         * modules/mkstemp (Depends-on): Likewise.
1396         * modules/mkstemps (Depends-on): Likewise.
1397         * modules/open (Depends-on): Likewise.
1398         * modules/openat (Depends-on): Likewise.
1399         * modules/pread (Depends-on): Likewise.
1400         * modules/pwrite (Depends-on): Likewise.
1401         * modules/scandir (Depends-on): Likewise.
1402         * modules/stat (Depends-on): Likewise.
1403         * modules/tmpfile (Depends-on): Likewise.
1404         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1405         since the containing module now depends on the largefile module.
1406         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1407         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1408         off_t is fixed by gnulib.
1409         * doc/posix-functions/freopen.texi: Likewise.
1410         * doc/posix-functions/fseeko.texi: Likewise.
1411         * doc/posix-functions/fstatat.texi: Likewise.
1412         * doc/posix-functions/ftello.texi: Likewise.
1413         * doc/posix-functions/glob.texi: Likewise.
1414         * doc/posix-functions/lseek.texi: Likewise.
1415         * doc/posix-functions/lstat.texi: Likewise.
1416         * doc/posix-functions/mkstemp.texi: Likewise.
1417         * doc/posix-functions/open.texi: Likewise.
1418         * doc/posix-functions/openat.texi: Likewise.
1419         * doc/posix-functions/pread.texi: Likewise.
1420         * doc/posix-functions/pwrite.texi: Likewise.
1421         * doc/posix-functions/scandir.texi: Likewise.
1422         * doc/posix-functions/stat.texi: Likewise.
1423         * doc/posix-functions/tmpfile.texi: Likewise.
1424         * doc/glibc-functions/mkostemp.texi: Likewise.
1425         * doc/glibc-functions/mkostemps.texi: Likewise.
1426         * doc/glibc-functions/mkstemps.texi: Likewise.
1427
1428 2011-07-25  Bruno Haible  <bruno@clisp.org>
1429
1430         fcntl: Move AC_LIBOBJ invocation to module description.
1431         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1432         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1433
1434         fcntl: Remove call-in from fchdir.m4.
1435         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1436         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1437
1438         dup3: Remove potential call-in from fchdir.m4.
1439         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1441
1442         dup2: Move AC_LIBOBJ invocation to module description.
1443         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1444         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1445         Don't invoke AC_LIBOBJ.
1446         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1447
1448         dup2: Remove call-in from fchdir.m4.
1449         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1451
1452         fclose: Move AC_LIBOBJ invocation to module description.
1453         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1454         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1455         to 1.
1456         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1457
1458         fclose: Remove call-in from close.m4.
1459         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1460         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1461
1462         close: Move AC_LIBOBJ invocation to module description.
1463         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1464         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1465         1.
1466         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1467
1468         close: Remove call-in from fchdir.m4.
1469         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1471
1472         open: Move AC_LIBOBJ invocation to module description.
1473         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1474         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1475         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1476
1477         open: Remove call-in from fchdir.m4.
1478         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1479         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1480
1481         fchdir: Start to remove gl_REPLACE_* idiom.
1482         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1483         (gl_FUNC_FCHDIR): Invoke it.
1484
1485 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1486
1487         * lib/ftell.c (ftell): Comment out cast.
1488
1489         close: use gl_REPLACE_FCLOSE only if defined
1490         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1491         is defined.  The close module doesn't depend on the fclose module
1492         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1494         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1495
1496 2011-07-24  Jim Meyering  <meyering@redhat.com>
1497
1498         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1499         * tests/test-select.h (test_function): Declare as "static".
1500
1501 2011-07-24  Bruno Haible  <bruno@clisp.org>
1502
1503         doc: Mention the effects of AC_SYS_LARGEFILE.
1504         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1505         on this function.
1506         * doc/posix-functions/aio_error.texi: Likewise.
1507         * doc/posix-functions/aio_fsync.texi: Likewise.
1508         * doc/posix-functions/aio_read.texi: Likewise.
1509         * doc/posix-functions/aio_return.texi: Likewise.
1510         * doc/posix-functions/aio_suspend.texi: Likewise.
1511         * doc/posix-functions/aio_write.texi: Likewise.
1512         * doc/posix-functions/fgetpos.texi: Likewise.
1513         * doc/posix-functions/fopen.texi: Likewise.
1514         * doc/posix-functions/freopen.texi: Likewise.
1515         * doc/posix-functions/fsetpos.texi: Likewise.
1516         * doc/posix-functions/fstatvfs.texi: Likewise.
1517         * doc/posix-functions/ftruncate.texi: Likewise.
1518         * doc/posix-functions/ftw.texi: Likewise.
1519         * doc/posix-functions/getrlimit.texi: Likewise.
1520         * doc/posix-functions/glob.texi: Likewise.
1521         * doc/posix-functions/lio_listio.texi: Likewise.
1522         * doc/posix-functions/lockf.texi: Likewise.
1523         * doc/posix-functions/mkstemp.texi: Likewise.
1524         * doc/posix-functions/mmap.texi: Likewise.
1525         * doc/posix-functions/nftw.texi: Likewise.
1526         * doc/posix-functions/openat.texi: Likewise.
1527         * doc/posix-functions/opendir.texi: Likewise.
1528         * doc/posix-functions/posix_fadvise.texi: Likewise.
1529         * doc/posix-functions/posix_fallocate.texi: Likewise.
1530         * doc/posix-functions/pread.texi: Likewise.
1531         * doc/posix-functions/pwrite.texi: Likewise.
1532         * doc/posix-functions/readdir.texi: Likewise.
1533         * doc/posix-functions/readdir_r.texi: Likewise.
1534         * doc/posix-functions/rewinddir.texi: Likewise.
1535         * doc/posix-functions/scandir.texi: Likewise.
1536         * doc/posix-functions/seekdir.texi: Likewise.
1537         * doc/posix-functions/setrlimit.texi: Likewise.
1538         * doc/posix-functions/statvfs.texi: Likewise.
1539         * doc/posix-functions/telldir.texi: Likewise.
1540         * doc/posix-functions/tmpfile.texi: Likewise.
1541         * doc/posix-functions/truncate.texi: Likewise.
1542         * doc/glibc-functions/fallocate.texi: Likewise.
1543         * doc/glibc-functions/fstatfs.texi: Likewise.
1544         * doc/glibc-functions/fts_children.texi: Likewise.
1545         * doc/glibc-functions/fts_read.texi: Likewise.
1546         * doc/glibc-functions/getdirentries.texi: Likewise.
1547         * doc/glibc-functions/mkostemp.texi: Likewise.
1548         * doc/glibc-functions/mkostemps.texi: Likewise.
1549         * doc/glibc-functions/mkstemps.texi: Likewise.
1550         * doc/glibc-functions/preadv.texi: Likewise.
1551         * doc/glibc-functions/pwritev.texi: Likewise.
1552         * doc/glibc-functions/sendfile.texi: Likewise.
1553         * doc/glibc-functions/statfs.texi: Likewise.
1554
1555 2011-07-24  Bruno Haible  <bruno@clisp.org>
1556
1557         doc: Fix typo.
1558         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1559
1560 2011-07-24  Bruno Haible  <bruno@clisp.org>
1561
1562         doc: Mention fsusage.
1563         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1564
1565 2011-07-24  Bruno Haible  <bruno@clisp.org>
1566
1567         doc: Mention new glibc headers and functions.
1568         * doc/glibc-headers/gshadow.texi: New file.
1569         * doc/glibc-functions/endsgent.texi: New file.
1570         * doc/glibc-functions/fgetsgent.texi: New file.
1571         * doc/glibc-functions/fgetsgent_r.texi: New file.
1572         * doc/glibc-functions/getsgent.texi: New file.
1573         * doc/glibc-functions/getsgent_r.texi: New file.
1574         * doc/glibc-functions/getsgnam.texi: New file.
1575         * doc/glibc-functions/getsgnam_r.texi: New file.
1576         * doc/glibc-functions/putsgent.texi: New file.
1577         * doc/glibc-functions/setsgent.texi: New file.
1578         * doc/glibc-functions/sgetsgent.texi: New file.
1579         * doc/glibc-functions/sgetsgent_r.texi: New file.
1580         * doc/glibc-functions/malloc_info.texi: New file.
1581         * doc/glibc-functions/preadv.texi: New file.
1582         * doc/glibc-functions/pwritev.texi: New file.
1583         * doc/glibc-functions/register_printf_modifier.texi: New file.
1584         * doc/glibc-functions/register_printf_specifier.texi: New file.
1585         * doc/glibc-functions/register_printf_type.texi: New file.
1586         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1587         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1588         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1589         * doc/glibc-functions/pthread_getname_np.texi: New file.
1590         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1591         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1592         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1593         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1594         * doc/glibc-functions/pthread_setname_np.texi: New file.
1595         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1596         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1597         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1598         * doc/glibc-functions/qsort_r.texi: New file.
1599         * doc/glibc-functions/quick_exit.texi: New file.
1600         * doc/glibc-functions/syncfs.texi: New file.
1601         * doc/gnulib.texi: Include them.
1602         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1603         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1604         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1605         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1606         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1607         * doc/glibc-functions/execvpe.texi: Likewise.
1608
1609 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1610
1611         ftell: don't include <unistd.h>
1612         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1613         guaranteed to define off_t, and the ftell module depends on the
1614         stdio module.
1615
1616         ftell: do not assume wraparound signed arithmetic
1617         * lib/ftell.c: Include <limits.h>.
1618         (ftell): Don't assume wraparound signed arithmetic.
1619
1620 2011-07-24  Bruno Haible  <bruno@clisp.org>
1621
1622         close: No longer depend on module 'fclose'.
1623         * modules/close (Depends-on): Remove fclose.
1624         * NEWS: Mention the change.
1625         Suggested by Sam Steingold <sds@gnu.org>.
1626
1627 2011-07-24  Bruno Haible  <bruno@clisp.org>
1628
1629         fsusage: Enable large volume support on AIX >= 5.2.
1630         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1631         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1632         instead of STAT_STATVFS.
1633         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1634
1635         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1636         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1637         f_blocks field only on MacOS X.
1638
1639         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1640         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1641         * modules/fsusage (Depends-on): Add largefile.
1642
1643 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1644
1645         * README: Modernize discussion of signed integers.
1646         Assuming overflow wraparound is no longer safe.
1647         Mention ones' complement and signed magnitude.
1648
1649 2011-07-22  Bruno Haible  <bruno@clisp.org>
1650
1651         select tests, pselect tests: Refactor.
1652         * tests/test-select.h: New file, extracted from tests/test-select.c.
1653         (select_fn): New type.
1654         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1655         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1656         test_pipe): Add my_select argument.
1657         (test_function): Renamed from main. Add my_select argument.
1658         * tests/test-select.c: Move most code to tests/test-select.h. Include
1659         test-select.h.
1660         * modules/select-tests (Files): Add tests/test-select.h.
1661         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1662         (my_select, main): New functions.
1663         * modules/pselect-tests (Files): Add tests/test-select.h,
1664         tests/macros.h, tests/signature.h.
1665         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1666         (configure.ac): Check for <sys/wait.h>.
1667
1668 2011-07-22  Bruno Haible  <bruno@clisp.org>
1669
1670         sys_select tests: Check the signature of FD_*.
1671         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1672         signature tests from here...
1673         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1674         here.
1675         * modules/sys_select-tests (Files): Add tests/signature.h.
1676
1677 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1678
1679         largefile: new module, replacing large-inode
1680         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1681         * MODULES.html.sh: Add largefile, remove large-inode.
1682         * modules/largefile, m4/largefile.m4: New files.
1683         * modules/large-inode, m4/large-inode.m4: Remove.
1684
1685         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1686         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1687         implementations that use only 32 bits to count blocks.
1688         On typical hosts with 1024-byte blocks, this fails with file
1689         systems as small as 4 TiB.  Problem reported by Herb Wartens
1690         <http://debbugs.gnu.org/9140> and this should also fix a similar
1691         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1692
1693         large-inode: New module
1694         * MODULES.html.sh: Add it.
1695         * modules/large-inode, m4/large-inode.m4: New files.
1696
1697         extensions: Enable extensions on MacOS X 10.5 and later.
1698         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1699
1700 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1701
1702         file-has-acl: use acl_extended_file_nofollow if available
1703         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1704         (acl_extended_file): New macro.
1705         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1706         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1707
1708 2011-07-21  Bruno Haible  <bruno@clisp.org>
1709
1710         Declare system functions in a way that works with C++.
1711         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1712         declare fdopendir as extern "C".
1713         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1714         declare frexpl as extern "C".
1715         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1716         declare gai_strerror as extern "C".
1717         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1718         programs, declare gai_strerror as extern "C".
1719         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1720         declare getlogin_r as extern "C".
1721         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1722         as extern "C".
1723         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1724         declare ldexpl as extern "C".
1725         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1726         as extern "C".
1727         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1728         program, declare getmntinfo as extern "C".
1729         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1730         stpncpy as extern "C".
1731         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1732         program, declare __xpg_strerror_r as extern "C".
1733         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1734         strndup as extern "C".
1735         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1736         declare memset and bzero as extern "C".
1737         Reported by Sam Steingold <sds@gnu.org>.
1738
1739 2011-07-12  Jim Meyering  <meyering@redhat.com>
1740
1741         maint.mk: prohibit inclusion of "verify.h" without use
1742         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1743
1744 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1745
1746         timer-time: A new module to check for timer_settime()
1747         * m4/timer_time.m4: Check for the posix function.
1748         * modules/timer-time: Add the new module.
1749         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1750         Mention it.
1751
1752 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1753             Bruno Haible  <bruno@clisp.org>
1754
1755         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1756         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1757         not defined, assume POSIX threads and look for pthread_sigmask in
1758         $LIBS, without changing $CPPFLAGS.
1759
1760 2011-07-19  Bruno Haible  <bruno@clisp.org>
1761
1762         strstr: Update cross-compilation guess.
1763         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1764         CPUs, guess no, in view of glibc
1765         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1766         Suggested by Eric Blake. Reported by Reuben Thomas.
1767
1768 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1769
1770         getopt-gnu: suppress core dumps from detection code
1771         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1772         to suppress core dumps that may well occur on glibc systems.
1773         * modules/getopt-gnu: Depend on nocrash.
1774
1775 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1776
1777         pthread_sigmask: ensure usleep is declared
1778         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1779         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1780
1781 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1782
1783         doc: Document NonStop portability issues.
1784         * doc/posix-functions/sigaction.texi (sigaction):
1785         * doc/posix-headers/signal.texi (signal.h):
1786         Document NonStop.  See Joachim Schmitz in
1787         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1788
1789 2011-07-15  Bruno Haible  <bruno@clisp.org>
1790
1791         ffsl, ffsll: Avoid unportable behaviour.
1792         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1793
1794 2011-07-15  Bruno Haible  <bruno@clisp.org>
1795
1796         ffs: More tests.
1797         * tests/test-ffs.c (NBITS): New macro.
1798         (main): Add more tests.
1799         * tests/test-ffsl.c (NBITS): New macro.
1800         (main): Add more tests.
1801         * tests/test-ffsll.c (NBITS): New macro.
1802         (main): Add more tests.
1803
1804 2011-07-15  Eric Blake  <eblake@redhat.com>
1805
1806         ffsl, ffsll: new modules
1807         * modules/ffsl: New file.
1808         * modules/ffsll: Likewise.
1809         * m4/ffsl.m4: Likewise.
1810         * m4/ffsll.m4: Likewise.
1811         * lib/ffsl.c: Likewise.
1812         * lib/ffsl.h: Likewise.
1813         * lib/ffsll.c: Likewise.
1814         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1815         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1816         * modules/string (Makefile.am): Substitute witnesses.
1817         * lib/strings.in.h (ffsl, ffsll): Declare.
1818         * modules/ffsl-tests: New test file.
1819         * modules/ffsll-tests: Likewise.
1820         * tests/test-ffsl.c: Likewise.
1821         * tests/test-ffsll.c: Likewise.
1822         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1823         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1824         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1825
1826         ffs: fix m4 prerequisite
1827         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1828
1829         ffs: avoid undefined behavior
1830         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1831         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1832         Reported by Bruno Haible.
1833
1834 2011-07-12  Bruno Haible  <bruno@clisp.org>
1835
1836         pthread_sigmask: Rely on module 'threadlib'.
1837         * modules/pthread_sigmask (Depends-on): Add threadlib.
1838         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1839         is defined.
1840
1841 2011-07-12  Bruno Haible  <bruno@clisp.org>
1842
1843         regex: Depend on module 'strcase'.
1844         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1845
1846 2011-07-12  Jim Meyering  <meyering@redhat.com>
1847
1848         warn-on-use: fix typo in file name
1849         * modules/snippet/warn-on-use (Files): Correct file name:
1850         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1851
1852 2011-07-12  Bruno Haible  <bruno@clisp.org>
1853
1854         strings: Document module.
1855         * doc/posix-headers/strings.texi: Mention module 'strings'.
1856
1857 2011-07-12  Bruno Haible  <bruno@clisp.org>
1858
1859         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1860         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1861         (Files, Makefile.am): Update.
1862         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1863         * modules/stdlib (Depends-on): Update.
1864
1865 2011-07-12  Bruno Haible  <bruno@clisp.org>
1866
1867         * NEWS: Mention the changes.
1868
1869         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1870         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1871         (Files, Makefile.am): Update.
1872         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1873         * modules/arpa_inet (Depends-on): Update.
1874         * modules/ctype (Depends-on): Update.
1875         * modules/dirent (Depends-on): Update.
1876         * modules/fcntl-h (Depends-on): Update.
1877         * modules/glob (Depends-on): Update.
1878         * modules/iconv-h (Depends-on): Update.
1879         * modules/inttypes-incomplete (Depends-on): Update.
1880         * modules/langinfo (Depends-on): Update.
1881         * modules/locale (Depends-on): Update.
1882         * modules/math (Depends-on): Update.
1883         * modules/netdb (Depends-on): Update.
1884         * modules/poll-h (Depends-on): Update.
1885         * modules/pty (Depends-on): Update.
1886         * modules/search (Depends-on): Update.
1887         * modules/signal (Depends-on): Update.
1888         * modules/spawn (Depends-on): Update.
1889         * modules/stdio (Depends-on): Update.
1890         * modules/stdlib (Depends-on): Update.
1891         * modules/string (Depends-on): Update.
1892         * modules/strings (Depends-on): Update.
1893         * modules/sys_file (Depends-on): Update.
1894         * modules/sys_ioctl (Depends-on): Update.
1895         * modules/sys_select (Depends-on): Update.
1896         * modules/sys_socket (Depends-on): Update.
1897         * modules/sys_stat (Depends-on): Update.
1898         * modules/sys_time (Depends-on): Update.
1899         * modules/sys_times (Depends-on): Update.
1900         * modules/sys_utsname (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         * MODULES.html.sh (Support for building libraries and executables):
1908         Update.
1909
1910         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1911         * modules/snippet/unused-parameter: Renamed from
1912         modules/unused-parameter.
1913         (Files, Makefile.am): Update.
1914         * build-aux/snippet/unused-parameter.h: Renamed from
1915         build-aux/unused-parameter.h.
1916         * modules/selinux-h (Depends-on): Update.
1917         * modules/unistr/base (Depends-on): Update.
1918         * MODULES.html.sh (Core language properties): Update.
1919
1920         Rename module 'link-warning' to 'snippet/link-warning'.
1921         * modules/snippet/link-warning: Renamed from modules/link-warning.
1922         (Files, Makefile.am): Update.
1923         * build-aux/snippet/link-warning.h: Renamed from
1924         build-aux/link-warning.h.
1925         * MODULES.html.sh (Support for building libraries and executables):
1926         Update.
1927
1928         Rename module 'c++defs' to 'snippet/c++defs'.
1929         * modules/snippet/c++defs: Renamed from modules/c++defs.
1930         (Files, Makefile.am): Update.
1931         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1932         * modules/arpa_inet (Depends-on): Update.
1933         * modules/ctype (Depends-on): Update.
1934         * modules/dirent (Depends-on): Update.
1935         * modules/fcntl-h (Depends-on): Update.
1936         * modules/glob (Depends-on): Update.
1937         * modules/iconv-h (Depends-on): Update.
1938         * modules/langinfo (Depends-on): Update.
1939         * modules/locale (Depends-on): Update.
1940         * modules/math (Depends-on): Update.
1941         * modules/netdb (Depends-on): Update.
1942         * modules/poll-h (Depends-on): Update.
1943         * modules/pty (Depends-on): Update.
1944         * modules/search (Depends-on): Update.
1945         * modules/signal (Depends-on): Update.
1946         * modules/spawn (Depends-on): Update.
1947         * modules/stdio (Depends-on): Update.
1948         * modules/stdlib (Depends-on): Update.
1949         * modules/string (Depends-on): Update.
1950         * modules/strings (Depends-on): Update.
1951         * modules/sys_ioctl (Depends-on): Update.
1952         * modules/sys_select (Depends-on): Update.
1953         * modules/sys_socket (Depends-on): Update.
1954         * modules/sys_stat (Depends-on): Update.
1955         * modules/sys_time (Depends-on): Update.
1956         * modules/sys_wait (Depends-on): Update.
1957         * modules/termios (Depends-on): Update.
1958         * modules/time (Depends-on): Update.
1959         * modules/unistd (Depends-on): Update.
1960         * modules/wchar (Depends-on): Update.
1961         * modules/wctype-h (Depends-on): Update.
1962
1963         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1964         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1965         (Files, Makefile.am): Update.
1966         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1967         * modules/argv-iter (Depends-on): Update.
1968         * modules/arpa_inet (Depends-on): Update.
1969         * modules/dirent (Depends-on): Update.
1970         * modules/fcntl-h (Depends-on): Update.
1971         * modules/fnmatch (Depends-on): Update.
1972         * modules/getopt-posix (Depends-on): Update.
1973         * modules/glob (Depends-on): Update.
1974         * modules/iconv-h (Depends-on): Update.
1975         * modules/inttypes-incomplete (Depends-on): Update.
1976         * modules/locale (Depends-on): Update.
1977         * modules/math (Depends-on): Update.
1978         * modules/netdb (Depends-on): Update.
1979         * modules/search (Depends-on): Update.
1980         * modules/signal (Depends-on): Update.
1981         * modules/spawn (Depends-on): Update.
1982         * modules/stdio (Depends-on): Update.
1983         * modules/stdlib (Depends-on): Update.
1984         * modules/string (Depends-on): Update.
1985         * modules/strings (Depends-on): Update.
1986         * modules/sys_socket (Depends-on): Update.
1987         * modules/sys_stat (Depends-on): Update.
1988         * modules/sys_time (Depends-on): Update.
1989         * modules/sys_times (Depends-on): Update.
1990         * modules/sys_utsname (Depends-on): Update.
1991         * modules/time (Depends-on): Update.
1992         * modules/unistd (Depends-on): Update.
1993         * modules/wchar (Depends-on): Update.
1994         * MODULES.html.sh (Support for building libraries and executables):
1995         Update.
1996
1997 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1998
1999         Improvements on _Noreturn and related modules.
2000
2001         modules/_Exit-tests: test _Noreturn too
2002         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2003         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2004         (main): Use them.
2005
2006         stdnoreturn, stdnoreturn-tests: remove modules
2007         They're not needed here and a bit premature for use elsewhere.  See
2008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2009         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2010         * tests/test-stdnoreturn.c: Remove files.
2011         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2012         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2013         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2014         and using noreturn.
2015         * modules/openat, modules/sigpipe-die, modules/xalloc:
2016         * modules/xmemdup0, modules/xstrtol:
2017         Remove dependency on stdnoreturn.
2018
2019         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2020         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2021         Reparenthesize to avoid GCC warning.
2022         Support Microsoft's syntax.
2023         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2024
2025         _Noreturn-tests: remove module
2026         * modules/_Noreturn-tests: Remove.
2027         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2028         * tests/test-_Noreturn.c: Remove.
2029         * tests/test-stdnoreturn.c: Merge from the old
2030         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2031
2032 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2033
2034         _Noreturn, stdnoreturn, and related modules.
2035
2036         * top/maint.mk: Adjust to new noreturn support.
2037         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2038         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2039
2040         xalloc: use stdnoreturn.h
2041         * lib/xalloc.h: Include <stdnoreturn.h>.
2042         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2043         * modules/xalloc (Depends-on): Add stdnoreturn.
2044
2045         xstrtol: use stdnoreturn.h
2046         * lib/xstrtol.h: Include <stdnoreturn.h>.
2047         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2048         * modules/xstrtol (Depends-on): Add stdnoreturn.
2049
2050         xmemdup0: use stdnoreturn.h
2051         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2052         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2053         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2054
2055         sigpipe-die: use stdnoreturn.h
2056         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2057         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2058         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2059
2060         openat: use stdnoreturn.h
2061         * lib/openat.h: Include <stdnoreturn.h>.
2062         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2063         * modules/openat (Depends-on): Add stdnoreturn.
2064
2065         * lib/openat-die.c (openat_save_fail): Modernize comment.
2066
2067         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2068
2069         * lib/glthread/thread.h: Modernize comment.
2070
2071         obstack: use _Noreturn
2072         * lib/obstack.c (__attribute__): Remove macro.
2073         (print_and_abort): Use _Noreturn.
2074
2075         c-stack: use _Noreturn
2076         * lib/c-stack.c (die, overflow_handler, segv_handler):
2077         Use _Noreturn rather than __attribute__((noreturn)).
2078
2079         argmatch-tests, exclude_tests: use _Noreturn
2080         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2081         Remove.
2082         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2083
2084         stdlib: use _Noreturn
2085         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2086         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2087         * modules/stdlib (Depends-on): Add _Noreturn.
2088         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2089
2090         stdnoreturn-tests: new module
2091         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2092
2093         stdnoreturn: new module
2094         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2095         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2096
2097         _Noreturn-tests: new module
2098         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2099
2100         _Noreturn: new module
2101         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2102         New section, mentioning it.
2103         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2104
2105         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2106
2107 2011-07-11  Eric Blake  <eblake@redhat.com>
2108
2109         ffs: new module
2110         * modules/ffs: New file.
2111         * m4/ffs.m4: Likewise.
2112         * lib/ffs.c: Likewise.
2113         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2114         * modules/strings (Makefile.am): Substitute witness.
2115         (Depends-on): Add c++defs.
2116         * lib/strings.in.h (ffs): Declare.
2117         * modules/ffs-tests: New test file.
2118         * tests/test-ffs.c: Test new module.
2119         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2120         * doc/posix-functions/ffs.texi (ffs): Likewise.
2121
2122         regex: avoid compiler warning
2123         * lib/regex.c (includes): Include <strings.h>, for use of
2124         strcasecmp in regcomp.c.
2125         Reported by Joachim Schmitz.
2126
2127 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2128
2129         stdint: respect system's intmax_t if INTMAX_MAX
2130         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2131         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2132         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2133         long but int64_t is long long, and where we will clash with the
2134         system intmax_t if we override it.  See
2135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2136         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2137         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2138         similarly for UINTMAX_C.
2139
2140 2011-07-08  Bruno Haible  <bruno@clisp.org>
2141
2142         pthread_sigmask tests: Avoid a compiler warning.
2143         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2144         non-zero.
2145
2146         sigprocmask tests: A better way to avoid a compiler warning.
2147         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2148         (main): Complain if system() returns non-zero.
2149         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2150
2151 2011-07-08  Bruno Haible  <bruno@clisp.org>
2152
2153         pthread_sigmask: Work around IRIX bug.
2154         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2155         bug.
2156         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2157         there may be unblocked pending signals.
2158         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2159
2160 2011-07-08  Bruno Haible  <bruno@clisp.org>
2161
2162         pthread_sigmask: Work around Cygwin bug.
2163         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2164         bug.
2165         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2166         the system's pthread_sigmask function.
2167         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2168
2169 2011-07-08  Bruno Haible  <bruno@clisp.org>
2170
2171         pthread_sigmask: Work around bug in single-threaded implementation.
2172         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2173         FreeBSD, HP-UX, Solaris bug.
2174         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2175         * lib/pthread_sigmask.c: Include <stddef.h>.
2176         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2177         the system's pthread_sigmask function.
2178         * modules/pthread_sigmask (configure.ac): Invoke
2179         gl_PREREQ_PTHREAD_SIGMASK.
2180         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2181         HP-UX, Solaris.
2182
2183 2011-07-08  Eric Blake  <eblake@redhat.com>
2184
2185         test-sigprocmask: avoid compiler warning
2186         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2187         * tests/test-sigprocmask.c (main): Use it to silence warning.
2188         Reported by Jim Meyering.
2189
2190         test-snprintf: avoid compiler warning
2191         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2192         * tests/test-vsnprintf.c (main): Likewise.
2193         Reported by Jim Meyering.
2194
2195 2011-07-08  Bruno Haible  <bruno@clisp.org>
2196
2197         Tests for module 'pthread_sigmask'.
2198         * modules/pthread_sigmask-tests: New file.
2199         * tests/test-pthread_sigmask1.c: New file, based on
2200         tests/test-sigprocmask.c.
2201         * tests/test-pthread_sigmask2.c: New file.
2202
2203 2011-07-08  Jim Meyering  <meyering@redhat.com>
2204
2205         test-getopt.h: avoid warning about an unused variable
2206         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2207
2208 2011-07-07  Jim Meyering  <meyering@redhat.com>
2209
2210         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2211         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2212         now that it no longer contains leading TABs.
2213         Remove unused "url=FIXME" statement.
2214
2215 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2216
2217         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2218         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2219         When gl_THREADLIB is not in use, assume that the POSIX sematics
2220         are desired.  This is better for Emacs, which uses POSIX semantics
2221         on GNUish and/or POSIXish platforms, and does not use threads at
2222         all otherwise.
2223
2224         pthread_sigmask: fix typo when testing for libraries
2225         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2226         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2227
2228 2011-07-08  Eric Blake  <eblake@redhat.com>
2229
2230         fts: introduce FTS_NOATIME
2231         * lib/fts_.h (FTS_NOATIME): New bit flag.
2232         (FTS_OPTIONMASK): Adjust.
2233         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2234         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2235
2236 2011-07-08  Bruno Haible  <bruno@clisp.org>
2237
2238         Tests for module 'thread'.
2239         * modules/thread-tests: New file.
2240         * tests/test-thread_self.c: New file.
2241         * tests/test-thread_create.cc: New file.
2242
2243 2011-07-08  Bruno Haible  <bruno@clisp.org>
2244
2245         thread: Avoid gcc warnings when using gl_thread_self().
2246         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2247         'void *'.
2248         (gl_thread_self_pointer): Update.
2249
2250 2011-07-07  Bruno Haible  <bruno@clisp.org>
2251
2252         signal-c++-tests: Check declaration of pthread_sigmask.
2253         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2254         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2255         $(LIB_PTHREAD_SIGMASK).
2256
2257 2011-07-07  Bruno Haible  <bruno@clisp.org>
2258
2259         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2260         * lib/signal.in.h (pthread_sigmask): Override if
2261         REPLACE_PTHREAD_SIGMASK is 1.
2262         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2263         REPLACE_PTHREAD_SIGMASK.
2264         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2265         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2266         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2267         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2268         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2269
2270 2011-07-07  Bruno Haible  <bruno@clisp.org>
2271
2272         pthread_sigmask: Ensure declaration in <signal.h>.
2273         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2274         include <pthread.h>.
2275         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2276         problem.
2277
2278 2011-07-07  Bruno Haible  <bruno@clisp.org>
2279
2280         pthread_sigmask: Document the module.
2281         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2282
2283 2011-07-07  Bruno Haible  <bruno@clisp.org>
2284
2285         pthread_sigmask: Follow gnulib conventions.
2286         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2287         gl_PTHREAD_SIGMASK.
2288         * modules/pthread_sigmask (configure.ac): Update.
2289
2290 2011-07-07  Bruno Haible  <bruno@clisp.org>
2291
2292         pthread_sigmask: Make declaration C++ safe.
2293         * lib/signal.in.h: In two special conditions, just do an #include_next.
2294         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2295         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2296         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2297         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2298         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2299         not REPLACE_PTHREAD_MASK.
2300         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2301         not REPLACE_PTHREAD_MASK.
2302         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2303
2304 2011-07-07  Bruno Haible  <bruno@clisp.org>
2305
2306         pthread_sigmask: Fix return value.
2307         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2308         * lib/pthread_sigmask.c: New file.
2309         * modules/pthread_sigmask (Files): Add it.
2310         (configure.ac): Invoke AC_LIBOBJ.
2311
2312 2011-07-07  Eric Blake  <eblake@redhat.com>
2313
2314         getopt: more portable argv creation
2315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2316         const, use char arrays rather than strings.
2317         Suggested by Paul Eggert.
2318
2319 2011-07-07  Bruno Haible  <bruno@clisp.org>
2320
2321         Tests for module 'sigprocmask'.
2322         * modules/sigprocmask-tests: New file.
2323         * tests/test-sigprocmask.c: New file.
2324
2325 2011-07-07  Bruno Haible  <bruno@clisp.org>
2326
2327         float tests: Tweak.
2328         * tests/test-float.c (main): Tweak skip message.
2329
2330 2011-07-07  Eric Blake  <eblake@redhat.com>
2331
2332         getopt: avoid compiler warning during configure
2333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2334         assigning string literals to non-const pointer.
2335
2336         getopt-gnu: avoid crash in glibc getopt
2337         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2338         * tests/test-getopt.h (test_getopt): Enhance test.
2339         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2340         * doc/posix-functions/getopt.texi (getopt): Document it.
2341         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2342         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2343         Likewise.
2344
2345 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2346
2347         getopt: handle W; without long options in getopt [BZ #12922]
2348         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2349         but no long options are defined, just return 'W'.
2350
2351 2011-07-07  Bruno Haible  <bruno@clisp.org>
2352
2353         Avoid literal tabs.
2354         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2355         variable containing a tab instead of a literal tab.
2356         Reported by Jim Meyering.
2357
2358 2011-07-07  Bruno Haible  <bruno@clisp.org>
2359
2360         Comments.
2361         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2362
2363 2011-07-06  Bruno Haible  <bruno@clisp.org>
2364
2365         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2366         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2367         <winsock2.h>.
2368         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2369         lib/sys_socket.in.h.
2370         (close, gethostname): Hide declarations from <winsock2.h>.
2371         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2372         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2373         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2374         (select): Don't override if gnulib's <sys/select.h> was already
2375         included.
2376         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2377         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2378         setsockopt, shutdown, select): Tweak indentation.
2379
2380 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2381
2382         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2383         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2384         in an application that does not use the sys_select module.
2385
2386 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2387
2388         poll: do not return 0 on timeout=-1
2389         * lib/poll.c: Loop with yield if no events occured
2390
2391 2011-07-06  Eric Blake  <eblake@redhat.com>
2392
2393         pthread_sigmask: always replace when not using pthread
2394         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2395         replacement when using some threading other than pthread.  Fix
2396         logic bug.
2397
2398 2011-07-06  Bruno Haible  <bruno@clisp.org>
2399
2400         Comments.
2401         * m4/printf.m4: Update comments about mingw.
2402
2403 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2404
2405         sys_select: define sigset_t more portably
2406         * lib/sys_select.in.h: Always include <sys/types.h>, since
2407         we now need sigset_t and mingw defines it there.
2408         Include <signal.h> before split inclusion guard, to avoid
2409         mishaps on Solaris, whose <signal.h> eventually includes us.
2410         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2411         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2412         which come from ...
2413         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2414         gl_CHECK_TYPE_SIGSET_T.
2415         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2416         does the real work.
2417         * modules/sys_select (Depends-on): Add 'signal'.
2418
2419         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2420         Suggested by Bruno Haible.
2421
2422         pselect: Use pthread_sigmask, not sigprocmask.
2423         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2424         multithreaded apps better than sigprocmask does.
2425         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2426         sigprocmask directly.
2427
2428 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2429
2430         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2431         Don't #undef,  since we don't need any underlying pselect.
2432         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2433         (Depends-on): Add select.
2434         (Link): Add $(LIBSOCKET).
2435         These changes suggested by Bruno Haible.
2436
2437         pselect: document better
2438         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2439         * doc/posix-functions/pselect.texi (pselect): Document new module.
2440
2441         pthread_sigmask: new module
2442         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2443         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2444         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2445         This is done only as a macro; I don't know how well that'll
2446         work for C++.  Move <sys/types.h> include before the include_next,
2447         to avoid mishap on Solaris.
2448         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2449         * modules/signal (Makefile.am): Substitute the check's results.
2450         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2451
2452         test-pselect: new module
2453         * modules/pselect-tests, tests/test-pselect.c: New files.
2454         * tests/test-select.c, tests/test-sys_select-c++.cc:
2455         If TEST_PSELECT is defined, test pselect instead of testing select.
2456
2457         * tests/test-sys_select.c (sigset_t): Test for it, too.
2458         Suggested by Bruno Haible.
2459
2460 2011-07-05  Eric Blake  <eblake@redhat.com>
2461
2462         snprintf: guarantee %1$d, for libintl
2463         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2464         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2465         * doc/posix-functions/snprintf.texi (snprintf): Update.
2466         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2467         * tests/test-snprintf.c (main): Enhance test.
2468         * tests/test-vsnprintf.c (main): Likewise.
2469
2470 2011-07-05  Jim Meyering  <meyering@redhat.com>
2471
2472         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2473         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2474         per Bruno's request, to accommodate this idiom (no space after "#")
2475         even when the function is inside an #if block:
2476         char *
2477         gets (char *s)
2478         #undef gets
2479         {
2480           ...
2481         }
2482
2483 2011-07-04  Jim Meyering  <meyering@redhat.com>
2484
2485         maint: indent with spaces, not TABs, and add a rule to check this
2486         * tests/test-userspec.c: Indent with spaces, not TABs.
2487         * tests/test-argp.c: Likewise.
2488         * tests/test-c-stack2.sh: Likewise.
2489         * tests/test-parse-duration.sh: Likewise
2490         * m4/strtod.m4: Likewise.
2491         * m4/alloca.m4: Likewise.
2492         * m4/pselect.m4: Likewise.
2493         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2494
2495 2011-07-03  Jim Meyering  <meyering@redhat.com>
2496
2497         maint.mk: correct omissions in prohibit_argmatch_without_use check
2498         This rule would mistakenly report that argmatch.h is included without
2499         use even when both the argmatch and invalid_arg macro were used.
2500         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2501         of argmatch and invalid_arg.
2502
2503 2011-07-03  Bruno Haible  <bruno@clisp.org>
2504
2505         Comments about EINTR.
2506         * lib/safe-read.h: Explain the purpose of this module.
2507         * lib/safe-write.h: Likewise.
2508         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2509         module.
2510         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2511         module.
2512         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2513
2514 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2515
2516         xnanosleep: Rewrite to use new dtotimespec module.
2517         It has the conversion code that used to be in xnanosleep.
2518         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2519         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2520         (TIME_T_MAX): Remove.
2521         (xnanosleep): Rewrite in terms of dtotimespec.
2522         * modules/xnanosleep (Depends-on): Add dtotimespec.
2523         Remove intprops, stdbool.
2524
2525         timespec-add, timespec-sub: new modules
2526         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2527         * lib/timespec-add.c, lib/timespec-sub.c:
2528         * modules/timespec-add, modules/timespec-sub: New files.
2529
2530         dtotimespec: new module
2531         * lib/timespec.h (dtotimespec): New decl.
2532         * lib/dtotimespec.c, modules/dtotimespec: New files.
2533
2534         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2535
2536         pselect: new module
2537         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2538         (pselect): New decls.
2539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2540         since the standard pselect decl uses 'restrict'.
2541         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2542         HAVE_PSELECT, REPLACE_PSELECT.
2543         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2544         HAVE_PSELECT, REPLACE_PSELECT.
2545         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2546
2547         sys_select: don't depend on sys_socket
2548         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2550         This fix works on GNU and GNU-like platforms, but has not been tested
2551         on native Windows.
2552         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2553         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2554         gl_HEADER_SYS_SOCKET.
2555         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2556         gl_PREREQ_SYS_H_WINSOCK2.
2557
2558 2011-06-29  Eric Blake  <eblake@redhat.com>
2559
2560         pipe2: fix C89 compile problem
2561         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2562         Reported by Bruno Haible.
2563
2564         pipe, pipe2: don't corrupt fd on error
2565         * lib/pipe.c (pipe): Leave fd unchanged on error.
2566         * lib/pipe2.c (pipe2): Likewise.
2567         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2568         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2569
2570 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2571
2572         mmap-anon: do not use regular expressions inadvertently
2573         * m4/mmap-anon.m4: Remove trailing period from strings sought
2574         in the output.
2575
2576 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2577
2578         nanosleep: fix integer overflow problem
2579         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2580         arithmetic wraps around on overflow.
2581
2582         nanosleep: simplify carrying
2583         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2584         first call to the underyling nanosleep, not for the last one.
2585         This doesn't fix any bugs, but it simplifies the computation of
2586         the remaining delay.  Found while auditing integer overflow issues.
2587
2588         dup2: remove test for existence of fcntl
2589         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2590         "#if HAVE_FCNTL", in the configure-time test program.
2591         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2592         and therefore speeds up "configure" a bit.  Found while
2593         adding the dup2 module to Emacs.
2594
2595 2011-06-24  Eric Blake  <eblake@redhat.com>
2596
2597         maint.mk: enhance useless header checks
2598         * top/maint.mk (_sc_header_without_use): Check both include
2599         styles.
2600         (sc_prohibit_assert_without_use)
2601         (sc_prohibit_close_stream_without_use)
2602         (sc_prohibit_getopt_without_use)
2603         (sc_prohibit_quotearg_without_use)
2604         (sc_prohibit_quote_without_use)
2605         (sc_prohibit_long_options_without_use)
2606         (sc_prohibit_inttostr_without_use)
2607         (sc_prohibit_ignore_value_without_use)
2608         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2609         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2610         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2611         (sc_prohibit_hash_pjw_without_use)
2612         (sc_prohibit_safe_read_without_use)
2613         (sc_prohibit_argmatch_without_use)
2614         (sc_prohibit_canonicalize_without_use)
2615         (sc_prohibit_root_dev_ino_without_use)
2616         (sc_prohibit_openat_without_use)
2617         (sc_prohibit_c_ctype_without_use)
2618         (sc_prohibit_signal_without_use)
2619         (sc_prohibit_stdio--_without_use)
2620         (sc_prohibit_stdio-safer_without_use)
2621         (sc_prohibit_strings_without_use)
2622         (sc_prohibit_intprops_without_use)
2623         (sc_prohibit_stddef_without_use)
2624         (sc_prohibit_xfreopen_without_use): Update clients.
2625
2626 2011-06-24  Jim Meyering  <meyering@redhat.com>
2627
2628         syntax-check: keep one maint.mk rule in sync with its header
2629         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2630         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2631         I prefer to avoid temporary files here, so use <(...), but that
2632         is not supported by /bin/sh, so...
2633         (SHELL): Define to /bin/bash.
2634
2635 2011-06-24  Eric Blake  <eblake@redhat.com>
2636
2637         maint.mk: update sc_prohibit_intprops_without_use
2638         * top/maint.mk (_intprops_names): Match recent changes.
2639
2640 2011-06-24  Bruno Haible  <bruno@clisp.org>
2641
2642         strerror-override: No-op tweak.
2643         * lib/strerror-override.h (strerror_override): Reorder conditions,
2644         for consistency with lib/strerror-override.c.
2645
2646 2011-06-23  Eric Blake  <eblake@redhat.com>
2647
2648         maint.mk: test further PATH_MAX issues
2649         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2650         (sc_prohibit_path_max_allocation): ...and also test alloca.
2651         Suggested by Jim Meyering.
2652
2653 2011-06-22  Eric Blake  <eblake@redhat.com>
2654
2655         maint.mk: add syntax-check to avoid char[PATH_MAX]
2656         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2657
2658         stat: be robust to PATH_MAX definition
2659         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2660         * modules/stat (Depends-on): Add verify.
2661
2662         link: work around IRIX bug
2663         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2664         * lib/link.c (rpl_link): Work around it.
2665         * tests/test-link.h (test_link): Enhance test.
2666         * doc/posix-functions/link.texi (link): Document the bug.
2667
2668         getopt: silence clang warning
2669         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2670         dereference.
2671         Reported by Gustavo Martin Domato.
2672
2673 2011-06-22  Jim Meyering  <meyering@redhat.com>
2674
2675         bootstrap: do not insert a blank line into each .gitignore file
2676         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2677
2678 2011-06-21  Eric Blake  <eblake@redhat.com>
2679
2680         perror: test for output mismatch
2681         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2682         perror on IRIX.
2683
2684         strerror_r: fix OpenBSD behavior on out-of-range
2685         * lib/strerror_r.c (strerror_r): Always use maximal string.
2686         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2687
2688         strerror_r: fix OpenBSD behavior on 0
2689         * lib/strerror-override.c (strerror_override): Also override 0
2690         when needed.
2691         * lib/strerror-override.h (strerror_override): Likewise.
2692         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2693         earlier.
2694         * lib/strerror_r.c (strerror_r): Likewise.
2695         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2696         behavior...
2697         (gl_FUNC_STRERROR_0): ...into new macro.
2698         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2699         is overridden.
2700         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2701         * modules/strerror-override (Files): Add strerror.m4.
2702         (configure.ac): Also provide override for 0 when needed.
2703         * doc/posix-functions/strerror.texi (strerror): Document this.
2704         * doc/posix-functions/perror.texi (perror): Likewise.
2705
2706         perror: adjust array size
2707         * modules/perror (Depends-on): Add strerror-override.
2708         * lib/perror.c (perror): Use it to avoid magic number.
2709
2710         strerror-override: reduce size
2711         * lib/strerror-override.c (strerror_override): Use fewer lines.
2712
2713 2011-06-20  Bruno Haible  <bruno@clisp.org>
2714
2715         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2716         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2717
2718 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2719
2720         alloca: port to compilers that can optimize like GCC 4.6.0
2721         * lib/alloca.c (find_stack_direction): New signature, taken from
2722         Autoconf git.  This works with GCC 4.6.0.  This code should never
2723         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2724         be used with other compilers that optimize as well as GCC 4.6.0 does.
2725         (alloca): Adjust to new signature.
2726         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2727         New macro, which patches Autoconf in a similar way.
2728
2729         c-stack: stop worrying about stack direction
2730         * lib/c-stack.c (find_stack_direction): Remove.
2731         (segv_handler): Don't worry about stack direction growth, as it's
2732         too much of a pain to configure this correctly, given how compilers
2733         are optimizing-away our stack-growth detection code.  Instead, assume
2734         that any access to just before or just after the stack is OK.
2735         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2736         Don't require AC_FUNC_ALLOCA; no longer needed.
2737
2738 2011-06-20  Eric Blake  <eblake@redhat.com>
2739
2740         test-stat: don't allocate PATH_MAX bytes
2741         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2742         PATH_MAX-sized buffer.
2743         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2744         * modules/stat-tests (Depends-on): Likewise.
2745         * tests/test-fstatat.c (includes): Drop pathmax.h.
2746         * tests/test-stat.c (includes): Likewise.
2747         Reported by Bruno Haible.
2748
2749 2011-06-20  Bruno Haible  <bruno@clisp.org>
2750
2751         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2752         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2753         * lib/float.c: New file.
2754         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2755         REPLACE_FLOAT_LDBL.
2756         * modules/float (Files): Add lib/float.c.
2757         (configure.ac): Invoke AC_LIBOBJ.
2758         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2759
2760 2011-06-20  Bruno Haible  <bruno@clisp.org>
2761
2762         Tests for module 'float'.
2763         * modules/float-tests: New file.
2764         * tests/test-float.c: New file.
2765
2766 2011-06-19  Bruno Haible  <bruno@clisp.org>
2767
2768         isinf: Coding style.
2769         * lib/isinf.c: Use GNU coding style.
2770
2771 2011-06-19  Bruno Haible  <bruno@clisp.org>
2772
2773         linkat test: Avoid test failure on AIX 7.1.
2774         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2775         * tests/test-link.h (test_link): Likewise.
2776
2777 2011-06-19  Bruno Haible  <bruno@clisp.org>
2778
2779         pread test: Avoid test failure on OpenBSD 4.9.
2780         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2781
2782 2011-06-19  Bruno Haible  <bruno@clisp.org>
2783
2784         sprintf-posix: Fix test failure on AIX 7.1.
2785         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2786         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2787         on AIX.
2788         * doc/posix-functions/fprintf.texi: Likewise.
2789         * doc/posix-functions/printf.texi: Likewise.
2790         * doc/posix-functions/snprintf.texi: Likewise.
2791         * doc/posix-functions/sprintf.texi: Likewise.
2792         * doc/posix-functions/vdprintf.texi: Likewise.
2793         * doc/posix-functions/vfprintf.texi: Likewise.
2794         * doc/posix-functions/vprintf.texi: Likewise.
2795         * doc/posix-functions/vsnprintf.texi: Likewise.
2796         * doc/posix-functions/vsprintf.texi: Likewise.
2797
2798 2011-06-19  Bruno Haible  <bruno@clisp.org>
2799
2800         roundl-ieee: Fix test failure on AIX 7.1.
2801         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2802         * doc/posix-functions/roundl.texi: Mention problem with negative
2803         arguments.
2804
2805 2011-06-19  Bruno Haible  <bruno@clisp.org>
2806
2807         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2808         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2809         * doc/posix-functions/round.texi: Mention problem with negative
2810         arguments.
2811         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2812
2813 2011-06-19  Bruno Haible  <bruno@clisp.org>
2814
2815         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2816         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2817         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2818         * doc/posix-functions/roundf.texi: Mention problem with negative
2819         arguments.
2820         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2821
2822 2011-06-19  Bruno Haible  <bruno@clisp.org>
2823
2824         ceilf-ieee: Work around bug on MacOS X 10.5.
2825         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2826
2827         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2828         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2829         IEEE compliant, avoid compiler optimizations.
2830         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2831         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2832         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2833         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2834         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2835         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2836         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2837         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2838         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2839         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2840
2841 2011-06-19  Bruno Haible  <bruno@clisp.org>
2842
2843         ceilf-ieee: Work around bug on AIX 7.1.
2844         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2845         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2846
2847 2011-06-19  Bruno Haible  <bruno@clisp.org>
2848
2849         ceil-ieee: Work around bug on AIX 7.1.
2850         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2851         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2852
2853 2011-06-18  Bruno Haible  <bruno@clisp.org>
2854
2855         fsync test: Avoid test failure on MacOS X and AIX.
2856         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2857         EINVAL.
2858
2859 2011-06-18  Bruno Haible  <bruno@clisp.org>
2860
2861         openat, fdopendir tests: Fix link errors.
2862         * modules/openat-tests (Depends-on): Add progname.
2863         * modules/fdopendir-tests (Depends-on): Likewise.
2864         * tests/test-fchownat.c: Include progname.h.
2865         (main): Call set_program_name.
2866         * tests/test-fstatat.c: Include progname.h.
2867         (main): Call set_program_name.
2868         * tests/test-mkdirat.c: Include progname.h.
2869         (main): Call set_program_name.
2870         * tests/test-openat.c: Include progname.h.
2871         (main): Call set_program_name.
2872         * tests/test-unlinkat.c: Include progname.h.
2873         (main): Call set_program_name.
2874         * tests/test-fdopendir.c: Include progname.h.
2875         (main): Call set_program_name.
2876
2877 2011-06-18  Bruno Haible  <bruno@clisp.org>
2878
2879         Doc update.
2880         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2881         HP-UX.
2882         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2883
2884 2011-06-18  Bruno Haible  <bruno@clisp.org>
2885
2886         getcwd tests: Avoid compilation error on HP-UX 11.31.
2887         * modules/getcwd-tests (Depends-on): Add pathmax.
2888         * tests/test-getcwd.c: Include pathmax.h.
2889
2890 2011-06-18  Bruno Haible  <bruno@clisp.org>
2891
2892         isfinite, isinf: Fix link error on AIX 6 and 7.
2893         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2894         needed, also test the macro with a 'float' argument.
2895         * m4/isinf.m4 (gl_ISINF): Likewise.
2896
2897 2011-06-18  Bruno Haible  <bruno@clisp.org>
2898
2899         getloadavg: Don't clobber LIBS. Regression from previous commit.
2900         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2901         AC_CHECK_LIB from here...
2902         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2903         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2904         gl_func_getloadavg_done.
2905         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2906
2907 2011-06-18  Bruno Haible  <bruno@clisp.org>
2908
2909         clean-temp: Improve documentation.
2910         * lib/clean-temp.h: Explain better how to use this module.
2911         Reported by John Darrington <john@darrington.wattle.id.au>.
2912
2913 2011-06-17  Bruno Haible  <bruno@clisp.org>
2914
2915         pread, pwrite: Avoid cc warning on AIX.
2916         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2917         (pwrite): Likewise.
2918
2919 2011-06-17  Bruno Haible  <bruno@clisp.org>
2920
2921         spawn-pipe tests: Fix link error.
2922         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2924
2925 2011-06-17  Bruno Haible  <bruno@clisp.org>
2926
2927         Tests: Remove unnecessary dependency.
2928         * modules/canonicalize-tests (Depends-on): Remove progname.
2929         * modules/chown-tests (Depends-on): Likewise.
2930         * modules/dirname-tests (Depends-on): Likewise.
2931         * modules/fdopendir-tests (Depends-on): Likewise.
2932         * modules/fdutimensat-tests (Depends-on): Likewise.
2933         * modules/hash-tests (Depends-on): Likewise.
2934         * modules/lchown-tests (Depends-on): Likewise.
2935         * modules/linkat-tests (Depends-on): Likewise.
2936         * modules/renameat-tests (Depends-on): Likewise.
2937         * modules/spawn-pipe-tests (Depends-on): Likewise.
2938         * modules/utimensat-tests (Depends-on): Likewise.
2939
2940 2011-06-17  Bruno Haible  <bruno@clisp.org>
2941
2942         spawn-pipe tests: Fix link error.
2943         * tests/test-spawn-pipe-child.c: Undefine fflush.
2944
2945 2011-06-17  Bruno Haible  <bruno@clisp.org>
2946
2947         Fix tests link errors.
2948         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2949         * modules/chown-tests (Makefile.am): Don't link test-chown with
2950         LIBINTL.
2951         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2952         LIBINTL.
2953         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2954         LIBINTL.
2955         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2956         LIBINTL.
2957
2958 2011-06-16  Bruno Haible  <bruno@clisp.org>
2959
2960         crypto/gc-sha1: Fix recent regression.
2961         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2962         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2963
2964         crypto/gc-md5: Fix recent regression.
2965         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2966
2967         crypto/gc-md4: Fix recent regression.
2968         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2969         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2970
2971         crypto/gc-arctwo: Fix recent regression.
2972         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2973         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2974
2975         crypto/gc-rijndael: Fix recent regression.
2976         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2977         (configure.ac): Invoke AC_LIBOBJ here.
2978         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2979         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2980
2981         crypto/gc-hmac-sha1: Fix recent regression.
2982         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2983         (configure.ac): Invoke AC_LIBOBJ here.
2984         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2986
2987         crypto/gc-hmac-md5: Fix recent regression.
2988         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2989         (configure.ac): Invoke AC_LIBOBJ here.
2990         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2992
2993         crypto/gc-des: Fix recent regression.
2994         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2995         (configure.ac): Invoke AC_LIBOBJ here.
2996         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2997         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2998
2999         crypto/gc-arcfour: Fix recent regression.
3000         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3001         (configure.ac): Invoke AC_LIBOBJ here.
3002         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3003         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3004
3005 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3006
3007         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3008         After the 2011-05-21 change, this macro requires
3009         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3010         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3011
3012 2011-06-16  Bruno Haible  <bruno@clisp.org>
3013
3014         fprintftime: Move AC_LIBOBJ invocations to module description.
3015         * m4/fprintftime.m4: Remove file.
3016         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3017         (configure.ac): Remove gl_FPRINTFTIME call.
3018         (Makefile.am): Augment lib_SOURCES.
3019         Reported by Jim Meyering.
3020
3021 2011-06-16  Bruno Haible  <bruno@clisp.org>
3022
3023         tmpfile-safer: Finish 2011-05-23 commit.
3024         * m4/stdio-safer.m4: Really remove file.
3025         Reported by Jim Meyering.
3026
3027 2011-06-16  Bruno Haible  <bruno@clisp.org>
3028
3029         syntax-check: Fix typo.
3030         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3031         printf-posix.m4.
3032         Reported by Jim Meyering.
3033
3034 2011-06-13  Jim Meyering  <meyering@redhat.com>
3035
3036         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3037         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3038
3039 2011-05-23  Bruno Haible  <bruno@clisp.org>
3040
3041         yesno: Move AC_LIBOBJ invocations to module description.
3042         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3043         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3044
3045 2011-05-23  Bruno Haible  <bruno@clisp.org>
3046
3047         xstrtol: Move AC_LIBOBJ invocations to module description.
3048         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3049         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3050
3051 2011-05-23  Bruno Haible  <bruno@clisp.org>
3052
3053         xstrtold: Move AC_LIBOBJ invocations to module description.
3054         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3055         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3056
3057 2011-05-23  Bruno Haible  <bruno@clisp.org>
3058
3059         xstrtod: Move AC_LIBOBJ invocations to module description.
3060         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3061         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3062
3063 2011-05-23  Bruno Haible  <bruno@clisp.org>
3064
3065         xnanosleep: Move AC_LIBOBJ invocations to module description.
3066         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3067         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3068
3069 2011-05-23  Bruno Haible  <bruno@clisp.org>
3070
3071         xgetcwd: Move AC_LIBOBJ invocations to module description.
3072         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3073         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3074
3075 2011-05-23  Bruno Haible  <bruno@clisp.org>
3076
3077         xalloc: Move AC_LIBOBJ invocations to module description.
3078         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3079         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3080
3081 2011-05-23  Bruno Haible  <bruno@clisp.org>
3082
3083         write-any-file: Move AC_LIBOBJ invocations to module description.
3084         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3085         invocation.
3086         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3087
3088 2011-05-23  Bruno Haible  <bruno@clisp.org>
3089
3090         utimens: Move AC_LIBOBJ invocations to module description.
3091         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3092         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3093
3094 2011-05-23  Bruno Haible  <bruno@clisp.org>
3095
3096         utimecmp: Move AC_LIBOBJ invocations to module description.
3097         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3098         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3099
3100 2011-05-23  Bruno Haible  <bruno@clisp.org>
3101
3102         userspec: Move AC_LIBOBJ invocations to module description.
3103         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3104         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3105
3106 2011-05-23  Bruno Haible  <bruno@clisp.org>
3107
3108         unlinkdir: Move AC_LIBOBJ invocations to module description.
3109         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3110         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3111
3112 2011-05-23  Bruno Haible  <bruno@clisp.org>
3113
3114         unistd-safer: Move AC_LIBOBJ invocations to module description.
3115         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3116         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3117
3118 2011-05-23  Bruno Haible  <bruno@clisp.org>
3119
3120         tempname: Move AC_LIBOBJ invocations to module description.
3121         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3122         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3123
3124 2011-05-23  Bruno Haible  <bruno@clisp.org>
3125
3126         strftime: Move AC_LIBOBJ invocations to module description.
3127         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3128         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3129
3130 2011-05-23  Bruno Haible  <bruno@clisp.org>
3131
3132         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3133         * m4/stdlib-safer.m4: Remove file.
3134         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3135         (configure.ac): Remove gl_STDLIB_SAFER call.
3136         (Makefile.am): Augment lib_SOURCES.
3137
3138 2011-05-23  Bruno Haible  <bruno@clisp.org>
3139
3140         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3141         * m4/stdio-safer.m4: Remove file.
3142         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3143         (configure.ac): Remove gl_TMPFILE_SAFER call.
3144         (Makefile.am): Augment lib_SOURCES.
3145
3146 2011-05-23  Bruno Haible  <bruno@clisp.org>
3147
3148         popen-safer: Move AC_LIBOBJ invocations to module description.
3149         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3150         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3151         (configure.ac): Remove gl_POPEN_SAFER call.
3152         (Makefile.am): Augment lib_SOURCES.
3153
3154 2011-05-23  Bruno Haible  <bruno@clisp.org>
3155
3156         freopen-safer: Move AC_LIBOBJ invocations to module description.
3157         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3158         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3159         (configure.ac): Remove gl_FREOPEN_SAFER call.
3160         (Makefile.am): Augment lib_SOURCES.
3161
3162 2011-05-23  Bruno Haible  <bruno@clisp.org>
3163
3164         fopen-safer: Move AC_LIBOBJ invocations to module description.
3165         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3166         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3167         (configure.ac): Remove gl_FOPEN_SAFER call.
3168         (Makefile.am): Augment lib_SOURCES.
3169
3170 2011-05-23  Bruno Haible  <bruno@clisp.org>
3171
3172         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3173         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3174         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3175
3176 2011-05-23  Bruno Haible  <bruno@clisp.org>
3177
3178         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3179         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3180         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3181
3182 2011-05-23  Bruno Haible  <bruno@clisp.org>
3183
3184         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3185         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3186         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3187
3188 2011-05-23  Bruno Haible  <bruno@clisp.org>
3189
3190         settime: Move AC_LIBOBJ invocations to module description.
3191         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3192         * modules/settime (Makefile.am): Augment lib_SOURCES.
3193
3194 2011-05-23  Bruno Haible  <bruno@clisp.org>
3195
3196         savedir: Move AC_LIBOBJ invocations to module description.
3197         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3198         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3199
3200 2011-05-23  Bruno Haible  <bruno@clisp.org>
3201
3202         save-cwd: Move AC_LIBOBJ invocations to module description.
3203         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3204         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3205
3206 2011-05-23  Bruno Haible  <bruno@clisp.org>
3207
3208         same: Move AC_LIBOBJ invocations to module description.
3209         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3210         * modules/same (Makefile.am): Augment lib_SOURCES.
3211
3212 2011-05-23  Bruno Haible  <bruno@clisp.org>
3213
3214         safe-write: Move AC_LIBOBJ invocations to module description.
3215         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3216         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3217         instead of gl_SAFE_WRITE.
3218         (Makefile.am): Augment lib_SOURCES.
3219
3220 2011-05-23  Bruno Haible  <bruno@clisp.org>
3221
3222         safe-read: Move AC_LIBOBJ invocations to module description.
3223         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3224         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3225         of gl_SAFE_READ.
3226         (Makefile.am): Augment lib_SOURCES.
3227
3228 2011-05-23  Bruno Haible  <bruno@clisp.org>
3229
3230         safe-alloc: Move AC_LIBOBJ invocations to module description.
3231         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3232         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3233
3234 2011-05-23  Bruno Haible  <bruno@clisp.org>
3235
3236         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3237         * m4/rijndael.m4: Remove file.
3238         * modules/crypto/rijndael (Files): Remove it.
3239         (configure.ac): Remove gl_RIJNDAEL call.
3240         (Makefile.am): Augment lib_SOURCES.
3241
3242 2011-05-23  Bruno Haible  <bruno@clisp.org>
3243
3244         readtokens: Move AC_LIBOBJ invocations to module description.
3245         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3246         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3247
3248 2011-05-23  Bruno Haible  <bruno@clisp.org>
3249
3250         read-file: Move AC_LIBOBJ invocations to module description.
3251         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3252         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3253         of gl_FUNC_READ_FILE.
3254         (Makefile.am): Augment lib_SOURCES.
3255
3256 2011-05-23  Bruno Haible  <bruno@clisp.org>
3257
3258         quotearg: Move AC_LIBOBJ invocations to module description.
3259         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3260         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3261
3262 2011-05-23  Bruno Haible  <bruno@clisp.org>
3263
3264         quote: Move AC_LIBOBJ invocations to module description.
3265         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3266         * modules/quote (Makefile.am): Augment lib_SOURCES.
3267
3268 2011-05-23  Bruno Haible  <bruno@clisp.org>
3269
3270         posixver: Move AC_LIBOBJ invocations to module description.
3271         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3272         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3273
3274 2011-05-23  Bruno Haible  <bruno@clisp.org>
3275
3276         posixtm: Move AC_LIBOBJ invocations to module description.
3277         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3278         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3279
3280 2011-05-23  Bruno Haible  <bruno@clisp.org>
3281
3282         physmem: Move AC_LIBOBJ invocations to module description.
3283         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3284         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3285
3286 2011-05-23  Bruno Haible  <bruno@clisp.org>
3287
3288         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3289         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3290         invocation.
3291         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3292
3293 2011-05-23  Bruno Haible  <bruno@clisp.org>
3294
3295         mpsort: Move AC_LIBOBJ invocations to module description.
3296         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3297         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3298
3299 2011-05-23  Bruno Haible  <bruno@clisp.org>
3300
3301         modechange: Move AC_LIBOBJ invocations to module description.
3302         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3303         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3304
3305 2011-05-23  Bruno Haible  <bruno@clisp.org>
3306
3307         mkdir-p: Move AC_LIBOBJ invocations to module description.
3308         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3309         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3310
3311 2011-05-23  Bruno Haible  <bruno@clisp.org>
3312
3313         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3314         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3315         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3316
3317 2011-05-23  Bruno Haible  <bruno@clisp.org>
3318
3319         mgetgroups: Move AC_LIBOBJ invocations to module description.
3320         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3321         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3322
3323 2011-05-23  Bruno Haible  <bruno@clisp.org>
3324
3325         memxor: Move AC_LIBOBJ invocations to module description.
3326         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3327         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3328
3329 2011-05-23  Bruno Haible  <bruno@clisp.org>
3330
3331         memcoll: Move AC_LIBOBJ invocations to module description.
3332         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3333         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3334
3335 2011-05-23  Bruno Haible  <bruno@clisp.org>
3336
3337         memcasecmp: Move AC_LIBOBJ invocations to module description.
3338         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3339         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3340
3341 2011-05-23  Bruno Haible  <bruno@clisp.org>
3342
3343         crypto/md5: Move AC_LIBOBJ invocations to module description.
3344         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3345         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3346
3347 2011-05-23  Bruno Haible  <bruno@clisp.org>
3348
3349         crypto/md4: Move AC_LIBOBJ invocations to module description.
3350         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3351         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3352
3353 2011-05-23  Bruno Haible  <bruno@clisp.org>
3354
3355         crypto/md2: Move AC_LIBOBJ invocations to module description.
3356         * m4/md2.m4: Remove file.
3357         * modules/crypto/md2 (Files): Remove it.
3358         (configure.ac): Remove gl_MD2 call.
3359         (Makefile.am): Augment lib_SOURCES.
3360
3361 2011-05-23  Bruno Haible  <bruno@clisp.org>
3362
3363         long-options: Move AC_LIBOBJ invocations to module description.
3364         * m4/long-options.m4: Remove file.
3365         * modules/long-options (Files): Remove it.
3366         (configure.ac): Remove gl_LONG_OPTIONS call.
3367         (Makefile.am): Augment lib_SOURCES.
3368
3369 2011-05-23  Bruno Haible  <bruno@clisp.org>
3370
3371         i-ring: Move AC_LIBOBJ invocations to module description.
3372         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3373         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3374
3375 2011-05-23  Bruno Haible  <bruno@clisp.org>
3376
3377         idcache: Move AC_LIBOBJ invocations to module description.
3378         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3379         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3380
3381 2011-05-23  Bruno Haible  <bruno@clisp.org>
3382
3383         human: Move AC_LIBOBJ invocations to module description.
3384         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3385         * modules/human (Makefile.am): Augment lib_SOURCES.
3386
3387 2011-05-23  Bruno Haible  <bruno@clisp.org>
3388
3389         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3390         * m4/hmac-sha1.m4: Remove file.
3391         * modules/crypto/hmac-sha1 (Files): Remove it.
3392         (configure.ac): Remove gl_HMAC_SHA1 call.
3393         (Makefile.am): Augment lib_SOURCES.
3394
3395 2011-05-23  Bruno Haible  <bruno@clisp.org>
3396
3397         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3398         * m4/hmac-md5.m4: Remove file.
3399         * modules/crypto/hmac-md5 (Files): Remove it.
3400         (configure.ac): Remove gl_HMAC_MD5 call.
3401         (Makefile.am): Augment lib_SOURCES.
3402
3403 2011-05-23  Bruno Haible  <bruno@clisp.org>
3404
3405         hash: Move AC_LIBOBJ invocations to module description.
3406         * m4/hash.m4: Remove file.
3407         * modules/hash (Files): Remove it.
3408         (configure.ac): Remove gl_HASH call.
3409         (Makefile.am): Augment lib_SOURCES.
3410
3411 2011-05-23  Bruno Haible  <bruno@clisp.org>
3412
3413         hard-locale: Move AC_LIBOBJ invocations to module description.
3414         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3415         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3416
3417 2011-05-23  Bruno Haible  <bruno@clisp.org>
3418
3419         getugroups: Move AC_LIBOBJ invocations to module description.
3420         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3421         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3422
3423 2011-05-23  Bruno Haible  <bruno@clisp.org>
3424
3425         gettime: Move AC_LIBOBJ invocations to module description.
3426         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3427         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3428
3429 2011-05-23  Bruno Haible  <bruno@clisp.org>
3430
3431         getndelim2: Move AC_LIBOBJ invocations to module description.
3432         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3433         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3434
3435 2011-05-23  Bruno Haible  <bruno@clisp.org>
3436
3437         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3438         * m4/gc-pbkdf2-sha1.m4: Remove file.
3439         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3440         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3441         (Makefile.am): Augment lib_SOURCES.
3442
3443 2011-05-23  Bruno Haible  <bruno@clisp.org>
3444
3445         fts: Move AC_LIBOBJ invocations to module description.
3446         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3447         * modules/fts (configure.ac): ... to here.
3448
3449 2011-05-23  Bruno Haible  <bruno@clisp.org>
3450
3451         file-type: Move AC_LIBOBJ invocations to module description.
3452         * m4/file-type.m4: Remove file.
3453         * modules/file-type (Files): Remove it.
3454         (configure.ac): Remove gl_FILE_TYPE call.
3455         (Makefile.am): Augment lib_SOURCES.
3456
3457 2011-05-23  Bruno Haible  <bruno@clisp.org>
3458
3459         filenamecat*: Respect rules for use of AC_LIBOBJ.
3460         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3461         Remove AC_LIBOBJ invocation.
3462         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3463         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3464
3465 2011-05-23  Bruno Haible  <bruno@clisp.org>
3466
3467         filemode: Move AC_LIBOBJ invocations to module description.
3468         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3469         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3470
3471 2011-05-23  Bruno Haible  <bruno@clisp.org>
3472
3473         openat-safer: Move AC_LIBOBJ invocations to module description.
3474         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3475         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3476
3477 2011-05-23  Bruno Haible  <bruno@clisp.org>
3478
3479         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3480         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3481         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3482
3483 2011-05-23  Bruno Haible  <bruno@clisp.org>
3484
3485         exclude: Move AC_LIBOBJ invocations to module description.
3486         * m4/exclude.m4: Remove file.
3487         * modules/exclude (Files): Remove it.
3488         (configure.ac): Remove gl_EXCLUDE call.
3489         (Makefile.am): Augment lib_SOURCES.
3490
3491 2011-05-23  Bruno Haible  <bruno@clisp.org>
3492
3493         dirname*: Respect rules for use of AC_LIBOBJ.
3494         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3495         invocations.
3496         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3497         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3498
3499 2011-05-23  Bruno Haible  <bruno@clisp.org>
3500
3501         dirent-safer: Move AC_LIBOBJ invocations to module description.
3502         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3503         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3504
3505 2011-05-23  Bruno Haible  <bruno@clisp.org>
3506
3507         crypto/des: Move AC_LIBOBJ invocations to module description.
3508         * m4/des.m4: Remove file.
3509         * modules/crypto/des (Files): Remove it.
3510         (configure.ac): Remove gl_DES call.
3511         (Makefile.am): Augment lib_SOURCES.
3512
3513 2011-05-23  Bruno Haible  <bruno@clisp.org>
3514
3515         cycle-check: Move AC_LIBOBJ invocations to module description.
3516         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3517         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3518
3519 2011-05-23  Bruno Haible  <bruno@clisp.org>
3520
3521         c-strtold: Move AC_LIBOBJ invocations to module description.
3522         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3523         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3524
3525 2011-05-23  Bruno Haible  <bruno@clisp.org>
3526
3527         c-strtod: Move AC_LIBOBJ invocations to module description.
3528         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3529         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3530
3531 2011-05-23  Bruno Haible  <bruno@clisp.org>
3532
3533         crc: Move AC_LIBOBJ invocations to module description.
3534         * m4/crc.m4: Remove file.
3535         * modules/crc (Files): Remove it.
3536         (configure.ac): Remove gl_CRC call.
3537         (Makefile.am): Augment lib_SOURCES.
3538
3539 2011-05-23  Bruno Haible  <bruno@clisp.org>
3540
3541         close-stream: Move AC_LIBOBJ invocations to module description.
3542         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3543         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3544
3545 2011-05-23  Bruno Haible  <bruno@clisp.org>
3546
3547         closeout: Move AC_LIBOBJ invocations to module description.
3548         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3549         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3550
3551 2011-05-23  Bruno Haible  <bruno@clisp.org>
3552
3553         closein: Move AC_LIBOBJ invocations to module description.
3554         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3555         * modules/closein (Makefile.am): Augment lib_SOURCES.
3556
3557 2011-05-23  Bruno Haible  <bruno@clisp.org>
3558
3559         cloexec: Move AC_LIBOBJ invocations to module description.
3560         * m4/cloexec.m4: Remove file.
3561         * modules/cloexec (Files): Remove it.
3562         (configure.ac): Remove gl_CLOEXEC call.
3563         (Makefile.am): Augment lib_SOURCES.
3564
3565 2011-05-23  Bruno Haible  <bruno@clisp.org>
3566
3567         check-version: Move AC_LIBOBJ invocations to module description.
3568         * m4/check-version.m4: Remove file.
3569         * modules/check-version (Files): Remove it.
3570         (configure.ac): Remove gl_CHECK_VERSION call.
3571         (Makefile.am): Augment lib_SOURCES.
3572
3573 2011-05-23  Bruno Haible  <bruno@clisp.org>
3574
3575         chdir-safer: Move AC_LIBOBJ invocations to module description.
3576         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3577         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3578
3579 2011-05-23  Bruno Haible  <bruno@clisp.org>
3580
3581         canonicalize: Move AC_LIBOBJ invocations to module description.
3582         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3583         AC_LIBOBJ invocation.
3584         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3585
3586 2011-05-23  Bruno Haible  <bruno@clisp.org>
3587
3588         canon-host: Move AC_LIBOBJ invocations to module description.
3589         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3590         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3591         instead of gl_CANON_HOST.
3592         (Makefile.am): Augment lib_SOURCES.
3593
3594 2011-05-23  Bruno Haible  <bruno@clisp.org>
3595
3596         backupfile: Move AC_LIBOBJ invocations to module description.
3597         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3598         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3599
3600 2011-05-23  Bruno Haible  <bruno@clisp.org>
3601
3602         argmatch: Move AC_LIBOBJ invocations to module description.
3603         * m4/argmatch.m4: Remove file.
3604         * modules/argmatch (Files): Remove it.
3605         (configure.ac): Remove gl_ARGMATCH call.
3606         (Makefile.am): Augment lib_SOURCES.
3607
3608 2011-05-23  Bruno Haible  <bruno@clisp.org>
3609
3610         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3611         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3612         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3613
3614 2011-05-23  Bruno Haible  <bruno@clisp.org>
3615
3616         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3617         * m4/arcfour.m4: Remove file.
3618         * modules/crypto/arcfour (Files): Remove it.
3619         (configure.ac): Remove gl_ARCFOUR call.
3620         (Makefile.am): Augment lib_SOURCES.
3621
3622 2011-05-22  Bruno Haible  <bruno@clisp.org>
3623
3624         write: Move AC_LIBOBJ invocations to module description.
3625         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3626         * modules/write (configure.ac): ... to here.
3627
3628 2011-05-22  Bruno Haible  <bruno@clisp.org>
3629
3630         wmemset: Move AC_LIBOBJ invocations to module description.
3631         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3632         here...
3633         * modules/wmemset (configure.ac): ... to here.
3634
3635 2011-05-22  Bruno Haible  <bruno@clisp.org>
3636
3637         wmemmove: Move AC_LIBOBJ invocations to module description.
3638         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3639         here...
3640         * modules/wmemmove (configure.ac): ... to here.
3641
3642 2011-05-22  Bruno Haible  <bruno@clisp.org>
3643
3644         wmemcpy: Move AC_LIBOBJ invocations to module description.
3645         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3646         here...
3647         * modules/wmemcpy (configure.ac): ... to here.
3648
3649 2011-05-22  Bruno Haible  <bruno@clisp.org>
3650
3651         wmemcmp: Move AC_LIBOBJ invocations to module description.
3652         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3653         here...
3654         * modules/wmemcmp (configure.ac): ... to here.
3655
3656 2011-05-22  Bruno Haible  <bruno@clisp.org>
3657
3658         wmemchr: Move AC_LIBOBJ invocations to module description.
3659         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3660         here...
3661         * modules/wmemchr (configure.ac): ... to here.
3662
3663 2011-05-22  Bruno Haible  <bruno@clisp.org>
3664
3665         wcswidth: Move AC_LIBOBJ invocations to module description.
3666         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3667         here...
3668         * modules/wcswidth (configure.ac): ... to here.
3669
3670 2011-05-22  Bruno Haible  <bruno@clisp.org>
3671
3672         wcwidth: Respect rules for use of AC_LIBOBJ.
3673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3674         invocation from here...
3675         * modules/wcwidth (configure.ac): ... to here.
3676         (Depends-on): Update conditions.
3677
3678 2011-05-22  Bruno Haible  <bruno@clisp.org>
3679
3680         wctype: Move AC_LIBOBJ invocations to module description.
3681         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3682         invocation from here...
3683         * modules/wctype (configure.ac): ... to here.
3684         (Depends-on): Update conditions.
3685
3686 2011-05-22  Bruno Haible  <bruno@clisp.org>
3687
3688         wctrans: Move AC_LIBOBJ invocations to module description.
3689         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3690         invocation from here...
3691         * modules/wctrans (configure.ac): ... to here.
3692
3693 2011-05-22  Bruno Haible  <bruno@clisp.org>
3694
3695         wctomb: Move AC_LIBOBJ invocations to module description.
3696         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3697         invocations from here...
3698         * modules/wctomb (configure.ac): ... to here.
3699
3700 2011-05-22  Bruno Haible  <bruno@clisp.org>
3701
3702         wctob: Move AC_LIBOBJ invocations to module description.
3703         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3704         gl_PREREQ_WCTOB invocations from here...
3705         * modules/wctob (configure.ac): ... to here.
3706         (Depends-on): Update conditions.
3707
3708 2011-05-22  Bruno Haible  <bruno@clisp.org>
3709
3710         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3711         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3712         here...
3713         * modules/wcsxfrm (configure.ac): ... to here.
3714
3715 2011-05-22  Bruno Haible  <bruno@clisp.org>
3716
3717         wcstok: Move AC_LIBOBJ invocations to module description.
3718         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3719         * modules/wcstok (configure.ac): ... to here.
3720
3721 2011-05-22  Bruno Haible  <bruno@clisp.org>
3722
3723         wcsstr: Move AC_LIBOBJ invocations to module description.
3724         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3725         * modules/wcsstr (configure.ac): ... to here.
3726
3727 2011-05-22  Bruno Haible  <bruno@clisp.org>
3728
3729         wcsspn: Move AC_LIBOBJ invocations to module description.
3730         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3731         * modules/wcsspn (configure.ac): ... to here.
3732
3733 2011-05-22  Bruno Haible  <bruno@clisp.org>
3734
3735         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3736         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3737         gl_PREREQ_WCSRTOMBS invocations from here...
3738         * modules/wcsrtombs (configure.ac): ... to here.
3739
3740 2011-05-22  Bruno Haible  <bruno@clisp.org>
3741
3742         wcsrchr: Move AC_LIBOBJ invocations to module description.
3743         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3744         here...
3745         * modules/wcsrchr (configure.ac): ... to here.
3746
3747 2011-05-22  Bruno Haible  <bruno@clisp.org>
3748
3749         wcspbrk: Move AC_LIBOBJ invocations to module description.
3750         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3751         here...
3752         * modules/wcspbrk (configure.ac): ... to here.
3753
3754 2011-05-22  Bruno Haible  <bruno@clisp.org>
3755
3756         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3757         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3758         gl_PREREQ_WCSNRTOMBS invocations from here...
3759         * modules/wcsnrtombs (configure.ac): ... to here.
3760
3761 2011-05-22  Bruno Haible  <bruno@clisp.org>
3762
3763         wcsnlen: Move AC_LIBOBJ invocations to module description.
3764         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3765         here...
3766         * modules/wcsnlen (configure.ac): ... to here.
3767
3768 2011-05-22  Bruno Haible  <bruno@clisp.org>
3769
3770         wcsncpy: Move AC_LIBOBJ invocations to module description.
3771         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3772         here...
3773         * modules/wcsncpy (configure.ac): ... to here.
3774
3775 2011-05-22  Bruno Haible  <bruno@clisp.org>
3776
3777         wcsncmp: Move AC_LIBOBJ invocations to module description.
3778         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3779         here...
3780         * modules/wcsncmp (configure.ac): ... to here.
3781
3782 2011-05-22  Bruno Haible  <bruno@clisp.org>
3783
3784         wcsncat: Move AC_LIBOBJ invocations to module description.
3785         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3786         here...
3787         * modules/wcsncat (configure.ac): ... to here.
3788
3789 2011-05-22  Bruno Haible  <bruno@clisp.org>
3790
3791         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3792         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3793         from here...
3794         * modules/wcsncasecmp (configure.ac): ... to here.
3795
3796 2011-05-22  Bruno Haible  <bruno@clisp.org>
3797
3798         wcslen: Move AC_LIBOBJ invocations to module description.
3799         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3800         * modules/wcslen (configure.ac): ... to here.
3801
3802 2011-05-22  Bruno Haible  <bruno@clisp.org>
3803
3804         wcsdup: Move AC_LIBOBJ invocations to module description.
3805         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3806         * modules/wcsdup (configure.ac): ... to here.
3807
3808 2011-05-22  Bruno Haible  <bruno@clisp.org>
3809
3810         wcscspn: Move AC_LIBOBJ invocations to module description.
3811         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3812         here...
3813         * modules/wcscspn (configure.ac): ... to here.
3814
3815 2011-05-22  Bruno Haible  <bruno@clisp.org>
3816
3817         wcscpy: Move AC_LIBOBJ invocations to module description.
3818         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3819         * modules/wcscpy (configure.ac): ... to here.
3820
3821 2011-05-22  Bruno Haible  <bruno@clisp.org>
3822
3823         wcscoll: Move AC_LIBOBJ invocations to module description.
3824         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3825         here...
3826         * modules/wcscoll (configure.ac): ... to here.
3827
3828 2011-05-22  Bruno Haible  <bruno@clisp.org>
3829
3830         wcscmp: Move AC_LIBOBJ invocations to module description.
3831         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3832         * modules/wcscmp (configure.ac): ... to here.
3833
3834 2011-05-22  Bruno Haible  <bruno@clisp.org>
3835
3836         wcschr: Move AC_LIBOBJ invocations to module description.
3837         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3838         * modules/wcschr (configure.ac): ... to here.
3839
3840 2011-05-22  Bruno Haible  <bruno@clisp.org>
3841
3842         wcscat: Move AC_LIBOBJ invocations to module description.
3843         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3844         * modules/wcscat (configure.ac): ... to here.
3845
3846 2011-05-22  Bruno Haible  <bruno@clisp.org>
3847
3848         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3849         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3850         here...
3851         * modules/wcscasecmp (configure.ac): ... to here.
3852
3853 2011-05-22  Bruno Haible  <bruno@clisp.org>
3854
3855         wcrtomb: Move AC_LIBOBJ invocations to module description.
3856         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3857         invocations from here...
3858         * modules/wcrtomb (configure.ac): ... to here.
3859
3860 2011-05-22  Bruno Haible  <bruno@clisp.org>
3861
3862         wcpncpy: Move AC_LIBOBJ invocations to module description.
3863         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3864         here...
3865         * modules/wcpncpy (configure.ac): ... to here.
3866
3867 2011-05-22  Bruno Haible  <bruno@clisp.org>
3868
3869         wcpcpy: Move AC_LIBOBJ invocations to module description.
3870         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3871         * modules/wcpcpy (configure.ac): ... to here.
3872
3873 2011-05-22  Bruno Haible  <bruno@clisp.org>
3874
3875         waitpid: Move AC_LIBOBJ invocations to module description.
3876         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3877         invocation from here...
3878         * modules/waitpid (configure.ac): ... to here.
3879
3880 2011-05-22  Bruno Haible  <bruno@clisp.org>
3881
3882         utimensat: Move AC_LIBOBJ invocations to module description.
3883         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3884         here...
3885         * modules/utimensat (configure.ac): ... to here.
3886
3887 2011-05-22  Bruno Haible  <bruno@clisp.org>
3888
3889         usleep: Move AC_LIBOBJ invocations to module description.
3890         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3891         here...
3892         * modules/usleep (configure.ac): ... to here.
3893
3894 2011-05-22  Bruno Haible  <bruno@clisp.org>
3895
3896         unlockpt: Move AC_LIBOBJ invocations to module description.
3897         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3898         gl_PREREQ_UNLOCKPT invocations from here...
3899         * modules/unlockpt (configure.ac): ... to here.
3900
3901 2011-05-22  Bruno Haible  <bruno@clisp.org>
3902
3903         unlink: Respect rules for use of AC_LIBOBJ.
3904         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3905         * modules/unlink (configure.ac): ... to here.
3906
3907 2011-05-22  Bruno Haible  <bruno@clisp.org>
3908
3909         uname: Move AC_LIBOBJ invocations to module description.
3910         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3912         here...
3913         * modules/uname (configure.ac): ... to here.
3914
3915 2011-05-22  Bruno Haible  <bruno@clisp.org>
3916
3917         ttyname_r: Move AC_LIBOBJ invocations to module description.
3918         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3919         gl_PREREQ_TTYNAME_R invocations from here...
3920         * modules/ttyname_r (configure.ac): ... to here.
3921
3922 2011-05-22  Bruno Haible  <bruno@clisp.org>
3923
3924         tsearch: Move AC_LIBOBJ invocations to module description.
3925         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3926         invocations from here...
3927         * modules/tsearch (configure.ac): ... to here.
3928
3929 2011-05-22  Bruno Haible  <bruno@clisp.org>
3930
3931         towctrans: Move AC_LIBOBJ invocations to module description.
3932         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3933         AC_LIBOBJ invocation from here...
3934         * modules/towctrans (configure.ac): ... to here.
3935
3936 2011-05-22  Bruno Haible  <bruno@clisp.org>
3937
3938         tmpfile: Move AC_LIBOBJ invocations to module description.
3939         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3940         invocations from here...
3941         * modules/tmpfile (configure.ac): ... to here.
3942
3943 2011-05-22  Bruno Haible  <bruno@clisp.org>
3944
3945         times: Move AC_LIBOBJ invocations to module description.
3946         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3947         * modules/times (configure.ac): ... to here.
3948
3949 2011-05-22  Bruno Haible  <bruno@clisp.org>
3950
3951         time_r: Move AC_LIBOBJ invocations to module description.
3952         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3953         invocations from here...
3954         * modules/time_r (configure.ac): ... to here.
3955
3956 2011-05-22  Bruno Haible  <bruno@clisp.org>
3957
3958         timegm: Move AC_LIBOBJ invocations to module description.
3959         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3960         invocations from here...
3961         * modules/timegm (configure.ac): ... to here.
3962
3963 2011-05-22  Bruno Haible  <bruno@clisp.org>
3964
3965         tcgetsid: Move AC_LIBOBJ invocations to module description.
3966         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3967         and gl_PREREQ_TCGETSID invocations from here...
3968         * modules/tcgetsid (configure.ac): ... to here.
3969         (Depends-on): Update conditions.
3970
3971 2011-05-22  Bruno Haible  <bruno@clisp.org>
3972
3973         symlinkat: Move AC_LIBOBJ invocations to module description.
3974         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3975         here...
3976         * modules/symlinkat (configure.ac): ... to here.
3977
3978 2011-05-22  Bruno Haible  <bruno@clisp.org>
3979
3980         symlink: Move AC_LIBOBJ invocations to module description.
3981         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3982         here...
3983         * modules/symlink (configure.ac): ... to here.
3984
3985 2011-05-22  Bruno Haible  <bruno@clisp.org>
3986
3987         strverscmp: Move AC_LIBOBJ invocations to module description.
3988         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3989         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3990         from here...
3991         * modules/strverscmp (configure.ac): ... to here.
3992
3993 2011-05-22  Bruno Haible  <bruno@clisp.org>
3994
3995         strtok_r: Move AC_LIBOBJ invocations to module description.
3996         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3997         and gl_PREREQ_STRTOK_R invocations from here...
3998         * modules/strtok_r (configure.ac): ... to here.
3999         (Depends-on): Update conditions.
4000
4001 2011-05-22  Bruno Haible  <bruno@clisp.org>
4002
4003         strtoumax: Move AC_LIBOBJ invocations to module description.
4004         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4005         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4006         from here...
4007         * modules/strtoumax (configure.ac): ... to here.
4008
4009 2011-05-22  Bruno Haible  <bruno@clisp.org>
4010
4011         strtoimax: Move AC_LIBOBJ invocations to module description.
4012         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4013         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4014         from here...
4015         * modules/strtoimax (configure.ac): ... to here.
4016
4017 2011-05-22  Bruno Haible  <bruno@clisp.org>
4018
4019         strtoull: Move AC_LIBOBJ invocations to module description.
4020         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4021         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4022         from here...
4023         * modules/strtoull (configure.ac): ... to here.
4024
4025 2011-05-22  Bruno Haible  <bruno@clisp.org>
4026
4027         strtoll: Move AC_LIBOBJ invocations to module description.
4028         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4029         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4030         here...
4031         * modules/strtoll (configure.ac): ... to here.
4032
4033 2011-05-22  Bruno Haible  <bruno@clisp.org>
4034
4035         strtoul: Move AC_LIBOBJ invocations to module description.
4036         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4037         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4038         * modules/strtoul (configure.ac): ... to here.
4039
4040 2011-05-22  Bruno Haible  <bruno@clisp.org>
4041
4042         strtol: Move AC_LIBOBJ invocations to module description.
4043         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4044         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4045         * modules/strtol (configure.ac): ... to here.
4046
4047 2011-05-22  Bruno Haible  <bruno@clisp.org>
4048
4049         strtod: Move AC_LIBOBJ invocations to module description.
4050         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4051         invocations from here...
4052         * modules/strtod (configure.ac): ... to here.
4053
4054 2011-05-22  Bruno Haible  <bruno@clisp.org>
4055
4056         strstr*: Move AC_LIBOBJ invocations to module description.
4057         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4058         invocations from here...
4059         * modules/strstr-simple (configure.ac): ... to here.
4060         * modules/strstr (configure.ac): ... and here.
4061
4062 2011-05-22  Bruno Haible  <bruno@clisp.org>
4063
4064         strsignal: Move AC_LIBOBJ invocations to module description.
4065         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4066         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4067         * modules/strsignal (configure.ac): ... to here.
4068         (Depends-on): Update conditions.
4069
4070 2011-05-22  Bruno Haible  <bruno@clisp.org>
4071
4072         strsep: Move AC_LIBOBJ invocations to module description.
4073         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4074         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4075         here...
4076         * modules/strsep (configure.ac): ... to here.
4077
4078 2011-05-22  Bruno Haible  <bruno@clisp.org>
4079
4080         strptime: Move AC_LIBOBJ invocations to module description.
4081         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4082         gl_PREREQ_STRPTIME invocations from here...
4083         * modules/strptime (configure.ac): ... to here.
4084
4085 2011-05-22  Bruno Haible  <bruno@clisp.org>
4086
4087         strpbrk: Move AC_LIBOBJ invocations to module description.
4088         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4089         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4090         here...
4091         * modules/strpbrk (configure.ac): ... to here.
4092
4093 2011-05-22  Bruno Haible  <bruno@clisp.org>
4094
4095         strnlen: Move AC_LIBOBJ invocations to module description.
4096         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4097         invocations from here...
4098         * modules/strnlen (configure.ac): ... to here.
4099
4100 2011-05-22  Bruno Haible  <bruno@clisp.org>
4101
4102         strndup: Move AC_LIBOBJ invocations to module description.
4103         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4104         invocations from here...
4105         * modules/strndup (configure.ac): ... to here.
4106         (Depends-on): Update conditions.
4107
4108 2011-05-22  Bruno Haible  <bruno@clisp.org>
4109
4110         strncat: Move AC_LIBOBJ invocations to module description.
4111         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4112         invocations from here...
4113         * modules/strncat (configure.ac): ... to here.
4114
4115 2011-05-22  Bruno Haible  <bruno@clisp.org>
4116
4117         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4118         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4119         invocations from here...
4120         * modules/strdup (configure.ac): ... to here.
4121         * modules/strdup-posix (configure.ac): ... and here.
4122
4123 2011-05-22  Bruno Haible  <bruno@clisp.org>
4124
4125         strcspn: Move AC_LIBOBJ invocations to module description.
4126         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4127         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4128         here...
4129         * modules/strcspn (configure.ac): ... to here.
4130
4131 2011-05-22  Bruno Haible  <bruno@clisp.org>
4132
4133         strchrnul: Move AC_LIBOBJ invocations to module description.
4134         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4135         gl_PREREQ_STRCHRNUL invocations from here...
4136         * modules/strchrnul (configure.ac): ... to here.
4137
4138 2011-05-22  Bruno Haible  <bruno@clisp.org>
4139
4140         strcasestr*: Move AC_LIBOBJ invocations to module description.
4141         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4142         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4143         * modules/strcasestr-simple (configure.ac): ... to here.
4144         * modules/strcasestr (configure.ac): ... and here.
4145
4146 2011-05-22  Bruno Haible  <bruno@clisp.org>
4147
4148         strcase: Move AC_LIBOBJ invocations to module description.
4149         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4150         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4151         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4152         gl_PREREQ_STRNCASECMP invocations from here...
4153         * modules/strcase (configure.ac): ... to here.
4154
4155 2011-05-22  Bruno Haible  <bruno@clisp.org>
4156
4157         stpncpy: Move AC_LIBOBJ invocations to module description.
4158         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4159         here...
4160         * modules/stpncpy (configure.ac): ... to here.
4161
4162 2011-05-22  Bruno Haible  <bruno@clisp.org>
4163
4164         stpcpy: Move AC_LIBOBJ invocations to module description.
4165         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4166         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4167         here...
4168         * modules/stpcpy (configure.ac): ... to here.
4169
4170 2011-05-21  Bruno Haible  <bruno@clisp.org>
4171
4172         stat: Move AC_LIBOBJ invocations to module description.
4173         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4174         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4175         here...
4176         * modules/stat (configure.ac): ... to here.
4177
4178 2011-05-21  Bruno Haible  <bruno@clisp.org>
4179
4180         sleep: Move AC_LIBOBJ invocations to module description.
4181         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4182         * modules/sleep (configure.ac): ... to here.
4183
4184 2011-05-21  Bruno Haible  <bruno@clisp.org>
4185
4186         signbit: Move AC_LIBOBJ invocations to module description.
4187         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4188         * modules/signbit (configure.ac): ... to here.
4189
4190 2011-05-21  Bruno Haible  <bruno@clisp.org>
4191
4192         sigprocmask: Move AC_LIBOBJ invocations to module description.
4193         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4194         gl_PREREQ_SIGPROMASK invocations from here...
4195         * modules/sigprocmask (configure.ac): ... to here.
4196
4197 2011-05-21  Bruno Haible  <bruno@clisp.org>
4198
4199         sigaction: Move AC_LIBOBJ invocations to module description.
4200         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4201         gl_PREREQ_SIGACTION invocations from here...
4202         * modules/sigaction (configure.ac): ... to here.
4203
4204 2011-05-21  Bruno Haible  <bruno@clisp.org>
4205
4206         sig2str: Move AC_LIBOBJ invocations to module description.
4207         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4208         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4209         here...
4210         * modules/sig2str (configure.ac): ... to here.
4211
4212 2011-05-21  Bruno Haible  <bruno@clisp.org>
4213
4214         setlocale: Move AC_LIBOBJ invocations to module description.
4215         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4216         gl_PREREQ_SETLOCALE invocations from here...
4217         * modules/setlocale (configure.ac): ... to here.
4218
4219 2011-05-21  Bruno Haible  <bruno@clisp.org>
4220
4221         unsetenv: Move AC_LIBOBJ invocations to module description.
4222         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4223         and gl_PREREQ_UNSETENV invocations from here...
4224         * modules/unsetenv (configure.ac): ... to here.
4225         (Depends-on): Update.
4226
4227 2011-05-21  Bruno Haible  <bruno@clisp.org>
4228
4229         setenv: Move AC_LIBOBJ invocations to module description.
4230         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4231         here...
4232         * modules/setenv (configure.ac): ... to here.
4233
4234 2011-05-21  Bruno Haible  <bruno@clisp.org>
4235
4236         selinux-h: Move AC_LIBOBJ invocations to module description.
4237         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4238         AC_LIBOBJ invocation from here...
4239         * modules/selinux-h (configure.ac): ... to here.
4240
4241 2011-05-21  Bruno Haible  <bruno@clisp.org>
4242
4243         select: Respect rules for use of AC_LIBOBJ.
4244         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4245         here...
4246         * modules/select (configure.ac): ... to here.
4247
4248 2011-05-21  Bruno Haible  <bruno@clisp.org>
4249
4250         scandir: Move AC_LIBOBJ invocations to module description.
4251         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4252         invocations from here...
4253         * modules/scandir (configure.ac): ... to here.
4254
4255 2011-05-21  Bruno Haible  <bruno@clisp.org>
4256
4257         rpmatch: Move AC_LIBOBJ invocations to module description.
4258         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4259         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4260         here...
4261         * modules/rpmatch (configure.ac): ... to here.
4262
4263 2011-05-21  Bruno Haible  <bruno@clisp.org>
4264
4265         rmdir: Respect rules for use of AC_LIBOBJ.
4266         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4267         * modules/rmdir (configure.ac): ... to here.
4268
4269 2011-05-21  Bruno Haible  <bruno@clisp.org>
4270
4271         renameat: Move AC_LIBOBJ invocations to module description.
4272         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4273         here...
4274         * modules/renameat (configure.ac): ... to here.
4275
4276 2011-05-21  Bruno Haible  <bruno@clisp.org>
4277
4278         rename: Respect rules for use of AC_LIBOBJ.
4279         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4280         here...
4281         * modules/rename (configure.ac): ... to here.
4282
4283 2011-05-21  Bruno Haible  <bruno@clisp.org>
4284
4285         remove: Move AC_LIBOBJ invocations to module description.
4286         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4287         here...
4288         * modules/remove (configure.ac): ... to here.
4289
4290 2011-05-21  Bruno Haible  <bruno@clisp.org>
4291
4292         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4293         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4294         macro.
4295         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4296         * modules/relocatable-lib (configure.ac): ... to here.
4297         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4298         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4299
4300 2011-05-21  Bruno Haible  <bruno@clisp.org>
4301
4302         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4303         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4304         here...
4305         * modules/relocatable-prog (configure.ac): ... to here.
4306
4307 2011-05-21  Bruno Haible  <bruno@clisp.org>
4308
4309         regex: Move AC_LIBOBJ invocations to module description.
4310         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4311         invocations from here...
4312         * modules/regex (configure.ac): ... to here.
4313
4314 2011-05-21  Bruno Haible  <bruno@clisp.org>
4315
4316         realloc-*: Move AC_LIBOBJ invocations to module description.
4317         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4318         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4319         AC_LIBOBJ invocations from here...
4320         * modules/realloc-gnu (configure.ac): ... to here.
4321         * modules/realloc-posix (configure.ac): ... and here.
4322
4323 2011-05-21  Bruno Haible  <bruno@clisp.org>
4324
4325         readutmp: Move AC_LIBOBJ invocations to module description.
4326         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4327         * modules/readutmp (configure.ac): ... to here.
4328
4329 2011-05-21  Bruno Haible  <bruno@clisp.org>
4330
4331         readlinkat: Move AC_LIBOBJ invocations to module description.
4332         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4333         here...
4334         * modules/readlinkat (configure.ac): ... to here.
4335
4336 2011-05-21  Bruno Haible  <bruno@clisp.org>
4337
4338         readlink: Move AC_LIBOBJ invocations to module description.
4339         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4340         gl_PREREQ_READLINK invocations from here...
4341         * modules/readlink (configure.ac): ... to here.
4342
4343 2011-05-21  Bruno Haible  <bruno@clisp.org>
4344
4345         readline: Move AC_LIBOBJ invocations to module description.
4346         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4347         gl_PREREQ_READLINE invocations from here...
4348         * modules/readline (configure.ac): ... to here.
4349
4350 2011-05-21  Bruno Haible  <bruno@clisp.org>
4351
4352         read: Move AC_LIBOBJ invocations to module description.
4353         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4354         * modules/read (configure.ac): ... to here.
4355
4356 2011-05-21  Bruno Haible  <bruno@clisp.org>
4357
4358         rawmemchr: Move AC_LIBOBJ invocations to module description.
4359         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4360         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4361         from here...
4362         * modules/rawmemchr (configure.ac): ... to here.
4363
4364 2011-05-21  Bruno Haible  <bruno@clisp.org>
4365
4366         random_r: Move AC_LIBOBJ invocations to module description.
4367         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4368         gl_PREREQ_RANDOM_R invocations from here...
4369         * modules/random_r (configure.ac): ... to here.
4370
4371 2011-05-21  Bruno Haible  <bruno@clisp.org>
4372
4373         pwrite: Move AC_LIBOBJ invocations to module description.
4374         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4375         * modules/pwrite (configure.ac): ... to here.
4376
4377 2011-05-21  Bruno Haible  <bruno@clisp.org>
4378
4379         putenv: Move AC_LIBOBJ invocations to module description.
4380         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4381         * modules/putenv (configure.ac): ... to here.
4382
4383 2011-05-21  Bruno Haible  <bruno@clisp.org>
4384
4385         login_tty: Move AC_LIBOBJ invocations to module description.
4386         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4387         * modules/login_tty (configure.ac): ... to here.
4388
4389 2011-05-21  Bruno Haible  <bruno@clisp.org>
4390
4391         openpty: Move AC_LIBOBJ invocations to module description.
4392         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4393         * modules/openpty (configure.ac): ... to here.
4394
4395 2011-05-21  Bruno Haible  <bruno@clisp.org>
4396
4397         forkpty: Move AC_LIBOBJ invocations to module description.
4398         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4399         * modules/forkpty (configure.ac): ... to here.
4400
4401 2011-05-21  Bruno Haible  <bruno@clisp.org>
4402
4403         ptsname: Move AC_LIBOBJ invocations to module description.
4404         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4405         invocations from here...
4406         * modules/ptsname (configure.ac): ... to here.
4407
4408 2011-05-21  Bruno Haible  <bruno@clisp.org>
4409
4410         pread: Move AC_LIBOBJ invocations to module description.
4411         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4412         * modules/pread (configure.ac): ... to here.
4413
4414 2011-05-21  Bruno Haible  <bruno@clisp.org>
4415
4416         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4417         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4418         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4419         * modules/posix_spawn (configure.ac): ... to here.
4420         * modules/posix_spawnp (configure.ac): ... and here.
4421
4422 2011-05-21  Bruno Haible  <bruno@clisp.org>
4423
4424         popen: Move AC_LIBOBJ invocations to module description.
4425         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4426         invocations from here...
4427         * modules/popen (configure.ac): ... to here.
4428
4429 2011-05-21  Bruno Haible  <bruno@clisp.org>
4430
4431         poll: Move AC_LIBOBJ invocations to module description.
4432         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4433         invocations from here...
4434         * modules/poll (configure.ac): ... to here.
4435
4436 2011-05-21  Bruno Haible  <bruno@clisp.org>
4437
4438         pipe-posix: Move AC_LIBOBJ invocations to module description.
4439         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4440         * modules/pipe-posix (configure.ac): ... to here.
4441
4442 2011-05-21  Bruno Haible  <bruno@clisp.org>
4443
4444         openat: Respect rules for use of AC_LIBOBJ.
4445         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4446         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4447         * modules/openat (configure.ac): ... to here.
4448
4449 2011-05-21  Bruno Haible  <bruno@clisp.org>
4450
4451         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4452         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4453         invocation from here...
4454         * modules/obstack-printf (configure.ac): ... to here.
4455         * modules/obstack-printf-posix (configure.ac): ... and here.
4456
4457 2011-05-21  Bruno Haible  <bruno@clisp.org>
4458
4459         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4460         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4461         from here...
4462         * modules/nl_langinfo (configure.ac): ... to here.
4463
4464 2011-05-21  Bruno Haible  <bruno@clisp.org>
4465
4466         nanosleep: Move AC_LIBOBJ invocations to module description.
4467         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4468         gl_PREREQ_NANOSLEEP invocations from here...
4469         * modules/nanosleep (configure.ac): ... to here.
4470
4471 2011-05-21  Bruno Haible  <bruno@clisp.org>
4472
4473         mountlist: Move AC_LIBOBJ invocations to module description.
4474         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4475         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4476         * modules/mountlist (configure.ac): ... to here.
4477
4478 2011-05-21  Bruno Haible  <bruno@clisp.org>
4479
4480         mktime: Respect rules for use of AC_LIBOBJ.
4481         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4482         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4483         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4484         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4485         * modules/mktime (configure.ac): ... to here.
4486         * modules/mktime-internal (configure.ac): ... and here.
4487         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4488
4489 2011-05-21  Bruno Haible  <bruno@clisp.org>
4490
4491         mkstemps: Move AC_LIBOBJ invocations to module description.
4492         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4493         here...
4494         * modules/mkstemps (configure.ac): ... to here.
4495
4496 2011-05-21  Bruno Haible  <bruno@clisp.org>
4497
4498         mkstemp: Move AC_LIBOBJ invocations to module description.
4499         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4500         gl_PREREQ_MKSTEMP invocations from here...
4501         * modules/mkstemp (configure.ac): ... to here.
4502
4503 2011-05-21  Bruno Haible  <bruno@clisp.org>
4504
4505         mkostemps: Move AC_LIBOBJ invocations to module description.
4506         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4507         here...
4508         * modules/mkostemps (configure.ac): ... to here.
4509
4510 2011-05-21  Bruno Haible  <bruno@clisp.org>
4511
4512         mkostemp: Move AC_LIBOBJ invocations to module description.
4513         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4514         gl_PREREQ_MKOSTEMP invocations from here...
4515         * modules/mkostemp (configure.ac): ... to here.
4516
4517 2011-05-21  Bruno Haible  <bruno@clisp.org>
4518
4519         mknod: Move AC_LIBOBJ invocations to module description.
4520         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4521         * modules/mknod (configure.ac): ... to here.
4522
4523 2011-05-21  Bruno Haible  <bruno@clisp.org>
4524
4525         mkfifoat: Move AC_LIBOBJ invocations to module description.
4526         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4527         here...
4528         * modules/mkfifoat (configure.ac): ... to here.
4529
4530 2011-05-21  Bruno Haible  <bruno@clisp.org>
4531
4532         mkfifo: Respect rules for use of AC_LIBOBJ.
4533         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4534         here...
4535         * modules/mkfifo (configure.ac): ... to here.
4536
4537 2011-05-21  Bruno Haible  <bruno@clisp.org>
4538
4539         mkdtemp: Move AC_LIBOBJ invocations to module description.
4540         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4541         invocations from here...
4542         * modules/mkdtemp (configure.ac): ... to here.
4543
4544 2011-05-21  Bruno Haible  <bruno@clisp.org>
4545
4546         mkdir: Move AC_LIBOBJ invocations to module description.
4547         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4548         * modules/mkdir (configure.ac): ... to here.
4549
4550 2011-05-21  Bruno Haible  <bruno@clisp.org>
4551
4552         memset: Move AC_LIBOBJ invocations to module description.
4553         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4554         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4555         here...
4556         * modules/memset (configure.ac): ... to here.
4557
4558 2011-05-21  Bruno Haible  <bruno@clisp.org>
4559
4560         memrchr: Move AC_LIBOBJ invocations to module description.
4561         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4562         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4563         here...
4564         * modules/memrchr (configure.ac): ... to here.
4565
4566 2011-05-21  Bruno Haible  <bruno@clisp.org>
4567
4568         mempcpy: Move AC_LIBOBJ invocations to module description.
4569         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4570         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4571         here...
4572         * modules/mempcpy (configure.ac): ... to here.
4573
4574 2011-05-21  Bruno Haible  <bruno@clisp.org>
4575
4576         memmove: Move AC_LIBOBJ invocations to module description.
4577         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4578         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4579         here...
4580         * modules/memmove (configure.ac): ... to here.
4581
4582 2011-05-21  Bruno Haible  <bruno@clisp.org>
4583
4584         memmem*: Move AC_LIBOBJ invocations to module description.
4585         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4586         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4587         here...
4588         (gl_FUNC_MEMMEM): ... and here...
4589         * modules/memmem-simple (configure.ac): ... to here.
4590         * modules/memmem (configure.ac): ... and here.
4591
4592 2011-05-21  Bruno Haible  <bruno@clisp.org>
4593
4594         memcpy: Move AC_LIBOBJ invocations to module description.
4595         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4596         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4597         here...
4598         * modules/memcpy (configure.ac): ... to here.
4599
4600 2011-05-21  Bruno Haible  <bruno@clisp.org>
4601
4602         memcmp: Simplify autoconf macro.
4603         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4604         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4605         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4606
4607 2011-05-21  Bruno Haible  <bruno@clisp.org>
4608
4609         memcmp: Move AC_LIBOBJ invocations to module description.
4610         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4611         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4612         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4613         * modules/memcmp (configure.ac): ... to here.
4614         (Depends-on): Update conditions.
4615
4616 2011-05-21  Bruno Haible  <bruno@clisp.org>
4617
4618         memchr: Respect rules for use of AC_LIBOBJ.
4619         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4620         invocations from here...
4621         * modules/memchr (configure.ac): ... to here.
4622
4623 2011-05-21  Bruno Haible  <bruno@clisp.org>
4624
4625         mbtowc: Move AC_LIBOBJ invocations to module description.
4626         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4627         invocations from here...
4628         * modules/mbtowc (configure.ac): ... to here.
4629
4630 2011-05-21  Bruno Haible  <bruno@clisp.org>
4631
4632         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4633         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4634         gl_PREREQ_MBSRTOWCS invocations from here...
4635         * modules/mbsrtowcs (configure.ac): ... to here.
4636
4637 2011-05-21  Bruno Haible  <bruno@clisp.org>
4638
4639         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4640         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4641         gl_PREREQ_MBSNRTOWCS invocations from here...
4642         * modules/mbsnrtowcs (configure.ac): ... to here.
4643
4644 2011-05-21  Bruno Haible  <bruno@clisp.org>
4645
4646         mbsinit: Move AC_LIBOBJ invocations to module description.
4647         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4648         invocations from here...
4649         * modules/mbsinit (configure.ac): ... to here.
4650
4651 2011-05-21  Bruno Haible  <bruno@clisp.org>
4652
4653         mbrlen: Move AC_LIBOBJ invocations to module description.
4654         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4655         invocations from here...
4656         * modules/mbrlen (configure.ac): ... to here.
4657
4658 2011-05-21  Bruno Haible  <bruno@clisp.org>
4659
4660         mbrtowc: Respect rules for use of AC_LIBOBJ.
4661         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4662         invocations from here...
4663         * modules/mbrtowc (configure.ac): ... to here.
4664
4665 2011-05-21  Bruno Haible  <bruno@clisp.org>
4666
4667         malloc-*: Move AC_LIBOBJ invocations to module description.
4668         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4669         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4670         AC_LIBOBJ invocations from here...
4671         * modules/malloc-gnu (configure.ac): ... to here.
4672         * modules/malloc-posix (configure.ac): ... and here.
4673
4674 2011-05-21  Bruno Haible  <bruno@clisp.org>
4675
4676         lstat, openat: Respect rules for use of AC_LIBOBJ.
4677         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4678         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4679         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4680         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4681         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4682         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4683         here.
4684         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4685
4686 2011-05-21  Bruno Haible  <bruno@clisp.org>
4687
4688         lseek: Move AC_LIBOBJ invocations to module description.
4689         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4690         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4691         * modules/lseek (configure.ac): ... to here.
4692
4693 2011-05-21  Bruno Haible  <bruno@clisp.org>
4694
4695         linkat: Move AC_LIBOBJ invocations to module description.
4696         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4697         here...
4698         * modules/linkat (configure.ac): ... to here.
4699
4700 2011-05-21  Bruno Haible  <bruno@clisp.org>
4701
4702         link: Respect rules for use of AC_LIBOBJ.
4703         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4704         * modules/link (configure.ac): ... to here.
4705
4706 2011-05-21  Bruno Haible  <bruno@clisp.org>
4707
4708         lchown: Move AC_LIBOBJ invocations to module description.
4709         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4710         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4711         * modules/lchown (configure.ac): ... to here.
4712
4713 2011-05-21  Bruno Haible  <bruno@clisp.org>
4714
4715         iswctype: Move AC_LIBOBJ invocations to module description.
4716         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4717         here...
4718         * modules/iswctype (configure.ac): ... to here.
4719
4720 2011-05-21  Bruno Haible  <bruno@clisp.org>
4721
4722         iswblank: Move AC_LIBOBJ invocations to module description.
4723         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4724         here...
4725         * modules/iswblank (configure.ac): ... to here.
4726
4727 2011-05-21  Bruno Haible  <bruno@clisp.org>
4728
4729         atanl: Move AC_LIBOBJ invocations to module description.
4730         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4731         * modules/atanl (configure.ac): ... to here.
4732
4733 2011-05-21  Bruno Haible  <bruno@clisp.org>
4734
4735         acosl: Move AC_LIBOBJ invocations to module description.
4736         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4737         * modules/acosl (configure.ac): ... to here.
4738
4739 2011-05-21  Bruno Haible  <bruno@clisp.org>
4740
4741         asinl: Respect rules for use of AC_LIBOBJ.
4742         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4743         * modules/asinl (configure.ac): ... to here.
4744
4745 2011-05-21  Bruno Haible  <bruno@clisp.org>
4746
4747         tanl: Move AC_LIBOBJ invocations to module description.
4748         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4749         * modules/tanl (configure.ac): ... to here.
4750
4751 2011-05-21  Bruno Haible  <bruno@clisp.org>
4752
4753         cosl: Move AC_LIBOBJ invocations to module description.
4754         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4755         * modules/cosl (configure.ac): ... to here.
4756
4757 2011-05-21  Bruno Haible  <bruno@clisp.org>
4758
4759         sinl: Move AC_LIBOBJ invocations to module description.
4760         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4761         * modules/sinl (configure.ac): ... to here.
4762
4763 2011-05-21  Bruno Haible  <bruno@clisp.org>
4764
4765         logl: Move AC_LIBOBJ invocations to module description.
4766         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4767         * modules/logl (configure.ac): ... to here.
4768
4769 2011-05-21  Bruno Haible  <bruno@clisp.org>
4770
4771         expl: Move AC_LIBOBJ invocations to module description.
4772         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4773         * modules/expl (configure.ac): ... to here.
4774
4775 2011-05-21  Bruno Haible  <bruno@clisp.org>
4776
4777         roundl: Move AC_LIBOBJ invocations to module description.
4778         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4779         * modules/roundl (configure.ac): ... to here.
4780
4781 2011-05-21  Bruno Haible  <bruno@clisp.org>
4782
4783         round: Move AC_LIBOBJ invocations to module description.
4784         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4785         * modules/round (configure.ac): ... to here.
4786
4787 2011-05-21  Bruno Haible  <bruno@clisp.org>
4788
4789         roundf: Move AC_LIBOBJ invocations to module description.
4790         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4791         * modules/roundf (configure.ac): ... to here.
4792
4793 2011-05-21  Bruno Haible  <bruno@clisp.org>
4794
4795         truncl: Move AC_LIBOBJ invocations to module description.
4796         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4797         * modules/truncl (configure.ac): ... to here.
4798
4799 2011-05-21  Bruno Haible  <bruno@clisp.org>
4800
4801         trunc: Move AC_LIBOBJ invocations to module description.
4802         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4803         * modules/trunc (configure.ac): ... to here.
4804
4805 2011-05-21  Bruno Haible  <bruno@clisp.org>
4806
4807         truncf: Move AC_LIBOBJ invocations to module description.
4808         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4809         * modules/truncf (configure.ac): ... to here.
4810
4811 2011-05-21  Bruno Haible  <bruno@clisp.org>
4812
4813         ceill: Move AC_LIBOBJ invocations to module description.
4814         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4815         * modules/ceill (configure.ac): ... to here.
4816
4817 2011-05-21  Bruno Haible  <bruno@clisp.org>
4818
4819         ceil: Move AC_LIBOBJ invocations to module description.
4820         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4821         * modules/ceil (configure.ac): ... to here.
4822
4823 2011-05-21  Bruno Haible  <bruno@clisp.org>
4824
4825         ceilf: Move AC_LIBOBJ invocations to module description.
4826         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4827         * modules/ceilf (configure.ac): ... to here.
4828
4829 2011-05-21  Bruno Haible  <bruno@clisp.org>
4830
4831         floorl: Respect rules for use of AC_LIBOBJ.
4832         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4833         * modules/floorl (configure.ac): ... to here.
4834
4835 2011-05-21  Bruno Haible  <bruno@clisp.org>
4836
4837         floor: Respect rules for use of AC_LIBOBJ.
4838         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4839         * modules/floor (configure.ac): ... to here.
4840
4841 2011-05-21  Bruno Haible  <bruno@clisp.org>
4842
4843         floorf: Move AC_LIBOBJ invocations to module description.
4844         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4845         * modules/floorf (configure.ac): ... to here.
4846
4847 2011-05-20  Bruno Haible  <bruno@clisp.org>
4848
4849         sqrtl: Respect rules for use of AC_LIBOBJ.
4850         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4851         * modules/sqrtl (configure.ac): ... to here.
4852
4853 2011-05-20  Bruno Haible  <bruno@clisp.org>
4854
4855         ldexpl: Respect rules for use of AC_LIBOBJ.
4856         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4857         * modules/ldexpl (configure.ac): ... to here.
4858
4859 2011-05-20  Bruno Haible  <bruno@clisp.org>
4860
4861         frexpl*: Respect rules for use of AC_LIBOBJ.
4862         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4863         invocation from here...
4864         * modules/frexpl (configure.ac): ... to here.
4865         * modules/frexpl-nolibm (configure.ac): ... and here.
4866
4867 2011-05-20  Bruno Haible  <bruno@clisp.org>
4868
4869         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4870         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4871         invocation from here...
4872         * modules/frexp (configure.ac): ... to here.
4873         * modules/frexp-nolibm (configure.ac): ... and here.
4874
4875 2011-05-20  Bruno Haible  <bruno@clisp.org>
4876
4877         isnan: Respect rules for use of AC_LIBOBJ.
4878         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4879         invocations here.
4880         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4881         REPLACE_ISNAN.
4882         * modules/isnand (configure.ac): Likewise.
4883         * modules/isnanl (configure.ac): Likewise.
4884
4885 2011-05-20  Bruno Haible  <bruno@clisp.org>
4886
4887         isnanl*: Respect rules for use of AC_LIBOBJ.
4888         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4889         invocation from here...
4890         * modules/isnanl (configure.ac): ... to here.
4891         * modules/isnanl-nolibm (configure.ac): ... and here.
4892
4893 2011-05-20  Bruno Haible  <bruno@clisp.org>
4894
4895         isnand*: Move AC_LIBOBJ invocations to module description.
4896         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4897         invocation from here...
4898         * modules/isnand (configure.ac): ... to here.
4899         * modules/isnand-nolibm (configure.ac): ... and here.
4900
4901 2011-05-20  Bruno Haible  <bruno@clisp.org>
4902
4903         isnanf*: Move AC_LIBOBJ invocations to module description.
4904         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4905         invocation from here...
4906         * modules/isnanf (configure.ac): ... to here.
4907         * modules/isnanf-nolibm (configure.ac): ... and here.
4908
4909 2011-05-20  Bruno Haible  <bruno@clisp.org>
4910
4911         isnan*: Separate the AC_LIBOBJ invocations.
4912         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4913         AC_LIBOBJ invocation.
4914         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4915         here.
4916         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4917         AC_LIBOBJ invocation.
4918         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4919         here.
4920         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4921         AC_LIBOBJ invocation.
4922         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4923         here.
4924         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4925
4926 2011-05-08  Bruno Haible  <bruno@clisp.org>
4927
4928         isinf: Move AC_LIBOBJ invocations to module description.
4929         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4930         * modules/isinf (configure.ac): ... to here.
4931
4932 2011-05-08  Bruno Haible  <bruno@clisp.org>
4933
4934         isfinite: Move AC_LIBOBJ invocations to module description.
4935         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4936         * modules/isfinite (configure.ac): ... to here.
4937
4938 2011-05-08  Bruno Haible  <bruno@clisp.org>
4939
4940         isblank: Move AC_LIBOBJ invocations to module description.
4941         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4942         here...
4943         * modules/isblank (configure.ac): ... to here.
4944
4945 2011-05-08  Bruno Haible  <bruno@clisp.org>
4946
4947         isapipe: Move AC_LIBOBJ invocations to module description.
4948         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4949         gl_PREREQ_ISAPIPE invocations from here...
4950         * modules/isapipe (configure.ac): ... to here.
4951         (Depends-on): Update condition.
4952
4953 2011-05-08  Bruno Haible  <bruno@clisp.org>
4954
4955         ioctl: Move AC_LIBOBJ invocations to module description.
4956         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4957         invocations from here...
4958         * modules/ioctl (configure.ac): ... to here.
4959         (Depends-on): Update condition.
4960
4961 2011-05-08  Bruno Haible  <bruno@clisp.org>
4962
4963         imaxdiv: Move AC_LIBOBJ invocations to module description.
4964         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4965         invocations from here...
4966         * modules/imaxdiv (configure.ac): ... to here.
4967
4968 2011-05-08  Bruno Haible  <bruno@clisp.org>
4969
4970         imaxabs: Move AC_LIBOBJ invocations to module description.
4971         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4972         invocations from here...
4973         * modules/imaxabs (configure.ac): ... to here.
4974
4975 2011-05-08  Bruno Haible  <bruno@clisp.org>
4976
4977         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4978         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4979         AC_LIBOBJ invocations from here...
4980         * modules/getaddrinfo (configure.ac): ... to here.
4981         (Depends-on): Add conditions.
4982
4983 2011-05-08  Bruno Haible  <bruno@clisp.org>
4984
4985         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4986         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4987         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4988         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4989         (gl_PREREQ_INET_PTON): ... from here.
4990         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4991         gl_PREREQ_INET_PTON here.
4992         (Depends-on): Update condition.
4993
4994 2011-05-08  Bruno Haible  <bruno@clisp.org>
4995
4996         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4997         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4998         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4999         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5000         (gl_PREREQ_INET_NTOP): ... from here.
5001         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5002         gl_PREREQ_INET_NTOP here.
5003         (Depends-on): Update condition.
5004
5005 2011-05-08  Bruno Haible  <bruno@clisp.org>
5006
5007         iconv_open: Move AC_LIBOBJ invocations to module description.
5008         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5009         AC_LIBOBJ invocations from here...
5010         * modules/iconv_open (configure.ac): ... to here.
5011
5012 2011-05-08  Bruno Haible  <bruno@clisp.org>
5013
5014         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5015         If module 'iconv_open' is among the main modules and module
5016         'iconv_open-utf' is among the tests dependencies, then
5017         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5018         return the special iconv_t values. Therefore iconv() and iconv_close()
5019         must support these special iconv_t values, already in lib, not only in
5020         tests.
5021         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5022         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5023         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5024         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5025         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5026         (Depends-on): Add the dependencies of iconv_open-utf.
5027         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5028         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5029         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5030
5031 2011-05-08  Bruno Haible  <bruno@clisp.org>
5032
5033         group-member: Move AC_LIBOBJ invocations to module description.
5034         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5035         gl_PREREQ_GROUP_MEMBER invocations from here...
5036         * modules/group-member (configure.ac): ... to here.
5037
5038 2011-05-08  Bruno Haible  <bruno@clisp.org>
5039
5040         grantpt: Move AC_LIBOBJ invocations to module description.
5041         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5042         invocations from here...
5043         * modules/grantpt (configure.ac): ... to here.
5044
5045 2011-05-08  Bruno Haible  <bruno@clisp.org>
5046
5047         glob: Move AC_LIBOBJ invocations to module description.
5048         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5049         from here...
5050         * modules/glob (configure.ac): ... to here.
5051
5052 2011-05-08  Bruno Haible  <bruno@clisp.org>
5053
5054         getusershell: Move AC_LIBOBJ invocations to module description.
5055         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5056         Move AC_LIBOBJ invocation from here...
5057         * modules/getusershell (configure.ac): ... to here.
5058         (Depends-on): Update condition.
5059
5060 2011-05-08  Bruno Haible  <bruno@clisp.org>
5061
5062         gettimeofday: Move AC_LIBOBJ invocations to module description.
5063         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5064         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5065         gl_PREREQ_GETTIMEOFDAY invocations from here...
5066         * modules/gettimeofday (configure.ac): ... to here.
5067
5068 2011-05-08  Bruno Haible  <bruno@clisp.org>
5069
5070         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5071         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5072         just gl_FUNC_TZSET.
5073         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5074         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5075         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5076         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5077
5078 2011-05-08  Bruno Haible  <bruno@clisp.org>
5079
5080         getsubopt: Move AC_LIBOBJ invocations to module description.
5081         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5082         gl_PREREQ_GETSUBOPT invocations from here...
5083         * modules/getsubopt (configure.ac): ... to here.
5084
5085 2011-05-08  Bruno Haible  <bruno@clisp.org>
5086
5087         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5088         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5089         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5090         * modules/getpass-gnu (configure.ac): ... to here.
5091
5092 2011-05-08  Bruno Haible  <bruno@clisp.org>
5093
5094         getpass: Move AC_LIBOBJ invocations to module description.
5095         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5096         gl_PREREQ_GETPASS invocations from here...
5097         * modules/getpass (configure.ac): ... to here.
5098
5099 2011-05-08  Bruno Haible  <bruno@clisp.org>
5100
5101         getpagesize: Move AC_LIBOBJ invocations to module description.
5102         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5103         from here...
5104         * modules/getpagesize (configure.ac): ... to here.
5105
5106 2011-05-08  Bruno Haible  <bruno@clisp.org>
5107
5108         getopt: Move AC_LIBOBJ invocations to module description.
5109         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5110         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5111         invocations from here...
5112         * modules/getopt-gnu (configure.ac): ... to here.
5113         * modules/getopt-posix (configure.ac): ... and here.
5114         (Depends-on): Update condition.
5115
5116 2011-05-08  Bruno Haible  <bruno@clisp.org>
5117
5118         getopt, argp: Respect rules for use of AC_LIBOBJ.
5119         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5120         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5121         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5122         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5123
5124 2011-05-08  Bruno Haible  <bruno@clisp.org>
5125
5126         getlogin_r: Move AC_LIBOBJ invocations to module description.
5127         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5128         gl_PREREQ_GETLOGIN_R invocations from here...
5129         * modules/getlogin_r (configure.ac): ... to here.
5130
5131 2011-05-08  Bruno Haible  <bruno@clisp.org>
5132
5133         getlogin: Move AC_LIBOBJ invocations to module description.
5134         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5135         here...
5136         * modules/getlogin (configure.ac): ... to here.
5137
5138 2011-05-08  Bruno Haible  <bruno@clisp.org>
5139
5140         getloadavg: Move AC_LIBOBJ invocations to module description.
5141         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5142         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5143         * modules/getloadavg (configure.ac): ... to here.
5144
5145 2011-05-08  Bruno Haible  <bruno@clisp.org>
5146
5147         gethrxtime: Move AC_LIBOBJ invocations to module description.
5148         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5149         LIB_GETHRXTIME from here...
5150         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5151         invocations from here...
5152         * modules/gethrxtime (configure.ac): ... to here.
5153
5154 2011-05-08  Bruno Haible  <bruno@clisp.org>
5155
5156         gethostname: Move AC_LIBOBJ invocations to module description.
5157         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5158         gl_PREREQ_GETHOSTNAME invocations from here...
5159         * modules/gethostname (configure.ac): ... to here.
5160
5161 2011-05-08  Bruno Haible  <bruno@clisp.org>
5162
5163         getgroups: Move AC_LIBOBJ invocations to module description.
5164         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5165         here...
5166         * modules/getgroups (configure.ac): ... to here.
5167
5168 2011-05-08  Bruno Haible  <bruno@clisp.org>
5169
5170         getdtablesize: Move AC_LIBOBJ invocations to module description.
5171         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5172         invocation from here...
5173         * modules/getdtablesize (configure.ac): ... to here.
5174
5175 2011-05-08  Bruno Haible  <bruno@clisp.org>
5176
5177         getdomainname: Move AC_LIBOBJ invocations to module description.
5178         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5179         gl_PREREQ_GETDOMAINNAME invocations from here...
5180         * modules/getdomainname (configure.ac): ... to here.
5181
5182 2011-05-08  Bruno Haible  <bruno@clisp.org>
5183
5184         getline: Move AC_LIBOBJ invocations to module description.
5185         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5186         invocations from here...
5187         * modules/getline (configure.ac): ... to here.
5188
5189 2011-05-08  Bruno Haible  <bruno@clisp.org>
5190
5191         getline: Simplify.
5192         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5193         It's already handled through the module dependency.
5194
5195 2011-05-08  Bruno Haible  <bruno@clisp.org>
5196
5197         getdelim: Move AC_LIBOBJ invocations to module description.
5198         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5199         and gl_PREREQ_GETDELIM invocations from here...
5200         * modules/getdelim (configure.ac): ... to here.
5201         (Depends-on): Fix condition.
5202
5203 2011-05-08  Bruno Haible  <bruno@clisp.org>
5204
5205         getcwd: Move AC_LIBOBJ invocations to module description.
5206         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5207         invocations from here...
5208         * modules/getcwd (configure.ac): ... to here.
5209
5210 2011-05-08  Bruno Haible  <bruno@clisp.org>
5211
5212         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5213         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5214         here...
5215         * modules/getcwd-lgpl (configure.ac): ... to here.
5216
5217 2011-05-07  Bruno Haible  <bruno@clisp.org>
5218
5219         crypto/gc: Move AC_LIBOBJ invocations to module description.
5220         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5221         * modules/crypto/gc (configure.ac): ... to here.
5222
5223 2011-05-07  Bruno Haible  <bruno@clisp.org>
5224
5225         fwriting: Move AC_LIBOBJ invocations to module description.
5226         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5227         here...
5228         * modules/fwriting (configure.ac): ... to here.
5229
5230 2011-05-07  Bruno Haible  <bruno@clisp.org>
5231
5232         fwritable: Move AC_LIBOBJ invocations to module description.
5233         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5234         here...
5235         * modules/fwritable (configure.ac): ... to here.
5236
5237 2011-05-07  Bruno Haible  <bruno@clisp.org>
5238
5239         futimens: Move AC_LIBOBJ invocations to module description.
5240         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5241         here...
5242         * modules/futimens (configure.ac): ... to here.
5243
5244 2011-05-07  Bruno Haible  <bruno@clisp.org>
5245
5246         ftruncate: Move AC_LIBOBJ invocations to module description.
5247         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5248         gl_PREREQ_FTRUNCATE invocations from here...
5249         * modules/ftruncate (configure.ac): ... to here.
5250
5251 2011-05-07  Bruno Haible  <bruno@clisp.org>
5252
5253         fsync: Move AC_LIBOBJ invocations to module description.
5254         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5255         invocations from here...
5256         * modules/fsync (configure.ac): ... to here.
5257
5258 2011-05-07  Bruno Haible  <bruno@clisp.org>
5259
5260         fsusage: Move AC_LIBOBJ invocations to module description.
5261         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5262         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5263         * modules/fsusage (configure.ac): ... to here.
5264
5265 2011-05-07  Bruno Haible  <bruno@clisp.org>
5266
5267         freopen: Move AC_LIBOBJ invocations to module description.
5268         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5269         invocations from here...
5270         * modules/freopen (configure.ac): ... to here.
5271
5272 2011-05-07  Bruno Haible  <bruno@clisp.org>
5273
5274         free: Move AC_LIBOBJ invocations to module description.
5275         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5276         invocations from here...
5277         * modules/free (configure.ac): ... to here.
5278
5279 2011-05-07  Bruno Haible  <bruno@clisp.org>
5280
5281         freadable: Move AC_LIBOBJ invocations to module description.
5282         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5283         here...
5284         * modules/freadable (configure.ac): ... to here.
5285
5286 2011-05-07  Bruno Haible  <bruno@clisp.org>
5287
5288         fpurge: Move AC_LIBOBJ invocations to module description.
5289         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5290         invocations from here...
5291         * modules/fpurge (configure.ac): ... to here.
5292
5293 2011-05-07  Bruno Haible  <bruno@clisp.org>
5294
5295         fpending: Move AC_LIBOBJ invocations to module description.
5296         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5297         gl_FUNC_FPENDING.
5298         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5299         invocations from here...
5300         * modules/fpending (configure.ac): ... to here.
5301
5302 2011-05-07  Bruno Haible  <bruno@clisp.org>
5303
5304         fopen: Move AC_LIBOBJ invocations to module description.
5305         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5306         invocations from here...
5307         * modules/fopen (configure.ac): ... to here.
5308
5309 2011-05-07  Bruno Haible  <bruno@clisp.org>
5310
5311         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5312         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5313         gl_FUNC_FNMATCH_POSIX.
5314         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5315         invocations from here...
5316         * modules/fnmatch (configure.ac): ... to here.
5317         * modules/fnmatch-gnu (configure.ac): ... and here.
5318
5319 2011-05-07  Bruno Haible  <bruno@clisp.org>
5320
5321         flock: Move AC_LIBOBJ invocations to module description.
5322         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5323         invocations from here...
5324         * modules/flock (configure.ac): ... to here.
5325
5326 2011-05-07  Bruno Haible  <bruno@clisp.org>
5327
5328         fileblocks: Move AC_LIBOBJ invocations to module description.
5329         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5330         gl_PREREQ_FILEBLOCKS invocations from here...
5331         * modules/fileblocks (configure.ac): ... to here.
5332
5333 2011-05-06  Bruno Haible  <bruno@clisp.org>
5334
5335         fflush: Move AC_LIBOBJ invocations to module description.
5336         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5337         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5338         invocations from here...
5339         * modules/fflush (configure.ac): ... to here.
5340
5341 2011-05-06  Bruno Haible  <bruno@clisp.org>
5342
5343         fdopendir: Move AC_LIBOBJ invocations to module description.
5344         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5345         here...
5346         * modules/fdopendir (configure.ac): ... to here.
5347         (Depends-on): Improve conditions.
5348
5349 2011-05-06  Bruno Haible  <bruno@clisp.org>
5350
5351         _Exit: Move AC_LIBOBJ invocations to module description.
5352         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5353         invocations from here...
5354         * modules/_Exit (configure.ac): ... to here.
5355
5356 2011-05-21  Bruno Haible  <bruno@clisp.org>
5357
5358         euidaccess: Respect rules for use of AC_LIBOBJ.
5359         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5360         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5361         from here...
5362         * modules/euidaccess (configure.ac): ... to here.
5363
5364 2011-05-06  Bruno Haible  <bruno@clisp.org>
5365
5366         error: Move AC_LIBOBJ invocations to module description.
5367         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5368         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5369         invocations from here...
5370         * modules/error (configure.ac): ... to here.
5371
5372 2011-05-06  Bruno Haible  <bruno@clisp.org>
5373
5374         duplocale: Move AC_LIBOBJ invocations to module description.
5375         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5376         gl_PREREQ_DUPLOCALE invocations from here...
5377         * modules/duplocale (configure.ac): ... to here.
5378
5379 2011-05-05  Bruno Haible  <bruno@clisp.org>
5380
5381         dirfd: Move AC_LIBOBJ invocations to module description.
5382         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5383         gl_FUNC_DIRFD.
5384         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5385         here...
5386         * modules/dirfd (configure.ac): ... to here.
5387         (Depends-on): Fix condition.
5388
5389 2011-05-05  Bruno Haible  <bruno@clisp.org>
5390
5391         chown: Respect rules for use of AC_LIBOBJ.
5392         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5393         * modules/chown (configure.ac): ... to here.
5394
5395 2011-05-05  Bruno Haible  <bruno@clisp.org>
5396
5397         chdir-long: Move AC_LIBOBJ invocations to module description.
5398         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5399         gl_PREREQ_CHDIR_LONG invocations from here...
5400         * modules/chdir-long (configure.ac): ... to here.
5401
5402 2011-05-05  Bruno Haible  <bruno@clisp.org>
5403
5404         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5405         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5406         from here...
5407         * modules/canonicalize-lgpl (configure.ac): ... to here.
5408
5409 2011-05-05  Bruno Haible  <bruno@clisp.org>
5410
5411         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5412         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5413         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5414         REPLACE_CALLOC.
5415         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5416         * modules/calloc-gnu (configure.ac): Likewise.
5417
5418 2011-05-05  Bruno Haible  <bruno@clisp.org>
5419
5420         btowc: Move AC_LIBOBJ invocations to module description.
5421         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5422         invocations from here...
5423         * modules/btowc (configure.ac): ... to here.
5424
5425 2011-05-21  Bruno Haible  <bruno@clisp.org>
5426
5427         atexit: Move AC_LIBOBJ invocations to module description.
5428         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5429         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5430         here...
5431         * modules/atexit (configure.ac): ... to here.
5432
5433 2011-05-05  Bruno Haible  <bruno@clisp.org>
5434
5435         atoll: Move AC_LIBOBJ invocations to module description.
5436         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5437         invocations from here...
5438         * modules/atoll (configure.ac): ... to here.
5439
5440 2011-05-05  Bruno Haible  <bruno@clisp.org>
5441
5442         argz: Move AC_LIBOBJ invocations to module description.
5443         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5444         * modules/argz (configure.ac): ... to here.
5445
5446 2011-05-05  Bruno Haible  <bruno@clisp.org>
5447
5448         alphasort: Move AC_LIBOBJ invocations to module description.
5449         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5450         gl_PREREQ_ALPHASORT invocations from here...
5451         * modules/alphasort (configure.ac): ... to here.
5452
5453 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5454
5455         verify: new macro verify_expr; verify_true deprecated
5456         * NEWS: Mention this.
5457         * doc/verify.texi (Compile-time Assertions): Document this.
5458         * lib/verify.h (verify_true): Deprecate.
5459         (verify_expr): New macro.
5460         * tests/test-verify.c (function): Test verify_expr.
5461
5462 2011-06-14  Jim Meyering  <meyering@redhat.com>
5463
5464         init.sh: give more portable redirection-related advice in a comment
5465         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5466         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5467         for lots of discussion.  Stefano Lattarini suggested the solution
5468         of putting "9>&2" after the command.  Reported by Bruno Haible.
5469
5470 2011-06-13  Bruno Haible  <bruno@clisp.org>
5471
5472         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5473         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5474         'none'.
5475
5476 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5477
5478         ftoastr: use strtof only if HAVE_STRTOF
5479         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5481         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5482         * modules/ftoastr (configure.ac): Check for strtof.
5483
5484 2011-06-13  Bruno Haible  <bruno@clisp.org>
5485
5486         gnulib-tool: Addendum to 2011-06-08 commit.
5487         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5488         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5489
5490 2011-06-13  Bruno Haible  <bruno@clisp.org>
5491
5492         fseeko: Provide a non-inline replacement of fseek().
5493         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5494         * modules/fseeko (Depends-on): Add fseek.
5495         * modules/fseek (License): Change to LGPLv2+.
5496
5497 2011-06-13  Bruno Haible  <bruno@clisp.org>
5498
5499         ftello: Provide a non-inline replacement of ftell().
5500         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5501         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5502         not have ftello() (such as on mingw).
5503         * modules/ftello (Depends-on): Add ftell.
5504         * modules/ftell (License): Change to LGPLv2+.
5505
5506 2011-05-07  Bruno Haible  <bruno@clisp.org>
5507
5508         ftell: Move AC_LIBOBJ invocations to module description.
5509         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5510         * modules/ftell (configure.ac): ... to here.
5511
5512 2011-05-07  Bruno Haible  <bruno@clisp.org>
5513
5514         ftello: Respect rules for use of AC_LIBOBJ.
5515         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5516         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5517         here...
5518         * modules/ftello (configure.ac): ... to here.
5519
5520 2011-05-07  Bruno Haible  <bruno@clisp.org>
5521
5522         fseeko: Simplify.
5523         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5524         (gl_FUNC_FSEEKO): Inline it here.
5525
5526 2011-05-07  Bruno Haible  <bruno@clisp.org>
5527
5528         fseek: Move AC_LIBOBJ invocations to module description.
5529         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5530         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5531         * modules/fseek (configure.ac): ... to here.
5532
5533 2011-05-07  Bruno Haible  <bruno@clisp.org>
5534
5535         fseek: Respect rules for use of AC_LIBOBJ.
5536         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5537         here...
5538         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5539
5540 2011-05-07  Bruno Haible  <bruno@clisp.org>
5541
5542         fseeko: Respect rules for use of AC_LIBOBJ.
5543         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5544         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5545         here...
5546         * modules/fseeko (configure.ac): ... to here.
5547
5548 2011-06-13  Bruno Haible  <bruno@clisp.org>
5549
5550         gnulib-tool: Allow comments in the 'Depends-on' section.
5551         * doc/gnulib.texi (Module description): Mention comment syntax in the
5552         Depends-on section.
5553         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5554
5555 2011-06-13  Bruno Haible  <bruno@clisp.org>
5556
5557         file-set.h: guard __attibute__ use, now that it's not always defined
5558         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5559         versions that support it.  This fixes a coreutils build failure with
5560         the vendor cc on HP-UX 11.31.
5561
5562 2011-06-12  Bruno Haible  <bruno@clisp.org>
5563
5564         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5565         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5566         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5567         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5568         (acl, aclsort): New declarations.
5569         (aclv_nontrivial): New declaration.
5570         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5571         (file_has_acl): Read also the second kind of HP-UX ACLs.
5572         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5573         kind of HP-UX ACLs if the first kind fails.
5574         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5575         second kind of HP-UX ACLs.
5576         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5577         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5578         agree.
5579         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5580         hpuxjfs.
5581         Handle hpuxjfs.
5582         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5583         hpuxjfs.
5584         Handle hpuxjfs.
5585         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5586         (func_test_same_acls): Use both lsacl and getacl.
5587         Handle hpuxjfs.
5588         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5589         (func_test_same_acls): Use both lsacl and getacl.
5590         Handle hpuxjfs.
5591
5592 2011-06-12  Bruno Haible  <bruno@clisp.org>
5593
5594         acl: Complete the 2010-08-10 fix.
5595         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5596         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5597         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5598         explicitly.
5599         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5600         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5601
5602 2011-06-12  Bruno Haible  <bruno@clisp.org>
5603
5604         spawn-pipe tests: Comments.
5605         * tests/test-spawn-pipe-child.c (main): Update comment.
5606         Reported by James Youngman <jay@gnu.org>.
5607
5608 2011-06-11  James Youngman  <jay@gnu.org>
5609
5610         New module 'stat-size'.
5611         * modules/stat-size: New module.  Provides macros for accessing
5612         file size information in instances of struct stat.  Depends on the
5613         fileblocks module because it calls st_blocks.
5614         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5615         * doc/gnulib.texi: Include stat-size.texi.
5616         * doc/stat-size.texi: Documentation for this module.
5617         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5618         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5619         AC_STRUCT_ST_BLOCKS.
5620
5621 2011-06-09  Bruno Haible  <bruno@clisp.org>
5622
5623         thread: Support pthreads-win32.
5624         * lib/glthread/thread.h (gl_thread_self): Define differently on
5625         pthreads-win32.
5626         (gl_null_thread): New declaration.
5627         (gl_thread_self_pointer): New macro.
5628         * lib/glthread/thread.c (gl_null_thread): New constant.
5629         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5630         gl_thread_self.
5631         * tests/test-tls.c: Likewise.
5632         Suggested by Paul Eggert. Reported by Eric Blake.
5633
5634 2011-06-09  Bruno Haible  <bruno@clisp.org>
5635
5636         thread: Fix confusion between NULL and 0.
5637         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5638         Reported by Paul Eggert.
5639
5640 2011-06-09  Bruno Haible  <bruno@clisp.org>
5641
5642         spawn-pipe tests: Avoid test failure on HP-UX 11.
5643         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5644         is closed.
5645
5646 2011-06-09  Bruno Haible  <bruno@clisp.org>
5647
5648         acl tests: Fix compilation error on HP-UX 11.
5649         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5650
5651 2011-06-09  Bruno Haible  <bruno@clisp.org>
5652
5653         rmdir: Avoid test failure on HP-UX 10.20.
5654         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5655         EEXIST.
5656
5657 2011-06-08  Eric Blake  <eblake@redhat.com>
5658
5659         perror: fix test on mingw
5660         * modules/perror-tests (Depends-on): Add dup2.
5661
5662         strerror_r-posix: fix on MacOS
5663         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5664         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5665         logic bug.
5666         * lib/strerror_r.c (strerror_r): Fix the bug.
5667         * lib/strerror.c (strerror): Likewise.
5668         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5669         problem.
5670         * doc/posix-functions/strerror.texi (strerror): Likewise.
5671         * doc/posix-functions/perror.texi (perror): Likewise.
5672         * tests/test-strerror.c (main): Enhance test.
5673         * tests/test-strerror_r.c (main): Likewise.
5674
5675 2011-06-08  Bruno Haible  <bruno@clisp.org>
5676
5677         gnulib-tool: Better isolation between different gnulib-tool invocations.
5678         * gnulib-tool: New option --witness-c-macro.
5679         (witness_c_macro): New variable.
5680         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5681         AM_CPPFLAGS define it as a C macro.
5682         (func_emit_tests_Makefile_am): Likewise.
5683         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5684         read it from there.
5685         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5686         m4_define, not AC_DEFUN.
5687         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5688         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5689         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5690         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5691         s|...|...|, to substitute the values of the GNULIB_* module indicator
5692         variables.
5693         * modules/dirent (Makefile.am): Likewise.
5694         * modules/fcntl-h (Makefile.am): Likewise.
5695         * modules/iconv-h (Makefile.am): Likewise.
5696         * modules/langinfo (Makefile.am): Likewise.
5697         * modules/locale (Makefile.am): Likewise.
5698         * modules/math (Makefile.am): Likewise.
5699         * modules/netdb (Makefile.am): Likewise.
5700         * modules/poll-h (Makefile.am): Likewise.
5701         * modules/pty (Makefile.am): Likewise.
5702         * modules/search (Makefile.am): Likewise.
5703         * modules/signal (Makefile.am): Likewise.
5704         * modules/spawn (Makefile.am): Likewise.
5705         * modules/stdio (Makefile.am): Likewise.
5706         * modules/stdlib (Makefile.am): Likewise.
5707         * modules/string (Makefile.am): Likewise.
5708         * modules/sys_ioctl (Makefile.am): Likewise.
5709         * modules/sys_select (Makefile.am): Likewise.
5710         * modules/sys_socket (Makefile.am): Likewise.
5711         * modules/sys_stat (Makefile.am): Likewise.
5712         * modules/sys_times (Makefile.am): Likewise.
5713         * modules/sys_utsname (Makefile.am): Likewise.
5714         * modules/sys_wait (Makefile.am): Likewise.
5715         * modules/termios (Makefile.am): Likewise.
5716         * modules/time (Makefile.am): Likewise.
5717         * modules/unistd (Makefile.am): Likewise.
5718         * modules/wchar (Makefile.am): Likewise.
5719
5720 2011-06-08  Eric Blake  <eblake@redhat.com>
5721
5722         strerror: simplify replacement
5723         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5724         * modules/strerror (configure.ac): No prereqs needed here...
5725         * modules/strerror-override (configure.ac): ...but this needs it.
5726         (Files): Add file for needed prereq macro.
5727
5728 2011-06-08  Bruno Haible  <bruno@clisp.org>
5729
5730         strerror_r-posix: Tweaks.
5731         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5732         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5733         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5734         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5735         (gl_FUNC_STRERROR_R): ... to here.
5736         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5737
5738 2011-06-07  Eric Blake  <eblake@redhat.com>
5739
5740         perror: document fixed bugs
5741         * doc/posix-functions/perror.texi (perror): Document recent
5742         patches.
5743
5744 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5745
5746         stat-time: get_stat_birthtime failure is better-defined
5747         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5748         return a timestamp whose tv_sec and tv_nsec values are both -1.
5749         Previously, the spec said only that the tv_nsec value was negative.
5750         This upward-compatible change simplifies GNU tar a bit.
5751
5752 2011-06-07  Eric Blake  <eblake@redhat.com>
5753
5754         strerror_r-posix: work around cygwin 1.7.9
5755         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5756         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5757         bug without replacing strerror_r.
5758         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5759         strerror_r is buggy, but without requiring strerror_r compilation.
5760         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5761
5762         test-perror: relax test to ignore cygwin bug
5763         * tests/test-perror2.c (main): Relax test on requiring detection
5764         of stream errors, and use unbuffered stream.
5765         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5766         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5767         * doc/posix-functions/fputc.texi (fputc): Likewise.
5768         * doc/posix-functions/fputs.texi (fputs): Likewise.
5769         * doc/posix-functions/fputws.texi (fputws): Likewise.
5770         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5771         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5772         * doc/posix-functions/getopt.texi (getopt): Likewise.
5773         * doc/posix-functions/perror.texi (perror): Likewise.
5774         * doc/posix-functions/printf.texi (printf): Likewise.
5775         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5776         * doc/posix-functions/psignal.texi (psignal): Likewise.
5777         * doc/posix-functions/putc.texi (putc): Likewise.
5778         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5779         Likewise.
5780         * doc/posix-functions/putchar.texi (putchar): Likewise.
5781         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5782         Likewise.
5783         * doc/posix-functions/puts.texi (puts): Likewise.
5784         * doc/posix-functions/putwc.texi (putwc): Likewise.
5785         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5786         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5787         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5788         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5789         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5790         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5791         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5792         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5793
5794 2011-05-22  Bruno Haible  <bruno@clisp.org>
5795
5796         strerror: Move AC_LIBOBJ invocations to module description.
5797         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5798         gl_PREREQ_STRERROR invocations from here...
5799         * modules/strerror (configure.ac): ... to here.
5800
5801 2011-05-21  Bruno Haible  <bruno@clisp.org>
5802
5803         perror: Use common idiom.
5804         * modules/perror (configure.ac): Reorder statements.
5805
5806 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5807
5808         tests: fix usage message in 'mktempd_'
5809         * tests/init.sh (mktempd_): In the usage message, use literal
5810         'mktempd_', not '$ME' (which is even undefined), as the name of
5811         the subroutine.
5812
5813 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5814
5815         tests init: new function 'fatal_', for hard errors
5816         Before this patch, the only way offered by tests/init.sh to
5817         properly signal a hard error was the `framework_failure_'
5818         function.  But the error message issued by that function,
5819         as its name would suggest, refers to a set-up failure in the
5820         testsuite, while hard errors can obviously also be due to
5821         other reasons.  The best way to fix this inconsistency is to
5822         introduce a new function with a more general error message.
5823         * tests/init.sh (fatal_): New function.
5824
5825 2011-06-06  Eric Blake  <eblake@redhat.com>
5826
5827         canonicalize-lgpl: use common idiom
5828         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5829         over newer POSIX -Rf.
5830         Reported by Bruno Haible.
5831
5832         canonicalize-lgpl: work around AIX realpath bug
5833         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5834         * doc/posix-functions/realpath.texi (realpath): Document it.
5835         Reported by Bruno Haible.
5836
5837         strerror: work around FreeBSD bug
5838         * lib/strerror.c (strerror): Special case 0.
5839         Reported by Bruno Haible.
5840
5841         strerror-override: avoid bloating errno module
5842         * modules/errno (Files, configure.ac): Move replacement strings...
5843         * modules/strerror-override: ...to new module.
5844         * modules/strerror (Depends-on): Add strerror-override.
5845         * modules/strerror_r-posix (Depends-on): Likewise.
5846         * MODULES.html.sh: Document new module.
5847         Reported by Bruno Haible.
5848
5849 2011-06-06  Bruno Haible  <bruno@clisp.org>
5850
5851         spawn-pipe tests: Rename program.
5852         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5853         * tests/test-spawn-pipe-child.c: Update comment.
5854         * tests/test-spawn-pipe.sh: Update.
5855         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5856
5857         spawn-pipe tests: Link the child program only against libc.
5858         * tests/test-spawn-pipe-child.c: New file, extracted from
5859         tests/test-spawn-pipe.c.
5860         (main): Expect only one argument.
5861         (is_open): New function, copied from tests/test-pipe.c.
5862         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5863         (child_main): Remove function.
5864         (test_pipe): Pass only one argument to the child program.
5865         (main): Remove child process code. Expect the child program's name as
5866         first argument.
5867         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5868         argument.
5869         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5870         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5871         test-spawn-pipe-child against no libraries.
5872
5873 2011-06-06  Bruno Haible  <bruno@clisp.org>
5874
5875         careadlinkat: Avoid mismatch between ssize_t and int.
5876         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5877         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5878
5879 2011-06-06  Jim Meyering  <meyering@redhat.com>
5880
5881         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5882         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5883         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5884
5885 2011-06-05  Bruno Haible  <bruno@clisp.org>
5886
5887         ansi-c++-opt: Interoperability with libtool.
5888         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5889         set the variable to "no", not to ":".
5890         * NEWS: Mention the change.
5891
5892 2011-06-05  Bruno Haible  <bruno@clisp.org>
5893
5894         acl: Fix test failure on AIX 7.
5895         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5896         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5897
5898 2011-06-05  Bruno Haible  <bruno@clisp.org>
5899
5900         pipe-filter-ii: Fix test failure on AIX and IRIX.
5901         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5902         with EAGAIN, retry with a smaller buffer size.
5903
5904 2011-06-05  Bruno Haible  <bruno@clisp.org>
5905
5906         localename: Fix link dependencies.
5907         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5908         * modules/localename-tests (Makefile.am): Link test-localename with
5909         $(LIBTHREAD).
5910
5911 2011-06-05  Bruno Haible  <bruno@clisp.org>
5912
5913         error: Avoid gcc warning.
5914         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5915
5916 2011-06-05  Bruno Haible  <bruno@clisp.org>
5917
5918         unsetenv: Avoid gcc warning.
5919         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5920
5921 2011-06-05  Bruno Haible  <bruno@clisp.org>
5922
5923         setenv: Avoid gcc warning.
5924         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5925
5926 2011-06-05  Bruno Haible  <bruno@clisp.org>
5927
5928         sys_select: Ensure memset is declared also on AIX 7.
5929         * lib/sys_select.in.h: Include <string.h> also on AIX.
5930         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5931         self-contained also on AIX 7.1.
5932
5933 2011-06-04  Jim Meyering  <meyering@redhat.com>
5934
5935         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5936         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5937         function name, "error".
5938         (_gl_translatable_diag_func_re): New configurable variable.
5939
5940 2011-06-04  Bruno Haible  <bruno@clisp.org>
5941
5942         getopt: Avoid gcc warning.
5943         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5944
5945 2011-06-04  Bruno Haible  <bruno@clisp.org>
5946
5947         strerror_r: Fix comments.
5948         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5949         commit.
5950
5951 2011-06-04  Bruno Haible  <bruno@clisp.org>
5952
5953         perror: Fix compilation error.
5954         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5955         Undefine fprintf, not sprintf.
5956         * modules/perror (Depends-on): Remove intprops, verify.
5957
5958 2011-06-04  Bruno Haible  <bruno@clisp.org>
5959
5960         setlocale: Enable replacement on Cygwin 1.5.
5961         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5962         Cygwin 1.5.x.
5963         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5964         LC_CTYPE category also exists on Cygwin 1.5.x.
5965
5966 2011-06-04  Bruno Haible  <bruno@clisp.org>
5967
5968         strerror-override: Don't disable symbol renamings.
5969         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5970         * lib/strerror-override.c: Include config.h.
5971         (strerror_override): Don't undefine.
5972
5973 2011-06-03  Bruno Haible  <bruno@clisp.org>
5974
5975         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5976         * lib/localename.h: Update copyright header.
5977         * lib/localename.c: Likewise.
5978         * lib/relocatable.h: Likewise.
5979         * lib/relocatable.c: Likewise.
5980
5981 2011-06-02  Bruno Haible  <bruno@clisp.org>
5982
5983         doc: Fix a module name.
5984         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5985
5986 2011-06-02  Bruno Haible  <bruno@clisp.org>
5987
5988         pipe2: Remove dependency on 'nonblocking' module.
5989         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5990         O_NONBLOCK is defined by gnulib.
5991         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5992         is zero.
5993         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5994         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5995         defined by gnulib.
5996         (get_nonblocking_flag): New function.
5997         (main): Test O_NONBLOCK flag only if it is nonzero.
5998         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5999
6000 2011-06-03  Jim Meyering  <meyering@redhat.com>
6001
6002         maint: three new prohibit-header-without-use rules
6003         Prohibit use of cloexec.h, posixver.h, same.h without use.
6004         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6005         (sc_prohibit_posixver_without_use): Likewise.
6006         (sc_prohibit_same_without_use): Likewise.
6007
6008 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6009
6010         allocator: 'die' routine is now given requested size
6011         * lib/allocator.h (struct allocator.die): New size arg.
6012         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6013         If the actual problem is an ssize_t limitation, not a size_t or
6014         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6015
6016 2011-06-01  Eric Blake  <eblake@redhat.com>
6017
6018         strerror: drop strerror_r dependency
6019         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6020         * lib/strerror-override.c (strerror_override): ...to new file.
6021         * lib/strerror-override.h: Add prototype.
6022         * lib/strerror-impl.h: Delete.
6023         * lib/strerror.c (strerror): New implementation.
6024         * modules/errno (Files): Add new files.
6025         (configure.ac): Compile new file as appropriate.
6026         * modules/strerror (Files): Drop unused file.
6027         (Depends-on): Drop strerror_r-posix.
6028         * MODULES.html.sh: Document strerror_r-posix.
6029         Requested by Sam Steingold.
6030
6031         perror: call strerror_r directly
6032         * modules/perror (Files): Drop strerror-impl.h.
6033         * lib/perror.c (perror): Use our own stack buffer, rather than
6034         calling a wrapper that uses static storage.
6035         * doc/posix-functions/perror.texi (perror): Document a limitation
6036         of our replacement.
6037
6038         strerror_r: fix includes for FreeBSD
6039         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6040         since we use abort on some platforms.
6041         Reported by Matthias Bolte.
6042
6043 2011-05-31  Bruno Haible  <bruno@clisp.org>
6044
6045         Fix link errors in tests: openat-die uses gettext-h.
6046         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6047         against $(LIBINTL).
6048         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6049         against $(LIBINTL).
6050         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6051         $(LIBINTL).
6052         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6053         against $(LIBINTL).
6054         * modules/linkat-tests (Makefile.am): Link test-linkat against
6055         $(LIBINTL).
6056         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6057         $(LIBINTL).
6058         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6059         against $(LIBINTL).
6060         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6061         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6062         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6063         $(LIBINTL).
6064         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6065         $(LIBINTL).
6066         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6067         $(LIBINTL).
6068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6069
6070 2011-05-31  Bruno Haible  <bruno@clisp.org>
6071
6072         Fix link errors in tests: wait-process uses gettext-h.
6073         * modules/nonblocking-pipe-tests (Makefile.am): Set
6074         test_nonblocking_pipe_main_LDADD.
6075         * modules/nonblocking-socket-tests (Makefile.am): Link
6076         test-nonblocking-socket-main against $(LIBINTL).
6077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6078
6079 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6080
6081         assert-h: work around 'verify' incompatibility
6082         * lib/verify.h: Use @...@ directives, not ifdef.
6083         * modules/assert-h (assert.h): Implement the directives.
6084         (assert.h): Substitute the symbol-prefix more consistently.
6085
6086 2011-05-29  Jim Meyering  <meyering@redhat.com>
6087
6088         trim: remove three superfluous assignments
6089         * lib/trim.c (trim2): Remove three superfluous assignments
6090         and correct brace positioning.
6091
6092 2011-05-29  Bruno Haible  <bruno@clisp.org>
6093
6094         wctype-h: Avoid namespace pollution on Solaris 2.6.
6095         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6096         identifiers.
6097         * doc/posix-headers/wctype.texi: Mention the problem.
6098         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6099
6100 2011-05-28  Jim Meyering  <meyering@redhat.com>
6101
6102         parse-datetime.y: accommodate -Wstrict-overflow
6103         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6104         placate -Wstrict-overflow.
6105
6106         trim: avoid a warning from -O2 -Wstrict-overflow
6107         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6108
6109 2011-05-29  Bruno Haible  <bruno@clisp.org>
6110
6111         gnulib-tool: Fix bug in yesterday's commit.
6112         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6113         twice.
6114
6115 2011-05-29  Bruno Haible  <bruno@clisp.org>
6116
6117         Allow multiple gnulib generated include files to be combined.
6118         * gnulib-tool (func_compute_include_guard_prefix): New function.
6119         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6120         ${gl_include_guard_prefix} references.
6121         (func_import, func_create_testdir): Invoke
6122         func_compute_include_guard_prefix.
6123         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6124         * lib/ctype.in.h: Likewise.
6125         * lib/dirent.in.h: Likewise.
6126         * lib/errno.in.h: Likewise.
6127         * lib/fcntl.in.h: Likewise.
6128         * lib/float.in.h: Likewise.
6129         * lib/getopt.in.h: Likewise.
6130         * lib/iconv.in.h: Likewise.
6131         * lib/langinfo.in.h: Likewise.
6132         * lib/locale.in.h: Likewise.
6133         * lib/math.in.h: Likewise.
6134         * lib/netdb.in.h: Likewise.
6135         * lib/netinet_in.in.h: Likewise.
6136         * lib/poll.in.h: Likewise.
6137         * lib/pthread.in.h: Likewise.
6138         * lib/pty.in.h: Likewise.
6139         * lib/sched.in.h: Likewise.
6140         * lib/se-selinux.in.h: Likewise.
6141         * lib/search.in.h: Likewise.
6142         * lib/signal.in.h: Likewise.
6143         * lib/spawn.in.h: Likewise.
6144         * lib/stdarg.in.h: Likewise.
6145         * lib/stddef.in.h: Likewise.
6146         * lib/stdint.in.h: Likewise.
6147         * lib/stdio.in.h: Likewise.
6148         * lib/stdlib.in.h: Likewise.
6149         * lib/string.in.h: Likewise.
6150         * lib/strings.in.h: Likewise.
6151         * lib/sys_file.in.h: Likewise.
6152         * lib/sys_ioctl.in.h: Likewise.
6153         * lib/sys_select.in.h: Likewise.
6154         * lib/sys_socket.in.h: Likewise.
6155         * lib/sys_stat.in.h: Likewise.
6156         * lib/sys_time.in.h: Likewise.
6157         * lib/sys_times.in.h: Likewise.
6158         * lib/sys_uio.in.h: Likewise.
6159         * lib/sys_utsname.in.h: Likewise.
6160         * lib/sys_wait.in.h: Likewise.
6161         * lib/sysexits.in.h: Likewise.
6162         * lib/termios.in.h: Likewise.
6163         * lib/time.in.h: Likewise.
6164         * lib/unistd.in.h: Likewise.
6165         * lib/wchar.in.h: Likewise.
6166         * lib/wctype.in.h: Likewise.
6167         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6168         * modules/ctype (Makefile.am): Likewise.
6169         * modules/dirent (Makefile.am): Likewise.
6170         * modules/errno (Makefile.am): Likewise.
6171         * modules/fcntl-h (Makefile.am): Likewise.
6172         * modules/float (Makefile.am): Likewise.
6173         * modules/getopt-posix (Makefile.am): Likewise.
6174         * modules/iconv-h (Makefile.am): Likewise.
6175         * modules/langinfo (Makefile.am): Likewise.
6176         * modules/locale (Makefile.am): Likewise.
6177         * modules/math (Makefile.am): Likewise.
6178         * modules/netdb (Makefile.am): Likewise.
6179         * modules/netinet_in (Makefile.am): Likewise.
6180         * modules/poll-h (Makefile.am): Likewise.
6181         * modules/pthread (Makefile.am): Likewise.
6182         * modules/pty (Makefile.am): Likewise.
6183         * modules/sched (Makefile.am): Likewise.
6184         * modules/search (Makefile.am): Likewise.
6185         * modules/selinux-h (Makefile.am): Likewise.
6186         * modules/signal (Makefile.am): Likewise.
6187         * modules/spawn (Makefile.am): Likewise.
6188         * modules/stdarg (Makefile.am): Likewise.
6189         * modules/stddef (Makefile.am): Likewise.
6190         * modules/stdint (Makefile.am): Likewise.
6191         * modules/stdio (Makefile.am): Likewise.
6192         * modules/stdlib (Makefile.am): Likewise.
6193         * modules/string (Makefile.am): Likewise.
6194         * modules/strings (Makefile.am): Likewise.
6195         * modules/sys_file (Makefile.am): Likewise.
6196         * modules/sys_ioctl (Makefile.am): Likewise.
6197         * modules/sys_select (Makefile.am): Likewise.
6198         * modules/sys_socket (Makefile.am): Likewise.
6199         * modules/sys_stat (Makefile.am): Likewise.
6200         * modules/sys_time (Makefile.am): Likewise.
6201         * modules/sys_times (Makefile.am): Likewise.
6202         * modules/sys_uio (Makefile.am): Likewise.
6203         * modules/sys_utsname (Makefile.am): Likewise.
6204         * modules/sys_wait (Makefile.am): Likewise.
6205         * modules/sysexits (Makefile.am): Likewise.
6206         * modules/termios (Makefile.am): Likewise.
6207         * modules/time (Makefile.am): Likewise.
6208         * modules/unistd (Makefile.am): Likewise.
6209         * modules/wchar (Makefile.am): Likewise.
6210         * modules/wctype-h (Makefile.am): Likewise.
6211         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6212
6213 2011-05-29  Bruno Haible  <bruno@clisp.org>
6214
6215         assert-h: Allow multiple gnulib generated replacements to coexist.
6216         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6217
6218 2011-05-29  Bruno Haible  <bruno@clisp.org>
6219
6220         argp: Allow coexistence with strerror_r-posix module.
6221         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6222         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6223         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6224         not the glibc signature.
6225
6226 2011-05-28  Bruno Haible  <bruno@clisp.org>
6227
6228         gnulib-tool: Alternative structure of testdirs, similar to --import.
6229         * gnulib-tool: New option --single-configure.
6230         (func_usage): Document it.
6231         (single_configure): New variable.
6232         (func_modules_transitive_closure_separately,
6233         func_modules_transitive_closure_separately,
6234         func_determine_use_libtests, func_modules_add_dummy_separately,
6235         func_modules_to_filelist_separately): New functions, extracted from
6236         func_import.
6237         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6238         (func_import): Use the new functions.
6239         (func_create_testdir): Set final_modules. Handle $single_configure =
6240         true case.
6241
6242 2011-05-28  Bruno Haible  <bruno@clisp.org>
6243
6244         getloadavg: Remove an unreliable safety check.
6245         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6246         getloadavg.c is in place.
6247         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6248         Reported by Sam Steingold <sds@gnu.org>.
6249
6250 2011-05-28  Bruno Haible  <bruno@clisp.org>
6251
6252         doc: Cleanup yet another file produced by texinfo.tex.
6253         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6254
6255 2011-05-28  Bruno Haible  <bruno@clisp.org>
6256
6257         Finish the conditional dependencies mechanism.
6258         * gnulib-tool: New option --no-conditional-dependencies.
6259         (func_usage): Document it. Don't mark --conditional-dependencies as
6260         experimental.
6261         (cond_dependencies): The possible values can now be true, false, empty.
6262         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6263         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6264         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6265
6266 2011-05-28  Bruno Haible  <bruno@clisp.org>
6267
6268         doc: Use a recent texinfo.tex.
6269         * doc/Makefile (tex_opts): New variable.
6270         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6271
6272 2011-05-28  Jim Meyering  <meyering@redhat.com>
6273
6274         intprops.h: adjust comment to match code change
6275         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6276         only once, it *may* have side effects.  Also fix an unrelated typo.
6277         (_GL_INT_SIGNED): Likewise.
6278
6279 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6280
6281         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6282
6283 2011-05-26  Bruno Haible  <bruno@clisp.org>
6284
6285         mbsrchr: Avoid collision with system function on Interix.
6286         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6287         Reported by Markus Duft <mduft@gentoo.org>.
6288
6289 2011-05-15  James Youngman  <jay@gnu.org>
6290
6291         getopt: for ambiguous options, enumerate the possibilities.
6292         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6293         the ambiguous options when an ambiguous prefix is given. This was
6294         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6295         glibc change was
6296         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6297
6298 2011-05-25  Eric Blake  <eblake@redhat.com>
6299
6300         getcwd: work around mingw bug
6301         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6302         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6303         Reported by Matthias Bolte.
6304
6305 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6306
6307         test-intprops: disable -Wtype-limits diagnostics
6308         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6309         diagnostics.  Otherwise, the integer overflow macros generate many
6310         diagnostics.  Reported by Jim Meyering in
6311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6312
6313         intprops: shorten, to pacify gcc -Woverlength-strings
6314         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6315         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6316         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6317         likely to run afoul of C compiler limits for string constant lengths.
6318         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6319
6320 2011-05-24  Eric Blake  <eblake@redhat.com>
6321
6322         docs: document recently fixed glibc printf bug
6323         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6324         * doc/posix-functions/printf.texi (printf): Likewise.
6325         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6326         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6327
6328         closein-tests: convert to init.sh
6329         * modules/closein-tests (Files): Add init.sh
6330         * tests/test-closein.sh Use it.
6331
6332         yesno-tests: convert to init.sh
6333         * modules/yesno-tests (Files): Add init.sh.
6334         * tests/test-yesno.sh: Use it.
6335
6336         atexit-tests: ensure reliable exit status
6337         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6338         Reported by Bruno Haible.
6339
6340 2011-05-24  Bruno Haible  <bruno@clisp.org>
6341
6342         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6343         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6344         gl_PREREQ_STRERROR_R invocations from here...
6345         * modules/strerror_r-posix (configure.ac): ... to here.
6346
6347 2011-05-24  Eric Blake  <eblake@redhat.com>
6348
6349         strerror_r: fix missing header
6350         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6351
6352         strerror_r: fix AIX test failures
6353         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6354         ERANGE failure.
6355
6356         strerror_r: fix Solaris test failures
6357         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6358         failures.
6359         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6360
6361         strerror_r: enforce POSIX recommendations
6362         * lib/strerror_r.c (safe_copy): New helper method.
6363         (strerror_r): Guarantee a non-empty string.
6364         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6365         recent POSIX rulings and to match our strerror guarantees.
6366         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6367
6368 2011-05-24  Jim Meyering  <meyering@redhat.com>
6369
6370         test-perror2.c: avoid warning about unused variable
6371         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6372
6373 2011-05-24  Eric Blake  <eblake@redhat.com>
6374
6375         perror: avoid spurious test failure on HP-UX
6376         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6377
6378         tests: fix logic bug in init.sh
6379         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6380         shell.
6381
6382 2011-05-24  Jim Meyering  <meyering@redhat.com>
6383
6384         utimensat: do not reference an out-of-scope buffer
6385         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6386         declared in an inner scope, yet "times" would be dereferenced outside
6387         the scope in which "ts" was valid.
6388         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6389         of ts[2] "out/up", so that the use of aliased "times" (via
6390         "times = ts;") does not end up referencing an out-of-scope "ts"
6391
6392         opendir-safer.c: don't clobber errno; don't close negative FD
6393         * lib/opendir-safer.c (opendir_safer):
6394         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6395         file descriptor, and more importantly, don't clobber the
6396         offending errno value with EINVAL.  Before, upon failure
6397         of dup_safer, we would pass the negative file descriptor to
6398         fdopendir, which would clobber errno.
6399
6400 2011-05-23  Bruno Haible  <bruno@clisp.org>
6401
6402         idcache: Fix module description.
6403         * modules/idcache (Include): Set to "idcache.h".
6404
6405 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6406
6407         gnulib-tool: fix portability problem with MacOS sed
6408         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6409         before the "}".  Problem reported by Leo in
6410         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6411         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6412         sed_extract_condition1, sed_extract_condition2.
6413
6414 2011-05-23  Bruno Haible  <bruno@clisp.org>
6415
6416         hash: Simplify autoconf macro.
6417         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6418
6419 2011-05-23  Bruno Haible  <bruno@clisp.org>
6420
6421         getugroups: Fix module description.
6422         * modules/getugroups (Include): Set to "getugroups.h".
6423
6424 2011-05-23  Bruno Haible  <bruno@clisp.org>
6425
6426         linkat: Simplify autoconf macro.
6427         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6428
6429 2011-05-23  Bruno Haible  <bruno@clisp.org>
6430             Eric Blake  <eblake@redhat.com>
6431
6432         linkat, renameat: Update dependencies.
6433         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6434         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6435         symlinkat.
6436
6437 2011-05-23  Jim Meyering  <meyering@redhat.com>
6438
6439         maint.mk: more tight_scope improvements
6440         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6441         (_gl_TS_headers): Define only in if-0'd block.
6442         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6443         sometimes we must *not* use it.  Adjust uses accordingly.
6444         (sc_tight_scope): Use much simpler grep-based test to determine
6445         whether we skip this rule.
6446
6447         maint.mk: generalize/improve the tight-scope rule
6448         * top/maint.mk: Emit a warning when the test is skipped.
6449         (_gl_TS_dir): Add $(srcdir)/ prefix.
6450         (_gl_TS_function_match): Simplify, rather than trying
6451         to enumerate common types.  Otherwise, it would fail to match an
6452         "extern unsigned char const *" declaration in idutils.
6453         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6454         a way to support use of that type of macro.
6455         (_gl_TS_var_match): Simplify regexp.
6456         (_gl_TS_obj_files): New configurable variable.
6457         (_gl_TS_headers): Likewise.
6458
6459 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6460
6461         verify: fix bug when gnulib <assert.h> is also included
6462         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6463         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6464         Perhaps there's a better way, but this fixes the immediate problem.
6465         Problem reported by Bruno Haible in
6466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6467
6468 2011-05-22  Bruno Haible  <bruno@clisp.org>
6469
6470         xgetcwd: Simplify autoconf macro.
6471         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6472
6473 2011-05-22  Bruno Haible  <bruno@clisp.org>
6474
6475         New module 'mktime-internal'.
6476         * modules/mktime-internal: New file.
6477         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6478         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6479         mktime_internal as a C macro if libc has __mktime_internal.
6480         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6481         conditions.
6482         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6483
6484 2011-05-22  Bruno Haible  <bruno@clisp.org>
6485
6486         timegm: Correct mktime replacement statements.
6487         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6488         defining mktime as a C macro. This completes a 2009-07-28 commit.
6489
6490 2011-05-22  Bruno Haible  <bruno@clisp.org>
6491
6492         timegm: Simplify autoconf macro.
6493         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6494
6495 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6496
6497         clock-time: change to LGPLv2+.
6498         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6499         BSD-like but we have no mark for that; this is good enough for now.
6500
6501 2011-05-21  Bruno Haible  <bruno@clisp.org>
6502
6503         strerror_r: Fix comments.
6504         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6505
6506 2011-05-21  Bruno Haible  <bruno@clisp.org>
6507
6508         relocatable-prog-wrapper: Fix possible link error.
6509         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6510         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6511         (gl_FUNC_SETENV): ... to here.
6512         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6513         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6514
6515 2011-05-21  Bruno Haible  <bruno@clisp.org>
6516
6517         relocatable-prog-wrapper: Assume strerror() exists.
6518         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6519         m4/strerror.m4.
6520         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6521         * lib/relocwrapper.c: Remove mention of strerror module.
6522         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6523         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6524         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6525         C macro.
6526
6527 2011-05-21  Bruno Haible  <bruno@clisp.org>
6528
6529         select: Simplify replacement idiom.
6530         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6531         Win32 platforms.
6532         * lib/sys_select.in.h (select): Simplify accordingly.
6533         * modules/select (Depends-on): Likewise.
6534
6535 2011-05-21  Bruno Haible  <bruno@clisp.org>
6536
6537         mkdir-p: Simplify autoconf macro.
6538         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6539         gl_FUNC_LCHOWN.
6540
6541 2011-05-21  Eric Blake  <eblake@redhat.com>
6542
6543         strerror_r: avoid clobbering strerror on cygwin
6544         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6545         fall back instead to sys_errlist.
6546         * modules/strerror (configure.ac): Add witness.
6547         * tests/test-strerror_r.c (main): Enhance test.
6548         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6549         * tests/test-perror2.c (main): Free memory before exit.
6550
6551 2011-05-21  Bruno Haible  <bruno@clisp.org>
6552
6553         mkdtemp: Use gnulib naming conventions.
6554         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6555         * modules/mkdtemp (configure.ac): Update.
6556
6557 2011-05-20  Eric Blake  <eblake@redhat.com>
6558
6559         strerror_r: avoid corrupting errno on Solaris
6560         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6561         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6562
6563         strerror_r: avoid compiler warning
6564         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6565
6566         strerror_r: simplify AIX code
6567         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6568
6569         test-perror: avoid spurious failure on FreeBSD
6570         * modules/perror-tests (Depends-on): Add strerror, now that
6571         strerror_r no longer pulls it in.
6572
6573 2011-05-20  Bruno Haible  <bruno@clisp.org>
6574
6575         strerror_r-posix: Remove unused dependencies.
6576         * modules/strerror_r-posix (Depends-on): Remove strerror.
6577         Reported by Eric Blake.
6578
6579 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6580
6581         intprops: remove assumption about A|B representation
6582         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6583         is a valid integer if both A and B are.  Although this is true for
6584         all known practical hosts, the C standard doesn't guarantee it,
6585         and the code need not assume it.  Also, this change may work around
6586         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6588
6589 2011-05-20  Eric Blake  <eblake@redhat.com>
6590
6591         perror: work around FreeBSD bug
6592         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6593         is broken.  Move AC_LIBOBJ...
6594         * modules/perror (configure.ac): Here.
6595         * doc/posix-functions/perror.texi (perror): Document this.
6596         * tests/test-perror2.c (main): Enhance test.
6597
6598         test-perror: check for strerror interactions
6599         * tests/macros.h (STREQ): Add macro.
6600         * modules/perror-tests (Files): Add second test.
6601         * tests/test-perror2.c (main): New file.
6602         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6603
6604         test-perror: rewrite to use init script
6605         * modules/perror-tests (Files): Add init.sh.
6606         * tests/test-perror.sh: Use temporary directory.
6607
6608 2011-05-20  Jim Meyering  <meyering@redhat.com>
6609
6610         maint: replace misused "a" with "an"
6611         * doc/intprops.texi: "a integer"
6612         * doc/regex.texi: "a explanation"
6613         * lib/alignof.h: "a object"
6614         * lib/argmatch.h: "a explanation"
6615         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6616         * lib/stdint.in.h: "a integer"
6617         * lib/userspec.c: "a owner"
6618         * doc/gnulib.texi: Fix "a idea", and reword.
6619
6620 2011-05-19  Jim Meyering  <meyering@redhat.com>
6621
6622         maint: correct misuse of "a" and "an"
6623         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6624         * lib/argp-help.c: "an docum...": s/an/a/
6625         * lib/argp-parse.c: "An vector": s/An/A/
6626         * lib/execute.c: "an native": s/an/a/
6627         * lib/spawn-pipe.c: Likewise.
6628         * lib/gc.h: "an Gc_rc": s/an/a/
6629         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6630         * lib/fts.c: "an stat.st_dev": s/an/a/
6631
6632 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6633
6634         intprops-tests: work around HP-UX 11.23 cc bug with constants
6635         * tests/test-intprops.c (VERIFY): New macro.
6636         (main): Use it, instead of verify, to work around the compiler bug; see
6637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6638
6639         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6640         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6641         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6642         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6643         (_GL_REMAINDER_OVERFLOW): Use it.
6644
6645         intprops-tests: revert unsigned part of previous change
6646         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6647         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6648         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6650
6651 2011-05-19  Bruno Haible  <bruno@clisp.org>
6652
6653         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6654         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6655         strerror_r() returned without filling the buffer.
6656         Reported by Eric Blake.
6657
6658 2011-05-19  Eric Blake  <eblake@redhat.com>
6659
6660         strerror_r: guarantee unchanged errno
6661         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6662         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6663         failure.
6664         * tests/test-strerror_r.c (main): Enhance test.
6665
6666 2011-05-19  Bruno Haible  <bruno@clisp.org>
6667
6668         strerror_r: Reorder #if blocks.
6669         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6670         for consistency with the previous commit.
6671
6672 2011-05-19  Bruno Haible  <bruno@clisp.org>
6673
6674         perror: Avoid clobbering the strerror buffer when possible.
6675         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6676         * lib/strerror.c: Include it.
6677         * modules/strerror (Files): Add lib/strerror-impl.h.
6678         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6679         (my_strerror): New function, defined through lib/strerror-impl.h.
6680         (perror): Use it instead of strerror.
6681         * modules/perror (Files): Add lib/strerror-impl.h.
6682         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6683
6684 2011-05-19  Eric Blake  <eblake@redhat.com>
6685
6686         strerror_r: fix on newer cygwin
6687         * lib/strerror_r.c (strerror_r): Cygwin now has
6688         __xpg_strerror_r, use it.
6689
6690 2011-05-19  Bruno Haible  <bruno@clisp.org>
6691
6692         strerror_r: Avoid clobbering the strerror buffer when possible.
6693         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6694         (sys_nerr, sys_errlist): New declarations.
6695         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6696         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6697         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6698
6699 2011-05-19  Bruno Haible  <bruno@clisp.org>
6700
6701         strerror_r: Fix test failure on mingw.
6702         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6703         EXTEND_STRERROR_R.
6704         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6705         macros from errno.in.h instead.
6706
6707 2011-05-19  Eric Blake  <eblake@redhat.com>
6708
6709         strerror: relax test for Solaris
6710         * tests/test-strerror.c (main): Permit Solaris behavior.
6711         * tests/test-strerror_r.c (main): Likewise.
6712
6713         strerror: enforce POSIX ruling on strerror(0)
6714         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6715         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6716         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6717         * doc/posix-functions/strerror.texi (strerror): Document it.
6718         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6719         * tests/test-strerror.c (main): Strengthen test.
6720         * tests/test-strerror_r.c (main): Likewise.
6721
6722 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6723
6724         intprop-tests: port to older and more-pedantic compilers
6725         * modules/intprops-tests (Files): Add tests/macros.h.
6726         * tests/test-intprops.c: Include macros.h.
6727         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6728         it's no longer documented to expand to an integer constant expression.
6729         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6730         argument is floating point, as it's no longer documented to expand
6731         to an integer constant expression in that case.
6732         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6733         compiler bugs reported by Bruno Haible.  See
6734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6735         (U0, U1): New constants, to work around the same bugs.  Also,
6736         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6737
6738         intprops: work around C compiler bugs
6739         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6740         bug in Sun C 5.11 2010/08/13 and other compilers; see
6741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6742
6743         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6744         * doc/intprops.texi (Integer Type Determination): Fix
6745         documentation for TYPE_IS_INTEGER: it returns an constant
6746         expression, not an integer constant expression.  Fix doc for
6747         TYPE_SIGNED: it returns an integer constant expression only if its
6748         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6749         hardly worth documented that way....)
6750
6751 2011-05-18  Bruno Haible  <bruno@clisp.org>
6752
6753         strerror_r: Avoid clobbering the strerror buffer when possible.
6754         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6755         Handle gnulib defined errno values here. When strerror() returns NULL
6756         or an empty string, return EINVAL.
6757         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6758         gnulib defined errno values here.
6759         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6760
6761 2011-05-18  Eric Blake  <eblake@redhat.com>
6762
6763         fnmatch: avoid compiler warning
6764         * lib/fnmatch_loop.c (FCT): Use correct type.
6765         Reported by Matthias Bolte.
6766
6767 2011-05-13  Jim Meyering  <meyering@redhat.com>
6768
6769         maint.mk: three new prohibit_<HDR>_without_use rules
6770         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6771         (sc_prohibit_stdio-safer_without_use): Likewise.
6772         (sc_prohibit_xfreopen_without_use): Likewise.
6773
6774 2011-05-17  Jim Meyering  <meyering@redhat.com>
6775
6776         announce-gen: fail if the NEWS delta is empty
6777         If there's nothing noteworthy in NEWS, then either you forgot
6778         or you shouldn't be releasing.
6779         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6780
6781 2011-05-17  Pádraig Brady <P@draigBrady.com>
6782
6783         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6784         reserved symbols starting with double underscore from the check.
6785
6786 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6787
6788         intprops: add doc
6789         * doc/intprops.texi: New file, documenting intprops.
6790         * doc/gnulib.texi (Particular Modules): Include it.
6791
6792         verify: add doc to gnulib manual and fix example
6793         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6794         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6795         (Compile-time Assertions): Fix example so it can't overflow.
6796
6797 2011-05-17  Jim Meyering  <meyering@redhat.com>
6798
6799         warnings.m4: don't usurp save_CPPFLAGS variable name
6800         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6801
6802         doc: fix typo
6803         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6804
6805 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6806             Bruno Haible  <bruno@clisp.org>
6807
6808         doc: Tweak recent change.
6809         * README (Portability guidelines): Tweak new text.
6810         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6811         Interix 6.1.
6812
6813 2011-05-16  Eric Blake  <eblake@redhat.com>
6814
6815         inttypes: avoid autoconf warning
6816         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6817         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6818
6819 2011-05-16  Sam Steingold <sds@gnu.org>
6820         and Eric Blake  <eblake@redhat.com>
6821
6822         vc-list-files: accept multiple directory operands
6823         * build-aux/vc-list-files: Iterate over all remaining operands.
6824
6825 2011-05-16  Bruno Haible  <bruno@clisp.org>
6826
6827         Fix confusion regarding deprecated modules.
6828         * modules/calloc (Status, Notice): Mark module as deprecated, not
6829         obsolete.
6830         * modules/fnmatch-posix (Status, Notice): Likewise.
6831         * modules/getdate (Status, Notice): Likewise.
6832         * modules/getopt (Status, Notice): Likewise.
6833         * modules/malloc (Status, Notice): Likewise.
6834         * modules/pipe (Status, Notice): Likewise.
6835         * modules/realloc (Status, Notice): Likewise.
6836         * modules/rename-dest-slash (Status, Notice): Likewise.
6837         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6838         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6839         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6840         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6841         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6842
6843 2011-05-16  Bruno Haible  <bruno@clisp.org>
6844
6845         doc: List the target platforms.
6846         * doc/gnulib-intro.texi (Target Platforms): New section.
6847         * doc/gnulib.texi (Introduction): Update menu.
6848         * README (Portability guidelines): Refer to the new section. Update
6849         statement about oldest supported environment. Remove rationale why
6850         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6851         unportable C89 function.
6852         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6853         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6854
6855 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6856
6857         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6858
6859 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6860
6861         intprops-tests: new module
6862         * modules/intprops-tests, tests/test-intprops.c: New files.
6863
6864         intprops: add safe, portable integer overflow checking
6865         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6866         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6867         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6868         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6869         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6870         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6871         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6872         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6873         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6874         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6875         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6876
6877 2011-05-12  James Youngman  <jay@gnu.org>
6878
6879         Add a test for glibc's Bugzilla bug #12378.
6880         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6881         doesn't allow the literal matching of a lone "[" (which is
6882         required by POSIX).
6883         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6884
6885 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6886
6887         Sync glibc change fixing Bugzilla bug #12378.
6888         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6889         beginning and fall back to matching as normal character if the
6890         string ends before the matching ']' is found.  This is what POSIX
6891         requires.
6892
6893 2011-05-13  Eric Blake  <eblake@redhat.com>
6894
6895         getcwd-lgpl: relax test for FreeBSD
6896         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6897         issue.
6898         * tests/test-getcwd-lgpl.c (main): Relax test.
6899         Reported by Matthias Bolte.
6900
6901 2011-05-11  Eric Blake  <eblake@redhat.com>
6902
6903         test-fflush: silence compiler warning
6904         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6905
6906 2011-05-11  Bruno Haible  <bruno@clisp.org>
6907
6908         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6909         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6910         * modules/canonicalize (Depends-on): Add 'nocrash'.
6911         * modules/canonicalize-lgpl (Depends-on): Likewise.
6912         * doc/posix-functions/realpath.texi: Update platforms list.
6913         Reported by Ryan Schmidt <ryandesign@macports.org>.
6914
6915 2011-05-11  Bruno Haible  <bruno@clisp.org>
6916
6917         group-member: Declare function in <unistd.h>.
6918         * lib/unistd.in.h (group_member): New declaration.
6919         * lib/group-member.h: Remove file.
6920         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6921         * tests/test-unistd-c++.cc: Check signature of group_member.
6922         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6923         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6924         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6925         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6926         HAVE_GROUP_MEMBER.
6927         * modules/group-member (Files): Remove lib/group-member.h.
6928         (Depends-on): Add unistd. Specify conditions.
6929         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6930         (Include): Change to <unistd.h>.
6931         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6932         HAVE_GROUP_MEMBER.
6933         * NEWS: Mention the change.
6934         * lib/euidaccess.c: Don't include group-member.h.
6935
6936 2011-05-11  Bruno Haible  <bruno@clisp.org>
6937
6938         group-member: Document module.
6939         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6940         module.
6941
6942 2011-05-11  Bruno Haible  <bruno@clisp.org>
6943
6944         fclose: Fix mistake earlier today.
6945         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6946
6947 2011-05-11  Eric Blake  <eblake@redhat.com>
6948
6949         fclose: preserve fflush errors
6950         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6951         Reported by Jim Meyering.
6952
6953         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6954         * build-aux/bootstrap (check_versions): When no specific version
6955         is required, merely check that the app produces an exit status
6956         that indicates its existence.
6957
6958         maint.mk: drop redundant check
6959         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6960         the same but better.
6961
6962 2011-05-11  Bruno Haible  <bruno@clisp.org>
6963
6964         fclose: Fix possible link error.
6965         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6966         unregister_shadow_fd. Improve comments.
6967         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6968         Eric Blake.
6969
6970 2011-05-11  Jim Meyering  <meyering@redhat.com>
6971
6972         maint.mk: improve "can not" detection and generalize rule name
6973         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6974         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6975         Use the same technique as in sc_prohibit_doubled_word, so that
6976         we recognize "can not" also when the words are separated by a newline.
6977         Suggested by Eric Blake.
6978         (perl_filename_lineno_text_): Define.  Factored out of...
6979         (prohibit_doubled_word_): ...here.  Use the new definition.
6980         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6981         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6982         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6983
6984 2011-05-10  Eric Blake  <eblake@redhat.com>
6985
6986         fclose: avoid double close race when possible
6987         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6988         all but WINDOWS_SOCKETS.
6989
6990 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6991
6992         openat: correct new comment
6993         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6994
6995 2011-05-10  Jim Meyering  <meyering@redhat.com>
6996
6997         openat: add comments
6998         * lib/openat-proc.c (openat_proc_name): Add comments,
6999         mostly from Eric Blake.
7000
7001 2011-05-09  Eric Blake  <eblake@redhat.com>
7002
7003         openat: reduce syscalls in first probe of /proc
7004         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7005         be a directory.  Simplify the probe for .. bugs.
7006         * modules/openat (Depends-on): Drop same-inode.
7007         Reported by Bastien ROUCARIES.
7008
7009 2011-05-09  Jim Meyering  <meyering@redhat.com>
7010
7011         maint.mk: change semantics/name of tight_scope variables
7012         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7013         Rename variables to align with semantics that make them more useful.
7014
7015         maint.mk: tweak new rule's name not to impinge
7016         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7017         (sc_tight_scope): Use new rule name rather than $@-0.
7018
7019         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7020         * top/maint.mk (sc_tight_scope): New rule.
7021         (sc_tight_scope-0): New rule, ifdef'd out.
7022         (_gl_TS_dir): Default.
7023         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7024         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7025
7026 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7027
7028         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7029         Haible <bruno@clisp.org>.
7030
7031 2011-05-08  Bruno Haible  <bruno@clisp.org>
7032
7033         Comments.
7034         * m4/isnanf.m4: Add comment.
7035         * m4/isnanl.m4: Likewise.
7036
7037 2011-05-08  Bruno Haible  <bruno@clisp.org>
7038
7039         glob: Remove obsolete macro.
7040         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7041
7042 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7043
7044         intprops: Sun C 5.11 supports __typeof__
7045         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7046         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7047         which is new.
7048         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7049
7050         intprops: switch to usual gnulib indenting and naming
7051         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7052         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7053
7054         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7055
7056 2011-05-08  Jim Meyering  <meyering@redhat.com>
7057
7058         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7059         * top/maint.mk (release-prep): Use make's --no-print-directory
7060         option when generating the announcement.  This eliminates the
7061         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7062         generated announcement template.
7063
7064 2011-05-08  Bruno Haible  <bruno@clisp.org>
7065
7066         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7067         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7068         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7069
7070 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7071
7072         ignore-value, verify: Omit include files from lib_SOURCES.
7073         * modules/ignore-value, modules/verify (Makefile.am):
7074         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7075         that leads Automake to duplicate use of am__objects_... variables
7076         in Makefile.in.  See
7077         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7078
7079 2011-05-07  Bruno Haible  <bruno@clisp.org>
7080
7081         fclose: Simplify autoconf macro.
7082         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7083         defined.
7084
7085 2011-05-07  Bruno Haible  <bruno@clisp.org>
7086
7087         canonicalize-lgpl: Fix autoconf macro ordering bug.
7088         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7089         gl_STDLIB_H_DEFAULTS.
7090
7091 2011-05-06  Eric Blake  <eblake@redhat.com>
7092
7093         maintainer-makefile: make sc_po_check easier to tune
7094         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7095         to probe for strings, such as an alternate location for gnulib.
7096
7097         fclose: guarantee behavior on seekable stdin
7098         * modules/fclose (Depends-on): Add fflush.
7099         * doc/posix-functions/fclose.texi (fclose): Document this.
7100         * tests/test-fclose.c (main): Make test for this unconditional.
7101
7102 2011-05-06  Bruno Haible  <bruno@clisp.org>
7103
7104         fflush, fpurge: Relicense under LGPLv2+.
7105         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7106         * modules/fpurge (License): Likewise.
7107         With permission from Eric Blake and Jim Meyering.
7108         Suggested by Eric Blake.
7109
7110 2011-05-06  Karl Berry  <karl@gnu.org>
7111
7112         * MODULES.html.sh (func_all_modules): remove exit.
7113
7114 2011-05-06  Jim Meyering  <meyering@redhat.com>
7115
7116         maint.mk: use info-gnu@ as the default only for a stable release
7117         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7118         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7119         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7120         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7121
7122 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7123
7124         assert-h: new module, which supports C1X-style static_assert
7125         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7126         * lib/verify.h: Revamp so that this can be copied into assert.h,
7127         while retaining the ability to use it standalone as before.
7128         Rename private identifiers so as not to encroach on the
7129         standard C namespace, since this is now used by assert.h.
7130         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7131         the old verify_true.
7132         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7133         the old verify_true.  Use _GL_VERIFY_TYPE.
7134         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7135         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7136         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7137         defined when this file is copied into the replacement assert.h.
7138         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7139         and _Static_assert is not built in.
7140         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7141         defined, and use the new macros mentioned above.
7142         * doc/posix-headers/assert.texi: Document this.
7143
7144 2011-05-05  Bruno Haible  <bruno@clisp.org>
7145
7146         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7147         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7148         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7149         gl_REPLACE_FCLOSE here.
7150         * modules/fflush (Depends-on): Remove fclose.
7151         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7152         combination with module 'fclose'.
7153
7154 2011-05-05  Bruno Haible  <bruno@clisp.org>
7155
7156         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7157         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7158         gl_FUNC_FFLUSH.
7159         (gl_FUNC_FFLUSH): Use it.
7160         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7161         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7162         gl_REPLACE_FSEEKO here.
7163
7164 2011-05-05  Bruno Haible  <bruno@clisp.org>
7165
7166         tzset: Relicense under LGPL.
7167         * modules/tzset (License): Change to LGPL.
7168         No agreement needed; it's a no-op.
7169
7170         strtoimax, strtoumax: Relicense under LGPL.
7171         * modules/strtoimax (License): Change to LGPL.
7172         * modules/strtoumax (License): Likewise.
7173         With permission from Jim Meyering, Paul Eggert:
7174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7176
7177         getgroups: Relicense under LGPL.
7178         * modules/getgroups (License): Change to LGPL.
7179         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7183
7184         nanosleep: Relicense under LGPL.
7185         * modules/nanosleep (License): Change to LGPL.
7186         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7187         Haible:
7188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7192
7193         futimens: Relicense under LGPL.
7194         * modules/futimens (License): Change to LGPL.
7195         With permission from Eric Blake:
7196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7197
7198         fflush: Relicense under LGPL.
7199         * modules/fflush (License): Change to LGPL.
7200         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7204
7205         tmpfile: Relicense under LGPL.
7206         * modules/tmpfile (License): Change to LGPL.
7207         With permission from Ben Pfaff:
7208         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7209
7210         isfinite: Relicense under LGPL.
7211         * modules/isfinite (License): Change to LGPL.
7212         With permission from Ben Pfaff, Bruno Haible:
7213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7214         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7215
7216         acosl..tanl: Relicense under LGPL.
7217         * modules/acosl (License): Change to LGPL.
7218         * modules/asinl (License): Likewise.
7219         * modules/atanl (License): Likewise.
7220         * modules/cosl (License): Likewise.
7221         * modules/expl (License): Likewise.
7222         * modules/logl (License): Likewise.
7223         * modules/sinl (License): Likewise.
7224         * modules/sqrtl (License): Likewise.
7225         * modules/tanl (License): Likewise.
7226         Source code originally from glibc and Paolo Bonzini. Agreements:
7227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7229
7230 2011-05-05  Bruno Haible  <bruno@clisp.org>
7231
7232         signal: Define sighandler_t.
7233         * lib/signal.in.h (sighandler_t): New type.
7234         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7235         whether sighandler_t is defined.
7236         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7237         * modules/signal (Depends-on): Add extensions.
7238         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7239         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7240         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7241
7242 2011-05-05  Eric Blake  <eblake@redhat.com>
7243
7244         maint: remove useless REPLACE_*_H macros
7245         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7246         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7247         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7248         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7249         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7250         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7251         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7252         * m4/btowc.m4: Update callers.
7253         * m4/dirfd.m4: Likewise.
7254         * m4/duplocale.m4: Likewise.
7255         * m4/fchdir.m4: Likewise.
7256         * m4/fdopendir.m4: Likewise.
7257         * m4/inet_ntop.m4: Likewise.
7258         * m4/inet_pton.m4: Likewise.
7259         * m4/ioctl.m4: Likewise.
7260         * m4/mbrlen.m4: Likewise.
7261         * m4/mbrtowc.m4: Likewise.
7262         * m4/mbsinit.m4: Likewise.
7263         * m4/mbsnrtowcs.m4: Likewise.
7264         * m4/mbsrtowcs.m4: Likewise.
7265         * m4/poll.m4: Likewise.
7266         * m4/setlocale.m4: Likewise.
7267         * m4/wcrtomb.m4: Likewise.
7268         * m4/wcsnrtombs.m4: Likewise.
7269         * m4/wcsrtombs.m4: Likewise.
7270         * m4/wctob.m4: Likewise.
7271         * m4/wcwidth.m4: Likewise.
7272         * modules/posix_spawn: Likewise.
7273         * modules/posix_spawn_file_actions_addclose: Likewise.
7274         * modules/posix_spawn_file_actions_adddup2: Likewise.
7275         * modules/posix_spawn_file_actions_addopen: Likewise.
7276         * modules/posix_spawn_file_actions_destroy: Likewise.
7277         * modules/posix_spawn_file_actions_init: Likewise.
7278         * modules/posix_spawnattr_destroy: Likewise.
7279         * modules/posix_spawnattr_getflags: Likewise.
7280         * modules/posix_spawnattr_getpgroup: Likewise.
7281         * modules/posix_spawnattr_getschedparam: Likewise.
7282         * modules/posix_spawnattr_getschedpolicy: Likewise.
7283         * modules/posix_spawnattr_getsigdefault: Likewise.
7284         * modules/posix_spawnattr_getsigmask: Likewise.
7285         * modules/posix_spawnattr_init: Likewise.
7286         * modules/posix_spawnattr_setflags: Likewise.
7287         * modules/posix_spawnattr_setpgroup: Likewise.
7288         * modules/posix_spawnattr_setschedparam: Likewise.
7289         * modules/posix_spawnattr_setschedpolicy: Likewise.
7290         * modules/posix_spawnattr_setsigdefault: Likewise.
7291         * modules/posix_spawnattr_setsigmask: Likewise.
7292         * modules/posix_spawnp: Likewise.
7293
7294 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7295
7296         Add option to do-release-commit-and-tag to specify branch.
7297         * build-aux/do-release-commit-and-tag: Add --branch.
7298
7299 2011-05-03  Bruno Haible  <bruno@clisp.org>
7300
7301         Avoid unnecessary compilation units, through conditional dependencies.
7302         * modules/accept (Depends-on): Add conditions to the dependencies.
7303         * modules/acosl (Depends-on): Likewise.
7304         * modules/argz (Depends-on): Likewise.
7305         * modules/asinl (Depends-on): Likewise.
7306         * modules/atanl (Depends-on): Likewise.
7307         * modules/atoll (Depends-on): Likewise.
7308         * modules/bind (Depends-on): Likewise.
7309         * modules/btowc (Depends-on): Likewise.
7310         * modules/canonicalize-lgpl (Depends-on): Likewise.
7311         * modules/ceil (Depends-on): Likewise.
7312         * modules/ceilf (Depends-on): Likewise.
7313         * modules/ceill (Depends-on): Likewise.
7314         * modules/chdir-long (Depends-on): Likewise.
7315         * modules/chown (Depends-on): Likewise.
7316         * modules/close (Depends-on): Likewise.
7317         * modules/connect (Depends-on): Likewise.
7318         * modules/cosl (Depends-on): Likewise.
7319         * modules/dirfd (Depends-on): Likewise.
7320         * modules/dprintf (Depends-on): Likewise.
7321         * modules/dprintf-posix (Depends-on): Likewise.
7322         * modules/error (Depends-on): Likewise.
7323         * modules/euidaccess (Depends-on): Likewise.
7324         * modules/expl (Depends-on): Likewise.
7325         * modules/faccessat (Depends-on): Likewise.
7326         * modules/fchdir (Depends-on): Likewise.
7327         * modules/fclose (Depends-on): Likewise.
7328         * modules/fcntl (Depends-on): Likewise.
7329         * modules/fdopendir (Depends-on): Likewise.
7330         * modules/fflush (Depends-on): Likewise.
7331         * modules/floor (Depends-on): Likewise.
7332         * modules/floorf (Depends-on): Likewise.
7333         * modules/floorl (Depends-on): Likewise.
7334         * modules/fnmatch (Depends-on): Likewise.
7335         * modules/fopen (Depends-on): Likewise.
7336         * modules/fprintf-posix (Depends-on): Likewise.
7337         * modules/frexp (Depends-on): Likewise.
7338         * modules/frexp-nolibm (Depends-on): Likewise.
7339         * modules/frexpl (Depends-on): Likewise.
7340         * modules/frexpl-nolibm (Depends-on): Likewise.
7341         * modules/fseek (Depends-on): Likewise.
7342         * modules/fsusage (Depends-on): Likewise.
7343         * modules/ftell (Depends-on): Likewise.
7344         * modules/ftello (Depends-on): Likewise.
7345         * modules/futimens (Depends-on): Likewise.
7346         * modules/getcwd (Depends-on): Likewise.
7347         * modules/getcwd-lgpl (Depends-on): Likewise.
7348         * modules/getdelim (Depends-on): Likewise.
7349         * modules/getdomainname (Depends-on): Likewise.
7350         * modules/getgroups (Depends-on): Likewise.
7351         * modules/gethostname (Depends-on): Likewise.
7352         * modules/getline (Depends-on): Likewise.
7353         * modules/getlogin_r (Depends-on): Likewise.
7354         * modules/getopt-posix (Depends-on): Likewise.
7355         * modules/getpeername (Depends-on): Likewise.
7356         * modules/getsockname (Depends-on): Likewise.
7357         * modules/getsockopt (Depends-on): Likewise.
7358         * modules/getsubopt (Depends-on): Likewise.
7359         * modules/getusershell (Depends-on): Likewise.
7360         * modules/glob (Depends-on): Likewise.
7361         * modules/grantpt (Depends-on): Likewise.
7362         * modules/iconv_open (Depends-on): Likewise.
7363         * modules/iconv_open-utf (Depends-on): Likewise.
7364         * modules/inet_ntop (Depends-on): Likewise.
7365         * modules/inet_pton (Depends-on): Likewise.
7366         * modules/ioctl (Depends-on): Likewise.
7367         * modules/isapipe (Depends-on): Likewise.
7368         * modules/isfinite (Depends-on): Likewise.
7369         * modules/isinf (Depends-on): Likewise.
7370         * modules/lchown (Depends-on): Likewise.
7371         * modules/ldexpl (Depends-on): Likewise.
7372         * modules/link (Depends-on): Likewise.
7373         * modules/linkat (Depends-on): Likewise.
7374         * modules/listen (Depends-on): Likewise.
7375         * modules/logl (Depends-on): Likewise.
7376         * modules/lstat (Depends-on): Likewise.
7377         * modules/mbrlen (Depends-on): Likewise.
7378         * modules/mbrtowc (Depends-on): Likewise.
7379         * modules/mbsinit (Depends-on): Likewise.
7380         * modules/mbsnrtowcs (Depends-on): Likewise.
7381         * modules/mbsrtowcs (Depends-on): Likewise.
7382         * modules/mbtowc (Depends-on): Likewise.
7383         * modules/memcmp (Depends-on): Likewise.
7384         * modules/mkdir (Depends-on): Likewise.
7385         * modules/mkdtemp (Depends-on): Likewise.
7386         * modules/mkfifo (Depends-on): Likewise.
7387         * modules/mkfifoat (Depends-on): Likewise.
7388         * modules/mknod (Depends-on): Likewise.
7389         * modules/mkostemp (Depends-on): Likewise.
7390         * modules/mkostemps (Depends-on): Likewise.
7391         * modules/mkstemp (Depends-on): Likewise.
7392         * modules/mkstemps (Depends-on): Likewise.
7393         * modules/mktime (Depends-on): Likewise.
7394         * modules/nanosleep (Depends-on): Likewise.
7395         * modules/open (Depends-on): Likewise.
7396         * modules/openat (Depends-on): Likewise.
7397         * modules/perror (Depends-on): Likewise.
7398         * modules/poll (Depends-on): Likewise.
7399         * modules/popen (Depends-on): Likewise.
7400         * modules/posix_spawn (Depends-on): Likewise.
7401         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7402         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7403         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7404         * modules/posix_spawnp (Depends-on): Likewise.
7405         * modules/pread (Depends-on): Likewise.
7406         * modules/printf-posix (Depends-on): Likewise.
7407         * modules/ptsname (Depends-on): Likewise.
7408         * modules/putenv (Depends-on): Likewise.
7409         * modules/pwrite (Depends-on): Likewise.
7410         * modules/readline (Depends-on): Likewise.
7411         * modules/readlink (Depends-on): Likewise.
7412         * modules/readlinkat (Depends-on): Likewise.
7413         * modules/recv (Depends-on): Likewise.
7414         * modules/recvfrom (Depends-on): Likewise.
7415         * modules/regex (Depends-on): Likewise.
7416         * modules/remove (Depends-on): Likewise.
7417         * modules/rename (Depends-on): Likewise.
7418         * modules/renameat (Depends-on): Likewise.
7419         * modules/rmdir (Depends-on): Likewise.
7420         * modules/round (Depends-on): Likewise.
7421         * modules/roundf (Depends-on): Likewise.
7422         * modules/roundl (Depends-on): Likewise.
7423         * modules/rpmatch (Depends-on): Likewise.
7424         * modules/select (Depends-on): Likewise.
7425         * modules/send (Depends-on): Likewise.
7426         * modules/sendto (Depends-on): Likewise.
7427         * modules/setenv (Depends-on): Likewise.
7428         * modules/setlocale (Depends-on): Likewise.
7429         * modules/setsockopt (Depends-on): Likewise.
7430         * modules/shutdown (Depends-on): Likewise.
7431         * modules/sigaction (Depends-on): Likewise.
7432         * modules/signbit (Depends-on): Likewise.
7433         * modules/sigprocmask (Depends-on): Likewise.
7434         * modules/sinl (Depends-on): Likewise.
7435         * modules/sleep (Depends-on): Likewise.
7436         * modules/snprintf (Depends-on): Likewise.
7437         * modules/snprintf-posix (Depends-on): Likewise.
7438         * modules/socket (Depends-on): Likewise.
7439         * modules/sprintf-posix (Depends-on): Likewise.
7440         * modules/sqrtl (Depends-on): Likewise.
7441         * modules/stat (Depends-on): Likewise.
7442         * modules/strchrnul (Depends-on): Likewise.
7443         * modules/strdup-posix (Depends-on): Likewise.
7444         * modules/strerror (Depends-on): Likewise.
7445         * modules/strerror_r-posix (Depends-on): Likewise.
7446         * modules/strndup (Depends-on): Likewise.
7447         * modules/strnlen (Depends-on): Likewise.
7448         * modules/strptime (Depends-on): Likewise.
7449         * modules/strsep (Depends-on): Likewise.
7450         * modules/strsignal (Depends-on): Likewise.
7451         * modules/strstr-simple (Depends-on): Likewise.
7452         * modules/strtod (Depends-on): Likewise.
7453         * modules/strtoimax (Depends-on): Likewise.
7454         * modules/strtok_r (Depends-on): Likewise.
7455         * modules/strtoumax (Depends-on): Likewise.
7456         * modules/symlink (Depends-on): Likewise.
7457         * modules/symlinkat (Depends-on): Likewise.
7458         * modules/tanl (Depends-on): Likewise.
7459         * modules/tcgetsid (Depends-on): Likewise.
7460         * modules/tmpfile (Depends-on): Likewise.
7461         * modules/trunc (Depends-on): Likewise.
7462         * modules/truncf (Depends-on): Likewise.
7463         * modules/truncl (Depends-on): Likewise.
7464         * modules/uname (Depends-on): Likewise.
7465         * modules/unlink (Depends-on): Likewise.
7466         * modules/unlockpt (Depends-on): Likewise.
7467         * modules/unsetenv (Depends-on): Likewise.
7468         * modules/usleep (Depends-on): Likewise.
7469         * modules/utimensat (Depends-on): Likewise.
7470         * modules/vasprintf (Depends-on): Likewise.
7471         * modules/vdprintf (Depends-on): Likewise.
7472         * modules/vdprintf-posix (Depends-on): Likewise.
7473         * modules/vfprintf-posix (Depends-on): Likewise.
7474         * modules/vprintf-posix (Depends-on): Likewise.
7475         * modules/vsnprintf (Depends-on): Likewise.
7476         * modules/vsnprintf-posix (Depends-on): Likewise.
7477         * modules/vsprintf-posix (Depends-on): Likewise.
7478         * modules/wcrtomb (Depends-on): Likewise.
7479         * modules/wcscasecmp (Depends-on): Likewise.
7480         * modules/wcscspn (Depends-on): Likewise.
7481         * modules/wcsdup (Depends-on): Likewise.
7482         * modules/wcsncasecmp (Depends-on): Likewise.
7483         * modules/wcsnrtombs (Depends-on): Likewise.
7484         * modules/wcspbrk (Depends-on): Likewise.
7485         * modules/wcsrtombs (Depends-on): Likewise.
7486         * modules/wcsspn (Depends-on): Likewise.
7487         * modules/wcsstr (Depends-on): Likewise.
7488         * modules/wcstok (Depends-on): Likewise.
7489         * modules/wcswidth (Depends-on): Likewise.
7490         * modules/wctob (Depends-on): Likewise.
7491         * modules/wctomb (Depends-on): Likewise.
7492         * modules/wctype (Depends-on): Likewise.
7493         * modules/wcwidth (Depends-on): Likewise.
7494         * modules/write (Depends-on): Likewise.
7495
7496 2011-05-03  Bruno Haible  <bruno@clisp.org>
7497
7498         Support for conditional dependencies.
7499         * doc/gnulib.texi (Module description): Document the syntax of
7500         conditional dependencies.
7501         * gnulib-tool: New option --conditional-dependencies.
7502         (func_usage): Document it.
7503         (cond_dependencies): New variable.
7504         (func_get_automake_snippet_conditional,
7505         func_get_automake_snippet_unconditional): New functions, extracted from
7506         func_get_automake_snippet.
7507         (func_get_automake_snippet): Use them.
7508         (sed_first_32_chars): New variable.
7509         (func_module_shellfunc_name): New function.
7510         (func_module_shellvar_name): New function.
7511         (func_module_conditional_name): New function.
7512         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7513         func_cond_module_condition): New functions.
7514         (func_modules_transitive_closure): Add support for conditional
7515         dependencies.
7516         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7517         conditional automake snippet in an automake conditional.
7518         (func_emit_autoconf_snippets): Emit shell functions that contain the
7519         code for conditional modules.
7520         (func_import, func_create_testdir): Update specification.
7521
7522 2011-05-03  Eric Blake  <eblake@redhat.com>
7523
7524         test-getaddrinfo: report error information
7525         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7526
7527 2011-05-03  Jim Meyering  <meyering@redhat.com>
7528
7529         bootstrap: avoid build failure when $GZIP is set
7530         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7531         program name.  If defined at all, it is supposed to list gzip options.
7532         Reported by Alan Curry in http://debbugs.gnu.org/8609
7533
7534 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7535
7536         readme-release: new module with release instructions
7537         * modules/readme-release: New module.
7538         * top/README-release: New file, from coreutils, grep, diffutils.
7539         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7540
7541 2011-05-02  Eric Blake  <eblake@redhat.com>
7542
7543         fflush: also replace fclose when fixing fflush
7544         * modules/fflush (Depends-on): Add fclose.
7545         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7546         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7547         memstreams with no backing fd.
7548         * doc/posix-functions/fclose.texi (fclose): Document the use of
7549         fflush module to fix the bug.
7550         * tests/test-fclose.c (main): Relax test when fclose is used in
7551         isolation.
7552
7553         fclose: add some tests
7554         * modules/fclose-tests: New test module.
7555         * tests/test-fclose.c: New file.
7556         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7557
7558         fclose: reduced dependencies
7559         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7560         simpler lseek.
7561         * lib/fclose.c (rpl_fclose): Likewise.
7562         Reported by Simon Josefsson.
7563
7564         exit: drop remaining clients
7565         * modules/argmatch (Depends-on): Replace exit with stdlib.
7566         * modules/copy-file (Depends-on): Likewise.
7567         * modules/execute (Depends-on): Likewise.
7568         * modules/exitfail (Depends-on): Likewise.
7569         * modules/obstack (Depends-on): Likewise.
7570         * modules/pagealign_alloc (Depends-on): Likewise.
7571         * modules/pipe-filter-gi (Depends-on): Likewise.
7572         * modules/pipe-filter-ii (Depends-on): Likewise.
7573         * modules/savewd (Depends-on): Likewise.
7574         * modules/spawn-pipe (Depends-on): Likewise.
7575         * modules/wait-process (Depends-on): Likewise.
7576         * modules/xsetenv (Depends-on): Likewise.
7577         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7578         * modules/git-merge-changelog (Depends-on): Likewise.
7579         * modules/long-options (Depends-on): Likewise.
7580         * modules/pt_chown (Depends-on): Likewise.
7581         * modules/sysexits (Depends-on): Likewise.
7582
7583         freading: relax license from LGPLv3+ to LGPLv2+
7584         * modules/freading (License): Relax LGPL version.
7585
7586 2011-05-02  Bruno Haible  <bruno@clisp.org>
7587
7588         fchdir: Remove unused dependencies.
7589         * modules/fchdir (Depends-on): Remove include_next.
7590
7591 2011-05-02  Bruno Haible  <bruno@clisp.org>
7592
7593         gnulib-tool: Refactor.
7594         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7595         from func_emit_autoconf_snippets.
7596         (func_emit_autoconf_snippets): Use it.
7597
7598 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7599
7600         * NEWS: Document removal of 'exit'.
7601         * modules/exit: Remove file.
7602
7603 2011-05-01  Bruno Haible  <bruno@clisp.org>
7604
7605         Update DEPENDENCIES.
7606         * DEPENDENCIES (gettext): Recommend the newest release.
7607         Reported by Simon Josefsson.
7608
7609 2011-05-01  Bruno Haible  <bruno@clisp.org>
7610
7611         gnulib-tool: Reduce code duplication.
7612         * gnulib-tool (func_emit_autoconf_snippets): New function.
7613         (func_import, func_create_testdir): Use it.
7614
7615 2011-04-30  Eric Blake  <eblake@redhat.com>
7616
7617         fclose: don't fail on non-seekable input stream
7618         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7619         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7620         since fflush is allowed to fail in that case.
7621
7622 2011-04-30  Bruno Haible  <bruno@clisp.org>
7623
7624         dup3: cleanup
7625         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7626
7627 2011-04-30  Bruno Haible  <bruno@clisp.org>
7628
7629         netdb: Make it work in C++ mode.
7630         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7631         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7632         module.
7633         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7634         gl_MODULE_INDICATOR_FOR_TESTS.
7635         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7636         * modules/netdb-c++-tests: New file.
7637         * tests/test-netdb-c++.cc: New file.
7638
7639 2011-04-30  Bruno Haible  <bruno@clisp.org>
7640
7641         New modules 'vfscanf', 'vscanf'.
7642         * modules/vfscanf: New file.
7643         * modules/vscanf: New file.
7644         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7645         here.
7646         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7647         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7648
7649 2011-04-30  Bruno Haible  <bruno@clisp.org>
7650
7651         passfd: Add comments.
7652         * lib/passfd.c: Add comments about platforms.
7653
7654 2011-04-30  Bruno Haible  <bruno@clisp.org>
7655
7656         sys_uio: Make <sys/uio.h> self-contained.
7657         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7658         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7659
7660 2011-04-30  Bruno Haible  <bruno@clisp.org>
7661
7662         sys_socket: Ensure 'struct iovec' definition.
7663         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7664         <sys/socket.h>.
7665         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7666
7667 2011-04-30  Bruno Haible  <bruno@clisp.org>
7668
7669         sys_uio: Protect definition of 'struct iovec'.
7670         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7671         it as a C struct.
7672
7673 2011-04-30  Bruno Haible  <bruno@clisp.org>
7674
7675         manywarnings: fix indentation
7676         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7677
7678 2011-04-30  Pádraig Brady <P@draigBrady.com>
7679
7680         manywarnings: add -Wno-missing-field-initializers if needed.
7681         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7682         option if it's needed to allow initialization with { 0, }
7683
7684 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7685
7686         announce-gen: cosmetic improvement
7687         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7688
7689 2011-04-29  Jim Meyering  <meyering@redhat.com>
7690
7691         vc-list-files: indent with spaces, not TABs
7692         * build-aux/vc-list-files: Convert leading TABs to spaces,
7693         to match the style of most other files in gnulib.
7694
7695         announce-gen: indent with spaces, not TABs
7696         * build-aux/announce-gen: Convert all TABs to spaces, to match
7697         the style of most other files in gnulib.
7698
7699 2011-04-29  Eric Blake  <eblake@redhat.com>
7700
7701         quotearg: avoid uninitialized variable use
7702         * lib/quotearg.c (quoting_options_from_style): Initialize
7703         remaining fields, and ensure that custom styles are only used via
7704         quoting_options rather than quoting_style.
7705
7706 2011-04-29  Jim Meyering  <meyering@redhat.com>
7707
7708         maint.mk: remove unused VC-tag variable
7709         * top/maint.mk (VC-tag): Remove unused variable.
7710
7711 2011-04-29  Bruno Haible  <bruno@clisp.org>
7712
7713         netdb: fix gai_strerror replacements
7714         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7715         * modules/netdb: Substitute it.
7716
7717 2011-04-29  Jim Meyering  <meyering@redhat.com>
7718
7719         test-getcwd.c: avoid new set-but-not-used warning
7720         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7721         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7722         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7723         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7724
7725         test-hash.c: avoid a new shadowing warning
7726         * tests/test-hash.c (main): Don't shadow "dup".
7727
7728 2011-04-28  Eric Blake  <eblake@redhat.com>
7729
7730         getaddrinfo: fix gai_strerror signature
7731         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7732         and work around mingw with UNICODE defined.
7733         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7734         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7735         * modules/netdb (Makefile.am): Substitute it.
7736         * lib/netdb.in.h (gai_strerror): Declare replacement.
7737         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7738         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7739         the fix.
7740
7741         getsockopt: avoid compiler warning
7742         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7743         Reported by Matthias Bolte.
7744
7745         tests: drop unused link dependency
7746         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7747         * modules/dirent-safer-tests (Makefile.am): Likewise.
7748         * modules/fdopendir-tests (Makefile.am): Likewise.
7749         * modules/mkfifoat-tests (Makefile.am): Likewise.
7750         * modules/openat-safer-tests (Makefile.am): Likewise.
7751         * modules/openat-tests (Makefile.am): Likewise.
7752         * modules/readlinkat-tests (Makefile.am): Likewise.
7753         * modules/symlinkat-tests (Makefile.am): Likewise.
7754         * modules/linkat-tests (Makefile.am): Likewise.
7755         (Depends-on): Switch to filenamecat-lgpl.
7756         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7757         LIBINTL.
7758         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7759         * tests/test-linkat.c (main): Don't require xalloc.
7760
7761         hash, mgetgroups: drop xalloc dependency
7762         * lib/hash.c (includes): Adjust includes.
7763         * lib/mgetgroups.c (includes): Likewise.
7764         (xgetgroups): Move...
7765         * lib/xgetgroups.c: ...to new file.
7766         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7767         * modules/xgetgroups: New file, split from...
7768         * modules/mgetgroups: ...here.
7769         (Depends-on): Add xalloc-oversized.
7770         * modules/hash (Depends-on): Likewise.
7771         * modules/hash-tests (Depends-on): Drop xalloc.
7772         (test_hash_LDADD): Drop unused library.
7773         * tests/test-hash.c (main): Break xalloc dependency.
7774         (includes): Drop unused include.
7775
7776         xalloc-oversized: new module
7777         * modules/xalloc-oversized: New module.
7778         * modules/xalloc (Depends-on): Add it.
7779         * lib/xalloc.h (xalloc_oversized): Move...
7780         * lib/xalloc-oversized.h: ...into new file.
7781
7782         utimecmp: drop dependency on xmalloc
7783         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7784         due to memory pressure.
7785         * modules/utimecmp (Depends-on): Drop xalloc.
7786
7787 2011-04-27  Eric Blake  <eblake@redhat.com>
7788
7789         getcwd: fix mingw bugs
7790         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7791         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7792         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7793
7794 2011-04-27  Bruno Haible  <bruno@clisp.org>
7795
7796         mkstemps: Ensure declaration on MacOS X 10.5.
7797         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7798         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7799         MacOS X.
7800
7801 2011-04-27  Bruno Haible  <bruno@clisp.org>
7802
7803         mkstemp: More documentation.
7804         * doc/posix-functions/mkstemp.texi: Document header file problem on
7805         MacOS X.
7806
7807 2011-04-27  Bruno Haible  <bruno@clisp.org>
7808
7809         mkstemp: Tweak configure message when cross-compiling.
7810         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7811         result as a guess.
7812
7813 2011-04-27  Bruno Haible  <bruno@clisp.org>
7814
7815         clean-temp: Clarify what it does.
7816         * lib/clean-temp.h: Add more comments.
7817         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7818         module.
7819         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7820         * doc/glibc-functions/mkstemps.texi: Likewise.
7821         * doc/glibc-functions/mkostemps.texi: Likewise.
7822
7823 2011-04-27  Eric Blake  <eblake@redhat.com>
7824
7825         fchdir: avoid extra chdir and fix test
7826         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7827         getcwd-lgpl.
7828         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7829         have to be canonical.
7830         (canonicalize_file_name): Drop unused macro.
7831         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7832
7833         filenamecat-lgpl: fix licence
7834         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7835         when it was first created.
7836
7837         linkat, renameat: add missing dependency
7838         * modules/linkat (Depends-on): Require getcwd-lgpl.
7839         * modules/renameat (Depends-on): Likewise.
7840
7841         tests: reduce dependencies
7842         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7843         * tests/test-renameat.c (main): Likewise.
7844         * modules/linkat-tests (Depends-on): Relax dependency.
7845         * modules/renameat-tests (Depends-on): Likewise.
7846         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7847         dependency explicit.
7848
7849         save-cwd: reduce default dependency
7850         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7851         * lib/save-cwd.c: Update comments.
7852         * NEWS: Document the semantic change.
7853
7854         getcwd: enhance tests
7855         * tests/test-getcwd-lgpl.c: New file, taken from...
7856         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7857         repeat long path stress tests from m4 probe.
7858         * modules/getcwd-lgpl-tests: New module.
7859         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7860         * m4/getcwd-abort-bug.m4: Update comment.
7861         * m4/getcwd-path-max.m4: Likewise.
7862
7863         getcwd-lgpl: new module
7864         * modules/getcwd-lgpl: New module.
7865         * lib/getcwd-lgpl.c: New file.
7866         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7867         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7868         * modules/getcwd (configure.ac): Set C witness.
7869         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7870
7871         getcwd: tweak comments
7872         * m4/getcwd-abort-bug.m4: Fix comments.
7873         * m4/getcwd-path-max.m4: Likewise.
7874         * m4/getcwd.m4: Likewise.
7875
7876 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7877         and Eric Blake  <eblake@redhat.com>
7878
7879         mkstemp: replace if system version uses wrong permissions
7880         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7881         read/write mode bits set in file created by mkstemp.
7882         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7883
7884 2011-04-27  Eric Blake  <eblake@redhat.com>
7885
7886         passfd: avoid compiler warning
7887         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7888         Reported by Laine Stump.
7889
7890 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7891
7892         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7893         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7894
7895 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7896         and Eric Blake  <eblake@redhat.com>
7897
7898         mkstemp: mention clean-temp module
7899         * lib/mkstemp.c: Add comment.
7900         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7901
7902 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7903
7904         inttypes: also provide default values for 32-bit tests
7905         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7906         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7907
7908 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7909
7910         strtoumax: remove dependency on strtoimax
7911         This is like the strtoull change of yesterday.
7912         * modules/strtoumax (Files): Add lib/strtoimax.c.
7913         (Depends-on): Remove strtoimax and add verify.
7914
7915         inttypes-incomplete: new module
7916         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7917         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7918         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7919         of gl_INTTYPES_H.
7920         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7921         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7922         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7923         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7924         * modules/strtoumax, modules/xstrtol (Depends-on):
7925         Depend on inttypes-incomplete, not inttypes.
7926         * modules/inttypes-incomplete: New module, containing the contents
7927         of the old modules/inttypes module, except that the Files: section
7928         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7929         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7930         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7931         (Depends-on): Depend only on inttypes-incomplete.
7932         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7933
7934         inttypes: omit now-redundant strtoimax and strtoumax work
7935         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7936         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7937
7938         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7939         This supports apps that need pointers to strtoimax and strtoumax,
7940         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7941         nonexistent functions.  See
7942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7943         et seq.
7944         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7945         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7946         a macro.
7947         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7948
7949 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7950
7951         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7952
7953 2011-04-25  Bruno Haible  <bruno@clisp.org>
7954
7955         strtol, strtoul: Mark modules as obsolete.
7956         * modules/strtol (Status, Notice): New sections.
7957         * modules/strtoul (Status, Notice): New sections.
7958
7959 2011-04-25  Bruno Haible  <bruno@clisp.org>
7960
7961         strtod: Remove check for strtod, unless supporting old platforms.
7962         * modules/strtod-obsolete: New file.
7963         * m4/strtod-obsolete.m4: New file.
7964         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7965         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7966         * modules/strtod (Depends-on): Add strtod-obsolete.
7967         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7968
7969 2011-04-25  Bruno Haible  <bruno@clisp.org>
7970
7971         strcase: Make module obsolete.
7972         * modules/strcase (Status, Notice): New sections.
7973
7974 2011-04-25  Bruno Haible  <bruno@clisp.org>
7975
7976         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7977         * modules/dup2-obsolete: New file.
7978         * m4/dup2-obsolete.m4: New file.
7979         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7980         gl_FUNC_DUP2_OBSOLETE is not also defined.
7981         * modules/dup2 (Depends-on): Add dup2-obsolete.
7982         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7983
7984 2011-04-25  Bruno Haible  <bruno@clisp.org>
7985
7986         strnlen: Avoid memchr related link error on old obsolete platforms.
7987         * modules/memchr-obsolete: New file.
7988         * m4/memchr-obsolete.m4: New file.
7989         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7990         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7991         * modules/memchr (Depends-on): Add memchr-obsolete.
7992         * modules/strnlen (Depends-on): Likewise.
7993         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7994
7995 2011-04-25  Jim Meyering  <meyering@redhat.com>
7996
7997         maint.mk: makefile_at_at_check extend and clean up
7998         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7999         in addition to */Makefile.am.
8000         Exempt legitimate uses of @VAR@ notation, e.g.,
8001         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8002         Remove obsolete coreutils-specific comment.
8003         Prompted by discussion here:
8004         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8005
8006 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8007
8008         strtoul: remove dependency on strtol
8009         This is so that 'configure' need not check for strtol merely because
8010         the application needs strtoul.
8011         * modules/strtoul (Files): Add lib/strtol.c.
8012         (Depends-on): Remove strtol.
8013
8014         strtoull: remove dependency on strtoul
8015         This is like the strtoll change.
8016         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8017         (Depends-on): Remove strtoul.
8018
8019         strtoll: remove dependency on strtol
8020         This is so that 'configure' need not check for strtol merely because
8021         the application needs strtoll.
8022         * modules/strtoll (Files): Add lib/strtol.c.
8023         (Depends-on): Remove strtol.
8024
8025 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8026
8027         inttypes: Move some configure check to module 'imaxdiv'.
8028         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8029         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8030         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8031
8032 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8033
8034         inttypes: Move some configure check to module 'imaxabs'.
8035         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8036         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8037         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8038
8039 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8040
8041         inttypes: Remove configure tests that are not needed since 2009-12-31.
8042         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8043         gl_cv_header_working_inttypes_h.
8044
8045 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8046
8047         * modules/strnlen (Depends-on): Remove memchr.
8048         The strnlen implementation doesn't need the memchr module's fixes; see
8049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8050
8051         strtol: remove dependency on wchar
8052         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8053         * modules/strtol (Depends-on): Remove wchar.
8054
8055 2011-04-21  Eric Blake  <eblake@redhat.com>
8056
8057         passfd: fix test regression on Linux
8058         * modules/passfd-tests (configure.ac): Correct socketpair check.
8059
8060         passfd: speed up configure and drop unused code
8061         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8062         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8063         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8064         Instead of probing at configure for unix_scm_rights_bsd44_way,
8065         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8066         check to a struct member probe.
8067         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8068         (sendfd, recvfd): Update preprocessor checks.
8069         * modules/passfd (Files): Reflect rename, and drop unused file.
8070         (Depends-on): Drop unused dependency.
8071
8072         passfd: allow compilation on mingw
8073         * modules/sys_socket (Depends-on): Add sys_uio.
8074         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8075         iovec and a minimal struct msghdr.
8076         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8077         * tests/test-sys_socket.c (main): Enhance test.
8078         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8079         guaranteed to provide what we need.
8080         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8081         * modules/passfd-tests (Depends-on): Add sys_wait.
8082         * tests/test-passfd.c (main): Skip test on mingw, for now.
8083         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8084         partial 'struct msghdr' implementation.
8085
8086         sys_uio: new module
8087         * modules/sys_uio: New module.
8088         * modules/sys_uio-tests: Likewise.
8089         * lib/sys_uio.in.h: New file.
8090         * m4/sys_uio_h.m4: Likewise.
8091         * tests/test-sys_uio.c: Likewise.
8092         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8093         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8094
8095 2011-04-20  Jim Meyering  <meyering@redhat.com>
8096
8097         useless-if-before-free: avoid false-positive
8098         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8099         disjunct so that it too requires a terminating ";".  Without that,
8100         this script would identify as useless one statement from gcc that
8101         was not:
8102           if (aligned_ptr)
8103             free (((void **) aligned_ptr) [-1]);
8104
8105 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8106
8107         doc: update users.txt.
8108         * users.txt: Add barcode.
8109
8110 2011-04-19  Bruno Haible  <bruno@clisp.org>
8111
8112         ioctl: Remove link dependency on native Windows.
8113         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8114         (gl_close_fn, gl_ioctl_fn): New types.
8115         (struct fd_hook): Renamed from struct close_hook. Change type of
8116         private_close_fn field. Add private_ioctl_fn field.
8117         (close_hook_fn): Add parameter for primary close method.
8118         (execute_close_hooks, execute_all_close_hooks): Likewise.
8119         (ioctl_hook_fn): New type.
8120         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8121         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8122         argument.
8123         (unregister_fd_hook): Renamed from unregister_close_hook.
8124         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8125         Don't include <unistd.h>.
8126         (close): Remove undef.
8127         (anchor): Update.
8128         (execute_close_hooks): Add argument for primary close method.
8129         (execute_all_close_hooks): Likewise.
8130         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8131         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8132         argument. Allow each argument to be NULL.
8133         (unregister_fd_hook): Renamed from unregister_close_hook.
8134         * lib/close.c (rpl_close): Pass 'close' function pointer to
8135         execute_all_close_hooks.
8136         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8137         (primary_ioctl): New function.
8138         (ioctl): Don't call ioctlsocket here. Instead, call
8139         execute_all_ioctl_hooks.
8140         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8141         close method.
8142         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8143         (fd_sockets_hook): Renamed from close_sockets_hook.
8144         (gl_sockets_startup, gl_sockets_cleanup): Update.
8145         * modules/fd-hook: Renamed from modules/close-hook. Update.
8146         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8147         * modules/sockets (Depends-on): Likewise.
8148         * modules/ioctl (Depends-on): Add fd-hook.
8149         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8150         GNULIB_SOCKET.
8151
8152 2011-04-19  Bruno Haible  <bruno@clisp.org>
8153
8154         Move the support of O_NONBLOCK in open() to the 'open' module.
8155         * modules/nonblocking (Depends-on): Remove 'open'.
8156         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8157         gl_cv_have_open_O_NONBLOCK.
8158         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8159         O_NONBLOCK support.
8160         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8161
8162 2011-04-17  Bruno Haible  <bruno@clisp.org>
8163
8164         pipe2: Simplify code.
8165         * lib/pipe2.c (pipe2): Reduce code duplication.
8166
8167 2011-04-17  Bruno Haible  <bruno@clisp.org>
8168
8169         nonblocking: Add comment.
8170         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8171
8172 2011-04-17  Bruno Haible  <bruno@clisp.org>
8173
8174         nonblocking: Add tests for sockets.
8175         * tests/test-nonblocking-socket.sh: New file.
8176         * tests/test-nonblocking-socket-main.c: New file.
8177         * tests/test-nonblocking-socket-child.c: New file.
8178         * tests/test-nonblocking-socket.h: New file.
8179         * tests/socket-server.h: New file.
8180         * tests/socket-client.h: New file.
8181         * modules/nonblocking-socket-tests: New file.
8182         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8183
8184 2011-04-17  Bruno Haible  <bruno@clisp.org>
8185
8186         nonblocking: Add tests for pipes.
8187         * tests/test-nonblocking-pipe.sh: New file.
8188         * tests/test-nonblocking-pipe-main.c: New file.
8189         * tests/test-nonblocking-pipe-child.c: New file.
8190         * tests/test-nonblocking-pipe.h: New file.
8191         * tests/test-nonblocking-writer.h: New file.
8192         * tests/test-nonblocking-reader.h: New file.
8193         * tests/test-nonblocking-misc.h: New file.
8194         * modules/nonblocking-pipe-tests: New file.
8195         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8196
8197 2011-04-16  Bruno Haible  <bruno@clisp.org>
8198
8199         gettext: Clarify the needed programmer actions.
8200         * modules/gettext (Notice): New field.
8201         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8202
8203 2011-04-16  Bruno Haible  <bruno@clisp.org>
8204
8205         strchrnul: Tweak last commit.
8206         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8207         bug.
8208         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8209         as in _GL_FUNCDECL_SYS.
8210         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8211         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8212
8213 2011-04-15  Eric Blake  <eblake@redhat.com>
8214
8215         strchrnul: work around cygwin bug
8216         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8217         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8219         * modules/string (Makefile.am): Substitute it.
8220         * lib/string.in.h (strchrnul): Use it.
8221
8222 2011-04-15  Bruno Haible  <bruno@clisp.org>
8223
8224         Don't require lib/stdio-write.c when only module 'stdio' is used.
8225         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8226         invocation.
8227         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8228
8229 2011-04-14  Bruno Haible  <bruno@clisp.org>
8230
8231         Support non-blocking pipe I/O in read() on native Windows.
8232         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8233         (read): New declaration.
8234         * lib/read.c: New file.
8235         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8236         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8237         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8238         vscanf): New declarations.
8239         * lib/stdio-read.c: New file.
8240         * m4/read.m4: New file.
8241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8242         REPLACE_READ.
8243         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8244         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8245         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8246         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8247         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8248         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8249         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8250         * modules/read: New file.
8251         * modules/nonblocking (Files): Add lib/stdio-read.c.
8252         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8253         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8254         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8255         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8256         * modules/pread (Depends-on): Add read.
8257         * modules/safe-read (Depends-on): Likewise.
8258         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8259         gets, scanf, vfscanf, vscanf): Verify signatures.
8260         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8261         problem with non-blocking pipes.
8262         * doc/posix-functions/fgetc.texi: Likewise.
8263         * doc/posix-functions/fgets.texi: Likewise.
8264         * doc/posix-functions/fread.texi: Likewise.
8265         * doc/posix-functions/fscanf.texi: Likewise.
8266         * doc/posix-functions/getc.texi: Likewise.
8267         * doc/posix-functions/getchar.texi: Likewise.
8268         * doc/posix-functions/gets.texi: Likewise.
8269         * doc/posix-functions/scanf.texi: Likewise.
8270         * doc/posix-functions/vfscanf.texi: Likewise.
8271         * doc/posix-functions/vscanf.texi: Likewise.
8272
8273 2011-04-14  Bruno Haible  <bruno@clisp.org>
8274
8275         Support non-blocking pipe I/O in write() on native Windows.
8276         * lib/write.c (rpl_write): Split a write request that failed merely
8277         because the byte count was larger than the pipe buffer's size.
8278         * doc/posix-functions/write.texi: Mention the problem with large byte
8279         counts.
8280
8281 2011-04-14  Bruno Haible  <bruno@clisp.org>
8282
8283         wchar: Ensure that wchar_t gets defined on uClibc.
8284         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8285         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8286
8287 2011-04-13  Bruno Haible  <bruno@clisp.org>
8288
8289         safe-write, full-read: Avoid unnecessary compilation units.
8290         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8291         (Depends-on): Remove safe-read. Add ssize_t.
8292         * modules/full-read (Files): Add lib/full-write.c.
8293         (Depends-on): Add full-write.
8294
8295 2011-04-13  Bruno Haible  <bruno@clisp.org>
8296
8297         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8298         * modules/pwrite (Depends-on): Add 'write'.
8299
8300 2011-04-13  Bruno Haible  <bruno@clisp.org>
8301
8302         Support non-blocking pipe I/O in write() on native Windows.
8303         * lib/unistd.in.h (write): Enable replacement also if
8304         GNULIB_UNISTD_H_NONBLOCKING is 1.
8305         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8306         (rpl_write): When failing to write on a non-blocking pipe, change
8307         errno from ENOSPC to EAGAIN.
8308         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8309         putchar, puts, vfprintf, vprintf): Enable replacement also if
8310         GNULIB_STDIO_H_NONBLOCKING is 1.
8311         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8312         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8313         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8314         CALL_WITH_SIGPIPE_EMULATION.
8315         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8316         * m4/nonblocking.m4: New file.
8317         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8318         for non-blocking I/O support.
8319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8320         GNULIB_UNISTD_H_NONBLOCKING.
8321         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8322         required for non-blocking I/O support.
8323         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8324         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8325         lib/stdio-write.c, m4/asm-underscore.m4.
8326         (Depends-on): Add stdio, unistd.
8327         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8328         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8329         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8330         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8331         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8332         problem with non-blocking pipes.
8333         * doc/posix-functions/fputc.texi: Likewise.
8334         * doc/posix-functions/fputs.texi: Likewise.
8335         * doc/posix-functions/fwrite.texi: Likewise.
8336         * doc/posix-functions/printf.texi: Likewise.
8337         * doc/posix-functions/putc.texi: Likewise.
8338         * doc/posix-functions/putchar.texi: Likewise.
8339         * doc/posix-functions/puts.texi: Likewise.
8340         * doc/posix-functions/vfprintf.texi: Likewise.
8341         * doc/posix-functions/vprintf.texi: Likewise.
8342         * doc/posix-functions/write.texi: Likewise.
8343
8344 2011-04-10  Jim Meyering  <meyering@redhat.com>
8345
8346         maint.mk: prohibit doubled words
8347         Detect them also when they're separated by a newline.
8348         There are 3 ways to customize it:
8349           - disable the test on a per file basis, as usual with rules using
8350             $(VC_LIST_EXCEPT)
8351           - replace the default doubled-word-selecting regexp (affects all files)
8352           - ignore a particular file-vs-doubled-word match
8353         I nearly used that last one to ignore the "is is" match in
8354         coreutils' NEWS file, since the text was "ls -is is ..."
8355         To do that, I would have added this line to cfg.mk:
8356           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8357         but it would have ignored any "is is" match in NEWS.
8358         Low probability, but still...
8359         Instead, I changed the text, slightly:
8360           -  ls -is is now consistent with ls -lis in ignoring values returned
8361           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8362         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8363         (prohibit_doubled_word_): Define.
8364         (sc_prohibit_doubled_word): New rule.
8365         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8366
8367 2011-04-10  Jim Meyering  <meyering@redhat.com>
8368
8369         maint: fix doubled-word typo in comment
8370         * m4/gethostname.m4: s/is is/it is/
8371         * m4/getdomainname.m4: Likewise.
8372
8373 2011-04-10  Jim Meyering  <meyering@redhat.com>
8374
8375         maint: remove doubled word: s/it it/it/
8376         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8377
8378 2011-04-10  Jim Meyering  <meyering@redhat.com>
8379
8380         maint.mk: remove useless semicolon and backslash
8381         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8382         semicolon and backslash.
8383
8384 2011-04-10  Bruno Haible  <bruno@clisp.org>
8385
8386         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8387         * modules/stdint-tests (Depends-on): Add wchar.
8388
8389 2011-04-10  Jim Meyering  <meyering@redhat.com>
8390
8391         maint: remove doubled words in comments, e.g., s/a a/a/
8392         * lib/strptime.c (day_of_the_week): s/the the/the/
8393         * tests/test-chown.h (test_chown): s/a a/a/
8394
8395         test-chown.h: correct a cast
8396         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8397         when the destination is a stat.st_gid.
8398
8399 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8400
8401         getaddrinfo: Fix test for sa_len member.
8402         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8403         include <sys/types.h> before <sys/socket.h>.
8404
8405 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8406
8407         maint: change "can not" to "cannot"
8408         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8409         boundaries.
8410
8411 2011-04-09  Jim Meyering  <meyering@redhat.com>
8412
8413         maint: change "a a" to "a"
8414         * tests/test-lchown.h (test_lchown): s/a a/a/
8415
8416         maint.mk: prohibit \<the the\>
8417         * top/maint.mk (sc_prohibit_the_the): New rule.
8418
8419         maint: fix "the the" in comment
8420         * lib/count-one-bits.h: s/the the/the/
8421
8422         maint: change "can not" to "cannot"
8423         But do not change the occurrences in maintain.texi or in
8424         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8425         * doc/gnulib-tool.texi: s/can not/cannot/
8426         * doc/posix-functions/accept.texi (accept): Likewise.
8427         * doc/posix-functions/socket.texi (socket): Likewise.
8428         * lib/mbrtowc.c: Likewise.
8429
8430         maint.mk: prohibit use of "can not"
8431         * top/maint.mk (sc_prohibit_can_not): New rule.
8432         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8433
8434 2011-04-09  Bruno Haible  <bruno@clisp.org>
8435
8436         careadlinkat: Guard against misuse of careadlinkatcwd.
8437         * lib/careadlinkat.c: Include <stdlib.h>.
8438         (careadlinkatcwd): Check that the fd argument is as expected.
8439
8440 2011-04-09  Bruno Haible  <bruno@clisp.org>
8441
8442         careadlinkat: Use common coding style.
8443         * lib/careadlinkat.c: Move gnulib includes after system includes.
8444
8445 2011-04-09  Bruno Haible  <bruno@clisp.org>
8446
8447         careadlinkat: Clarify specification.
8448         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8449         (careadlinkatcwd): Add comment.
8450         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8451
8452 2011-04-09  Bruno Haible  <bruno@clisp.org>
8453
8454         areadlinkat: Avoid link error on many platforms.
8455         * modules/areadlinkat (Depends-on): Add areadlink.
8456
8457 2011-04-09  Bruno Haible  <bruno@clisp.org>
8458
8459         allocator, careadlinkat: Fix double-inclusion guard.
8460         * lib/allocator.h: Fix double-inclusion guard.
8461         * lib/careadlinkat.h: Likewise.
8462
8463 2011-04-09  Bruno Haible  <bruno@clisp.org>
8464
8465         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8466         * lib/relocwrapper.c: Update dependencies hierarchy.
8467         * build-aux/install-reloc: Update list of files to be compiled.
8468         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8469         lib/allocator.[hc].
8470
8471 2011-04-08  Eric Blake  <eblake@redhat.com>
8472
8473         strftime: silence gnulib-tool warning
8474         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8475
8476 2011-04-08  Bruno Haible  <bruno@clisp.org>
8477
8478         verify: Fix syntax error with GCC 4.6 in C++ mode.
8479         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8480         (HAVE_STATIC_ASSERT): New macro.
8481         (verify_true, verify): Use 'static_assert' if it is supported and
8482         '_Static_assert' is not supported.
8483
8484 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8485
8486         allocator: New module.
8487         * modules/allocator, lib/allocator.c: New files.
8488         * lib/allocator.h (stdlib_allocator): New decl.
8489         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8490         Remove.  Do not include <stdlib.h>.
8491         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8492         * modules/careadlinkat (Files): Remove lib/allocator.h.
8493         (Depends-on): Add allocator.
8494
8495         stdlib: let modules use system malloc, realloc
8496         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8497         if !_GL_USE_STDLIB_ALLOC.
8498         (malloc, realloc): Limit this change to a smaller scope.
8499
8500         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8501         (malloc, realloc): Don't #undef; no longer needed.
8502         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8503         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8504         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8505         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8506         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8507         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8508         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8509         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8510
8511         careadlinkat: rename members to avoid problem
8512         * lib/allocator.h (struct allocator): Rename members from
8513         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8514         and realloc are #define'd.  Reported by Eric Blake in
8515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8516         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8517
8518 2011-04-08  Eric Blake  <eblake@redhat.com>
8519
8520         nonblocking: reduce dependency
8521         * tests/test-nonblocking.c: Only test sockets when in use.
8522         * modules/nonblocking-tests (Depends-on): Drop socket.
8523         (Makefile.am): Link even if sockets are not present.
8524         * modules/pipe2-tests (Makefile.am): Likewise.
8525         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8526
8527         pipe2: fix O_NONBLOCK support on mingw
8528         * modules/pipe2 (Depends-on): Add nonblocking.
8529         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8530         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8531         * tests/test-nonblocking.c (main): Likewise.
8532         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8533
8534         fcntl-h: fix O_ACCMODE on cygwin
8535         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8536         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8537
8538         pipe-filter: drop O_NONBLOCK workarounds
8539         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8540         * modules/pipe-filter-ii (Depends-on): Likewise.
8541         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8542
8543         nonblocking: provide O_NONBLOCK for mingw
8544         * modules/nonblocking (Depends-on): Add open.
8545         (configure.ac): Set new witness macro.
8546         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8547         * modules/fcntl-h (Makefile.am): Substitute it.
8548         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8549         nonblocking module is in use.
8550         * lib/nonblocking.c: Adjust portability test.
8551         * lib/open.c (open): Don't let native open see gnulib flag.
8552         * tests/test-fcntl-h.c (main): Enhance test.
8553         * tests/test-open.h (test_open): Likewise.
8554         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8555
8556         careadlinkat: fix compilation error on mingw
8557         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8558         within struct allocator.
8559
8560 2011-04-06  Eric Blake  <eblake@redhat.com>
8561
8562         binary-io: relicense under LGPLv2+
8563         * modules/binary-io (License): Relax to LGPLv2+.
8564         Requested for libvirt, and required by pipe2.
8565
8566 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8567
8568         verify: use _Static_assert if available
8569         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8570         (verify_true, verify): Use it if available.  This generates better
8571         diagnostics with GCC 4.6.0 and later.
8572
8573 2011-04-05  Bruno Haible  <bruno@clisp.org>
8574
8575         Remove leftover generated .h files after config.status changed.
8576
8577         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8578         GL_GENERATE_ALLOCA_H.
8579         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8580         GL_GENERATE_ALLOCA_H evaluates to false.
8581
8582         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8583         GL_GENERATE_ARGZ_H.
8584         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8585         evaluates to false.
8586
8587         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8588         GL_GENERATE_BYTESWAP_H.
8589         * modules/byteswap (Makefile.am): Remove byteswap.h if
8590         GL_GENERATE_BYTESWAP_H evaluates to false.
8591
8592         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8593         GL_GENERATE_ERRNO_H.
8594         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8595         evaluates to false.
8596
8597         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8598         GL_GENERATE_FLOAT_H.
8599         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8600         evaluates to false.
8601
8602         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8603         GL_GENERATE_FNMATCH_H.
8604         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8605         GL_GENERATE_FNMATCH_H evaluates to false.
8606
8607         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8608         GL_GENERATE_GLOB_H.
8609         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8610         evaluates to false.
8611
8612         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8613         automake conditional GL_GENERATE_ICONV_H.
8614         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8615         evaluates to false.
8616
8617         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8618         GL_GENERATE_NETINET_IN_H.
8619         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8620         GL_GENERATE_NETINET_IN_H evaluates to false.
8621
8622         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8623         conditional GL_GENERATE_PTHREAD_H.
8624         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8625         * modules/pthread (Makefile.am): Remove pthread.h if
8626         GL_GENERATE_PTHREAD_H evaluates to false.
8627
8628         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8629         GL_GENERATE_SCHED_H.
8630         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8631         evaluates to false.
8632
8633         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8634         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8635         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8636         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8637
8638         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8639         GL_GENERATE_STDARG_H.
8640         * modules/stdarg (Makefile.am): Remove stdarg.h if
8641         GL_GENERATE_STDARG_H evaluates to false.
8642
8643         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8644         GL_GENERATE_STDBOOL_H.
8645         * modules/stdbool (Makefile.am): Remove stdbool.h if
8646         GL_GENERATE_STDBOOL_H evaluates to false.
8647
8648         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8649         conditional GL_GENERATE_STDDEF_H.
8650         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8651         * modules/stddef (Makefile.am): Remove stddef.h if
8652         GL_GENERATE_STDDEF_H evaluates to false.
8653
8654         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8655         GL_GENERATE_STDINT_H.
8656         * modules/stdint (Makefile.am): Remove stdint.h if
8657         GL_GENERATE_STDINT_H evaluates to false.
8658
8659         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8660         GL_GENERATE_SYSEXITS_H.
8661         * modules/sysexits (Makefile.am): Remove sysexits.h if
8662         GL_GENERATE_SYSEXITS_H evaluates to false.
8663
8664         Reported by Karl Berry and Ralf Wildenhues.
8665
8666 2011-04-05  Bruno Haible  <bruno@clisp.org>
8667
8668         Ensure to rebuild generated .h files when config.status has changed.
8669         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8670         config.status.
8671         * modules/ctype (Makefile.am): Likewise.
8672         * modules/dirent (Makefile.am): Likewise.
8673         * modules/errno (Makefile.am): Likewise.
8674         * modules/fcntl-h (Makefile.am): Likewise.
8675         * modules/float (Makefile.am): Likewise.
8676         * modules/getopt-posix (Makefile.am): Likewise.
8677         * modules/glob (Makefile.am): Likewise.
8678         * modules/iconv-h (Makefile.am): Likewise.
8679         * modules/inttypes (Makefile.am): Likewise.
8680         * modules/langinfo (Makefile.am): Likewise.
8681         * modules/locale (Makefile.am): Likewise.
8682         * modules/math (Makefile.am): Likewise.
8683         * modules/netdb (Makefile.am): Likewise.
8684         * modules/netinet_in (Makefile.am): Likewise.
8685         * modules/poll-h (Makefile.am): Likewise.
8686         * modules/pthread (Makefile.am): Likewise.
8687         * modules/pty (Makefile.am): Likewise.
8688         * modules/sched (Makefile.am): Likewise.
8689         * modules/search (Makefile.am): Likewise.
8690         * modules/selinux-h (Makefile.am): Likewise.
8691         * modules/signal (Makefile.am): Likewise.
8692         * modules/spawn (Makefile.am): Likewise.
8693         * modules/stdarg (Makefile.am): Likewise.
8694         * modules/stdbool (Makefile.am): Likewise.
8695         * modules/stddef (Makefile.am): Likewise.
8696         * modules/stdint (Makefile.am): Likewise.
8697         * modules/stdio (Makefile.am): Likewise.
8698         * modules/stdlib (Makefile.am): Likewise.
8699         * modules/string (Makefile.am): Likewise.
8700         * modules/strings (Makefile.am): Likewise.
8701         * modules/sys_file (Makefile.am): Likewise.
8702         * modules/sys_ioctl (Makefile.am): Likewise.
8703         * modules/sys_select (Makefile.am): Likewise.
8704         * modules/sys_socket (Makefile.am): Likewise.
8705         * modules/sys_stat (Makefile.am): Likewise.
8706         * modules/sys_time (Makefile.am): Likewise.
8707         * modules/sys_times (Makefile.am): Likewise.
8708         * modules/sys_utsname (Makefile.am): Likewise.
8709         * modules/sys_wait (Makefile.am): Likewise.
8710         * modules/sysexits (Makefile.am): Likewise.
8711         * modules/termios (Makefile.am): Likewise.
8712         * modules/time (Makefile.am): Likewise.
8713         * modules/unistd (Makefile.am): Likewise.
8714         * modules/wchar (Makefile.am): Likewise.
8715         * modules/wctype-h (Makefile.am): Likewise.
8716         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8717
8718 2011-04-05  Bruno Haible  <bruno@clisp.org>
8719
8720         pipe2: Relicense under LGPLv2+.
8721         * modules/pipe2 (License): Change to LGPLv2+.
8722         Requested by Eric Blake, for libvirt.
8723
8724 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8725
8726         bootstrap: compute gnulib_extra_files after updating build_aux
8727         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8728         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8729
8730 2011-04-05  Eric Blake  <eblake@redhat.com>
8731
8732         bootstrap: preserve git whitelist item sorting
8733         * build-aux/bootstrap (sort_patterns): New function.
8734         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8735
8736 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8737
8738         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8739         sc_space_tab check.
8740
8741 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8742
8743         areadlink, areadlinkat: rewrite in terms of careadlinkat
8744         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8745         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8746         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8747         (malloc, realloc): Remove #undefs.
8748         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8749         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8750         readlink, ssize_t, stdint, unistd.
8751         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8752         areadlink, stdint.
8753
8754         careadlinkat: new module
8755         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8756         * modules/careadlinkat: New files, written by me with
8757         a review and feedback from Ben Pfaff in
8758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8759
8760 2011-04-01  Bruno Haible  <bruno@clisp.org>
8761
8762         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8763         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8764         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8765         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8766         Reported by Bruce Korb <bruce.korb@gmail.com>.
8767
8768 2011-04-01  Bruno Haible  <bruno@clisp.org>
8769
8770         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8771         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8772         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8773         * modules/wcpcpy (Depends-on): Add extensions.
8774         * modules/wcpncpy (Depends-on): Likewise.
8775         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8776         systems.
8777         * doc/posix-functions/wcpncpy.texi: Likewise.
8778         * doc/posix-functions/wcwidth.texi: Likewise.
8779
8780 2011-03-31  Eric Blake  <eblake@redhat.com>
8781
8782         nonblocking: fix mingw test failures
8783         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8784         non-blocking flag on regular file.
8785         (get_nonblocking_flag): Set errno on invalid fd.
8786         * tests/test-nonblocking.c (main): Avoid test failure on
8787         directories if fchdir is not active.
8788         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8789
8790 2011-03-31  Bruno Haible  <bruno@clisp.org>
8791
8792         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8793         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8794         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8795         Reported by Simon Josefsson <simon@josefsson.org>.
8796
8797 2011-03-31  Bruno Haible  <bruno@clisp.org>
8798         and Eric Blake  <eblake@redhat.com>
8799
8800         nonblocking: new module
8801         * modules/nonblocking: New module.
8802         * modules/nonblocking-tests: Likewise.
8803         * lib/nonblocking.h: New file.
8804         * lib/nonblocking.c: Likewise.
8805         * tests/test-nonblocking.c: New test.
8806         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8807
8808 2011-03-30  Bruno Haible  <bruno@clisp.org>
8809
8810         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8811         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8812         instead of 'printf' format for GCC >= 4.4.
8813         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8814         (fprintf, printf, vfprintf, vprintf): Declare with
8815         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8816         the system's vfprintf() function.
8817         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8818
8819 2011-03-30  Eric Blake  <eblake@redhat.com>
8820
8821         passfd: fix scoping bug
8822         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8823         before sendmsg/recvmsg.
8824
8825         passfd: standardize coding conventions
8826         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8827         can be learned at compile time.
8828         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8829         ifdefs.
8830         (sendfd, recvfd): Follow gnulib code conventions.
8831
8832         passfd: fix incorrect sendmsg arguments
8833         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8834         incorrect msg_controllen value.
8835         * modules/passfd-tests (Depends-on): Check for alarm.
8836         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8837         Reported by Bastien ROUCARIES.
8838
8839 2011-03-30  Bruno Haible  <bruno@clisp.org>
8840
8841         c-strcasestr: Relicense under LGPLv2+.
8842         * modules/c-strcasestr (License): Change to LGPLv2+.
8843         Requested by Eric Blake, for libvirt.
8844
8845 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8846
8847         * users.txt: Add libidn2.  Fix libtasn1 link.
8848
8849 2011-03-30  Jim Meyering  <meyering@redhat.com>
8850
8851         tests: readlink* ("",... fails with EINVAL on newer kernels
8852         readlink and readlinkat have typically failed with ENOENT for
8853         the invalid, empty file name,  "".  However, with the advent
8854         of linux-2.6.39, they fail with EINVAL.
8855         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8856         when operating on the empty file name.
8857         * tests/test-readlink.h (test_readlink): Likewise.
8858
8859 2011-03-29  Bruno Haible  <bruno@clisp.org>
8860
8861         Relicense some modules under LGPLv2+, for libidn2.
8862         * modules/array-mergesort (License): Change to LGPLv2+.
8863         * modules/c-strcaseeq (License): Likewise.
8864         * modules/striconveh (License): Likewise.
8865         * modules/striconveha (License): Likewise.
8866         * modules/uniconv/base (License): Likewise.
8867         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8868         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8869         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8870         * modules/unictype/base (License): Likewise.
8871         * modules/unictype/bidiclass-of (License): Likewise.
8872         * modules/unictype/category-M (License): Likewise.
8873         * modules/unictype/category-none (License): Likewise.
8874         * modules/unictype/category-of (License): Likewise.
8875         * modules/unictype/category-test (License): Likewise.
8876         * modules/unictype/category-test-withtable (License): Likewise.
8877         * modules/unictype/combining-class (License): Likewise.
8878         * modules/unictype/joiningtype-of (License): Likewise.
8879         * modules/unictype/scripts (License): Likewise.
8880         * modules/uninorm/base (License): Likewise.
8881         * modules/uninorm/canonical-decomposition (License): Likewise.
8882         * modules/uninorm/composition (License): Likewise.
8883         * modules/uninorm/decompose-internal (License): Likewise.
8884         * modules/uninorm/decomposition-table (License): Likewise.
8885         * modules/uninorm/nfc (License): Likewise.
8886         * modules/uninorm/nfd (License): Likewise.
8887         * modules/uninorm/u32-normalize (License): Likewise.
8888         * modules/unistr/base (License): Likewise.
8889         * modules/unistr/u32-cpy (License): Likewise.
8890         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8891         * modules/unistr/u32-to-u8 (License): Likewise.
8892         * modules/unistr/u32-uctomb (License): Likewise.
8893         * modules/unistr/u8-check (License): Likewise.
8894         * modules/unistr/u8-mblen (License): Likewise.
8895         * modules/unistr/u8-mbtouc (License): Likewise.
8896         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8897         * modules/unistr/u8-mbtoucr (License): Likewise.
8898         * modules/unistr/u8-prev (License): Likewise.
8899         * modules/unistr/u8-strlen (License): Likewise.
8900         * modules/unistr/u8-to-u32 (License): Likewise.
8901         * modules/unistr/u8-uctomb (License): Likewise.
8902         * modules/unitypes (License): Likewise.
8903         Requested by Simon Josefsson.
8904
8905 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8906
8907         lib-symbol-visibility: Add a notice.
8908         * modules/lib-symbol-visibility (Notice): New field.
8909
8910 2011-03-29  Bruno Haible  <bruno@clisp.org>
8911
8912         getaddrinfo: Doc fix.
8913         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8914         section "fixed in Gnulib".
8915
8916 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8917
8918         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8919         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8920
8921 2011-03-26  Bruno Haible  <bruno@clisp.org>
8922
8923         unictype/property-byname: Reduce the number of load-time relocations.
8924         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8925         (UC_PROPERTY_INDEX_*): New enumeration values.
8926         (uc_property_byname): Convert an index from the lookup table to an
8927         uc_property_t.
8928         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8929         values.
8930
8931 2011-03-26  Bruno Haible  <bruno@clisp.org>
8932
8933         unictype/property-byname: Allow omitted word separators and aliases.
8934         * lib/unictype/pr_byname.gperf: Add property names without word
8935         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8936         for 'space'.
8937
8938 2011-03-26  Bruno Haible  <bruno@clisp.org>
8939
8940         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8941         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8942         also hyphens to space.
8943         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8944         without spaces.
8945         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8946
8947 2011-03-26  Bruno Haible  <bruno@clisp.org>
8948
8949         unictype/joiningtype-byname: Recognize long names as well.
8950         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8951         a long name.
8952         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8953         unictype/joiningtype_byname.h.
8954         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8955         * lib/unictype/joiningtype_byname.gperf: New file.
8956         * modules/unictype/joiningtype-byname (Files): Add
8957         lib/unictype/joiningtype_byname.gperf.
8958         (Depends-on): Add gperf.
8959         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8960         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8961         long names.
8962
8963         Tests for module 'unictype/joiningtype-longname'.
8964         * modules/unictype/joiningtype-longname-tests: New file.
8965         * tests/unictype/test-joiningtype_longname.c: New file.
8966
8967         New module 'unictype/joiningtype-longname'.
8968         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8969         * lib/unictype/joiningtype_longname.c: New file.
8970         * modules/unictype/joiningtype-longname: New file.
8971         * modules/unictype/joiningtype-all (Depends-on): Add
8972         unictype/joiningtype-longname.
8973
8974 2011-03-26  Bruno Haible  <bruno@clisp.org>
8975
8976         unictype/bidiclass-byname: Recognize long names as well.
8977         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8978         name.
8979         * lib/unictype/bidi_byname.c: Include <string.h>,
8980         unictype/bidi_byname.h.
8981         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8982         * lib/unictype/bidi_byname.gperf: New file.
8983         * modules/unictype/bidiclass-byname (Files): Add
8984         lib/unictype/bidi_byname.gperf.
8985         (Depends-on): Add gperf.
8986         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8987         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8988         long names.
8989
8990         Tests for module 'unictype/bidiclass-longname'.
8991         * modules/unictype/bidiclass-longname-tests: New file.
8992         * tests/unictype/test-bidi_longname.c: New file.
8993
8994         New module 'unictype/bidiclass-longname'.
8995         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8996         * lib/unictype/bidi_longname.c: New file.
8997         * modules/unictype/bidiclass-longname: New file.
8998         * modules/unictype/bidiclass-all (Depends-on): Add
8999         unictype/bidiclass-longname.
9000
9001 2011-03-26  Bruno Haible  <bruno@clisp.org>
9002
9003         unictype/bidi*: Rename modules.
9004         * modules/unictype/bidiclass-all: Renamed from
9005         modules/unictype/bidicategory-all.
9006         * modules/unictype/bidiclass-name: Renamed from
9007         modules/unictype/bidiclass-name.
9008         (Description): Update.
9009         * modules/unictype/bidiclass-name-tests: Renamed from
9010         modules/unictype/bidicategory-name-tests.
9011         * modules/unictype/bidiclass-byname: Renamed from
9012         modules/unictype/bidicategory-byname.
9013         (Description): Update.
9014         * modules/unictype/bidiclass-byname-tests: Renamed from
9015         modules/unictype/bidicategory-byname-tests.
9016         * modules/unictype/bidiclass-of: Renamed from
9017         modules/unictype/bidicategory-of.
9018         (Description): Update.
9019         * modules/unictype/bidiclass-of-tests: Renamed from
9020         modules/unictype/bidicategory-of-tests.
9021         * modules/unictype/bidiclass-test: Renamed from
9022         modules/unictype/bidicategory-test.
9023         (Description): Update.
9024         * modules/unictype/bidiclass-test-tests: Renamed from
9025         modules/unictype/bidicategory-test-tests.
9026         * modules/unictype/bidicategory-all: New file, a simple redirection.
9027         * modules/unictype/bidicategory-name: Likewise.
9028         * modules/unictype/bidicategory-byname: Likewise.
9029         * modules/unictype/bidicategory-of: Likewise.
9030         * modules/unictype/bidicategory-test: Likewise.
9031         * modules/unictype/property-bidi-* (Dependencies): Update.
9032         * lib/unictype/bidi_*.c: Update comment.
9033
9034 2011-03-26  Bruno Haible  <bruno@clisp.org>
9035
9036         unictype/bidi*: Rename functions, part 2.
9037         * modules/unictype/bidicategory-name (configure.ac): Update required
9038         libunistring version.
9039         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9040
9041 2011-03-25  Bruno Haible  <bruno@clisp.org>
9042
9043         New module 'unictype/combining-class-all'.
9044         * modules/unictype/combining-class-all: New file.
9045
9046         Tests for module 'unictype/combining-class-byname'.
9047         * modules/unictype/combining-class-byname-tests: New file.
9048         * tests/unictype/test-combiningclass_byname.c: New file.
9049
9050         New module 'unictype/combining-class-byname'.
9051         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9052         * lib/unictype/combiningclass_byname.c: New file.
9053         * lib/unictype/combiningclass_byname.gperf: New file.
9054         * modules/unictype/combining-class-byname: New file.
9055
9056         Tests for module 'unictype/combining-class-longname'.
9057         * modules/unictype/combining-class-longname-tests: New file.
9058         * tests/unictype/test-combiningclass_longname.c: New file.
9059
9060         New module 'unictype/combining-class-longname'.
9061         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9062         * lib/unictype/combiningclass_longname.c: New file.
9063         * modules/unictype/combining-class-longname: New file.
9064
9065         Tests for module 'unictype/combining-class-name'.
9066         * modules/unictype/combining-class-name-tests: New file.
9067         * tests/unictype/test-combiningclass_name.c: New file.
9068
9069         New module 'unictype/combining-class-name'.
9070         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9071         * lib/unictype/combiningclass_name.c: New file.
9072         * modules/unictype/combining-class-name: New file.
9073
9074 2011-03-25  Bruno Haible  <bruno@clisp.org>
9075
9076         unictype/combining-class: Rename source files.
9077         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9078         of unictype/combining.h.
9079         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9080         Update.
9081         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9082         * modules/unictype/combining-class (Description): Fix.
9083         (Files, Makefile.am): Update.
9084         * tests/unictype/test-combiningclass.c: Renamed from
9085         tests/unictype/test-combining.c.
9086         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9087
9088 2011-03-25  Bruno Haible  <bruno@clisp.org>
9089
9090         unictype: Update list of canonical combining classes.
9091         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9092
9093 2011-03-25  Bruno Haible  <bruno@clisp.org>
9094
9095         unictype/category-byname: Recognize long names as well.
9096         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9097         a long name.
9098         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9099         unictype/categ_byname.h.
9100         (UC_CATEGORY_INDEX_*): New enumeration values.
9101         (uc_general_category_byname): Use uc_general_category_lookup and
9102         convert from index to value.
9103         * lib/unictype/categ_byname.gperf: New file.
9104         * modules/unictype/category-byname (Files): Add
9105         lib/unictype/categ_byname.gperf.
9106         (Depends-on): Add gperf.
9107         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9108         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9109         long names.
9110
9111         Tests for module 'unictype/category-longname'.
9112         * modules/unictype/category-longname-tests: New file.
9113         * tests/unictype/test-categ_longname.c: New file.
9114
9115         New module 'unictype/category-longname'.
9116         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9117         * lib/unictype/categ_longname.c: New file.
9118         * modules/unictype/category-longname: New file.
9119         * modules/unictype/category-all (Depends-on): Add it.
9120
9121 2011-03-25  Bruno Haible  <bruno@clisp.org>
9122
9123         Tests for module 'unictype/category-LC'.
9124         * modules/unictype/category-LC-tests: New file.
9125         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9126
9127         New module 'unictype/category-LC'.
9128         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9129         (UC_CATEGORY_LC): New declaration.
9130         (UC_CASED_LETTER): New macro.
9131         * lib/gen-uni-tables.c (is_category_LC): New function.
9132         (output_categories): Also handle category LC.
9133         (UC_CATEGORY_MASK_LC): New enumeration value.
9134         (general_category_byname): Also handle category LC.
9135         * lib/unictype/categ_LC.c: New file.
9136         * lib/unictype/categ_LC.h: New file, automatically generated.
9137         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9138         category LC.
9139         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9140         * modules/unictype/category-LC: New file.
9141         * modules/unictype/category-byname (Depends-on): Add
9142         unictype/category-LC.
9143         * modules/unictype/category-all (Depends-on): Likewise.
9144
9145 2011-03-25  Eric Blake  <eblake@redhat.com>
9146
9147         xmalloc: revert yesterday's regression
9148         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9149         realloc's underlying behavior (allowing allocation of zero-size
9150         objects, especially if malloc-gnu is also in use).
9151
9152 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9153
9154         maint.mk: add missing version to VC-tag
9155         * top/maint.mk: git tag was missing actual tag name; add it.
9156
9157         valgrind: do leak checking, and exit with code 1 on error (not 0)
9158         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9159         to VALGRIND.
9160
9161 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9162
9163         posix-modules: say what it does.
9164         * posix-modules: Add a line to the --help output saying what it does.
9165
9166 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9167
9168         xmalloc: Do not leak if underlying realloc is C99 compatible.
9169         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9170         This avoids a leak on C99-based systems.  See
9171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9172
9173 2011-03-24  Eric Blake  <eblake@redhat.com>
9174
9175         realloc: document portability problem
9176         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9177         passing 0 size to realloc.
9178
9179 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9180
9181         doc: update users.txt
9182         * users.txt: Add cvsps, tmpwatch
9183
9184 2011-03-23  Matt Rice  <ratmice@gmail.com>
9185
9186         doc: update users.txt
9187         * users.txt: Add gdb.
9188
9189 2011-03-23  Jim Meyering  <meyering@redhat.com>
9190
9191         doc: update users.txt
9192         Looking through matches up to the following URL (there are still
9193         several more pages), I found several projects that use gnulib:
9194         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9195         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9196         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9197
9198 2011-03-22  Bruno Haible  <bruno@clisp.org>
9199
9200         unictype/bidi*: Rename functions.
9201         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9202         uc_bidi_class, uc_is_bidi_class): New declarations.
9203         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9204         uc_bidi_category_byname.
9205         (uc_bidi_category_byname): New function.
9206         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9207         u_bidi_category_name.
9208         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9209         (uc_bidi_category_name): New function.
9210         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9211         uc_bidi_category.
9212         (uc_bidi_category): New function.
9213         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9214         uc_is_bidi_category. Invoke uc_bidi_class.
9215         (uc_is_bidi_category): New function.
9216         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9217         instead of uc_bidi_category_byname.
9218         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9219         instead of uc_bidi_category_name.
9220         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9221         uc_bidi_category.
9222         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9223         instead of uc_is_bidi_category.
9224
9225 2011-03-21  Bruno Haible  <bruno@clisp.org>
9226
9227         New module 'unictype/joininggroup-all'.
9228         * modules/unictype/joininggroup-all: New file.
9229
9230         Tests for module 'unictype/joininggroup-of'.
9231         * modules/unictype/joininggroup-of-tests: New file.
9232         * tests/unictype/test-joininggroup_of.c: New file.
9233         * tests/unictype/test-joininggroup_of.h: New file, automatically
9234         generated by gen-uni-tables.
9235
9236         New module 'unictype/joininggroup-of'.
9237         * modules/unictype/joininggroup-of: New file.
9238         * lib/unictype/joininggroup_of.c: New file.
9239         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9240         gen-uni-tables.
9241
9242         Tests for module 'unictype/joininggroup-byname'.
9243         * modules/unictype/joininggroup-byname-tests: New file.
9244         * tests/unictype/test-joininggroup_byname.c: New file.
9245
9246         New module 'unictype/joininggroup-byname'.
9247         * modules/unictype/joininggroup-byname: New file.
9248         * lib/unictype/joininggroup_byname.c: New file.
9249         * lib/unictype/joininggroup_byname.gperf: New file.
9250
9251         Tests for module 'unictype/joininggroup-name'.
9252         * modules/unictype/joininggroup-name-tests: New file.
9253         * tests/unictype/test-joininggroup_name.c: New file.
9254
9255         New module 'unictype/joininggroup-name'.
9256         * modules/unictype/joininggroup-name: New file.
9257         * lib/unictype/joininggroup_name.c: New file.
9258         * lib/unictype/joininggroup_name.h: New file.
9259
9260         New module 'unictype/joiningtype-all'.
9261         * modules/unictype/joiningtype-all: New file.
9262
9263         Tests for module 'unictype/joiningtype-of'.
9264         * modules/unictype/joiningtype-of-tests: New file.
9265         * tests/unictype/test-joiningtype_of.c: New file.
9266         * tests/unictype/test-joiningtype_of.h: New file, automatically
9267         generated by gen-uni-tables.
9268
9269         New module 'unictype/joiningtype-of'.
9270         * modules/unictype/joiningtype-of: New file.
9271         * lib/unictype/joiningtype_of.c: New file.
9272         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9273         gen-uni-tables.
9274
9275         Tests for module 'unictype/joiningtype-byname'.
9276         * modules/unictype/joiningtype-byname-tests: New file.
9277         * tests/unictype/test-joiningtype_byname.c: New file.
9278
9279         New module 'unictype/joiningtype-byname'.
9280         * modules/unictype/joiningtype-byname: New file.
9281         * lib/unictype/joiningtype_byname.c: New file.
9282
9283         Tests for module 'unictype/joiningtype-name'.
9284         * modules/unictype/joiningtype-name-tests: New file.
9285         * tests/unictype/test-joiningtype_name.c: New file.
9286
9287         New module 'unictype/joiningtype-name'.
9288         * modules/unictype/joiningtype-name: New file.
9289         * lib/unictype/joiningtype_name.c: New file.
9290
9291         unictype: Add support for Arabic shaping properties.
9292         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9293         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9294         declarations.
9295         (UC_JOINING_GROUP_*): New enumeration values.
9296         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9297         declarations.
9298         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9299         (unicode_joining_type): New variable.
9300         (UC_JOINING_GROUP_*): New enumeration values.
9301         (unicode_joining_group): New variable.
9302         (fill_arabicshaping, joining_type_as_c_identifier,
9303         output_joining_type_test, output_joining_type,
9304         joining_group_as_c_identifier, output_joining_group_test,
9305         output_joining_group): New functions.
9306         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9307         fill_arabicshaping and output_joining_type_test, output_joining_type,
9308         output_joining_group_test, output_joining_group.
9309         Reported by Simon Josefsson.
9310
9311 2011-03-21  Jim Meyering  <meyering@redhat.com>
9312
9313         strftime: fix a bug in yesterday's change
9314         * lib/strftime.c (add): Accommodate width's initial value of -1.
9315         Otherwise, nstrftime would copy uninitialized data into
9316         the result buffer.
9317
9318 2011-03-21  Jim Meyering  <meyering@redhat.com>
9319
9320         tests: add strftime-tests module
9321         * tests/test-strftime.c: New file.
9322         * modules/strftime-tests: New module.
9323
9324 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9325
9326         strftime: don't assume a byte count fits in 'int'
9327         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9328         found this problem by static analysis, using gcc -Wstrict-overflow
9329         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9330         on an integer overflow having undefined behavior, but it turns out
9331         that the argument is a size, which might not fit in 'int' anyway,
9332
9333 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9334
9335         stdio: don't require ignore_value around fwrite
9336
9337         This patch works around libc bug 11959
9338         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9339         Without this patch, applications must often write
9340         ignore_value (fwrite (...)) even though the ignore_value is
9341         not helpful here.  It's common to write many objects, using
9342         fwrite/printf/etc., and then use ferror to detect output error.
9343
9344         I considered making this patch optional, but decided against it,
9345         because libc is obviously being inconsistent here: there is no
9346         reason libc should insist that user code must inspect fwrite
9347         return's value without also insisting that it inspect printf's,
9348         putchar's, etc.  If user code wants to have a strict style where
9349         all these functions' values are checked (so that ferror need not
9350         be checked), we could add support for that style in a new gnulib
9351         module, but in the meantime it's better to be consistent and to
9352         support common usage.
9353
9354         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9355         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9356         that we are compiling in checking mode, and if not C++, and
9357         if not already wrapping fwrite for some other reason.
9358         (fwrite): #define to rpl_fwrite if the latter is defined.
9359
9360 2011-03-20  Bruno Haible  <bruno@clisp.org>
9361
9362         verror: Fix compilation error introduced on 2011-02-13.
9363         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9364         instead of __attribute__.
9365         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9366
9367 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9368             Bruno Haible  <bruno@clisp.org>
9369
9370         socklen: do not depend on sys_socket
9371         While trying to modify Emacs to use gnulib's socklen module,
9372         I discovered a circular dependency: socklen depends on sys_socket
9373         and vice versa.  Emacs can use socklen, but it does not need
9374         sys_socket because it has its own substitute for sys/socket.h.
9375         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9376         gl_TYPE_SOCKLEN_T.
9377         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9378         gl_PREREQ_SYS_H_SOCKET.
9379         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9380         gl_PREREQ_SYS_H_SOCKET.
9381         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9382         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9383         * modules/socklen (Depends-on): Do not depend on sys_socket.
9384         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9385
9386 2011-03-20  Jim Meyering  <meyering@redhat.com>
9387
9388         maint.mk: sort file names *after* new transformation
9389         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9390         prefix would have led to an unwarranted failure in GNU parted.
9391         Sort after that transformation.
9392
9393 2011-03-19  Jim Meyering  <meyering@redhat.com>
9394
9395         maint.mk: fix po-file syntax-check rule
9396         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9397         Patch by Bruno Haible.
9398
9399 2011-03-19  Bruno Haible  <bruno@clisp.org>
9400
9401         socklen: Update comment.
9402         * m4/socklen.m4: Update comment about platforms.
9403
9404 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9405             Bruno Haible  <bruno@clisp.org>
9406
9407         inet_ntop, inet_pton: Simplify.
9408         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9409         documented to provide socklen_t and we already depend on sys_socket.
9410         * modules/inet_pton (Depends-on): Likewise.
9411         * lib/arpa_inet.in.h: Adjust comment.
9412
9413 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9414             Bruno Haible  <bruno@clisp.org>
9415
9416         netdb: Simplify.
9417         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9418         documented to provide socklen_t and we already depend on sys_socket.
9419         * lib/netdb.in.h: Adjust comment.
9420
9421 2011-03-19  Bruno Haible  <bruno@clisp.org>
9422
9423         sys_socket, netdb: Document problem with socklen_t.
9424         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9425         platforms.
9426         * doc/posix-headers/netdb.texi: Likewise.
9427
9428 2011-03-18  Eric Blake  <eblake@redhat.com>
9429
9430         maint.mk: let po check work in VPATH build
9431         * top/maint.mk (po_file): Allow cfg.mk override.
9432         (sc_po_check): Allow VPATH use.
9433         Reported by Jiri Denemark.
9434
9435 2011-03-16  Jim Meyering  <meyering@redhat.com>
9436
9437         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9438         Before, you would have had to create one .x-sc_ file per rule in order
9439         to exempt offending files.  Now, you may instead use a Make variable --
9440         usually defined in cfg.mk -- whose name identifies the affected rule.
9441         * top/maint.mk (_sc_excl): Define.
9442         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9443         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9444
9445 2011-03-13  Bruno Haible  <bruno@clisp.org>
9446
9447         ignore-value tests: Avoid warnings.
9448         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9449         empty for gcc < 3.4.
9450
9451 2011-03-13  Bruno Haible  <bruno@clisp.org>
9452
9453         passfd: Fix link error on Solaris.
9454         * modules/passfd (Description): Correct.
9455         (Depends-on): Add socketlib.
9456         (Link): New section.
9457         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9458
9459 2011-03-13  Bruno Haible  <bruno@clisp.org>
9460
9461         passfd: Fix link error on AIX 5.2.
9462         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9463
9464 2011-03-13  Bruno Haible  <bruno@clisp.org>
9465
9466         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9467         * lib/sys_socket.in.h: Include <stddef.h>.
9468         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9469         CMSG_FIRSTHDR. Remove unused variable.
9470
9471 2011-03-13  Bruno Haible  <bruno@clisp.org>
9472
9473         passfd: Fix compilation error on OpenBSD.
9474         * lib/passfd.c: Include <sys/uio.h>.
9475
9476 2011-03-13  Bruno Haible  <bruno@clisp.org>
9477
9478         passfd test: Fix warnings.
9479         * tests/test-passfd.c: Include <sys/wait.h>.
9480         (main): Fix typo.
9481
9482 2011-03-13  Bruno Haible  <bruno@clisp.org>
9483
9484         passfd module, part 4, tweaks.
9485         * tests/test-passfd.c: Reorder includes.
9486         (main): Fix perror and printf calls.
9487
9488 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9489
9490         passfd module, part 4.
9491         * modules/passfd-tests: New file.
9492         * tests/test-passfd.c: New file.
9493
9494 2011-03-13  Jim Meyering  <meyering@redhat.com>
9495
9496         Makefile: rely on GNU make; derive syntax-check rule names
9497         Rather than requiring that each sc_ rule be listed as a dependent
9498         of "check", use features of GNU make to derive the list.
9499         * Makefile (syntax-check-rules): Define.
9500         (check): Depend on the new variable, not the hard-coded list.
9501
9502 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9503             Bruno Haible  <bruno@clisp.org>
9504
9505         passfd module, part 3.
9506         * lib/passfd.h (recvfd): Add a flags argument.
9507         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9508         (recvfd): Add a flags argument.
9509         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9510         exists.
9511         * modules/passfd (Depends-on): Add cloexec.
9512         Suggested by Eric Blake.
9513
9514 2011-03-13  Bruno Haible  <bruno@clisp.org>
9515
9516         passfd module, part 2, tweaks.
9517         * modules/passfd (Files): Reorder.
9518         (Depends-on): Remove errno.
9519         (Include): Remove <sys/socket.h>, <sys/un.h>.
9520         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9521         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9522         specification header. Include <sys/socket.h> always. Don't include
9523         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9524         (sendfd): Clarify that it sets errno when it fails.
9525         (recvfd): Fix specification.
9526
9527 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9528
9529         passfd module, part 2.
9530         * modules/passfd: New file.
9531         * lib/passfd.h: New file.
9532         * lib/passfd.c: New file.
9533
9534 2011-03-12  Bruno Haible  <bruno@clisp.org>
9535
9536         wcswidth, mbswidth: Avoid integer overflow.
9537         * lib/wcswidth.c: Include <limits.h>.
9538         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9539         * lib/mbswidth.c: Include <limits.h>.
9540         (mbsnwidth): Avoid 'int' overflow.
9541         Reported by Jim Meyering.
9542
9543 2011-03-12  Bruno Haible  <bruno@clisp.org>
9544
9545         futimens, utimensat: Avoid endless recursion on Solaris 10.
9546         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9547         Solaris.
9548         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9549         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9550
9551 2011-03-11  Jim Meyering  <meyering@redhat.com>
9552
9553         maint.mk: relax a regexp to accommodate other formatting styles
9554         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9555         between "ngettext" and the following "(".
9556
9557 2011-03-11  Pádraig Brady <P@draigBrady.com>
9558
9559         maint.mk: suppress a false positive warning
9560         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9561         diagnostics are marked with ngettext.
9562
9563 2011-03-10  Eric Blake  <eblake@redhat.com>
9564
9565         wchar: add explicit dependencies, for Tru64
9566         * modules/mbmemcasecoll (Depends-on): Add wchar.
9567         * modules/mbtowc (Depends-on): Likewise.
9568         * modules/vasnprintf (Depends-on): Likewise.
9569         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9570         * modules/wctomb (Depends-on): Likewise.
9571         Reported by Peter O'Gorman.
9572
9573 2011-03-08  Bruno Haible  <bruno@clisp.org>
9574
9575         passfd module, part 1, tweaks.
9576         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9577         Improve indentation. Improve AC_MSG_CHECKING messages.
9578         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9579         gl_SOCKET_FAMILIES.
9580
9581 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9582
9583         passfd module, part 1.
9584         * m4/afunix.m4: New file.
9585         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9586         sockets.
9587
9588 2011-03-08  Bruno Haible  <bruno@clisp.org>
9589
9590         regex-quote: New API.
9591         * lib/regex-quote.h: Include <stdbool.h>.
9592         (struct regex_quote_spec): New type.
9593         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9594         New declarations.
9595         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9596         'const struct regex_quote_spec *' argument.
9597         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9598         (pcre_special): New constant.
9599         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9600         New functions.
9601         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9602         'const struct regex_quote_spec *' argument.
9603         * modules/regex-quote (Depends-on): Add stdbool.
9604         * tests/test-regex-quote.c (check): Update for new API. Add test for
9605         anchored results.
9606         * NEWS: Mention the API change.
9607         Reported by Reuben Thomas and Eric Blake.
9608
9609 2011-03-06  Bruno Haible  <bruno@clisp.org>
9610
9611         regex-quote: Fix creation of POSIX extended regular expressions.
9612         * lib/regex-quote.c (ere_special): Add grouping and alternation
9613         operators.
9614
9615 2011-03-05  Bruno Haible  <bruno@clisp.org>
9616
9617         doc: Improve doc regarding autopoint vs. gnulib.
9618         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9619         disable autopoint while running autoreconf.
9620         Suggested by Ralf Wildenhues.
9621
9622 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9623
9624         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9625         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9626
9627 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9628
9629         parse-duration: remove xalloc.h dependency
9630         * lib/parse-duration.c (parse_period): handle NULL return from
9631         strdup instead of calling xstrdup().
9632         * modules/parse-duration: remove "xalloc" dependency
9633
9634 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9635
9636         bootstrap: honor m4_base when running aclocal
9637         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9638
9639 2011-03-02  Jim Meyering  <meyering@redhat.com>
9640
9641         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9642         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9643         on request from Matt Booth.
9644
9645 2011-03-01  Eric Blake  <eblake@redhat.com>
9646
9647         test-link: work on Hurd
9648         * tests/test-link.h (test_link): Hurd rejects linking directories
9649         with EISDIR instead of the POSIX-mandated EPERM.
9650
9651 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9652
9653         stdio: simplify by moving files to printf-posix, sigpipe
9654         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9655         since this symbol is needed only if printf is replaced.
9656         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9657         Require gl_ASM_SYMBOL_PREFIX.
9658         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9659         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9660         (Depends-on): Add 'raise'.
9661         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9662         * modules/stdio (Files): Remove lib/stdio-write.c,
9663         m4/asm-underscore.m4.
9664         (Depends-on): Remove 'raise'.
9665
9666         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9667         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9668         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9669         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9670
9671 2011-02-28  Bruno Haible  <bruno@clisp.org>
9672
9673         localcharset: Assume ANSI C behaviour of free().
9674         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9675         calling free().
9676         Suggested by Simon Josefsson <simon@josefsson.org>.
9677
9678 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9679             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9680             Bruno Haible  <bruno@clisp.org>  (tiny change)
9681
9682         On Cygwin, use /proc file system instead of win32 API.
9683         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9684         Win32 file names.
9685         (DllMain): Simplify by removing Cygwin specific code.
9686         (find_shared_library_fullname): Use Linux specific implementation also
9687         for Cygwin.
9688         (get_shared_library_fullname): Update accordingly.
9689         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9690         Win32 file names.
9691         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9692         Cygwin specific code.
9693
9694 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9695             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9696
9697         Fix OpenMP flag detection for various Fortran compilers.
9698         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9699         OpenMP-conditional compilation construct, to force compile
9700         failure with missing OpenMP flag.
9701         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9702
9703 2011-02-25  Eric Blake  <eblake@redhat.com>
9704
9705         strstr: expand test coverage
9706         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9707         compilation.
9708         * tests/test-memmem.c (main): Duplicate tests.
9709         * tests/test-strcasestr.c (main): Likewise.
9710         * tests/test-c-strcasestr.c (main): Likewise.
9711
9712 2011-02-25  Jim Meyering  <meyering@redhat.com>
9713
9714         maint.mk: detect missing-NL-at-EOF, too
9715         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9716         it also detects when a file lacks a newline at EOF.
9717         (require_exactly_one_NL_at_EOF_): Renamed from
9718         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9719         since people may well have .x-sc_... file names tied to the
9720         existing name.  Suggested by Eric Blake.
9721
9722 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9723
9724         dirname: move m4/dos.m4 functionality into lib/dosname.h
9725
9726         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9727         extracts symbols from it, puts them into config.h; but it's much
9728         easier to use the symbols directly.  filename.h already does this,
9729         but it disagrees with dos.m4 in some respects.  This patch
9730         introduces a different include file dosname.h that packages up
9731         dos.m4, and then later we can work on merging filename.h and
9732         dosname.h.  Applications that need only the easy-to-configure
9733         symbols should consider including dosname.h rather than dirname.h.
9734         * NEWS: Mention incompatible changes.
9735         * m4/dos.m4: Remove.
9736         * lib/dosname.h, modules/dosname: New files.
9737         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9738         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9739         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9740         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9741         Include dosname.h, not dirname.h.
9742         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9743         Include dosname.h, for definitions of symbols like ISSLASH
9744         that used to be in config.h.
9745         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9746         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9747         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9748         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9749         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9750         * modules/rmdir (Files): Likewise.
9751         * modules/stat (Files): Likewise.
9752         * modules/unlink (Files): Likewise.
9753         * modules/dirname-lgpl (Depends-on): Add dosname.
9754         * modules/lstat (Depends-on): Likewise.
9755         * modules/openat (Depends-on): Likewise.
9756         * modules/rmdir (Depends-on): Likewise.
9757         * modules/savewd (Depends-on): Likewise.
9758         * modules/stat (Depends-on): Likewise.
9759         * modules/unlink (Depends-on): Likewise.
9760         * modules/openat (Depends-on): Remove dirname-lgpl.
9761         * modules/savewd (Depends-on): Likewise.
9762         * tests/test-dirname.c: Do not use removed symbols like
9763         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9764         the remaining symbols, e.g., ISSLASH ('\\').
9765
9766 2011-02-25  Eric Blake  <eblake@redhat.com>
9767
9768         strstr: revert patches that introduced bug and pessimization
9769         * lib/str-two-way.h: Add another reference.
9770         (two_way_short_needle, two_way_long_needle): Revert changes from
9771         2011-02-24; they pessimize search speed.
9772         (critical_factorization): Partially revert changes from
9773         2010-06-22; they violate the requirement that the left half of the
9774         needle be smaller than the period of the needle.
9775
9776 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9777
9778         filenamecat: remove unnecessary dependency on dirname-lgpl
9779         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9780         is no direct dependency, just an indirect one via filenamecat-lgpl.
9781
9782         remove: remove unnecessary use of m4/dos.m4
9783         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9784         * modules/remove (FILES): Remove m4/dos.m4.
9785
9786         * lib/openat-proc.c: Don't include dirname.h; not needed.
9787
9788         backupfile: remove unnecessary use of m4/dos.m4
9789         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9790         of its symbols are used by the backupfile code.  backupfile.c does
9791         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9792         for the rare case of programs that want all their backup file
9793         names to live within 8+3 limits, and dos.m4 doesn't address that.
9794         * modules/backupfile (Files): Remove m4/dos.m4.
9795
9796 2011-02-24  Jim Meyering  <meyering@redhat.com>
9797
9798         strstr: fix a bug whereby strstr would mistakenly return NULL
9799         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9800         in period calculation.
9801         (two_way_long_needle): Likewise.
9802         The original problem was reported by Mike Stump in
9803         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9804         Ralf Wildenhues provided the short needle and haystack.
9805         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9806         Add a more involved test to trigger the bug in two_way_long_needle.
9807
9808 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9809
9810         gnulib-tool: remove use of bold display in help screen
9811         * gnulib-tool (func_usage): Do not use bold display anymore in the
9812         help screen.  That was just meant to be a temporary emphasis for a
9813         backward-incompatible change.
9814
9815 2011-02-23  Bruno Haible  <bruno@clisp.org>
9816
9817         Fix misindentation of preprocessor directives.
9818         * lib/argp-namefrob.h: Reindent preprocessor directives.
9819         * lib/getopt_int.h (struct _getopt_data): Likewise.
9820         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9821         * lib/vasnprintf.c (decode_long_double): Likewise.
9822         * tests/test-argmatch.c: Insert blank lines, for clarity.
9823         * tests/test-exclude.c: Likewise.
9824
9825 2011-02-22  Bruno Haible  <bruno@clisp.org>
9826
9827         ioctl: Fix for MacOS X in 64-bit mode.
9828         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9829         value.
9830         Suggested by Eric Blake.
9831         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9832
9833 2011-02-22  Jim Meyering  <meyering@redhat.com>
9834
9835         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9836         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9837         in lib/.
9838
9839 2011-02-22  Eric Blake  <eblake@redhat.com>
9840
9841         maint: avoid any CDPATH issue
9842         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9843
9844         maint: adjust cpp indentation for my modules, as well
9845         * Makefile (sc_cpp_indent_check): Add my name.
9846         * lib/fbufmode.c: Filter through cppi.
9847         * lib/fpurge.c: Likewise.
9848         * lib/freadable.c: Likewise.
9849         * lib/freading.c: Likewise.
9850         * lib/fwritable.c: Likewise.
9851         * lib/fwriting.c: Likewise.
9852         * lib/sigaction.c: Likewise.
9853
9854 2011-02-22  Jim Meyering  <meyering@redhat.com>
9855
9856         maint: adjust cpp indentation to reflect nesting depth
9857         I.e., in a block of code that begins with an unnested "#if",
9858         put one space between the "#" in column 1 and following token.
9859         For example,
9860         -#include <sys/vfs.h>
9861         +# include <sys/vfs.h>
9862         Do this only in .c files that are part of a module I maintain.
9863         * lib/linkat.c: Filter through cppi.
9864         * lib/nanosleep.c: Likewise.
9865         * lib/openat.c: Likewise.
9866         * lib/openat-die.c: Likewise.
9867         * lib/dup3.c: Likewise.
9868         * lib/fchownat.c: Likewise.
9869         * lib/flock.c: Likewise.
9870         * lib/fsync.c: Likewise.
9871         * lib/fts.c: Likewise.
9872         * lib/getpass.c: Likewise.
9873         * lib/gettimeofday.c: Likewise.
9874         * lib/userspec.c: Likewise.
9875         * Makefile (sc_cpp_indent_check): New rule, to check this.
9876
9877 2011-02-22  Bruno Haible  <bruno@clisp.org>
9878
9879         New module 'wctomb'.
9880         * lib/stdlib.in.h (wctomb): New declaration.
9881         * lib/wctomb.c: New file.
9882         * lib/wctomb-impl.h: New file.
9883         * m4/wctomb.m4: New file.
9884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9885         REPLACE_WCTOMB.
9886         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9887         REPLACE_WCTOMB.
9888         * modules/wctomb: New file.
9889         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9890         * doc/posix-functions/wctomb.texi: Mention the new module.
9891         * modules/wctob (Depends-on): Add wctomb.
9892
9893 2011-02-22  Bruno Haible  <bruno@clisp.org>
9894
9895         New module 'mbtowc'.
9896         * lib/stdlib.in.h (mbtowc): New declaration.
9897         * lib/mbtowc.c: New file.
9898         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9899         * m4/mbtowc.m4: New file.
9900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9901         REPLACE_MBTOWC.
9902         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9903         REPLACE_MBTOWC.
9904         * modules/mbtowc: New file.
9905         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9906         * doc/posix-functions/mbtowc.texi: Mention the new module.
9907         * modules/btowc (Depends-on): Add mbtowc.
9908
9909 2011-02-22  Bruno Haible  <bruno@clisp.org>
9910
9911         wcrtomb: Add more tests for native Windows platforms.
9912         * tests/test-wcrtomb-w32-1.sh: New file.
9913         * tests/test-wcrtomb-w32-2.sh: New file.
9914         * tests/test-wcrtomb-w32-3.sh: New file.
9915         * tests/test-wcrtomb-w32-4.sh: New file.
9916         * tests/test-wcrtomb-w32-5.sh: New file.
9917         * tests/test-wcrtomb-w32.c: New file.
9918         * modules/wcrtomb-tests (Files): Add them.
9919         (Makefile.am): Arrange to run these tests.
9920         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9921         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9922
9923 2011-02-20  Bruno Haible  <bruno@clisp.org>
9924
9925         wcrtomb: Enhance test.
9926         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9927
9928 2011-02-20  Bruno Haible  <bruno@clisp.org>
9929
9930         mbrtowc: Tiny optimization.
9931         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9932
9933 2011-02-20  Jim Meyering  <meyering@redhat.com>
9934
9935         test-exclude.c: remove unmatched #endif
9936         * tests/test-exclude.c: Remove stray #endif, left over from
9937         the change of a week ago.
9938
9939 2011-02-19  Jim Meyering  <meyering@redhat.com>
9940
9941         git-version-gen: skip "-dirty" check when appropriate
9942         * build-aux/git-version-gen: Don't run any git commands when the
9943         version string comes from .tarball-version.  Prior to this, we
9944         would run git update-index --refresh even from a just-unpacked
9945         tarball directory, and that could affect a .git/ directory in a
9946         parent of the build directory.  Reported by Mike Frysinger.
9947
9948 2011-02-19  Bruno Haible  <bruno@clisp.org>
9949
9950         unictype/property-byname: Reduce the size of the 'data' segment.
9951         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9952
9953 2011-02-19  Bruno Haible  <bruno@clisp.org>
9954
9955         unictype/scripts: Reduce the size of the 'data' segment.
9956         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9957         '%pic'.
9958         * lib/unictype/scripts_byname.gperf: Regenerated.
9959
9960 2011-02-19  Bruno Haible  <bruno@clisp.org>
9961
9962         stdint: Update documentation.
9963         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9964
9965 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9966
9967         stdint: omit redundant check for wchar.h
9968         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9969         always tests whether wchar.h exists, so remove the now-redundant test.
9970
9971 2011-02-18  Bruno Haible  <bruno@clisp.org>
9972
9973         stdint: Cut dependency to module 'wchar'.
9974         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9975         include the necessary prerequisites.
9976         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9977         * modules/stdint (Depends-on): Remove wchar.
9978         (Makefile.am): Substitute HAVE_WCHAR_H.
9979         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9980
9981 2011-02-18  Eric Blake  <eblake@redhat.com>
9982
9983         longlong: skip, rather than fail, on cross-compilation
9984         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9985         when cross-compiling; regression from 2011-02-16.
9986
9987 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9988
9989         * NEWS: Mention 2011-02-08 change to stdlib.
9990
9991 2011-02-17  Bruno Haible  <bruno@clisp.org>
9992
9993         getloadavg: Add comments about platforms.
9994         * m4/getloadavg.m4: Add comment.
9995         * lib/getloadavg.c: Likewise.
9996
9997 2011-02-17  Bruno Haible  <bruno@clisp.org>
9998
9999         getloadavg: Fix link error on Solaris 2.6.
10000         * modules/getloadavg (Link): New section.
10001         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10002         linking test-getloadavg.
10003         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10004         getloadavg.
10005
10006 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10007
10008         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10009         It was 'int', but this doesn't match the IRIX 6.5 manual.
10010         Suggested by Bruno Haible in
10011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10012
10013 2011-02-17  Bruno Haible  <bruno@clisp.org>
10014
10015         havelib: Fix comments.
10016         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10017         change.
10018
10019 2011-02-17  Bruno Haible  <bruno@clisp.org>
10020
10021         havelib: Update config.rpath.
10022         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10023
10024 2011-02-17  Bruno Haible  <bruno@clisp.org>
10025
10026         getloadavg test: Add some plausibility checks.
10027         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10028         is improbable.
10029
10030 2011-02-16  Eric Blake  <eblake@redhat.com>
10031
10032         maintainer-makefile: make syntax-check a no-op from tarballs
10033         * top/maint.mk (no-vc-detected): New rule.
10034         (local-checks-available): Use it to avoid hanging if someone tries
10035         'make syntax-check' from a tarball.  Also append to any non-syntax
10036         checks already defined in cfg.mk.
10037
10038 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10039
10040         longlong: tune, particularly for common case of c99
10041
10042         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10043         or running anything if c99, or if unsigned long long int does not
10044         work.  In either case, we know the answer without further tests.
10045         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10046         it at most once, and use its results for both long long int and
10047         unsigned long long int.  This is more likely to be efficient in
10048         the common case where the program wants to check for both long
10049         long int and unsigned long long int.
10050         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10051         since the answer is already known.
10052
10053 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10054
10055         getloadavg: set errno
10056         * lib/getloadavg.c: Set errno when returning -1.  If no other
10057         error number looks appropriate, set it to ENOSYS if the getloadavg
10058         looks like it can't possibly ever work, ENOTSUP otherwise.
10059         Suggested by Bruno Haible in
10060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10061
10062         getloadavg: trim unused parts and speed up 'configure'
10063         * NEWS: Document this.
10064         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10065         always compiled if getloadavg is absent.
10066         Move test code to ...
10067         * tests/test-getloadavg.c: New file, containing previous
10068         contents of test from lib/getloadavg.c.  It also contains
10069         suggestions by Bruno Haible in
10070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10071         * modules/getloadavg-tests: New file.
10072         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10073         Do tests in the same order as they're needed for getloadavg.c.
10074         Omit setgid-related tests that generate symbols KMEM_GROUP,
10075         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10076         Do only the tests that are needed to see whether the system has
10077         getloadavg, moving the other tests into ...
10078         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10079         NLIST_NAME_UNION; nobody should be using it.  Do not define
10080         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10081         relevant, as the user of this module shouldn't care how getloadavg
10082         is implemented.
10083
10084         getloadavg: omit unused var
10085         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10086
10087 2011-02-15  Jim Meyering  <meyering@redhat.com>
10088
10089         doc: update users.txt
10090         * users.txt: Update iwhd's URL.
10091
10092 2011-02-13  Bruno Haible  <bruno@clisp.org>
10093
10094         Consistent macro naming for macros that use GCC __attribute__.
10095         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10096         _ATTRIBUTE_NONNULL_.
10097         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10098         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10099         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10100         ATTRIBUTE_DEPRECATED.
10101         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10102         ATTRIBUTE_NORETURN.
10103         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10104         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10105         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10106         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10107         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10108         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10109         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10110         ATTRIBUTE_SENTINEL.
10111         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10112         ATTRIBUTE_RETURN_CHECK.
10113         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10114         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10115         ATTRIBUTE_NORETURN.
10116         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10117         Reported by Paul Eggert.
10118
10119 2011-02-13  Bruno Haible  <bruno@clisp.org>
10120
10121         Don't interfere with a program's definition of __attribute__.
10122         * lib/argp.h (__attribute__): Remove definition.
10123         (_GL_ATTRIBUTE_FORMAT): New macro.
10124         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10125         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10126         (_GL_ATTRIBUTE_FORMAT): New macro.
10127         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10128         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10129         GCC 3 or newer.
10130         * lib/error.h (__attribute__): Remove definition.
10131         (_GL_ATTRIBUTE_FORMAT): New macro.
10132         (error, error_at_line): Use it.
10133         * lib/hash.h (__attribute__): Remove definition.
10134         (ATTRIBUTE_WUR): Update definition. Define always.
10135         * lib/openat.h (__attribute__): Remove definition.
10136         (ATTRIBUTE_NORETURN): Update definition. Define always.
10137         * lib/sigpipe-die.h (__attribute__): Remove definition.
10138         (ATTRIBUTE_NORETURN): Update definition. Define always.
10139         * lib/vasnprintf.h (__attribute__): Remove definition.
10140         (_GL_ATTRIBUTE_FORMAT): New macro.
10141         (asnprintf, vasnprintf): Use it.
10142         * lib/xalloc.h (__attribute__): Remove definition.
10143         (ATTRIBUTE_NORETURN): Update definition. Define always.
10144         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10145         * lib/xmemdup0.h (__attribute__): Remove definition.
10146         (ATTRIBUTE_NORETURN): Update definition. Define always.
10147         * lib/xprintf.h (__attribute__): Remove definition.
10148         (_GL_ATTRIBUTE_FORMAT): New macro.
10149         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10150         * lib/xstrtol.h (__attribute__): Remove definition.
10151         (ATTRIBUTE_NORETURN): Update definition. Define always.
10152         * lib/xvasprintf.h (__attribute__): Remove definition.
10153         (_GL_ATTRIBUTE_FORMAT): New macro.
10154         (xasprintf, xvasprintf): Use it.
10155         * tests/test-argmatch.c (__attribute__): Remove definition.
10156         (ATTRIBUTE_NORETURN): Update definition. Define always.
10157         * tests/test-exclude.c (__attribute__): Remove definition.
10158         (ATTRIBUTE_NORETURN): Update definition. Define always.
10159         Reported by Paul Eggert.
10160
10161 2011-02-13  Bruno Haible  <bruno@clisp.org>
10162
10163         mbrtowc: Add more tests for native Windows platforms.
10164         * tests/test-mbrtowc-w32-1.sh: New file.
10165         * tests/test-mbrtowc-w32-2.sh: New file.
10166         * tests/test-mbrtowc-w32-3.sh: New file.
10167         * tests/test-mbrtowc-w32-4.sh: New file.
10168         * tests/test-mbrtowc-w32-5.sh: New file.
10169         * tests/test-mbrtowc-w32.c: New file.
10170         * modules/mbrtowc-tests (Files): Add them.
10171         (Makefile.am): Arrange to run these tests.
10172         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10173         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10174
10175 2011-02-13  Bruno Haible  <bruno@clisp.org>
10176
10177         mbrtowc: Work around native Windows bug.
10178         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10179         guess when no suitable locale for testing was found.
10180         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10181
10182 2011-02-13  Bruno Haible  <bruno@clisp.org>
10183
10184         mbsinit: Work around mingw bug.
10185         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10186         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10187         Windows.
10188         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10189
10190 2011-02-13  Bruno Haible  <bruno@clisp.org>
10191
10192         mbsinit: Don't crash for a NULL argument.
10193         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10194         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10195
10196 2011-02-13  Bruno Haible  <bruno@clisp.org>
10197
10198         Don't interfere with a program's definition of __attribute__.
10199         * lib/stdio.in.h (__attribute__): Remove definition.
10200         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10201         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10202         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10203         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10204         * lib/string.in.h (__attribute__): Remove definition.
10205         Reported by Paul Eggert.
10206
10207 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10208
10209         stdlib: don't get in the way of non-GCC __attribute__
10210         See thread starting at
10211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10212         Revert previous stdlib change, installing the following instead:
10213         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10214         to get in the way of a non-GCC compiler that supports __attribute__.
10215         (_GL_ATTRIBUTE_RETURN): New macro.
10216         (_Exit): Use it instead of __attribute__.
10217
10218 2011-02-12  Bruno Haible  <bruno@clisp.org>
10219
10220         quotearg test: Avoid test failure on mingw.
10221         * tests/test-quotearg.sh: Convert the locale identifier from native
10222         Windows syntax to Unix syntax.
10223
10224 2011-02-12  Bruno Haible  <bruno@clisp.org>
10225
10226         setlocale: Prefer gnulib's override over libintl's override.
10227         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10228         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10229         GNULIB_defined_setlocale is set.
10230
10231 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10232
10233         stdlib: support non-GCC __attribute__
10234
10235         Fix a serious and tricky problem encountered when attempting to
10236         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10237         5.5, but it crashed due to memory corruption on Solaris 10 with
10238         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10239         bits that are otherwise zero.  This tagging is optional inside
10240         Emacs but is preferred and is used when __attribute__ ((__aligned
10241         (8))) works, as it does with both recent-enough GCC and with Sun C
10242         5.11.  However, Sun C 5.11 is not GCC and does not #define
10243         __GNUC__ and __GNUC_MINOR__.
10244
10245         When I added the getloadavg module to Emacs, it brought in
10246         stdlib.in.h, which contained this fragment:
10247
10248            #ifndef __attribute__
10249            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10250            #  define __attribute__(Spec)   /* empty */
10251            # endif
10252            #endif
10253
10254         When files that include <stdlib.h> were compiled with Sun C 5.11,
10255         the above code disabled __attribute__ ((__aligned (8))), which
10256         caused variables to not be properly aligned, which eventually led
10257         to the pointer corruption mentioned above.  (This was a bit hard
10258         to diagnose, unfortunately.)
10259
10260         Several "#define __attribute__(X) /* empty */" code snippets need
10261         to be eradicated from Gnulib to work with non-GCC compilers that
10262         support __attribute__.  The Autoconf way to do this is to test for
10263         each kind of attribute that we want support for, and selectively
10264         enable that in source code.
10265
10266         Fix this problem just for stdlib.h, by adding a test for the
10267         __noreturn__ attribute, and change stdlib.in.h to use that test
10268         when needed.  This technique can be easily generalized to the
10269         other *.in.h files and attributes, and a similar technique can be
10270         used for *.h and *.c files.  This patch is enough to solve the
10271         problem for Emacs + getloadavg, and I thought I'd publish it for
10272         feedback before undertaking further, similar fixes in other
10273         modules.
10274
10275         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10276         because it's not needed for stdlib.h.  It merely substitutes the
10277         value directly into stdlib.h.  We may well need to #define it, or
10278         similar symbols, for other modules, but it's nice to also have an
10279         option to not #define it for applications like Emacs that do not
10280         need it.
10281
10282         * lib/stdlib.in.h (__attribute__): Do not #define.
10283         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10284         be defined only if the _Exit module is also used.
10285         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10287         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10288         platforms.
10289         * modules/_Exit (Files): Add m4/attribute.m4.
10290         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10291         * m4/attribute.m4: New file.
10292
10293 2011-02-12  Bruno Haible  <bruno@clisp.org>
10294
10295         wcsrtombs: Work around bug on native Windows.
10296         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10297         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10298         instead of len.
10299         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10300
10301 2011-02-12  Bruno Haible  <bruno@clisp.org>
10302
10303         mbsrtowcs: Work around bug on native Windows.
10304         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10305         against mingw bug.
10306         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10307
10308 2011-02-12  Bruno Haible  <bruno@clisp.org>
10309
10310         Avoid setlocale bugs in tests.
10311         * modules/btowc (Dependencies): Add setlocale.
10312         * modules/c-strcase (Dependencies): Likewise.
10313         * modules/mbmemcasecmp (Dependencies): Likewise.
10314         * modules/mbmemcasecoll (Dependencies): Likewise.
10315         * modules/mbrtowc (Dependencies): Likewise.
10316         * modules/mbscasecmp (Dependencies): Likewise.
10317         * modules/mbscasestr (Dependencies): Likewise.
10318         * modules/mbschr (Dependencies): Likewise.
10319         * modules/mbscspn (Dependencies): Likewise.
10320         * modules/mbsinit (Dependencies): Likewise.
10321         * modules/mbsncasecmp (Dependencies): Likewise.
10322         * modules/mbsnrtowcs (Dependencies): Likewise.
10323         * modules/mbspbrk (Dependencies): Likewise.
10324         * modules/mbspcasecmp (Dependencies): Likewise.
10325         * modules/mbsrchr (Dependencies): Likewise.
10326         * modules/mbsrtowcs (Dependencies): Likewise.
10327         * modules/mbsspn (Dependencies): Likewise.
10328         * modules/mbsstr (Dependencies): Likewise.
10329         * modules/nl_langinfo (Dependencies): Likewise.
10330         * modules/quotearg (Dependencies): Likewise.
10331         * modules/unicase/locale-language (Dependencies): Likewise.
10332         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10333         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10334         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10335         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10336         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10337         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10338         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10339         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10340         * modules/vasnprintf-posix (Dependencies): Likewise.
10341         * modules/wcrtomb (Dependencies): Likewise.
10342         * modules/wcsnrtombs (Dependencies): Likewise.
10343         * modules/wcsrtombs (Dependencies): Likewise.
10344
10345 2011-02-12  Bruno Haible  <bruno@clisp.org>
10346
10347         setlocale: Workaround native Windows bug.
10348         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10349         succeeds but sets LC_CTYPE to "C", report a failure.
10350         * tests/test-setlocale2.sh: New file.
10351         * tests/test-setlocale2.c: New file.
10352         * modules/setlocale-tests (Files): Add the new files.
10353         (Makefile.am): Enable test-setlocale2.sh test.
10354         * doc/posix-functions/setlocale.texi: Mention workaround.
10355
10356 2011-02-11  Bruno Haible  <bruno@clisp.org>
10357
10358         Tests for module 'setlocale'.
10359         * modules/setlocale-tests: New file.
10360         * tests/test-setlocale1.sh: New file.
10361         * tests/test-setlocale1.c: New file.
10362
10363         New module 'setlocale'.
10364         * lib/locale.in.h (setlocale): New declaration.
10365         * lib/setlocale.c: New file, based on
10366         gettext/gettext-runtime/intl/setlocale.c.
10367         * m4/setlocale.m4: New file.
10368         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10369         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10370         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10371         REPLACE_SETLOCALE.
10372         * modules/setlocale: New file.
10373         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10374         * doc/posix-functions/setlocale.texi: Mention the new module.
10375
10376 2011-02-11  Bruno Haible  <bruno@clisp.org>
10377
10378         Prepare for locale dependent tests on mingw.
10379         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10380         because it has the wrong locale encoding.
10381         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10382         French_France.1252 instead of "fr".
10383         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10384         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10385         because it has the wrong locale encoding.
10386         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10387         native Windows, try Turkish_Turkey.65001.
10388         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10389         Chinese_China.54936.
10390
10391         Prepare for locale dependent tests on mingw.
10392         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10393         differently.
10394         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10395         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10396         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10397         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10398
10399 2011-02-11  Eric Blake  <eblake@redhat.com>
10400
10401         strptime: avoid compiler warnings
10402         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10403         compiler warnings about dead code.
10404         Reported by Daniel P. Berrange.
10405
10406 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10407
10408         doc: update users.txt
10409         * users.txt: Add rcs.
10410
10411 2011-02-10  John W. Eaton  <jwe@gnu.org>
10412
10413         doc: update users.txt
10414         * users.txt: Add octave.
10415
10416 2011-02-10  Jim Meyering  <meyering@redhat.com>
10417
10418         doc: update users.txt
10419         * users.txt: Add iwhd.
10420
10421 2011-02-09  Bruno Haible  <bruno@clisp.org>
10422
10423         gnulib-tool: Make copyright notice adjustment more robust.
10424         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10425         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10426         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10427         License".
10428         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10429
10430 2011-02-06  Bruno Haible  <bruno@clisp.org>
10431
10432         New module 'towctrans'.
10433         * modules/towctrans: New file.
10434         * lib/wctype.in.h (towctrans): New declaration.
10435         * lib/towctrans.c: New file.
10436         * lib/towctrans-impl.h: New file.
10437         * m4/towctrans.m4: New file.
10438         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10439         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10440         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10441         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10442         * doc/posix-functions/towctrans.texi: Mention the new module.
10443
10444 2011-02-06  Bruno Haible  <bruno@clisp.org>
10445
10446         New module 'wctrans'.
10447         * modules/wctrans: New file.
10448         * lib/wctype.in.h (wctrans): New declaration.
10449         * lib/wctrans.c: New file.
10450         * lib/wctrans-impl.h: New file.
10451         * m4/wctrans.m4: New file.
10452         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10453         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10454         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10455         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10456         * doc/posix-functions/wctrans.texi: Mention the new module.
10457
10458 2011-02-06  Bruno Haible  <bruno@clisp.org>
10459
10460         New module 'iswctype'.
10461         * modules/iswctype: New file.
10462         * lib/wctype.in.h (iswctype): New declaration.
10463         * lib/iswctype.c: New file.
10464         * lib/iswctype-impl.h: New file.
10465         * m4/iswctype.m4: New file.
10466         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10467         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10468         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10469         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10470         * doc/posix-functions/iswctype.texi: Mention the new module and the
10471         HP-UX 11.00 problem.
10472
10473 2011-02-06  Bruno Haible  <bruno@clisp.org>
10474
10475         New module 'wctype'.
10476         * modules/wctype: Change to represent the wctype() substitute.
10477         * lib/wctype.in.h (wctype): New declaration.
10478         * lib/wctype.c: New file.
10479         * lib/wctype-impl.h: New file.
10480         * m4/wctype.m4: New file.
10481         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10482         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10483         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10484         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10485         * doc/posix-functions/wctype.texi: Mention the new module and the
10486         HP-UX 11.00 problem.
10487
10488 2011-02-06  Bruno Haible  <bruno@clisp.org>
10489
10490         wctype-h: Ensure wctype_t and wctrans_t are defined.
10491         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10492         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10493         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10494         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10495         HAVE_WCTRANS_T.
10496         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10497
10498 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10499
10500         flock: fix license typo
10501
10502         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10503         omitted.
10504
10505 2011-02-08  Bruno Haible  <bruno@clisp.org>
10506
10507         Split large sed scripts, for HP-UX sed.
10508         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10509         to avoid HP-UX limit of 99 commands, in the near future.
10510         * modules/stdlib (Makefile.am): Likewise.
10511         * modules/unistd (Makefile.am): Likewise.
10512         * modules/wchar (Makefile.am): Likewise.
10513         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10514         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10515         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10516
10517 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10518             Bruno Haible  <bruno@clisp.org>
10519
10520         stdlib: improve random_r modularization
10521         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10522         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10523         you also need the random_r module to get this material right.
10524         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10525         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10526         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10527
10528 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10529
10530         stdlib: don't depend on stdint
10531         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10532         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10533         be independent of whether stdint.h is needed.
10534         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10535         here, instead of ...
10536         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10537         struct random_data should be using the random_r module, not just
10538         the stdlib module (which wouldn't make sense: what package needs
10539         just struct random_data without also needing random_r?).
10540         * modules/stdlib (Depends-on): Remove stdint.
10541
10542         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10543         See the thread rooted at
10544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10545         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10546         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10547         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10548         __VMS)); previously it was always included (via fcntl--.h).
10549         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10550         hand; this is good enough for load averages.  Also, do not use
10551         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10552         flags directly if available and don't bother otherwise.  (Packages
10553         that need the extra reliability should use the modules that define
10554         these flags on older platforms that lack them.)
10555         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10556         fcntl-safer.
10557
10558 2011-02-08  Jim Meyering  <meyering@redhat.com>
10559
10560         di-set.h, ino-map.h: add multiple-inclusion guard
10561         Technically, the guard is required only for ino-map.h, due to its
10562         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10563         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10564         * lib/ino-map.h: Likewise.
10565
10566 2011-02-06  Bruno Haible  <bruno@clisp.org>
10567
10568         iswblank: Ensure declaration on glibc systems.
10569         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10570         * modules/iswblank (Dependencies): Add 'extensions'.
10571         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10572
10573 2011-02-06  Bruno Haible  <bruno@clisp.org>
10574
10575         New module 'iswblank'.
10576         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10577         * modules/iswblank: New file.
10578         * modules/wctype-h (Files): Remove lib/iswblank.c.
10579         (Makefile.am): Substitute GNULIB_ISWBLANK.
10580         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10581         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10582         (gl_WCTYPE_H_DEFAULTS): New macro.
10583         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10584         * modules/iswblank-tests: New file.
10585         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10586         * tests/test-wctype-h.c (main): Remove iswblank tests.
10587         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10588         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10589         of 'wctype-h'.
10590         * NEWS: Mention the change.
10591         * modules/mbchar (Depends-on): Add iswblank.
10592
10593 2011-02-08  Bruno Haible  <bruno@clisp.org>
10594
10595         di-set tests: Refactor.
10596         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10597         unnecessary includes.
10598         (ASSERT): Remove macro.
10599         (main): Make C90 compliant by avoiding variable declaration after
10600         statement.
10601         * modules/di-set-tests (Files): Add tests/macros.h.
10602
10603 2011-02-08  Bruno Haible  <bruno@clisp.org>
10604
10605         ino-map tests: Refactor.
10606         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10607         unnecessary includes.
10608         (ASSERT): Remove macro.
10609         (main): Make C90 compliant by avoiding variable declaration after
10610         statement.
10611         * modules/ino-map-tests (Files): Add tests/macros.h.
10612
10613 2011-02-08  Jim Meyering  <meyering@redhat.com>
10614
10615         di-set: add "const" to a cast
10616         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10617         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10618
10619 2011-02-06  Bruno Haible  <bruno@clisp.org>
10620
10621         Rename module 'wctype' to 'wctype-h'.
10622         * modules/wctype-h: Renamed from modules/wctype.
10623         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10624         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10625         (Files, Depends-on, Makefile.am): Update.
10626         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10627         (Files, Makefile.am): Update.
10628         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10629         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10630         * doc/posix-headers/wctype.texi: Update.
10631         * doc/posix-functions/iswalnum.texi: Update.
10632         * doc/posix-functions/iswalpha.texi: Update.
10633         * doc/posix-functions/iswblank.texi: Update.
10634         * doc/posix-functions/iswcntrl.texi: Update.
10635         * doc/posix-functions/iswdigit.texi: Update.
10636         * doc/posix-functions/iswgraph.texi: Update.
10637         * doc/posix-functions/iswlower.texi: Update.
10638         * doc/posix-functions/iswprint.texi: Update.
10639         * doc/posix-functions/iswpunct.texi: Update.
10640         * doc/posix-functions/iswspace.texi: Update.
10641         * doc/posix-functions/iswupper.texi: Update.
10642         * doc/posix-functions/iswxdigit.texi: Update.
10643         * doc/posix-functions/towlower.texi: Update.
10644         * doc/posix-functions/towupper.texi: Update.
10645         * NEWS: Mention the change.
10646         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10647         * modules/mbchar (Dependencies): Likewise.
10648         * modules/mbswidth (Dependencies): Likewise.
10649         * modules/quotearg (Dependencies): Likewise.
10650         * modules/regex (Dependencies): Likewise.
10651         * modules/wcscasecmp (Dependencies): Likewise.
10652         * modules/wcsncasecmp (Dependencies): Likewise.
10653         * modules/wcwidth (Dependencies): Likewise.
10654
10655 2011-02-06  Bruno Haible  <bruno@clisp.org>
10656
10657         New module 'wcswidth'.
10658         * modules/wcswidth: New file.
10659         * lib/wchar.in.h (wcswidth): New declaration.
10660         * lib/wcswidth.c: New file.
10661         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10662         * m4/wcswidth.m4: New file.
10663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10665         REPLACE_WCSWIDTH.
10666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10667         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10668         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10669         * doc/posix-functions/wcswidth.texi: Mention the new module.
10670
10671 2011-02-06  Bruno Haible  <bruno@clisp.org>
10672
10673         New module 'wcstok'.
10674         * modules/wcstok: New file.
10675         * lib/wchar.in.h (wcstok): New declaration.
10676         * lib/wcstok.c: New file.
10677         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10678         * m4/wcstok.m4: New file.
10679         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10680         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10681         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10682         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10683         * doc/posix-functions/wcstok.texi: Mention the new module.
10684
10685 2011-02-06  Bruno Haible  <bruno@clisp.org>
10686
10687         New module 'wcsstr'.
10688         * modules/wcsstr: New file.
10689         * lib/wchar.in.h (wcsstr): New declaration.
10690         * lib/wcsstr.c: New file.
10691         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10692         * m4/wcsstr.m4: New file.
10693         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10694         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10695         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10696         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10697         * doc/posix-functions/wcsstr.texi: Mention the new module.
10698
10699 2011-02-06  Bruno Haible  <bruno@clisp.org>
10700
10701         New module 'wcspbrk'.
10702         * modules/wcspbrk: New file.
10703         * lib/wchar.in.h (wcspbrk): New declaration.
10704         * lib/wcspbrk.c: New file.
10705         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10706         * m4/wcspbrk.m4: New file.
10707         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10708         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10709         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10710         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10711         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10712
10713 2011-02-06  Bruno Haible  <bruno@clisp.org>
10714
10715         New module 'wcsspn'.
10716         * modules/wcsspn: New file.
10717         * lib/wchar.in.h (wcsspn): New declaration.
10718         * lib/wcsspn.c: New file.
10719         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10720         * m4/wcsspn.m4: New file.
10721         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10722         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10723         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10724         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10725         * doc/posix-functions/wcsspn.texi: Mention the new module.
10726
10727 2011-02-06  Bruno Haible  <bruno@clisp.org>
10728
10729         New module 'wcscspn'.
10730         * modules/wcscspn: New file.
10731         * lib/wchar.in.h (wcscspn): New declaration.
10732         * lib/wcscspn.c: New file.
10733         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10734         * m4/wcscspn.m4: New file.
10735         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10736         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10737         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10738         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10739         * doc/posix-functions/wcscspn.texi: Mention the new module.
10740
10741 2011-02-06  Bruno Haible  <bruno@clisp.org>
10742
10743         New module 'wcsrchr'.
10744         * modules/wcsrchr: New file.
10745         * lib/wchar.in.h (wcsrchr): New declaration.
10746         * lib/wcsrchr.c: New file.
10747         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10748         * m4/wcsrchr.m4: New file.
10749         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10750         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10751         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10752         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10753         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10754
10755 2011-02-06  Bruno Haible  <bruno@clisp.org>
10756
10757         New module 'wcschr'.
10758         * modules/wcschr: New file.
10759         * lib/wchar.in.h (wcschr): New declaration.
10760         * lib/wcschr.c: New file.
10761         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10762         * m4/wcschr.m4: New file.
10763         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10764         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10765         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10766         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10767         * doc/posix-functions/wcschr.texi: Mention the new module.
10768
10769 2011-02-06  Bruno Haible  <bruno@clisp.org>
10770
10771         New module 'wcsdup'.
10772         * modules/wcsdup: New file.
10773         * lib/wchar.in.h (wcsdup): New declaration.
10774         * lib/wcsdup.c: New file.
10775         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10776         * m4/wcsdup.m4: New file.
10777         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10778         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10779         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10780         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10781         * doc/posix-functions/wcsdup.texi: Mention the new module.
10782
10783 2011-02-06  Bruno Haible  <bruno@clisp.org>
10784
10785         New module 'wcsxfrm'.
10786         * modules/wcsxfrm: New file.
10787         * lib/wchar.in.h (wcsxfrm): New declaration.
10788         * lib/wcsxfrm.c: New file.
10789         * lib/wcsxfrm-impl.h: New file.
10790         * m4/wcsxfrm.m4: New file.
10791         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10792         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10793         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10794         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10795         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10796
10797 2011-02-06  Bruno Haible  <bruno@clisp.org>
10798
10799         New module 'wcscoll'.
10800         * modules/wcscoll: New file.
10801         * lib/wchar.in.h (wcscoll): New declaration.
10802         * lib/wcscoll.c: New file.
10803         * lib/wcscoll-impl.h: New file.
10804         * m4/wcscoll.m4: New file.
10805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10808         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10809         * doc/posix-functions/wcscoll.texi: Mention the new module.
10810
10811 2011-02-06  Bruno Haible  <bruno@clisp.org>
10812
10813         New module 'wcsncasecmp'.
10814         * modules/wcsncasecmp: New file.
10815         * lib/wchar.in.h (wcsncasecmp): New declaration.
10816         * lib/wcsncasecmp.c: New file.
10817         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10818         * m4/wcsncasecmp.m4: New file.
10819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10821         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10822         HAVE_WCSNCASECMP.
10823         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10824         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10825
10826 2011-02-06  Bruno Haible  <bruno@clisp.org>
10827
10828         New module 'wcscasecmp'.
10829         * modules/wcscasecmp: New file.
10830         * lib/wchar.in.h (wcscasecmp): New declaration.
10831         * lib/wcscasecmp.c: New file.
10832         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10833         * m4/wcscasecmp.m4: New file.
10834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10837         HAVE_WCSCASECMP.
10838         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10839         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10840
10841 2011-02-05  Bruno Haible  <bruno@clisp.org>
10842
10843         New module 'wcsncmp'.
10844         * modules/wcsncmp: New file.
10845         * lib/wchar.in.h (wcsncmp): New declaration.
10846         * lib/wcsncmp.c: New file.
10847         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10848         * m4/wcsncmp.m4: New file.
10849         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10850         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10851         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10852         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10853         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10854
10855 2011-02-05  Bruno Haible  <bruno@clisp.org>
10856
10857         New module 'wcscmp'.
10858         * modules/wcscmp: New file.
10859         * lib/wchar.in.h (wcscmp): New declaration.
10860         * lib/wcscmp.c: New file.
10861         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10862         * m4/wcscmp.m4: New file.
10863         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10864         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10865         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10866         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10867         * doc/posix-functions/wcscmp.texi: Mention the new module.
10868
10869 2011-02-05  Bruno Haible  <bruno@clisp.org>
10870
10871         New module 'wcsncat'.
10872         * modules/wcsncat: New file.
10873         * lib/wchar.in.h (wcsncat): New declaration.
10874         * lib/wcsncat.c: New file.
10875         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10876         * m4/wcsncat.m4: New file.
10877         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10878         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10879         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10880         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10881         * doc/posix-functions/wcsncat.texi: Mention the new module.
10882
10883 2011-02-05  Bruno Haible  <bruno@clisp.org>
10884
10885         New module 'wcscat'.
10886         * modules/wcscat: New file.
10887         * lib/wchar.in.h (wcscat): New declaration.
10888         * lib/wcscat.c: New file.
10889         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10890         * m4/wcscat.m4: New file.
10891         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10892         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10893         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10894         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10895         * doc/posix-functions/wcscat.texi: Mention the new module.
10896
10897 2011-02-05  Bruno Haible  <bruno@clisp.org>
10898
10899         New module 'wcpncpy'.
10900         * modules/wcpncpy: New file.
10901         * lib/wchar.in.h (wcpncpy): New declaration.
10902         * lib/wcpncpy.c: New file.
10903         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10904         * m4/wcpncpy.m4: New file.
10905         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10906         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10907         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10908         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10909         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10910
10911 2011-02-05  Bruno Haible  <bruno@clisp.org>
10912
10913         New module 'wcsncpy'.
10914         * modules/wcsncpy: New file.
10915         * lib/wchar.in.h (wcsncpy): New declaration.
10916         * lib/wcsncpy.c: New file.
10917         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10918         * m4/wcsncpy.m4: New file.
10919         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10920         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10921         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10922         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10923         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10924
10925 2011-02-05  Bruno Haible  <bruno@clisp.org>
10926
10927         New module 'wcpcpy'.
10928         * modules/wcpcpy: New file.
10929         * lib/wchar.in.h (wcpcpy): New declaration.
10930         * lib/wcpcpy.c: New file.
10931         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10932         * m4/wcpcpy.m4: New file.
10933         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10934         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10935         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10936         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10937         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10938
10939 2011-02-05  Bruno Haible  <bruno@clisp.org>
10940
10941         New module 'wcscpy'.
10942         * modules/wcscpy: New file.
10943         * lib/wchar.in.h (wcscpy): New declaration.
10944         * lib/wcscpy.c: New file.
10945         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10946         * m4/wcscpy.m4: New file.
10947         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10948         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10949         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10950         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10951         * doc/posix-functions/wcscpy.texi: Mention the new module.
10952
10953 2011-02-05  Bruno Haible  <bruno@clisp.org>
10954
10955         New module 'wcsnlen'.
10956         * modules/wcsnlen: New file.
10957         * lib/wchar.in.h (wcsnlen): New declaration.
10958         * lib/wcsnlen.c: New file.
10959         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10960         * m4/wcsnlen.m4: New file.
10961         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10962         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10963         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10964         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10965         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10966
10967 2011-02-05  Bruno Haible  <bruno@clisp.org>
10968
10969         New module 'wcslen'.
10970         * modules/wcslen: New file.
10971         * lib/wchar.in.h (wcslen): New declaration.
10972         * lib/wcslen.c: New file.
10973         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10974         * m4/wcslen.m4: New file.
10975         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10976         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10977         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10978         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10979         * doc/posix-functions/wcslen.texi: Mention the new module.
10980
10981 2011-02-05  Bruno Haible  <bruno@clisp.org>
10982
10983         New module 'wmemset'.
10984         * modules/wmemset: New file.
10985         * lib/wchar.in.h (wmemset): New declaration.
10986         * lib/wmemset.c: New file.
10987         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10988         * m4/wmemset.m4: New file.
10989         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10990         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10991         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10992         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10993         * doc/posix-functions/wmemset.texi: Mention the new module.
10994
10995 2011-02-05  Bruno Haible  <bruno@clisp.org>
10996
10997         New module 'wmemmove'.
10998         * modules/wmemmove: New file.
10999         * lib/wchar.in.h (wmemmove): New declaration.
11000         * lib/wmemmove.c: New file.
11001         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11002         * m4/wmemmove.m4: New file.
11003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11005         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11006         HAVE_WMEMMOVE.
11007         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11008         * doc/posix-functions/wmemmove.texi: Mention the new module.
11009
11010 2011-02-05  Bruno Haible  <bruno@clisp.org>
11011
11012         New module 'wmemcpy'.
11013         * modules/wmemcpy: New file.
11014         * lib/wchar.in.h (wmemcpy): New declaration.
11015         * lib/wmemcpy.c: New file.
11016         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11017         * m4/wmemcpy.m4: New file.
11018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11020         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11021         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11022         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11023
11024 2011-02-05  Bruno Haible  <bruno@clisp.org>
11025
11026         New module 'wmemcmp'.
11027         * modules/wmemcmp: New file.
11028         * lib/wchar.in.h (wmemcmp): New declaration.
11029         * lib/wmemcmp.c: New file.
11030         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11031         * m4/wmemcmp.m4: New file.
11032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11034         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11035         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11036         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11037
11038 2011-02-07  Jim Meyering  <meyering@redhat.com>
11039
11040         di-set, ino-map: new modules, from coreutils
11041         * lib/di-set.c: New file.
11042         * lib/di-set.h: Likewise.
11043         * lib/ino-map.c: Likewise.
11044         * lib/ino-map.h: Likewise.
11045         * modules/di-set: Likewise.
11046         * modules/di-set-tests: Likewise.
11047         * modules/ino-map: Likewise.
11048         * modules/ino-map-tests: Likewise.
11049         * tests/test-di-set.c: Likewise.
11050         * tests/test-ino-map.c: Likewise.
11051
11052 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11053
11054         getloadavg: merge minor changes from Emacs
11055
11056         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11057         (getloadavg): Use memset, not bzero.
11058
11059         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11060         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11061         clash (bug#86).
11062
11063 2010-11-14  Bruno Haible  <bruno@clisp.org>
11064
11065         Allow multiple gnulib generated replacements to coexist.
11066         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11067         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11068         * lib/langinfo.in.h (nl_item): Likewise.
11069         * lib/math.in.h (_NaN, NAN): Likewise.
11070         * lib/netdb.in.h (struct addrinfo): Likewise.
11071         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11072         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11073         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11074         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11075         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11076         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11077         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11078         pthread_mutexattr_init, pthread_mutexattr_settype,
11079         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11080         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11081         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11082         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11083         * lib/sched.in.h (struct sched_param): Likewise.
11084         * lib/se-selinux.in.h (security_class_t, security_context_t,
11085         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11086         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11087         lsetfilecon, fsetfilecon, security_check_context,
11088         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11089         Likewise.
11090         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11091         Likewise.
11092         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11093         _gl_function_taking_int_returning_void_t, union sigval,
11094         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11095         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11096         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11097         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11098         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11099         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11100         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11101         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11102         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11103         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11104         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11105         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11106         socklen_t, rpl_fd_isset): Likewise.
11107         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11108         * lib/sys_time.in.h (struct timeval): Likewise.
11109         * lib/sys_times.in.h (struct tms): Likewise.
11110         * lib/sys_utsname.in.h (struct utsname):
11111         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11112         * lib/unistd.in.h (getpagesize): Likewise.
11113         * lib/wchar.in.h (mbstate_t): Likewise.
11114         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11115         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11116         towlower, towupper): Likewise.
11117         Reported by Sam Steingold <sds@gnu.org>.
11118
11119 2011-02-05  Eric Blake  <eblake@redhat.com>
11120
11121         unsetenv: work around Haiku issues
11122         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11123         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11124
11125 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11126
11127         libposix: avoid calling error() within libposix
11128         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11129         is defined.
11130
11131 2011-02-05  Eric Blake  <eblake@redhat.com>
11132
11133         strerror_r-posix: port to cygwin
11134         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11135         implementation.
11136         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11137         * tests/test-strerror_r.c (main): Fix test.
11138         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11139         issue.
11140
11141 2011-02-05  Bruno Haible  <bruno@clisp.org>
11142
11143         New module 'wmemchr'.
11144         * modules/wmemchr: New file.
11145         * lib/wchar.in.h (wmemchr): New declaration.
11146         * lib/wmemchr.c: New file.
11147         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11148         * m4/wmemchr.m4: New file.
11149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11151         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11152         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11153         * doc/posix-functions/wmemchr.texi: Mention the new module.
11154
11155 2011-02-04  Eric Blake  <eblake@redhat.com>
11156
11157         fdopendir: detect FreeBSD bug
11158         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11159         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11160
11161 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11162
11163         stdbool: do not define HAVE_STDBOOL_H
11164         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11165         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11166         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11167         imported from the latest Autoconf git.  It was motivated by Emacs,
11168         which uses gnulib but does not need HAVE_STDBOOL_H.
11169
11170 2011-02-04  Bruno Haible  <bruno@clisp.org>
11171
11172         wcsnrtombs: Prepare for new module wwcsnrtombs.
11173         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11174         * lib/wcsnrtombs.c: Include it.
11175         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11176
11177         wcsrtombs: Prepare for new module wwcsrtombs.
11178         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11179         * lib/wcsrtombs.c: Include it.
11180         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11181
11182         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11183         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11184         * lib/mbsnrtowcs.c: Include it.
11185         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11186
11187         mbsrtowcs: Prepare for new module mbsrtowwcs.
11188         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11189         * lib/mbsrtowcs.c: Include it.
11190         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11191
11192 2011-02-04  Bruno Haible  <bruno@clisp.org>
11193
11194         vasnprintf: Reduce use of malloc for small format strings.
11195         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11196         (arguments): Add room for the first 7 arguments.
11197         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11198         (char_directives, u8_directives, u16_directives, u32_directives): Add
11199         room for the first 7 directives.
11200         * lib/printf-parse.c: Include <string.h>.
11201         (PRINTF_PARSE): Change memory handling code so that it uses the first
11202         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11203         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11204         Reported by Pádraig Brady <P@draigbrady.com>.
11205
11206 2011-01-31  Eric Blake  <eblake@redhat.com>
11207
11208         dup2: work around Haiku bug
11209         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11210         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11211         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11212         * tests/test-dup2.c (main): Enhance test.
11213
11214 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11215
11216         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11217         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11218         declared by eglibc 2.11.2.
11219         * lib/stdio.in.h: Likewise.
11220
11221 2011-01-31  Eric Blake  <eblake@redhat.com>
11222
11223         ignore-value: add missing test dependency
11224         * tests/test-ignore-value.c: Revert previous change; stdio.h
11225         provides off_t.
11226         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11227
11228 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11229
11230         mktime: clarify long_int width checking
11231         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11232         the top level, to make it clearer that the assumption about
11233         long_int width is being checked.  See
11234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11235
11236 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11237
11238         ignore-value: Fix self-test.
11239         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11240
11241 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11242
11243         TYPE_MAXIMUM: avoid theoretically undefined behavior
11244         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11245         negative number, which the C Standard says has undefined behavior.
11246         In practice this is not a problem, but might as well do it by the book.
11247         Reported by Rich Felker and Eric Blake; see
11248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11249         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11250         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11251         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11252         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11253         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11254         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11255
11256         mktime: #undef mktime before #defining it
11257         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11258
11259         mktime: systematically normalize tm_isdst comparisons
11260         * lib/mktime.c (isdst_differ): New function.
11261         (__mktime_internal): Use it systematically for all isdst comparisons.
11262         This completes the fix for libc BZ #6723, and removes the need for
11263         normalizing tm_isdst.  See
11264         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11265         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11266
11267         mktime: fix some integer overflow issues and sidestep the rest
11268
11269         This was prompted by a bug report by Benjamin Lindner for MinGW
11270         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11271         His bug is due to signed integer overflow (0 - INT_MIN), and I
11272         I scanned through mktime.c looking for other integer overflow
11273         problems, fixing all the bugs I found.
11274
11275         Although the C Standard says the resulting code is still not safe
11276         in the presence of integer overflow, in practice it should be good
11277         enough for all real-world two's-complement implementations, except
11278         for debugging environments that deliberately trap on integer
11279         overflow (e.g., gcc -ftrapv).
11280
11281         * lib/mktime.c (WRAPV): New macro.
11282         (SHR): Also check that long_int and time_t shift right in the
11283         usual way, before using the fast-but-unportable method.
11284         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11285         used.  The code already assumed two's complement, so there's
11286         no need to test for alternatives.  All uses removed.
11287         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11288         the C standard.  Problem reported by Rich Felker in
11289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11290         (twos_complement_arithmetic): Also check long_int and time_t.
11291         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11292         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11293         (__mktime_internal): Avoid integer overflow with unary subtraction
11294         in two instances where -1 - X is an adequate replacement for -X,
11295         since the calculations are approximate.
11296
11297 2011-01-29  Eric Blake  <eblake@redhat.com>
11298
11299         mktime: avoid infinite loop
11300         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11301         type; behavior is still undefined but portable to all known targets.
11302         Reported by Rich Felker.
11303
11304 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11305
11306         rename, unlink, same-inode: Relicense.
11307         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11308         * modules/unlink (License): Likewise.
11309         * modules/same-inode (License): Likewise.
11310
11311 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11312
11313         mktime: avoid problems on NetBSD 5 / i386
11314         * lib/mktime.c (long_int): New type.  This works around a problem
11315         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11316         but time_t is 64 bits, and where I expect the existing code is
11317         wrong in some cases.
11318         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11319         (ydhms_diff): Bring back the compile-time check for wide-enough
11320         year and yday.
11321
11322         mktime: fix misspelling in comment
11323         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11324         This merges all recent glibc changes of importance.
11325
11326 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11327
11328         move-if-change: cope with concurrent mv of identical file.
11329         * build-aux/move-if-change (CMPPROG): Accept environment
11330         variable as an override for `cmp'.
11331         (usage): Document CMPPROG.
11332         Adjust comparison to drop stdout.  Cope with failure of mv if
11333         the target file exists and is identical to the source, for
11334         parallel builds.
11335         Report from H.J. Lu against binutils in PR binutils/12283.
11336
11337 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11338
11339         * users.txt: Mention sharutils.
11340
11341 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11342
11343         * users.txt: Mention OATH Toolkit.
11344
11345 2011-01-27  Bruno Haible  <bruno@clisp.org>
11346
11347         Prepare for supporting FreeBSD 10.
11348         * build-aux/config.libpath: Remove handling of freebsd1*.
11349
11350 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11351
11352         Prepare for supporting FreeBSD 10.
11353         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11354         match FreeBSD 10.0.
11355
11356 2011-01-27  Bruno Haible  <bruno@clisp.org>
11357
11358         vma-iter, get-rusage-as: Add OpenBSD support.
11359         * modules/vma-iter (configure.ac): Test for mquery.
11360         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11361         * lib/vma-iter.c: Include <sys/mman.h>.
11362         (vma_iterate): Add an implementation based on mquery().
11363         * lib/resource-ext.h (get_rusage_as): Update comments.
11364         * lib/get-rusage-as.c: Likewise.
11365         * lib/get-rusage-data.c: Likewise.
11366
11367 2011-01-26  Karl Berry  <karl@gnu.org>
11368
11369         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11370         variables to make it easier to override the makeinfo program used.
11371
11372 2011-01-26  Eric Blake  <eblake@redhat.com>
11373
11374         fcntl: work around Haiku F_DUPFD bugs
11375         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11376         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11377         cloexec bit on duplication.
11378         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11379
11380 2011-01-26  Bruno Haible  <bruno@clisp.org>
11381
11382         Enable memory leak tests on AIX.
11383         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11384         * tests/test-fprintf-posix3.c (main): Likewise.
11385
11386 2011-01-26  Bruno Haible  <bruno@clisp.org>
11387
11388         Tests for module 'get-rusage-data'.
11389         * modules/get-rusage-data-tests: New file.
11390         * tests/test-get-rusage-data.c: New file.
11391
11392         New module 'get-rusage-data'.
11393         * lib/resource-ext.h (get_rusage_data): New declaration.
11394         * lib/get-rusage-data.c: New file.
11395         * modules/get-rusage-data: New file.
11396
11397 2011-01-25  Bruno Haible  <bruno@clisp.org>
11398
11399         get-rusage-as: Allow for easier testing.
11400         * lib/resource-ext.h (get_rusage_as): Add comment.
11401         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11402         (main): New function for interactive testing.
11403
11404 2011-01-25  Bruno Haible  <bruno@clisp.org>
11405
11406         vma-iter: Treat Haiku like BeOS.
11407         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11408         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11409
11410 2011-01-25  Eric Blake  <eblake@redhat.com>
11411
11412         c-stack: fix regression on cygwin when libsigsegv is present
11413         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11414
11415 2011-01-24  Bruno Haible  <bruno@clisp.org>
11416
11417         vma-iter: Avoid empty intervals.
11418         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11419         on an empty interval.
11420
11421 2011-01-24  Jim Meyering  <meyering@redhat.com>
11422
11423         u64: remove unnecessary #include
11424         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11425
11426 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11427
11428         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11429         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11430
11431 2011-01-23  Bruno Haible  <bruno@clisp.org>
11432
11433         New module 'vma-iter'.
11434         * lib/vma-iter.h: New file.
11435         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11436         * modules/vma-iter: New file.
11437         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11438         for get_rusage_as_via_iterator.
11439         (vma_iterate_callback): New function.
11440         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11441         * modules/get-rusage-as (Depends-on): Add vma-iter.
11442
11443 2011-01-23  Bruno Haible  <bruno@clisp.org>
11444
11445         uninorm: Tweak includes.
11446         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11447         Reported by Jim Meyering.
11448
11449 2011-01-23  Bruno Haible  <bruno@clisp.org>
11450
11451         get-rusage-as: Improve on NetBSD.
11452         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11453         /proc, like on FreeBSD.
11454
11455 2011-01-23  Jim Meyering  <meyering@redhat.com>
11456
11457         xreadlink.h: remove unnecessary #include
11458         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11459
11460         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11461         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11462
11463 2011-01-23  Bruno Haible  <bruno@clisp.org>
11464
11465         get-rusage-as: Fix bug.
11466         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11467         original limit when aborting the first loop.
11468
11469 2011-01-23  Bruno Haible  <bruno@clisp.org>
11470
11471         wctype: Ensure valid C syntax.
11472         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11473         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11474
11475 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11476
11477         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11479         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11480         as they are needed only for configure's test case.
11481         This removes two unnecessary symbols from config.h.
11482
11483         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11484         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11485         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11486         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11487         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11488         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11489         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11490         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11491         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11492         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11493         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11494         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11495         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11496         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11497         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11498         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11499         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11500         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11501
11502 2011-01-21  Eric Blake  <eblake@redhat.com>
11503
11504         maintainer-makefile: work with older git for submodule check
11505         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11506         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11507         Reported by Matthias Bolte.
11508
11509         bootstrap: minor portability fixes
11510         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11511         (usage): Omit leading capital and trailing . on help phrases, per
11512         GNU Coding Standards.
11513         (check_versions, top level): Prefix messages with script name.
11514
11515 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11516
11517         bootstrap: support --no-git option
11518         * build-aux/bootstrap: Add --no-git option, to be used when
11519         --gnulib-srcdir points to the exact desired checkout.
11520
11521 2011-01-21  Eric Blake  <eblake@redhat.com>
11522
11523         strerror_r-posix: work with glibc 2.13
11524         * lib/strerror_r.c (strerror_r): Fix return type.
11525
11526 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11527             Bruno Haible  <bruno@clisp.org>
11528
11529         uN_strstr: New unit tests.
11530         * modules/unistr/u8-strstr-tests: New file.
11531         * modules/unistr/u16-strstr-tests: New file.
11532         * modules/unistr/u32-strstr-tests: New file.
11533         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11534         * tests/unistr/test-u8-strstr.c: New file.
11535         * tests/unistr/test-u16-strstr.c: New file.
11536         * tests/unistr/test-u32-strstr.c: New file.
11537
11538 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11539             Bruno Haible  <bruno@clisp.org>
11540
11541         Make uN_strstr functions O(n) worst-case.
11542         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11543         16-bit and 32-bit unit cases, use the unibyte algorithm from
11544         lib/mbsstr.c.
11545         * lib/unistr/u8-strstr.c: Include <string.h>.
11546         (UNIT_IS_UINT8_T): New macro.
11547         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11548         (U_STRLEN, U_STRNLEN): New macros.
11549         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11550         (U_STRLEN, U_STRNLEN): New macros.
11551         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11552         (configure.ac): Update required libunistring version.
11553         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11554         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11555         malloca.
11556         (configure.ac): Update required libunistring version.
11557         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11558         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11559         malloca.
11560         (configure.ac): Update required libunistring version.
11561
11562 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11563             Bruno Haible  <bruno@clisp.org>
11564
11565         Prepare for faster uN_strstr functions.
11566         * lib/str-kmp.h: Support definable UNITs.
11567         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11568         needle_len argument.
11569         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11570         * lib/mbscasestr.c (mbscasestr): Likewise.
11571
11572 2011-01-21  Pádraig Brady <P@draigBrady.com>
11573
11574         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11575         * tests/test-malloca.c (main): Unset the environment variable
11576         to greatly speed up the test.
11577         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11578         * modules/malloca-tests: Depend on unsetenv.
11579
11580 2011-01-21  Pádraig Brady <P@draigBrady.com>
11581
11582         ignore-value: remove stdint dependency
11583         * lib/ignore-value.h: Remove <stdint.h>
11584         * modules/ignore-value: Remove stdint dependency.
11585
11586 2011-01-21  Jim Meyering  <meyering@redhat.com>
11587
11588         maint.mk: adjust variable name to be consistent with other gl_ vars
11589         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11590         to be lower case.
11591
11592 2011-01-20  Jim Meyering  <meyering@redhat.com>
11593
11594         maint.mk: make "check" depend on public-submodule-commit by default
11595         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11596
11597 2011-01-20  Bruno Haible  <bruno@clisp.org>
11598
11599         mbfile, mbiter: Complete change from 2008-12-21.
11600         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11601         * m4/mbiter.m4 (gl_MBITER): Likewise.
11602
11603 2011-01-20  Jim Meyering  <meyering@redhat.com>
11604
11605         init.sh: insert space between each function name and "()"
11606         * tests/init.sh: Make it a little easier to see that a function's
11607         name is "warn_", and not "warn" when looking at the first part of
11608         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11609
11610 2011-01-20  Jim Meyering  <meyering@redhat.com>
11611
11612         mountlist: clean up code formatting
11613         * lib/mountlist.c (read_file_system_list): Split a long line,
11614         correct bracing style, use NULL in place of "(struct statfs *)0",
11615         don't parenthesize return value, add spaces around "=" and after
11616         ";-in-for-stmt".
11617
11618 2011-01-14  Markus Duft <mduft@gentoo.org>
11619
11620         mountlist: add support for Interix
11621         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11622         Apply statvfs to all entries of /dev/fs.
11623         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11624         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11625
11626 2011-01-20  Jim Meyering  <meyering@redhat.com>
11627
11628         maint.mk: improve the public-submodule-commit rule
11629         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11630         to suppress printing of its commands... unless V=1.
11631         Add git submodule's --quiet option to suppress printing of e.g.,
11632         "Entering gnulib" output.
11633         "cd" into $(srcdir) before running git submodule.
11634
11635 2011-01-20  Bruno Haible  <bruno@clisp.org>
11636
11637         include_next: Fix bug introduced on 2011-01-18.
11638         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11639         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11640         ac_cv_header_... variable if the second argument is not 'check'.
11641         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11642         gl_NEXT_HEADERS_INTERNAL.
11643
11644 2011-01-20  Bruno Haible  <bruno@clisp.org>
11645
11646         Allow the user to avoid the GNULIB_TEST_* macros.
11647         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11648         Suggested by Paul Eggert.
11649
11650 2011-01-14  Jim Meyering  <meyering@redhat.com>
11651
11652         bootstrap: avoid failure when there is no .gitmodules file
11653         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11654         has been assigned to, even when its value is the empty string.
11655         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11656         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11657         Reported by John W. Eaton <jwe@gnu.org>.
11658
11659 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11660
11661         assume <ctype.h>, ..., <time.h> exist
11662         For years gnulib has been assuming the existence of the headers
11663         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11664         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11665         them, since they don't appear to be needed.
11666         * README (Portability guidelines): Document this.
11667         * lib/flock.c: Assume <fcntl.h> exists.
11668         * lib/regex_internal.h: Assume <locale.h> exists.
11669         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11670         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11671         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11672         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11673         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11674         * m4/regex.m4 (gl_REGEX): Likewise.
11675         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11676         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11677         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11678         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11679         * tests/test-argp.c: Likewise.
11680         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11681
11682         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11683         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11684         AA_APPLE_UNIVERSAL_BUILD.  See
11685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11686         * NEWS: Document this.
11687
11688 2011-01-19  Eric Blake  <eblake@redhat.com>
11689
11690         c-stack: assume stack overflow if SA_SIGINFO unsupported
11691         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11692         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11693         sigaction will work.
11694         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11695         behavior match Linux.
11696         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11697
11698         stdbool-tests: accomodate Haiku
11699         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11700
11701         binary-io: fix O_TEXT on Haiku
11702         * modules/binary-io (Depends-on): Add fcntl-h.
11703         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11704         than blindly undefining O_TEXT.
11705         Reported by Scott McCreary.
11706
11707 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11708
11709         include_next: do not check for standard headers like stddef.h
11710
11711         I found this problem when modifying Emacs to use gnulib.
11712         I noticed that it added HAVE_STDDEF_H to config.h, even though
11713         gnulib always assumes <stddef.h> exists as per README and this
11714         symbol is unnecessary.
11715         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11716         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11717         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11718         faster for headers like stddef.h that are known to exist.
11719         (gl_CHECK_NEXT_HEADERS): Use it.
11720         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11721         rather than gl_CHECK_NEXT_HEADERS.
11722         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11723         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11724
11725 2011-01-18  Eric Blake  <eblake@redhat.com>
11726
11727         ansi-c++-opt: skip C++ dependency style if C++ is unused
11728         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11729         tests when we know C++ compilation is not desired.
11730         Reported by Scott McCreary.
11731
11732 2011-01-18  Bruno Haible  <bruno@clisp.org>
11733
11734         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11735         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11736         (main): Perform test also when getrlimit and setrlimit don't exist or
11737         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11738         limiting the address space size using setrlimit, compare the address
11739         space size before and after the the test.
11740         * tests/test-dprintf-posix2.c: Likewise.
11741         * tests/test-fprintf-posix3.sh: Update skip messages.
11742         * tests/test-dprintf-posix2.sh: Likewise.
11743         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11744         * modules/dprintf-posix-tests (Depends-on): Likewise.
11745         Reported by Bruce Korb <bkorb@gnu.org> and
11746         Gary V. Vaughan <gary@gnu.org>.
11747
11748 2011-01-18  Bruno Haible  <bruno@clisp.org>
11749
11750         get-rusage-as: Improvement for Cygwin.
11751         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11752         areas that are merely reserved.
11753
11754 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11755
11756         strftime: remove dependencies on multibyte modules
11757
11758         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11759         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11760         only if __osf__ is defined, and I suspect OSF doesn't need these
11761         other modules.  If my guess is wrong, we'll need to come up with a
11762         variant of strftime that doesn't need the multibyte modules.
11763
11764         I discovered this problem when attempting modify Emacs to use the
11765         strftime module.  With the previous gnulib, this caused Emacs to
11766         need 31 new files, ranging from lib/config.charset to
11767         m4/wint_t.m4.  This was overkill and I expect would be offputting
11768         to the Emacs maintainers.  After this change, only 6 new files are
11769         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11770         stdbool.m4, and tm_gmtoff.m4.
11771
11772         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11773         Suggested by Bruno Haible in
11774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11775         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11776         and do not check for wchar.h.
11777         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11778         (Depends-on): Remove mbrlen, mbsinit, wchar.
11779
11780 2011-01-18  Bruno Haible  <bruno@clisp.org>
11781
11782         Tests for module 'get-rusage-as'.
11783         * modules/get-rusage-as-tests: New file.
11784         * tests/test-get-rusage-as.c: New file.
11785
11786         New module 'get-rusage-as'.
11787         * modules/get-rusage-as: New file.
11788         * lib/resource-ext.h: New file.
11789         * lib/get-rusage-as.c: New file.
11790
11791 2011-01-17  Eric Blake  <eblake@redhat.com>
11792
11793         sigaction: relax license from LGPLv3+ to LGPLv2+
11794         * modules/sigaction (License): Relax to LGPLv2+.
11795
11796 2011-01-14  Bruno Haible  <bruno@clisp.org>
11797
11798         filemode: Make function declarations usable in C++ mode.
11799         * lib/filemode.h: Enclose function declarations in extern "C" block.
11800         Reported by John W. Eaton <jwe@gnu.org>.
11801
11802 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11803
11804         save-cwd: no longer include "xgetcwd.h"
11805         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11806         This avoids a compilation failure in projects that use save-cwd
11807         without also using the xgetcwd module.
11808
11809 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11810
11811         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11812         This is so that a program like Emacs, which needs only dtoastr,
11813         does not have to bother with distributing and compiling ftoastr
11814         and ldtoastr.
11815         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11816         * modules/dtoastr, modules/ldtoastr: New files.
11817         * modules/ftoastr: Now works just for 'float'.
11818         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11819         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11820         dtoastr.c, ldtoastr.c.
11821
11822 2011-01-11  Jim Meyering  <meyering@redhat.com>
11823
11824         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11825         There is no need to work around the lack of the fchdir function,
11826         since gnulib can now provide a replacement when required.
11827         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11828         * modules/save-cwd (Depends-on): Add fchdir.
11829
11830 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11831
11832         openat, save-cwd: avoid xmalloc
11833
11834         This removes a direct (but undocumented) dependency of openat on
11835         xalloc, along with an indirect dependency via save-cwd.  It also
11836         removes a dependency of save-cwd on xgetcwd, and thereby
11837         indirectly on xalloc.  This change causes the openat substitute
11838         to fall back on save_cwd when memory is tight, and for save_cwd to
11839         fail instead of dying when memory is tight, but that's good enough.
11840         Problem and initial idea for fix reported by Bastien Roucaries in
11841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11842
11843         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11844         xalloc.h (for xmalloc).
11845         (openat_proc_name): Use malloc, not xmalloc.
11846         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11847         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11848
11849         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11850         This avoids heap allocation for file names whose lengths are in
11851         the range 512..1023, with the upper bound increasing to at most
11852         4031 depending on the platform's PATH_MAX.  (We do not want
11853         pathmax.h here as it might supply a non-constant PATH_MAX.)
11854         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11855         Perhaps they should be moved to malloca.h?
11856         (OPENAT_BUFFER_SIZE): Use them.
11857
11858 2011-01-10  Bruno Haible  <bruno@clisp.org>
11859
11860         doc: Update users.txt.
11861         * users.txt: Add recutils.
11862
11863 2011-01-09  Karl Berry  <karl@gnu.org>
11864
11865         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11866
11867         * doc/configmake.texi: New file.
11868         * doc/gnulib.texi: Include it.
11869         * modules/configmake: Move documentation from here.
11870
11871 2011-01-09  Bruno Haible  <bruno@clisp.org>
11872
11873         Update to Unicode 6.0.0.
11874         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11875         (get_lbp): Update for Unicode 6.0.0.
11876         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11877         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11878         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11879         U+11001, U+11038..U+11046. Remove U+06DE.
11880         (uc_width): Fix bounds of planes.
11881         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11882         lib/uniwidth/width.c.
11883         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11884         trailing whitespace removed.
11885         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11886         without comments, but with the original copyright notice.
11887         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11888         * lib/unicase/ignorable.h: Likewise.
11889         * lib/unicase/tocasefold.h: Likewise.
11890         * lib/unicase/tolower.h: Likewise.
11891         * lib/unicase/totitle.h: Likewise.
11892         * lib/unicase/toupper.h: Likewise.
11893         * lib/unictype/bidi_of.h: Likewise.
11894         * lib/unictype/blocks.h: Likewise.
11895         * lib/unictype/categ_C.h: Likewise.
11896         * lib/unictype/categ_Cn.h: Likewise.
11897         * lib/unictype/categ_L.h: Likewise.
11898         * lib/unictype/categ_Ll.h: Likewise.
11899         * lib/unictype/categ_Lm.h: Likewise.
11900         * lib/unictype/categ_Lo.h: Likewise.
11901         * lib/unictype/categ_Lu.h: Likewise.
11902         * lib/unictype/categ_M.h: Likewise.
11903         * lib/unictype/categ_Mc.h: Likewise.
11904         * lib/unictype/categ_Me.h: Likewise.
11905         * lib/unictype/categ_Mn.h: Likewise.
11906         * lib/unictype/categ_N.h: Likewise.
11907         * lib/unictype/categ_Nd.h: Likewise.
11908         * lib/unictype/categ_No.h: Likewise.
11909         * lib/unictype/categ_P.h: Likewise.
11910         * lib/unictype/categ_Po.h: Likewise.
11911         * lib/unictype/categ_S.h: Likewise.
11912         * lib/unictype/categ_Sc.h: Likewise.
11913         * lib/unictype/categ_Sk.h: Likewise.
11914         * lib/unictype/categ_Sm.h: Likewise.
11915         * lib/unictype/categ_So.h: Likewise.
11916         * lib/unictype/categ_of.h: Likewise.
11917         * lib/unictype/combining.h: Likewise.
11918         * lib/unictype/ctype_alnum.h: Likewise.
11919         * lib/unictype/ctype_alpha.h: Likewise.
11920         * lib/unictype/ctype_graph.h: Likewise.
11921         * lib/unictype/ctype_lower.h: Likewise.
11922         * lib/unictype/ctype_print.h: Likewise.
11923         * lib/unictype/ctype_punct.h: Likewise.
11924         * lib/unictype/ctype_upper.h: Likewise.
11925         * lib/unictype/decdigit.h: Likewise.
11926         * lib/unictype/digit.h: Likewise.
11927         * lib/unictype/numeric.h: Likewise.
11928         * lib/unictype/pr_alphabetic.h: Likewise.
11929         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11930         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11931         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11932         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11933         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11934         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11935         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11936         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11937         * lib/unictype/pr_case_ignorable.h: Likewise.
11938         * lib/unictype/pr_cased.h: Likewise.
11939         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11940         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11941         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11942         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11943         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11944         * lib/unictype/pr_combining.h: Likewise.
11945         * lib/unictype/pr_composite.h: Likewise.
11946         * lib/unictype/pr_currency_symbol.h: Likewise.
11947         * lib/unictype/pr_decimal_digit.h: Likewise.
11948         * lib/unictype/pr_deprecated.h: Likewise.
11949         * lib/unictype/pr_format_control.h: Likewise.
11950         * lib/unictype/pr_grapheme_base.h: Likewise.
11951         * lib/unictype/pr_grapheme_extend.h: Likewise.
11952         * lib/unictype/pr_grapheme_link.h: Likewise.
11953         * lib/unictype/pr_id_continue.h: Likewise.
11954         * lib/unictype/pr_id_start.h: Likewise.
11955         * lib/unictype/pr_ideographic.h: Likewise.
11956         * lib/unictype/pr_lowercase.h: Likewise.
11957         * lib/unictype/pr_math.h: Likewise.
11958         * lib/unictype/pr_numeric.h: Likewise.
11959         * lib/unictype/pr_other_alphabetic.h: Likewise.
11960         * lib/unictype/pr_other_id_continue.h: Likewise.
11961         * lib/unictype/pr_other_math.h: Likewise.
11962         * lib/unictype/pr_punctuation.h: Likewise.
11963         * lib/unictype/pr_sentence_terminal.h: Likewise.
11964         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11965         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11966         * lib/unictype/pr_unified_ideograph.h: Likewise.
11967         * lib/unictype/pr_uppercase.h: Likewise.
11968         * lib/unictype/pr_xid_continue.h: Likewise.
11969         * lib/unictype/pr_xid_start.h: Likewise.
11970         * lib/unictype/scripts.h: Likewise.
11971         * lib/unictype/scripts_byname.gperf: Likewise.
11972         * lib/unictype/sy_java_ident.h: Likewise.
11973         * lib/unigbrk/gbrkprop.h: Likewise.
11974         * lib/unilbrk/lbrkprop1.h: Likewise.
11975         * lib/unilbrk/lbrkprop2.h: Likewise.
11976         * lib/uninorm/decomposition-table2.h: Likewise.
11977         * lib/uniwbrk/wbrkprop.h: Likewise.
11978         * tests/unicase/test-cased.c: Likewise.
11979         * tests/unicase/test-ignorable.c: Likewise.
11980         * tests/unicase/test-uc_tolower.c: Likewise.
11981         * tests/unicase/test-uc_totitle.c: Likewise.
11982         * tests/unicase/test-uc_toupper.c: Likewise.
11983         * tests/unictype/test-categ_C.c: Likewise.
11984         * tests/unictype/test-categ_Cn.c: Likewise.
11985         * tests/unictype/test-categ_L.c: Likewise.
11986         * tests/unictype/test-categ_Ll.c: Likewise.
11987         * tests/unictype/test-categ_Lm.c: Likewise.
11988         * tests/unictype/test-categ_Lo.c: Likewise.
11989         * tests/unictype/test-categ_Lu.c: Likewise.
11990         * tests/unictype/test-categ_M.c: Likewise.
11991         * tests/unictype/test-categ_Mc.c: Likewise.
11992         * tests/unictype/test-categ_Me.c: Likewise.
11993         * tests/unictype/test-categ_Mn.c: Likewise.
11994         * tests/unictype/test-categ_N.c: Likewise.
11995         * tests/unictype/test-categ_Nd.c: Likewise.
11996         * tests/unictype/test-categ_No.c: Likewise.
11997         * tests/unictype/test-categ_P.c: Likewise.
11998         * tests/unictype/test-categ_Po.c: Likewise.
11999         * tests/unictype/test-categ_S.c: Likewise.
12000         * tests/unictype/test-categ_Sc.c: Likewise.
12001         * tests/unictype/test-categ_Sk.c: Likewise.
12002         * tests/unictype/test-categ_Sm.c: Likewise.
12003         * tests/unictype/test-categ_So.c: Likewise.
12004         * tests/unictype/test-ctype_alnum.c: Likewise.
12005         * tests/unictype/test-ctype_alpha.c: Likewise.
12006         * tests/unictype/test-ctype_graph.c: Likewise.
12007         * tests/unictype/test-ctype_lower.c: Likewise.
12008         * tests/unictype/test-ctype_print.c: Likewise.
12009         * tests/unictype/test-ctype_punct.c: Likewise.
12010         * tests/unictype/test-ctype_upper.c: Likewise.
12011         * tests/unictype/test-decdigit.h: Likewise.
12012         * tests/unictype/test-digit.h: Likewise.
12013         * tests/unictype/test-numeric.h: Likewise.
12014         * tests/unictype/test-pr_alphabetic.c: Likewise.
12015         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12016         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12017         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12018         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12019         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12020         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12021         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12022         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12023         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12024         * tests/unictype/test-pr_cased.c: Likewise.
12025         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12026         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12027         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12028         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12029         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12030         * tests/unictype/test-pr_combining.c: Likewise.
12031         * tests/unictype/test-pr_composite.c: Likewise.
12032         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12033         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12034         * tests/unictype/test-pr_deprecated.c: Likewise.
12035         * tests/unictype/test-pr_format_control.c: Likewise.
12036         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12037         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12038         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12039         * tests/unictype/test-pr_id_continue.c: Likewise.
12040         * tests/unictype/test-pr_id_start.c: Likewise.
12041         * tests/unictype/test-pr_ideographic.c: Likewise.
12042         * tests/unictype/test-pr_lowercase.c: Likewise.
12043         * tests/unictype/test-pr_math.c: Likewise.
12044         * tests/unictype/test-pr_numeric.c: Likewise.
12045         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12046         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12047         * tests/unictype/test-pr_other_math.c: Likewise.
12048         * tests/unictype/test-pr_punctuation.c: Likewise.
12049         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12050         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12051         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12052         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12053         * tests/unictype/test-pr_uppercase.c: Likewise.
12054         * tests/unictype/test-pr_xid_continue.c: Likewise.
12055         * tests/unictype/test-pr_xid_start.c: Likewise.
12056         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12057         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12058         changes.
12059         * lib/unictype/categ_Cc.h: Likewise.
12060         * lib/unictype/categ_Cf.h: Likewise.
12061         * lib/unictype/categ_Co.h: Likewise.
12062         * lib/unictype/categ_Cs.h: Likewise.
12063         * lib/unictype/categ_Lt.h: Likewise.
12064         * lib/unictype/categ_Nl.h: Likewise.
12065         * lib/unictype/categ_Pc.h: Likewise.
12066         * lib/unictype/categ_Pd.h: Likewise.
12067         * lib/unictype/categ_Pe.h: Likewise.
12068         * lib/unictype/categ_Pf.h: Likewise.
12069         * lib/unictype/categ_Pi.h: Likewise.
12070         * lib/unictype/categ_Ps.h: Likewise.
12071         * lib/unictype/categ_Z.h: Likewise.
12072         * lib/unictype/categ_Zl.h: Likewise.
12073         * lib/unictype/categ_Zp.h: Likewise.
12074         * lib/unictype/categ_Zs.h: Likewise.
12075         * lib/unictype/ctype_blank.h: Likewise.
12076         * lib/unictype/ctype_cntrl.h: Likewise.
12077         * lib/unictype/ctype_digit.h: Likewise.
12078         * lib/unictype/ctype_space.h: Likewise.
12079         * lib/unictype/ctype_xdigit.h: Likewise.
12080         * lib/unictype/mirror.h: Likewise.
12081         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12082         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12083         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12084         * lib/unictype/pr_bidi_control.h: Likewise.
12085         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12086         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12087         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12088         * lib/unictype/pr_bidi_pdf.h: Likewise.
12089         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12090         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12091         * lib/unictype/pr_dash.h: Likewise.
12092         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12093         * lib/unictype/pr_diacritic.h: Likewise.
12094         * lib/unictype/pr_extender.h: Likewise.
12095         * lib/unictype/pr_hex_digit.h: Likewise.
12096         * lib/unictype/pr_hyphen.h: Likewise.
12097         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12098         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12099         * lib/unictype/pr_ignorable_control.h: Likewise.
12100         * lib/unictype/pr_iso_control.h: Likewise.
12101         * lib/unictype/pr_join_control.h: Likewise.
12102         * lib/unictype/pr_left_of_pair.h: Likewise.
12103         * lib/unictype/pr_line_separator.h: Likewise.
12104         * lib/unictype/pr_logical_order_exception.h: Likewise.
12105         * lib/unictype/pr_non_break.h: Likewise.
12106         * lib/unictype/pr_not_a_character.h: Likewise.
12107         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12108         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12109         * lib/unictype/pr_other_id_start.h: Likewise.
12110         * lib/unictype/pr_other_lowercase.h: Likewise.
12111         * lib/unictype/pr_other_uppercase.h: Likewise.
12112         * lib/unictype/pr_paired_punctuation.h: Likewise.
12113         * lib/unictype/pr_paragraph_separator.h: Likewise.
12114         * lib/unictype/pr_pattern_syntax.h: Likewise.
12115         * lib/unictype/pr_pattern_white_space.h: Likewise.
12116         * lib/unictype/pr_private_use.h: Likewise.
12117         * lib/unictype/pr_quotation_mark.h: Likewise.
12118         * lib/unictype/pr_radical.h: Likewise.
12119         * lib/unictype/pr_soft_dotted.h: Likewise.
12120         * lib/unictype/pr_space.h: Likewise.
12121         * lib/unictype/pr_titlecase.h: Likewise.
12122         * lib/unictype/pr_variation_selector.h: Likewise.
12123         * lib/unictype/pr_white_space.h: Likewise.
12124         * lib/unictype/pr_zero_width.h: Likewise.
12125         * lib/unictype/sy_c_ident.h: Likewise.
12126         * lib/unictype/sy_c_whitespace.h: Likewise.
12127         * lib/unictype/sy_java_whitespace.h: Likewise.
12128         * lib/uninorm/composition-table.gperf: Likewise.
12129         * lib/uninorm/decomposition-table1.h: Likewise.
12130         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12131         LB8.
12132         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12133         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12134         * modules/unictype/*: Bump version number of expected libunistring
12135         version.
12136
12137 2011-01-09  Bruno Haible  <bruno@clisp.org>
12138
12139         Update to Unicode 5.2.0.
12140         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12141         trailing whitespace removed.
12142
12143 2011-01-09  Bruno Haible  <bruno@clisp.org>
12144
12145         New Unicode character properties, from Unicode 5.2.0.
12146         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12147         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12148         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12149         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12150         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12151         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12152         uc_is_property_cased, uc_is_property_case_ignorable,
12153         uc_is_property_changes_when_lowercased,
12154         uc_is_property_changes_when_uppercased,
12155         uc_is_property_changes_when_titlecased,
12156         uc_is_property_changes_when_casefolded,
12157         uc_is_property_changes_when_casemapped): New declarations.
12158         * lib/unictype/pr_byname.gperf: Add the new properties.
12159         * modules/unictype/property-byname (Depends-on): Depend on the new
12160         properties modules.
12161         * modules/unictype/property-all (Depends-on): Likewise.
12162         * MODULES.html.sh (Unicode string functions): Add
12163         unictype/property-case-ignorable, unictype/property-cased,
12164         unictype/property-changes-when-casefolded,
12165         unictype/property-changes-when-casemapped,
12166         unictype/property-changes-when-lowercased,
12167         unictype/property-changes-when-titlecased,
12168         unictype/property-changes-when-uppercased.
12169
12170         New module 'unictype/property-changes-when-casemapped'.
12171         * modules/unictype/property-changes-when-casemapped: New file.
12172         * lib/unictype/pr_changes_when_casemapped.c: New file.
12173         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12174         generated by gen-uni-tables.
12175         * modules/unictype/property-changes-when-casemapped-tests: New file.
12176         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12177         automatically generated by gen-uni-tables.
12178
12179         New module 'unictype/property-changes-when-casefolded'.
12180         * modules/unictype/property-changes-when-casefolded: New file.
12181         * lib/unictype/pr_changes_when_casefolded.c: New file.
12182         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12183         generated by gen-uni-tables.
12184         * modules/unictype/property-changes-when-casefolded-tests: New file.
12185         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12186         automatically generated by gen-uni-tables.
12187
12188         New module 'unictype/property-changes-when-titlecased'.
12189         * modules/unictype/property-changes-when-titlecased: New file.
12190         * lib/unictype/pr_changes_when_titlecased.c: New file.
12191         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12192         generated by gen-uni-tables.
12193         * modules/unictype/property-changes-when-titlecased-tests: New file.
12194         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12195         automatically generated by gen-uni-tables.
12196
12197         New module 'unictype/property-changes-when-uppercased'.
12198         * modules/unictype/property-changes-when-uppercased: New file.
12199         * lib/unictype/pr_changes_when_uppercased.c: New file.
12200         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12201         generated by gen-uni-tables.
12202         * modules/unictype/property-changes-when-uppercased-tests: New file.
12203         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12204         automatically generated by gen-uni-tables.
12205
12206         New module 'unictype/property-changes-when-lowercased'.
12207         * modules/unictype/property-changes-when-lowercased: New file.
12208         * lib/unictype/pr_changes_when_lowercased.c: New file.
12209         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12210         generated by gen-uni-tables.
12211         * modules/unictype/property-changes-when-lowercased-tests: New file.
12212         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12213         automatically generated by gen-uni-tables.
12214
12215         New module 'unictype/property-case-ignorable'.
12216         * modules/unictype/property-case-ignorable: New file.
12217         * lib/unictype/pr_case_ignorable.c: New file.
12218         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12219         by gen-uni-tables.
12220         * modules/unictype/property-case-ignorable-tests: New file.
12221         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12222         generated by gen-uni-tables.
12223
12224         New module 'unictype/property-cased'.
12225         * modules/unictype/property-cased: New file.
12226         * lib/unictype/pr_cased.c: New file.
12227         * lib/unictype/pr_cased.h: New file, automatically generated by
12228         gen-uni-tables.
12229         * modules/unictype/property-cased-tests: New file.
12230         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12231         gen-uni-tables.
12232
12233 2011-01-09  Bruno Haible  <bruno@clisp.org>
12234
12235         Update to Unicode 5.2.0.
12236         * lib/gen-uni-tables.c (output_predicate, output_category,
12237         output_combclass, output_bidi_category, output_decimal_digit_test,
12238         output_decimal_digit, output_digit_test, output_digit,
12239         output_numeric_test, output_numeric, output_mirror, output_scripts,
12240         output_scripts_byname, output_blocks, output_ident_category): Fix
12241         comment header.
12242         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12243         get_wbp.
12244         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12245         items.
12246         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12247         Changes_When_Lowercased, Changes_When_Uppercased,
12248         Changes_When_Titlecased, Changes_When_Casefolded,
12249         Changes_When_Casemapped.
12250         (is_property_alphabetic, is_property_default_ignorable_code_point):
12251         Update for Unicode 5.2.0.
12252         (is_property_cased, is_property_case_ignorable,
12253         is_property_changes_when_lowercased,
12254         is_property_changes_when_uppercased,
12255         is_property_changes_when_titlecased,
12256         is_property_changes_when_casefolded,
12257         is_property_changes_when_casemapped): New functions.
12258         (output_properties): Output also the properties cased, case_ignorable,
12259         changes_when_lowercased, changes_when_uppercased,
12260         changes_when_titlecased, changes_when_casefolded,
12261         changes_when_casemapped.
12262         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12263         Unicode TR#11 revision 17 -> 19.
12264         (LBP_CP): New enumeration value.
12265         (LBP_*): Adjust values accordingly.
12266         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12267         TR#14 revision 22 -> 24.
12268         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12269         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12270         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12271         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12272         is_WBP_MIDLETTER.
12273         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12274         the code1 and code2 of each composition rule.
12275         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12276         * lib/unicase/ignorable.h: Likewise.
12277         * lib/unicase/tocasefold.h: Likewise.
12278         * lib/unicase/tolower.h: Likewise.
12279         * lib/unicase/totitle.h: Likewise.
12280         * lib/unicase/toupper.h: Likewise.
12281         * lib/unictype/bidi_of.h: Likewise.
12282         * lib/unictype/blocks.h: Likewise.
12283         * lib/unictype/categ_C.h: Likewise.
12284         * lib/unictype/categ_Cf.h: Likewise.
12285         * lib/unictype/categ_Cn.h: Likewise.
12286         * lib/unictype/categ_L.h: Likewise.
12287         * lib/unictype/categ_Ll.h: Likewise.
12288         * lib/unictype/categ_Lm.h: Likewise.
12289         * lib/unictype/categ_Lo.h: Likewise.
12290         * lib/unictype/categ_Lu.h: Likewise.
12291         * lib/unictype/categ_M.h: Likewise.
12292         * lib/unictype/categ_Mc.h: Likewise.
12293         * lib/unictype/categ_Mn.h: Likewise.
12294         * lib/unictype/categ_N.h: Likewise.
12295         * lib/unictype/categ_Nd.h: Likewise.
12296         * lib/unictype/categ_Nl.h: Likewise.
12297         * lib/unictype/categ_No.h: Likewise.
12298         * lib/unictype/categ_P.h: Likewise.
12299         * lib/unictype/categ_Pd.h: Likewise.
12300         * lib/unictype/categ_Po.h: Likewise.
12301         * lib/unictype/categ_S.h: Likewise.
12302         * lib/unictype/categ_Sc.h: Likewise.
12303         * lib/unictype/categ_So.h: Likewise.
12304         * lib/unictype/categ_of.h: Likewise.
12305         * lib/unictype/combining.h: Likewise.
12306         * lib/unictype/ctype_alnum.h: Likewise.
12307         * lib/unictype/ctype_alpha.h: Likewise.
12308         * lib/unictype/ctype_graph.h: Likewise.
12309         * lib/unictype/ctype_lower.h: Likewise.
12310         * lib/unictype/ctype_print.h: Likewise.
12311         * lib/unictype/ctype_punct.h: Likewise.
12312         * lib/unictype/ctype_upper.h: Likewise.
12313         * lib/unictype/decdigit.h: Likewise.
12314         * lib/unictype/digit.h: Likewise.
12315         * lib/unictype/numeric.h: Likewise.
12316         * lib/unictype/pr_alphabetic.h: Likewise.
12317         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12318         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12319         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12320         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12321         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12322         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12323         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12324         * lib/unictype/pr_combining.h: Likewise.
12325         * lib/unictype/pr_composite.h: Likewise.
12326         * lib/unictype/pr_currency_symbol.h: Likewise.
12327         * lib/unictype/pr_dash.h: Likewise.
12328         * lib/unictype/pr_decimal_digit.h: Likewise.
12329         * lib/unictype/pr_deprecated.h: Likewise.
12330         * lib/unictype/pr_diacritic.h: Likewise.
12331         * lib/unictype/pr_extender.h: Likewise.
12332         * lib/unictype/pr_grapheme_base.h: Likewise.
12333         * lib/unictype/pr_grapheme_extend.h: Likewise.
12334         * lib/unictype/pr_grapheme_link.h: Likewise.
12335         * lib/unictype/pr_id_continue.h: Likewise.
12336         * lib/unictype/pr_id_start.h: Likewise.
12337         * lib/unictype/pr_ideographic.h: Likewise.
12338         * lib/unictype/pr_ignorable_control.h: Likewise.
12339         * lib/unictype/pr_logical_order_exception.h: Likewise.
12340         * lib/unictype/pr_lowercase.h: Likewise.
12341         * lib/unictype/pr_numeric.h: Likewise.
12342         * lib/unictype/pr_other_alphabetic.h: Likewise.
12343         * lib/unictype/pr_punctuation.h: Likewise.
12344         * lib/unictype/pr_sentence_terminal.h: Likewise.
12345         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12346         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12347         * lib/unictype/pr_unified_ideograph.h: Likewise.
12348         * lib/unictype/pr_uppercase.h: Likewise.
12349         * lib/unictype/pr_xid_continue.h: Likewise.
12350         * lib/unictype/pr_xid_start.h: Likewise.
12351         * lib/unictype/pr_zero_width.h: Likewise.
12352         * lib/unictype/scripts.h: Likewise.
12353         * lib/unictype/scripts_byname.gperf: Likewise.
12354         * lib/unictype/sy_java_ident.h: Likewise.
12355         * lib/unigbrk/gbrkprop.h: Likewise.
12356         * lib/unilbrk/lbrkprop1.h: Likewise.
12357         * lib/unilbrk/lbrkprop2.h: Likewise.
12358         * lib/unilbrk/lbrktables.h: Likewise.
12359         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12360         LBP_CP. Implement rule LB30.
12361         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12362         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12363         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12364         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12365         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12366         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12367         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12368         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12369         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12370         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12371         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12372         bits instead of 16 bits in the code1 and code2 of each composition
12373         rule.
12374         (uc_composition): Update for Unicode 5.2.0.
12375         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12376         * lib/uninorm/decomposition-table2.h: Likewise.
12377         * lib/uniwbrk/wbrkprop.h: Likewise.
12378         * tests/unicase/test-cased.c: Likewise.
12379         * tests/unicase/test-ignorable.c: Likewise.
12380         * tests/unicase/test-uc_tolower.c: Likewise.
12381         * tests/unicase/test-uc_totitle.c: Likewise.
12382         * tests/unicase/test-uc_toupper.c: Likewise.
12383         * tests/unictype/test-categ_C.c: Likewise.
12384         * tests/unictype/test-categ_Cf.c: Likewise.
12385         * tests/unictype/test-categ_Cn.c: Likewise.
12386         * tests/unictype/test-categ_L.c: Likewise.
12387         * tests/unictype/test-categ_Ll.c: Likewise.
12388         * tests/unictype/test-categ_Lm.c: Likewise.
12389         * tests/unictype/test-categ_Lo.c: Likewise.
12390         * tests/unictype/test-categ_Lu.c: Likewise.
12391         * tests/unictype/test-categ_M.c: Likewise.
12392         * tests/unictype/test-categ_Mc.c: Likewise.
12393         * tests/unictype/test-categ_Mn.c: Likewise.
12394         * tests/unictype/test-categ_N.c: Likewise.
12395         * tests/unictype/test-categ_Nd.c: Likewise.
12396         * tests/unictype/test-categ_Nl.c: Likewise.
12397         * tests/unictype/test-categ_No.c: Likewise.
12398         * tests/unictype/test-categ_P.c: Likewise.
12399         * tests/unictype/test-categ_Pd.c: Likewise.
12400         * tests/unictype/test-categ_Po.c: Likewise.
12401         * tests/unictype/test-categ_S.c: Likewise.
12402         * tests/unictype/test-categ_Sc.c: Likewise.
12403         * tests/unictype/test-categ_So.c: Likewise.
12404         * tests/unictype/test-ctype_alnum.c: Likewise.
12405         * tests/unictype/test-ctype_alpha.c: Likewise.
12406         * tests/unictype/test-ctype_graph.c: Likewise.
12407         * tests/unictype/test-ctype_lower.c: Likewise.
12408         * tests/unictype/test-ctype_print.c: Likewise.
12409         * tests/unictype/test-ctype_punct.c: Likewise.
12410         * tests/unictype/test-ctype_upper.c: Likewise.
12411         * tests/unictype/test-decdigit.h: Likewise.
12412         * tests/unictype/test-digit.h: Likewise.
12413         * tests/unictype/test-numeric.h: Likewise.
12414         * tests/unictype/test-pr_alphabetic.c: Likewise.
12415         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12416         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12417         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12418         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12419         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12420         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12421         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12422         * tests/unictype/test-pr_combining.c: Likewise.
12423         * tests/unictype/test-pr_composite.c: Likewise.
12424         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12425         * tests/unictype/test-pr_dash.c: Likewise.
12426         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12427         * tests/unictype/test-pr_deprecated.c: Likewise.
12428         * tests/unictype/test-pr_diacritic.c: Likewise.
12429         * tests/unictype/test-pr_extender.c: Likewise.
12430         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12431         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12432         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12433         * tests/unictype/test-pr_id_continue.c: Likewise.
12434         * tests/unictype/test-pr_id_start.c: Likewise.
12435         * tests/unictype/test-pr_ideographic.c: Likewise.
12436         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12437         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12438         * tests/unictype/test-pr_lowercase.c: Likewise.
12439         * tests/unictype/test-pr_numeric.c: Likewise.
12440         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12441         * tests/unictype/test-pr_punctuation.c: Likewise.
12442         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12443         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12444         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12445         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12446         * tests/unictype/test-pr_uppercase.c: Likewise.
12447         * tests/unictype/test-pr_xid_continue.c: Likewise.
12448         * tests/unictype/test-pr_xid_start.c: Likewise.
12449         * tests/unictype/test-pr_zero_width.c: Likewise.
12450         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12451         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12452         changed behaviour: line breaking is now disallowed between a letter
12453         or '=' and '('.
12454         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12455         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12456         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12457         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12458         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12459         lib/uniwidth/width.c.
12460         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12461         without comments, but with the original copyright notice.
12462         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12463         changes.
12464         * lib/unictype/categ_Cc.h: Likewise.
12465         * lib/unictype/categ_Co.h: Likewise.
12466         * lib/unictype/categ_Cs.h: Likewise.
12467         * lib/unictype/categ_Lt.h: Likewise.
12468         * lib/unictype/categ_Me.h: Likewise.
12469         * lib/unictype/categ_Pc.h: Likewise.
12470         * lib/unictype/categ_Pe.h: Likewise.
12471         * lib/unictype/categ_Pf.h: Likewise.
12472         * lib/unictype/categ_Pi.h: Likewise.
12473         * lib/unictype/categ_Ps.h: Likewise.
12474         * lib/unictype/categ_Sk.h: Likewise.
12475         * lib/unictype/categ_Sm.h: Likewise.
12476         * lib/unictype/categ_Z.h: Likewise.
12477         * lib/unictype/categ_Zl.h: Likewise.
12478         * lib/unictype/categ_Zp.h: Likewise.
12479         * lib/unictype/categ_Zs.h: Likewise.
12480         * lib/unictype/ctype_blank.h: Likewise.
12481         * lib/unictype/ctype_cntrl.h: Likewise.
12482         * lib/unictype/ctype_digit.h: Likewise.
12483         * lib/unictype/ctype_space.h: Likewise.
12484         * lib/unictype/ctype_xdigit.h: Likewise.
12485         * lib/unictype/mirror.h: Likewise.
12486         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12487         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12488         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12489         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12490         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12491         * lib/unictype/pr_bidi_control.h: Likewise.
12492         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12493         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12494         * lib/unictype/pr_bidi_pdf.h: Likewise.
12495         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12496         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12497         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12498         * lib/unictype/pr_format_control.h: Likewise.
12499         * lib/unictype/pr_hex_digit.h: Likewise.
12500         * lib/unictype/pr_hyphen.h: Likewise.
12501         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12502         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12503         * lib/unictype/pr_iso_control.h: Likewise.
12504         * lib/unictype/pr_join_control.h: Likewise.
12505         * lib/unictype/pr_left_of_pair.h: Likewise.
12506         * lib/unictype/pr_line_separator.h: Likewise.
12507         * lib/unictype/pr_math.h: Likewise.
12508         * lib/unictype/pr_non_break.h: Likewise.
12509         * lib/unictype/pr_not_a_character.h: Likewise.
12510         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12511         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12512         * lib/unictype/pr_other_id_continue.h: Likewise.
12513         * lib/unictype/pr_other_id_start.h: Likewise.
12514         * lib/unictype/pr_other_lowercase.h: Likewise.
12515         * lib/unictype/pr_other_math.h: Likewise.
12516         * lib/unictype/pr_other_uppercase.h: Likewise.
12517         * lib/unictype/pr_paired_punctuation.h: Likewise.
12518         * lib/unictype/pr_paragraph_separator.h: Likewise.
12519         * lib/unictype/pr_pattern_syntax.h: Likewise.
12520         * lib/unictype/pr_pattern_white_space.h: Likewise.
12521         * lib/unictype/pr_private_use.h: Likewise.
12522         * lib/unictype/pr_quotation_mark.h: Likewise.
12523         * lib/unictype/pr_radical.h: Likewise.
12524         * lib/unictype/pr_soft_dotted.h: Likewise.
12525         * lib/unictype/pr_space.h: Likewise.
12526         * lib/unictype/pr_titlecase.h: Likewise.
12527         * lib/unictype/pr_variation_selector.h: Likewise.
12528         * lib/unictype/pr_white_space.h: Likewise.
12529         * lib/unictype/sy_c_ident.h: Likewise.
12530         * lib/unictype/sy_c_whitespace.h: Likewise.
12531         * lib/unictype/sy_java_whitespace.h: Likewise.
12532         * modules/uni*/*: Bump version number of expected libunistring version.
12533         Reported by Simon Josefsson.
12534
12535 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12536
12537         useless-if-before-free: fix typo in --help and make the internal,
12538         automatic version date update process work once again.
12539         --help output contained a NUL character instead of the
12540         backslash-zero that was intended.  Also, the "must lie within
12541         the first 8 lines" line is on line 9, and hence not getting
12542         automatically updated.
12543         * build-aux/useless-if-before-free: Fix the former by adding a
12544         backslash, and the latter by condensing the three lines of what-it-does
12545         to a single line, leaving one line of slack for the future.
12546
12547 2011-01-09  Bruno Haible  <bruno@clisp.org>
12548
12549         uniwidth/width: Fix width of U+1D173..U+1D17A.
12550         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12551         symbolic_width, output_width_property_test): New functions.
12552         (main): Invoke output_nonspacing_property, output_width_property_test.
12553         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12554         U+1D173..U+1D17A.
12555         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12556         1.
12557         * modules/uniwidth/*: Bump version number of expected libunistring
12558         version.
12559         * modules/unilbrk/*: Likewise.
12560
12561 2011-01-08  Bruno Haible  <bruno@clisp.org>
12562
12563         uninorm tests: Preserve copyright of Unicode data file.
12564         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12565         Mention modifications.
12566
12567 2011-01-08  Bruno Haible  <bruno@clisp.org>
12568
12569         gen-uni-tables: Prepare for Unicode 5.2.0.
12570         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12571         (debug_output_lbp, output_lbp): Update.
12572
12573 2011-01-08  Bruno Haible  <bruno@clisp.org>
12574
12575         unilbrk: Clarify gen-uni-tables.c code.
12576         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12577         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12578         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12579
12580 2011-01-07  Bruno Haible  <bruno@clisp.org>
12581
12582         strtod: Restore errno when successfully parsing Infinity or NaN.
12583         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12584         restore the original errno.
12585
12586 2011-01-07  Bruno Haible  <bruno@clisp.org>
12587
12588         remove test: Avoid failure on HP-UX 11.
12589         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12590
12591 2011-01-07  Bruno Haible  <bruno@clisp.org>
12592
12593         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12594         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12595         error code.
12596
12597 2011-01-07  Pádraig Brady <P@draigBrady.com>
12598
12599         ignore-value: fixup comments, and add Eric Blake
12600         as an author since he rewrote the macros.
12601         * lib/ignore-value.h (ignore_value):  State that
12602         we now support aggregates.  Also specify exactly
12603         when the GCC warn_unused_result feature was added.
12604
12605 2011-01-06  Eric Blake  <eblake@redhat.com>
12606
12607         ignore-value: support aggregate types
12608         * lib/ignore-value.h (ignore_value): Provide separate gcc
12609         definition.
12610         * modules/ignore-value-tests: New test module.
12611         * tests/test-ignore-value.c: New test.
12612
12613         maint.mk: improve sc_prohibit_strcmp regex
12614         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12615         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12616         definition of STRNEQ.
12617
12618         signal: work around Haiku issue with SIGBUS
12619         * lib/siglist.h: Add comment.
12620         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12621         strsignal's favoring of SIGSEGV.
12622         * tests/test-signal.c (main): Avoid test failure.
12623         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12624         Reported by Scott McCreary.
12625
12626         maint.mk: add pre-release check to ensure submodule commits are public
12627         * top/maint.mk (public-submodule-commit): New rule.
12628         (submodule-checks): New variable.
12629         (alpha beta stable): Depend on the variable.
12630
12631 2011-01-05  Pádraig Brady <P@draigBrady.com>
12632         and Jim Meyering  <meyering@redhat.com>
12633
12634         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12635         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12636         (ATTRIBUTE_DEPRECATED): Define.
12637         (_ignore_case): New function.
12638         (ignore_value): New macro, to replace the old function.
12639         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12640         * modules/ignore-value (Depends-on): Add stdint.
12641
12642 2011-01-04  Eric Blake  <eblake@redhat.com>
12643
12644         doc: regenerate INSTALL
12645         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12646         @firstparagraphindent support, now that autoconf dropped it.
12647         (INSTALL_PRELUDE): Reinstate old macro.
12648         * doc/install.texi: Resync from autoconf.
12649         * doc/INSTALL: Reflect recent autoconf update.
12650         * doc/INSTALL.ISO: Likewise.
12651         * doc/INSTALL.UTF-8: Likewise.
12652         Reported by Karl Berry.
12653
12654 2011-01-04  Bruce Korb  <address@hidden>
12655
12656         git-version-gen: avoid a sub-shell
12657         * build-aux/git-version-gen: Redirect stderr in `...` via
12658         "exec 2>...", rather than via an added sub-shell.
12659
12660 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12661
12662         git-version-gen: use (...) rather than sh -c '...'
12663         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12664         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12665
12666 2011-01-03  Jim Meyering  <meyering@redhat.com>
12667
12668         git-version-gen: convert leading TABs to spaces
12669         * build-aux/git-version-gen: Expand leading TABs.
12670
12671         git-version-gen: handle failed "git rev-list"
12672         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12673         from git and proceeding as if it had succeeded but printed no SHA1
12674         checksums, suppress the diagnostic and handle the failure.
12675         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12676
12677         git-version-gen: include command name in one more diagnostic
12678         * build-aux/git-version-gen: When the required .tarball-version file
12679         was missing or unreadable, you might see the diagnostic from "cat",
12680         but no trace of the name of the invoking script.  Now, you still see
12681         the diagnostic from cat, but also get one from "git-version-gen: ".
12682         Inspired by a patch from Bruce Korb.
12683
12684         update-copyright: adjust test to match changed code
12685         * tests/test-update-copyright.sh: Change test's expected output
12686         to match new actual output.
12687
12688 2011-01-02  Bruno Haible  <bruno@clisp.org>
12689
12690         getlogin_r: Avoid test failure on HP-UX 11.
12691         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12692         ERANGE when the second argument is zero.
12693         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12694         portability problem.
12695
12696 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12697
12698         * build-aux/update-copyright: doc Simon's changes
12699
12700 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12701
12702         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12703         environment variable.
12704
12705 2011-01-02  Bruno Haible  <bruno@clisp.org>
12706
12707         unigbrk: Avoid gcc warnings.
12708         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12709         unused variable.
12710         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12711         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12712         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12713         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12714         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12715         Change type of first argument to 'const char *'.
12716         (main): Remove unused variable.
12717         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12718         type of first argument to 'const char *'.
12719         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12720         Likewise.
12721         (main): Change type of variable 's'.
12722         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12723         to 'int'.
12724
12725 2011-01-02  Bruno Haible  <bruno@clisp.org>
12726
12727         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12728         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12729         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12730         bug.
12731         * lib/pwrite.c: Undo 2010-12-31 patch.
12732         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12733
12734 2011-01-02  Bruno Haible  <bruno@clisp.org>
12735
12736         pread: Fix test whether it works.
12737         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12738
12739 2011-01-02  Bruno Haible  <bruno@clisp.org>
12740
12741         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12742         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12743         ends in "6". Don't require a specific month name. Try also the locale
12744         names found on HP-UX 11 and Solaris 7.
12745
12746 2011-01-02  Bruno Haible  <bruno@clisp.org>
12747
12748         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12749         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12750         C linkage.
12751         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12752
12753 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12754
12755         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12756         for consistency, since the "cluster" term is not used elsewhere.
12757         * lib/unigbrk.in.h: Update name.
12758         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12759         * lib/unigbrk/u16-grapheme-next.c: Update name.
12760         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12761         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12762         * lib/unigbrk/u32-grapheme-next.c: Update name.
12763         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12764         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12765         * lib/unigbrk/u8-grapheme-next.c: Update name.
12766         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12767         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12768         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12769         Suggested by Bruno Haible.
12770
12771 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12772
12773         Remove module 'u8-grapheme-len' as too redundant with
12774         'u8-grapheme-next'.
12775         * modules/unigbrk/u8-grapheme-len: Delete file.
12776         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12777         * lib/unigbrk.in.h: Remove prototype for deleted function.
12778         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12779         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12780
12781         Remove module 'u16-grapheme-len' as too redundant with
12782         'u16-grapheme-next'.
12783         * modules/unigbrk/u16-grapheme-len: Delete file.
12784         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12785         * lib/unigbrk.in.h: Remove prototype for deleted function.
12786         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12787         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12788
12789         Remove module 'u32-grapheme-len' as too redundant with
12790         'u32-grapheme-next'.
12791         * modules/unigbrk/u32-grapheme-len: Delete file.
12792         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12793         * lib/unigbrk.in.h: Remove prototype for deleted function.
12794         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12795         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12796
12797         Suggested by Bruno Haible.
12798
12799 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12800
12801         * unigbrk.in.h: Fix typo: "ben" => "been".
12802         Reported by Bruno Haible.
12803
12804 2011-01-01  Jim Meyering  <meyering@redhat.com>
12805
12806         maint: update almost all copyright ranges to include 2011
12807         Run the new "make update-copyright" rule.
12808
12809 2011-01-01  Jim Meyering  <meyering@redhat.com>
12810
12811         maint: update-copyright: exempt doc/INSTALL*
12812         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12813         since they are generated.  Suggested by Bruno Haible.
12814
12815 2011-01-01  Jim Meyering  <meyering@redhat.com>
12816
12817         maint: refine the update-copyright rule
12818         * Makefile (update-copyright): Also exclude any file that includes
12819         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12820         code that merely generates the comment.
12821
12822 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12823
12824         New module 'u8-grapheme-len'.
12825         * modules/unigbrk/u8-grapheme-len: New file.
12826         * modules/unigbrk/u8-grapheme-len-tests: New file.
12827         * lib/unigbrk.in.h: Add prototype for new function.
12828         * lib/unigbrk/u8-grapheme-len.c: New file.
12829         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12830
12831         New module 'u16-grapheme-len'.
12832         * modules/unigbrk/u16-grapheme-len: New file.
12833         * modules/unigbrk/u16-grapheme-len-tests: New file.
12834         * lib/unigbrk.in.h: Add prototype for new function.
12835         * lib/unigbrk/u16-grapheme-len.c: New file.
12836         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12837
12838         New module 'u32-grapheme-len'.
12839         * modules/unigbrk/u32-grapheme-len: New file.
12840         * modules/unigbrk/u32-grapheme-len-tests: New file.
12841         * lib/unigbrk.in.h: Add prototype for new function.
12842         * lib/unigbrk/u32-grapheme-len.c: New file.
12843         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12844
12845         New module 'u8-grapheme-next'.
12846         * modules/unigbrk/u8-grapheme-next: New file.
12847         * modules/unigbrk/u8-grapheme-next-tests: New file.
12848         * lib/unigbrk.in.h: Add prototype for new function.
12849         * lib/unigbrk/u8-grapheme-next.c: New file.
12850         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12851
12852         New module 'u16-grapheme-next'.
12853         * modules/unigbrk/u16-grapheme-next: New file.
12854         * modules/unigbrk/u16-grapheme-next-tests: New file.
12855         * lib/unigbrk.in.h: Add prototype for new function.
12856         * lib/unigbrk/u16-grapheme-next.c: New file.
12857         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12858
12859         New module 'u32-grapheme-next'.
12860         * modules/unigbrk/u32-grapheme-next: New file.
12861         * modules/unigbrk/u32-grapheme-next-tests: New file.
12862         * lib/unigbrk.in.h: Add prototype for new function.
12863         * lib/unigbrk/u32-grapheme-next.c: New file.
12864         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12865
12866         New module 'u8-grapheme-prev'.
12867         * modules/unigbrk/u8-grapheme-prev: New file.
12868         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12869         * lib/unigbrk.in.h: Add prototype for new function.
12870         * lib/unigbrk/u8-grapheme-prev.c: New file.
12871         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12872
12873         New module 'u16-grapheme-prev'.
12874         * modules/unigbrk/u16-grapheme-prev: New file.
12875         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12876         * lib/unigbrk.in.h: Add prototype for new function.
12877         * lib/unigbrk/u16-grapheme-prev.c: New file.
12878         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12879
12880         New module 'u32-grapheme-prev'.
12881         * modules/unigbrk/u32-grapheme-prev: New file.
12882         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12883         * lib/unigbrk.in.h: Add prototype for new function.
12884         * lib/unigbrk/u32-grapheme-prev.c: New file.
12885         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12886
12887         New module 'u8-grapheme-breaks'.
12888         * modules/unigbrk/u8-grapheme-breaks: New file.
12889         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12890         * lib/unigbrk.in.h: Add prototype for new function.
12891         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12892         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12893
12894         New module 'u16-grapheme-breaks'.
12895         * modules/unigbrk/u16-grapheme-breaks: New file.
12896         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12897         * lib/unigbrk.in.h: Add prototype for new function.
12898         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12899         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12900
12901         New module 'u32-grapheme-breaks'.
12902         * modules/unigbrk/u32-grapheme-breaks: New file.
12903         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12904         * lib/unigbrk.in.h: Add prototype for new function.
12905         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12906         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12907
12908         New module 'ulc-grapheme-breaks'.
12909         * modules/unigbrk/ulc-grapheme-breaks: New file.
12910         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12911         * m4/locale-ar.m4: New file.
12912         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12913         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12914         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12915
12916 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12917
12918         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12919         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12920         modified how this file was generated before I initially submitted
12921         the module, but failed to regenerate it.  This meant that several
12922         of the level2 entries were wrong.
12923         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12924         Remove the division-by-2 that is folded into the table now that
12925         gbrkprop.h has been regenerated properly.  Now -1 entries are
12926         handled correctly.
12927
12928         New module 'unigbrk/uc-gbrk-prop-tests'.
12929         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12930         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12931         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12932         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12933
12934 2011-01-01  Bruno Haible  <bruno@clisp.org>
12935
12936         Avoid use of hexadecimal escapes.
12937         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12938         instead of hexadecimal escapes.
12939
12940 2011-01-01  Jim Meyering  <meyering@redhat.com>
12941
12942         maint: new rule to update copyright year ranges
12943         * Makefile (update-copyright): New rule.
12944
12945         maint: indent with TABs in Makefile
12946         * Makefile: Expand leading sequences of spaces to TABs
12947
12948         version-etc: update the copyright year it reports
12949         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12950
12951 2010-12-31  Bruno Haible  <bruno@clisp.org>
12952
12953         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12954         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12955         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12956         zero.
12957
12958 2010-12-31  Bruno Haible  <bruno@clisp.org>
12959
12960         pwrite: Work around HP-UX 11.11 bug.
12961         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12962         works and set REPLACE_PWRITE if not.
12963         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12964         function.
12965         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12966
12967 2010-12-31  Bruno Haible  <bruno@clisp.org>
12968
12969         pread: Work around HP-UX 11 bugs.
12970         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12971         and set REPLACE_PREAD if not.
12972         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12973
12974 2010-12-31  Eric Blake  <eblake@redhat.com>
12975
12976         nl_langinfo: fix YESEXPR on Irix 6.5
12977         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12978         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12979         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12980         it.
12981
12982 2010-12-31  Bruno Haible  <bruno@clisp.org>
12983
12984         iconv: Document HP-UX 11 bug.
12985         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12986
12987 2010-12-31  Bruno Haible  <bruno@clisp.org>
12988
12989         ldexpl: Fix link error on HP-UX 11.
12990         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12991         LDEXPL_LIBM, using $ISNANL_LIBM.
12992
12993 2010-12-31  Eric Blake  <eblake@redhat.com>
12994
12995         ftello: avoid compilation failure with SunStudio c89
12996         * lib/ftello.c (ftello): Use lseek, not llseek.
12997
12998         tests: avoid failing coreutils tests on cygwin
12999         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13000         (create_exe_shims_): Return 0 when skipping.
13001
13002 2010-12-31  Bruno Haible  <bruno@clisp.org>
13003
13004         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13005         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13006
13007 2010-12-31  Bruno Haible  <bruno@clisp.org>
13008
13009         waitpid: Fix link error in C++ mode.
13010         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13011
13012 2010-12-31  Bruno Haible  <bruno@clisp.org>
13013
13014         isnan: Use GCC built-ins when possible.
13015         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13016         __builtin_isnan.
13017         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13018         (isnan): Define using GCC built-ins for GCC >= 4.0.
13019
13020 2010-12-31  Bruno Haible  <bruno@clisp.org>
13021
13022         isnand: Fix mistake.
13023         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13024         __builtin_isnand.
13025
13026 2010-12-31  Bruno Haible  <bruno@clisp.org>
13027
13028         open: Avoid C++ error on HP-UX 11.
13029         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13030
13031 2010-12-31  Bruno Haible  <bruno@clisp.org>
13032
13033         time_r: Add missing declarations on HP-UX 11.
13034         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13035         instead of HAVE_LOCALTIME_R.
13036         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13037         HAVE_LOCALTIME_R always.
13038         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13039         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13040         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13041         HAVE_LOCALTIME_R.
13042         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13043         * doc/posix-functions/localtime_r.texi: Likewise.
13044
13045 2010-12-29  Eric Blake  <eblake@redhat.com>
13046
13047         mountlist: tweak previous commit
13048         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13049         Reported by Paul Eggert.
13050
13051         mountlist: fix local drive detection on cygwin
13052         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13053         that works for cygwin.
13054
13055 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13056
13057         ftoastr, snprintf: ftoastr + snprintf module
13058         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13059         since the snprintf module now should be good enough here.
13060         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13061         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13062         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13063         GNULIB_SNPRINTF only for the test directory, and the latter
13064         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13065         seems to suffice by itself.
13066
13067 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13068
13069         alloca: one step towards thread-safety
13070         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13071         need for a static variable.  All callers changed.  This does not
13072         make the alloca replacement thread-safe, but it's one step.
13073
13074         tests: minor indenting change
13075         * tests/init.sh: Sync from coreutils housekeeping patch
13076         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13077         to keep lines within 80 columns.
13078
13079 2010-12-28  Jim Meyering  <meyering@redhat.com>
13080
13081         regex: don't infloop on persistent failing calloc
13082         * lib/regexec.c (build_trtable): Return failure indication upon
13083         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13084         In glibc, this was fixed for version 2.13:
13085         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13086
13087 2010-12-28  Bruno Haible  <bruno@clisp.org>
13088             Paul Eggert <eggert@cs.ucla.edu>
13089
13090         linkat: Make implementation robust against system behaviour variations.
13091         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13092         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13093         way, and to -2 if it needs a generic runtime test.
13094         * lib/linkat.c (solaris_optimized_link_immediate,
13095         solaris_optimized_link_follow): New functions.
13096         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13097         (check_same_link): Use it.
13098
13099 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13100
13101         New module 'unigbrk/base'.
13102         * modules/unigbrk/base: New file.
13103         * lib/unigbrk.in.h: New file.
13104
13105         New module 'unigbrk/uc-gbrk-prop'.
13106         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13107         * modules/unigbrk/uc-gbrk-prop: New file.
13108         * lib/unigbrk/gbrkprop.h: New file.
13109         * lib/unigbrk/uc-gbrk-prop.c: New file.
13110
13111         New module 'unigbrk/uc-is-grapheme-break'.
13112         * modules/unigbrk/uc-is-grapheme-break: New file.
13113         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13114         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13115         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13116         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13117         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13118
13119         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13120
13121 2010-12-27  Bruno Haible  <bruno@clisp.org>
13122
13123         linkat test: Avoid failure on Solaris 11 2010-11.
13124         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13125
13126 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13127
13128         utimens: work around glibc rounding bug on more platforms
13129         * lib/utimens.c (fdutimens): Work around rounding bug even if
13130         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13131         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13132
13133 2010-12-27  Bruno Haible  <bruno@clisp.org>
13134
13135         select tests: Improve comments.
13136         * tests/test-select.c (do_select): Add comments.
13137
13138 2010-12-27  Bruno Haible  <bruno@clisp.org>
13139
13140         select tests: Safer way of handling timeout.
13141         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13142         at every invocation.
13143
13144 2010-12-27  Bruno Haible  <bruno@clisp.org>
13145
13146         select tests: Use 'bool' where appropriate.
13147         * tests/test-select.c (connect_to_socket): Change argument type to
13148         'bool'.
13149
13150 2010-12-27  Bruno Haible  <bruno@clisp.org>
13151
13152         select tests: Use existing modules.
13153         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13154         (configure.ac): Don't test for unistd.h.
13155         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13156         declared in <unistd.h>.
13157
13158 2010-12-27  Bruno Haible  <bruno@clisp.org>
13159
13160         mbrtowc: Work around a Solaris 7 bug.
13161         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13162         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13163         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13164         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13165         MBRTOWC_NULL_ARG1_BUG.
13166         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13167         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13168         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13169         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13170
13171 2010-12-27  Jim Meyering  <meyering@redhat.com>
13172
13173         read-file.c: tweak syntax
13174         * lib/read-file.c (fread_file): Remove space after "*" in function
13175         definitions.
13176
13177 2010-12-27  Bruno Haible  <bruno@clisp.org>
13178
13179         times test: Avoid gcc warnings on OSF/1.
13180         * tests/test-times.c (main): Cast printf arguments from clock_t to
13181         'long int'.
13182
13183 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13184
13185         utimens: work around glibc rounding bug on older Linux kernels
13186         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13187         on Linux with a glibc whose utimes might not work, then work
13188         around a longstanding glibc bug involving rounding rather than
13189         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13190         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13191
13192 2010-12-26  Bruno Haible  <bruno@clisp.org>
13193
13194         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13195         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13196         _GL_CXXALIAS_SYS.
13197         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13198
13199 2010-12-26  Bruno Haible  <bruno@clisp.org>
13200
13201         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13202         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13203         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13204         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13205         looking for the declaration.
13206         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13207         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13208         problem.
13209         * doc/posix-functions/inet_pton.texi: Likewise.
13210
13211 2010-12-26  Bruno Haible  <bruno@clisp.org>
13212
13213         arpa_inet: Use the common idioms with C++ support.
13214         * lib/arpa_inet.in.h: Include c++defs.h.
13215         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13216         support.
13217         * modules/arpa_inet (Depends-on): Add c++defs.
13218         (Makefile.am): Substitute the contents of c++defs.h.
13219         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13220         * modules/arpa_inet-c++-tests: New file.
13221         * tests/test-arpa_inet-c++.cc: New file.
13222
13223 2010-12-25  Bruno Haible  <bruno@clisp.org>
13224
13225         Fix more C++ link errors on Solaris 8.
13226         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13227         $(LIB_EACCESS).
13228         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13229         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13230         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13231         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13232         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13233
13234 2010-12-25  Bruno Haible  <bruno@clisp.org>
13235
13236         printf-posix: Fix link error when a non-GCC compiler is used.
13237         * lib/stdio.in.h (printf): When not using GCC, override printf
13238         correctly.
13239         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13240
13241 2010-12-25  Bruno Haible  <bruno@clisp.org>
13242
13243         strerror_r-posix: Update doc.
13244         * doc/posix-functions/strerror_r.texi: Update doc about the return
13245         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13246
13247 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13248
13249         utimens: simplify the logic of the previous change
13250         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13251         This should not affect whether the test succeeds or fails.
13252
13253         utimens: configure better on hosts with NFS clock skew
13254         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13255         uses the clock of the local host.  It might use the clock of the
13256         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13257         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13258
13259 2010-12-25  Bruno Haible  <bruno@clisp.org>
13260
13261         ptsname test: Avoid failure on Solaris.
13262         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13263         open a pseudo-terminal; don't use BSD-style ptys.
13264         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13265
13266 2010-12-25  Bruno Haible  <bruno@clisp.org>
13267
13268         ptsname: Avoid ERANGE failure on some systems.
13269         * lib/ptsname.c (buffer): Increase size.
13270
13271 2010-12-25  Bruno Haible  <bruno@clisp.org>
13272
13273         rename, renameat: Avoid test failures at NFS mounted locations.
13274         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13275         so that subsequent mkdir calls succeed.
13276
13277 2010-12-25  Bruno Haible  <bruno@clisp.org>
13278
13279         iswblank: Fix C++ link error on Solaris 8.
13280         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13281         _GL_FUNCDECL_SYS.
13282
13283 2010-12-25  Bruno Haible  <bruno@clisp.org>
13284
13285         unistd: Fix C++ link error on Solaris 8.
13286         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13287
13288 2010-12-25  Bruno Haible  <bruno@clisp.org>
13289
13290         readlink doc: Mention an old glibc bug.
13291         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13292
13293 2010-12-25  Bruno Haible  <bruno@clisp.org>
13294
13295         fcntl-h: Fix for use of C++ on glibc systems.
13296         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13297         also on glibc systems in C++ mode.
13298         Reported by Gary V. Vaughan <gary@gnu.org>.
13299
13300 2010-12-25  Bruno Haible  <bruno@clisp.org>
13301
13302         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13303         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13304
13305 2010-12-25  Bruno Haible  <bruno@clisp.org>
13306
13307         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13308         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13309         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13310         test whether truncl works according to ISO C 99 with IEC 60559.
13311         * m4/truncl-ieee.m4: New file.
13312         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13313         m4/signbit.m4.
13314         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13315
13316 2010-12-25  Bruno Haible  <bruno@clisp.org>
13317
13318         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13319         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13320         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13321         test whether ceill works according to ISO C 99 with IEC 60559.
13322         * m4/ceill-ieee.m4: New file.
13323         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13324         m4/signbit.m4.
13325         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13326
13327 2010-12-25  Bruno Haible  <bruno@clisp.org>
13328
13329         Ensure all prerequisites of <wchar.h> are included.
13330         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13331         before <wchar.h>.
13332         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13333         gl_MBRLEN_NUL_RETVAL): Likewise.
13334         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13335         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13336         AC_FUNC_MBRTOWC): Likewise.
13337         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13338         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13339         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13340         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13341         Likewise.
13342         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13343         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13344         (gl_WCHAR_H): Improve comments.
13345         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13346
13347 2010-12-25  Bruno Haible  <bruno@clisp.org>
13348
13349         strtok_r: Fix C syntax error in autoconf macro.
13350         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13351         characters in test program.
13352
13353 2010-12-24  Bruno Haible  <bruno@clisp.org>
13354
13355         ceil, trunc, round: Fix gcc warnings.
13356         * lib/ceil.c (MIN): Undefine before redefining.
13357         * lib/trunc.c (MIN): Likewise.
13358         * lib/round.c (MIN): Likewise.
13359         Include <math.h> first.
13360
13361 2010-12-24  Bruno Haible  <bruno@clisp.org>
13362
13363         select tests: Avoid failures on OSF/1 5.1.
13364         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13365         failure of closing the last socket; it may fail with ECONNRESET.
13366
13367 2010-12-24  Eric Blake  <eblake@redhat.com>
13368
13369         stdint: avoid HP-UX 10.20 preprocessor bug
13370         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13371         than #if.
13372         * tests/test-floor2.c (main): Likewise.
13373         Reported by Peter O'Gorman.
13374
13375         pipe: make obsoletion transition easier
13376         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13377         * modules/pipe (Files): Include revived file.
13378         (Include): Drop reference, to mirror getdate's behavior.
13379
13380 2010-12-24  Bruno Haible  <bruno@clisp.org>
13381
13382         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13383         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13384         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13385         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13386
13387 2010-12-24  Bruno Haible  <bruno@clisp.org>
13388
13389         gethostname: Ensure declaration on NonStop Kernel.
13390         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13391         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13392
13393 2010-12-24  Bruno Haible  <bruno@clisp.org>
13394
13395         sys_select: Ensure all necessary types on NonStop Kernel.
13396         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13397         include <sys/time.h>.
13398         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13399         NonStop Kernel.
13400         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13401
13402 2010-12-24  Bruno Haible  <bruno@clisp.org>
13403
13404         sys_select: Remove unneeded include.
13405         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13406         have <sys/select.h>.
13407
13408 2010-12-24  Bruno Haible  <bruno@clisp.org>
13409
13410         gethostname: Provide a fallback for HOST_NAME_MAX.
13411         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13412         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13413         instead.
13414         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13415
13416 2010-12-24  Bruno Haible  <bruno@clisp.org>
13417
13418         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13419         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13420         (SA_RESTART): Likewise.
13421         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13422
13423 2010-12-24  Bruno Haible  <bruno@clisp.org>
13424
13425         signal: Define NSIG.
13426         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13427         * tests/test-signal.c (nsig): New variable.
13428         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13429
13430 2010-12-24  Bruno Haible  <bruno@clisp.org>
13431
13432         rename, renameat: Avoid test failures on OSF/1 5.1.
13433         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13434         alternative error codes.
13435         * tests/test-renameat.c (main): Likewise.
13436
13437 2010-12-24  Bruno Haible  <bruno@clisp.org>
13438
13439         *printf: Detect large precisions bug on Solaris 10/SPARC.
13440         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13441         by Paul Eggert.
13442         * tests/test-snprintf-posix.h (test_function): Add this test code here
13443         too.
13444         * tests/test-sprintf-posix.h (test_function): Likewise.
13445         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13446         * tests/test-vasprintf-posix.c (test_function): Likewise.
13447         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13448         around by gnulib.
13449         * doc/posix-functions/printf.texi: Likewise.
13450         * doc/posix-functions/snprintf.texi: Likewise.
13451         * doc/posix-functions/sprintf.texi: Likewise.
13452         * doc/posix-functions/vfprintf.texi: Likewise.
13453         * doc/posix-functions/vprintf.texi: Likewise.
13454         * doc/posix-functions/vsnprintf.texi: Likewise.
13455         * doc/posix-functions/vsprintf.texi: Likewise.
13456         * doc/posix-functions/dprintf.texi: Undo last commit.
13457         * doc/posix-functions/vdprintf.texi: Likewise.
13458
13459 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13460
13461         tests: port test-fdutimensat.c to Solaris 8
13462         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13463         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13464         On Solaris 8, it fails with errno == ENOSYS, because there is no
13465         futimens (so it can't use the fd), and there is no lutimens (so it
13466         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13467
13468         vsnprintf: make more consistent with snprintf; doc fixes
13469
13470         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13471         the byte count return problem was promoted from the snprintf-posix
13472         to the snprintf module.
13473         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13474         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13475         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13476         * tests/test-snprintf.c (main): Check the byte count returned.
13477         * tests/test-vsnprintf.c (main): Likewise.
13478
13479 2010-12-23  Eric Blake  <eblake@redhat.com>
13480
13481         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13482         * modules/sigpipe (License): Relax license.
13483
13484 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13485
13486         doc: document Solaris printf bug with large float precisions
13487         * doc/posix-functions/dprintf.texi (dprintf):
13488         * doc/posix-functions/fprintf.texi (fprintf):
13489         * doc/posix-functions/printf.texi (printf):
13490         * doc/posix-functions/snprintf.texi (snprintf):
13491         * doc/posix-functions/sprintf.texi (sprintf):
13492         * doc/posix-functions/vdprintf.texi (vdprintf):
13493         * doc/posix-functions/vfprintf.texi (vfprintf):
13494         * doc/posix-functions/vprintf.texi (vprintf):
13495         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13496         * doc/posix-functions/vsprintf.texi (vsprintf):
13497         Mention that these functions mishandle large floating point
13498         precisions on Solaris 10.  The same bug is also present in Solaris
13499         8, and I assume earlier.  This causes "cd gnulib-tests; make
13500         check" to fail on Solaris 8 (and I assume, later) when building
13501         the latest coreutils, in test-vasprintf-posix's call to
13502         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13503         the wide flavors (e.g., wprintf) so this patch just updates the
13504         documentation for the narrow ones.
13505
13506         test-posixtm.c: add two tests
13507         * tests/test-posixtm.c: Add two tests, to highlight the
13508         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13509         around this bug; this is merely to document it.
13510
13511 2010-12-22  Bruno Haible  <bruno@clisp.org>
13512
13513         getlogin_r: Work around portability problem on OSF/1.
13514         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13515         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13516         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13517         test for a truncated result.
13518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13519         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13520         * modules/getlogin_r (Depends-on): Add memchr.
13521         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13522
13523 2010-12-22  Bruno Haible  <bruno@clisp.org>
13524
13525         ptsname: Avoid test failure on OSF/1 5.1.
13526         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13527         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13528         (same_slave): New function.
13529         (main): Use it to compare ptsname's result with the expected file name.
13530
13531 2010-12-22  Bruno Haible  <bruno@clisp.org>
13532
13533         Port extended stdio modules to HP NonStop Kernel.
13534         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13535         macros.
13536         * lib/fbufmode.c: Update comments.
13537         * lib/fflush.c: Likewise.
13538         * lib/fpurge.c: Likewise.
13539         * lib/freadable.c: Likewise.
13540         * lib/freadahead.c: Likewise.
13541         * lib/freading.c: Likewise.
13542         * lib/freadptr.c: Likewise.
13543         * lib/freadseek.c: Likewise.
13544         * lib/fseeko.c: Likewise.
13545         * lib/fseterr.c: Likewise.
13546         * lib/fwritable.c: Likewise.
13547         * lib/fwriting.c: Likewise.
13548         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13549
13550 2010-12-22  Bruno Haible  <bruno@clisp.org>
13551
13552         ttyname_r: Work around bug on OSF/1 5.1.
13553         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13554         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13555         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13556         present.
13557         * lib/ttyname_r.c (ttyname_r): Update comments.
13558
13559 2010-12-22  Bruno Haible  <bruno@clisp.org>
13560
13561         round: Implement result sign according to IEEE 754.
13562         * lib/round.c (MIN, MINUS_ZERO): New macros.
13563         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13564         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13565         * tests/test-round-ieee.c (main): Likewise.
13566         * tests/test-roundl-ieee.c (main): Likewise.
13567
13568         trunc: Implement result sign according to IEEE 754.
13569         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13570         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13571         * tests/test-trunc2.c: Include minus-zero.h.
13572         (MINUS_ZERO): New macro.
13573         (trunc_reference): Keep in sync with lib/trunc.c.
13574         * tests/test-truncf2.c: Include minus-zero.h.
13575         (MINUS_ZERO): New macro.
13576         (truncf_reference): Keep in sync with lib/trunc.c.
13577         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13578         * tests/test-trunc-ieee.c (main): Likewise.
13579         * tests/test-truncl-ieee.c (main): Likewise.
13580
13581         ceil: Implement result sign according to IEEE 754.
13582         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13583         (FUNC): Return -0.0 for -1 < x < 0.
13584         * tests/test-ceil2.c: Include minus-zero.h.
13585         (MINUS_ZERO): New macro.
13586         (ceil_reference): Keep in sync with lib/ceil.c.
13587         * tests/test-ceilf2.c: Include minus-zero.h.
13588         (MINUS_ZERO): New macro.
13589         (ceilf_reference): Keep in sync with lib/ceil.c.
13590         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13591         * tests/test-ceil-ieee.c (main): Likewise.
13592         * tests/test-ceill-ieee.c (main): Likewise.
13593
13594         floor: Implement result sign according to IEEE 754.
13595         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13596         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13597         * tests/test-floorf2.c (floorf_reference): Likewise.
13598         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13599         * tests/test-floor-ieee.c (main): Likewise.
13600         * tests/test-floorl-ieee.c (main): Likewise.
13601
13602 2010-12-22  Bruno Haible  <bruno@clisp.org>
13603
13604         getaddrinfo: Update doc.
13605         * doc/posix-functions/gai_strerror.texi: Return type is also different
13606         on AIX and HP-UX.
13607
13608 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13609
13610         getaddrinfo, inet_ntop: Update doc for Solaris.
13611         * doc/posix-functions/gai_strerror.texi: Return type is also an
13612         issue on Solaris 9 and earlier.
13613         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13614         on Solaris 10 and earlier.
13615
13616 2010-12-21  Bruno Haible  <bruno@clisp.org>
13617
13618         New module 'roundl-ieee'.
13619         * modules/roundl-ieee: New file.
13620         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13621         test whether roundl works according to ISO C 99 with IEC 60559.
13622         * m4/roundl-ieee.m4: New file.
13623         * modules/roundl-ieee-tests: New file.
13624         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13625         * tests/test-roundl.c (main): Remove signbit tests.
13626         * modules/roundl-tests (Depends-on): Remove signbit.
13627         * doc/posix-functions/roundl.texi: Mention the new module.
13628
13629 2010-12-21  Bruno Haible  <bruno@clisp.org>
13630
13631         New module 'truncl-ieee'.
13632         * modules/truncl-ieee: New file.
13633         * modules/truncl-ieee-tests: New file.
13634         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13635         * tests/test-truncl.c (main): Remove signbit tests.
13636         * modules/truncl-tests (Depends-on): Remove signbit.
13637         * doc/posix-functions/truncl.texi: Mention the new module.
13638
13639 2010-12-21  Bruno Haible  <bruno@clisp.org>
13640
13641         New module 'ceill-ieee'.
13642         * modules/ceill-ieee: New file.
13643         * modules/ceill-ieee-tests: New file.
13644         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13645         * tests/test-ceill.c (main): Remove signbit tests.
13646         * modules/ceill-tests (Depends-on): Remove signbit.
13647         * doc/posix-functions/ceill.texi: Mention the new module.
13648
13649 2010-12-21  Bruno Haible  <bruno@clisp.org>
13650
13651         New module 'floorl-ieee'.
13652         * modules/floorl-ieee: New file.
13653         * modules/floorl-ieee-tests: New file.
13654         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13655         * tests/test-floorl.c (main): Remove signbit tests.
13656         * modules/floorl-tests (Depends-on): Remove signbit.
13657         * doc/posix-functions/floorl.texi: Mention the new module.
13658
13659 2010-12-21  Bruno Haible  <bruno@clisp.org>
13660
13661         New module 'round-ieee'.
13662         * modules/round-ieee: New file.
13663         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13664         whether round works according to ISO C 99 with IEC 60559.
13665         * m4/round-ieee.m4: New file.
13666         * modules/round-ieee-tests: New file.
13667         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13668         * tests/test-round1.c (main): Remove signbit tests.
13669         * modules/round-tests (Depends-on): Remove 'signbit'.
13670         * doc/posix-functions/round.texi: Mention the new module.
13671
13672 2010-12-21  Bruno Haible  <bruno@clisp.org>
13673
13674         New module 'trunc-ieee'.
13675         * modules/trunc-ieee: New file.
13676         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13677         whether trunc works according to ISO C 99 with IEC 60559.
13678         * m4/trunc-ieee.m4: New file.
13679         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13681         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13682         * modules/trunc-ieee-tests: New file.
13683         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13684         * tests/test-trunc1.c (main): Remove signbit tests.
13685         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13686         * doc/posix-functions/trunc.texi: Mention the new module.
13687
13688 2010-12-21  Bruno Haible  <bruno@clisp.org>
13689
13690         New module 'ceil-ieee'.
13691         * modules/ceil-ieee: New file.
13692         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13693         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13694         ISO C 99 with IEC 60559.
13695         * m4/ceil-ieee.m4: New file.
13696         * modules/ceil (Files): Add lib/ceil.c.
13697         (Depends-on): Add 'float'.
13698         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13699         * lib/math.in.h (ceil): New declaration.
13700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13701         REPLACE_CEIL.
13702         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13703         * modules/ceil-ieee-tests: New file.
13704         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13705         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13706         * doc/posix-functions/ceil.texi: Mention the new module.
13707
13708 2010-12-21  Bruno Haible  <bruno@clisp.org>
13709
13710         New module 'floor-ieee'.
13711         * modules/floor-ieee: New file.
13712         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13713         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13714         ISO C 99 with IEC 60559.
13715         * m4/floor-ieee.m4: New file.
13716         * modules/floor (Files): Add lib/floor.c.
13717         (Depends-on): Add 'float'.
13718         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13719         * lib/math.in.h (floor): New declaration.
13720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13721         REPLACE_FLOOR.
13722         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13723         * modules/floor-ieee-tests: New file.
13724         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13725         * tests/test-math-c++.cc: Check the signature of 'floor'.
13726         * doc/posix-functions/floor.texi: Mention the new module.
13727
13728 2010-12-21  Bruno Haible  <bruno@clisp.org>
13729
13730         New module 'roundf-ieee'.
13731         * modules/roundf-ieee: New file.
13732         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13733         test whether roundf works according to ISO C 99 with IEC 60559.
13734         * m4/roundf-ieee.m4: New file.
13735         * modules/roundf-ieee-tests: New file.
13736         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13737         * tests/test-roundf1.c (main): Remove signbit tests.
13738         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13739         * doc/posix-functions/roundf.texi: Mention the new module.
13740
13741 2010-12-21  Bruno Haible  <bruno@clisp.org>
13742
13743         New module 'truncf-ieee'.
13744         * modules/truncf-ieee: New file.
13745         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13746         test whether truncf works according to ISO C 99 with IEC 60559.
13747         * m4/truncf-ieee.m4: New file.
13748         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13750         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13751         * modules/truncf-ieee-tests: New file.
13752         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13753         * tests/test-truncf1.c (main): Remove signbit tests.
13754         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13755         * doc/posix-functions/truncf.texi: Mention the new module.
13756
13757 2010-12-21  Bruno Haible  <bruno@clisp.org>
13758
13759         New module 'ceilf-ieee'.
13760         * modules/ceilf-ieee: New file.
13761         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13762         test whether ceilf works according to ISO C 99 with IEC 60559.
13763         * m4/ceilf-ieee.m4: New file.
13764         * modules/ceilf-ieee-tests: New file.
13765         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13766         * tests/test-ceilf1.c (main): Remove signbit tests.
13767         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13768         * doc/posix-functions/ceilf.texi: Mention the new module.
13769
13770 2010-12-21  Bruno Haible  <bruno@clisp.org>
13771
13772         New module 'floorf-ieee'.
13773         * modules/floorf-ieee: New file.
13774         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13775         test whether floorf works according to ISO C 99 with IEC 60559.
13776         * m4/floorf-ieee.m4: New file.
13777         * modules/floorf-ieee-tests: New file.
13778         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13779         * tests/test-floorf1.c (main): Remove signbit tests.
13780         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13781         * doc/posix-functions/floorf.texi: Mention the new module.
13782
13783 2010-12-21  Bruno Haible  <bruno@clisp.org>
13784
13785         Support for minus zero in autoconf macros.
13786         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13787         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13788         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13789         * tests/minus-zero.h: Update comments.
13790
13791 2010-12-21  Bruno Haible  <bruno@clisp.org>
13792
13793         Tests for module 'ceil'.
13794         * modules/ceil-tests: New file.
13795         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13796         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13797
13798 2010-12-21  Bruno Haible  <bruno@clisp.org>
13799
13800         Tests for module 'floor'.
13801         * modules/floor-tests: New file.
13802         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13803         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13804
13805 2010-12-21  Bruno Haible  <bruno@clisp.org>
13806
13807         math: Fix indentation.
13808         * lib/math.in.h (floorf): Fix indentation.
13809
13810 2010-12-21  Bruno Haible  <bruno@clisp.org>
13811
13812         Fix cross-compilation guesses on Solaris.
13813         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13814         not match "solaris2.10".
13815         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13816         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13817         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13818
13819 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13820
13821         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13822         This fixes a problem observed with the latest coreutils snapshot
13823         that caused a test to fail on Solaris 8.  src/csplit.c's call
13824         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13825         earlier, instead of returning the number of bytes that would have
13826         been generated; this causes csplit to incorrectly report memory
13827         exhaustion.
13828         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13829         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13830         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13831         comments to match.
13832         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13833         Fix typo in matching older versions of Solaris: "solaris2.10"
13834         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13835         only for guessing while cross-compiling.
13836         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13837
13838 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13839
13840         ftoastr: fix comment again
13841         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13842         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13843         Also, simplify example a bit by using flags = 0.
13844
13845 2010-12-20  Bruno Haible  <bruno@clisp.org>
13846
13847         round*, trunc*: Update documentation regarding glibc.
13848         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13849         * doc/posix-functions/round.texi: Likewise.
13850         * doc/posix-functions/roundl.texi: Likewise.
13851         * doc/posix-functions/truncf.texi: Likewise.
13852         * doc/posix-functions/trunc.texi: Likewise.
13853         * doc/posix-functions/truncl.texi: Likewise.
13854
13855 2010-12-20  Bruno Haible  <bruno@clisp.org>
13856
13857         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13858         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13859         * doc/posix-functions/round.texi: Likewise.
13860         * doc/posix-functions/roundl.texi: Likewise.
13861
13862 2010-12-20  Bruno Haible  <bruno@clisp.org>
13863
13864         ttyname_r: Add missing declaration on HP-UX 11.
13865         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13866         HAVE_TTYNAME_R.
13867         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13868         declared. Set HAVE_TTYNAME_R always.
13869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13870         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13871         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13872         HAVE_TTYNAME_R.
13873         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13874
13875 2010-12-20  Bruno Haible  <bruno@clisp.org>
13876
13877         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13878         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13879         * doc/posix-functions/getlogin_r.texi: Likewise.
13880         * tests/test-getlogin.c: Include <errno.h>.
13881         (main): Avoid test failure on HP-UX 11.11.
13882         * tests/test-getlogin_r.c (main): Likewise.
13883
13884 2010-12-20  Bruno Haible  <bruno@clisp.org>
13885
13886         getlogin_r: Add missing declaration on HP-UX 11.
13887         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13888         declared also when it exists as a function.
13889         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13890
13891 2010-12-20  Bruno Haible  <bruno@clisp.org>
13892
13893         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13894         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13895         through wcrtomb.
13896
13897 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13898
13899         ftoastr: fix comment
13900         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13901         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13902
13903 2010-12-19  Bruno Haible  <bruno@clisp.org>
13904
13905         isnan: Ensure it is a macro.
13906         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13907         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13908         Solaris.
13909
13910 2010-12-19  Bruno Haible  <bruno@clisp.org>
13911
13912         ldexpl test: Fix link error on OSF/1 5.1.
13913         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13914
13915 2010-12-19  Bruno Haible  <bruno@clisp.org>
13916
13917         wctype: Make it work in C++ mode on OSF/1 5.1.
13918         * lib/wctype.in.h (iswblank): Declare but not define here.
13919         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13920         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13921         * modules/wctype (Files): Add lib/iswblank.c.
13922
13923 2010-12-19  Bruno Haible  <bruno@clisp.org>
13924
13925         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13926         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13927         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13928
13929 2010-12-19  Bruno Haible  <bruno@clisp.org>
13930
13931         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13932         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13933         _POSIX_PII_SOCKET.
13934         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13935         * doc/posix-functions/recvfrom.texi: Likewise.
13936         * doc/posix-functions/send.texi: Likewise.
13937         * doc/posix-functions/sendto.texi: Likewise.
13938
13939 2010-12-19  Bruno Haible  <bruno@clisp.org>
13940
13941         tcgetsid: Add missing declaration on OSF/1 5.1.
13942         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13943         HAVE_TCGETSID.
13944         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13945         Don't set HAVE_TCGETSID.
13946         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13947         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13948         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13949         HAVE_TCGETSID.
13950         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13951
13952 2010-12-19  Bruno Haible  <bruno@clisp.org>
13953
13954         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13955         * lib/stdio.in.h: During the include_next statement, let recursive
13956         includes of this file include only the system header file.
13957
13958 2010-12-19  Bruno Haible  <bruno@clisp.org>
13959
13960         iconv_open: Fix regression from 2010-12-04.
13961         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13962         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13963
13964 2010-12-19  Bruno Haible  <bruno@clisp.org>
13965
13966         stdbool test: Avoid a gcc warning.
13967         * tests/test-stdbool.c (main): Fail if e1 is false.
13968         Reported by Jim Meyering.
13969
13970 2010-12-19  Jim Meyering  <meyering@redhat.com>
13971
13972         setenv: restore to working order
13973         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13974         mistakenly removed.
13975         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13976         HAVE_SETENV.
13977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13978         HAVE_SETENV.
13979
13980 2010-12-19  Bruno Haible  <bruno@clisp.org>
13981
13982         Document some different function declarations on OSF/1 5.1.
13983         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13984         * doc/posix-functions/inet_ntop.texi: Likewise.
13985         * doc/posix-functions/gethostname.texi: Likewise.
13986         * lib/unistd.in.h (gethostname): Update comment.
13987
13988 2010-12-19  Bruno Haible  <bruno@clisp.org>
13989
13990         doc: Mention vasprintf-posix module.
13991         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13992         the 'vasprintf-posix' module.
13993         * doc/glibc-functions/vasprintf.texi: Likewise.
13994
13995 2010-12-19  Bruno Haible  <bruno@clisp.org>
13996
13997         unsetenv: Add missing declaration on OSF/1 5.1.
13998         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13999         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14000         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14002         not HAVE_UNSETENV.
14003         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14004         HAVE_UNSETENV.
14005         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14006
14007 2010-12-19  Bruno Haible  <bruno@clisp.org>
14008
14009         setenv: Add missing declaration on OSF/1 5.1.
14010         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14011         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14012         declared. Don't set HAVE_SETENV.
14013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14014         not HAVE_SETENV.
14015         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14016         HAVE_SETENV.
14017         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14018
14019 2010-12-19  Bruno Haible  <bruno@clisp.org>
14020
14021         nl_langinfo tests: Avoid gcc warning.
14022         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14023
14024 2010-12-19  Bruno Haible  <bruno@clisp.org>
14025
14026         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14027         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14028         _GL_CXXALIAS_SYS.
14029
14030 2010-12-19  Bruno Haible  <bruno@clisp.org>
14031
14032         stdbool: Relax test.
14033         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14034         address to 'bool' work in static initializer, for compilers other than
14035         GCC.
14036
14037 2010-12-19  Bruno Haible  <bruno@clisp.org>
14038
14039         ftello: Add missing declaration on OSF/1 5.1.
14040         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14041         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14043         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14044         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14045
14046 2010-12-19  Bruno Haible  <bruno@clisp.org>
14047
14048         fseeko: Add missing declaration on OSF/1 5.1.
14049         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14050         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14052         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14053         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14054
14055 2010-12-19  Bruno Haible  <bruno@clisp.org>
14056
14057         fchdir: Add missing declaration on OSF/1 5.1.
14058         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14061         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14062         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14063
14064 2010-12-19  Bruno Haible  <bruno@clisp.org>
14065
14066         relocatable-prog-wrapper: Separate from relocatable-prog.
14067         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14068         uninstall-relocwrapper rule here.
14069         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14070         Reported by Ian Beckwith <ianb@erislabs.net>.
14071
14072 2010-12-19  Bruno Haible  <bruno@clisp.org>
14073
14074         unistr/u8-mbsnlen: Add missing dependency.
14075         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14076         Reported by Ian Beckwith <ianb@erislabs.net>.
14077
14078 2010-12-19  Bruno Haible  <bruno@clisp.org>
14079
14080         iconv: Make it possible again to use this module without 'iconv-h'.
14081         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14082         if it is not defined.
14083         Reported by Ian Beckwith <ianb@erislabs.net>.
14084
14085 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14086
14087         acl: port to Solaris 8 when copying from tmpfs to ufs
14088         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14089         error number.  Problem observed on Solaris 8 with latest
14090         coreutils, with "mv A B", where A is on a tmpfs file system and B
14091         is on a ufs file system.  This caused coreutils' mv/part-symlink
14092         test to fail.
14093
14094         tests: set fail=0 at start
14095         * tests/init.sh (setup_): Move fail=0 initialization here ...
14096         (mktempd_): ... from here, so that tests can rely on fail being
14097         set to 0 initially.  This fixes a problem in coreutils; see:
14098         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14099
14100 2010-12-18  Bruno Haible  <bruno@clisp.org>
14101
14102         memmem-simple: Stylistic changes.
14103         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14104         Fix preprocessor directive indentation.
14105
14106 2010-12-15  Pádraig Brady <P@draigBrady.com>
14107
14108         memmem, memmem-simple: reorganize and expand empty needle check
14109         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14110         functional checks to memmem-simple so that one has a fully functional
14111         memmem by using just this module.
14112         Restrict the performance only check to the memmem module.
14113         Also expand the empty needle check to ensure the correct
14114         pointer is returned, not just a non NULL pointer.
14115         * doc/glibc-functions/memmem.texi: Rearrange the portability
14116         documentation to correlate with the rearranged checks.
14117         Clarify exactly how the memmem and memmem-simple modules
14118         relate to each other.
14119
14120 2010-12-15  Pádraig Brady <P@draigBrady.com>
14121             Bruno Haible  <bruno@clisp.org>
14122
14123         Improve cross-compilation guesses for uClibc.
14124         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14125         that uClibc does not have the glibc bug.
14126         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14127         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14128
14129 2010-12-14  Eric Blake  <eblake@redhat.com>
14130
14131         configmake: provide fallbacks for oldest supported autotools
14132         * m4/configmake.m4: New file.
14133         * modules/configmake (Files): Ship it.
14134         (configure.ac): Use it to guarantee fallbacks.
14135
14136 2010-12-13  Pádraig Brady <P@draigBrady.com>
14137
14138         read-file: Improve handling of large files
14139         * lib/read-file.c (fread_file): Minimize realloc()s
14140         for regular files, and better manage sizes around SIZE_MAX.
14141
14142 2010-12-13  Eric Blake  <eblake@redhat.com>
14143
14144         cloexec, fcntl: relax license
14145         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14146         consent from all contributors.
14147         * modules/fcntl (License): Likewise.
14148
14149 2010-12-10  Bruno Haible  <bruno@clisp.org>
14150
14151         Tests for module 'pipe-posix'.
14152         * modules/pipe-posix-tests: New file.
14153         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14154
14155 2010-12-10  Bruno Haible  <bruno@clisp.org>
14156
14157         pipe-posix: Make it work in C++ mode.
14158         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14159         (pipe): Use common idiom, not a macro definition.
14160         * lib/pipe.c: New file.
14161         * m4/pipe.m4: New file.
14162         * modules/pipe-posix (Description): Enhance.
14163         (Files): Add lib/pipe.c, m4/pipe.m4.
14164         (configure.ac): Invoke gl_FUNC_PIPE.
14165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14166         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14167         * tests/test-unistd-c++.cc: Check the signature of pipe.
14168
14169 2010-12-10  Bruno Haible  <bruno@clisp.org>
14170
14171         Rename module 'pipe' to 'spawn-pipe'.
14172         * modules/spawn-pipe: New file, renamed from modules/pipe.
14173         (Files, configure.ac, Makefile.am): Update.
14174         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14175         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14176         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14177         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14178         "spawn-pipe.h" instead of "pipe.h".
14179         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14180         to gl_SPAWN_PIPE.
14181         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14182         (Files, Makefile.am): Update.
14183         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14184         Update.
14185         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14186         Include "spawn-pipe.h" instead of "pipe.h".
14187         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14188         * lib/javacomp.c: Likewise.
14189         * lib/javaversion.c: Likewise.
14190         * lib/pipe-filter-gi.c: Likewise.
14191         * lib/pipe-filter-ii.c: Likewise.
14192         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14193         * modules/javacomp (Depends-on): Likewise.
14194         * modules/javaversion (Depends-on): Likewise.
14195         * modules/pipe-filter-gi (Depends-on): Likewise.
14196         * modules/pipe-filter-ii (Depends-on): Likewise.
14197         * MODULES.html.sh (Executing programs): Update.
14198         * NEWS: Mention the change.
14199
14200 2010-12-10  Eric Blake  <eblake@redhat.com>
14201
14202         pipe-posix: new module
14203         * modules/pipe-posix: New file.
14204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14205         (gl_UNISTD_H): Check for declaration.
14206         * modules/unistd (Makefile.am): Substitute it.
14207         * lib/unistd.in.h (pipe): Provide it for mingw.
14208         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14209         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14210
14211 2010-12-07  Bruno Haible  <bruno@clisp.org>
14212
14213         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14214         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14215         u8_strcmp_gnu.
14216         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14217
14218 2010-12-06  Bruno Haible  <bruno@clisp.org>
14219
14220         Update internal documentation.
14221         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14222
14223 2010-12-04  Bruno Haible  <bruno@clisp.org>
14224
14225         Put more information about failed tests into the test return codes.
14226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14227         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14228         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14229         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14230         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14231         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14232         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14233         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14234         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14236         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14237         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14238         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14239         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14240         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14241         returns a bit mask.
14242         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14243         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14244         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14245         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14246         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14247         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14248         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14250         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14251         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14252         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14253         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14254         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14255         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14256         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14257         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14258         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14259         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14260         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14261         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14262         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14263         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14264         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14265         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14266         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14267         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14268         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14269         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14270         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14271         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14272         gl_PRINTF_PRECISION): Likewise.
14273         * m4/regex.m4 (gl_REGEX): Likewise.
14274         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14275         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14276         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14277         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14278         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14280         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14281         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14282         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14283         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14284         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14285         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14286         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14287         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14288         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14289         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14290         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14291         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14293         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14294         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14295         enumerated value.
14296         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14297
14298 2010-12-04  Bruno Haible  <bruno@clisp.org>
14299
14300         Update for Solaris 11 2010-11.
14301         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14302         Express, released in November 2010.
14303
14304 2010-12-04  Bruno Haible  <bruno@clisp.org>
14305
14306         nproc: Relax license.
14307         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14308         and Paul Eggert.
14309         Requested by Ludovic Courtès <ludo@gnu.org>.
14310
14311 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14312
14313         utimecmp: fine-grained src to nearby coarse-grained dest
14314
14315         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14316         and the source is on a file system with higher-resolution time
14317         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14318         not work, and the time stamps are close together, the algorithm to
14319         determine the exact resolution from the read-back mtime was buggy:
14320         it had a "!=" where it should have had an "==".  This bug has been
14321         in the code ever since it was introduced to gnulib.
14322         Problem reported by Dan Jacobson in
14323         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14324
14325 2010-11-30  Bruno Haible  <bruno@clisp.org>
14326
14327         strerror_r-posix: Fix autoconf test.
14328         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14329
14330 2010-11-28  Bruno Haible  <bruno@clisp.org>
14331             Paul Eggert  <eggert@cs.ucla.edu>
14332
14333         Tests for module 'getdomainname'.
14334         * modules/getdomainname-tests: New file.
14335         * tests/test-getdomainname.c: New file, based on
14336         tests/test-gethostname.c.
14337
14338 2010-11-28  Bruno Haible  <bruno@clisp.org>
14339             Paul Eggert  <eggert@cs.ucla.edu>
14340
14341         getdomainname: Use the system function when possible.
14342         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14343         (getdomainname): Replace if needed. Provide the declaration if it is
14344         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14345         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14346         (getdomainname): When the system has getdomainname, call the system
14347         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14348         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14349         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14350         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14351         the function if its second argument is of type 'int' or if it is found
14352         in libnsl.
14353         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14354         <sys/systeminfo.h> and sysinfo().
14355         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14357         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14358         HAVE_GETDOMAINNAME.
14359         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14360         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14361         * doc/glibc-functions/getdomainname.texi: Document the problems with
14362         the getdomainname declaration.
14363
14364 2010-11-28  Bruno Haible  <bruno@clisp.org>
14365
14366         sys_socket: Ensure ss_family field on AIX.
14367         * lib/sys_socket.in.h (ss_family): New macro definition.
14368         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14369         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14370         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14371         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14372         * modules/sys_socket (Makefile.am): Substitute
14373         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14374         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14375
14376 2010-11-27  Bruno Haible  <bruno@clisp.org>
14377
14378         readline: Improve configure output.
14379         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14380         "checking for readline..." result understandable.
14381
14382 2010-11-27  Bruno Haible  <bruno@clisp.org>
14383
14384         *printf-posix: Detect a bug on Solaris 10/x86.
14385         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14386         for floating-point output.
14387         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14388         directive.
14389         * tests/test-snprintf-posix.h (test_function): Likewise.
14390         * tests/test-sprintf-posix.h (test_function): Likewise.
14391         * tests/test-vasprintf-posix.c (test_function): Likewise.
14392         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14393         * doc/posix-functions/printf.texi: Likewise.
14394         * doc/posix-functions/snprintf.texi: Likewise.
14395         * doc/posix-functions/sprintf.texi: Likewise.
14396         * doc/posix-functions/vfprintf.texi: Likewise.
14397         * doc/posix-functions/vprintf.texi: Likewise.
14398         * doc/posix-functions/vsnprintf.texi: Likewise.
14399         * doc/posix-functions/vsprintf.texi: Likewise.
14400         * doc/glibc-functions/obstack_printf.texi: Likewise.
14401         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14402
14403 2010-11-27  Bruno Haible  <bruno@clisp.org>
14404
14405         Fix link error when module libunistring-optional is in use.
14406         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14407         * modules/striconveha-tests (Makefile.am): Likewise.
14408
14409 2010-11-27  Bruno Haible  <bruno@clisp.org>
14410
14411         regex: Mention link dependencies.
14412         * modules/regex (Link): New section.
14413         * modules/rpmatch (Link): Likewise.
14414         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14415
14416 2010-11-27  Bruno Haible  <bruno@clisp.org>
14417
14418         ftoastr: Fix compilation error on Solaris.
14419         * lib/ftoastr.c: Include <config.h>.
14420
14421 2010-11-27  Bruno Haible  <bruno@clisp.org>
14422
14423         getloadavg: Update documentation.
14424         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14425
14426 2010-11-27  Bruno Haible  <bruno@clisp.org>
14427
14428         sys_socket: Fix test whether the functions are declared.
14429         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14430         not <sys/select.h>.
14431
14432 2010-11-27  Bruno Haible  <bruno@clisp.org>
14433
14434         getpass: Make sure to get system declaration on some platforms.
14435         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14436         gl_USE_SYSTEM_EXTENSIONS.
14437         * modules/getpass (Depends-on): Add extensions.
14438
14439 2010-11-26  Bruno Haible  <bruno@clisp.org>
14440
14441         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14442         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14443         'iconv' module is present.
14444         (ICONV_CONST): New macro.
14445         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14446         ICONV_CONST.
14447         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14448         set ICONV_CONST.
14449         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14450         here.
14451         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14452         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14453         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14454         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14455         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14456         present.
14457
14458 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14459
14460         ftoastr: comment fix
14461         * lib/ftoastr.c: "little" -> "little or no" in comment
14462
14463 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14464
14465         stdint: port to GCC 4.3 + OSX + Octave
14466         On this platform, stdint.h is buggy and defines int64_t to long
14467         long int.  The replacement defined it to long int, causing
14468         problems with C++ style name mangling.  Instead, trust the system
14469         definition if INT64_MAX is defined, and likewise for the unsigned
14470         variant.   Problem reported by Jarno Rajahalme in
14471         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14472         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14473         and don't mess with int64_t and INT64_MAX in this case.
14474         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14475
14476 2010-11-24  Bruno Haible  <bruno@clisp.org>
14477
14478         doc: Corrections regarding MacOS X 10.4 and 10.5.
14479         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14480         MacOS X.
14481         Reported by Simon Josefsson.
14482
14483 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14484
14485         Uninstall ".bin" files installed by relocwrapper.
14486         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14487         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14488         unless it is already there.
14489
14490 2010-11-21  Bruno Haible  <bruno@clisp.org>
14491
14492         Update for NetBSD 5.0.
14493         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14494         NetBSD; the test fails on NetBSD 5.0.
14495         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14496         about NetBSD.
14497
14498 2010-11-21  Bruno Haible  <bruno@clisp.org>
14499
14500         Update for HP-UX 11.23 and HP-UX 11.31.
14501         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14502         HP-UX.
14503
14504 2010-11-21  Bruno Haible  <bruno@clisp.org>
14505
14506         Update for MacOS X 10.5.
14507         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14508         MacOS X; the test fails on MacOS X 10.5.8.
14509         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14510         about MacOS X.
14511
14512 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14513
14514         bootstrap: add bootstrap_sync option.
14515         See discussion at
14516         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14517         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14518         * build-aux/bootstrap: Accept --bootstrap-sync to update
14519         bootstrap if it is not identical to the local gnulib's
14520         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14521         enable this by default.  Accept --no-bootstrap-sync to disable
14522         it.
14523
14524 2010-11-20  Bruno Haible  <bruno@clisp.org>
14525
14526         Ensure that <features.h> is included before __GLIBC__ is tested.
14527         * lib/printf-parse.h: Include <features.h>.
14528         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14529         Reported by Mike Frysinger <vapier@gentoo.org>.
14530
14531         Ensure that <features.h> is included before __GLIBC__ is tested.
14532         * lib/wchar.in.h: Include <features.h>.
14533         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14534         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14535         Reported by Mike Frysinger <vapier@gentoo.org>.
14536
14537         Ensure that <features.h> is included before __GLIBC__ is tested.
14538         * lib/arpa_inet.in.h: Include <features.h>.
14539         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14540         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14541         Reported by Mike Frysinger <vapier@gentoo.org>.
14542
14543         Ensure that <features.h> is included before __GLIBC__ is tested.
14544         * build-aux/link-warning.h: Include <features.h>.
14545         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14546         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14547         Reported by Mike Frysinger <vapier@gentoo.org>.
14548
14549         Ensure that <features.h> is included before __GLIBC__ is tested.
14550         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14551         Reported by Mike Frysinger <vapier@gentoo.org>.
14552
14553 2010-11-20  Bruno Haible  <bruno@clisp.org>
14554
14555         memmem: Fix autoconf test.
14556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14557
14558 2010-11-20  Bruno Haible  <bruno@clisp.org>
14559
14560         Port to uClibc.
14561         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14562         * lib/fcntl.in.h: Likewise.
14563         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14564         * lib/mbrtowc.c (mbrtowc): Likewise.
14565         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14566         * lib/strerror_r.c: Likewise.
14567         * lib/unistr/u8-strnlen.c: Likewise.
14568         * lib/vasnprintf.c (decimal_point_char): Likewise.
14569         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14570         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14571         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14572         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14573         * tests/test-sigaction.c (handler, main): Likewise.
14574         * lib/freading.h: Treat uClibc like a non-glibc platform.
14575         * lib/freading.c: Likewise.
14576         * lib/gettext.h: Likewise.
14577         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14578         Likewise.
14579         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14580         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14581         * lib/propername.c (proper_name_utf8): Likewise.
14582         * lib/spawn.in.h: Likewise.
14583         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14584         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14585         mem_cd_iconveh_internal): Likewise.
14586         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14587         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14588         strstr, strcasestr): Likewise.
14589         * lib/unicodeio.c (unicode_to_mb): Likewise.
14590         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14591         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14592         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14593         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14594         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14595         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14596         * lib/unistr/u8-stpncpy.c: Likewise.
14597         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14598         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14599         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14600         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14601         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14602         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14603         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14604         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14605         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14606         Likewise.
14607         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14608         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14609         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14610         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14611         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14612         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14613         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14614         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14615         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14616         * tests/test-striconveha.c (main): Likewise.
14617         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14618         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14619         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14620         * doc/posix-functions/getline.texi: Likewise.
14621         Reported by Mike Frysinger <vapier@gentoo.org>.
14622
14623 2010-11-20  Bruno Haible  <bruno@clisp.org>
14624
14625         nproc: Fix condition.
14626         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14627         HAVE_PTHREAD_AFFINITY_NP.
14628
14629 2010-11-20  Bruno Haible  <bruno@clisp.org>
14630
14631         Fix a comment.
14632         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14633
14634 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14635
14636         ftoastr: don't assume snprintf
14637         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14638         Implement a subset of snprintf here, by using sprintf safely.
14639         * modules/ftoastr (Depends-on): Remove snprintf.
14640
14641 2010-11-19  Jim Meyering  <meyering@redhat.com>
14642
14643         test-rename.h: fix compilation failure
14644         * tests/test-rename.h (test_rename): Add omitted "}".
14645
14646 2010-11-17  Jim Meyering  <meyering@redhat.com>
14647
14648         maint.mk: add a URL discussing the no-@acronym policy
14649         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14650
14651 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14652
14653         ftoastr: depend on snprintf, improve comments
14654         * lib/ftoastr.c: Also mention Loitsch's draft.
14655         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14656         needed in the current implementation, but it might simplify
14657         speeding up the code later.
14658         * modules/ftoastr: Depend on snprintf; this improves portability.
14659         Suggested by Bruno Haible in the same email.
14660
14661         ftoastr: port to hosts lacking strtof and strtold
14662         Problem reported by Bruno Haible in
14663         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14664         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14665         environment and strtold (and presumably strtof) are not available.
14666         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14667         (configure.ac): Require gl_C99_STRTOLD.
14668
14669 2010-11-18  Bruno Haible  <bruno@clisp.org>
14670
14671         c-strtold: Avoid link error on AIX 7.
14672         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14673         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14674         (gl_C_STRTOLD): Test whether strtold_l exists.
14675         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14676
14677 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14678
14679         intprops: new macro INT_BITS_STRLEN_BOUND
14680         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14681         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14682         not exposed.  Also, it uses a slightly tighter bound than before;
14683         though this makes no practical difference, we might as well be as
14684         tight as we easily can.
14685
14686         ftoastr: new module, for lossless conversion of floats to short strings
14687         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14688         * modules/ftoastr: New files.
14689
14690 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14691
14692         bootstrap: port to Solaris sed
14693         * build-aux/bootstrap (get_version): Port to Solaris sed.
14694         See Ralf Wildenhues's note in
14695         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14696
14697 2010-11-14  Jim Meyering  <meyering@redhat.com>
14698
14699         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14700         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14701         and move definition closer to sole use.
14702
14703 2010-11-13  Jim Meyering  <meyering@redhat.com>
14704
14705         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14706         Now we require at least autoconf-2.59, which means the work-around
14707         is no longer needed.
14708         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14709         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14710         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14711         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14712         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14713
14714 2010-11-13  Bruno Haible  <bruno@clisp.org>
14715
14716         rename, renameat: Avoid test failures at NFS mounted locations.
14717         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14718         functions.
14719         (test_rename): Use assert_nonexistent.
14720         * tests/test-rename.c: Include <dirent.h>.
14721         * tests/test-renameat.c: Likewise.
14722         Reported by Gary V. Vaughan <gary@gnu.org>.
14723
14724         rename, renameat: Document Linux bug with NFS
14725         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14726         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14727         * doc/posix-functions/renameat.texi: Likewise.
14728         Suggested by Eric Blake.
14729
14730 2010-11-13  Bruno Haible  <bruno@clisp.org>
14731
14732         rename test: Add comments.
14733         * tests/test-rename.h (test_rename): Add structure and comments.
14734
14735 2010-11-13  Eric Blake  <eblake@redhat.com>
14736
14737         maintainer-makefile: cover a few more files
14738         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14739         scripts generated within C files, for libvirt.
14740
14741 2010-11-13  Bruno Haible  <bruno@clisp.org>
14742
14743         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14744         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14745         character, return the number of bytes that belong together, not always
14746         1.
14747         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14748         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14749         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14750         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14751         number of bytes of an invalid character.
14752         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14753         (main): Invoke it.
14754         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14755         results.
14756         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14757         malformed byte sequences.
14758         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14759         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14760         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14761         Reported by Ben Pfaff and Paolo Bonzini.
14762
14763 2010-11-13  Bruno Haible  <bruno@clisp.org>
14764
14765         openat: Work around glibc bug with fchownat() and empty file names.
14766         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14767         (gl_FUNC_FCHOWNAT): Invoke it.
14768         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14769         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14770         Reported by Gary V. Vaughan <gary@gnu.org>.
14771
14772 2010-11-13  Bruno Haible  <bruno@clisp.org>
14773
14774         openat: Ensure autoconf macro ordering.
14775         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14776         gl_USE_SYSTEM_EXTENSIONS.
14777         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14778
14779 2010-11-13  Bruno Haible  <bruno@clisp.org>
14780
14781         Update comments.
14782         * lib/unistr/u8-check.c: Update file name in comments.
14783         * lib/unistr/u8-mblen.c: Likewise.
14784         * lib/unistr/u8-prev.c: Likewise.
14785         * lib/unistr/u8-strmblen.c: Likewise.
14786         * lib/unistr/u8-strmbtouc.c: Likewise.
14787
14788 2010-11-13  Jim Meyering  <meyering@redhat.com>
14789
14790         tests: avoid test failure on Solaris 10 due to lack of PATH export
14791         * tests/test-update-copyright.sh: Don't forget to export PATH.
14792
14793         init.sh: ensure that IFS is defined, just in case...
14794         * tests/init.sh (setup_): Ensure that IFS is defined,
14795         so that saving and restoring it works as expected.  This
14796         appears to be useful at least for an old version of dash
14797         from a long time ago (RH 6).  See here for details:
14798         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14799
14800         maint.mk: tighten "test a == b" check
14801         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14802         test to files that contain something like #!/bin/sh.
14803         Without this, coreutils would get two false positives in
14804         the comments of C source files.
14805
14806 2010-11-12  Eric Blake  <eblake@redhat.com>
14807
14808         bootstrap: fix typo in previous attempt
14809         * build-aux/bootstrap (buildreq): Correct the grouping.
14810         Reported by Paul Eggert.
14811
14812         maintainer-makefile: prohibit test x == x
14813         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14814         Based on a report by Matthias Bolte.
14815
14816         bootstrap: allow FreeBSD gzip
14817         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14818         which has no '.' and goes to stderr.
14819         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14820         Reported by Matthias Bolte.
14821
14822         maintainer-makefile: check for i18n setup
14823         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14824         will likely work.
14825
14826 2010-11-12  Bruno Haible  <bruno@clisp.org>
14827
14828         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14829         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14830         * lib/nanosleep.c (nanosleep): Likewise.
14831
14832 2010-11-11  Bruno Haible  <bruno@clisp.org>
14833
14834         fcntl-h: Fix for use of C++ on glibc systems.
14835         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14836         also on glibc systems in C++ mode.
14837         Reported by Gary V. Vaughan <gary@gnu.org>.
14838
14839 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14840
14841         mknod: avoid false failure with dash
14842         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14843
14844 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14845
14846         unlink: Fix "is it should" typo in diagnostic.
14847         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14848         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14849
14850 2010-11-11  Bruno Haible  <bruno@clisp.org>
14851
14852         Tests for module 'strerror_r-posix'.
14853         * modules/strerror_r-posix-tests: New file.
14854         * tests/test-strerror_r.c: New file.
14855         * tests/test-string-c++.cc: Check the signature of strerror_r.
14856
14857         New module 'strerror_r-posix'.
14858         * lib/string.in.h (strerror_r): New declaration.
14859         * lib/strerror_r.c: New file.
14860         * m4/strerror_r.m4: New file.
14861         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14862         of strerror_r.
14863         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14864         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14865         * modules/strerror_r-posix: New file.
14866         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14867         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14868         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14869         portability problems.
14870
14871 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14872
14873         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14874         line is also considered for output. Quoted function name in shell
14875         command, so temporary files for functions like MyClass::operator()
14876         are removed correctly without errors.
14877
14878 2010-11-09  Bruno Haible  <bruno@clisp.org>
14879
14880         * doc/posix-functions/strerror.texi: List more failing platforms.
14881
14882         * doc/posix-functions/strerror.texi: Add a comment.
14883
14884 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14885
14886         fdopendir: fix bug on MacOS X when low on file descriptors
14887
14888         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14889         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14890         All callers changed.
14891         (fdopendir): Invoke save_cwd at the top level, not after using
14892         multiple dup() calls to use up file descriptors.  Then retry
14893         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14894         less than the maximum number of open file descriptors, because
14895         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14896         on Mac OS X 10.6.4 for tar 1.24
14897         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14898         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14899         and for tar 1.25
14900         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14901
14902 2010-11-07  Bruno Haible  <bruno@clisp.org>
14903
14904         vasnprintf: Support I flag on glibc systems.
14905         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14906         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14907         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14908         snprintf function.
14909         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14910         glibc systems.
14911         * tests/test-vasnprintf-posix3.c: New file.
14912         * modules/vasnprintf-posix-tests (Files): Add it.
14913         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14914
14915 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14916
14917         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14918         * MODULES.html.sh: For compiler warnings, use name
14919         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14920
14921 2010-11-05  Eric Blake  <eblake@redhat.com>
14922
14923         ceil, floor: avoid spurious failure with icc
14924         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14925         [denormals-as-zero] when optimizing without -mieee-fp option.
14926         * tests/test-floorf2.c (floorf_reference): Likewise.
14927         * tests/test-ceilf1.c (dummy): New function.
14928         (main): Use it to outsmart icc's optimization.
14929         * tests/test-floorf1.c (dummy, main): Likewise.
14930
14931         tests: require working signbit
14932         * modules/ceilf-tests (Depends-on): Add signbit.
14933         * modules/ceill-tests (Depends-on): Likewise.
14934         * modules/floorf-tests (Depends-on): Likewise.
14935         * modules/floorl-tests (Depends-on): Likewise.
14936         * modules/round-tests (Depends-on): Likewise.
14937         * modules/roundf-tests (Depends-on): Likewise.
14938         * modules/roundl-tests (Depends-on): Likewise.
14939         * modules/trunc-tests (Depends-on): Likewise.
14940         * modules/truncf-tests (Depends-on): Likewise.
14941         * modules/truncl-tests (Depends-on): Likewise.
14942
14943         strtod: work around icc bug
14944         * lib/strtod.c (minus_zero): Define to working value.
14945         (strtod): Use it to avoid icc bug.
14946
14947         copysign: enhance tests
14948         * modules/copysign-tests (Files): Add minus-zero.h.
14949         * tests/test-copysign.c (main): Also test zeros.
14950
14951 2010-11-04  Eric Blake  <eblake@redhat.com>
14952
14953         ceil, floor, round, trunc: enhance tests of -0
14954         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14955         * tests/test-ceill.c (main): Likewise.
14956         * tests/test-floorf1.c (main): Likewise.
14957         * tests/test-floorl.c (main): Likewise.
14958         * tests/test-round1.c (main): Likewise.
14959         * tests/test-roundf1.c (main): Likewise.
14960         * tests/test-roundl.c (main): Likewise.
14961         * tests/test-trunc1.c (main): Likewise.
14962         * tests/test-truncf1.c (main): Likewise.
14963         * tests/test-truncl.c (main): Likewise.
14964
14965 2010-11-04  Eric Blake  <eblake@redhat.com>
14966
14967         frexp, tests: work around ICC bug with -zero
14968         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14969         works with more compilers.
14970         * tests/minus-zero.h: New file.
14971         * modules/ceilf-tests (Files): Include it.
14972         * modules/ceill-tests (Files): Likewise.
14973         * modules/floorf-tests (Files): Likewise.
14974         * modules/floorl-tests (Files): Likewise.
14975         * modules/frexp-nolibm-tests (Files): Likewise.
14976         * modules/frexp-tests (Files): Likewise.
14977         * modules/frexpl-nolibm-tests (Files): Likewise.
14978         * modules/frexpl-tests (Files): Likewise.
14979         * modules/isnan-tests (Files): Likewise.
14980         * modules/isnand-nolibm-tests (Files): Likewise.
14981         * modules/isnand-tests (Files): Likewise.
14982         * modules/isnanf-nolibm-tests (Files): Likewise.
14983         * modules/isnanf-tests (Files): Likewise.
14984         * modules/isnanl-nolibm-tests (Files): Likewise.
14985         * modules/isnanl-tests (Files): Likewise.
14986         * modules/round-tests (Files): Likewise.
14987         * modules/roundf-tests (Files): Likewise.
14988         * modules/roundl-tests (Files): Likewise.
14989         * modules/ldexpl-tests (Files): Likewise.
14990         * modules/signbit-tests (Files): Likewise.
14991         * modules/snprintf-posix-tests (Files): Likewise.
14992         * modules/sprintf-posix-tests (Files): Likewise.
14993         * modules/strtod-tests (Files): Likewise.
14994         * modules/trunc-tests (Files): Likewise.
14995         * modules/truncf-tests (Files): Likewise.
14996         * modules/truncl-tests (Files): Likewise.
14997         * modules/vsnprintf-posix-tests (Files): Likewise.
14998         * modules/vsprintf-posix-tests (Files): Likewise.
14999         * modules/vasnprintf-posix-tests (Files): Likewise.
15000         * modules/vasprintf-posix-tests (Files): Likewise.
15001         * tests/test-ceilf1.c (main): Use it.
15002         * tests/test-ceill.c (main): Likewise.
15003         * tests/test-floorf1.c (main): Likewise.
15004         * tests/test-floorl.c (main): Likewise.
15005         * tests/test-frexp.c (main): Likewise.
15006         * tests/test-frexpl.c (main): Likewise.
15007         * tests/test-isnan.c (main): Likewise.
15008         * tests/test-isnand.h (main): Likewise.
15009         * tests/test-isnanf.h (main): Likewise.
15010         * tests/test-isnanl.h (main): Likewise.
15011         * tests/test-ldexpl.c (main): Likewise.
15012         * tests/test-round.c (main): Likewise.
15013         * tests/test-roundf.c (main): Likewise.
15014         * tests/test-roundl.c (main): Likewise.
15015         * tests/test-signbit.c (test_signbitf, test_signbitd)
15016         (test_signbitl): Likewise.
15017         * tests/test-snprintf-posix.h (test_function): Likewise.
15018         * tests/test-sprintf-posix.h (test_function): Likewise.
15019         * tests/test-strtod.c (main): Likewise.
15020         * tests/test-trunc1.c (main): Likewise.
15021         * tests/test-truncf1.c (main): Likewise.
15022         * tests/test-truncl.c (main): Likewise.
15023
15024         isnanl: work around icc bug
15025         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15026
15027 2010-11-03  Eric Blake  <eblake@redhat.com>
15028
15029         tests: fix compiler warnings
15030         * tests/test-getopt.h (test_getopt): Fix condition.
15031         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15032         * tests/test-pipe2.c (main): Likewise.
15033         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15034
15035         utimens: fix broken m4 test
15036         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15037
15038 2010-10-28  Bruno Haible  <bruno@clisp.org>
15039
15040         posix_spawn*, getdtablesize: Relax license.
15041         * modules/posix_spawn (License): Change to LGPLv2+.
15042         * modules/posix_spawnp (License): Likewise.
15043         * modules/posix_spawn-internal (License): Likewise.
15044         * modules/posix_spawnattr_init (License): Likewise.
15045         * modules/posix_spawnattr_getflags (License): Likewise.
15046         * modules/posix_spawnattr_setflags (License): Likewise.
15047         * modules/posix_spawnattr_getpgroup (License): Likewise.
15048         * modules/posix_spawnattr_setpgroup (License): Likewise.
15049         * modules/posix_spawnattr_getschedparam (License): Likewise.
15050         * modules/posix_spawnattr_setschedparam (License): Likewise.
15051         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15052         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15053         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15054         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15055         * modules/posix_spawnattr_getsigmask (License): Likewise.
15056         * modules/posix_spawnattr_setsigmask (License): Likewise.
15057         * modules/posix_spawnattr_destroy (License): Likewise.
15058         * modules/posix_spawn_file_actions_init (License): Likewise.
15059         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15060         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15061         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15062         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15063         * modules/getdtablesize (License): Likewise.
15064         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15065
15066 2010-10-26  Bruno Haible  <bruno@clisp.org>
15067
15068         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15069         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15070         Cygwin and mingw.
15071         Suggested by Eric Blake.
15072
15073 2010-10-26  Bruno Haible  <bruno@clisp.org>
15074
15075         stdio: Work around compilation error due to renameat() on Solaris 10.
15076         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15077         * lib/renameat.c: Don't include <unistd.h> here.
15078         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15079         Reported by Paul Eggert and Eric Blake.
15080
15081 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15082
15083         renameat: port to Solaris 10, which declares renameat in unistd.h
15084
15085         * lib/renameat.c: Include unistd.h before stdio.h, because
15086         Solaris 10 declares renameat in unistd.h.  Problem encountered
15087         when building GNU tar 1.24 on Solaris 10.
15088
15089 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15090
15091         fdopendir: fix C89 compilation
15092         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15093         compilers.
15094
15095 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15096
15097         inttostr: simplify by removing unnecessary redundancy
15098         * lib/anytostr.c: Don't include verify.h.
15099         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15100         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15101         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15102         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15103         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15104         Likewise.
15105         * modules/inttostr (Depends-on): Remove 'verify'.
15106
15107 2010-10-23  Bruno Haible  <bruno@clisp.org>
15108
15109         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15110         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15111         Reported by Eric Blake.
15112
15113 2010-10-23  Bruno Haible  <bruno@clisp.org>
15114
15115         Tests: Fix LOCALE_JA on MirBSD 10.
15116         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15117         to an UTF-8 locale.
15118         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15119         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15120         Reported by Eric Blake.
15121
15122 2010-10-21  Bruno Haible  <bruno@clisp.org>
15123
15124         nl_langinfo test: Avoid test failure on NetBSD 5.
15125         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15126         Reported by Eric Blake.
15127
15128 2010-10-21  Eric Blake  <eblake@redhat.com>
15129
15130         c-stack: work around libsigsegv 2.8 bug
15131         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15132         overflow on at least PowerPC64.
15133
15134 2010-10-17  Bruno Haible  <bruno@clisp.org>
15135
15136         userspec: Drop redundant file.
15137         * modules/userspec (Files): Remove lib/inttostr.h.
15138
15139 2010-10-17  Bruno Haible  <bruno@clisp.org>
15140
15141         nl_langinfo tests: Silence some warnings.
15142         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15143         Reported by Jim Meyering.
15144
15145 2010-10-17  Bruno Haible  <bruno@clisp.org>
15146
15147         Make use of GCC's attribute __alloc_size__.
15148         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15149         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15150         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15151         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15152         __alloc_size__.
15153         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15154         Suggested by Jim Meyering.
15155
15156 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15157
15158         bootstrap: anchor .gitignore entries.
15159         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15160         with...
15161         (insert_vc_ignore): ... this new function, which prepends `/' to
15162         all .gitignore entries before passing them to
15163         insert_sorted_if_absent.
15164
15165 2010-10-16  Bruno Haible  <bruno@clisp.org>
15166
15167         nextafter: Fix configure check.
15168         * modules/nextafter (configure.ac): Correct expected prototype.
15169
15170 2010-10-16  Bruno Haible  <bruno@clisp.org>
15171
15172         termios: Update documentation.
15173         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15174
15175 2010-10-16  Bruno Haible  <bruno@clisp.org>
15176
15177         tests: Make them compile with TinyCC.
15178         * tests/test-strstr.c (main): Remove parentheses around array
15179         initializer.
15180
15181 2010-10-15  Eric Blake  <eblake@redhat.com>
15182
15183         ignore-value: make header idempotent
15184         * lib/ignore-value.h: Add double-inclusion guards.
15185         Reported by Stefan Berger.
15186
15187 2010-10-15  Jim Meyering  <meyering@redhat.com>
15188
15189         GNUmakefile: handle "stable" target, not "major"
15190         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15191         lists in maint.mk and announce-gen.  Without this, "make stable"
15192         would fail to ensure that $(VERSION) is up to date.
15193
15194 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15195
15196         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15197         & co.
15198
15199 2010-10-14  Bruno Haible  <bruno@clisp.org>
15200
15201         vasnprintf: Don't set errno to 0.
15202         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15203         block that sets it to 0.
15204         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15205
15206 2010-10-14  Bruno Haible  <bruno@clisp.org>
15207
15208         socketlib: Fix.
15209         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15210         gl_PREREQ_SYS_H_WINSOCK2.
15211         Reported by Ian Beckwith <ianb@erislabs.net>.
15212
15213 2010-10-13  Jim Meyering  <meyering@redhat.com>
15214
15215         test-select-stdin.c: avoid warn_unused_result warnings
15216         * tests/test-select-stdin.c: Include "macros.h".
15217         ASSERT that read and fflush succeed.
15218
15219 2010-10-13  Jim Meyering  <meyering@redhat.com>
15220
15221         git-version-gen: do require git-VC'd files in cwd
15222         * build-aux/git-version-gen: Reject a git version string
15223         if there are no commits associated with the current directory.
15224         This avoids an unlikely false-positive (unrelated dir whose parent
15225         repository also contains a tag matching v*), as pointed out
15226         by Giuseppe Scrivano in
15227         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15228
15229 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15230
15231         argv-iter: omit nonconforming declaration
15232         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15233         enum arg_iter_err declaration, which doesn't conform to C99.
15234         Solaris 10 cc warns about this.
15235
15236 2010-10-13  Eric Blake  <eblake@redhat.com>
15237
15238         termios: fix compilation on mingw
15239         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15240         (gl_TERMIOS_H): Adjust it on mingw.
15241         * modules/termios (Makefile.am): Substitute new key.
15242         * lib/termios.in.h (includes): Make include_next conditional.
15243         * doc/posix-headers/termios.texi (termios.h): Update
15244         documentation.
15245         Reported by Daniel P. Berrange.
15246
15247 2010-10-13  Jim Meyering  <meyering@redhat.com>
15248
15249         git-version-gen: don't require that .git/ be in the current dir
15250         * build-aux/git-version-gen: Adjust this script so that it works
15251         when run from any working directory beneath the top-level .git/-
15252         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15253         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15254
15255         test-select: avoid warn_unused_result warnings
15256         * tests/test-select.c: Include "macros.h".
15257         ASSERT that each call to read, write, and pipe succeeds.
15258         While not technically required, also check each "close".
15259         * modules/select-tests (Files): Add tests/macros.h.
15260
15261         test-symlinkat: remove declaration of unused local
15262         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15263
15264         test-inttostr: avoid shadowing warnings
15265         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15266         and use malloc rather than the stack for the same reason as
15267         mentioned in the comment justifying the other allocation.
15268
15269 2010-10-11  Bruno Haible  <bruno@clisp.org>
15270
15271         stdlib: Allow multiple gnulib generated replacements to coexist.
15272         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15273         Reported by Sam Steingold <sds@gnu.org>.
15274
15275 2010-10-11  Jim Meyering  <meyering@redhat.com>
15276
15277         fix a documentation typo
15278         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15279
15280 2010-10-11  Eric Blake  <eblake@redhat.com>
15281
15282         futimens: work around Solaris 11 bug
15283         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15284         * tests/test-futimens.h (test_futimens): Enhance, rather than
15285         weaken test.
15286         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15287
15288 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15289
15290         Indentation.
15291         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15292         higher-level operators more to the left.
15293
15294 2010-10-11  Jim Meyering  <meyering@redhat.com>
15295
15296         test-futimens: avoid unwarranted test failure on Solaris 5.11
15297         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15298         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15299         because it tries to dereference the NULL name argument.
15300
15301 2010-10-11  Bruno Haible  <bruno@clisp.org>
15302
15303         Indentation.
15304         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15305         indentation.
15306
15307 2010-10-11  Jim Meyering  <meyering@redhat.com>
15308
15309         spawn.in.h: make indentation consistent with parentheses
15310         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15311         Make indentation consistent with parentheses.
15312
15313 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15314
15315         Fix mismatched parens in previous commit
15316         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15317         parens.
15318
15319 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15320
15321         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15322
15323         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15324         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15325         * lib/malloca.c: Include "verify.h".
15326         (verify1): Remove, replacing with a verify call.
15327         * lib/relocwrapper.c (verify1): Likewise.
15328         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15329         Likewise.
15330         * modules/malloca (Depends-on): Add 'verify'.
15331         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15332         * modules/vasnprintf (Depends-on): Add 'verify'.
15333         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15334         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15335         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15336         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15337         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15338         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15339         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15340
15341         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15342
15343         Formerly the style was sometimes 2*X - 1, because the C standard
15344         was wrongly thought to disallow ?: in integral constant expressions.
15345         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15346         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15347         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15348         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15349         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15350         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15351         verify that time_t cannot be floating.
15352
15353 2010-10-08  Eric Blake  <eblake@redhat.com>
15354
15355         time: enforce recent POSIX ruling that time_t is integral
15356         * lib/time.in.h (__time_t_must_be_integral): Detect any
15357         problematic systems, allowing the rest of gnulib to assume POSIX.
15358
15359 2010-10-08  Jim Meyering  <meyering@redhat.com>
15360
15361         fdopendir: fix a bug on systems lacking openat and /proc support
15362         OpenBSD 4.7 is one such system.  The most noticeable effect was
15363         failure of any application making nontrivial use of fts: rm, du,
15364         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15365           ./rm: traversal failed: `a': Bad file descriptor
15366         Debugging that, you see that even though FD 6 was closed just
15367         prior to the opendir call in fd_clone_opendir, its resulting
15368         dir->dd_fd was 8, rather than the expected value of 6:
15369
15370         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15371         93                close (fd);
15372         (gdb) n
15373         94                dir = fd_clone_opendir (dupfd);
15374         (gdb) n
15375         95                saved_errno = errno;
15376         (gdb) p dir->dd_fd
15377         $11 = 8
15378
15379         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15380         The problem is that on OpenBSD, fd_clone_opendir has to resort
15381         to using the old-style save/restore CWD mechanism, due to its
15382         lack of openat/proc support, and *that* would steal the FD (6)
15383         that opendir was supposed to use.
15384
15385         The fix is to squirrel away the desired FD so that save_cwd uses a
15386         different one, and then free the dest FD right before calling opendir.
15387         That guarantees opendir will use the required file descriptor.
15388
15389         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15390
15391 2010-10-08  Bruno Haible  <bruno@clisp.org>
15392
15393         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15394         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15395
15396 2010-10-08  Bruno Haible  <bruno@clisp.org>
15397
15398         nanosleep: Make replacement POSIX compliant.
15399         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15400         is out of range.
15401         Reported by Jim Meyering.
15402
15403 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15404
15405         bootstrap: add hook for altering gnulib.mk, for Bison
15406         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15407         the Bison bootstrapping process can rewrite file names and variables
15408         in this file before later parts of 'bootstrap' use the file.
15409         Bison wants to include lib/gnulib.mk from the top-level makefile,
15410         so it needs the file names in this file to be relative to the top
15411         level, not relative to lib; plus it needs variable names to be
15412         rewritten.
15413         (slurp): Use the new function.
15414
15415         bootstrap: reformat for readability
15416         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15417
15418 2010-10-08  Eric Blake  <eblake@redhat.com>
15419
15420         docs: update cygwin progress
15421         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15422         1.7.7.
15423         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15424         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15425         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15426         * doc/posix-functions/carg.texi (carg): Likewise.
15427         * doc/posix-functions/cargf.texi (cargf): Likewise.
15428         * doc/posix-functions/casin.texi (casin): Likewise.
15429         * doc/posix-functions/casinf.texi (casinf): Likewise.
15430         * doc/posix-functions/casinh.texi (casinh): Likewise.
15431         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15432         * doc/posix-functions/catan.texi (catan): Likewise.
15433         * doc/posix-functions/catanf.texi (catanf): Likewise.
15434         * doc/posix-functions/catanh.texi (catanh): Likewise.
15435         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15436         * doc/posix-functions/ccos.texi (ccos): Likewise.
15437         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15438         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15439         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15440         * doc/posix-functions/cexp.texi (cexp): Likewise.
15441         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15442         * doc/posix-functions/cimag.texi (cimag): Likewise.
15443         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15444         * doc/posix-functions/clog.texi (clog): Likewise.
15445         * doc/posix-functions/clogf.texi (clogf): Likewise.
15446         * doc/posix-functions/conj.texi (conj): Likewise.
15447         * doc/posix-functions/conjf.texi (conjf): Likewise.
15448         * doc/posix-functions/cpow.texi (cpow): Likewise.
15449         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15450         * doc/posix-functions/cproj.texi (cproj): Likewise.
15451         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15452         * doc/posix-functions/creal.texi (creal): Likewise.
15453         * doc/posix-functions/crealf.texi (crealf): Likewise.
15454         * doc/posix-functions/csin.texi (csin): Likewise.
15455         * doc/posix-functions/csinf.texi (csinf): Likewise.
15456         * doc/posix-functions/csinh.texi (csinh): Likewise.
15457         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15458         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15459         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15460         * doc/posix-functions/ctan.texi (ctan): Likewise.
15461         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15462         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15463         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15464         * doc/posix-headers/complex.texi (complex.h): Likewise.
15465
15466 2010-10-07  Jim Meyering  <meyering@redhat.com>
15467
15468         parse-datetime: avoid compilation failure on OpenBSD 4.7
15469         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15470         This works around a compilation failure on OpenBSD 4.7:
15471         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15472
15473 2010-10-07  Eric Blake  <eblake@redhat.com>
15474
15475         docs: update cygwin progress
15476         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15477         1.7.6.
15478         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15479         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15480         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15481         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15482         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15483         Likewise.
15484         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15485         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15486         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15487         Likewise.
15488         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15489         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15490         Likewise.
15491         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15492         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15493         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15494         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15495         Likewise.
15496         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15497         Likewise.
15498         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15499
15500         docs: update parse-datetime history
15501         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15502         documentation of this function's history and alternatives.
15503
15504         cygwin: use more robust version check
15505         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15506         exclude an eventual cygwin 1.9.1.
15507         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15508         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15509         (gl_FUNC_STRCASESTR): Likewise.
15510         Reported by Bruno Haible.
15511
15512 2010-10-06  Bruno Haible  <bruno@clisp.org>
15513
15514         string, sys_select: Avoid #including large headers unless necessary.
15515         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15516         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15517         OSF/1, BeOS, Haiku.
15518         Reported by Jim Meyering.
15519
15520 2010-10-05  Eric Blake  <eblake@redhat.com>
15521
15522         memmem, strstr, strcasestr: fix bug with long periodic needle
15523         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15524         periodic needle having false positive.
15525         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15526         and cygwin 1.7.7.
15527         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15529         (gl_FUNC_STRCASESTR): Likewise.
15530         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15531         * tests/test-memmem.c (main): Expose the bug.
15532         * tests/test-strcasestr.c (main): Likewise.
15533         * tests/test-strstr.c (main): Likewise.
15534         * tests/test-c-strcasestr.c (main): Likewise.
15535         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15536         * doc/posix-functions/strstr.texi (strstr): Likewise.
15537         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15538         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15539
15540 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15541
15542         parse-datetime: do some more renaming
15543         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15544         parse_datetime, not get_date.  Mention the renaming.
15545         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15546         in comments.
15547         * m4/bison.m4: Likewise.
15548
15549 2010-10-05  Eric Blake  <eblake@redhat.com>
15550
15551         parse-datetime: better name than get_date
15552         * NEWS: Reword the deprecation notice.
15553         * modules/get_date: Rename to modules/parse-datetime.
15554         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15555         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15556         * lib/get_date.y: Rename to lib/parse-datetime.y.
15557         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15558         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15559         * doc/getdate.texi: Provide fallback wrapper.
15560         * lib/getdate.h: Move guts, and wrap...
15561         * lib/parse-datetime.h: ...new file.
15562         * lib/parse-datetime.y (get_date): Rename...
15563         (parse_datetime): ...to this.
15564         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15565         (gl_PARSE_DATETIME): ...to this.
15566         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15567         documentation.
15568         * modules/getdate (Files): Provide fallback docs and header.
15569         (Notice, Depends-on): Update references.
15570         * tests/test-parse-datetime.c: Likewise.
15571         * DEPENDENCIES: Likewise.
15572         * MODULES.html.sh (Date and time <time.h>): Likewise.
15573         * doc/parse-datetime.texi (Date input formats)
15574         (Authors of parse_datetime): Likewise.
15575         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15576         (Include): Likewise.
15577         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15578         * gnulib-tool: Likewise.
15579         * m4/bison.m4 (gl_BISON): Likewise.
15580         Suggested by Bruno Haible.
15581
15582 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15583
15584         more ports to Solaris tr, which needs [] around ranges
15585         * gnulib-tool: Solaris tr needs [] around ranges.
15586         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15587         * tests/test-pipe-filter-gi1.c (main): Likewise.
15588         * tests/test-pipe-filter-ii1.c (main): Likewise.
15589
15590 2010-10-05  Eric Blake  <eblake@redhat.com>
15591
15592         bootstrap: fix Solaris regression
15593         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15594         around ranges.
15595         Reported by Pádraig Brady.
15596
15597         bootstrap: work with pkg-config
15598         * build-aux/bootstrap (check_versions): Also transliterate - in
15599         prerequisite name.
15600         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15601         prerequisites that were already found, to avoid confusion.
15602         Reported by Justin Clift.
15603
15604         faccessat: remove unused wrappers
15605         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15606         presence of these wrappers dragged in -lgen on Solaris.
15607         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15608
15609 2010-10-05  Jim Meyering  <meyering@redhat.com>
15610
15611         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15612         * Makefile (sc_pragma_columns): New syntax-check rule.
15613
15614 2010-10-04  Bruno Haible  <bruno@clisp.org>
15615
15616         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15617         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15618         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15619         Reported by Bruce Korb and Eric Blake.
15620
15621 2010-10-04  Bruno Haible  <bruno@clisp.org>
15622
15623         threadlib: Make option --with-libpth-prefix work.
15624         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15625         use $LIBPTH, not just -lpth.
15626
15627 2010-10-04  Bruno Haible  <bruno@clisp.org>
15628
15629         Avoid line length limitation from HP NonStop system header files.
15630         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15631         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15632         * lib/ctype.in.h: Likewise.
15633         * lib/dirent.in.h: Likewise.
15634         * lib/errno.in.h: Likewise.
15635         * lib/fcntl.in.h: Likewise.
15636         * lib/float.in.h: Likewise.
15637         * lib/getopt.in.h: Likewise.
15638         * lib/iconv.in.h: Likewise.
15639         * lib/inttypes.in.h: Likewise.
15640         * lib/langinfo.in.h: Likewise.
15641         * lib/locale.in.h: Likewise.
15642         * lib/math.in.h: Likewise.
15643         * lib/netdb.in.h: Likewise.
15644         * lib/netinet_in.in.h: Likewise.
15645         * lib/poll.in.h: Likewise.
15646         * lib/pthread.in.h: Likewise.
15647         * lib/pty.in.h: Likewise.
15648         * lib/sched.in.h: Likewise.
15649         * lib/se-selinux.in.h: Likewise.
15650         * lib/search.in.h: Likewise.
15651         * lib/signal.in.h: Likewise.
15652         * lib/spawn.in.h: Likewise.
15653         * lib/stdarg.in.h: Likewise.
15654         * lib/stddef.in.h: Likewise.
15655         * lib/stdint.in.h: Likewise.
15656         * lib/stdio.in.h: Likewise.
15657         * lib/stdlib.in.h: Likewise.
15658         * lib/string.in.h: Likewise.
15659         * lib/strings.in.h: Likewise.
15660         * lib/sys_file.in.h: Likewise.
15661         * lib/sys_ioctl.in.h: Likewise.
15662         * lib/sys_select.in.h: Likewise.
15663         * lib/sys_socket.in.h: Likewise.
15664         * lib/sys_stat.in.h: Likewise.
15665         * lib/sys_time.in.h: Likewise.
15666         * lib/sys_times.in.h: Likewise.
15667         * lib/sys_utsname.in.h: Likewise.
15668         * lib/sys_wait.in.h: Likewise.
15669         * lib/sysexits.in.h: Likewise.
15670         * lib/termios.in.h: Likewise.
15671         * lib/time.in.h: Likewise.
15672         * lib/unistd.in.h: Likewise.
15673         * lib/wchar.in.h: Likewise.
15674         * lib/wctype.in.h: Likewise.
15675         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15676         * modules/ctype (Makefile.am): Likewise.
15677         * modules/dirent (Makefile.am): Likewise.
15678         * modules/errno (Makefile.am): Likewise.
15679         * modules/fcntl-h (Makefile.am): Likewise.
15680         * modules/float (Makefile.am): Likewise.
15681         * modules/getopt-posix (Makefile.am): Likewise.
15682         * modules/iconv-h (Makefile.am): Likewise.
15683         * modules/inttypes (Makefile.am): Likewise.
15684         * modules/langinfo (Makefile.am): Likewise.
15685         * modules/locale (Makefile.am): Likewise.
15686         * modules/math (Makefile.am): Likewise.
15687         * modules/netdb (Makefile.am): Likewise.
15688         * modules/netinet_in (Makefile.am): Likewise.
15689         * modules/poll-h (Makefile.am): Likewise.
15690         * modules/pthread (Makefile.am): Likewise.
15691         * modules/pty (Makefile.am): Likewise.
15692         * modules/sched (Makefile.am): Likewise.
15693         * modules/search (Makefile.am): Likewise.
15694         * modules/selinux-h (Makefile.am): Likewise.
15695         * modules/signal (Makefile.am): Likewise.
15696         * modules/spawn (Makefile.am): Likewise.
15697         * modules/stdarg (Makefile.am): Likewise.
15698         * modules/stddef (Makefile.am): Likewise.
15699         * modules/stdint (Makefile.am): Likewise.
15700         * modules/stdio (Makefile.am): Likewise.
15701         * modules/stdlib (Makefile.am): Likewise.
15702         * modules/string (Makefile.am): Likewise.
15703         * modules/strings (Makefile.am): Likewise.
15704         * modules/sys_file (Makefile.am): Likewise.
15705         * modules/sys_ioctl (Makefile.am): Likewise.
15706         * modules/sys_select (Makefile.am): Likewise.
15707         * modules/sys_socket (Makefile.am): Likewise.
15708         * modules/sys_stat (Makefile.am): Likewise.
15709         * modules/sys_time (Makefile.am): Likewise.
15710         * modules/sys_times (Makefile.am): Likewise.
15711         * modules/sys_utsname (Makefile.am): Likewise.
15712         * modules/sys_wait (Makefile.am): Likewise.
15713         * modules/sysexits (Makefile.am): Likewise.
15714         * modules/termios (Makefile.am): Likewise.
15715         * modules/time (Makefile.am): Likewise.
15716         * modules/unistd (Makefile.am): Likewise.
15717         * modules/wchar (Makefile.am): Likewise.
15718         * modules/wctype (Makefile.am): Likewise.
15719
15720 2010-10-04  Bruno Haible  <bruno@clisp.org>
15721
15722         read-file tests: Avoid a test failure on NonStop Kernel.
15723         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15724         a regular file.
15725         Reported by Joachim Schmitz <schmitz@hp.com>.
15726
15727 2010-10-03  Bruno Haible  <bruno@clisp.org>
15728
15729         gnulib-tool: Fixes for --create-testdir with --libtool.
15730         * gnulib-tool (func_get_automake_snippet): Don't augment
15731         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15732         an executable.
15733         (func_create_testdir): Handle module 'alloca' like func_import.
15734         Reported by Bruce Korb <bruce.korb@gmail.com>.
15735
15736 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15737
15738         Avoid some lines longer than 80 characters.
15739         * lib/stdint.in.h: Break long comment lines.
15740         * lib/math.in.h: Likewise.
15741         (_GL_NUM_UINT_WORDS): New macro, for readability.
15742         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15743         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15744         * lib/stdlib.in.h: Likewise.
15745         * lib/spawn.in.h: Likewise.
15746         * lib/sys_socket.in.h: Update an URL.
15747         * lib/sys_stat.in.h: Break long line.
15748
15749 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15750
15751         Improve pmccabe2html.
15752         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15753         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15754         when the sources change. Remove the line in the HTML about "Used
15755         ranges" (which implied that there might be other unused ranges),
15756         rename "Resume" to "Summary" (easier to understand for more users).
15757         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15758         styles, and some unnecessary blank lines.
15759
15760 2010-10-03  Bruno Haible  <bruno@clisp.org>
15761             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15762
15763         acl: Add support for ACLs on NonStop Kernel.
15764         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15765         Check whether the function aclsort() exists.
15766         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15767         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15768         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15769         (acl_nontrivial [HAVE_ACLSORT]: New function.
15770         (file_has_acl): Implement for NonStop Kernel.
15771         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15772         (qset_acl): Implement for NonStop Kernel.
15773         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15774         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15775         (main): Implement for NonStop Kernel.
15776         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15777         Kernel. Handle this flavor.
15778         * tests/test-set-mode-acl.sh: Likewise.
15779         * tests/test-copy-acl.sh: Likewise.
15780         * tests/test-copy-file.sh: Likewise.
15781
15782 2010-10-03  Bruno Haible  <bruno@clisp.org>
15783
15784         Info about ACLs on NonStop Kernel.
15785         * doc/acl-resources.txt: Add info about NonStop Kernel.
15786         References by Joachim Schmitz <schmitz@hp.com>.
15787
15788 2010-10-02  Bruno Haible  <bruno@clisp.org>
15789
15790         Define missing EDQUOT on NonStop Kernel.
15791         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15792         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15793         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15794         missing.
15795         * doc/posix-headers/errno.texi: Mention the NSK bug.
15796         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15797         Reported by Joachim Schmitz <schmitz@hp.com>.
15798
15799 2010-10-02  Bruno Haible  <bruno@clisp.org>
15800
15801         Update doc for POSIX:2008.
15802         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15803         Update URL of POSIX specification.
15804
15805 2010-10-02  Bruno Haible  <bruno@clisp.org>
15806
15807         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15808         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15809         from gnulib, not from Automake.
15810
15811 2010-10-02  Bruno Haible  <bruno@clisp.org>
15812
15813         New module 'system-posix'.
15814         * modules/system-posix: New file.
15815         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15816         module is present.
15817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15818         GNULIB_SYSTEM_POSIX.
15819         * modules/stdlib (Depends-on): Remove sys_wait.
15820         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15821         * doc/posix-functions/system.texi: Mention the new module.
15822         * doc/posix-headers/stdlib.texi: Likewise.
15823         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15824         define test_sys_wait_macros to a no-op.
15825         Reported by Sam Steingold <sds@gnu.org>.
15826
15827 2010-09-30  Bruno Haible  <bruno@clisp.org>
15828
15829         More renaming from 'getdate' to 'get_date'.
15830         * doc/get_date.texi: Renamed from doc/getdate.texi.
15831         * modules/get_date (Files): Update.
15832         * MODULES.html.sh (Date and time <time.h>): Update.
15833         * DEPENDENCIES: Update.
15834         * gnulib-tool: Update comment.
15835         * m4/bison.m4 (gl_BISON): Likewise.
15836         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15837
15838 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15839
15840         bootstrap: support ACLOCAL_FLAGS during aclocal
15841         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15842         can add additional -I dir for third-party .m4 files.
15843
15844 2010-09-30  Eric Blake  <eblake@redhat.com>
15845
15846         bootstrap: use glibtoolize on MacOS
15847         * build-aux/bootstrap (check_versions): Convert libtool into
15848         libtoolize.
15849         (tool search): Move libtool check earlier, and look for
15850         glibtoolize for MacOS.
15851         (gnulib_tool_options): Auto-add --libtool when appropriate.
15852         Reported by Justin Clift.
15853
15854         poll: fix typo that broke test on MacOS
15855         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15856         Reported by Justin Clift.
15857
15858         getdate: rename to get_date
15859         Note: getdate.h is not renamed, to minimize client impact.
15860         * modules/getdate: Mark obsolete.  Move old contents...
15861         * modules/get_date: ...to new module name.
15862         * modules/getdate-tests: Move...
15863         * modules/get_date-tests: ...here.
15864         * m4/getdate.m4: Move...
15865         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15866         * lib/getdate.y: Move...
15867         * lib/get_date.y: ...here.
15868         * tests/test-getdate.c: Move...
15869         * tests/test-get_date.c: ...here.
15870         * doc/posix-functions/getdate.texi (getdate): Update name.
15871         * NEWS: Mention the change.
15872
15873 2010-09-29  Bruno Haible  <bruno@clisp.org>
15874
15875         Separate the module 'waitpid' from the module 'sys_wait'.
15876         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15877         present.
15878         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15879         gl_MODULE_INDICATOR_FOR_TESTS.
15880         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15881         * modules/sys_wait (Depends-on): Remove waitpid.
15882         (Makefile.am): Substitute GNULIB_WAITPID.
15883         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15884         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15885         signature only if the 'waitpid' module is present.
15886         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15887         * NEWS: Mention the change.
15888         * modules/grantpt (Depends-on): Add waitpid.
15889         * modules/wait-process (Depends-on): Likewise.
15890
15891 2010-09-29  Bruno Haible  <bruno@clisp.org>
15892
15893         More tests for module 'sys_wait'.
15894         * modules/sys_wait-c++-tests: New file.
15895         * tests/test-sys_wait-c++.cc: New file.
15896         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15897         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15898
15899 2010-09-29  Bruno Haible  <bruno@clisp.org>
15900
15901         New module 'waitpid'.
15902         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15903         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15904         Don't include <process.h>.
15905         (waitpid): Declare only, using modern idiom.
15906         * m4/waitpid.m4: New file.
15907         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15908         * modules/waitpid: New file.
15909         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15910         (Makefile.am): Update.
15911         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15912
15913 2010-09-28  Bruno Haible  <bruno@clisp.org>
15914
15915         poll: Assume ANSI C.
15916         * lib/poll.c (poll): Use an ANSI C declaration.
15917
15918 2010-09-28  Bruno Haible  <bruno@clisp.org>
15919
15920         poll-h: Create poll.h on all platforms.
15921         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15922         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15923         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15924         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15925         (gl_REPLACE_POLL_H): Don't set POLL_H.
15926         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15927         * modules/poll-h (Depends-on): Add include_next.
15928         (Makefile.am): Create poll.h unconditionally. Substitute also
15929         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15930
15931 2010-09-28  Bruno Haible  <bruno@clisp.org>
15932
15933         Tests for module 'poll-h'.
15934         * modules/poll-h-c++-tests: New file.
15935         * tests/test-poll-h-c++.cc: New file.
15936
15937         Tests for module 'poll-h'.
15938         * modules/poll-h-tests: New file.
15939         * tests/test-poll-h.c: New file.
15940
15941 2010-09-28  Bruno Haible  <bruno@clisp.org>
15942
15943         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15944         * modules/poll-h (Depends-on): Add 'extensions'.
15945
15946 2010-09-28  Bruno Haible  <bruno@clisp.org>
15947
15948         New module 'poll-h'.
15949         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15950         (poll): Use modern idiom.
15951         * modules/poll-h: New file.
15952         * modules/poll (Files): Remove lib/poll.in.h.
15953         (Depends-on): Add poll-h.
15954         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15955         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15956         * m4/poll_h.m4: New file.
15957         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15958         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15959         and invoke gl_REPLACE_POLL_H.
15960         * lib/poll.c: Use common idiom.
15961         * tests/test-poll.c: Likewise.
15962         * doc/posix-headers/poll.texi: Mention the poll-h module.
15963         Suggested by Eric Blake.
15964
15965 2010-09-26  Bruno Haible  <bruno@clisp.org>
15966
15967         sys_wait: Implement WSTOPSIG.
15968         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15969         Reported by Simon Josefsson.
15970
15971 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15972
15973         stdlib, sys_wait: Avoid compilation error on mingw.
15974         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15975
15976 2010-09-26  Bruno Haible  <bruno@clisp.org>
15977
15978         stdlib tests: Avoid code duplication.
15979         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15980         * modules/sys_wait-tests (Files): Likewise.
15981         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15982         * tests/test-stdlib.c: Include test-sys_wait.h.
15983         (main): Invoke test_sys_wait_macros.
15984         * tests/test-sys_wait.c: Include test-sys_wait.h.
15985         (main): Invoke test_sys_wait_macros.
15986
15987 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15988
15989         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15990         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15991         sure Windows sockets are working before calling getaddrinfo.
15992         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15993         * doc/gnulib.texi (Windows sockets): Fix typo.
15994
15995 2010-09-25  Bruno Haible  <bruno@clisp.org>
15996
15997         Tests for module 'regex-quote'.
15998         * modules/regex-quote-tests: New file.
15999         * tests/test-regex-quote.c: New file.
16000
16001         New module 'regex-quote'.
16002         * lib/regex-quote.h: New file.
16003         * lib/regex-quote.c: New file.
16004         * modules/regex-quote: New file.
16005         Suggested by Reuben Thomas <rrt@sc3d.org>.
16006
16007 2010-09-24  Bruno Haible  <bruno@clisp.org>
16008
16009         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16010         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16011
16012 2010-09-23  Bruno Haible  <bruno@clisp.org>
16013
16014         setenv: Relax license.
16015         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16016         Blake.
16017         Requested by Eric Blake.
16018
16019 2010-09-22  Bruno Haible  <bruno@clisp.org>
16020
16021         termios: Relax license.
16022         * modules/termios (License): Change to LGPLv2+.
16023         Requested by Eric Blake.
16024
16025 2010-09-22  Bruno Haible  <bruno@clisp.org>
16026
16027         threadlib: Allow the package to change the default to 'no'.
16028         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16029         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16030         Reported by Paul Eggert.
16031
16032 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16033             Bruno Haible  <bruno@clisp.org>
16034
16035         Fix endless loop in mbmemcasecoll.
16036         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16037         byte.
16038         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16039
16040 2010-09-22  Bruno Haible  <bruno@clisp.org>
16041
16042         Tests for module 'memcoll'.
16043         * modules/memcoll-tests: New file.
16044         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16045
16046         memcoll, xmemcoll: Clarify size vs. length.
16047         * modules/memcoll.c (memcoll0): Clarify specification.
16048         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16049         passed to collate_error.
16050
16051 2010-09-22  Bruno Haible  <bruno@clisp.org>
16052
16053         Tests for module 'memcasecmp'.
16054         * modules/memcasecmp-tests: New file.
16055         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16056
16057 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16058
16059         * lib/pthread.in.h: Add split double-inclusion guard, and include
16060         system <pthread.h> if there is one.  Use @@-style as in other
16061         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16062         pthread.h doesn't.
16063         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16064         (pthread_mutexattr_settype, pthread_mutex_trylock):
16065         New static inline functions, if there's no system <pthread.h>.
16066         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16067         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16068         Approximate with mutexes if the system lacks spinlocks, as in
16069         MacOS.
16070         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16071         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16072         @@-style.  Check for spinlocks separately.
16073         (gl_PTHREAD_DEFAULTS): New macro.
16074         * modules/pthread: Redo to use a more typical style for in.h files.
16075
16076 2010-09-21  Eric Blake  <eblake@redhat.com>
16077
16078         net_if: enhance tests
16079         * tests/test-net_if.c (main): Move signature checks earlier.
16080         Print failures to stderr.
16081         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16082         Document the bug that we do not yet fix.
16083
16084 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16085
16086         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16087         about gnulib, not GSS.
16088
16089 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16090
16091         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16092         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16093         for Emacs.
16094         * build-aux/pmccabe2html: Make Makefile.am example code more
16095         cut-and-paste friendly.
16096
16097 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16098
16099         * tests/test-net_if.c: New file.
16100         * modules/net_if-tests: New file.
16101
16102 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16103
16104         pthread: add pthread_spin_destroy
16105         * lib/pthread.in.h (pthread_spin_destroy): New function.
16106
16107 2010-09-19  Bruno Haible  <bruno@clisp.org>
16108
16109         gnulib-tool: Fix --help output.
16110         * gnulib-tool (func_usage): Fix help message.
16111         Reported by Reuben Thomas <rrt@sc3d.org>.
16112
16113 2010-09-18  Jim Meyering  <meyering@redhat.com>
16114
16115         maint.mk: avoid unexpanded \n in two diagnostics
16116         * top/maint.mk (sc_prohibit_always_true_header_tests):
16117         Don't use a literal \n in a halt=... assignment.  It would not be
16118         expanded, and the two \n bytes would appear in the diagnostic output
16119         rather than the desired newline.  Use halt=$$(printf ... instead.
16120         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16121
16122 2010-09-18  Bruno Haible  <bruno@clisp.org>
16123
16124         netinet_in: Doc tweak.
16125         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16126         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16127
16128 2010-09-18  Jim Meyering  <meyering@redhat.com>
16129
16130         init.sh: correct an outdated comment
16131         * tests/init.sh (create_exe_shims_):  s/function/alias/
16132
16133         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16134         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16135         a file named "*.exe" is removed between the glob expansion and the
16136         processing of that oddly named file.
16137
16138 2010-09-17  Eric Blake  <eblake@redhat.com>
16139
16140         mirbsd: add some more support
16141         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16142         in BSD family.
16143         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16144         devices as OpenBSD.
16145         * m4/host-os.m4 (mirbsd): Add MirBSD.
16146
16147         tests: fix unportable assumption on sys/wait.h
16148         * tests/test-sys_wait.c (main): Relax test.
16149         * tests/test-stdlib.c (main): Likewise.
16150
16151         init.sh: accomodate directory with no .exes
16152         * tests/init.sh: Accomodate directory containing only scripts.
16153
16154         tests: avoid compiler warning
16155         * tests/test-stdlib.c (main): Use the variable.
16156
16157         fdutimens, fdutimensat: update signature, again
16158         * lib/utimens.h (gl_futimens): Delete, and move signature...
16159         (fdutimens): ...here.
16160         (fdutimensat): Rearrange signature.
16161         (lutimensat): Rename variable for clarity.
16162         * lib/fdutimensat.c (fdutimensat): Update signature.
16163         * lib/utimens.c (fdutimens): Likewise.
16164         (gl_futimens): Delete.
16165         (utimens, lutimens): Update callers.
16166         * lib/futimens.c (futimens): Likewise.
16167         * tests/test-fdutimensat.c: Likewise.
16168         * tests/test-utimens.c: Likewise.
16169         * tests/test-futimens.h: Update comment.
16170         * NEWS: Mention this.
16171         Suggested by Paul Eggert.
16172
16173 2010-09-17  Bruno Haible  <bruno@clisp.org>
16174
16175         Take over the maintenance of some older macros from Autoconf.
16176         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16177         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16178         GNU Autoconf.
16179         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16180         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16181
16182 2010-09-17  Eric Blake  <eblake@redhat.com>
16183
16184         fdutimensat: drop atflag validation
16185         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16186         with valid fd, to close a race scenario where futimens is
16187         unsupported and FILE was replaced by a symlink.
16188         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16189         accordingly.
16190         Suggested by Paul Eggert.
16191
16192 2010-09-16  Bruno Haible  <bruno@clisp.org>
16193
16194         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16195         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16196
16197 2010-09-16  Bruno Haible  <bruno@clisp.org>
16198
16199         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16200         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16201         login_tty exists.
16202         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16203
16204 2010-09-16  Bruno Haible  <bruno@clisp.org>
16205
16206         login_tty: Make the replacement code work on BSD systems.
16207         * lib/login_tty.c: Include <sys/ioctl.h>.
16208         (login_tty): Use ioctl TIOCSCTTY when available.
16209         * modules/login_tty (Depends-on): Add sys_ioctl.
16210         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16211
16212 2010-09-16  Bruno Haible  <bruno@clisp.org>
16213
16214         login_tty: Stricter unit test.
16215         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16216         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16217         and tcgetsid() after login_tty.
16218         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16219
16220 2010-09-16  Bruno Haible  <bruno@clisp.org>
16221
16222         New module 'tcgetsid'.
16223         * lib/tcgetsid.c: New file.
16224         * m4/tcgetsid.m4: New file.
16225         * modules/tcgetsid: New file.
16226         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16227         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16228         GNULIB_TCGETSID, HAVE_TCGETSID.
16229         * lib/termios.in.h: Include <sys/types.h>.
16230         (tcgetsid): New declaration.
16231         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16232         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16233         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16234         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16235
16236 2010-09-16  Bruno Haible  <bruno@clisp.org>
16237
16238         Tests for module 'termios'.
16239         * modules/termios-c++-tests: New file.
16240         * modules/termios-tests: New file.
16241         * tests/test-termios-c++.cc: New file.
16242         * tests/test-termios.c: New file.
16243
16244         New module 'termios'.
16245         * modules/termios: New file.
16246         * lib/termios.in.h: New file.
16247         * m4/termios_h.m4: New file.
16248         * doc/posix-headers/termios.texi: Mention the new module.
16249
16250 2010-09-16  Eric Blake  <eblake@redhat.com>
16251
16252         fdutimensat: add an atflag parameter
16253         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16254         * lib/utimens.h (fdutimensat): Update prototype.
16255         * tests/test-fdutimensat.c: Adjust test to match.
16256         * NEWS: Document the change.
16257         Suggested by Paul Eggert.
16258
16259 2010-09-16  Bruno Haible  <bruno@clisp.org>
16260
16261         Fix typos in comments.
16262         * lib/striconveh.h: Fix typo in comment.
16263         * lib/login_tty.c (login_tty): Likewise.
16264
16265 2010-09-15  Bruno Haible  <bruno@clisp.org>
16266
16267         stdlib: clarify MirBSD WEXITSTATUS bug
16268         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16269         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16270
16271 2010-09-15  Eric Blake  <eblake@redhat.com>
16272
16273         stdlib: work around MirBSD WEXITSTATUS bug
16274         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16275         * modules/stdlib (Depends-on): Add sys_wait.
16276         * tests/test-sys_wait.c (main): Enhance test.
16277         * tests/test-stdlib.c (main): Likewise.
16278         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16279
16280         docs: mention MacOS issue with WEXITSTATUS(constant)
16281         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16282         issue.
16283         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16284
16285         strnlen: add tests
16286         * modules/strnlen-tests: New file.
16287         * tests/test-strnlen.c: Likewise.
16288
16289 2010-09-14  Bruno Haible  <bruno@clisp.org>
16290
16291         unistr/base: Avoid link errors when module 'libunistring' is also used.
16292         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16293         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16294         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16295         Declare also when HAVE_LIBUNISTRING is set.
16296         Reported by Pádraig Brady <P@draigbrady.com>.
16297
16298 2010-09-14  Eric Blake  <eblake@redhat.com>
16299
16300         test-rawmemchr: make more robust
16301         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16302         (Depends-on, configure.ac): Add needed prerequisites to use it.
16303         * modules/memchr-tests (Files, Depends-on, configure.ac):
16304         Likewise, to avoid implicit reliance on memchr module prereqs.
16305         * tests/test-memchr.c (main): Ensure proper masking.
16306         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16307         reads.
16308
16309         memchr: detect glibc Alpha bug
16310         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16311         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16312         Alpha.
16313         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16314         * tests/test-memchr.c (main): Enhance test.
16315         Reported by Nelson H. F. Beebe.
16316
16317 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16318
16319         fts, getcwd, glob: audit for dirfd returning -1
16320         * lib/fts.c (opendir): Remove #define; no longer used.
16321         (opendirat): New arg PDIR_FD.  All callers changed.
16322         (fts_build, _opendir2): Use new opendirat to avoid the need for
16323         dirfd, or for checking whether dirfd returns a negative value.
16324         Don't use opendir; always use openat followed by fdopendir.
16325         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16326         it.
16327         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16328         returns -1 here.
16329         * modules/fts (Depends-on): Remove dirfd.
16330         * modules/getcwd (Depends-on): Likewise.
16331
16332 2010-09-13  Eric Blake  <eblake@redhat.com>
16333
16334         float: fix broken MirBSD header
16335         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16336         * doc/posix-headers/float.texi (float.h): Document it.
16337
16338 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16339
16340         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16341         * lib/fts.c (opendirat): New arg extra_flags.
16342         (__opendir2): Use it to avoid following symlinks when opening
16343         a directory, if symlinks are not supposed to be followed.  See
16344         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16345
16346         fdopendir: preserve argument fd before returning
16347         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16348         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16349         (fdopendir): Use them, arranging for FD to be open to the same
16350         directory that it was when it started.  (It might be temporarily
16351         closed while fdopendir is running, so this not thread- or
16352         signal-safe.)  Be careful to do the right thing even when file
16353         descriptors are scarce and dup fails with errno == EMFILE.  See
16354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16355
16356 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16357
16358         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16359         * NEWS: Document change.
16360         * m4/regex.m4: Disable test for regoff_t size.
16361
16362 2010-09-13  Jim Meyering  <meyering@redhat.com>
16363
16364         fts: don't operate on an invalid file descriptor after failed dup
16365         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16366         negative file descriptor.
16367
16368 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16369
16370         savedir: add streamsavedir, deprecate fdsavedir
16371         * NEWS: Mention deprecation of fdsavedir.
16372         * lib/savedir.c (streamsavedir): New extern function, whose name
16373         ends in "savedir" to be consistent with the others.  This differs
16374         from savedirstream in that it doesn't close its argument.  The
16375         next version of GNU tar will use this instead of fdsavedir, to
16376         avoid some race conditions and conserve file descriptors.
16377         (savedirstream): Reimplement as a wrapper around streamsavedir.
16378         (fdsavedir): Add a comment deprecating this function.  As far as
16379         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16380         * lib/savedir.h (streamsavedir): New decl.
16381         (fdsavedir): Add a comment deprecating this.
16382
16383 2010-09-10  Bruno Haible  <bruno@clisp.org>
16384
16385         langinfo: Fix last commit.
16386         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16387         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16389
16390 2010-09-10  Bruno Haible  <bruno@clisp.org>
16391
16392         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16393         * lib/progreloc.c (O_EXEC): Define fallback.
16394
16395 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16396
16397         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16398         * NEWS: Document recent changes to fcntl-h.
16399         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16400         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16401         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16402         Similarly for O_SEARCH; this last was already true, but not documented.
16403         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16404         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16405         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16406         Likewise.
16407         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16408         is zero, not whether it is defined.
16409         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16410         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16411         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16412
16413 2010-09-10  Bruno Haible  <bruno@clisp.org>
16414
16415         langinfo, nl_langinfo: Fix for IRIX 5.3.
16416         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16417         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16418         HAVE_LANGINFO_YESEXPR.
16419         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16420         HAVE_LANGINFO_YESEXPR.
16421         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16422         HAVE_LANGINFO_T_FMT_AMPM is 0.
16423         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16424         HAVE_LANGINFO_YESEXPR is 0.
16425         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16426         NOEXPR.
16427         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16428         * doc/posix-functions/nl_langinfo.texi: Likewise.
16429         Reported by Eric Blake.
16430
16431 2010-09-10  Bruno Haible  <bruno@clisp.org>
16432
16433         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16434         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16435         on FreeBSD 8.0 and OpenBSD 4.6.
16436         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16437         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16438         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16439         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16440         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16441         ac_includes_default.
16442         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16443
16444 2010-09-09  Eric Blake  <eblake@redhat.com>
16445
16446         strsignal: work around NetBSD bug
16447         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16448         * lib/string.in.h (includes): Likewise.
16449         * doc/posix-functions/strsignal.texi (strsignal): Document the
16450         bug.
16451         Reported by Nelson H. F. Beebe.
16452
16453         gnulib-tool: work with NetBSD /bin/sh
16454         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16455         (func_get_description, func_get_comment, func_get_status)
16456         (func_get_notice, func_get_applicability, func_get_filelist)
16457         (func_get_dependencies, func_get_autoconf_early_snippet)
16458         (func_get_autoconf_snippet, func_get_automake_snippet)
16459         (func_get_include_directive, func_get_link_directive)
16460         (func_get_license, func_get_maintainer, func_import): Avoid
16461         shell syntax errors from parsing syntax extensions.
16462
16463 2010-09-09  Bruno Haible  <bruno@clisp.org>
16464
16465         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16466         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16467         a reliable way to determine whether the 'alias' command works.
16468
16469 2010-09-08  Jim Meyering  <meyering@redhat.com>
16470
16471         init.sh: penalize a set-x-impaired shell; don't disqualify it
16472         * tests/init.sh: Too many shells corrupt application stderr when
16473         you set -x, so we can't afford to disqualify them, since at least
16474         on Irix-6.5, that would disqualify all bourne shells.
16475         Instead, use a two-pass approach.
16476         On the first pass, try to find a shell that meets the stricter
16477         condition that set -x does not corrupt stderr.
16478         If no shell meets the stricter condition, retest each candidate
16479         shell, but without that extra condition.  Finally, when
16480         VERBOSE=yes is requested and set -x might cause trouble, simply
16481         issue a warning and refrain from enabling debug output.
16482
16483 2010-09-08  Eric Blake  <eblake@redhat.com>
16484
16485         unsetenv: fix OpenBSD bug
16486         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16487         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16488         documentation.
16489         Reported by Jim Meyering.
16490
16491         strtod: work around IRIX 6.5 bug
16492         * lib/strtod.c (strtod): Reparse number on shorter string if
16493         exponent parse was invalid.
16494         * tests/test-strtod.c (main): Add check for "0x1p 2".
16495         Reported by Tom G. Christensen.
16496
16497         getopt: optimize previous patch
16498         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16499         empty variable.  Speed up awk script.
16500         Reported by Paolo Bonzini.
16501
16502 2010-09-08  Jim Meyering  <meyering@redhat.com>
16503
16504         test.sh: disqualify shells for which set -x corrupts stderr
16505         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16506         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16507         appear in stderr output.  For example, this command:
16508             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16509         prints "P=1" on those two systems:
16510
16511 2010-09-08  Bruno Haible  <bruno@clisp.org>
16512
16513         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16514         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16515         commands, because some shells ignore redirections when there is an
16516         error in the command lookup.
16517         Reported by Eric Blake.
16518
16519 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16520
16521         * lib/regex.h: Fix a mention of `regex_compile' (should be
16522         `re_compile_pattern').
16523         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16524         (re_set_registers): Correct name of parameter in comment.
16525
16526         * doc/regex.texi: Add documentation for missing syntax flags.
16527         Remove commented-out documentation of defunct syntax option
16528         RE_NO_EMPTY_ALTS.
16529         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16530         Add documentation of re_set_registers.
16531         Document trick to re-use a pattern buffer by setting fastmap manually.
16532         Update documentation of struct re_pattern_buffer per public members.
16533         Uncomment documentation of equivalence class operators and
16534         collating symbol operators, since they are now implemented,
16535         Explain leftmost-longest matching in relation to alternatives.
16536         Tidy documentation of substring matching.
16537         Remove POSIX documentation, which is done better in
16538         glibc, and refer the reader there. Keep BSD API documentation, as
16539         that is not readily available elsewhere.
16540
16541 2010-09-07  Eric Blake  <eblake@redhat.com>
16542
16543         getopt: handle POSIXLY_CORRECT set but not exported
16544         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16545         export state of POSIXLY_CORRECT, due to bash set -o posix.
16546         Reported by Dustin J. Mitchell.
16547
16548 2010-09-05  Bruno Haible  <bruno@clisp.org>
16549
16550         gnulib-tool: Highlight the changed options.
16551         * gnulib-tool (func_usage): Display the --import, --add-import,
16552         --remove-import explanations in bold font.
16553
16554 2010-09-06  Karl Berry  <karl@gnu.org>
16555
16556         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16557
16558 2010-09-05  Bruno Haible  <bruno@clisp.org>
16559
16560         uniwidth/width: Update comment.
16561         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16562         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16563
16564 2010-09-05  Bruno Haible  <bruno@clisp.org>
16565
16566         isinf, isnan: Relax license.
16567         * modules/isinf (License): Change from GPL to LGPL, with consent from
16568         Ben Pfaff.
16569         * modules/isnan (License): Likewise.
16570         Requested by Ludovic Courtès.
16571
16572 2010-09-04  Bruno Haible  <bruno@clisp.org>
16573
16574         gnulib-tool: Help migration from --import to --add-import or --update.
16575         * gnulib-tool: Emit a verbose error message when --import is used
16576         without any module name.
16577
16578 2010-09-04  Bruno Haible  <bruno@clisp.org>
16579
16580         Update doc about gnulib-tool.
16581         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16582         'gnulib-tool --update' in more detail.
16583         Reported by Eric Blake.
16584
16585 2010-09-04  Bruno Haible  <bruno@clisp.org>
16586
16587         gnulib-tool: Change --import. New options --add/remove-import.
16588         * gnulib-tool: New options --add-import, --remove-import.
16589         (func_usage): Document them.
16590         (have_associative): Define always.
16591         (func_import): In import mode, don't merge the specified settings with
16592         the cached settings. Implement remove-import mode.
16593         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16594         Explain when to use them versus --import.
16595         (Simple update): Use --add-import instead of --import.
16596         * NEWS: Mention the change.
16597
16598 2010-09-04  Bruno Haible  <bruno@clisp.org>
16599
16600         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16601         separate gnulib.mk.
16602
16603 2010-09-04  Bruno Haible  <bruno@clisp.org>
16604
16605         gnulib-tool: Don't talk about CVS any more.
16606         * gnulib-tool (func_usage, func_import): Write "version control"
16607         instead of CVS.
16608
16609 2010-09-04  Jim Meyering  <meyering@redhat.com>
16610
16611         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16612         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16613         false positives (whose names may be ill-chosen) when searching
16614         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16615         would cause a false-positive.
16616
16617         avoid coreutils "make distcheck" failure
16618         Coreutils tests with an absolute build directory name that contains
16619         a space.  Not quoting this directory name caused a failure.
16620         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16621         * tests/test-vc-list-files-cvs.sh: Likewise.
16622
16623 2010-09-04  Bruno Haible  <bruno@clisp.org>
16624
16625         gnulib-tool: Avoid error when run in a package without Makefile.am.
16626         * gnulib-tool: When collecting the m4dirs in a package that does not
16627         have a Makefile.am, eliminate those directories that contain no
16628         gnulib-cache.m4. Fix expression that counts these directories.
16629
16630 2010-09-04  Bruno Haible  <bruno@clisp.org>
16631
16632         update-copyright test: Improve output when perl is missing or too old.
16633         * tests/test-update-copyright.sh: Move test of Perl version down after
16634         the test whether Perl exists. Provide an explanation relating Perl's
16635         error message to Automake's SKIP: message.
16636
16637 2010-09-04  Bruno Haible  <bruno@clisp.org>
16638
16639         Don't augment PATH in TESTS_ENVIRONMENT.
16640         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16641         set abs_aux_dir instead of augmenting PATH.
16642         * modules/vc-list-files-tests (Makefile.am): Likewise.
16643         * tests/test-update-copyright.sh: Augment PATH here.
16644         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16645         path_prepend_.
16646         * tests/test-vc-list-files-git.sh: Likewise.
16647
16648 2010-09-04  Jim Meyering  <meyering@redhat.com>
16649
16650         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16651         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16652
16653 2010-09-04  Bruno Haible  <bruno@clisp.org>
16654
16655         strdup: Fix compilation error in C++ mode.
16656         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16657         the macro.
16658
16659 2010-09-04  Bruno Haible  <bruno@clisp.org>
16660
16661         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16662         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16663         macro into a function.
16664         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16665
16666 2010-09-04  Bruno Haible  <bruno@clisp.org>
16667
16668         Set PATH_SEPARATOR the same way autoconf does.
16669         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16670         the value of PATH_SEPARATOR the same way autoconf-generated configure
16671         scripts do.
16672         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16673         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16674
16675 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16676
16677         Set PATH_SEPARATOR the same way autoconf does.
16678         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16679         the same way autoconf-generated configure scripts do.
16680         * posix-modules: Likewise.
16681
16682 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16683
16684         hash: fix safe_hasher const typo
16685         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16686         const; otherwise, there is a type error later.
16687
16688 2010-09-02  Jim Meyering  <meyering@redhat.com>
16689
16690         test-update-copyright.sh: require perl 5.8.0
16691         * tests/test-update-copyright.sh: Require 5.8.0,
16692         which Tom G. Christensen has confirmed is adequate,
16693         while 5.6.1 is not.
16694
16695 2010-09-02  Eric Blake  <eblake@redhat.com>
16696
16697         tests: init.sh improvements for re-exec'ing with zsh
16698         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16699         -vx through shell re-exec.
16700         Reported by Tom G. Christensen.
16701
16702         wctype: fix typo in previous commit
16703         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16704         Reported by Ludovic Courtès.
16705
16706 2010-09-02  Jim Meyering  <meyering@redhat.com>
16707
16708         test-update-copyright.sh: skip test if Perl is too old
16709         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16710         Reported by Tom G. Christensen.
16711
16712 2010-09-02  Bruno Haible  <bruno@clisp.org>
16713
16714         wctype: Avoid compilation error on IRIX 6.5.30.
16715         * lib/wctype.in.h (iswblank): Declare with a replacement if
16716         REPLACE_ISWBLANK is set.
16717         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16718         declared. Set REPLACE_ISWBLANK.
16719         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16720         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16721         * doc/posix-headers/wctype.texi: Likewise.
16722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16723
16724 2010-09-01  Bruno Haible  <bruno@clisp.org>
16725
16726         New module 'socketlib'.
16727         * modules/socketlib: New file.
16728         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16729         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16730         * modules/sockets (Depends-on): Add socketlib.
16731         Suggested by Sam Steingold <sds@gnu.org>.
16732
16733 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16734
16735         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16736
16737         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16738         when one needs search access to a directory but not read access.
16739         On systems where it is available, it works in some cases where
16740         O_RDONLY does not, namely on directories that are searchable but
16741         not readable, and which need only to be searchable.  If O_SEARCH
16742         is not available, fall back to the traditional method of using
16743         O_RDONLY.
16744
16745         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16746         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16747         when opening a directory that needs only to be searchable.
16748         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16749         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16750         * lib/openat-proc.c (openat_proc_name): Likewise.
16751         * lib/openat.c (openat_needs_fchdir): Likewise.
16752         * lib/save-cwd.c (save_cwd): Likewise.
16753         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16754
16755 2010-08-28  Bruno Haible  <bruno@clisp.org>
16756
16757         New module 'host-cpu-c-abi'.
16758         * modules/host-cpu-c-abi: New file.
16759         * m4/host-cpu-c-abi.m4: New file, based on part of
16760         clisp/src/m4/general.m4.
16761         Requested by Sam Steingold <sds@gnu.org>.
16762
16763 2010-08-31  Eric Blake  <eblake@redhat.com>
16764         and Jim Meyering  <meyering@redhat.com>
16765
16766         hash: factor, and guard against misbehaving hasher function
16767         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16768         of table->hasher's return value.  Also protect against a hash value
16769         so large that adding it to table->bucket results in a NULL pointer.
16770         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16771         Use it in place of open-coded check-and-abort.
16772
16773 2010-08-30  Bruno Haible  <bruno@clisp.org>
16774
16775         hash: silence spurious clang warning
16776         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16777         Reported by Eric Blake.
16778
16779 2010-08-30  Eric Blake  <eblake@redhat.com>
16780
16781         strstr, memmem, strcasestr: avoid leaked shell message
16782         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16783         FreeBSD.
16784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16785         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16786
16787         tests: silence clang warning
16788         * tests/test-malloca.c (do_allocation): Avoid dead store.
16789
16790 2010-08-29  Bruno Haible  <bruno@clisp.org>
16791
16792         gettext: Fix recent mistake.
16793         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16794
16795 2010-08-29  Bruno Haible  <bruno@clisp.org>
16796
16797         selinux-h: Offer a --without-selinux option.
16798         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16799         --without-selinux was specified, skip all tests and define
16800         HAVE_SELINUX_SELINUX_H to 0.
16801         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16802         set LIB_SELINUX to empty.
16803         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16804         gl_LIBSELINUX. If --without-selinux was specified, replace
16805         selinux/context.h.
16806         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16807
16808 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16809             Bruno Haible  <bruno@clisp.org>
16810
16811         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16812         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16813         of HAVE_REALLOC.
16814         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16815         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16816         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16817         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16818
16819 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16820             Bruno Haible  <bruno@clisp.org>
16821
16822         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16823         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16824         HAVE_CALLOC.
16825         * lib/xmalloc.c: Update accordingly.
16826         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16827         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16828         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16829
16830 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16831             Bruno Haible  <bruno@clisp.org>
16832
16833         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16834         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16835         HAVE_MALLOC.
16836         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16837         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16838         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16839
16840 2010-08-29  Bruno Haible  <bruno@clisp.org>
16841
16842         Update modules list.
16843         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16844         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16845         (String handling <string.h>): Add astrxfrm.
16846         (File system functions): Add readlinkat.
16847
16848 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16849
16850         Tests for module 'realloc-gnu'.
16851         * modules/realloc-gnu-tests: New file.
16852         * tests/test-realloc-gnu.c: New file.
16853
16854         Tests for module 'calloc-gnu'.
16855         * modules/calloc-gnu-tests: New file.
16856         * tests/test-calloc-gnu.c: New file.
16857
16858         Tests for module 'malloc-gnu'.
16859         * modules/malloc-gnu-tests: New file.
16860         * tests/test-malloc-gnu.c: New file.
16861
16862 2010-08-28  Bruno Haible  <bruno@clisp.org>
16863
16864         Rename module 'realloc' -> 'realloc-gnu'.
16865         * modules/realloc-gnu: New file, copied from modules/realloc.
16866         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16867         obsolete.
16868         * modules/mgetgroups (Depends-on): Update.
16869         * doc/posix-functions/realloc.texi: Update.
16870         * NEWS: Mention the change.
16871
16872         Rename module 'calloc' -> 'calloc-gnu'.
16873         * modules/calloc-gnu: New file, copied from modules/calloc.
16874         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16875         obsolete.
16876         * doc/posix-functions/calloc.texi: Update.
16877         * NEWS: Mention the change.
16878
16879         Rename module 'malloc' -> 'malloc-gnu'.
16880         * modules/malloc-gnu: New file, copied from modules/malloc.
16881         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16882         obsolete.
16883         * modules/argp (Depends-on): Update.
16884         * modules/regex (Depends-on): Update.
16885         * doc/posix-functions/malloc.texi: Update.
16886         * NEWS: Mention the change.
16887
16888 2010-08-28  Eric Blake  <eblake@redhat.com>
16889
16890         pread, pwrite: add missing dependency
16891         * modules/pread (Depends-on): Add extensions.
16892         * modules/pwrite (Depends-on): Likewise.
16893
16894 2010-08-28  Bruno Haible  <bruno@clisp.org>
16895
16896         unistr/u*-strchr: Fix tests dependencies.
16897         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16898         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16899         Reported by Ian Beckwith <ianb@erislabs.net>.
16900
16901 2010-08-28  Bruno Haible  <bruno@clisp.org>
16902
16903         read-file: Don't occupy too much unused memory.
16904         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16905
16906 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16907             Eric Blake  <eblake@redhat.com>
16908             Bruno Haible  <bruno@clisp.org>
16909
16910         read-file: Avoid memory reallocations with regular files.
16911         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16912         (fread_file): With regular files, use the remaining length as the
16913         initial buffer size.  Check against overflow.
16914         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16915         sys_stat.
16916
16917 2010-08-28  Bruno Haible  <bruno@clisp.org>
16918
16919         ftello: Relax license.
16920         * modules/ftello (License): Relax to LGPLv2+.
16921         Reported by Eric Blake.
16922
16923 2010-08-28  Bruno Haible  <bruno@clisp.org>
16924
16925         Avoid relocwrapper link errors due to gnulib replacement functions.
16926         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16927         function.
16928         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16929
16930 2010-08-28  Bruno Haible  <bruno@clisp.org>
16931
16932         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16933         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16934         defined.
16935         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16936         Suggested by Eric Blake.
16937
16938 2010-08-28  Bruno Haible  <bruno@clisp.org>
16939
16940         sys_socket, netdb: Ensure socklen_t gets defined.
16941         * modules/sys_socket (Depends-on): Add socklen.
16942         * modules/netdb (Depends-on): Likewise.
16943         * modules/getaddrinfo (Depends-on): Remove socklen.
16944         * modules/getsockopt (Depends-on): Likewise.
16945         * modules/setsockopt (Depends-on): Likewise.
16946         * tests/test-sys_socket.c: Check that socklen_t is defined.
16947         * tests/test-netdb.c: Likewise.
16948         * m4/socklen.m4: Update comments.
16949         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16950
16951 2010-08-27  Eric Blake  <eblake@redhat.com>
16952
16953         login_tty: add missing dependency
16954         * modules/login_tty (Depends-on): Add pty.
16955
16956 2010-08-26  Eric Blake  <eblake@redhat.com>
16957
16958         lib-symbol-versions: fix m4 quoting
16959         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16960         format for AC_LINK_IFELSE.
16961
16962         glob: fix compile test
16963         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16964
16965         btowc: fix missing file
16966         * modules/btowc (Files): Also ship locale-fr.m4.
16967
16968         lseek: fix link test
16969         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16970         AC_LINK_IFELSE.
16971
16972         include_next: silence autoconf 2.68 warning
16973         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16974         AC_COMPILE_IFELSE as special.
16975         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16976         autoconf < 2.68.
16977
16978         acl: fix compilation test
16979         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16980         AC_COMPILE_IFELSE.
16981
16982 2010-08-26  Bruno Haible  <bruno@clisp.org>
16983
16984         Modernize AC_TRY_RUN invocations.
16985         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16986         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16987         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16988         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16989         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16990         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16991         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16992         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16993         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16994         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16995         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16996         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16997         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16998         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16999         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17000         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17001         gl_MBRLEN_NUL_RETVAL): Likewise.
17002         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17003         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17004         Likewise.
17005         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17006         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17007         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17008         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17009         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17010         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17011         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17012         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17013         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17014         Likewise.
17015         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17016         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17017         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17018         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17019         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17020         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17021         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17022         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17023         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17025
17026 2010-08-26  Bruno Haible  <bruno@clisp.org>
17027
17028         Modernize AC_TRY_LINK invocations.
17029         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17030         AC_TRY_LINK.
17031         * m4/argp.m4 (gl_ARGP): Likewise.
17032         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17033         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17034         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17035         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17036         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17037         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17038         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17039         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17040         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17041         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17042         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17043         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17044         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17045         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17046         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17047         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17048         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17049         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17050         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17051         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17052         Likewise.
17053         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17054         Likewise.
17055         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17056         Likewise.
17057         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17058         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17059         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17060         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17061         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17062         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17063         * m4/servent.m4 (gl_SERVENT): Likewise.
17064         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17065         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17066         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17067         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17068         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17069         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17070         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17071         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17072         * modules/tsearch-tests (configure.ac): Likewise.
17073
17074 2010-08-26  Bruno Haible  <bruno@clisp.org>
17075
17076         Modernize AC_TRY_COMPILE invocations.
17077         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17078         AC_TRY_COMPILE.
17079         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17080         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17081         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17082         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17083         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17084         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17085         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17086         * m4/lock.m4 (gl_LOCK): Likewise.
17087         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17088         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17089         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17090         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17091         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17092         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17093         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17094         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17095         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17096         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17097         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17098         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17099         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17100         extraneous semicolon.
17101
17102 2010-08-26  Jim Meyering  <meyering@redhat.com>
17103
17104         stat-time: relax license LGPL
17105         * modules/stat-time (License): Change from GPL to LGPL,
17106         with consent from all contributors, for use in libguile.
17107         Requested by Ludovic Courtès.
17108
17109 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17110
17111         poll: return immediately on POLLHUP.
17112         * lib/poll.c (poll): Always set timeout before wait_timeout is
17113         computed.
17114
17115 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17116
17117         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17118         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17119         rmdir ("dir/.//"), unlinkat.
17120
17121 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17122
17123         stdbool: avoid spurious failure with modern xlc
17124         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17125
17126 2010-08-24  Bruno Haible  <bruno@clisp.org>
17127
17128         getloadavg: simplify code
17129         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17130         gl_have_func. Update comments.
17131
17132 2010-08-24  Eric Blake  <eblake@redhat.com>
17133
17134         getloadavg: don't define SVR4 on cygwin
17135         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17136         only define SVR4 when -lkvm is required.
17137         Reported by Yaakov Selkowitz.
17138
17139 2010-08-24  Bruno Haible  <bruno@clisp.org>
17140
17141         priv-set: fix comment
17142         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17143
17144 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17145
17146         priv-set: fix comments
17147         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17148         to match code, as suggested by David Bartley in:
17149         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17150
17151 2010-08-23  Eric Blake  <eblake@redhat.com>
17152
17153         stdbool: avoid rejecting clang
17154         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17155         * tests/test-stdbool.c: Enable more tests if using the system
17156         <stdbool.h> instead of the gnulib replacement.
17157         (main): Move xlc bug test to a runtime test for all compilers.
17158         Reported by Anders Kaseorg.
17159
17160         argz: fix shell quoting issue
17161         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17162         Reported by Charles Wilson.
17163
17164 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17165             Erik Faye-Lund <kusmabite@gmail.com>
17166
17167         poll, select: handle ERROR_BROKEN_PIPE.
17168         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17169         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17170         * lib/select.c (win32_compute_revents): Do not mark a pipe
17171         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17172
17173 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17174
17175         fts: allow compilation with C++
17176         * lib/fts_.h: Specify extern "C" linkage with C++.
17177
17178 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17179
17180         Fix gnulib-tool sed script de-commentation for AIX sed.
17181         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17182         sed.
17183
17184 2010-08-17  Eric Blake  <eblake@redhat.com>
17185
17186         test-stddef: test for (some) offsetof bugs
17187         * tests/test-stddef.c: Enhance test to ensure correct type of
17188         offsetof.
17189         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17190         that we are not fixing at this time.
17191
17192 2010-08-15  Bruno Haible  <bruno@clisp.org>
17193
17194         stpncpy: Allow stpncpy to be defined as a macro.
17195         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17196         if it's already correctly declared.
17197         * lib/string.in.h (stpncpy): Undefine before redefining.
17198         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17199
17200 2010-08-14  Bruno Haible  <bruno@clisp.org>
17201
17202         Rename module 'memxfrm' to 'amemxfrm'.
17203         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17204         (amemxfrm): Renamed from memxfrm.
17205         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17206         (amemxfrm): Renamed from memxfrm.
17207         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17208         * NEWS: Mention the change.
17209         * MODULES.html.sh (String handling <string.h>): Update.
17210         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17211         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17212         * lib/unicase/u16-casexfrm.c: Likewise.
17213         * lib/unicase/u32-casexfrm.c: Likewise.
17214         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17215         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17216         * lib/uninorm/u16-normxfrm.c: Likewise.
17217         * lib/uninorm/u32-normxfrm.c: Likewise.
17218         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17219         memxfrm.
17220         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17221         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17222         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17223         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17224         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17225         Suggested by Paul Eggert.
17226
17227 2010-08-14  Bruno Haible  <bruno@clisp.org>
17228
17229         Tests for module 'astrxfrm'.
17230         * modules/astrxfrm-tests: New file.
17231         * tests/test-astrxfrm.c: New file.
17232
17233         New module 'astrxfrm'.
17234         * lib/astrxfrm.h: New file.
17235         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17236         * modules/astrxfrm: New file.
17237
17238 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17239
17240         regex: Tweak doc.
17241         * doc/regex.texi (Overview): Don't mention regex.c.
17242         (GNU Regular Expression Compiling): Likewise.
17243         (Match-end-of-line Operator): Mention 'not_eol'.
17244
17245 2010-08-14  Brian Gough  <bjg@gnu.org>
17246             Bruno Haible  <bruno@clisp.org>
17247
17248         git-merge-changelog: add doc relating to use with bzr and hg.
17249         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17250
17251 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17252
17253         pthread: fix pthread.h creation for srcdir != builddir
17254         * modules/pthread (Makefile.am): Fix the rule to work also in a
17255         non-srcdir build.
17256
17257 2010-08-13  Karl Berry  <karl@gnu.org>
17258
17259         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17260         * doc/posix-*/*: force line break before @url of POSIX
17261         specifications.
17262         Suggested by Werner Lemberg.
17263
17264 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17265
17266         strtod: fix const diagnostic
17267         * lib/strtod.c (strtod): Don't assign const char * to char *,
17268         as this elicits a warning from GCC when warnings are enabled.
17269
17270 2010-08-10  Pádraig Brady <P@draigbrady.com>
17271         and Eric Blake  <eblake@redhat.com>
17272
17273         copy-acl: ignore ENOTSUP on HP-UX
17274         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17275         so that it is available for HP-UX.
17276         * lib/copy-acl.c (qcopy_acl): Use it.
17277         Reported by Patrick M. Callahan.
17278
17279 2010-08-10  Eric Blake  <eblake@redhat.com>
17280
17281         open, chown: relax license
17282         * modules/open (License): Change to LGPLv2+, with consent by all
17283         authors, for use in augeas.
17284         * modules/chown (License): Likewise.
17285         * modules/lchown (Likewise): Likewise.
17286         Requested by Adam Stokes.
17287
17288 2010-08-09  Karl Berry  <karl@gnu.org>
17289
17290         * build-aux/ar-lib: new file, import from Automake.
17291         * config/srclist.txt: autocheck for updates.
17292
17293 2010-08-09  Eric Blake  <eblake@redhat.com>
17294
17295         readlinkat: adjust client modules
17296         * modules/areadlinkat (Depends-on): Use readlinkat, not
17297         symlinkat.
17298         * modules/areadlinkat-with-size (Depends-on): Likewise.
17299
17300         mknod: be more vocal about danger of running tests as root
17301         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17302         root, since that is just asking for problems.
17303         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17304
17305         readlinkat: split into its own module
17306         * modules/symlinkat: Split readlinkat...
17307         * modules/readlinkat: ...into separate module.
17308         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17309         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17310         * lib/symlinkat.c (readlinkat): Move...
17311         * lib/readlinkat.c: ...into new file.
17312         * modules/symlinkat-tests: Split readlinkat test...
17313         * modules/readlinkat-tests: ...into separate module.
17314         * tests/test-symlinkat.c: Split...
17315         * tests/test-readlinkat.c: ...into new file.
17316         * NEWS: Document the split.
17317         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17318         * lib/unistd.in.h (readlinkat): Likewise.
17319         Suggested by Bruno Haible.
17320
17321 2010-08-08  Bruno Haible  <bruno@clisp.org>
17322
17323         memxfrm: Speed up.
17324         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17325         that usually only one call to strxfrm is necessary for each string
17326         part.
17327         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17328
17329 2010-08-07  Karl Berry  <karl@gnu.org>
17330
17331         * doc/posix-headers/limits.texi,
17332         * doc/posix-functions/malloc.texi,
17333         * doc/posix-functions/strsignal.texi: missing @item.
17334         * doc/ld-version-script.texi: spurious leading i.
17335         * doc/regex.texi (Interval Operators): no commas inside @var.
17336
17337 2010-08-01  Bruno Haible  <bruno@clisp.org>
17338
17339         Integrate the regex documentation.
17340         * doc/gnulib.texi: Define 'cn' index.
17341         (Regular expressions): New a chapter that includes regex.texi and
17342         regexprops-generic.texi.
17343         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17344         syntax.
17345
17346         Whitespace cleanup.
17347         * doc/regex.texi: Remove trailing spaces.
17348
17349         Add regex documentation.
17350         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17351         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17352         Written by Kathy A. Hargreaves and Karl Berry.
17353
17354 2010-08-01  Bruno Haible  <bruno@clisp.org>
17355
17356         link: Update documentation.
17357         * doc/posix-functions/link.texi: Update regarding Solaris.
17358
17359 2010-07-31  Bruno Haible  <bruno@clisp.org>
17360
17361         Update modules list.
17362         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17363         (String handling <string.h>): Add memcmp2, memxfrm.
17364         (Container data structures): Add xlist, xsublist, xoset.
17365         (Core language properties): Add alignof, unused-parameter.
17366         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17367         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17368         (Unibyte characters <ctype.h>): New section.
17369         (String handling <string.h>): New section.
17370         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17371         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17372         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17373         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17374         tan, tanh, tanl, y0, y1, yn.
17375         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17376         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17377         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17378         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17379         unlockpt, vdprintf, vdprintf-posix.
17380         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17381         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17382         xconcat-filename.
17383         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17384         getdtablesize, pipe2, pipe2-safer.
17385         (Security): New section.
17386         (Networking functions): Add accept4.
17387         (Signal handling): Add sigpipe.
17388         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17389         mbmemcasecoll.
17390         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17391         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17392         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17393         pipe-filter-ii.
17394         (Misc): Add argp-version-etc, login_tty, parse-duration.
17395
17396 2010-07-31  Bruno Haible  <bruno@clisp.org>
17397
17398         Improve doc in MODULES.html.
17399         * modules/linkat (Description): Add the word "function".
17400         * modules/mkfifo (Description): Likewise.
17401         * modules/mknod (Description): Likewise.
17402         * modules/remove (Description): Likewise.
17403         * modules/renameat (Description): Likewise.
17404         * modules/stat (Description): Likewise.
17405         * modules/symlink (Description): Likewise.
17406         * modules/unlink (Description): Likewise.
17407
17408 2010-07-31  Bruno Haible  <bruno@clisp.org>
17409
17410         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17411         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17412         option --enable/disable-c++ instead of --enable/disable-cxx.
17413         * NEWS: Mention the change.
17414
17415 2010-07-31  Bruno Haible  <bruno@clisp.org>
17416
17417         readlink, areadlink: Relax test a bit.
17418         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17419         alternative to ENOTDIR.
17420         * tests/test-areadlink.h (test_areadlink): Likewise.
17421         Reported by Rainer Tammer.
17422
17423 2010-07-31  Bruno Haible  <bruno@clisp.org>
17424
17425         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17426         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17427         character, perform the search using U_STRCHR.
17428         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17429         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17430         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17431         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17432         Suggested by Paolo Bonzini.
17433
17434 2010-07-31  Bruno Haible  <bruno@clisp.org>
17435
17436         unistr/u*-strstr: Fix dependencies.
17437         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17438         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17439         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17440
17441 2010-07-31  Bruno Haible  <bruno@clisp.org>
17442
17443         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17444         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17445         the beginning of the loop.
17446         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17447         cases in 'switch' statement.
17448
17449         unistr/u8-strchr: Fix several bugs.
17450         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17451         the string. When not found, return NULL, not a pointer near the end.
17452
17453         More tests for unistr/u8-strchr.
17454         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17455         that the function does not read past the first occurrence of the byte
17456         being searched.
17457         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17458         * tests/unistr/test-u16-strchr.c (main): New function.
17459         * tests/unistr/test-u32-strchr.c (main): New function.
17460
17461 2010-07-31  Bruno Haible  <bruno@clisp.org>
17462
17463         posix-modules: Ignore backup files of documentation files.
17464         * posix-modules: grep only through files named *.texi.
17465
17466 2010-07-31  Bruno Haible  <bruno@clisp.org>
17467
17468         symlinkat: Fix documentation.
17469         * doc/posix-functions/readlinkat.texi: Fix module name.
17470
17471 2010-07-31  Bruno Haible  <bruno@clisp.org>
17472
17473         fchownat: Replace also when chown has the trailing slash bug.
17474         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17475         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17476         introduced on 2010-04-10.
17477         Reported by Rainer Tammer.
17478
17479 2010-07-31  Bruno Haible  <bruno@clisp.org>
17480
17481         linkat: Work around AIX 7.1 bug.
17482         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17483         whether linkat handles trailing slash correctly. If not, replace linkat
17484         and define LINKAT_TRAILING_SLASH_BUG.
17485         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17486         check whether (fd1,file1) points to a directory if file1 or file2 ends
17487         in a slash. Code taken from lib/link.c.
17488         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17489         Reported by Rainer Tammer.
17490
17491 2010-07-31  Bruno Haible  <bruno@clisp.org>
17492
17493         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17494         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17495         This disables an xlc optimization that was causing wrong test results.
17496         Reported by Rainer Tammer.
17497
17498 2010-07-31  Bruno Haible  <bruno@clisp.org>
17499
17500         iconv: Work around AIX 6.1..7.1 bug.
17501         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17502         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17503         cross-compiling, guess no on all versions of AIX.
17504         Reported by Rainer Tammer.
17505
17506 2010-07-31  Bruno Haible  <bruno@clisp.org>
17507
17508         readlink: Relax test a bit.
17509         * tests/test-readlink.h (test_readlink): Allow different errno value
17510         when readlink is called with a file name that ends in / and refers to
17511         a file.
17512         Suggested by Eric Blake.
17513         Reported by Rainer Tammer.
17514
17515 2010-07-31  Bruno Haible  <bruno@clisp.org>
17516
17517         copysign: Does not require -lm on glibc systems.
17518         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17519         gl_COMMON_DOUBLE_MATHFUNC.
17520         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17521
17522 2010-07-31  Bruno Haible  <bruno@clisp.org>
17523
17524         duplocale: Work around AIX 7.1 bug.
17525         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17526         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17527         * lib/duplocale.c (rpl_duplocale): Update comment.
17528         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17529         Reported by Rainer Tammer.
17530
17531 2010-07-30  Bruno Haible  <bruno@clisp.org>
17532
17533         dirfd: Avoid link error on AIX 7.1.
17534         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17535         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17536         exist, set REPLACE_DIRFD.
17537         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17538         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17539         * doc/posix-functions/dirfd.texi: Update.
17540         Reported by Rainer Tammer.
17541
17542 2010-07-30  Eric Blake  <eblake@redhat.com>
17543
17544         strtod: next round of AIX fixes
17545         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17546         exponent.
17547         * tests/test-strtod.c (main): Enhance tests.
17548         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17549         Reported by Rainer Tammer.
17550
17551         futimens: fix configure check
17552         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17553         Reported by Bruno Haible.
17554
17555 2010-07-30  Bruno Haible  <bruno@clisp.org>
17556
17557         getline: Update regarding AIX.
17558         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17559         Reported by Rainer Tammer.
17560
17561 2010-07-30  Bruno Haible  <bruno@clisp.org>
17562
17563         wcwidth: Drop replacement on AIX 7.
17564         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17565         AIX 7.
17566         Reported by Rainer Tammer.
17567
17568 2010-07-30  Bruno Haible  <bruno@clisp.org>
17569
17570         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17571         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17572         a 'char *'.
17573         Reported by Rainer Tammer.
17574
17575 2010-07-30  Bruno Haible  <bruno@clisp.org>
17576
17577         unlink: Update regarding AIX.
17578         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17579         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17580         Reported by Rainer Tammer.
17581
17582 2010-07-30  Bruno Haible  <bruno@clisp.org>
17583
17584         symlink: Update regarding AIX.
17585         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17586         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17587         Reported by Rainer Tammer.
17588
17589 2010-07-30  Bruno Haible  <bruno@clisp.org>
17590
17591         strndup: Update regarding AIX.
17592         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17593         AIX 7.
17594         Reported by Rainer Tammer.
17595
17596 2010-07-30  Bruno Haible  <bruno@clisp.org>
17597
17598         stat: Update regarding AIX.
17599         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17600         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17601         Reported by Rainer Tammer.
17602
17603 2010-07-30  Bruno Haible  <bruno@clisp.org>
17604
17605         truncl: Fix autoconf test.
17606         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17607         whether truncl works.
17608         Reported by Rainer Tammer.
17609
17610 2010-07-30  Bruno Haible  <bruno@clisp.org>
17611
17612         round: Update regarding AIX.
17613         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17614         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17615         Reported by Rainer Tammer.
17616
17617 2010-07-30  Bruno Haible  <bruno@clisp.org>
17618
17619         rename: Update regarding AIX.
17620         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17621         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17622         Reported by Rainer Tammer.
17623
17624 2010-07-30  Bruno Haible  <bruno@clisp.org>
17625
17626         printf.m4: Update regarding AIX.
17627         * m4/printf.m4: Update comments regarding AIX.
17628         Reported by Rainer Tammer.
17629
17630 2010-07-30  Bruno Haible  <bruno@clisp.org>
17631
17632         iconv: Update regarding AIX.
17633         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17634         AIX 7.
17635         Reported by Rainer Tammer.
17636
17637 2010-07-30  Bruno Haible  <bruno@clisp.org>
17638
17639         getopt: Update regarding AIX.
17640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17641         no on AIX.
17642         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17643         Reported by Rainer Tammer.
17644
17645 2010-07-30  Bruno Haible  <bruno@clisp.org>
17646
17647         ldexpl; Update regarding AIX.
17648         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17649         on AIX 7.
17650         Reported by Rainer Tammer.
17651
17652 2010-07-30  Bruno Haible  <bruno@clisp.org>
17653
17654         frexpl: Update regarding AIX.
17655         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17656         on AIX 7.
17657         Reported by Rainer Tammer.
17658
17659 2010-07-30  Bruno Haible  <bruno@clisp.org>
17660
17661         open, fopen: Update regarding AIX.
17662         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17663         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17664         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17665         * doc/posix-functions/fopen.texi: Likewise.
17666         Reported by Rainer Tammer.
17667
17668 2010-07-30  Bruno Haible  <bruno@clisp.org>
17669
17670         chown: Update doc regarding AIX.
17671         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17672         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17673         Reported by Rainer Tammer.
17674
17675 2010-07-30  Eric Blake  <eblake@redhat.com>
17676
17677         strtod: fix bug in replacement function on AIX
17678         * lib/strtod.c (strtod): Special case broken "0x" parse in
17679         underlying strtod.
17680         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17681         * doc/posix-functions/strtod.texi (strtod): Likewise.
17682         Reported by Rainer Tammer.
17683
17684 2010-07-30  Bruno Haible  <bruno@clisp.org>
17685
17686         mbrlen: Fix cross-compilation guess for AIX.
17687         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17688         guess. Leftover from 2008-12-22.
17689
17690 2010-07-30  Bruno Haible  <bruno@clisp.org>
17691
17692         mbrtowc: Fix cross-compilation guess for AIX.
17693         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17694         guess. Leftover from 2008-12-21.
17695
17696 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17697
17698         init.sh: work around trap limitation of some shells
17699         * tests/init.sh (setup_): Move exit trap outside of shell function.
17700
17701 2010-07-29  Eric Blake  <eblake@redhat.com>
17702
17703         strtod: aid debugging
17704         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17705         understanding why strtod is rejected.
17706
17707 2010-07-28  Bruno Haible  <bruno@clisp.org>
17708
17709         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17710         * lib/unistr/u8-chr.c: Include <string.h>.
17711         * tests/unistr/test-u8-chr.c: Likewise.
17712         * tests/unistr/test-u16-chr.c: Likewise.
17713         * tests/unistr/test-u32-chr.c: Likewise.
17714         * tests/unistr/test-u8-strchr.c: Likewise.
17715         * tests/unistr/test-u16-strchr.c: Likewise.
17716         * tests/unistr/test-u32-strchr.c: Likewise.
17717         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17718         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17719         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17720         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17721
17722 2010-07-28  Bruno Haible  <bruno@clisp.org>
17723
17724         Use spaces for indentation, not tabs.
17725         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17726
17727 2010-07-27  Bruno Haible  <bruno@clisp.org>
17728
17729         mbspcasecmp: Fix function specification.
17730         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17731         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17732         Reported by Eric Blake <eblake@redhat.com>.
17733
17734 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17735
17736         timespec: use cast and not conditional, as truncation isn't possible
17737         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17738         instead of a conditional.  Comment about the situation in more detail.
17739         This undoes most of the 2009-10-29 patch.
17740
17741 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17742
17743         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17744         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17745         * lib/unistr/u8-strchr.c: Likewise.
17746         * modules/unistr/u8-chr: Depend on memchr.
17747
17748         unistr/u*-strchr: add tests
17749         * modules/unistr/u8-strchr-tests: New file.
17750         * modules/unistr/u16-strchr-tests: New file.
17751         * modules/unistr/u32-strchr-tests: New file.
17752         * tests/unistr/test-strchr.h: New file.
17753         * tests/unistr/test-u8-strchr.c: New file.
17754         * tests/unistr/test-u16-strchr.c: New file.
17755         * tests/unistr/test-u32-strchr.c: New file.
17756
17757         unistr/u*-chr: test multibyte sequences more
17758         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17759         test vector.
17760         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17761         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17762         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17763
17764         unistr/u*-chr: test multibyte sequences
17765         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17766
17767         unistr/u*-chr: prepare for multibyte tests
17768         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17769         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17770         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17771         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17772         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17773         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17774
17775 2010-07-18  Bruno Haible  <bruno@clisp.org>
17776
17777         unistr/u8-strchr: Optimize non-ASCII argument case.
17778         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17779         because the first byte often matches anyway.
17780         Reported by Pádraig Brady <P@draigbrady.com>.
17781
17782 2010-07-15  Karl Berry  <karl@gnu.org>
17783
17784         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17785
17786 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17787
17788         getcwd: on Solaris, work better if ancestors are inaccessible
17789         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17790         buffer and size, try again with a large buffer.  This works better
17791         on Solaris, since its getcwd succeeds even if the path to the root
17792         is inaccessible, and this is helpful in common cases such as .zfs
17793         hidden directories.  Problem reported by J Chapman Flack in
17794         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17795         Use system getcwd if it's declared, not merely if it's partly
17796         working; use the partly-working test only to avoid needless effort
17797         if the system getcwd fails.
17798         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17799         comment that was already obsolete and is now even more obsolete.
17800         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17801         now might call strdup.
17802
17803 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17804
17805         pthread: Add enough so that coreutils/src/sort.c compiles.
17806         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17807         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17808         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17809         Include <sys/types.h>, in case it defines pthread_t.
17810         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17811         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17812         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17813         (pthread_rwlockattr_t, pthread_spinlock_t):
17814         New typedefs, if HAVE_PTHREAD_T is not defined.
17815         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17816         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17817         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17818         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17819         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17820         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17821         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17822         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17823         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17824         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17825         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17826         New macros.
17827         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17828         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17829         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17830         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17831         (pthread_spin_unlock): New dummy functions.
17832         (pthread_create): Return EAGAIN; don't set errno.
17833         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17834         require AC_C_INLINE.
17835         * modules/pthread (Depends-on): Add sched, time.
17836         (pthread.h): Use AM_V_GEN.
17837
17838 2010-07-13  Bruno Haible  <bruno@clisp.org>
17839
17840         striconveh: Don't malloc memory if the result buffer is sufficient.
17841         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17842         buffer if its size is sufficient.
17843         Reported by Ludovic Courtès <ludo@gnu.org>.
17844
17845 2010-07-13  Bruno Haible  <bruno@clisp.org>
17846
17847         strtod: Add safety check.
17848         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17849
17850 2010-07-12  Bruno Haible  <bruno@clisp.org>
17851
17852         Unify tests that set gl_cv_func_ldexpl_no_libm.
17853         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17854         gl_FUNC_LDEXPL.
17855         (gl_FUNC_LDEXPL): Invoke it.
17856         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17857
17858 2010-07-12  Bruno Haible  <bruno@clisp.org>
17859
17860         Unify tests that set gl_cv_func_ldexp_no_libm.
17861         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17862         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17863         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17864         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17865         * modules/strtod (Files): Add m4/ldexp.m4.
17866
17867 2010-07-12  Bruno Haible  <bruno@clisp.org>
17868
17869         Unify tests that set gl_cv_func_frexpl_no_libm.
17870         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17871         gl_FUNC_FREXPL_NO_LIBM.
17872         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17873         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17874
17875 2010-07-12  Bruno Haible  <bruno@clisp.org>
17876
17877         Unify tests that set gl_cv_func_frexp_no_libm.
17878         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17879         gl_FUNC_FREXP_NO_LIBM.
17880         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17881         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17882
17883 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17884
17885         memcoll: clarify sizes versus lengths, document better, and tweak perf
17886         * lib/memcoll.c (strcoll_loop, memcoll0):
17887         Improve quality of descriptive comments.  Name variables
17888         consistently as to whether they are lengths (which do not include
17889         terminating null) versus sizes (which do).
17890         * lib/xmemcoll.c (xmemcoll0): Likewise.
17891         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17892         returned when s1size == 0; this is easier to compile and saves
17893         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17894
17895 2010-07-12  Bruno Haible  <bruno@clisp.org>
17896
17897         Tests for module '_Exit'.
17898         * modules/_Exit-tests: New file.
17899         * tests/test-_Exit.sh: New file.
17900         * tests/test-_Exit.c: New file.
17901
17902         New module '_Exit'.
17903         * lib/stdlib.in.h (__attribute__): New macro.
17904         (_Exit): New declaration.
17905         * lib/_Exit.c: New file.
17906         * m4/_Exit.m4: New file.
17907         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17908         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17909         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17910         * modules/_Exit: New file.
17911         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17912         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17913
17914 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17915
17916         strtod: make it more-accurate typically, and don't require libm
17917         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17918         Include limits.h.  Don't include string.h.
17919         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17920         (locale_isspace): New function, so that no casts are needed to
17921         check whether *s is a space.
17922         (ldexp): Provide an unused dummy if not available.
17923         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17924         (strtod): Use them.  This implementation prefers to use the
17925         underlying strtod if available, falling back on our own code
17926         only to fix known bugs.  This is more likely to produce an
17927         accurate result.  Also, it avoids the use of libm functions.
17928         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17929         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17930         was absent, but it caused a test failure with coreutils.
17931         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17932         with libm.
17933         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17934         * modules/strtod-tests (Makefile.am): Likewise.
17935
17936 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17937             Bruno Haible  <bruno@clisp.org>
17938
17939         unistr/u8-strchr: Optimize ASCII argument case.
17940         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17941
17942 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17943
17944         (x)memcoll: minor tweaks
17945         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17946         is after the type that it qualifies.
17947         (memcoll0): Likewise.
17948         * lib/memcoll.h (memcoll0): Likewise.
17949         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17950         * lib/xmemcoll.h (xmemcoll0): Likewise.
17951         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17952         differs from memcoll in that the NUL byte is part of the argument.
17953         Omit the abort-checks, as performance is a real issue here.  Plus,
17954         the checks were wrong anyway (an off-by-one error).  Omit local
17955         variable 'diff', as it's a bit clearer that way.
17956         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17957         no longer needed.
17958
17959 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17960
17961         (x)memcoll: speedup when input is known to be NUL delimited
17962         * lib/memcoll.c: Include stdlib.
17963         (memcoll0): New function.
17964         (strcoll_loop): New function, refactored for use in both memcoll
17965         and memcoll0.
17966         * lib/memcoll.h (memcoll0): Add prototype.
17967         * lib/xmemcoll.c (xmemcoll0): New function.
17968         (collate_error): New function, refactored for use in both xmemcoll
17969         and xmemcoll0.
17970         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17971         * m4/memcoll.m4: add inline invocation.
17972
17973 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17974
17975         * build-aux/bootstrap: Remove any local translations
17976         from the translation project synchronization directory,
17977         so that local only translations are not distributed.
17978
17979 2010-07-04  Bruno Haible  <bruno@clisp.org>
17980
17981         fsusage: Clarify which code applies to which platforms.
17982         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17983         platform.
17984         * lib/fsusage.c (get_fs_usage): Likewise.
17985
17986 2010-07-04  Bruno Haible  <bruno@clisp.org>
17987
17988         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17989         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17990         Reported by Martin Lambers <marlam@marlam.de>.
17991
17992 2010-07-04  Jim Meyering  <meyering@redhat.com>
17993
17994         hash: once again explicitly disallow insertion of NULL
17995         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17996         inserting a NULL pointer cannot work with these functions.
17997         Add a comment with details.
17998         This reverts part of the 2010-07-01 commit, 5bef1a35
17999         "hash: extend module to deal with non-pointer keys".
18000
18001 2010-07-01  Bruno Haible  <bruno@clisp.org>
18002
18003         stdbool: Update doc.
18004         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18005         Info from Christian Weisgerber <naddy@mips.inka.de>.
18006
18007 2010-07-01  Jim Meyering  <meyering@redhat.com>
18008
18009         hash: extend module to deal with non-pointer keys
18010         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18011         but that allows insertion of non-pointer entries.
18012         Do not disallow an ENTRY value of NULL.
18013         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18014         * lib/hash.h (hash_insert0): Declare.
18015
18016 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18017
18018         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18019         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18020         not present (i.e. with autoconf 2.59 and when using gettextize, not
18021         gnulib), require AC_GNU_SOURCE instead.
18022
18023 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18024
18025         idpriv-drop: Fix tests.
18026         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18027         not to the test-idpriv-droptemp program.
18028
18029 2010-06-29  Bruno Haible  <bruno@clisp.org>
18030
18031         string: Fix syntax error with g++ 2.96.
18032         * lib/string.in.h (__pure__): Remove definition.
18033         (_GL_ATTRIBUTE_PURE): New macro.
18034         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18035         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18036         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18037
18038 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18039
18040         unitypes: Fix bug introduced on 2010-05-18.
18041         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18042
18043 2010-06-22  Eric Blake  <eblake@redhat.com>
18044
18045         memmem: slight optimization
18046         * lib/str-two-way.h (critical_factorization): Update comments.
18047         Reduce work during factorization phase.
18048         Reported by Carlos Bueno <carlos@bueno.org>.
18049
18050 2010-06-21  Bruno Haible  <bruno@clisp.org>
18051
18052         Fix HAVE_CALLOC_POSIX misnomer.
18053         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18054         !HAVE_CALLOC_POSIX.
18055         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18056         HAVE_CALLOC_POSIX.
18057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18058         instead of HAVE_CALLOC_POSIX.
18059         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18060         HAVE_CALLOC_POSIX.
18061
18062         Use modern idiom for calloc() replacement.
18063         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18064         AC_FUNC_CALLOC.
18065         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18066         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18067         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18068         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18069         (gl_REPLACE_CALLOC): New macro.
18070
18071 2010-06-21  Bruno Haible  <bruno@clisp.org>
18072
18073         Fix HAVE_REALLOC_POSIX misnomer.
18074         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18075         !HAVE_REALLOC_POSIX.
18076         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18077         HAVE_REALLOC_POSIX.
18078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18079         instead of HAVE_REALLOC_POSIX.
18080         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18081         HAVE_REALLOC_POSIX.
18082
18083         Use modern idiom for realloc() replacement.
18084         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18085         AC_FUNC_REALLOC.
18086         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18087         Autoconf's AC_FUNC_REALLOC.
18088         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18089         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18090         (gl_REPLACE_REALLOC): New macro.
18091         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18092
18093 2010-06-21  Bruno Haible  <bruno@clisp.org>
18094
18095         Fix HAVE_MALLOC_POSIX misnomer.
18096         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18097         !HAVE_MALLOC_POSIX.
18098         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18099         HAVE_MALLOC_POSIX.
18100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18101         instead of HAVE_MALLOC_POSIX.
18102         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18103         HAVE_MALLOC_POSIX.
18104
18105         Use modern idiom for malloc() replacement.
18106         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18107         AC_FUNC_MALLOC.
18108         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18109         Autoconf's AC_FUNC_MALLOC.
18110         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18111         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18112         (gl_REPLACE_MALLOC): New macro.
18113         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18114
18115 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18116
18117         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18118         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18119         This macro takes 3 arguments, not 4.
18120
18121 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18122
18123         ipv6: fix detection under mingw
18124         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18125         in6_addr.
18126
18127 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18128
18129         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18130         that strtod() works when cross-compiling to a glibc version known
18131         to work.
18132
18133 2010-06-15  Bruno Haible  <bruno@clisp.org>
18134
18135         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18136
18137 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18138
18139         select: Correct timeout.
18140         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18141
18142 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18143
18144         git-version-gen: init shell var to avoid env var influence
18145         * build-aux/git-version-gen (v): Init shell var to empty.
18146
18147 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18148
18149         priv-set: Don't assume that priv.h exists merely because getppriv does.
18150         See Jan Andersen's bug report about AIX 5L in
18151         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18152         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18153         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18154         * lib/priv-set.h: Likewise.
18155         * tests/test-priv-set.c: Likewise.
18156
18157 2010-06-13  Bruno Haible  <bruno@clisp.org>
18158
18159         relocatable: Make it easier to test whether to install wrappers.
18160         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18161         RELOCATABLE_VIA_WRAPPER.
18162
18163 2010-06-13  Bruno Haible  <bruno@clisp.org>
18164
18165         gnulib-tool: Display specified modules and dependencies differently.
18166         * gnulib-tool (func_show_module_list): New function.
18167         (func_import, func_create_testdir): Invoke it.
18168         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18169
18170 2010-06-13  Bruno Haible  <bruno@clisp.org>
18171
18172         gnulib-tool: Align code of func_import and func_create_testdir.
18173         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18174         specified_modules.
18175
18176 2010-06-12  Jim Meyering  <meyering@redhat.com>
18177
18178         test-inttostr: avoid spurious failure on Solaris 9
18179         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18180         to accept "%ju".  Reported by Bruno Haible.
18181
18182 2010-06-11  Jim Meyering  <meyering@redhat.com>
18183
18184         test-sys_socket: mark variables as used more readably
18185         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18186         as "used" explicitly via (void) statement casts.  This is more
18187         readable than using them in an artificial return expression.
18188         Suggestion from Bruno Haible.
18189
18190 2010-06-11  Bruno Haible  <bruno@clisp.org>
18191
18192         Avoid some more warnings from "gcc -Wwrite-strings".
18193         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18194         to 'const char *'.
18195         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18196         * tests/test-c-strcasestr.c (main): Likewise.
18197         * tests/test-mbscasestr1.c (main): Likewise.
18198         * tests/test-mbscasestr2.c (main): Likewise.
18199         * tests/test-memmem.c (main): Likewise.
18200         * tests/test-strstr.c (main): Likewise.
18201         * tests/test-strcasestr.c (main): Likewise.
18202
18203 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18204
18205         init.sh: change framework_failure_ to fail with status 99, not 1
18206         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18207         automake's parallel-tests rule that this is an unexpected failure,
18208         even if the test is listed in XFAIL_TESTS.
18209
18210 2010-06-11  Jim Meyering  <meyering@redhat.com>
18211
18212         test-inttostr: avoid warnings about 4-6KB literal strings
18213         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18214         Include "macros.h", for its definition of ASSERT.
18215         (CK): s/assert/ASSERT/
18216         * modules/inttostr-tests (Files): Add macros.h.
18217
18218         init.sh: don't use $ME_ or skip_ before they are defined
18219         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18220         their first uses.  Also hoist their companions: warn_, fail_,
18221         framework_failure_, $stderr_fileno.  Prompted by a patch from
18222         Stefano Lattarini.
18223
18224         test-sys_socket: avoid set-but-not-used warnings from gcc
18225         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18226         avoid warning about set-but-not-used variables.
18227
18228         test-xvasprintf: avoid 'const' discard warnings
18229         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18230         "const" when assigning from literal strings.
18231         (test_xasprintf): Add "void" in function argument list to placate
18232         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18233
18234         tests: avoid compilation warnings in argmatch and exclude tests...
18235         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18236         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18237         Since it always exits, declare with the "noreturn" attribute.
18238         * tests/test-argmatch.c: Likewise.
18239
18240         tests: avoid 'const' discard warnings in mbsstr tests
18241         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18242         * tests/test-mbsstr2.c (main): Likewise.
18243
18244         test-verify: avoid warning from gcc's -Wmissing-declarations
18245         * tests/test-verify.c (function): Declare to be static.
18246
18247         test-inttostr.c: include <string.h> for use of strcmp
18248         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18249
18250         test-linkat: avoid failed assertion on "other" architectures
18251         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18252         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18253         sparc: https://bugs.launchpad.net/bugs/591968
18254
18255 2010-06-11  Jim Meyering  <meyering@redhat.com>
18256
18257         printf.m4: avoid autoconf's "Expanded Before Required" warning
18258         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18259         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18260         autoconf warning.
18261
18262 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18263
18264         Replacement header templates are now named with ".in", not "_".
18265         * doc/gnulib-intro.texi: Correct.
18266
18267 2010-06-10  Jim Meyering  <meyering@redhat.com>
18268
18269         inttostr-tests: depend on snprintf, not snprintf-posix
18270         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18271         snprintf-posix, to avoid this aclocal failure:
18272           missing file gnulib-tests/vasnprintf.c
18273           configure.ac:45: error: expected source file, required through \
18274           AC_LIBSOURCES, not found
18275
18276 2010-06-10  Jim Meyering  <meyering@redhat.com>
18277
18278         inttostr: add a new function, inttostr, and tests
18279         The namesake function was not available.  The existence of the
18280         template file, inttostr.c makes its addition nontrivial.
18281         * lib/anytostr.c: Rename from inttostr.c.
18282         (anytostr): Rename from inttostr.
18283         * lib/inttostr.c: New file.
18284         * modules/inttostr (Files): Add anytostr.c.
18285         (Makefile.am): Set lib_SOURCES instead of ...
18286         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18287         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18288         * lib/offtostr.c: Likewise.
18289         * lib/uinttostr.c: Likewise.
18290         * lib/umaxtostr.c: Likewise.
18291         * modules/inttostr-tests: New file.
18292         * tests/test-inttostr.c: New file.  Test these functions.
18293
18294 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18295             Bruno Haible  <bruno@clisp.org>
18296
18297         Add "Extending Gnulib" chapter to manual.
18298         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18299         chapter.
18300         (Extending Gnulib): New chapter.
18301         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18302         chapter.
18303
18304 2010-06-09  Bruno Haible  <bruno@clisp.org>
18305
18306         Avoid relocwrapper link errors due to gnulib replacement functions.
18307         * lib/areadlink.c: Use the system's malloc, realloc functions.
18308         (areadlink): Set errno to ENOMEM explicitly.
18309         * modules/areadlink (Depends-on): Remove malloc-posix.
18310         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18311
18312 2010-06-09  Bruno Haible  <bruno@clisp.org>
18313
18314         Avoid relocwrapper link errors due to gnulib replacement functions.
18315         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18316         * lib/malloca.c: Likewise.
18317         * lib/relocatable.c: Likewise.
18318         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18319         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18320         * lib/setenv.c: Use the system's malloc, realloc functions.
18321         * lib/strerror.c: Use the system's sprintf function.
18322         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18323
18324 2010-06-04  Bruno Haible  <bruno@clisp.org>
18325
18326         Prefer documented low-level autoconf macro names.
18327         * m4/lib-link.m4: Use m4_translit instead of translit.
18328         * m4/environ.m4: Likewise.
18329         * m4/mathfunc.m4: Likewise.
18330         * m4/onceonly.m4: Likewise.
18331         * m4/stdint.m4: Likewise.
18332         Suggested by Eric Blake.
18333
18334 2010-06-04  Martin Lambers  <marlam@marlam.de>
18335             Bruno Haible  <bruno@clisp.org>
18336
18337         havelib: Allow library names with '+' characters.
18338         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18339         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18340
18341 2010-06-09  Bruno Haible  <bruno@clisp.org>
18342
18343         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18344         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18345         realloc failed.
18346
18347 2010-06-08  Peter Simons  <simons@cryp.to>
18348
18349         maint.mk: make the news-check rule more configurable
18350         * top/maint.mk (news-check-lines-spec): New variable.
18351         (news-check): Use "sed -n 1,10p" in place of "head".
18352
18353 2010-06-07  Jim Meyering  <meyering@redhat.com>
18354
18355         do-release-commit-and-tag: fix typo in --help
18356         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18357
18358         regex: avoid new dead-code warning with gcc-4.6.0
18359         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18360         if-block containing a while-loop.  It's been unused for at least
18361         5 years.
18362
18363 2010-06-05  Bruno Haible  <bruno@clisp.org>
18364
18365         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18366         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18367
18368 2010-06-04  Bruno Haible  <bruno@clisp.org>
18369
18370         Update to GNU gettext 0.18.1.
18371         * modules/gettext (configure.ac): Require gettext infrastructure from
18372         version 0.18.1.
18373
18374 2010-06-03  Bruno Haible  <bruno@clisp.org>
18375
18376         Don't use AC_LIBOBJ with file names in subdirectories.
18377         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18378         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18379         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18380         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18381         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18382         gl_LIBUNISTRING_LIBSOURCE.
18383         (Makefile.am): Augment lib_SOURCES here, conditionally.
18384         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18385
18386 2010-06-03  Bruno Haible  <bruno@clisp.org>
18387
18388         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18389         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18390         expansion does not end with a newline.
18391         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18392         unnecessary newline.
18393
18394 2010-06-03  Bruno Haible  <bruno@clisp.org>
18395
18396         Reduce dependencies.
18397         * tests/test-quotearg.h: New file, extracted from
18398         tests/test-quotearg.c.
18399         * tests/test-quotearg-simple.c: New file, extracted from
18400         tests/test-quotearg.c.
18401         * tests/test-quotearg.c: Don't include <ctype.h>.
18402         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18403         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18404         use_quote_double_quotes, use_quotearg_colon): Moved to
18405         tests/test-quotearg.h.
18406         (results_g, flag_results, custom_quotes, custom_results): Moved
18407         to tests/test-quotearg-simple.c.
18408         (main): Moved the part that does not depend on gettext to
18409         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18410         performed.
18411         * modules/quotearg-simple: New file.
18412         * modules/quotearg-simple-tests: New file.
18413         * modules/quotearg (Depends-on): Add quotearg-simple.
18414         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18415         (Files): Add tests/test-quotearg.h.
18416         Reported by Paolo Bonzini.
18417
18418 2010-06-03  Bruno Haible  <bruno@clisp.org>
18419
18420         Reduce dependencies.
18421         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18422
18423 2010-06-03  Bruno Haible  <bruno@clisp.org>
18424
18425         time: Undefine more broken macros.
18426         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18427         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18428         Reported by Eric Blake.
18429
18430 2010-06-03  Bruno Haible  <bruno@clisp.org>
18431
18432         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18433         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18434         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18435         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18436         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18437         Reported by Ludovic Courtès <ludo@gnu.org>.
18438
18439 2010-06-02  Eric Blake  <eblake@redhat.com>
18440
18441         time: work with mingw + pthreads-win32 library
18442         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18443         if timespec is defined only in pthread.h.
18444         * modules/time (Makefile.am): Substitute it.
18445         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18446         <pthread.h>, when needed.
18447         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18448         from the library.
18449
18450 2010-05-31  Bruno Haible  <bruno@clisp.org>
18451
18452         Avoid expanding two macros in the wrong order.
18453         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18454         gl_LIBUNISTRING if it is defined.
18455         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18456         autoconf >= 2.64.
18457         Reported by Ludovic Courtès <ludo@gnu.org>.
18458
18459 2010-05-27  Jim Meyering  <meyering@redhat.com>
18460
18461         maint.mk: also prohibit "#undef" of always-defined symbols
18462         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18463         Allow more than one space before the symbol name.
18464         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18465         the regexp uses alternation.
18466
18467 2010-05-26  Eric Blake  <eblake@redhat.com>
18468
18469         maint.mk: avoid echo -e
18470         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18471         Convert all uses of echo -* to printf.
18472         Reported by Matthias Bolte.
18473
18474 2010-05-25  Bruno Haible  <bruno@clisp.org>
18475
18476         Update to GNU gettext 0.18, part 2.
18477         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18478         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18479
18480 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18481
18482         Add missing include in test-pwrite.c.
18483         * tests/test-pwrite.c: Include string.h, for strcmp.
18484
18485 2010-05-24  Bruno Haible  <bruno@clisp.org>
18486
18487         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18488
18489 2010-05-24  Bruno Haible  <bruno@clisp.org>
18490
18491         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18492         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18493         iconveh_error argument.
18494         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18495         U_STRCONV_TO_LOCALE.
18496         * lib/unistr/u16-strcoll.c: Likewise.
18497         * lib/unistr/u32-strcoll.c: Likewise.
18498         * modules/unistr/u8-strcoll (Depends-on): Add
18499         uniconv/u8-strconv-to-enc, localcharset. Remove
18500         uniconv/u8-strconv-to-locale.
18501         (configure.ac): Bump version number.
18502         * modules/unistr/u16-strcoll (Depends-on): Add
18503         uniconv/u16-strconv-to-enc, localcharset. Remove
18504         uniconv/u16-strconv-to-locale.
18505         (configure.ac): Bump version number.
18506         * modules/unistr/u32-strcoll (Depends-on): Add
18507         uniconv/u32-strconv-to-enc, localcharset. Remove
18508         uniconv/u32-strconv-to-locale.
18509         (configure.ac): Bump version number.
18510
18511 2010-05-24  Bruno Haible  <bruno@clisp.org>
18512
18513         Avoid a test failure on NetBSD 5.0.
18514         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18515         an iconv() bug.
18516
18517 2010-05-24  Bruno Haible  <bruno@clisp.org>
18518
18519         Adjust #include directive style.
18520         * modules/regex (Includes): Recommend to write <regex.h>.
18521
18522 2010-05-24  Bruno Haible  <bruno@clisp.org>
18523
18524         regex: Don't require alloca.
18525         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18526         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18527         only inside if (0).
18528
18529 2010-05-23  Jim Meyering  <meyering@redhat.com>
18530
18531         test-renameat.c: include <sys/stat.h>
18532         * tests/test-renameat.c: Include <sys/stat.h>; required for
18533         definition of S_IS* macros.
18534
18535 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18536
18537         Update maintainer documentation for 'relocatable-prog' module.
18538         * doc/relocatable-maint.texi: Update.
18539         Comments by Bruno Haible.
18540
18541 2010-05-23  Bruno Haible  <bruno@clisp.org>
18542
18543         git-merge-changelog: Enable --split-merged-entry by default.
18544         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18545         (usage): Don't mention this option any more.
18546         Reported by Ralf Wildenhues.
18547
18548 2010-05-23  Jim Meyering  <meyering@redhat.com>
18549
18550         test-pwrite: do not leave behind a test file named "out"
18551         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18552         The trivial-looking use of init.sh is really necessary.
18553         It ensures that the temporary file, "out", is created in
18554         a temporary directory, and removed upon termination.
18555         * tests/test-pwrite.sh: Re-add file.
18556         * modules/pwrite-tests: Reference it.
18557
18558 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18559
18560         Fix output redirection buglet in init.sh.
18561         * tests/init.sh: Fix redirection of stderr.
18562
18563 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18564
18565         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18566
18567 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18568
18569         * modules/valgrind-tests: New file.
18570         * m4/valgrind-tests.m4: New file.
18571         * doc/valgrind-tests.texi: New file.
18572         * doc/gnulib.texi (Running self-tests under valgrind): New
18573         section.
18574
18575 2010-05-19  Bruno Haible  <bruno@clisp.org>
18576
18577         Clean up dead code in recent commit.
18578         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18579         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18580         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18581         Suggested by Paolo Bonzini.
18582
18583 2010-05-19  Bruno Haible  <bruno@clisp.org>
18584
18585         Avoid valgrind error reports from libunistring.
18586         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18587         * modules/libunistring (Files): Add it.
18588         * modules/libunistring-optional (Files): Likewise.
18589
18590 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18591             Bruno Haible  <bruno@clisp.org>
18592
18593         New module 'libunistring-optional'.
18594         * modules/libunistring-optional: New file.
18595         * m4/libunistring-base.m4: New file.
18596         * m4/libunistring-optional.m4: New file.
18597         * lib/unicase.in.h: Renamed from lib/unicase.h.
18598         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18599         * lib/unictype.in.h: Renamed from lib/unictype.h.
18600         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18601         * lib/uniname.in.h: Renamed from lib/uniname.h.
18602         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18603         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18604         * lib/unistr.in.h: Renamed from lib/unistr.h.
18605         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18606         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18607         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18608         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18609         gl_LIBUNISTRING. If the library was found, determine the installed
18610         version and set LIBUNISTRING_VERSION.
18611         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18612         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18613         handle a configuration option --with-included-libunistring.
18614         * modules/libunistring (Files): Add m4/absolute-header.m4.
18615         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18616         Add m4/libunistring-base.m4.
18617         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18618         (Makefile.am): Build unicase.h from unicase.in.h.
18619         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18620         Add m4/libunistring-base.m4.
18621         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18622         (Makefile.am): Build uniconv.h from uniconv.in.h.
18623         * modules/unictype/base (Files): Use unictype.in.h instead of
18624         unictype.h. Add m4/libunistring-base.m4.
18625         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18626         (Makefile.am): Build unictype.h from unictype.in.h.
18627         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18628         Add m4/libunistring-base.m4.
18629         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18630         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18631         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18632         Add m4/libunistring-base.m4.
18633         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18634         (Makefile.am): Build uniname.h from uniname.in.h.
18635         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18636         Add m4/libunistring-base.m4.
18637         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18638         (Makefile.am): Build uninorm.h from uninorm.in.h.
18639         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18640         unistdio.h. Add m4/libunistring-base.m4.
18641         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18642         (Makefile.am): Build unistdio.h from unistdio.in.h.
18643         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18644         Add m4/libunistring-base.m4.
18645         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18646         (Makefile.am): Build unistr.h from unistr.in.h.
18647         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18648         Add m4/libunistring-base.m4.
18649         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18650         (Makefile.am): Build unitypes.h from unitypes.in.h.
18651         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18652         Add m4/libunistring-base.m4.
18653         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18654         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18655         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18656         uniwidth.h. Add m4/libunistring-base.m4.
18657         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18658         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18659         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18660         instead of augmenting lib_SOURCES.
18661         * modules/unicase/empty-suffix-context: Likewise.
18662         * modules/unicase/locale-language: Likewise.
18663         * modules/unicase/tolower: Likewise.
18664         * modules/unicase/totitle: Likewise.
18665         * modules/unicase/toupper: Likewise.
18666         * modules/unicase/u8-casecmp: Likewise.
18667         * modules/unicase/u8-casecoll: Likewise.
18668         * modules/unicase/u8-casefold: Likewise.
18669         * modules/unicase/u8-casexfrm: Likewise.
18670         * modules/unicase/u8-ct-casefold: Likewise.
18671         * modules/unicase/u8-ct-tolower: Likewise.
18672         * modules/unicase/u8-ct-totitle: Likewise.
18673         * modules/unicase/u8-ct-toupper: Likewise.
18674         * modules/unicase/u8-is-cased: Likewise.
18675         * modules/unicase/u8-is-casefolded: Likewise.
18676         * modules/unicase/u8-is-lowercase: Likewise.
18677         * modules/unicase/u8-is-titlecase: Likewise.
18678         * modules/unicase/u8-is-uppercase: Likewise.
18679         * modules/unicase/u8-prefix-context: Likewise.
18680         * modules/unicase/u8-suffix-context: Likewise.
18681         * modules/unicase/u8-tolower: Likewise.
18682         * modules/unicase/u8-totitle: Likewise.
18683         * modules/unicase/u8-toupper: Likewise.
18684         * modules/unicase/u16-casecmp: Likewise.
18685         * modules/unicase/u16-casecoll: Likewise.
18686         * modules/unicase/u16-casefold: Likewise.
18687         * modules/unicase/u16-casexfrm: Likewise.
18688         * modules/unicase/u16-ct-casefold: Likewise.
18689         * modules/unicase/u16-ct-tolower: Likewise.
18690         * modules/unicase/u16-ct-totitle: Likewise.
18691         * modules/unicase/u16-ct-toupper: Likewise.
18692         * modules/unicase/u16-is-cased: Likewise.
18693         * modules/unicase/u16-is-casefolded: Likewise.
18694         * modules/unicase/u16-is-lowercase: Likewise.
18695         * modules/unicase/u16-is-titlecase: Likewise.
18696         * modules/unicase/u16-is-uppercase: Likewise.
18697         * modules/unicase/u16-prefix-context: Likewise.
18698         * modules/unicase/u16-suffix-context: Likewise.
18699         * modules/unicase/u16-tolower: Likewise.
18700         * modules/unicase/u16-totitle: Likewise.
18701         * modules/unicase/u16-toupper: Likewise.
18702         * modules/unicase/u32-casecmp: Likewise.
18703         * modules/unicase/u32-casecoll: Likewise.
18704         * modules/unicase/u32-casefold: Likewise.
18705         * modules/unicase/u32-casexfrm: Likewise.
18706         * modules/unicase/u32-ct-casefold: Likewise.
18707         * modules/unicase/u32-ct-tolower: Likewise.
18708         * modules/unicase/u32-ct-totitle: Likewise.
18709         * modules/unicase/u32-ct-toupper: Likewise.
18710         * modules/unicase/u32-is-cased: Likewise.
18711         * modules/unicase/u32-is-casefolded: Likewise.
18712         * modules/unicase/u32-is-lowercase: Likewise.
18713         * modules/unicase/u32-is-titlecase: Likewise.
18714         * modules/unicase/u32-is-uppercase: Likewise.
18715         * modules/unicase/u32-prefix-context: Likewise.
18716         * modules/unicase/u32-suffix-context: Likewise.
18717         * modules/unicase/u32-tolower: Likewise.
18718         * modules/unicase/u32-totitle: Likewise.
18719         * modules/unicase/u32-toupper: Likewise.
18720         * modules/unicase/ulc-casecmp: Likewise.
18721         * modules/unicase/ulc-casecoll: Likewise.
18722         * modules/unicase/ulc-casexfrm: Likewise.
18723         * modules/uniconv/u8-conv-from-enc: Likewise.
18724         * modules/uniconv/u8-conv-to-enc: Likewise.
18725         * modules/uniconv/u8-strconv-from-enc: Likewise.
18726         * modules/uniconv/u8-strconv-from-locale: Likewise.
18727         * modules/uniconv/u8-strconv-to-enc: Likewise.
18728         * modules/uniconv/u8-strconv-to-locale: Likewise.
18729         * modules/uniconv/u16-conv-from-enc: Likewise.
18730         * modules/uniconv/u16-conv-to-enc: Likewise.
18731         * modules/uniconv/u16-strconv-from-enc: Likewise.
18732         * modules/uniconv/u16-strconv-from-locale: Likewise.
18733         * modules/uniconv/u16-strconv-to-enc: Likewise.
18734         * modules/uniconv/u16-strconv-to-locale: Likewise.
18735         * modules/uniconv/u32-conv-from-enc: Likewise.
18736         * modules/uniconv/u32-conv-to-enc: Likewise.
18737         * modules/uniconv/u32-strconv-from-enc: Likewise.
18738         * modules/uniconv/u32-strconv-from-locale: Likewise.
18739         * modules/uniconv/u32-strconv-to-enc: Likewise.
18740         * modules/uniconv/u32-strconv-to-locale: Likewise.
18741         * modules/unictype/bidicategory-byname: Likewise.
18742         * modules/unictype/bidicategory-name: Likewise.
18743         * modules/unictype/bidicategory-of: Likewise.
18744         * modules/unictype/bidicategory-test: Likewise.
18745         * modules/unictype/block-list: Likewise.
18746         * modules/unictype/block-test: Likewise.
18747         * modules/unictype/category-C: Likewise.
18748         * modules/unictype/category-Cc: Likewise.
18749         * modules/unictype/category-Cf: Likewise.
18750         * modules/unictype/category-Cn: Likewise.
18751         * modules/unictype/category-Co: Likewise.
18752         * modules/unictype/category-Cs: Likewise.
18753         * modules/unictype/category-L: Likewise.
18754         * modules/unictype/category-Ll: Likewise.
18755         * modules/unictype/category-Lm: Likewise.
18756         * modules/unictype/category-Lo: Likewise.
18757         * modules/unictype/category-Lt: Likewise.
18758         * modules/unictype/category-Lu: Likewise.
18759         * modules/unictype/category-M: Likewise.
18760         * modules/unictype/category-Mc: Likewise.
18761         * modules/unictype/category-Me: Likewise.
18762         * modules/unictype/category-Mn: Likewise.
18763         * modules/unictype/category-N: Likewise.
18764         * modules/unictype/category-Nd: Likewise.
18765         * modules/unictype/category-Nl: Likewise.
18766         * modules/unictype/category-No: Likewise.
18767         * modules/unictype/category-P: Likewise.
18768         * modules/unictype/category-Pc: Likewise.
18769         * modules/unictype/category-Pd: Likewise.
18770         * modules/unictype/category-Pe: Likewise.
18771         * modules/unictype/category-Pf: Likewise.
18772         * modules/unictype/category-Pi: Likewise.
18773         * modules/unictype/category-Po: Likewise.
18774         * modules/unictype/category-Ps: Likewise.
18775         * modules/unictype/category-S: Likewise.
18776         * modules/unictype/category-Sc: Likewise.
18777         * modules/unictype/category-Sk: Likewise.
18778         * modules/unictype/category-Sm: Likewise.
18779         * modules/unictype/category-So: Likewise.
18780         * modules/unictype/category-Z: Likewise.
18781         * modules/unictype/category-Zl: Likewise.
18782         * modules/unictype/category-Zp: Likewise.
18783         * modules/unictype/category-Zs: Likewise.
18784         * modules/unictype/category-and: Likewise.
18785         * modules/unictype/category-and-not: Likewise.
18786         * modules/unictype/category-byname: Likewise.
18787         * modules/unictype/category-name: Likewise.
18788         * modules/unictype/category-none: Likewise.
18789         * modules/unictype/category-of: Likewise.
18790         * modules/unictype/category-or: Likewise.
18791         * modules/unictype/category-test: Likewise.
18792         * modules/unictype/combining-class: Likewise.
18793         * modules/unictype/ctype-alnum: Likewise.
18794         * modules/unictype/ctype-alpha: Likewise.
18795         * modules/unictype/ctype-blank: Likewise.
18796         * modules/unictype/ctype-cntrl: Likewise.
18797         * modules/unictype/ctype-digit: Likewise.
18798         * modules/unictype/ctype-graph: Likewise.
18799         * modules/unictype/ctype-lower: Likewise.
18800         * modules/unictype/ctype-print: Likewise.
18801         * modules/unictype/ctype-punct: Likewise.
18802         * modules/unictype/ctype-space: Likewise.
18803         * modules/unictype/ctype-upper: Likewise.
18804         * modules/unictype/ctype-xdigit: Likewise.
18805         * modules/unictype/decimal-digit: Likewise.
18806         * modules/unictype/digit: Likewise.
18807         * modules/unictype/mirror: Likewise.
18808         * modules/unictype/numeric: Likewise.
18809         * modules/unictype/property-alphabetic: Likewise.
18810         * modules/unictype/property-ascii-hex-digit: Likewise.
18811         * modules/unictype/property-bidi-arabic-digit: Likewise.
18812         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18813         * modules/unictype/property-bidi-block-separator: Likewise.
18814         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18815         * modules/unictype/property-bidi-common-separator: Likewise.
18816         * modules/unictype/property-bidi-control: Likewise.
18817         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18818         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18819         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18820         * modules/unictype/property-bidi-european-digit: Likewise.
18821         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18822         * modules/unictype/property-bidi-left-to-right: Likewise.
18823         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18824         * modules/unictype/property-bidi-other-neutral: Likewise.
18825         * modules/unictype/property-bidi-pdf: Likewise.
18826         * modules/unictype/property-bidi-segment-separator: Likewise.
18827         * modules/unictype/property-bidi-whitespace: Likewise.
18828         * modules/unictype/property-byname: Likewise.
18829         * modules/unictype/property-combining: Likewise.
18830         * modules/unictype/property-composite: Likewise.
18831         * modules/unictype/property-currency-symbol: Likewise.
18832         * modules/unictype/property-dash: Likewise.
18833         * modules/unictype/property-decimal-digit: Likewise.
18834         * modules/unictype/property-default-ignorable-code-point: Likewise.
18835         * modules/unictype/property-deprecated: Likewise.
18836         * modules/unictype/property-diacritic: Likewise.
18837         * modules/unictype/property-extender: Likewise.
18838         * modules/unictype/property-format-control: Likewise.
18839         * modules/unictype/property-grapheme-base: Likewise.
18840         * modules/unictype/property-grapheme-extend: Likewise.
18841         * modules/unictype/property-grapheme-link: Likewise.
18842         * modules/unictype/property-hex-digit: Likewise.
18843         * modules/unictype/property-hyphen: Likewise.
18844         * modules/unictype/property-id-continue: Likewise.
18845         * modules/unictype/property-id-start: Likewise.
18846         * modules/unictype/property-ideographic: Likewise.
18847         * modules/unictype/property-ids-binary-operator: Likewise.
18848         * modules/unictype/property-ids-trinary-operator: Likewise.
18849         * modules/unictype/property-ignorable-control: Likewise.
18850         * modules/unictype/property-iso-control: Likewise.
18851         * modules/unictype/property-join-control: Likewise.
18852         * modules/unictype/property-left-of-pair: Likewise.
18853         * modules/unictype/property-line-separator: Likewise.
18854         * modules/unictype/property-logical-order-exception: Likewise.
18855         * modules/unictype/property-lowercase: Likewise.
18856         * modules/unictype/property-math: Likewise.
18857         * modules/unictype/property-non-break: Likewise.
18858         * modules/unictype/property-not-a-character: Likewise.
18859         * modules/unictype/property-numeric: Likewise.
18860         * modules/unictype/property-other-alphabetic: Likewise.
18861         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18862         * modules/unictype/property-other-grapheme-extend: Likewise.
18863         * modules/unictype/property-other-id-continue: Likewise.
18864         * modules/unictype/property-other-id-start: Likewise.
18865         * modules/unictype/property-other-lowercase: Likewise.
18866         * modules/unictype/property-other-math: Likewise.
18867         * modules/unictype/property-other-uppercase: Likewise.
18868         * modules/unictype/property-paired-punctuation: Likewise.
18869         * modules/unictype/property-paragraph-separator: Likewise.
18870         * modules/unictype/property-pattern-syntax: Likewise.
18871         * modules/unictype/property-pattern-white-space: Likewise.
18872         * modules/unictype/property-private-use: Likewise.
18873         * modules/unictype/property-punctuation: Likewise.
18874         * modules/unictype/property-quotation-mark: Likewise.
18875         * modules/unictype/property-radical: Likewise.
18876         * modules/unictype/property-sentence-terminal: Likewise.
18877         * modules/unictype/property-soft-dotted: Likewise.
18878         * modules/unictype/property-space: Likewise.
18879         * modules/unictype/property-terminal-punctuation: Likewise.
18880         * modules/unictype/property-test: Likewise.
18881         * modules/unictype/property-titlecase: Likewise.
18882         * modules/unictype/property-unassigned-code-value: Likewise.
18883         * modules/unictype/property-unified-ideograph: Likewise.
18884         * modules/unictype/property-uppercase: Likewise.
18885         * modules/unictype/property-variation-selector: Likewise.
18886         * modules/unictype/property-white-space: Likewise.
18887         * modules/unictype/property-xid-continue: Likewise.
18888         * modules/unictype/property-xid-start: Likewise.
18889         * modules/unictype/property-zero-width: Likewise.
18890         * modules/unictype/scripts: Likewise.
18891         * modules/unictype/syntax-c-ident: Likewise.
18892         * modules/unictype/syntax-c-whitespace: Likewise.
18893         * modules/unictype/syntax-java-ident: Likewise.
18894         * modules/unictype/syntax-java-whitespace: Likewise.
18895         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18896         * modules/unilbrk/u8-width-linebreaks: Likewise.
18897         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18898         * modules/unilbrk/u16-width-linebreaks: Likewise.
18899         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18900         * modules/unilbrk/u32-width-linebreaks: Likewise.
18901         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18902         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18903         * modules/uniname/uniname: Likewise.
18904         * modules/uninorm/canonical-decomposition: Likewise.
18905         * modules/uninorm/composition: Likewise.
18906         * modules/uninorm/decomposing-form: Likewise.
18907         * modules/uninorm/decomposition: Likewise.
18908         * modules/uninorm/filter: Likewise.
18909         * modules/uninorm/nfc: Likewise.
18910         * modules/uninorm/nfd: Likewise.
18911         * modules/uninorm/nfkc: Likewise.
18912         * modules/uninorm/nfkd: Likewise.
18913         * modules/uninorm/u8-normalize: Likewise.
18914         * modules/uninorm/u8-normcmp: Likewise.
18915         * modules/uninorm/u8-normcoll: Likewise.
18916         * modules/uninorm/u8-normxfrm: Likewise.
18917         * modules/uninorm/u16-normalize: Likewise.
18918         * modules/uninorm/u16-normcmp: Likewise.
18919         * modules/uninorm/u16-normcoll: Likewise.
18920         * modules/uninorm/u16-normxfrm: Likewise.
18921         * modules/uninorm/u32-normalize: Likewise.
18922         * modules/uninorm/u32-normcmp: Likewise.
18923         * modules/uninorm/u32-normcoll: Likewise.
18924         * modules/uninorm/u32-normxfrm: Likewise.
18925         * modules/unistdio/u8-asnprintf: Likewise.
18926         * modules/unistdio/u8-asprintf: Likewise.
18927         * modules/unistdio/u8-snprintf: Likewise.
18928         * modules/unistdio/u8-sprintf: Likewise.
18929         * modules/unistdio/u8-u8-asnprintf: Likewise.
18930         * modules/unistdio/u8-u8-asprintf: Likewise.
18931         * modules/unistdio/u8-u8-snprintf: Likewise.
18932         * modules/unistdio/u8-u8-sprintf: Likewise.
18933         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18934         * modules/unistdio/u8-u8-vasprintf: Likewise.
18935         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18936         * modules/unistdio/u8-u8-vsprintf: Likewise.
18937         * modules/unistdio/u8-vasnprintf: Likewise.
18938         * modules/unistdio/u8-vasprintf: Likewise.
18939         * modules/unistdio/u8-vsnprintf: Likewise.
18940         * modules/unistdio/u8-vsprintf: Likewise.
18941         * modules/unistdio/u16-asnprintf: Likewise.
18942         * modules/unistdio/u16-asprintf: Likewise.
18943         * modules/unistdio/u16-snprintf: Likewise.
18944         * modules/unistdio/u16-sprintf: Likewise.
18945         * modules/unistdio/u16-u16-asnprintf: Likewise.
18946         * modules/unistdio/u16-u16-asprintf: Likewise.
18947         * modules/unistdio/u16-u16-snprintf: Likewise.
18948         * modules/unistdio/u16-u16-sprintf: Likewise.
18949         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18950         * modules/unistdio/u16-u16-vasprintf: Likewise.
18951         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18952         * modules/unistdio/u16-u16-vsprintf: Likewise.
18953         * modules/unistdio/u16-vasnprintf: Likewise.
18954         * modules/unistdio/u16-vasprintf: Likewise.
18955         * modules/unistdio/u16-vsnprintf: Likewise.
18956         * modules/unistdio/u16-vsprintf: Likewise.
18957         * modules/unistdio/u32-asnprintf: Likewise.
18958         * modules/unistdio/u32-asprintf: Likewise.
18959         * modules/unistdio/u32-snprintf: Likewise.
18960         * modules/unistdio/u32-sprintf: Likewise.
18961         * modules/unistdio/u32-u32-asnprintf: Likewise.
18962         * modules/unistdio/u32-u32-asprintf: Likewise.
18963         * modules/unistdio/u32-u32-snprintf: Likewise.
18964         * modules/unistdio/u32-u32-sprintf: Likewise.
18965         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18966         * modules/unistdio/u32-u32-vasprintf: Likewise.
18967         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18968         * modules/unistdio/u32-u32-vsprintf: Likewise.
18969         * modules/unistdio/u32-vasnprintf: Likewise.
18970         * modules/unistdio/u32-vasprintf: Likewise.
18971         * modules/unistdio/u32-vsnprintf: Likewise.
18972         * modules/unistdio/u32-vsprintf: Likewise.
18973         * modules/unistdio/ulc-asnprintf: Likewise.
18974         * modules/unistdio/ulc-asprintf: Likewise.
18975         * modules/unistdio/ulc-fprintf: Likewise.
18976         * modules/unistdio/ulc-snprintf: Likewise.
18977         * modules/unistdio/ulc-sprintf: Likewise.
18978         * modules/unistdio/ulc-vasnprintf: Likewise.
18979         * modules/unistdio/ulc-vasprintf: Likewise.
18980         * modules/unistdio/ulc-vfprintf: Likewise.
18981         * modules/unistdio/ulc-vsnprintf: Likewise.
18982         * modules/unistdio/ulc-vsprintf: Likewise.
18983         * modules/unistr/u8-check: Likewise.
18984         * modules/unistr/u8-chr: Likewise.
18985         * modules/unistr/u8-cmp: Likewise.
18986         * modules/unistr/u8-cmp2: Likewise.
18987         * modules/unistr/u8-cpy: Likewise.
18988         * modules/unistr/u8-cpy-alloc: Likewise.
18989         * modules/unistr/u8-endswith: Likewise.
18990         * modules/unistr/u8-mblen: Likewise.
18991         * modules/unistr/u8-mbsnlen: Likewise.
18992         * modules/unistr/u8-mbtouc: Likewise.
18993         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18994         * modules/unistr/u8-mbtoucr: Likewise.
18995         * modules/unistr/u8-move: Likewise.
18996         * modules/unistr/u8-next: Likewise.
18997         * modules/unistr/u8-prev: Likewise.
18998         * modules/unistr/u8-set: Likewise.
18999         * modules/unistr/u8-startswith: Likewise.
19000         * modules/unistr/u8-stpcpy: Likewise.
19001         * modules/unistr/u8-stpncpy: Likewise.
19002         * modules/unistr/u8-strcat: Likewise.
19003         * modules/unistr/u8-strchr: Likewise.
19004         * modules/unistr/u8-strcmp: Likewise.
19005         * modules/unistr/u8-strcoll: Likewise.
19006         * modules/unistr/u8-strcpy: Likewise.
19007         * modules/unistr/u8-strcspn: Likewise.
19008         * modules/unistr/u8-strdup: Likewise.
19009         * modules/unistr/u8-strlen: Likewise.
19010         * modules/unistr/u8-strmblen: Likewise.
19011         * modules/unistr/u8-strmbtouc: Likewise.
19012         * modules/unistr/u8-strncat: Likewise.
19013         * modules/unistr/u8-strncmp: Likewise.
19014         * modules/unistr/u8-strncpy: Likewise.
19015         * modules/unistr/u8-strnlen: Likewise.
19016         * modules/unistr/u8-strpbrk: Likewise.
19017         * modules/unistr/u8-strrchr: Likewise.
19018         * modules/unistr/u8-strspn: Likewise.
19019         * modules/unistr/u8-strstr: Likewise.
19020         * modules/unistr/u8-strtok: Likewise.
19021         * modules/unistr/u8-to-u16: Likewise.
19022         * modules/unistr/u8-to-u32: Likewise.
19023         * modules/unistr/u8-uctomb: Likewise.
19024         * modules/unistr/u16-check: Likewise.
19025         * modules/unistr/u16-chr: Likewise.
19026         * modules/unistr/u16-cmp: Likewise.
19027         * modules/unistr/u16-cmp2: Likewise.
19028         * modules/unistr/u16-cpy: Likewise.
19029         * modules/unistr/u16-cpy-alloc: Likewise.
19030         * modules/unistr/u16-endswith: Likewise.
19031         * modules/unistr/u16-mblen: Likewise.
19032         * modules/unistr/u16-mbsnlen: Likewise.
19033         * modules/unistr/u16-mbtouc: Likewise.
19034         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19035         * modules/unistr/u16-mbtoucr: Likewise.
19036         * modules/unistr/u16-move: Likewise.
19037         * modules/unistr/u16-next: Likewise.
19038         * modules/unistr/u16-prev: Likewise.
19039         * modules/unistr/u16-set: Likewise.
19040         * modules/unistr/u16-startswith: Likewise.
19041         * modules/unistr/u16-stpcpy: Likewise.
19042         * modules/unistr/u16-stpncpy: Likewise.
19043         * modules/unistr/u16-strcat: Likewise.
19044         * modules/unistr/u16-strchr: Likewise.
19045         * modules/unistr/u16-strcmp: Likewise.
19046         * modules/unistr/u16-strcoll: Likewise.
19047         * modules/unistr/u16-strcpy: Likewise.
19048         * modules/unistr/u16-strcspn: Likewise.
19049         * modules/unistr/u16-strdup: Likewise.
19050         * modules/unistr/u16-strlen: Likewise.
19051         * modules/unistr/u16-strmblen: Likewise.
19052         * modules/unistr/u16-strmbtouc: Likewise.
19053         * modules/unistr/u16-strncat: Likewise.
19054         * modules/unistr/u16-strncmp: Likewise.
19055         * modules/unistr/u16-strncpy: Likewise.
19056         * modules/unistr/u16-strnlen: Likewise.
19057         * modules/unistr/u16-strpbrk: Likewise.
19058         * modules/unistr/u16-strrchr: Likewise.
19059         * modules/unistr/u16-strspn: Likewise.
19060         * modules/unistr/u16-strstr: Likewise.
19061         * modules/unistr/u16-strtok: Likewise.
19062         * modules/unistr/u16-to-u32: Likewise.
19063         * modules/unistr/u16-to-u8: Likewise.
19064         * modules/unistr/u16-uctomb: Likewise.
19065         * modules/unistr/u32-check: Likewise.
19066         * modules/unistr/u32-chr: Likewise.
19067         * modules/unistr/u32-cmp: Likewise.
19068         * modules/unistr/u32-cmp2: Likewise.
19069         * modules/unistr/u32-cpy: Likewise.
19070         * modules/unistr/u32-cpy-alloc: Likewise.
19071         * modules/unistr/u32-endswith: Likewise.
19072         * modules/unistr/u32-mblen: Likewise.
19073         * modules/unistr/u32-mbsnlen: Likewise.
19074         * modules/unistr/u32-mbtouc: Likewise.
19075         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19076         * modules/unistr/u32-mbtoucr: Likewise.
19077         * modules/unistr/u32-move: Likewise.
19078         * modules/unistr/u32-next: Likewise.
19079         * modules/unistr/u32-prev: Likewise.
19080         * modules/unistr/u32-set: Likewise.
19081         * modules/unistr/u32-startswith: Likewise.
19082         * modules/unistr/u32-stpcpy: Likewise.
19083         * modules/unistr/u32-stpncpy: Likewise.
19084         * modules/unistr/u32-strcat: Likewise.
19085         * modules/unistr/u32-strchr: Likewise.
19086         * modules/unistr/u32-strcmp: Likewise.
19087         * modules/unistr/u32-strcoll: Likewise.
19088         * modules/unistr/u32-strcpy: Likewise.
19089         * modules/unistr/u32-strcspn: Likewise.
19090         * modules/unistr/u32-strdup: Likewise.
19091         * modules/unistr/u32-strlen: Likewise.
19092         * modules/unistr/u32-strmblen: Likewise.
19093         * modules/unistr/u32-strmbtouc: Likewise.
19094         * modules/unistr/u32-strncat: Likewise.
19095         * modules/unistr/u32-strncmp: Likewise.
19096         * modules/unistr/u32-strncpy: Likewise.
19097         * modules/unistr/u32-strnlen: Likewise.
19098         * modules/unistr/u32-strpbrk: Likewise.
19099         * modules/unistr/u32-strrchr: Likewise.
19100         * modules/unistr/u32-strspn: Likewise.
19101         * modules/unistr/u32-strstr: Likewise.
19102         * modules/unistr/u32-strtok: Likewise.
19103         * modules/unistr/u32-to-u16: Likewise.
19104         * modules/unistr/u32-to-u8: Likewise.
19105         * modules/unistr/u32-uctomb: Likewise.
19106         * modules/uniwbrk/u8-wordbreaks: Likewise.
19107         * modules/uniwbrk/u16-wordbreaks: Likewise.
19108         * modules/uniwbrk/u32-wordbreaks: Likewise.
19109         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19110         * modules/uniwbrk/wordbreak-property: Likewise.
19111         * modules/uniwidth/u8-strwidth: Likewise.
19112         * modules/uniwidth/u8-width: Likewise.
19113         * modules/uniwidth/u16-strwidth: Likewise.
19114         * modules/uniwidth/u16-width: Likewise.
19115         * modules/uniwidth/u32-strwidth: Likewise.
19116         * modules/uniwidth/u32-width: Likewise.
19117         * modules/uniwidth/width: Likewise.
19118         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19119         with $(LIBUNISTRING).
19120         * modules/unicase/ignorable-tests: Likewise.
19121         * modules/unicase/locale-language-tests: Likewise.
19122         * modules/unicase/tolower-tests: Likewise.
19123         * modules/unicase/totitle-tests: Likewise.
19124         * modules/unicase/toupper-tests: Likewise.
19125         * modules/unicase/u8-casecmp-tests: Likewise.
19126         * modules/unicase/u8-casecoll-tests: Likewise.
19127         * modules/unicase/u8-casefold-tests: Likewise.
19128         * modules/unicase/u8-is-cased-tests: Likewise.
19129         * modules/unicase/u8-is-casefolded-tests: Likewise.
19130         * modules/unicase/u8-is-lowercase-tests: Likewise.
19131         * modules/unicase/u8-is-titlecase-tests: Likewise.
19132         * modules/unicase/u8-is-uppercase-tests: Likewise.
19133         * modules/unicase/u8-tolower-tests: Likewise.
19134         * modules/unicase/u8-totitle-tests: Likewise.
19135         * modules/unicase/u8-toupper-tests: Likewise.
19136         * modules/unicase/u16-casecmp-tests: Likewise.
19137         * modules/unicase/u16-casecoll-tests: Likewise.
19138         * modules/unicase/u16-casefold-tests: Likewise.
19139         * modules/unicase/u16-is-cased-tests: Likewise.
19140         * modules/unicase/u16-is-casefolded-tests: Likewise.
19141         * modules/unicase/u16-is-lowercase-tests: Likewise.
19142         * modules/unicase/u16-is-titlecase-tests: Likewise.
19143         * modules/unicase/u16-is-uppercase-tests: Likewise.
19144         * modules/unicase/u16-tolower-tests: Likewise.
19145         * modules/unicase/u16-totitle-tests: Likewise.
19146         * modules/unicase/u16-toupper-tests: Likewise.
19147         * modules/unicase/u32-casecmp-tests: Likewise.
19148         * modules/unicase/u32-casecoll-tests: Likewise.
19149         * modules/unicase/u32-casefold-tests: Likewise.
19150         * modules/unicase/u32-is-cased-tests: Likewise.
19151         * modules/unicase/u32-is-casefolded-tests: Likewise.
19152         * modules/unicase/u32-is-lowercase-tests: Likewise.
19153         * modules/unicase/u32-is-titlecase-tests: Likewise.
19154         * modules/unicase/u32-is-uppercase-tests: Likewise.
19155         * modules/unicase/u32-tolower-tests: Likewise.
19156         * modules/unicase/u32-totitle-tests: Likewise.
19157         * modules/unicase/u32-toupper-tests: Likewise.
19158         * modules/unicase/ulc-casecmp-tests: Likewise.
19159         * modules/unicase/ulc-casecoll-tests: Likewise.
19160         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19161         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19162         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19163         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19164         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19165         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19166         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19167         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19168         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19169         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19170         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19171         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19172         * modules/unictype/bidicategory-byname-tests: Likewise.
19173         * modules/unictype/bidicategory-name-tests: Likewise.
19174         * modules/unictype/bidicategory-of-tests: Likewise.
19175         * modules/unictype/bidicategory-test-tests: Likewise.
19176         * modules/unictype/block-list-tests: Likewise.
19177         * modules/unictype/block-of-tests: Likewise.
19178         * modules/unictype/block-test-tests: Likewise.
19179         * modules/unictype/category-C-tests: Likewise.
19180         * modules/unictype/category-Cc-tests: Likewise.
19181         * modules/unictype/category-Cf-tests: Likewise.
19182         * modules/unictype/category-Cn-tests: Likewise.
19183         * modules/unictype/category-Co-tests: Likewise.
19184         * modules/unictype/category-Cs-tests: Likewise.
19185         * modules/unictype/category-L-tests: Likewise.
19186         * modules/unictype/category-Ll-tests: Likewise.
19187         * modules/unictype/category-Lm-tests: Likewise.
19188         * modules/unictype/category-Lo-tests: Likewise.
19189         * modules/unictype/category-Lt-tests: Likewise.
19190         * modules/unictype/category-Lu-tests: Likewise.
19191         * modules/unictype/category-M-tests: Likewise.
19192         * modules/unictype/category-Mc-tests: Likewise.
19193         * modules/unictype/category-Me-tests: Likewise.
19194         * modules/unictype/category-Mn-tests: Likewise.
19195         * modules/unictype/category-N-tests: Likewise.
19196         * modules/unictype/category-Nd-tests: Likewise.
19197         * modules/unictype/category-Nl-tests: Likewise.
19198         * modules/unictype/category-No-tests: Likewise.
19199         * modules/unictype/category-P-tests: Likewise.
19200         * modules/unictype/category-Pc-tests: Likewise.
19201         * modules/unictype/category-Pd-tests: Likewise.
19202         * modules/unictype/category-Pe-tests: Likewise.
19203         * modules/unictype/category-Pf-tests: Likewise.
19204         * modules/unictype/category-Pi-tests: Likewise.
19205         * modules/unictype/category-Po-tests: Likewise.
19206         * modules/unictype/category-Ps-tests: Likewise.
19207         * modules/unictype/category-S-tests: Likewise.
19208         * modules/unictype/category-Sc-tests: Likewise.
19209         * modules/unictype/category-Sk-tests: Likewise.
19210         * modules/unictype/category-Sm-tests: Likewise.
19211         * modules/unictype/category-So-tests: Likewise.
19212         * modules/unictype/category-Z-tests: Likewise.
19213         * modules/unictype/category-Zl-tests: Likewise.
19214         * modules/unictype/category-Zp-tests: Likewise.
19215         * modules/unictype/category-Zs-tests: Likewise.
19216         * modules/unictype/category-and-not-tests: Likewise.
19217         * modules/unictype/category-and-tests: Likewise.
19218         * modules/unictype/category-byname-tests: Likewise.
19219         * modules/unictype/category-name-tests: Likewise.
19220         * modules/unictype/category-none-tests: Likewise.
19221         * modules/unictype/category-of-tests: Likewise.
19222         * modules/unictype/category-or-tests: Likewise.
19223         * modules/unictype/category-test-withtable-tests: Likewise.
19224         * modules/unictype/combining-class-tests: Likewise.
19225         * modules/unictype/ctype-alnum-tests: Likewise.
19226         * modules/unictype/ctype-alpha-tests: Likewise.
19227         * modules/unictype/ctype-blank-tests: Likewise.
19228         * modules/unictype/ctype-cntrl-tests: Likewise.
19229         * modules/unictype/ctype-digit-tests: Likewise.
19230         * modules/unictype/ctype-graph-tests: Likewise.
19231         * modules/unictype/ctype-lower-tests: Likewise.
19232         * modules/unictype/ctype-print-tests: Likewise.
19233         * modules/unictype/ctype-punct-tests: Likewise.
19234         * modules/unictype/ctype-space-tests: Likewise.
19235         * modules/unictype/ctype-upper-tests: Likewise.
19236         * modules/unictype/ctype-xdigit-tests: Likewise.
19237         * modules/unictype/decimal-digit-tests: Likewise.
19238         * modules/unictype/digit-tests: Likewise.
19239         * modules/unictype/mirror-tests: Likewise.
19240         * modules/unictype/numeric-tests: Likewise.
19241         * modules/unictype/property-alphabetic-tests: Likewise.
19242         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19243         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19244         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19245         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19246         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19247         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19248         * modules/unictype/property-bidi-control-tests: Likewise.
19249         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19250         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19251         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19252         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19253         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19254         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19255         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19256         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19257         * modules/unictype/property-bidi-pdf-tests: Likewise.
19258         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19259         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19260         * modules/unictype/property-byname-tests: Likewise.
19261         * modules/unictype/property-combining-tests: Likewise.
19262         * modules/unictype/property-composite-tests: Likewise.
19263         * modules/unictype/property-currency-symbol-tests: Likewise.
19264         * modules/unictype/property-dash-tests: Likewise.
19265         * modules/unictype/property-decimal-digit-tests: Likewise.
19266         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19267         * modules/unictype/property-deprecated-tests: Likewise.
19268         * modules/unictype/property-diacritic-tests: Likewise.
19269         * modules/unictype/property-extender-tests: Likewise.
19270         * modules/unictype/property-format-control-tests: Likewise.
19271         * modules/unictype/property-grapheme-base-tests: Likewise.
19272         * modules/unictype/property-grapheme-extend-tests: Likewise.
19273         * modules/unictype/property-grapheme-link-tests: Likewise.
19274         * modules/unictype/property-hex-digit-tests: Likewise.
19275         * modules/unictype/property-hyphen-tests: Likewise.
19276         * modules/unictype/property-id-continue-tests: Likewise.
19277         * modules/unictype/property-id-start-tests: Likewise.
19278         * modules/unictype/property-ideographic-tests: Likewise.
19279         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19280         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19281         * modules/unictype/property-ignorable-control-tests: Likewise.
19282         * modules/unictype/property-iso-control-tests: Likewise.
19283         * modules/unictype/property-join-control-tests: Likewise.
19284         * modules/unictype/property-left-of-pair-tests: Likewise.
19285         * modules/unictype/property-line-separator-tests: Likewise.
19286         * modules/unictype/property-logical-order-exception-tests: Likewise.
19287         * modules/unictype/property-lowercase-tests: Likewise.
19288         * modules/unictype/property-math-tests: Likewise.
19289         * modules/unictype/property-non-break-tests: Likewise.
19290         * modules/unictype/property-not-a-character-tests: Likewise.
19291         * modules/unictype/property-numeric-tests: Likewise.
19292         * modules/unictype/property-other-alphabetic-tests: Likewise.
19293         * modules/unictype/property-other-default-ignorable-code-point-tests:
19294         Likewise.
19295         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19296         * modules/unictype/property-other-id-continue-tests: Likewise.
19297         * modules/unictype/property-other-id-start-tests: Likewise.
19298         * modules/unictype/property-other-lowercase-tests: Likewise.
19299         * modules/unictype/property-other-math-tests: Likewise.
19300         * modules/unictype/property-other-uppercase-tests: Likewise.
19301         * modules/unictype/property-paired-punctuation-tests: Likewise.
19302         * modules/unictype/property-paragraph-separator-tests: Likewise.
19303         * modules/unictype/property-pattern-syntax-tests: Likewise.
19304         * modules/unictype/property-pattern-white-space-tests: Likewise.
19305         * modules/unictype/property-private-use-tests: Likewise.
19306         * modules/unictype/property-punctuation-tests: Likewise.
19307         * modules/unictype/property-quotation-mark-tests: Likewise.
19308         * modules/unictype/property-radical-tests: Likewise.
19309         * modules/unictype/property-sentence-terminal-tests: Likewise.
19310         * modules/unictype/property-soft-dotted-tests: Likewise.
19311         * modules/unictype/property-space-tests: Likewise.
19312         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19313         * modules/unictype/property-test-tests: Likewise.
19314         * modules/unictype/property-titlecase-tests: Likewise.
19315         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19316         * modules/unictype/property-unified-ideograph-tests: Likewise.
19317         * modules/unictype/property-uppercase-tests: Likewise.
19318         * modules/unictype/property-variation-selector-tests: Likewise.
19319         * modules/unictype/property-white-space-tests: Likewise.
19320         * modules/unictype/property-xid-continue-tests: Likewise.
19321         * modules/unictype/property-xid-start-tests: Likewise.
19322         * modules/unictype/property-zero-width-tests: Likewise.
19323         * modules/unictype/scripts-tests: Likewise.
19324         * modules/unictype/syntax-c-ident-tests: Likewise.
19325         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19326         * modules/unictype/syntax-java-ident-tests: Likewise.
19327         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19328         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19329         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19330         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19331         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19332         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19333         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19334         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19335         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19336         * modules/uniname/uniname-tests: Likewise.
19337         * modules/uninorm/canonical-decomposition-tests: Likewise.
19338         * modules/uninorm/compat-decomposition-tests: Likewise.
19339         * modules/uninorm/composition-tests: Likewise.
19340         * modules/uninorm/decomposing-form-tests: Likewise.
19341         * modules/uninorm/decomposition-tests: Likewise.
19342         * modules/uninorm/filter-tests: Likewise.
19343         * modules/uninorm/nfc-tests: Likewise.
19344         * modules/uninorm/nfd-tests: Likewise.
19345         * modules/uninorm/nfkc-tests: Likewise.
19346         * modules/uninorm/nfkd-tests: Likewise.
19347         * modules/uninorm/u8-normcmp-tests: Likewise.
19348         * modules/uninorm/u8-normcoll-tests: Likewise.
19349         * modules/uninorm/u16-normcmp-tests: Likewise.
19350         * modules/uninorm/u16-normcoll-tests: Likewise.
19351         * modules/uninorm/u32-normcmp-tests: Likewise.
19352         * modules/uninorm/u32-normcoll-tests: Likewise.
19353         * modules/unistdio/u8-asnprintf-tests: Likewise.
19354         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19355         * modules/unistdio/u8-vasprintf-tests: Likewise.
19356         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19357         * modules/unistdio/u8-vsprintf-tests: Likewise.
19358         * modules/unistdio/u16-asnprintf-tests: Likewise.
19359         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19360         * modules/unistdio/u16-vasprintf-tests: Likewise.
19361         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19362         * modules/unistdio/u16-vsprintf-tests: Likewise.
19363         * modules/unistdio/u32-asnprintf-tests: Likewise.
19364         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19365         * modules/unistdio/u32-vasprintf-tests: Likewise.
19366         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19367         * modules/unistdio/u32-vsprintf-tests: Likewise.
19368         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19369         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19370         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19371         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19372         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19373         * modules/unistr/u8-check-tests: Likewise.
19374         * modules/unistr/u8-chr-tests: Likewise.
19375         * modules/unistr/u8-cmp-tests: Likewise.
19376         * modules/unistr/u8-cmp2-tests: Likewise.
19377         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19378         * modules/unistr/u8-cpy-tests: Likewise.
19379         * modules/unistr/u8-mblen-tests: Likewise.
19380         * modules/unistr/u8-mbsnlen-tests: Likewise.
19381         * modules/unistr/u8-mbtouc-tests: Likewise.
19382         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19383         * modules/unistr/u8-mbtoucr-tests: Likewise.
19384         * modules/unistr/u8-move-tests: Likewise.
19385         * modules/unistr/u8-next-tests: Likewise.
19386         * modules/unistr/u8-prev-tests: Likewise.
19387         * modules/unistr/u8-set-tests: Likewise.
19388         * modules/unistr/u8-stpcpy-tests: Likewise.
19389         * modules/unistr/u8-stpncpy-tests: Likewise.
19390         * modules/unistr/u8-strcat-tests: Likewise.
19391         * modules/unistr/u8-strcmp-tests: Likewise.
19392         * modules/unistr/u8-strcoll-tests: Likewise.
19393         * modules/unistr/u8-strcpy-tests: Likewise.
19394         * modules/unistr/u8-strdup-tests: Likewise.
19395         * modules/unistr/u8-strlen-tests: Likewise.
19396         * modules/unistr/u8-strmblen-tests: Likewise.
19397         * modules/unistr/u8-strmbtouc-tests: Likewise.
19398         * modules/unistr/u8-strncat-tests: Likewise.
19399         * modules/unistr/u8-strncmp-tests: Likewise.
19400         * modules/unistr/u8-strncpy-tests: Likewise.
19401         * modules/unistr/u8-strnlen-tests: Likewise.
19402         * modules/unistr/u8-to-u16-tests: Likewise.
19403         * modules/unistr/u8-to-u32-tests: Likewise.
19404         * modules/unistr/u8-uctomb-tests: Likewise.
19405         * modules/unistr/u16-check-tests: Likewise.
19406         * modules/unistr/u16-chr-tests: Likewise.
19407         * modules/unistr/u16-cmp-tests: Likewise.
19408         * modules/unistr/u16-cmp2-tests: Likewise.
19409         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19410         * modules/unistr/u16-cpy-tests: Likewise.
19411         * modules/unistr/u16-mblen-tests: Likewise.
19412         * modules/unistr/u16-mbsnlen-tests: Likewise.
19413         * modules/unistr/u16-mbtouc-tests: Likewise.
19414         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19415         * modules/unistr/u16-mbtoucr-tests: Likewise.
19416         * modules/unistr/u16-move-tests: Likewise.
19417         * modules/unistr/u16-next-tests: Likewise.
19418         * modules/unistr/u16-prev-tests: Likewise.
19419         * modules/unistr/u16-set-tests: Likewise.
19420         * modules/unistr/u16-stpcpy-tests: Likewise.
19421         * modules/unistr/u16-stpncpy-tests: Likewise.
19422         * modules/unistr/u16-strcat-tests: Likewise.
19423         * modules/unistr/u16-strcmp-tests: Likewise.
19424         * modules/unistr/u16-strcoll-tests: Likewise.
19425         * modules/unistr/u16-strcpy-tests: Likewise.
19426         * modules/unistr/u16-strdup-tests: Likewise.
19427         * modules/unistr/u16-strlen-tests: Likewise.
19428         * modules/unistr/u16-strmblen-tests: Likewise.
19429         * modules/unistr/u16-strmbtouc-tests: Likewise.
19430         * modules/unistr/u16-strncat-tests: Likewise.
19431         * modules/unistr/u16-strncmp-tests: Likewise.
19432         * modules/unistr/u16-strncpy-tests: Likewise.
19433         * modules/unistr/u16-strnlen-tests: Likewise.
19434         * modules/unistr/u16-to-u32-tests: Likewise.
19435         * modules/unistr/u16-to-u8-tests: Likewise.
19436         * modules/unistr/u16-uctomb-tests: Likewise.
19437         * modules/unistr/u32-check-tests: Likewise.
19438         * modules/unistr/u32-chr-tests: Likewise.
19439         * modules/unistr/u32-cmp-tests: Likewise.
19440         * modules/unistr/u32-cmp2-tests: Likewise.
19441         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19442         * modules/unistr/u32-cpy-tests: Likewise.
19443         * modules/unistr/u32-mblen-tests: Likewise.
19444         * modules/unistr/u32-mbsnlen-tests: Likewise.
19445         * modules/unistr/u32-mbtouc-tests: Likewise.
19446         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19447         * modules/unistr/u32-mbtoucr-tests: Likewise.
19448         * modules/unistr/u32-move-tests: Likewise.
19449         * modules/unistr/u32-next-tests: Likewise.
19450         * modules/unistr/u32-prev-tests: Likewise.
19451         * modules/unistr/u32-set-tests: Likewise.
19452         * modules/unistr/u32-stpcpy-tests: Likewise.
19453         * modules/unistr/u32-stpncpy-tests: Likewise.
19454         * modules/unistr/u32-strcat-tests: Likewise.
19455         * modules/unistr/u32-strcmp-tests: Likewise.
19456         * modules/unistr/u32-strcoll-tests: Likewise.
19457         * modules/unistr/u32-strcpy-tests: Likewise.
19458         * modules/unistr/u32-strdup-tests: Likewise.
19459         * modules/unistr/u32-strlen-tests: Likewise.
19460         * modules/unistr/u32-strmblen-tests: Likewise.
19461         * modules/unistr/u32-strmbtouc-tests: Likewise.
19462         * modules/unistr/u32-strncat-tests: Likewise.
19463         * modules/unistr/u32-strncmp-tests: Likewise.
19464         * modules/unistr/u32-strncpy-tests: Likewise.
19465         * modules/unistr/u32-strnlen-tests: Likewise.
19466         * modules/unistr/u32-to-u16-tests: Likewise.
19467         * modules/unistr/u32-to-u8-tests: Likewise.
19468         * modules/unistr/u32-uctomb-tests: Likewise.
19469         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19470         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19471         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19472         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19473         * modules/uniwidth/u8-strwidth-tests: Likewise.
19474         * modules/uniwidth/u8-width-tests: Likewise.
19475         * modules/uniwidth/u16-strwidth-tests: Likewise.
19476         * modules/uniwidth/u16-width-tests: Likewise.
19477         * modules/uniwidth/u32-strwidth-tests: Likewise.
19478         * modules/uniwidth/u32-width-tests: Likewise.
19479         * modules/uniwidth/width-tests: Likewise.
19480
19481 2010-05-18  Richard Jones  <rjones@redhat.com>
19482
19483         doc: users.txt: list hivex
19484         * users.txt: Add hivex.
19485
19486 2010-05-18  Richard Jones  <rjones@redhat.com>
19487
19488         doc: users.txt: list febootstrap
19489         * users.txt: Add febootstrap.
19490
19491 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19492
19493         bootstrap: fix an error when gnulib is not used as a git submodule
19494         * build-aux/bootstrap (gnulib_path): If its length is zero then
19495         assign "gnulib" to it.
19496         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19497
19498 2010-05-16  Bruno Haible  <bruno@clisp.org>
19499
19500         Avoid autoconf warnings about AM_ICONV.
19501         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19502         2.64.
19503
19504 2010-05-16  Bruno Haible  <bruno@clisp.org>
19505
19506         absolute-header: Make the macro usable in more situations.
19507         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19508         from gl_ABSOLUTE_HEADER.
19509         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19510
19511 2010-05-16  James Youngman  <jay@gnu.org>
19512
19513         doc: update users.txt
19514         * users.txt: Add CSSC.
19515
19516 2010-05-16  Jim Meyering  <meyering@redhat.com>
19517
19518         init.sh: fix an error in the previous change; add more comments
19519         * tests/init.sh: Compare exit code in loop against 9, not 2.
19520         Patch by Bruno Haible.
19521         Make the two tests more similar by adding an empty "then" clause.
19522         Add comments.
19523
19524         init.sh: avoid unnecessary shell re-exec
19525         * tests/init.sh: Improve the re-exec-required check to first test the
19526         current shell.  If it passes the test, do not search for a shell that
19527         does pass, and do not re-exec.  This test is particularly contorted to
19528         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19529         of $(...) evokes a syntax error and causes immediate shell exit with
19530         status 2.  Bruno Haible reported that the re-exec made it impossible
19531         to single-step through any init.sh-using script.
19532
19533 2010-05-16  Bruno Haible  <bruno@clisp.org>
19534
19535         Fix collision between gnulib's and libintl's printf replacements.
19536         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19537         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19538         (printf): When using GNU C, map the __printf__ function to rpl_printf
19539         via __asm__. When not using GNU C, define rpl_printf instead of
19540         __printf__.
19541         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19542         commit.
19543         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19544         commit.
19545         * m4/asm-underscore.m4: New file.
19546         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19547         * modules/stdio (Files): Add m4/asm-underscore.m4.
19548         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19549         Reported by Ben Pfaff.
19550
19551 2010-05-16  Bruno Haible  <bruno@clisp.org>
19552
19553         verify: Avoid skipping the test on openSUSE 11.0.
19554         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19555
19556 2010-05-13  Bruno Haible  <bruno@clisp.org>
19557
19558         Avoid useless warnings from G++.
19559         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19560         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19561         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19562
19563 2010-05-11  Jim Meyering  <meyering@redhat.com>
19564
19565         maint.mk: tweak preceding change
19566         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19567         regexps tighter by anchoring at EOL, and make the new group "shy"
19568         for slightly decreased overhead.
19569
19570 2010-05-11  Eric Blake  <eblake@redhat.com>
19571
19572         maint.mk: gnulib doesn't guarantee NSIG
19573         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19574
19575 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19576
19577         test-pwrite.c: Remove unused variable declaration.
19578         * tests/test-pwrite.c (main): Remove read_buf declaration.
19579
19580         Remove useless test-pwrite.sh file.
19581         * tests/test-pwrite.sh: Delete file.
19582         * modules/pwrite-tests: Remove references.
19583         Reported by Bruno Haible.
19584
19585 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19586
19587         init.sh: fix a typo
19588         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19589
19590 2010-05-10  Jim Meyering  <meyering@redhat.com>
19591
19592         maint.mk: avoid using a temporary file in the always-defined-macros check
19593         * top/maint.mk (.re-defmac): Remove rule.
19594         (gl_trap_): Remove definition.
19595         (sc_prohibit_always-defined_macros): Rewrite not to create and
19596         depend on a temporary file.  Instead, depend on GNU grep's ability
19597         to read a list of regular expressions from stdin when given "-f -".
19598
19599 2010-05-09  Bruno Haible  <bruno@clisp.org>
19600
19601         Update to GNU gettext 0.18, part 1.
19602         * m4/gettext.m4: Update to GNU gettext 0.18.
19603         * m4/intl.m4: Likewise.
19604         * m4/po.m4: Likewise.
19605         * modules/gettext (Files): Add m4/fcntl-o.m4.
19606         (configure.ac): Require gettext infrastructure from version 0.18.
19607
19608 2010-05-09  Jim Meyering  <meyering@redhat.com>
19609
19610         init.sh: enable MALLOC_PERTURB_
19611         * tests/init.sh: Enable glibc's malloc-perturbing option.
19612
19613         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19614         With my recent change in init.sh from the two-line form:
19615             -#   : ${srcdir=.}
19616             -#   . "$srcdir/init.sh"; path_prepend_ .
19617             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19618         I noticed that using the one-line form would cause this test
19619         to fail with a false-positive, or to stop working altogether,
19620         depending on whether help-version changed or all the tests did.
19621         * top/maint.mk (_hv_regex): Remove this definition.
19622         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19623         (_hv_regex_strong): Use a stronger regex to check for conformance.
19624         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19625         Give a separate diagnostic for lack of conforming use.
19626
19627         maint.mk: prohibit definition of symbols defined by gnulib
19628         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19629         definition of symbols defined by gnulib.
19630
19631 2010-05-09  Bruno Haible  <bruno@clisp.org>
19632
19633         acl: Avoid test failure on Cygwin-hosted mingw.
19634         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19635
19636 2010-05-09  Bruno Haible  <bruno@clisp.org>
19637
19638         error: Use system's fcntl function.
19639         * lib/error.c (fcntl): Undefine.
19640
19641 2010-05-09  Jim Meyering  <meyering@redhat.com>
19642
19643         verify: adjust formatting to be more consistent
19644         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19645         argument-list '('s, and after one comma.
19646
19647 2010-05-09  Bruno Haible  <bruno@clisp.org>
19648
19649         error: More reliable output on mingw.
19650         * lib/error.c: Include <windows.h>.
19651         (is_open): New function.
19652         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19653         defined.
19654
19655 2010-05-09  Bruno Haible  <bruno@clisp.org>
19656
19657         vasnprintf: Fix syntax errors in libintl build on mingw.
19658         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19659         pad_ourselves and prec_ourselves after use.
19660
19661 2010-05-08  Bruno Haible  <bruno@clisp.org>
19662
19663         * lib/config.charset: Update comments for Cygwin 1.7.
19664         * lib/localcharset.c: Likewise.
19665
19666 2010-05-07  Jim Meyering  <meyering@redhat.com>
19667
19668         init.sh: improve comments
19669         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19670         . "${srcdir=.}/init.sh"; path_prepend_ .
19671         Add a note about path_prepend_ and the alternative of using
19672         TESTS_ENVIRONMENT.
19673
19674 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19675
19676         exclude: Unescape hashed patterns in wildcard mode.
19677         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19678         to the hash list.
19679         * tests/test-exclude8.sh: New test case.
19680         * modules/exclude-tests: Add new test.
19681
19682 2010-05-05  Eric Blake  <eblake@redhat.com>
19683
19684         verify: automate tests
19685         * modules/verify-tests: New module.
19686         * tests/test-verify.sh: New file.
19687         * tests/test-verify.c: Guard each negative test with a unique id.
19688         Also avoid warning about unused left hand of comma expressions.
19689
19690 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19691
19692         Further improvements to verify.h, suggested by Eric Blake.
19693         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19694         the GL_* versions, to avoid collision with OpenGL.
19695         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19696         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19697         than testing merely whether it's defined.
19698
19699         Modify verify.h to pacify gcc -Wredundant_decls.
19700         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19701         These use the prefix "GL_" since they're likely to be useful elsewhere.
19702         We may need to break them out into a different .h file.
19703         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19704         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19705         of verify_function__.
19706
19707 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19708
19709         Tests for module pwrite.
19710         * modules/pwrite-tests: New file.
19711         * tests/test-pwrite.sh: New file.
19712         * tests/test-pwrite.c: New file.
19713
19714         New module pwrite.
19715         * lib/unistd.in.h (pwrite): New declaration.
19716         * lib/pwrite.c: New file, from glibc with modifications.
19717         * m4/pwrite.m4: New file.
19718         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19719         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19720         REPLACE_PWRITE.
19721         * modules/pwrite: New file.
19722         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19723         REPLACE_PWRITE.
19724         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19725         * doc/posix-functions/pwrite.texi: Mention the new module.
19726
19727 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19728
19729         pread: Update documentation.
19730         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19731
19732 2010-05-04  Eric Blake  <eblake@redhat.com>
19733
19734         docs: update cygwin progress
19735         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19736         this bug.
19737         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19738         Added in cygwin 1.7.2.
19739         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19740         Likewise.
19741         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19742         Likewise.
19743         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19744         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19745         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19746         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19747         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19748         Mention nproc module.
19749         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19750         bug in cygwin 1.7.5 addition.
19751         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19752         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19753         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19754         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19755         1.7.5.
19756         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19757         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19758         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19759         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19760         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19761         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19762         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19763         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19764         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19765         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19766         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19767         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19768         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19769         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19770         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19771         Likewise.
19772         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19773         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19774         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19775         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19776         Likewise.
19777         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19778         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19779         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19780         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19781         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19782         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19783         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19784         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19785         Likewise.
19786         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19787         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19788         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19789         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19790         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19791         Likewise.
19792         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19793         Likewise.
19794         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19795         Likewise.
19796         * doc/glibc-functions/xdrrec_endofrecord.texi
19797         (xdrrec_endofrecord): Likewise.
19798         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19799         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19800         Likewise.
19801         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19802         Likewise.
19803
19804 2010-05-04  Jim Meyering  <meyering@redhat.com>
19805
19806         gendocs.sh: make its "-s FILE" option more useful
19807         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19808         $PACKAGE to reflect the probably-different basename of "FILE".
19809
19810 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19811
19812         bootstrap: don't ignore download_po_files failure
19813         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19814         failure.
19815
19816 2010-05-03  Jim Meyering  <meyering@redhat.com>
19817
19818         maint.mk: allow to pass options to gendocs.sh
19819         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19820         (gendocs_options_): New overridable variable.
19821
19822         gnu-web-doc-update: don't ignore configure or build failure
19823         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19824
19825         announce-gen: backslash-escape '@'s in --help output
19826         * build-aux/announce-gen: Fix syntax errors.
19827
19828         maint.mk, announce-gen: allow project-specific announcement mail headers
19829         * top/maint.mk (translation_project_): Define default.
19830         (announcement_Cc_, announcement_mail_headers_): Likewise.
19831         (announcement): Invoke announce-gen with new --mail-headers option.
19832         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19833
19834         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19835         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19836         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19837         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19838         line in the "err2" output file when running "make check" in verbose
19839         mode (i.e., with set -x enabled).
19840
19841 2010-05-03  Bruno Haible  <bruno@clisp.org>
19842
19843         wctob: Fix for weird platforms.
19844         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19845         argument value.
19846
19847 2010-05-03  Jim Meyering  <meyering@redhat.com>
19848
19849         maint.mk: prohibit unwarranted use of <strings.h>
19850         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19851         strings.h in a file that does not also use strcasecmp, strncasecmp,
19852         ffs or ffsll.
19853
19854         maint.mk: remove obsolete comments
19855         * top/maint.mk: Remove stale, commented-out rules.
19856
19857 2010-05-02  Bruno Haible  <bruno@clisp.org>
19858
19859         wcwidth: Declare also when it's aliased.
19860         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19861         macro.
19862
19863 2010-05-02  Bruno Haible  <bruno@clisp.org>
19864
19865         Fix regression from 2010-04-25.
19866         * gnulib-tool (func_modules_transitive_closure): Check the status of
19867         all modules, not only of the tests that are of the form foo-tests where
19868         foo is a module.
19869
19870 2010-05-02  Bruno Haible  <bruno@clisp.org>
19871
19872         wctob: Work around nasty Cygwin 1.7.2 bug.
19873         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19874         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19875
19876 2010-05-01  Bruno Haible  <bruno@clisp.org>
19877
19878         fpurge: Sharper test.
19879         * tests/test-fpurge.c (main): Add one more ftell check.
19880         * modules/fpurge-tests (Depends-on): Add ftell.
19881         Suggested by Eric Blake.
19882
19883 2010-05-01  Bruno Haible  <bruno@clisp.org>
19884
19885         ftello: Another test.
19886         * tests/test-ftello3.c: New file.
19887         * modules/ftello-tests (Files): Add it.
19888         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19889         MOSTLYCLEANFILES.
19890
19891         ftell: Another test.
19892         * tests/test-ftell3.c: New file.
19893         * modules/ftell-tests (Files): Add it.
19894         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19895         MOSTLYCLEANFILES.
19896
19897 2010-05-01  Bruno Haible  <bruno@clisp.org>
19898
19899         ftell, ftello: Work around Solaris bug.
19900         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19901         * lib/ftello.c: Include stdio-impl.h.
19902         (ftello): On Solaris, when _IOWRT is set, compute the result without
19903         looking at _IOREAD.
19904         * modules/ftello (Files): Add lib/stdio-impl.h.
19905         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19906         * doc/posix-functions/ftello.texi: Likewise.
19907         Reported by Eric Blake.
19908
19909 2010-05-01  Bruno Haible  <bruno@clisp.org>
19910
19911         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19912         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19913         the _IOWRT flag is also set.
19914
19915 2010-05-01  Bruno Haible  <bruno@clisp.org>
19916
19917         Fix doc about a HP-UX stdio bug.
19918         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19919         * doc/posix-functions/ftello.texi: Likewise.
19920
19921 2010-05-01  Bruno Haible  <bruno@clisp.org>
19922
19923         lseek test: Fix failure on Solaris.
19924         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19925         output.
19926
19927 2010-04-30  Jim Meyering  <meyering@redhat.com>
19928
19929         bootstrap: don't ignore failure to generate po*/Makevars
19930         * build-aux/bootstrap (with_gettext): Don't ignore failure
19931         to create po/Makevars or runtime-po/Makevars.
19932
19933 2010-04-29  Eric Blake  <eblake@redhat.com>
19934
19935         headers: relax license to LGPLv2+
19936         * modules/fcntl-h (License): Relax license.
19937         * modules/getopt-posix (License): Likewise.
19938         * modules/locale (License): Likewise.
19939         * modules/math (License): Likewise.
19940         * modules/pty (License): Likewise.
19941         * modules/sched (License): Likewise.
19942         * modules/search (License): Likewise.
19943         * modules/spawn (License): Likewise.
19944         * modules/stdarg (License): Likewise.
19945         * modules/sysexits (License): Likewise.
19946
19947 2010-04-29  Jim Meyering  <meyering@redhat.com>
19948
19949         inttypes: relax license to LGPLv2+
19950         * modules/inttypes (License): Relax license.
19951
19952 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19953
19954         * top/maint.mk (indent): Run twice to produce idempotent results.
19955
19956 2010-04-28  Bruno Haible  <bruno@clisp.org>
19957
19958         getdate: Generate getdate.c in the source directory.
19959         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19960         MOSTLYCLEANFILES.
19961         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19962
19963 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19964
19965         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19966         is not declared as a const *; avoid warnings in that case.
19967
19968 2010-04-28  Eric Blake  <eblake@redhat.com>
19969
19970         canonicalize-lgpl: avoid compiler warning
19971         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19972         declaration' / 'extraneous semicolon' warning with some compilers.
19973         Reported by Andreas Gruenbacher.
19974
19975 2010-04-28  Jim Meyering  <meyering@redhat.com>
19976
19977         init.sh: ensure a more reliable exit status when exiting via trap
19978         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19979         Inspired by patches from Dmitry V. Levin.
19980         Also trap on signal 3 (SIGQUIT).
19981
19982 2010-04-27  Bruno Haible  <bruno@clisp.org>
19983
19984         Update doc about utimes().
19985         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19986         'utimens' module.
19987         Reported by Andreas Gruenbacher <agruen@suse.de>.
19988
19989 2010-04-27  Eric Blake  <eblake@redhat.com>
19990
19991         full-read, full-write: relax license
19992         * modules/full-read (License): Drop to LGPLv2+.
19993         * modules/full-write (License): Likewise.
19994         * modules/safe-read (License): Likewise.
19995         * modules/safe-write (License): Likewise.
19996
19997         pthread: mention library for linking
19998         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19999
20000 2010-04-27  Jim Meyering  <meyering@redhat.com>
20001
20002         maint.mk: fix a bug introduced in last change
20003         * top/maint.mk (gl_assured_headers_): Now that all names are on
20004         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20005         is not anchored to end of word, it should be adequate.
20006
20007         maint.mk: avoid side-effect in latest syntax-check
20008         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20009         to run commands via $(shell...), and hence to incur cost only when
20010         the new rule is actually run.
20011
20012         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20013         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20014         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20015         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20016         (gl_assured_headers_, az_, AZ_): Define.
20017         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20018
20019 2010-04-26  Jim Meyering  <jim@meyering.net>
20020             Bruno Haible  <bruno@clisp.org>
20021
20022         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20023         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20024         Prompted by an exchange with Gilles Espinasse.
20025
20026 2010-04-26  Jim Meyering  <meyering@redhat.com>
20027
20028         git-version-gen: aesthetic tweak
20029         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20030         so that the command remains on a single line.
20031
20032 2010-04-26  Eric Blake  <eblake@redhat.com>
20033
20034         git-version-gen: allow use on EBCDIC hosts
20035         * build-aux/git-version-gen (dirty): Use literal rather than tying
20036         ourselves to ascii.
20037         Reported by Steve Goetze.
20038
20039 2010-04-25  Bruno Haible  <bruno@clisp.org>
20040
20041         netdb: Add support for GNULIB_POSIXCHECK.
20042         * lib/netdb.in.h: Include warn-on-use.h.
20043         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20044         functions are used when GNULIB_POSIXCHECK is defined and the
20045         getaddrinfo module is not in use.
20046         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20047         freeaddrinfo, gai_strerror, getnameinfo are declared.
20048         * modules/netdb (Depends-on): Add warn-on-use.
20049         (Makefile.am): Include warn-on-use.h in netdb.h.
20050
20051 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20052
20053         build: avoid "make check" failure without .git/ directory
20054         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20055         there is no .git/ directory.
20056
20057 2010-04-25  Bruno Haible  <bruno@clisp.org>
20058
20059         ptsname: Fix misuse of ttyname_r.
20060         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20061         of errno.
20062
20063 2010-04-25  Bruno Haible  <bruno@clisp.org>
20064
20065         ttyname_r: Make it work on Solaris 10.
20066         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20067         if the system function has the POSIX declaration. Test whether the
20068         function fails if the buffer is less than 128 bytes large.
20069         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20070         system's ttyname_r function. Provide a reasonably large buffer.
20071         * modules/ttyname_r (Depends-on): Add extensions.
20072         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20073
20074 2010-04-25  Bruno Haible  <bruno@clisp.org>
20075
20076         Use the 'extensions' module for some more functions on Solaris.
20077         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20078         module.
20079         * doc/posix-functions/ctime_r.texi: Likewise.
20080         * doc/posix-functions/getgrgid_r.texi: Likewise.
20081         * doc/posix-functions/getgrnam_r.texi: Likewise.
20082         * doc/posix-functions/getpwnam_r.texi: Likewise.
20083         * doc/posix-functions/getpwuid_r.texi: Likewise.
20084         * doc/posix-functions/readdir_r.texi: Likewise.
20085         * doc/posix-functions/sigwait.texi: Likewise.
20086         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20087         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20088
20089 2010-04-25  Bruno Haible  <bruno@clisp.org>
20090
20091         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20092         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20093         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20094         * lib/ttyname_r.c: Include <limits.h>.
20095         (ttyname_r): Define using the system's ttyname_r function, if it exists
20096         and not on Solaris.
20097         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20098         set.
20099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20100         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20101         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20102         Reported by Simon Josefsson.
20103
20104 2010-04-25  Bruno Haible  <bruno@clisp.org>
20105
20106         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20107         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20108         * doc/posix-functions/ctime_r.texi: Likewise.
20109         * doc/posix-functions/getgrgid_r.texi: Likewise.
20110         * doc/posix-functions/getgrnam_r.texi: Likewise.
20111         * doc/posix-functions/getlogin_r.texi: Likewise.
20112         * doc/posix-functions/getpwnam_r.texi: Likewise.
20113         * doc/posix-functions/getpwuid_r.texi: Likewise.
20114         * doc/posix-functions/readdir_r.texi: Likewise.
20115         * doc/posix-functions/sigwait.texi: Likewise.
20116         * doc/posix-functions/ttyname_r.texi: Likewise.
20117         Reported by Simon Josefsson.
20118
20119 2010-04-25  Bruno Haible  <bruno@clisp.org>
20120
20121         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20122         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20123         also to --create-testdir.
20124         (func_acceptable): Don't consider the status of *-tests modules here.
20125         (func_modules_transitive_closure): Consider it here, before including a
20126         test module.
20127         (func_import, func_create_testdir): Set inc_all_direct_tests,
20128         inc_all_indirect_tests.
20129         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20130         --create-testdir and --create-megatestdir.
20131
20132 2010-04-25  Bruno Haible  <bruno@clisp.org>
20133
20134         gnulib-tool: Add --without-*-tests options.
20135         * gnulib-tool (func_usage): Document the --without-*-tests options.
20136         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20137         excl_unportable_tests): New variables.
20138         Fail if they are specified with --import or --update.
20139         (func_acceptable): Respect the excl_*_tests variables.
20140         (func_import): Set the excl_*_tests variables to empty.
20141
20142 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20143             Bruno Haible  <bruno@clisp.org>
20144
20145         Work around a MacOS X 10.4 bug with openpty.
20146         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20147         * tests/test-openpty.c (main): Close the master side explicitly.
20148
20149 2010-04-25  Bruno Haible  <bruno@clisp.org>
20150
20151         strnlen: Fix a C++ test error on MacOS X and Solaris.
20152         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20153         the function is not declared.
20154         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20155         Simon Josefsson.
20156
20157 2010-04-24  Bruno Haible  <bruno@clisp.org>
20158
20159         Avoid a gcc warning.
20160         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20161         of correct type for %08lx directive.
20162         Reported by Eric Blake.
20163
20164 2010-04-24  Bruno Haible  <bruno@clisp.org>
20165
20166         vasnprintf: Correct errno value in case of out-of-memory.
20167         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20168         or sprintf. Use the errno value from SNPRINTF or sprintf.
20169         Reported by Ian Beckwith <ianb@erislabs.net>.
20170
20171 2010-04-24  Bruno Haible  <bruno@clisp.org>
20172
20173         ansi-c++-opt: Find correct compiler when cross-compiling.
20174         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20175         AC_CHECK_PROGS.
20176         Reported by Simon Josefsson.
20177
20178 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20179
20180         vc-list-files: Add support for subversion
20181         * build-aux/vc-list-files: Use "svn list" to generate the list of
20182         files controlled by subversion.
20183
20184 2010-04-23  Jim Meyering  <meyering@redhat.com>
20185
20186         vc-list-files tests: convert to use init.sh
20187         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20188         path_prepend_.
20189         Use Exit, not exit.
20190         Use skip_ rather than open coding it.
20191         Remove trap set-up and compare definitions.
20192         * tests/test-vc-list-files-git.sh: Likewise.
20193         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20194
20195 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20196
20197         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20198         backup files.
20199
20200 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20201
20202         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20203
20204 2010-04-20  Eric Blake  <eblake@redhat.com>
20205
20206         tests: be robust to ignored SIGPIPE
20207         * tests/test-select-in.sh: Consume all output.
20208         * tests/test-lseek.sh: Check correct exit status, while avoiding
20209         EPIPE.
20210
20211 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20212             Bruno Haible  <bruno@clisp.org>
20213
20214         visibility: Don't use -fvisibility if it leads to a warning.
20215         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20216         yes, don't pretend that visibility works if it leads to a warning.
20217         Reported by Mike Gran <spk121@yahoo.com>.
20218
20219 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20220
20221         * build-aux/bootstrap: Use "git -h" for testing for supported options
20222         instead of "git --help".  The short-form option only shows a summary,
20223         and doesn't layout the full man page.  Grep for the full option name
20224         in the summary, too.
20225
20226 2010-04-19  Bruno Haible  <bruno@clisp.org>
20227
20228         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20229         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20230         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20231         mention of RELOCATABLE_STRIP.
20232         Reported by Sylvain Beucler <beuc@beuc.net>.
20233
20234 2010-04-19  Bruno Haible  <bruno@clisp.org>
20235
20236         * lib/diffseq.h: Fix typo in comment.
20237         Reported by Eric Blake.
20238
20239 2010-04-19  Bruno Haible  <bruno@clisp.org>
20240
20241         ioctl: Move autoconf macro to a .m4 file.
20242         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20243         * modules/ioctl (Files): Add it.
20244         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20245         Reported by Ian Beckwith <ianb@erislabs.net>.
20246
20247 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20248             Bruno Haible  <bruno@clisp.org>
20249
20250         diffseq: Accommodate use-case with abstract arrays.
20251         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20252         is not defined.
20253         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20254         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20255
20256 2010-04-18  Bruno Haible  <bruno@clisp.org>
20257
20258         * doc/posix-headers/stdbool.texi: More precise wording.
20259
20260 2010-04-17  Jim Meyering  <meyering@redhat.com>
20261
20262         maint.mk: use gnu-style indentation in an embedded perl script
20263         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20264         Rename variable: s/two/last_two_bytes/
20265
20266 2010-04-16  Eric Blake  <eblake@redhat.com>
20267
20268         test-stdbool: skip test that fails with Solaris CC
20269         * tests/test-stdbool.c (f): Skip test that causes compilation
20270         error under buggy C++ compiler.
20271         * lib/stdbool.in.h: Document the limitation.
20272         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20273
20274         setenv: allow compilation with C++
20275         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20276         register keyword.
20277
20278         stdint: allow test to pass with C++
20279         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20280
20281         getopt: allow compilation with C++
20282         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20283         struct.
20284         * lib/getopt.c (_getopt_internal_r): Use correct type.
20285         Reported by Dagobert Michelson, via Joel E. Denny.
20286
20287 2010-04-16  Bruno Haible  <bruno@clisp.org>
20288
20289         Override netdb.h always.
20290         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20291         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20292         Reported by Ludovic Courtès <ludo@gnu.org>.
20293
20294 2010-04-15  Bruno Haible  <bruno@clisp.org>
20295
20296         openpty: Fix mistake from 2010-03-21.
20297         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20298         Reported by Simon Josefsson.
20299
20300 2010-04-15  Eric Blake  <eblake@redhat.com>
20301
20302         test-forkpty: fix expected signature
20303         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20304         Reported by Simon Josefsson.
20305
20306 2010-04-15  Jim Meyering  <meyering@redhat.com>
20307
20308         maint.mk: texinfo_suffix_re_: correct the default regexp
20309         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20310
20311         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20312         make it configurable via texinfo_suffix_re_.
20313
20314 2010-04-14  Eric Blake  <eblake@redhat.com>
20315
20316         strtok_r: relax license to LGPLv2+
20317         * modules/strtok_r (License): Relax license.
20318         Reported by Matthias Bolte.
20319
20320 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20321
20322         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20323         version 1.4.4 by default instead of requiring the libgcrypt
20324         version used during build.  This makes it possible to use the
20325         application with older but still binary compatible libgcrypt
20326         versions.
20327
20328 2010-04-13  Eric Blake  <eblake@redhat.com>
20329
20330         getopt-gnu: match recent glibc fixes and posix ruling
20331         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20332         '+' handling, when requesting extensions.
20333         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20334         'W;' handling.
20335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20336         * doc/posix-functions/getopt.texi (getopt): Document this.
20337         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20338         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20339         Likewise.
20340
20341         getopt: merge bug fixes from glibc
20342         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20343         diagnostics.  Honor '+:' correctly.  Reject ';'.
20344
20345         getopt-posix: detect MacOS bug
20346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20347         optind when missing a required argument.
20348         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20349         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20350         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20351         Likewise.
20352
20353         getopt-posix: avoid spurious failure on Solaris
20354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20355         an indicator that setting optind=1 is sufficient for reset.
20356
20357         getopt-posix: avoid spurious failure on FreeBSD
20358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20359         in POSIX mode, since the m4 test uses it.
20360
20361         gnulib-tool: silence warning on BSD sh
20362         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20363
20364 2010-04-13  Jim Meyering  <meyering@redhat.com>
20365
20366         doc: users.txt: GNU patch now uses gnulib
20367         * users.txt: Add patch.
20368
20369 2010-04-12  Jim Meyering  <meyering@redhat.com>
20370
20371         maint.mk: generate more concise timing data for syntax-check rules
20372         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20373         " done" from each line that reports a syntax-check test duration.
20374
20375 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20376
20377         git-version-gen: use "git update-index..." rather than "git status"
20378         * build-aux/git-version-gen: Use git update-index --refresh, not
20379         "git status".  With some versions of git, "git status" would fail
20380         to update the index and result in an unwarranted "-dirty" suffix.
20381
20382 2010-04-11  Jim Meyering  <meyering@redhat.com>
20383
20384         openat: correct formatting (no semantic change)
20385         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20386         Suggested by Bruno Haible.
20387
20388 2010-04-11  Bruno Haible  <bruno@clisp.org>
20389
20390         Stricter declaration checking in testdirs.
20391         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20392         If for_tests is true, augment AM_CPPFLAGS to define
20393         GNULIB_STRICT_CHECKING.
20394         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20395         GNULIB_STRICT_CHECKING is defined, verify that the function is
20396         declared.
20397
20398 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20399             Bruno Haible  <bruno@clisp.org>
20400
20401         libunistring: Improve configure output.
20402         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20403         Don't say "consider installing GNU libunistring" when checking again
20404         with libiconv.
20405
20406 2010-04-11  Bruno Haible  <bruno@clisp.org>
20407
20408         libunistring: Correct value of $LTLIBUNISTRING.
20409         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20410         correct the value of $LTLIBUNISTRING.
20411
20412 2010-04-11  Bruno Haible  <bruno@clisp.org>
20413
20414         havelib: Add static libraries to LIBS in the right order.
20415         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20416         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20417
20418 2010-04-11  Bruno Haible  <bruno@clisp.org>
20419
20420         libunistring: Detect libunistring also when it depends on libiconv.
20421         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20422         the second AC_LIB_HAVE_LINKFLAGS invocation.
20423
20424 2010-04-11  James Youngman  <jay@gnu.org>
20425
20426         close-stream: declare local scalars to be "const"
20427         * lib/close-stream.c (close_stream): Make boolean variables const
20428         to document the fact that we set but do not change them.
20429
20430 2010-04-11  Bruno Haible  <bruno@clisp.org>
20431
20432         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20433
20434 2010-04-11  Jim Meyering  <meyering@redhat.com>
20435
20436         maint.mk: don't include dist-check.mk
20437         * top/maint.mk: Remove bogus include directive.
20438
20439         maint.mk: improve empty-line-at-EOF check
20440         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20441         solution, rather than tail+Perl-based one.  The latter would read
20442         a few kilobytes from the end of each file, and did not handle empty
20443         files properly.
20444
20445         maint.mk: print the elapsed time for each syntax-check rule
20446         * top/maint.mk (sc_m_rules_): Save start time in a file.
20447         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20448         (local-check): Interpose the .z rules
20449
20450 2010-04-11  Jim Meyering  <meyering@redhat.com>
20451
20452         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20453         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20454         empty file with one that ends in an empty line.
20455
20456 2010-04-10  Bruno Haible  <bruno@clisp.org>
20457
20458         mkdir: Make it work on mingw64.
20459         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20460         * lib/mkdir.c: Update comment.
20461         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20462
20463 2010-04-10  Bruno Haible  <bruno@clisp.org>
20464
20465         Don't override improved macro from newer autoconf.
20466         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20467         autoconf >= 2.62.
20468         Reported by Joel E. Denny <jdenny@clemson.edu>.
20469
20470 2010-04-10  Jim Meyering  <meyering@redhat.com>
20471
20472         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20473         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20474
20475         maint.mk: correct a diagnostic
20476         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20477         in diagnostic; now use $prohibit.
20478
20479 2010-04-10  Bruno Haible  <address@hidden>
20480
20481         fchownat: Fix a C++ test error on Solaris 8.
20482         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20483         the function does not exist.
20484
20485 2010-04-10  Bruno Haible  <bruno@clisp.org>
20486
20487         vasnprintf: Add more tests.
20488         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20489         (test_function): Test converting an invalid wide string.
20490
20491         vasnprintf: Correct handling of unconvertible wide string arguments.
20492         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20493         VASNPRINTF.
20494         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20495         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20496         smaller than the expected maximum need for the directive. Set errno to
20497         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20498         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20499         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20500         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20501         * modules/vasnprintf (Files): Add m4/printf.m4.
20502         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20503
20504 2010-04-10  Bruno Haible  <bruno@clisp.org>
20505
20506         vasnprintf: Fix crash in %ls directive.
20507         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20508         string is passed as argument to %ls, with no precision and no width.
20509         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20510
20511 2010-04-10  Bruno Haible  <bruno@clisp.org>
20512
20513         vasnprintf: Fix multiple test failures on mingw.
20514         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20515         _snprintf, or snwprintf, not _snwprintf.
20516
20517 2010-04-10  Bruno Haible  <bruno@clisp.org>
20518
20519         write: Fix a C++ test error on mingw.
20520         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20521
20522 2010-04-10  Bruno Haible  <bruno@clisp.org>
20523
20524         vasnprintf test: Reduce code duplication.
20525         * tests/test-vasnprintf.c (test_function): New function, extracted from
20526         test_vasnprintf.
20527         (test_vasnprintf, test_asnprintf): Invoke it.
20528
20529 2010-04-10  Bruno Haible  <bruno@clisp.org>
20530
20531         strnlen: Fix warning in C++ mode on MacOS X.
20532         * lib/string.in.h (strnlen): Use the modern idiom.
20533         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20534         defining strnlen as a macro already in <config.h>.
20535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20536         REPLACE_STRNLEN.
20537         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20538         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20539
20540 2010-04-08  James Youngman  <jay@gnu.org>
20541
20542         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20543         the example.
20544
20545 2010-04-09  Jim Meyering  <meyering@redhat.com>
20546
20547         maint.mk: print better diagnostic when there is no $(_hv_file)
20548         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20549         announce that when $(_hv_file) (aka help-version) does not exist.
20550
20551         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20552         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20553         not try to interpret its random input bytes.  Jarno Rajahalme reported
20554         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20555         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20556         (mktempd_): Likewise, just in case.
20557
20558         ftruncate: add two years to projected module removal date: 2012
20559         * m4/ftruncate.m4: Adjust comments.
20560
20561         ftruncate: mark module as obsolete; even MinGW provides it, now
20562         * modules/ftruncate (Status): Obsolete.
20563         (Notice): Say that.
20564         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20565         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20566
20567 2010-04-08  Bruno Haible  <bruno@clisp.org>
20568
20569         Fix side effects from tests-related modules.
20570         * modules/dprintf-posix (Comment): New section.
20571         * modules/fprintf-posix (Comment): Likewise.
20572         * modules/obstack-printf-posix (Comment): Likewise.
20573         * modules/printf-posix (Comment): Likewise.
20574         * modules/snprintf-posix (Comment): Likewise.
20575         * modules/sprintf-posix (Comment): Likewise.
20576         * modules/vasnprintf-posix (Comment): Likewise.
20577         * modules/vasprintf-posix (Comment): Likewise.
20578         * modules/vdprintf-posix (Comment): Likewise.
20579         * modules/vfprintf-posix (Comment): Likewise.
20580         * modules/vprintf-posix (Comment): Likewise.
20581         * modules/vsnprintf-posix (Comment): Likewise.
20582         * modules/vsprintf-posix (Comment): Likewise.
20583         * modules/xprintf-posix (Comment): Likewise.
20584         * modules/xvasprintf-posix (Comment): Likewise.
20585         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20586         * modules/floorf-tests (Depends-on): Likewise.
20587         * modules/round-tests (Depends-on): Likewise.
20588         * modules/roundf-tests (Depends-on): Likewise.
20589         * modules/trunc-tests (Depends-on): Likewise.
20590         * modules/truncf-tests (Depends-on): Likewise.
20591         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20592         'fprintf-posix' module is not present.
20593         * tests/test-floorf2.c (check): Likewise.
20594         * tests/test-trunc2.c (check): Likewise.
20595         * tests/test-truncf2.c (check): Likewise.
20596         * tests/test-round2.c (equal): Likewise.
20597         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20598
20599 2010-04-07  Karl Berry  <karl@gnu.org>
20600
20601         * config/srclist.txt,
20602         * config/srclistvars.sh,
20603         * config/srclist-update: doc fixes.
20604
20605 2010-04-07  Jim Meyering  <meyering@redhat.com>
20606
20607         maint.mk: add a PATH crosschecking syntax-check rule
20608         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20609         Useful if you use a test like the one in help-version (coreutils,
20610         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20611         printed by prog --version.
20612
20613 2010-04-06  Bruno Haible  <bruno@clisp.org>
20614
20615         Fix link error on mingw.
20616         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20617         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20618
20619 2010-04-06  Bruno Haible  <bruno@clisp.org>
20620
20621         Assume rmdir exists.
20622         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20623
20624 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20625
20626         doc: update users.txt
20627         * users.txt: Add gcal.
20628
20629 2010-04-06  Jim Meyering  <meyering@redhat.com>
20630
20631         init.sh: simply unset TMPDIR rather than risking env -i
20632         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20633         although it probably works fine on all Unix-based systems, some
20634         systems (Cygwin?) cannot tolerate a totally cleared environment.
20635         Suggestion from Eric Blake.
20636
20637 2010-04-06  Jim Meyering  <meyering@redhat.com>
20638
20639         init.sh: portability fix: use env's POSIX-specified -i option not -u
20640         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20641         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20642
20643 2010-04-05  Bruno Haible  <bruno@clisp.org>
20644
20645         btowc: Work around Cygwin 1.7.2 bug.
20646         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20647         does not map NUL to 0.
20648         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20649
20650 2010-04-05  Bruno Haible  <bruno@clisp.org>
20651
20652         Make the multithread modules work on Cygwin 1.7.2.
20653         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20654         imported symbols can be declared weak, so that it returns "no" on
20655         Cygwin 1.7.2.
20656
20657 2010-04-05  Bruno Haible  <bruno@clisp.org>
20658
20659         Use the module 'strncat'.
20660         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20661
20662         Tests for module 'strncat'.
20663         * modules/strncat-tests: New file.
20664         * tests/test-strncat.c: New file.
20665
20666         New module 'strncat'.
20667         * lib/string.in.h (strncat): New declaration.
20668         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20669         * m4/strncat.m4: New file, based on m4/memchr.m4.
20670         * modules/strncat: New file.
20671         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20672         is declared.
20673         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20674         REPLACE_STRNCAT.
20675         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20676         REPLACE_STRNCAT.
20677         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20678         module.
20679         * tests/test-string-c++.cc: Check signature of strncat.
20680
20681 2010-04-05  Jim Meyering  <meyering@redhat.com>
20682
20683         xstrtoumax-tests: convert to use init.sh
20684         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20685         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20686         Use Exit, not exit.
20687         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20688
20689         xstrtoimax-tests: convert to use init.sh
20690         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20691         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20692         Use Exit, not exit.
20693         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20694
20695 2010-04-05  Bruno Haible  <bruno@clisp.org>
20696
20697         sys_socket: Avoid #define replacements in C++ mode.
20698         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20699         warning to the function if possible, rather than #defining the symbol
20700         to a dysfunctional alias.
20701
20702 2010-04-05  Bruno Haible  <bruno@clisp.org>
20703
20704         fseeko: Fix C++ test error on mingw.
20705         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20706         gl_FUNC_FSEEKO.
20707         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20708         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20709         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20710         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20711
20712 2010-04-05  Bruno Haible  <bruno@clisp.org>
20713
20714         duplocale: Improve test output.
20715         * tests/test-duplocale.c (main): Print reason for skipped test.
20716
20717 2010-04-05  Bruno Haible  <bruno@clisp.org>
20718
20719         Assume rmdir exists.
20720         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20721         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20722
20723 2010-04-05  Bruno Haible  <bruno@clisp.org>
20724
20725         Fix link error on Solaris 8 with cc.
20726         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20727
20728 2010-04-05  Bruno Haible  <bruno@clisp.org>
20729
20730         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20731         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20732
20733 2010-04-05  Bruno Haible  <bruno@clisp.org>
20734
20735         vasprintf: Update documentation.
20736         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20737
20738 2010-04-05  Bruno Haible  <bruno@clisp.org>
20739
20740         ptsname: Improve test.
20741         * tests/test-ptsname.c (main): Also try the various master names of BSD
20742         systems.
20743
20744 2010-04-05  Bruno Haible  <bruno@clisp.org>
20745
20746         memchr: Avoid a possible C++ test error.
20747         * lib/string.in.h (memchr): Provide declaration if function is missing.
20748         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20749         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20751         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20752
20753 2010-04-05  Bruno Haible  <bruno@clisp.org>
20754
20755         strtok_r: Improve idiom.
20756         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20757         AC_LIBOBJ is used.
20758
20759 2010-04-05  Bruno Haible  <bruno@clisp.org>
20760
20761         strdup: Improve idiom.
20762         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20763         AC_LIBOBJ is used.
20764         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20765         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20766         when AC_LIBOBJ is used.
20767
20768 2010-04-05  Bruno Haible  <bruno@clisp.org>
20769
20770         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20771         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20772         don't set REPLACE_MBSINIT to 1.
20773         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20774         don't set REPLACE_MBRTOWC to 1.
20775         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20776         exist, don't set REPLACE_MBSRTOWCS to 1.
20777         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20778         exist, don't set REPLACE_MBSNRTOWCS to 1.
20779         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20780         don't set REPLACE_WCRTOMB to 1.
20781         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20782         exist, don't set REPLACE_WCSRTOMBS to 1.
20783         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20784         exist, don't set REPLACE_WCSNRTOMBS to 1.
20785
20786 2010-04-05  Bruno Haible  <bruno@clisp.org>
20787
20788         ldexpl: Improve idiom.
20789         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20790         make sure to set HAVE_DECL_LDEXPL to 0.
20791
20792 2010-04-05  Jim Meyering  <meyering@redhat.com>
20793
20794         xstrtol-tests: convert to use init.sh
20795         * modules/xstrtol-tests (Files): Add tests/init.sh.
20796         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20797         Use Exit, not exit.
20798         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20799
20800         atexit-tests: convert to use init.sh
20801         * modules/atexit-tests (Files): Add tests/init.sh.
20802         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20803         Use Exit, not exit.
20804         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20805
20806         init.sh: fix typo
20807         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20808
20809         init.sh: make it easier for a test script to write to the tty, ...
20810         when using automake's parallel-tests mode.
20811         * tests/init.sh (stderr_fileno_): Define overridable variable.
20812         (warn_): New function, to use it.
20813         (fail_, skip_, framework_failure_): Use warn_.
20814
20815 2010-04-04  Bruno Haible  <bruno@clisp.org>
20816
20817         btowc: Avoid warning.
20818         * lib/btowc.c: Include <stdlib.h>.
20819         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20820
20821 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20822             Bruno Haible  <bruno@clisp.org>
20823
20824         wchar: Port to NetBSD 1.5.
20825         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20826         * lib/wctype.in.h (WEOF): Likewise.
20827
20828 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20829             Bruno Haible  <bruno@clisp.org>
20830
20831         Port extended stdio to NetBSD 1.5.
20832         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20833         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20834         older.
20835
20836 2010-04-04  Bruno Haible  <bruno@clisp.org>
20837
20838         string: Remove unused substitution.
20839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20840         HAVE_DECL_STRERROR.
20841         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20842
20843 2010-04-04  Bruno Haible  <bruno@clisp.org>
20844
20845         strtod: Avoid a possible C++ test error.
20846         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20847         set REPLACE_STRTOD.
20848
20849 2010-04-04  Bruno Haible  <bruno@clisp.org>
20850
20851         strerror: Update documentation.
20852         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20853
20854 2010-04-04  Bruno Haible  <bruno@clisp.org>
20855
20856         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20857         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20858         _GL_CXXALIAS_SYS_CAST.
20859
20860 2010-04-04  Bruno Haible  <bruno@clisp.org>
20861
20862         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20863         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20864         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20865         REPLACE_FREXPL to 1.
20866         * doc/posix-functions/frexpl.texi: Update documentation.
20867
20868 2010-04-04  Bruno Haible  <bruno@clisp.org>
20869
20870         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20871         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20872
20873 2010-04-04  Bruno Haible  <bruno@clisp.org>
20874
20875         Implement nanosleep for native Windows.
20876         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20877
20878 2010-04-04  Bruno Haible  <bruno@clisp.org>
20879
20880         math: Fix some C++ test errors on Solaris 8.
20881         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20882
20883 2010-04-04  Bruno Haible  <bruno@clisp.org>
20884
20885         math: Fix some C++ test errors on Cygwin.
20886         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20887         truncl): Provide declaration if the system does not have it.
20888         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20889         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20890         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20891         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20892         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20893         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20894         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20895         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20896         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20897         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20898         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20899         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20900         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20901         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20902         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20903         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20905         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20906         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20907         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20908         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20909         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20910
20911 2010-04-04  Bruno Haible  <bruno@clisp.org>
20912
20913         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20914         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20915         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20916         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20917         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20918         * m4/isinf.m4 (gl_ISINF): Likewise.
20919         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20920
20921 2010-04-04  Bruno Haible  <bruno@clisp.org>
20922
20923         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20924         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20925
20926 2010-04-04  Bruno Haible  <bruno@clisp.org>
20927
20928         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20929         * modules/tmpfile (configure.ac): Update.
20930
20931         tmpfile: Fix C++ test error on mingw.
20932         * lib/stdio.in.h (tmpfile): New declaration.
20933         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20934         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20935         * modules/tmpfile (Depends-on): Add stdio.
20936         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20937         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20938         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20939         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20940         REPLACE_TMPFILE.
20941         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20942
20943 2010-04-04  Bruno Haible  <bruno@clisp.org>
20944
20945         ioctl: Fix C++ test error on mingw.
20946         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20947         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20948         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20949
20950 2010-04-03  Bruno Haible  <bruno@clisp.org>
20951
20952         wcwidth: Fix C++ test error on mingw.
20953         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20955         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20956
20957 2010-04-03  Bruno Haible  <bruno@clisp.org>
20958
20959         nanosleep: Fix C++ test error on mingw.
20960         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20961         * lib/time.in.h (nanosleep): Use modern idiom.
20962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20963         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20964         REPLACE_NANOSLEEP to 1.
20965         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20966         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20967
20968 2010-04-03  Bruno Haible  <bruno@clisp.org>
20969
20970         strptime: Fix C++ test error on mingw.
20971         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20972         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20973         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20974         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20975         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20976         not REPLACE_STRPTIME.
20977         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20978         REPLACE_STRPTIME.
20979
20980 2010-04-03  Bruno Haible  <bruno@clisp.org>
20981
20982         timegm: Fix C++ test error on mingw.
20983         * lib/time.in.h (timegm): Use modern idiom.
20984         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20985         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20986         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20987         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20988
20989 2010-04-03  Bruno Haible  <bruno@clisp.org>
20990
20991         timegm: Assume declaration if function exists.
20992         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20993         if it exists. Don't clobber ac_cv_func_timegm.
20994
20995 2010-04-03  Bruno Haible  <bruno@clisp.org>
20996
20997         time_r: Fix C++ test error on mingw.
20998         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20999         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21000         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21001         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21002         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21003
21004 2010-04-03  Bruno Haible  <bruno@clisp.org>
21005
21006         time_r: Minor updates.
21007         * modules/time_r (Description): Mention the provided functions.
21008         * lib/time_r.c: Don't include <string.h>.
21009         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21010         * doc/posix-functions/localtime_r.texi: Likewise.
21011
21012 2010-04-03  Bruno Haible  <bruno@clisp.org>
21013
21014         time: Fix regression introduced on 2010-03-08.
21015         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21016         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21017
21018 2010-04-03  Jim Meyering  <meyering@redhat.com>
21019
21020         maint.mk: don't silently disable project-specific syntax-check rules
21021         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21022         that they need to convert their project-specific syntax-check rules
21023         to use the new _sc_search_regexp.
21024
21025 2010-04-03  Bruno Haible  <bruno@clisp.org>
21026
21027         fchdir: Fix regression introduced on 2010-03-08.
21028         * lib/unistd.in.h (fchdir): Fix declaration.
21029         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21031         REPLACE_FCHDIR.
21032         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21033         REPLACE_FCHDIR.
21034
21035 2010-04-03  Bruno Haible  <bruno@clisp.org>
21036
21037         getpagesize: Fix C++ test error on mingw.
21038         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21039         system does not declare the function.
21040         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21041         declared.
21042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21043         HAVE_DECL_GETPAGESIZE.
21044         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21045
21046 2010-04-03  Bruno Haible  <bruno@clisp.org>
21047
21048         stdio: Make C++ tests work on mingw.
21049         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21050         does not declare the function.
21051
21052 2010-04-03  Bruno Haible  <bruno@clisp.org>
21053
21054         ftello: Fix C++ test error on mingw.
21055         * lib/stdio.in.h (ftello): Use modern idiom.
21056         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21057         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21058         is missing and that it needs to be replaced.
21059         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21061         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21062
21063 2010-04-03  Bruno Haible  <bruno@clisp.org>
21064
21065         fseeko: Fix C++ test error on mingw.
21066         * lib/stdio.in.h (fseeko): Use modern idiom.
21067         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21068         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21069         is missing and that it needs to be replaced.
21070         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21072         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21073
21074 2010-04-03  Bruno Haible  <bruno@clisp.org>
21075
21076         mkstemp: Fix C++ test error on mingw.
21077         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21078         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21079         function is missing and that it needs to be replaced.
21080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21081         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21082
21083 2010-04-03  Bruno Haible  <bruno@clisp.org>
21084
21085         stpncpy: Fix C++ test error on mingw.
21086         * lib/string.in.h (stpncpy): Use modern idiom.
21087         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21088         function is missing and that it needs to be replaced.
21089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21090         REPLACE_STPNCPY.
21091         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21092
21093 2010-04-03  Bruno Haible  <bruno@clisp.org>
21094
21095         sys_stat: Fix C++ test error on mingw.
21096         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21097         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21098
21099 2010-04-03  Bruno Haible  <bruno@clisp.org>
21100
21101         pty: Update doc.
21102         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21103
21104 2010-04-03  Bruno Haible  <bruno@clisp.org>
21105
21106         unistd: Fix C++ test error on mingw.
21107         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21108
21109 2010-04-03  Bruno Haible  <bruno@clisp.org>
21110
21111         Update doc regarding mingw.
21112         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21113         * doc/glibc-functions/login_tty.texi: Likewise.
21114         * doc/glibc-functions/forkpty.texi: Likewise.
21115
21116 2010-04-03  Bruno Haible  <bruno@clisp.org>
21117
21118         stdlib: Avoid compilation failure of c-strtold on mingw.
21119         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21120
21121 2010-04-03  Bruno Haible  <bruno@clisp.org>
21122
21123         locale: Make C++ tests work on Cygwin and mingw.
21124         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21125         cannot provide the function.
21126         Reported by Simon Josefsson.
21127
21128 2010-04-03  Bruno Haible  <bruno@clisp.org>
21129
21130         localename: Port to MacOS X 10.6.
21131         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21132         memory layout of the locales in MacOS X 10.6 as well.
21133         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21134
21135 2010-04-02  Bruno Haible  <bruno@clisp.org>
21136
21137         gnulib-tool: Ensure that long-running tests are executed last.
21138         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21139         running tests after the one for the other tests.
21140
21141 2010-04-02  Bruno Haible  <bruno@clisp.org>
21142
21143         gnulib-tool: Ensure the tests in the main directory are executed first.
21144         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21145         start with the current directory.
21146
21147 2010-04-02  Bruno Haible  <bruno@clisp.org>
21148
21149         Tests for module 'havelib', moved here from GNU gettext.
21150         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21151         modifications.
21152         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21153         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21154         with modifications.
21155         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21156         modifications.
21157         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21158         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21159         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21160         with modifications.
21161         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21162         with modifications.
21163         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21164         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21165         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21166         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21167         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21168         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21169         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21170         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21171         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21172         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21173         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21174         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21175         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21176         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21177         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21178         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21179         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21180         with modifications.
21181         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21182         with modifications.
21183         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21184         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21185         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21186         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21187         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21188         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21189         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21190         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21191         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21192         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21193         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21194         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21195         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21196         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21197         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21198         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21199         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21200         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21201         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21202         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21203         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21204         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21205         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21206         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21207         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21208         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21209         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21210         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21211         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21212         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21213         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21214         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21215         * tests/havelib/rpathx/rpathx.c: New file, from
21216         gettext/autoconf-lib-link.
21217         * tests/havelib/rpathx/Makefile.am: New file, from
21218         gettext/autoconf-lib-link.
21219         * tests/havelib/rpathx/configure.ac: New file, from
21220         gettext/autoconf-lib-link with modifications.
21221         * tests/havelib/rpathy/rpathy.c: New file, from
21222         gettext/autoconf-lib-link.
21223         * tests/havelib/rpathy/Makefile.am: New file, from
21224         gettext/autoconf-lib-link.
21225         * tests/havelib/rpathy/configure.ac: New file, from
21226         gettext/autoconf-lib-link with modifications.
21227         * tests/havelib/rpathz/rpathz.c: New file, from
21228         gettext/autoconf-lib-link.
21229         * tests/havelib/rpathz/Makefile.am: New file, from
21230         gettext/autoconf-lib-link.
21231         * tests/havelib/rpathz/configure.ac: New file, from
21232         gettext/autoconf-lib-link with modifications.
21233         * tests/havelib/rpathlx/usex.c: New file, from
21234         gettext/autoconf-lib-link.
21235         * tests/havelib/rpathlx/Makefile.am: New file, from
21236         gettext/autoconf-lib-link.
21237         * tests/havelib/rpathlx/configure.ac: New file, from
21238         gettext/autoconf-lib-link with modifications.
21239         * tests/havelib/rpathly/usey.c: New file, from
21240         gettext/autoconf-lib-link.
21241         * tests/havelib/rpathly/Makefile.am: New file, from
21242         gettext/autoconf-lib-link.
21243         * tests/havelib/rpathly/configure.ac: New file, from
21244         gettext/autoconf-lib-link with modifications.
21245         * tests/havelib/rpathlz/usez.c: New file, from
21246         gettext/autoconf-lib-link.
21247         * tests/havelib/rpathlz/Makefile.am: New file, from
21248         gettext/autoconf-lib-link.
21249         * tests/havelib/rpathlz/configure.ac: New file, from
21250         gettext/autoconf-lib-link with modifications.
21251         * tests/havelib/rpathlyx/usey.c: New file, from
21252         gettext/autoconf-lib-link.
21253         * tests/havelib/rpathlyx/Makefile.am: New file, from
21254         gettext/autoconf-lib-link.
21255         * tests/havelib/rpathlyx/configure.ac: New file, from
21256         gettext/autoconf-lib-link with modifications.
21257         * tests/havelib/rpathlzyx/usez.c: New file, from
21258         gettext/autoconf-lib-link.
21259         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21260         gettext/autoconf-lib-link.
21261         * tests/havelib/rpathlzyx/configure.ac: New file, from
21262         gettext/autoconf-lib-link with modifications.
21263         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21264         with modifications.
21265
21266 2010-04-02  Bruno Haible  <bruno@clisp.org>
21267
21268         gnulib-tool: Create distributed built sources also for the tests.
21269         * gnulib-tool (func_create_testdir): Also generate distributed built
21270         sources in the tests directory.
21271
21272 2010-04-02  Bruno Haible  <bruno@clisp.org>
21273
21274         gnulib-tool: Obey user's environment variables.
21275         * gnulib-tool (func_create_testdir): When creating built sources,
21276         respect the environment variables for autoconf, automake, etc. given by
21277         the user.
21278
21279 2010-04-02  Bruno Haible  <bruno@clisp.org>
21280
21281         gnulib-tool: Provide the value of --m4-base to modules.
21282         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21283         of gl_m4_base.
21284
21285 2010-04-02  Eric Blake  <eblake@redhat.com>
21286
21287         maint.mk: fix some fallout
21288         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21289         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21290
21291 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21292
21293         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21294         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21295         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21296         (sc_cast_of_x_alloc_return_value): Likewise.
21297         (sc_cast_of_alloca_return_value): Likewise.
21298         (sc_space_tab): Likewise.
21299         (sc_prohibit_atoi_atof): Likewise.
21300         (sc_prohibit_magic_number_exit): Likewise.
21301         (sc_error_exit_success): Likewise.
21302         (sc_file_system): Likewise.
21303         (sc_prohibit_have_config_h): Likewise.
21304         (sc_require_config_h): Likewise.
21305         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21306         (sc_obsolete_symbols): Likewise.
21307         (sc_changelog): Likewise.
21308         (sc_program_name): Likewise.
21309         (sc_the_the): Likewise.
21310         (sc_trailing_blank): Likewise.
21311         (sc_two_space_separator_in_usage): Likewise.
21312         (sc_useless_cpp_parens): Likewise.
21313         (sc_GPL_version): Likewise.
21314         (sc_GFDL_version): Likewise.
21315         (sc_texinfo_acronym): Likewise.
21316         (sc_prohibit_cvs_keyword): Likewise.
21317         (sc_prohibit_stat_st_blocks): Likewise.
21318         (sc_prohibit_S_IS_definition): Likewise.
21319         (sc_redundant_const): Likewise.
21320         (sc_makefile_TAB_only_indentation): Likewise.
21321         (sc_m4_quote_check): Likewise.
21322         (sc_makefile_path_separator_check): Likewise.
21323         (sc_copyright_check): Likewise.
21324         (sc_Wundef_boolean): Likewise.
21325         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21326
21327         maint.mk: match 0 or more whitespace-before-function-call '('
21328         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21329         that have zero or two-and-more spaces between the function name
21330         and the open parenthesis.
21331         (sc_error_message_warn_fatal): Likewise.
21332         (sc_error_message_uppercase): Likewise.
21333         (sc_error_message_period): Likewise.
21334
21335 2010-03-31  Eric Blake  <eblake@redhat.com>
21336
21337         maint.mk: check for [ as well as test
21338         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21339         Based on a libvirt report by Matthias Bolte.
21340
21341         gnumakefile: don't squelch _version output
21342         * top/GNUmakefile (_version): Create one-shot dependency rather
21343         than using $(shell) when version must be regenerated.
21344         (_autoreconf): Run verbosely, by default.
21345
21346         sys_time: avoid compiler warnings
21347         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21348         unconditional, fixing regression from 2010-03-29.
21349         Reported by Simon Josefsson.
21350
21351 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21352
21353         maint.mk: s/_header_without_use/_sc_header_without_use/
21354         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21355         (sc_prohibit_assert_without_use): Use the new name.
21356         (sc_prohibit_close_stream_without_use): Likewise.
21357         (sc_prohibit_getopt_without_use): Likewise.
21358         (sc_prohibit_quotearg_without_use): Likewise.
21359         (sc_prohibit_quote_without_use): Likewise.
21360         (sc_prohibit_long_options_without_use): Likewise.
21361         (sc_prohibit_inttostr_without_use): Likewise.
21362         (sc_prohibit_ignore_value_without_use): Likewise.
21363         (sc_prohibit_error_without_use): Likewise.
21364         (sc_prohibit_xalloc_without_use): Likewise.
21365         (sc_prohibit_hash_without_use): Likewise.
21366         (sc_prohibit_hash_pjw_without_use): Likewise.
21367         (sc_prohibit_safe_read_without_use): Likewise.
21368         (sc_prohibit_argmatch_without_use): Likewise.
21369         (sc_prohibit_canonicalize_without_use): Likewise.
21370         (sc_prohibit_root_dev_ino_without_use): Likewise.
21371         (sc_prohibit_openat_without_use): Likewise.
21372         (sc_prohibit_c_ctype_without_use): Likewise.
21373         (sc_prohibit_signal_without_use): Likewise.
21374         (sc_prohibit_intprops_without_use): Likewise.
21375
21376 2010-03-30  Eric Blake  <eblake@redhat.com>
21377
21378         maint: improve module indicators
21379         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21380         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21381         columns, and avoid extra macro expansion.
21382
21383         fdopendir: work around FreeBSD bug
21384         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21385         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21386         * modules/dirent (Makefile.am): Substitute it.
21387         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21388         declaration.
21389         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21390         fix.
21391         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21392
21393 2010-03-29  Bruno Haible  <bruno@clisp.org>
21394
21395         Emit #pragma system_header after the inclusion guard, not before.
21396         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21397         guard that spans the entire file, not before. This enables an
21398         optimization in GCC's preprocessor.
21399         * lib/ctype.in.h: Likewise.
21400         * lib/dirent.in.h: Likewise.
21401         * lib/errno.in.h: Likewise.
21402         * lib/float.in.h: Likewise.
21403         * lib/getopt.in.h: Likewise.
21404         * lib/iconv.in.h: Likewise.
21405         * lib/langinfo.in.h: Likewise.
21406         * lib/locale.in.h: Likewise.
21407         * lib/math.in.h: Likewise.
21408         * lib/netdb.in.h: Likewise.
21409         * lib/netinet_in.in.h: Likewise.
21410         * lib/pty.in.h: Likewise.
21411         * lib/sched.in.h: Likewise.
21412         * lib/se-selinux.in.h: Likewise.
21413         * lib/search.in.h: Likewise.
21414         * lib/spawn.in.h: Likewise.
21415         * lib/stdarg.in.h: Likewise.
21416         * lib/stdint.in.h: Likewise.
21417         * lib/string.in.h: Likewise.
21418         * lib/strings.in.h: Likewise.
21419         * lib/sys_file.in.h: Likewise.
21420         * lib/sys_ioctl.in.h: Likewise.
21421         * lib/sys_time.in.h: Likewise.
21422         * lib/sys_times.in.h: Likewise.
21423         * lib/sys_utsname.in.h: Likewise.
21424         * lib/sys_wait.in.h: Likewise.
21425         * lib/sysexits.in.h: Likewise.
21426         * lib/wctype.in.h: Likewise.
21427
21428 2010-03-28  James Youngman  <jay@gnu.org>
21429
21430         save-cwd: don't leak a file descriptor when the caller execs.
21431         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21432         saved file descriptor.
21433         * modules/save-cwd (Depends-on): Depend on cloexec.
21434
21435 2010-03-29  Bruno Haible  <bruno@clisp.org>
21436
21437         Remove vestiges of fts-lgpl module.
21438         * lib/fts_.h: Assume GNULIB_FTS is 1.
21439         * lib/fts.c: Likewise.
21440         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21441
21442 2010-03-28  Bruno Haible  <bruno@clisp.org>
21443
21444         Fix definition of tests witness macro.
21445         * gnulib-tool (func_import): Fix definition of witness macro.
21446
21447 2010-03-28  Bruno Haible  <bruno@clisp.org>
21448
21449         Fix ioctl's protoype on glibc systems.
21450         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21451         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21452         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21453         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21454         signature. If not, arrange to replace the ioctl function.
21455         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21456         REPLACE_IOCTL.
21457         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21458         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21459         Reported by Ludovic Courtès <ludo@gnu.org>.
21460
21461 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21462
21463         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21464         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21465         made it so grep -r --include=GLOB* ... did not work.
21466
21467 2010-03-26  Jim Meyering  <meyering@redhat.com>
21468             Eric Blake  <eblake@redhat.com>
21469
21470         maint.mk: prohibit use of test's -o and -a operators
21471         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21472
21473 2010-03-28  Bruno Haible  <bruno@clisp.org>
21474
21475         Remove unused GNULIB_XYZ macro definitions.
21476         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21477         invocation.
21478
21479 2010-03-28  Bruno Haible  <bruno@clisp.org>
21480
21481         Mark privileged tests modules.
21482         * modules/idpriv-drop-tests (Status): New section.
21483         * modules/idpriv-droptemp-tests (Status): New section.
21484
21485 2010-03-28  Bruno Haible  <bruno@clisp.org>
21486
21487         Split C++ tests into separate tests modules.
21488         * modules/dirent-c++-tests: New file, extracted from
21489         modules/dirent-tests.
21490         * modules/dirent-tests: Depend on it.
21491         * modules/fcntl-h-c++-tests: New file, extracted from
21492         modules/fcntl-h-tests.
21493         * modules/fcntl-h-tests: Depend on it.
21494         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21495         * modules/glob-tests: Depend on it.
21496         * modules/iconv-h-c++-tests: New file, extracted from
21497         modules/iconv-h-tests.
21498         * modules/iconv-h-tests: Depend on it.
21499         * modules/langinfo-c++-tests: New file, extracted from
21500         modules/langinfo-tests.
21501         * modules/langinfo-tests: Depend on it.
21502         * modules/locale-c++-tests: New file, extracted from
21503         modules/locale-tests.
21504         * modules/locale-tests: Depend on it.
21505         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21506         * modules/math-tests: Depend on it.
21507         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21508         * modules/pty-tests: Depend on it.
21509         * modules/search-c++-tests: New file, extracted from
21510         modules/search-tests.
21511         * modules/search-tests: Depend on it.
21512         * modules/signal-c++-tests: New file, extracted from
21513         modules/signal-tests.
21514         * modules/signal-tests: Depend on it.
21515         * modules/spawn-c++-tests: New file, extracted from
21516         modules/spawn-tests.
21517         * modules/spawn-tests: Depend on it.
21518         * modules/stdio-c++-tests: New file, extracted from
21519         modules/stdio-tests.
21520         * modules/stdio-tests: Depend on it.
21521         * modules/stdlib-c++-tests: New file, extracted from
21522         modules/stdlib-tests.
21523         * modules/stdlib-tests: Depend on it.
21524         * modules/string-c++-tests: New file, extracted from
21525         modules/string-tests.
21526         * modules/string-tests: Depend on it.
21527         * modules/sys_ioctl-c++-tests: New file, extracted from
21528         modules/sys_ioctl-tests.
21529         * modules/sys_ioctl-tests: Depend on it.
21530         * modules/sys_select-c++-tests: New file, extracted from
21531         modules/sys_select-tests.
21532         * modules/sys_select-tests: Depend on it.
21533         * modules/sys_socket-c++-tests: New file, extracted from
21534         modules/sys_socket-tests.
21535         * modules/sys_socket-tests: Depend on it.
21536         * modules/sys_stat-c++-tests: New file, extracted from
21537         modules/sys_stat-tests.
21538         * modules/sys_stat-tests: Depend on it.
21539         * modules/sys_time-c++-tests: New file, extracted from
21540         modules/sys_time-tests.
21541         * modules/sys_time-tests: Depend on it.
21542         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21543         * modules/time-tests: Depend on it.
21544         * modules/unistd-c++-tests: New file, extracted from
21545         modules/unistd-tests.
21546         * modules/unistd-tests: Depend on it.
21547         * modules/wchar-c++-tests: New file, extracted from
21548         modules/wchar-tests.
21549         * modules/wchar-tests: Depend on it.
21550         * modules/wctype-c++-tests: New file, extracted from
21551         modules/wctype-tests.
21552         * modules/wctype-tests: Depend on it.
21553         Reported by Simon Josefsson.
21554
21555 2010-03-28  Bruno Haible  <bruno@clisp.org>
21556
21557         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21558         * gnulib-tool (func_exists_module): New function, extracted from
21559         func_verify_module.
21560         (func_verify_module): Use it.
21561         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21562         'foo' only if 'foo' exists.
21563         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21564         module.
21565
21566 2010-03-28  Bruno Haible  <bruno@clisp.org>
21567
21568         gnulib-tool: Add support for special categories of tests.
21569         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21570         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21571         (func_usage): Document them.
21572         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21573         inc_unportable_tests, inc_all_tests): New variables.
21574         (func_acceptable): Consider these variables.
21575         (func_modules_transitive_closure): Make it work when the 'Status' field
21576         consists of multiple words.
21577         (func_import): Store and restore the values of inc_cxx_tests,
21578         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21579         inc_all_tests in gnulib-comp.m4.
21580         (func_create_testdir): Set inc_all_tests to true.
21581         * doc/gnulib.texi (Extra tests modules): New section.
21582         Suggested by Jim Meyering.
21583
21584 2010-03-28  Bruno Haible  <bruno@clisp.org>
21585
21586         ansi-c++-opt: Allow turning off the C++ build by default.
21587         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21588         gl_CXX_CHOICE_DEFAULT_NO is defined.
21589         Requested by Eric Blake.
21590
21591 2010-03-28  Bruno Haible  <bruno@clisp.org>
21592
21593         unistd: Avoid #define replacements in C++ mode.
21594         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21595         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21596         setsockopt, shutdown, select): In C++, attach a warning to the function
21597         if possible, rather than #defining the symbol to a dysfunctional alias.
21598         Reported by John W. Eaton <jwe@gnu.org>.
21599
21600 2010-03-28  Bruno Haible  <bruno@clisp.org>
21601
21602         Fix link errors on mingw.
21603         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21604         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21605         $(LIBSOCKET).
21606         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21607         $(LIBSOCKET).
21608
21609 2010-03-28  Bruno Haible  <bruno@clisp.org>
21610             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21611
21612         lib-ignore: Determine different options for different compilers.
21613         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21614         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21615         Add comments.
21616         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21617         * NEWS: Mention the change.
21618
21619 2010-03-27  Bruno Haible  <bruno@clisp.org>
21620
21621         Remove unused GNULIB_XYZ macro definitions.
21622         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21623         * modules/fseek (configure.ac): Likewise.
21624         * modules/ioctl (configure.ac): Likewise.
21625         * modules/open (configure.ac): Likewise.
21626         * modules/stdlib-safer (configure.ac): Likewise.
21627
21628 2010-03-27  Bruno Haible  <bruno@clisp.org>
21629
21630         Add a remark about certain modules.
21631         * modules/malloc (Comment): New section.
21632         * modules/realloc (Comment): Likewise.
21633         * modules/sigpipe (Comment): Likewise.
21634
21635 2010-03-27  Bruno Haible  <bruno@clisp.org>
21636
21637         Resolve conflict between the two kinds of module indicators.
21638         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21639         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21640         * modules/canonicalize (configure.ac): Invoke
21641         gl_MODULE_INDICATOR_FOR_TESTS.
21642         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21643         GNULIB_XYZ.
21644         * tests/test-dirent-c++.cc: Likewise.
21645         * tests/test-dirent-safer.c: Likewise.
21646         * tests/test-dup2.c: Likewise.
21647         * tests/test-fchdir.c: Likewise.
21648         * tests/test-fcntl-h-c++.cc: Likewise.
21649         * tests/test-getopt.c: Likewise.
21650         * tests/test-getopt.h: Likewise.
21651         * tests/test-langinfo-c++.cc: Likewise.
21652         * tests/test-locale-c++.cc: Likewise.
21653         * tests/test-math-c++.cc: Likewise.
21654         * tests/test-pty-c++.cc: Likewise.
21655         * tests/test-search-c++.cc: Likewise.
21656         * tests/test-signal-c++.cc: Likewise.
21657         * tests/test-spawn-c++.cc: Likewise.
21658         * tests/test-stdio-c++.cc: Likewise.
21659         * tests/test-stdlib-c++.cc: Likewise.
21660         * tests/test-string-c++.cc: Likewise.
21661         * tests/test-sys_ioctl-c++.cc: Likewise.
21662         * tests/test-sys_select-c++.cc: Likewise.
21663         * tests/test-sys_socket-c++.cc: Likewise.
21664         * tests/test-sys_stat-c++.cc: Likewise.
21665         * tests/test-sys_time-c++.cc: Likewise.
21666         * tests/test-time-c++.cc: Likewise.
21667         * tests/test-unistd-c++.cc: Likewise.
21668         * tests/test-wchar-c++.cc: Likewise.
21669         * tests/uninorm/test-u8-nfc.c: Likewise.
21670         * tests/uninorm/test-u8-nfd.c: Likewise.
21671         * tests/uninorm/test-u8-nfkc.c: Likewise.
21672         * tests/uninorm/test-u8-nfkd.c: Likewise.
21673         * tests/uninorm/test-u16-nfc.c: Likewise.
21674         * tests/uninorm/test-u16-nfd.c: Likewise.
21675         * tests/uninorm/test-u16-nfkc.c: Likewise.
21676         * tests/uninorm/test-u16-nfkd.c: Likewise.
21677         * tests/uninorm/test-u32-nfc.c: Likewise.
21678         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21679         * tests/uninorm/test-u32-nfd.c: Likewise.
21680         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21681         * tests/uninorm/test-u32-nfkc.c: Likewise.
21682         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21683         * tests/uninorm/test-u32-nfkd.c: Likewise.
21684         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21685         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21686
21687 2010-03-27  Bruno Haible  <bruno@clisp.org>
21688
21689         Distinguish two kinds of module indicators.
21690         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21691         gl_MODULE_INDICATOR.
21692         (gl_MODULE_INDICATOR): New macro.
21693         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21694         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21695         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21696         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21697         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21698         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21699         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21700         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21701         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21702         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21703         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21704         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21705         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21706         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21707         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21708         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21709         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21710         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21711         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21712         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21713         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21714         * modules/cloexec (configure.ac): Likewise.
21715         * modules/getopt-gnu (configure.ac): Likewise.
21716         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21717         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21718         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21719         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21720
21721 2010-03-27  Bruno Haible  <bruno@clisp.org>
21722
21723         New module description field 'Comment'.
21724         * gnulib-tool: New option --extract-comment.
21725         (func_usage): Document it.
21726         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21727         (func_get_comment): New function.
21728         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21729
21730 2010-03-27  Bruno Haible  <bruno@clisp.org>
21731
21732         Addendum to 2010-02-07 commit.
21733         * gnulib-tool (func_usage): Document --extract-applicability option.
21734
21735 2010-03-27  Bruno Haible  <bruno@clisp.org>
21736
21737         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21738         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21739         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21740         rather than link errors.
21741
21742 2010-03-27  Bruno Haible  <bruno@clisp.org>
21743
21744         Avoid side effects from tests-related modules on the compilation of lib.
21745         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21746         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21747         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21748         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21749         macro.
21750         (func_import): Define a witness macro. Assign it a value that depends
21751         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21752         tests-related modules.
21753         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21754         Reported by Jim Meyering.
21755
21756 2010-03-27  Bruno Haible  <bruno@clisp.org>
21757
21758         Factorize common .m4 code.
21759         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21760         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21761         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21762         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21763         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21764         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21765         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21766         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21767         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21768         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21769         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21770         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21771         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21772         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21773         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21774         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21775         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21776         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21777         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21778         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21779         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21780         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21781         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21782         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21783         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21784         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21785         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21786         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21787         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21788         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21789         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21790         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21791
21792 2010-03-27  Bruno Haible  <bruno@clisp.org>
21793
21794         Fix a compilation error on Cygwin with g++ >= 4.3.
21795         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21796         if it is undefined or if we alias it to chmod.
21797         (lstat): Don't warn about the use of this function if it is undefined
21798         or if we alias it to stat.
21799         Reported by Simon Josefsson.
21800
21801 2010-03-27  Bruno Haible  <bruno@clisp.org>
21802
21803         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21804         * modules/getlogin (configure.ac): Update.
21805
21806         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21807         * modules/getlogin_r (configure.ac): Update.
21808
21809         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21810         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21811         * modules/inet_ntop (configure.ac): Update.
21812
21813         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21814         * modules/inet_pton (configure.ac): Update.
21815
21816         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21817         * modules/mbslen (configure.ac): Update.
21818
21819         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21820         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21821         * modules/forkpty (configure.ac): Update.
21822         * modules/openpty (configure.ac): Update.
21823
21824 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21825
21826         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21827         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21828
21829 2010-03-25  Eric Blake  <eblake@redhat.com>
21830
21831         maint: use pragma consistently across replacement headers
21832         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21833         * lib/dirent.in.h (system_header): Likewise.
21834         * lib/errno.in.h (system_header): Likewise.
21835         * lib/float.in.h (system_header): Likewise.
21836         * lib/getopt.in.h (system_header): Likewise.
21837         * lib/iconv.in.h (system_header): Likewise.
21838         * lib/inttypes.in.h (system_header): Likewise.
21839         * lib/langinfo.in.h (system_header): Likewise.
21840         * lib/locale.in.h (system_header): Likewise.
21841         * lib/math.in.h (system_header): Likewise.
21842         * lib/netdb.in.h (system_header): Likewise.
21843         * lib/netinet_in.in.h (system_header): Likewise.
21844         * lib/pty.in.h (system_header): Likewise.
21845         * lib/sched.in.h (system_header): Likewise.
21846         * lib/se-selinux.in.h (system_header): Likewise.
21847         * lib/search.in.h (system_header): Likewise.
21848         * lib/spawn.in.h (system_header): Likewise.
21849         * lib/stdarg.in.h (system_header): Likewise.
21850         * lib/stdint.in.h (system_header): Likewise.
21851         * lib/string.in.h (system_header): Likewise.
21852         * lib/strings.in.h (system_header): Likewise.
21853         * lib/sys_file.in.h (system_header): Likewise.
21854         * lib/sys_ioctl.in.h (system_header): Likewise.
21855         * lib/sys_socket.in.h (system_header): Likewise.
21856         * lib/sys_times.in.h (system_header): Likewise.
21857         * lib/sys_utsname.in.h (system_header): Likewise.
21858         * lib/sys_wait.in.h (system_header): Likewise.
21859         * lib/sysexits.in.h (system_header): Likewise.
21860         * lib/unistd.in.h (system_header): Likewise.
21861         * lib/wctype.in.h (system_header): Likewise.
21862
21863         arpa/inet: fix mingw compilation warning
21864         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21865         Reported by Matthew Bolte.
21866
21867 2010-03-25  Bruno Haible  <bruno@clisp.org>
21868
21869         Avoid collision between gnulib wrapper and libintl wrapper.
21870         * lib/printf.c (printf): Don't define if a printf wrapper is already
21871         defined in intl/printf.c.
21872         Reported by Michel Boaventura <michel@michelboaventura.com>.
21873
21874 2010-03-25  Bruno Haible  <bruno@clisp.org>
21875
21876         Use ANSI C.
21877         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21878
21879 2010-03-25  Bruno Haible  <bruno@clisp.org>
21880
21881         Minor formatting changes.
21882         * lib/acosl.c: Insert space before function argument list.
21883         * lib/argz.c: Likewise.
21884         * lib/asinl.c: Likewise.
21885         * lib/expl.c: Likewise.
21886         * lib/gen-uni-tables.c: Likewise.
21887         * lib/gettext.h: Likewise.
21888         * lib/glthread/lock.h: Likewise.
21889         * lib/tanl.c: Likewise.
21890         * lib/uniname/uniname.c: Likewise.
21891         * tests/test-idpriv-drop.c: Likewise.
21892         * tests/test-idpriv-droptemp.c: Likewise.
21893         * tests/test-lock.c: Likewise.
21894         * tests/test-tls.c: Likewise.
21895         * lib/argp-help.c: Insert space before function-like macro argument
21896         list.
21897         * lib/memcmp.c: Likewise.
21898         * tests/test-base64.c: Likewise.
21899         * lib/localename.c: Insert space before sizeof's argument list.
21900         * lib/safe-alloc.h: Likewise.
21901         * lib/file-set.h: Insert space before macro argument list.
21902         * tests/test-argp.c: Likewise.
21903         * lib/argp-namefrob.h: Insert space before function parameter list.
21904         * lib/getaddrinfo.c: Likewise.
21905         * lib/netdb.in.h: Likewise.
21906         * lib/parse-duration.h: Likewise.
21907         * lib/parse-duration.c: Likewise.
21908         * lib/poll.c: Likewise.
21909         * lib/select.c: Likewise.
21910         * lib/trim.h: Likewise.
21911         * tests/test-usleep.c: Likewise.
21912         * lib/ldexpl.c: Insert space before function parameter list and before
21913         function argument list.
21914         * lib/logl.c: Likewise.
21915         * lib/sqrtl.c: Likewise.
21916         * lib/trim.c: Likewise.
21917         * lib/cosl.c: Use GNU style indentation. Insert space before function
21918         argument list.
21919         * lib/sinl.c: Likewise.
21920         * lib/tsearch.c: Insert space after 'for'.
21921         Reported by Jim Meyering.
21922
21923 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21924
21925         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21926         config header before grepping, as it's not present before
21927         autoreconf/configure are run.  Reported by Simon Josefsson.
21928
21929 2010-03-23  Bruno Haible  <bruno@clisp.org>
21930
21931         pt_chown: Make it work with automake < 1.11.
21932         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21933         Reported by Simon Josefsson.
21934
21935 2010-03-23  Bruno Haible  <bruno@clisp.org>
21936
21937         pt_chown: Don't depend on GPLed modules.
21938         * lib/pt_chown.c: Don't include idpriv.h.
21939         (main): Don't drop privileges.
21940         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21941         Reported by Simon Josefsson.
21942
21943 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21944
21945         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21946         suggestions from karl@freefriends.org (Karl Berry).
21947
21948 2010-03-22  Eric Blake  <eblake@redhat.com>
21949
21950         gethostname: further tweaks
21951         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21952         are overriding gethostname.
21953         Suggested by Bruno Haible.
21954
21955 2010-03-21  Bruno Haible  <bruno@clisp.org>
21956
21957         Fix comments.
21958         * lib/forkpty.c (rpl_forkpty): Fix comment.
21959         * lib/openpty.c (rpl_openpty): Likewise.
21960         Reported by Eric Blake.
21961
21962 2010-03-22  Eric Blake  <eblake@redhat.com>
21963
21964         gethostname: fix build on mingw
21965         * lib/unistd.in.h (includes): Work around fact that mingw
21966         <winsock2.h> re-includes <unistd.h>, by avoiding any
21967         redeclarations if we are being included by <winsock2.h>.
21968         Reported by Matthias Bolte.
21969
21970 2010-03-21  Bruno Haible  <bruno@clisp.org>
21971
21972         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21973         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21974         modifications.
21975         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21976         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21977         provide the replacement.
21978         * modules/forkpty (Depends-on): Add openpty, login_tty.
21979         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21980         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21981         * doc/glibc-functions/forkpty.texi: More supported platforms.
21982         * config/srclist.txt: Add forkpty.c (commented).
21983
21984 2010-03-21  Bruno Haible  <bruno@clisp.org>
21985
21986         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21987         (Makefile.am): Verify that PTY_LIB is defined.
21988
21989         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21990
21991 2010-03-21  Bruno Haible  <bruno@clisp.org>
21992
21993         Tests for module 'login_tty'.
21994         * modules/login_tty-tests: New file.
21995         * tests/test-login_tty.c: New file.
21996
21997         New module 'login_tty'.
21998         * lib/login_tty.c: New file.
21999         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22000         * modules/login_tty: New file.
22001         * doc/glibc-functions/login_tty.texi: Mention the new module.
22002
22003 2010-03-21  Bruno Haible  <bruno@clisp.org>
22004
22005         login_tty: Documentation.
22006         * doc/glibc-functions/login_tty.texi: New file.
22007         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22008
22009 2010-03-21  Bruno Haible  <bruno@clisp.org>
22010
22011         pty: Consistent macro naming.
22012         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22013         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22014         * modules/pty (configure.ac): Update.
22015
22016 2010-03-21  Bruno Haible  <bruno@clisp.org>
22017
22018         Tests for openpty: Make stricter.
22019         * tests/test-openpty.c (main): Add test of canonical processing and
22020         erase.
22021         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22022
22023         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22024         * lib/openpty.c (openpty): New replacement function.
22025         * lib/pty.in.h: Include <termios.h>.
22026         (openpty): Update declaration. Add comments.
22027         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22028         is not declared, arrange to provide the replacement. Check for _getpty
22029         and posix_openpt.
22030         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22031         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22032         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22033         * modules/pty-tests (test_pty_c___LDADD): New variable.
22034         * doc/glibc-functions/openpty.texi: More supported platforms.
22035
22036 2010-03-21  Bruno Haible  <bruno@clisp.org>
22037
22038         setenv: Tweaks.
22039         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22040         the test program.
22041         * doc/posix-functions/setenv.texi: Update platforms list.
22042
22043 2010-03-21  Bruno Haible  <bruno@clisp.org>
22044
22045         New module 'unlockpt'.
22046         * lib/unlockpt.c: New file, from glibc with modifications.
22047         * m4/unlockpt.m4: New file.
22048         * modules/unlockpt: New file.
22049         * lib/stdlib.in.h (unlockpt): New declaration.
22050         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22051         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22052         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22053         HAVE_UNLOCKPT.
22054         * doc/posix-functions/unlockpt.texi: Mention the new module.
22055         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22056         * config/srclist.txt: Add unlockpt.c (commented).
22057
22058 2010-03-21  Jim Meyering  <meyering@redhat.com>
22059
22060         maint.mk: prohibit inclusion of "intprops.h" without use
22061         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22062
22063 2010-03-21  Bruno Haible  <bruno@clisp.org>
22064
22065         New module 'grantpt'.
22066         * lib/grantpt.c: New file, from glibc with modifications.
22067         * m4/grantpt.m4: New file.
22068         * modules/grantpt: New file.
22069         * lib/stdlib.in.h (grantpt): New declaration.
22070         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22071         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22072         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22073         HAVE_GRANTPT.
22074         * doc/posix-functions/grantpt.texi: Mention the new module.
22075         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22076         * config/srclist.txt: Add grantpt.c (commented).
22077
22078 2010-03-21  Bruno Haible  <bruno@clisp.org>
22079
22080         New module 'pt_chown'.
22081         * lib/pt_chown.c: New file, from glibc with modifications.
22082         * lib/pty-private.h: New file, from glibc with modifications.
22083         * modules/pt_chown: New file.
22084         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22085
22086 2010-03-21  Bruno Haible  <bruno@clisp.org>
22087
22088         Tests for module 'ptsname'.
22089         * modules/ptsname-tests: New file.
22090         * tests/test-ptsname.c: New file.
22091
22092         New module 'ptsname'.
22093         * lib/ptsname.c: New file, from glibc with modifications.
22094         * m4/ptsname.m4: New file.
22095         * modules/ptsname: New file.
22096         * lib/stdlib.in.h (ptsname): New declaration.
22097         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22098         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22099         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22100         HAVE_PTSNAME.
22101         * doc/posix-functions/ptsname.texi: Mention the new module.
22102         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22103         * config/srclist.txt: Add ptsname.c (commented).
22104
22105 2010-03-21  Bruno Haible  <bruno@clisp.org>
22106
22107         Tests for module 'ttyname_r'.
22108         * modules/ttyname_r-tests: New file.
22109         * tests/test-ttyname_r.c: New file.
22110
22111         New module 'ttyname_r'.
22112         * lib/ttyname_r.c: New file.
22113         * m4/ttyname_r.m4: New file.
22114         * modules/ttyname_r: New file.
22115         * lib/unistd.in.h (ttyname_r): New declaration.
22116         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22117         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22118         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22119         HAVE_TTYNAME_R.
22120         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22121         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22122
22123 2010-03-20  Bruno Haible  <bruno@clisp.org>
22124
22125         signal: Undefine macro definitions in C++ mode.
22126         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22127         sigfillset): Undefine macro definitions from the system header in C++
22128         mode.
22129         Reported by John W. Eaton <jwe@gnu.org>.
22130
22131 2010-03-20  Bruno Haible  <bruno@clisp.org>
22132
22133         Ensure no #include statements inside extern "C" { ... }.
22134         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22135         contain #include statements.
22136         * lib/time.in.h: Likewise.
22137
22138 2010-03-20  Bruno Haible  <bruno@clisp.org>
22139
22140         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22141         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22142         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22143         Reported by John W. Eaton <jwe@gnu.org>.
22144
22145 2010-03-20  Bruno Haible  <bruno@clisp.org>
22146
22147         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22148         Reported by Jim Meyering.
22149
22150 2010-03-20  Bruno Haible  <bruno@clisp.org>
22151
22152         pipe: Set errno upon failure.
22153         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22154         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22155         errno value in error message.
22156
22157 2010-03-20  Bruno Haible  <bruno@clisp.org>
22158             Jim Meyering  <meyering@redhat.com>
22159
22160         lchown: Avoid "unused variable" warning.
22161         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22162
22163 2010-03-20  Bruno Haible  <bruno@clisp.org>
22164
22165         Work around unlink() bug on MacOS X 10.5.6.
22166         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22167         attempting to unlink a parent directory.
22168         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22169         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22170         activate for the replacement function.
22171         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22172
22173 2010-03-20  Bruno Haible  <bruno@clisp.org>
22174
22175         Fix link errors on Solaris 8.
22176         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22177         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22178
22179 2010-03-19  Jim Meyering  <meyering@redhat.com>
22180
22181         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22182         The _LIBC implementation of build_range_exp correctly honors the
22183         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22184         However, the non-_LIBC implementation would ignore that syntax-bit
22185         flag and return REG_ERANGE unconditionally.
22186         This change makes it honor that flag.
22187         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22188         Make two pointer parameters "const".
22189         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22190         (parse_bracket_exp): Update caller.
22191
22192         regex.m4: correct the reversed range endpoint ([b-a]) test
22193         * m4/regex.m4: When requiring that [b-a] evoke failure,
22194         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22195         test pass once again for x86-based systems.
22196
22197 2010-03-19  Bruno Haible  <bruno@clisp.org>
22198
22199         scandir: Fix link error on Solaris 8.
22200         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22201         macros.
22202
22203 2010-03-19  Bruno Haible  <bruno@clisp.org>
22204
22205         getusershell: Fix documentation.
22206         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22207         module.
22208         * doc/glibc-functions/setusershell.texi: Likewise.
22209
22210         getusershell: Provide declaration, missing on Solaris 9.
22211         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22212         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22213         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22214         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22216         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22217         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22218         HAVE_GETUSERSHELL.
22219         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22220
22221 2010-03-19  Bruno Haible  <bruno@clisp.org>
22222
22223         wctype: Provide iswblank function.
22224         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22225         exists and is fine.
22226         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22227         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22228         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22229         * doc/posix-functions/iswblank.texi: Update.
22230
22231 2010-03-19  Bruno Haible  <bruno@clisp.org>
22232
22233         Tests of module 'pty' in C++ mode.
22234         * modules/pty-tests: New file.
22235         * tests/test-pty-c++.cc: New file.
22236         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22237
22238 2010-03-19  Eric Blake  <eblake@redhat.com>
22239
22240         logb: fix documentation
22241         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22242         1.5 declaration bug.
22243
22244         forkpty, openpty: prefer glibc's const-safe prototype
22245         * lib/forkpty.c (rpl_forkpty): New file.
22246         * lib/openpty.c (rpl_openpty): Likewise.
22247         * modules/forkpty (Files): Distribute it.
22248         * modules/openpty (Files): Likewise.
22249         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22250         check...
22251         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22252         replacement for for non-const BSD signature.
22253         * modules/pty (Makefile.am): Substitute witnesses.
22254         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22255         * tests/test-forkpty.c: Update signature check.
22256         * tests/test-openpty.c: Likewise.
22257         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22258         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22259
22260         forkpty, openpty: split functions into new modules
22261         * modules/pty (Makefile.am): Substitute new witnesses.
22262         (Libraries): Move library detection...
22263         * modules/forkpty: ...into new module.
22264         * modules/openpty: Another new module.
22265         * modules/pty-tests: Rename and split...
22266         * modules/forkpty-tests: ...to this...
22267         * modules/openpty-tests: ...and this.
22268         * tests/test-pty.c: Rename and split...
22269         * tests/test-forkpty.c: ...to this...
22270         * tests/test-openpty.c: ...and this.
22271         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22272         (gl_PTY): Split library searching...
22273         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22274         (gl_FORKPTY, gl_OPENPTY): New macros.
22275         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22276         * NEWS: Mention the split.
22277         * MODULES.html.sh (Misc): Document the modules.
22278         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22279         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22280
22281         pty: improve replacement header
22282         * lib/pty.in.h: New file.
22283         * modules/pty (Files): Ship it.
22284         (Makefile.am): Always build replacement.
22285         * m4/pty.m4: Rename...
22286         * m4/pty_h.m4: ...to this.
22287         (gl_PTY): Modernize setting of witness macros; update check of
22288         forkpty to take proper advantage of cache.
22289         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22290
22291         getopt: avoid compiler warning
22292         * lib/getopt.c (attribute_hidden): Remove unused macro.
22293
22294 2010-03-18  Bruno Haible  <bruno@clisp.org>
22295
22296         Fix link errors on Solaris 8.
22297         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22298         * modules/search-tests (test_search_c___LDADD): Likewise.
22299         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22300         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22301         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22302         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22303         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22304         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22305         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22306
22307 2010-03-18  Bruno Haible  <bruno@clisp.org>
22308
22309         Fix bug introduced on 2010-03-14.
22310         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22311         (gl_SPAWN_H): Require it.
22312         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22313         Reported by Simon Josefsson.
22314
22315 2010-03-18  Bruno Haible  <bruno@clisp.org>
22316
22317         Fix typo introduced on 2009-12-31.
22318         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22319         posix_spawn_file_actions_adddup2.
22320
22321 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22322         and Eric Blake  <eblake@redhat.com>
22323
22324         test-vc-list-files-git: make more robust
22325         * tests/test-vc-list-files-git.sh: Unset problematic environment
22326         variables.  Chain commands together.
22327
22328 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22329
22330         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22331         `AC_CHECK_DECL' invocation.
22332
22333 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22334
22335         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22336         appears before executable statements. Suggested by Petr Sumbera
22337         <Petr.Sumbera@Sun.COM>.
22338
22339 2010-03-14  Bruno Haible  <bruno@clisp.org>
22340
22341         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22342         portability problems. Instead use a simpler test.
22343         (main): Check that invalid arguments are rejected only on Linux.
22344
22345 2010-03-14  Bruno Haible  <bruno@clisp.org>
22346
22347         Fix bug introduced on 2009-12-31.
22348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22349         gl_PREREQ_SYS_H_WINSOCK2 always.
22350         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22351         SYS_SOCKET_H variable.
22352         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22353         Update comments.
22354         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22355         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22356         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22357         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22358         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22359
22360 2010-03-14  Bruno Haible  <bruno@clisp.org>
22361
22362         Fix values returned by sinl, cosl.
22363         * lib/trigl.h: Add specification comments.
22364         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22365         that combines the values from the precomputed table with the values of
22366         the Chebyshev polynomials.
22367
22368 2010-03-14  Bruno Haible  <bruno@clisp.org>
22369
22370         Fix compilation error when modules 'posix_spawn[p]' are not used.
22371         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22372         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22373
22374 2010-03-14  Bruno Haible  <bruno@clisp.org>
22375
22376         Fix compilation error on mingw when module 'time_r' is not used.
22377         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22378         is 1.
22379         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22380         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22381         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22382         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22383
22384 2010-03-14  Bruno Haible  <bruno@clisp.org>
22385
22386         Fix compilation error with Sun C.
22387         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22388         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22389         instead of GCC specific ULONG_LONG_MAX.
22390         * lib/xstrtoll.c: Likewise.
22391         * lib/xstrtoull.c: Likewise.
22392
22393 2010-03-13  Bruno Haible  <bruno@clisp.org>
22394
22395         Allow the user to disable C++ code and tests.
22396         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22397         (gl_PROG_ANSI_CXX): Require it.
22398
22399 2010-03-13  Bruno Haible  <bruno@clisp.org>
22400
22401         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22402         cases.
22403
22404 2010-03-13  Bruno Haible  <bruno@clisp.org>
22405
22406         Test that gnulib does not break the standard C++ headers.
22407         * tests/test-locale-c++2.cc: New file.
22408         * modules/locale-tests (Files): Add it.
22409         (Makefile.am): Compile it for test-locale-c++.
22410         * tests/test-math-c++2.cc: New file.
22411         * modules/math-tests (Files): Add it.
22412         (Makefile.am): Compile it for test-math-c++.
22413         * tests/test-signal-c++2.cc: New file.
22414         * modules/signal-tests (Files): Add it.
22415         (Makefile.am): Compile it for test-signal-c++.
22416         * tests/test-stdio-c++2.cc: New file.
22417         * modules/stdio-tests (Files): Add it.
22418         (Makefile.am): Compile it for test-stdio-c++.
22419         * tests/test-stdlib-c++2.cc: New file.
22420         * modules/stdlib-tests (Files): Add it.
22421         (Makefile.am): Compile it for test-stdlib-c++.
22422         * tests/test-string-c++2.cc: New file.
22423         * modules/string-tests (Files): Add it.
22424         (Makefile.am): Compile it for test-string-c++.
22425         * tests/test-time-c++2.cc: New file.
22426         * modules/time-tests (Files): Add it.
22427         (Makefile.am): Compile it for test-time-c++.
22428         Reported by John W. Eaton <jwe@gnu.org>.
22429
22430 2010-03-13  Bruno Haible  <bruno@clisp.org>
22431
22432         * gnulib-tool (func_usage): Clarify which options are available for
22433         --create-testdir and --create-megatestdir.
22434
22435 2010-03-13  Bruno Haible  <bruno@clisp.org>
22436
22437         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22438         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22439         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22440         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22441         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22442         when appropriate.
22443         Reported by Jim Meyering.
22444
22445 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22446
22447         * gnulib-tool (func_import): Explain origin of code.
22448
22449 2010-03-12  Bruno Haible  <bruno@clisp.org>
22450
22451         Fix problem with automake's definition of CXXLINK.
22452         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22453         Reported by Simon Josefsson and Ludovic Courtès.
22454
22455 2010-03-12  Bruno Haible  <bruno@clisp.org>
22456
22457         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22458         stable releases.
22459
22460 2010-03-11  Bruno Haible  <bruno@clisp.org>
22461
22462         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22463         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22464         whether the system provides one variant or multiple variants of the
22465         function.
22466         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22467         C++ compilers.
22468         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22469         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22470         Reported by Jim Meyering.
22471
22472 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22473
22474         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22475
22476 2010-03-08  Bruno Haible  <bruno@clisp.org>
22477
22478         gnulib-tool: Add support for --libtool in --create-testdir.
22479         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22480         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22481
22482 2010-03-08  Eric Blake  <eblake@redhat.com>
22483
22484         gnulib-tool.texi: mention possibility of git submodule
22485         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22486         submodules.
22487         * doc/.gitignore: Ignore another generated file.
22488
22489 2010-03-08  Karl Berry  <karl@gnu.org>
22490
22491         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22492         of committing gnulib files while skipping others.
22493
22494 2010-03-07  Bruno Haible  <bruno@clisp.org>
22495
22496         Tests of module 'wctype' in C++ mode.
22497         * tests/test-wctype-c++.cc: New file.
22498         * modules/wctype-tests (Files): Add it and tests/signature.h.
22499         (Depends-on): Add ansi-c++-opt.
22500         (Makefile.am): Arrange to compile and run test-wctype-c++.
22501
22502         Tests of module 'wchar' in C++ mode.
22503         * tests/test-wchar-c++.cc: New file.
22504         * modules/wchar-tests (Files): Add it and tests/signature.h.
22505         (Depends-on): Add ansi-c++-opt.
22506         (Makefile.am): Arrange to compile and run test-wchar-c++.
22507         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22508         gl_MODULE_INDICATOR.
22509
22510         Tests of module 'unistd' in C++ mode.
22511         * tests/test-unistd-c++.cc: New file.
22512         * modules/unistd-tests (Files): Add it and tests/signature.h.
22513         (Depends-on): Add ansi-c++-opt.
22514         (Makefile.am): Arrange to compile and run test-unistd-c++.
22515         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22516         gl_MODULE_INDICATOR.
22517
22518         Tests of module 'time' in C++ mode.
22519         * tests/test-time-c++.cc: New file.
22520         * modules/time-tests (Files): Add it and tests/signature.h.
22521         (Depends-on): Add ansi-c++-opt.
22522         (Makefile.am): Arrange to compile and run test-time-c++.
22523         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22524
22525         Tests of module 'sys_time' in C++ mode.
22526         * tests/test-sys_time-c++.cc: New file.
22527         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22528         (Depends-on): Add ansi-c++-opt.
22529         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22530         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22531         gl_MODULE_INDICATOR.
22532
22533         Tests of module 'sys_stat' in C++ mode.
22534         * tests/test-sys_stat-c++.cc: New file.
22535         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22536         (Depends-on): Add ansi-c++-opt.
22537         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22538         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22539         gl_MODULE_INDICATOR.
22540
22541         Tests of module 'sys_socket' in C++ mode.
22542         * tests/test-sys_socket-c++.cc: New file.
22543         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22544         (Depends-on): Add ansi-c++-opt.
22545         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22546         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22547         gl_MODULE_INDICATOR.
22548
22549         Tests of module 'sys_select' in C++ mode.
22550         * tests/test-sys_select-c++.cc: New file.
22551         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22552         (Depends-on): Add ansi-c++-opt.
22553         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22554         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22555         gl_MODULE_INDICATOR.
22556
22557         Tests of module 'sys_ioctl' in C++ mode.
22558         * tests/test-sys_ioctl-c++.cc: New file.
22559         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22560         (Depends-on): Add ansi-c++-opt.
22561         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22562         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22563         gl_MODULE_INDICATOR.
22564
22565         Tests of module 'string' in C++ mode.
22566         * tests/test-string-c++.cc: New file.
22567         * modules/string-tests (Files): Add it and tests/signature.h.
22568         (Depends-on): Add ansi-c++-opt.
22569         (Makefile.am): Arrange to compile and run test-string-c++.
22570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22571         gl_MODULE_INDICATOR.
22572
22573         Tests of module 'stdlib' in C++ mode.
22574         * tests/test-stdlib-c++.cc: New file.
22575         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22576         (Depends-on): Add ansi-c++-opt.
22577         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22578         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22579         gl_MODULE_INDICATOR.
22580
22581         Tests of module 'stdio' in C++ mode.
22582         * tests/test-stdio-c++.cc: New file.
22583         * modules/stdio-tests (Files): Add it and tests/signature.h.
22584         (Depends-on): Add ansi-c++-opt.
22585         (Makefile.am): Arrange to compile and run test-stdio-c++.
22586         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22587         gl_MODULE_INDICATOR.
22588
22589         Tests of module 'spawn' in C++ mode.
22590         * tests/test-spawn-c++.cc: New file.
22591         * modules/spawn-tests (Files): Add it and tests/signature.h.
22592         (Depends-on): Add ansi-c++-opt.
22593         (Makefile.am): Arrange to compile and run test-spawn-c++.
22594         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22595         gl_MODULE_INDICATOR.
22596
22597         Tests of module 'signal' in C++ mode.
22598         * tests/test-signal-c++.cc: New file.
22599         * modules/signal-tests (Files): Add it and tests/signature.h.
22600         (Depends-on): Add ansi-c++-opt.
22601         (Makefile.am): Arrange to compile and run test-signal-c++.
22602         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22603         gl_MODULE_INDICATOR.
22604
22605         Tests of module 'search' in C++ mode.
22606         * tests/test-search-c++.cc: New file.
22607         * modules/search-tests (Files): Add it and tests/signature.h.
22608         (Depends-on): Add ansi-c++-opt.
22609         (Makefile.am): Arrange to compile and run test-search-c++.
22610         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22611         gl_MODULE_INDICATOR.
22612
22613         Tests of module 'math' in C++ mode.
22614         * tests/test-math-c++.cc: New file.
22615         * modules/math-tests (Files): Add it and tests/signature.h.
22616         (Depends-on): Add ansi-c++-opt.
22617         (Makefile.am): Arrange to compile and run test-math-c++.
22618         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22619
22620         Tests of module 'locale' in C++ mode.
22621         * tests/test-locale-c++.cc: New file.
22622         * modules/locale-tests (Files): Add it and tests/signature.h.
22623         (Depends-on): Add ansi-c++-opt.
22624         (Makefile.am): Arrange to compile and run test-locale-c++.
22625         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22626         gl_MODULE_INDICATOR.
22627
22628         Tests of module 'langinfo' in C++ mode.
22629         * tests/test-langinfo-c++.cc: New file.
22630         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22631         (Depends-on): Add ansi-c++-opt.
22632         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22633         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22634         gl_MODULE_INDICATOR.
22635
22636         Tests of module 'iconv-h' in C++ mode.
22637         * tests/test-iconv-h-c++.cc: New file.
22638         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22639         (Depends-on): Add ansi-c++-opt.
22640         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22641
22642         Tests of module 'glob' in C++ mode.
22643         * tests/test-glob-c++.cc: New file.
22644         * modules/glob-tests (Files): Add it.
22645         (Depends-on): Add ansi-c++-opt.
22646         (Makefile.am): Arrange to compile and run test-glob-c++.
22647
22648         Tests of module 'fcntl-h' in C++ mode.
22649         * tests/test-fcntl-h-c++.cc: New file.
22650         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22651         (Depends-on): Add ansi-c++-opt.
22652         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22653         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22654         gl_MODULE_INDICATOR.
22655
22656         Tests of module 'dirent' in C++ mode.
22657         * tests/test-dirent-c++.cc: New file.
22658         * modules/dirent-tests (Files): Add it and tests/signature.h.
22659         (Depends-on): Add ansi-c++-opt.
22660         (Makefile.am): Arrange to compile and run test-dirent-c++.
22661         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22662         gl_MODULE_INDICATOR.
22663
22664         New module 'ansi-c++-opt'.
22665         * modules/ansi-c++-opt: New file.
22666         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22667
22668         Document C++ namespace mode.
22669         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22670
22671         wctype: Avoid #define replacements in C++ mode.
22672         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22673         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22674         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22675         In C++, define a namespaced alias symbol.
22676         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22677         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22678         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22679         rule.
22680
22681         wchar: Avoid #define replacements in C++ mode.
22682         * lib/wchar.in.h: Include c++defs.h.
22683         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22684         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22685         symbol.
22686         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22687         * modules/wchar (Depends-on): Add c++defs.
22688         (Makefile.am): Update wchar.h rule.
22689
22690         unistd: Avoid #define replacements in C++ mode.
22691         * lib/unistd.in.h: Include c++defs.h.
22692         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22693         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22694         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22695         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22696         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22697         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22698         symbol.
22699         (environ): Update.
22700         * modules/unistd (Depends-on): Add c++defs.
22701         (Makefile.am): Update unistd.h rule.
22702
22703         time: Avoid #define replacements in C++ mode.
22704         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22705         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22706         define a namespaced alias symbol.
22707         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22708         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22709         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22710         * modules/time (Depends-on): Add c++defs, warn-on-use.
22711         (Makefile.am): Update time.h rule.
22712         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22713         * modules/nanosleep (configure.ac): Likewise.
22714         * modules/strptime (configure.ac): Likewise.
22715         * modules/timegm (configure.ac): Likewise.
22716
22717         sys_time: Avoid #define replacements in C++ mode.
22718         * lib/sys_time.in.h: Include c++defs.h.
22719         (gettimeofday): In C++, define a namespaced alias symbol.
22720         * modules/sys_time (Depends-on): Add c++defs.
22721         (Makefile.am): Update sys/time.h rule.
22722
22723         sys_stat: Avoid #define replacements in C++ mode.
22724         * lib/sys_stat.in.h: Include c++defs.h.
22725         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22726         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22727         namespaced alias symbol.
22728         In C++, define a namespaced alias symbol.
22729         * modules/sys_stat (Depends-on): Add c++defs.
22730         (Makefile.am): Update sys/stat.h rule.
22731
22732         sys_socket: Avoid #define replacements in C++ mode.
22733         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22734         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22735         definitions also when the system has a <sys/socket.h>.
22736         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22737         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22738         In C++, define a namespaced alias symbol.
22739         * modules/sys_socket (Depends-on): Add c++defs.
22740         (Makefile.am): Update sys/socket.h rule.
22741
22742         sys_select: Avoid #define replacements in C++ mode.
22743         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22744         definitions also when the system has a <sys/select.h>.
22745         (select): In C++, define a namespaced alias symbol.
22746         * modules/sys_select (Depends-on): Add c++defs.
22747         (Makefile.am): Update sys/select.h rule.
22748
22749         sys_ioctl: Avoid #define replacements in C++ mode.
22750         * lib/sys_ioctl.in.h: Include c++defs.h.
22751         (ioctl): In C++, define a namespaced alias symbol.
22752         * modules/sys_ioctl (Depends-on): Add c++defs.
22753         (Makefile.am): Update sys/ioctl.h rule.
22754
22755         string: Avoid #define replacements in C++ mode.
22756         * lib/string.in.h: Include c++defs.h.
22757         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22758         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22759         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22760         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22761         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22762         * modules/string (Depends-on): Add c++defs.
22763         (Makefile.am): Update string.h rule.
22764
22765         stdlib: Avoid #define replacements in C++ mode.
22766         * lib/stdlib.in.h: Include c++defs.h.
22767         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22768         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22769         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22770         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22771         symbol.
22772         * modules/stdlib (Depends-on): Add c++defs.
22773         (Makefile.am): Update stdlib.h rule.
22774
22775         stdio: Avoid #define replacements in C++ mode.
22776         * lib/stdio.in.h: Include c++defs.h.
22777         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22778         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22779         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22780         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22781         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22782         namespaced alias symbol.
22783         * modules/stdio (Depends-on): Add c++defs.
22784         (Makefile.am): Update stdio.h rule.
22785
22786         spawn: Avoid #define replacements in C++ mode.
22787         * lib/spawn.in.h: Include c++defs.h.
22788         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22789         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22790         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22791         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22792         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22793         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22794         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22795         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22796         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22797         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22798         In C++, define a namespaced alias symbol.
22799         * modules/spawn (Depends-on): Add c++defs.
22800         (Makefile.am): Update spawn.h rule.
22801
22802         signal: Avoid #define replacements in C++ mode.
22803         * lib/signal.in.h: Include c++defs.h.
22804         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22805         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22806         namespaced alias symbol.
22807         * modules/signal (Depends-on): Add c++defs.
22808         (Makefile.am): Update signal.h rule.
22809
22810         search: Avoid #define replacements in C++ mode.
22811         * lib/search.in.h: Include c++defs.h.
22812         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22813         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22814         symbol.
22815         * modules/search (Depends-on): Add c++defs.
22816         (Makefile.am): Update search.h rule.
22817
22818         math: Avoid #define replacements in C++ mode.
22819         * lib/math.in.h: Include c++defs.h.
22820         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22821         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22822         trunc, truncl): In C++, define a namespaced alias symbol.
22823         * modules/math (Depends-on): Add c++defs.
22824         (Makefile.am): Update math.h rule.
22825
22826         locale: Avoid #define replacements in C++ mode.
22827         * lib/locale.in.h: Include c++defs.h.
22828         (duplocale): In C++, define a namespaced alias symbol.
22829         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22830         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22831         * modules/locale (Depends-on): Add c++defs.
22832         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22833
22834         langinfo: Avoid #define replacements in C++ mode.
22835         * lib/langinfo.in.h: Include c++defs.h.
22836         (nl_langinfo): In C++, define a namespaced alias symbol.
22837         * modules/langinfo (Depends-on): Add c++defs.
22838         (Makefile.am): Update langinfo.h rule.
22839
22840         iconv-h: Avoid #define replacements in C++ mode.
22841         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22842         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22843         symbol.
22844         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22845         whenever iconv is present.
22846         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22847         (Makefile.am): Update iconv.h rule.
22848
22849         glob: Avoid #define replacements in C++ mode.
22850         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22851         (_gl_glob_errfunc_fn): New type.
22852         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22853         symbol.
22854         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22855         (Makefile.am): Update glob.h rule.
22856
22857         fcntl-h: Avoid #define replacements in C++ mode.
22858         * lib/fcntl.in.h: Include c++defs.h.
22859         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22860         * modules/fcntl-h (Depends-on): Add c++defs.
22861         (Makefile.am): Update fcntl.h rule.
22862
22863         dirent: Avoid #define replacements in C++ mode.
22864         * lib/dirent.in.h: Include c++defs.h.
22865         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22866         namespaced alias symbol.
22867         (dirfd): Update declaration.
22868         * modules/dirent (Depends-on): Add c++defs.
22869         (Makefile.am): Update dirent.h rule.
22870
22871         ctype: Make it usable in C++ code.
22872         * lib/ctype.in.h: Include c++defs.h.
22873         (isblank): Declare as extern "C".
22874         * modules/ctype (Depends-on): Add c++defs.
22875         (Makefile.am): Update ctype.h rule.
22876
22877         New module 'c++defs'.
22878         * modules/c++defs: New file.
22879         * build-aux/c++defs.h: New file.
22880         Reported by John W. Eaton <jwe@gnu.org>.
22881
22882 2010-03-07  Bruno Haible  <bruno@clisp.org>
22883
22884         logb: Provide missing declaration for Cygwin.
22885         * lib/math.in.h (logb): New declaration.
22886         * m4/logb.m4: New file.
22887         * modules/logb (Files): Add m4/logb.m4.
22888         (Depends-on): Add math.
22889         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22890         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22892         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22893         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22894
22895 2010-03-07  Bruno Haible  <bruno@clisp.org>
22896
22897         Fix test-cond link error.
22898         * tests/test-cond.c: Include <stdio.h>.
22899
22900 2010-03-07  Bruno Haible  <bruno@clisp.org>
22901
22902         Fix test-dirent-safer link error.
22903         * modules/dirent-safer-tests (Makefile.am): Define
22904         test_dirent_safer_LDADD.
22905
22906 2010-03-07  Bruno Haible  <bruno@clisp.org>
22907
22908         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22909         among default module list.
22910
22911 2010-03-07  Bruno Haible  <bruno@clisp.org>
22912
22913         Fix link error on platforms with GNU libiconv.
22914         * modules/unistr/u8-strcoll-tests (Makefile): Define
22915         test_u8_strcoll_LDADD.
22916         * modules/unistr/u16-strcoll-tests (Makefile): Define
22917         test_u16_strcoll_LDADD.
22918         * modules/unistr/u32-strcoll-tests (Makefile): Define
22919         test_u32_strcoll_LDADD.
22920
22921 2010-03-07  Bruno Haible  <bruno@clisp.org>
22922
22923         Use POSIX declarations for socket functions.
22924         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22925         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22926         rpl_sendto): Change declaration to match POSIX.
22927         * lib/connect.c (rpl_connect): Likewise.
22928         * lib/accept.c (rpl_accept): Likewise.
22929         * lib/bind.c (rpl_bind): Likewise.
22930         * lib/getpeername.c (rpl_getpeername): Likewise.
22931         * lib/getsockname.c (rpl_getsockname): Likewise.
22932         * lib/recv.c (rpl_recv): Likewise.
22933         * lib/send.c (rpl_send): Likewise.
22934         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22935         * lib/sendto.c (rpl_sendto): Likewise.
22936
22937 2010-03-06  Bruno Haible  <bruno@clisp.org>
22938
22939         Clarify access, euidaccess, faccessat.
22940         * doc/posix-functions/faccessat.texi: Mention security problem under
22941         "Other problems", not "Portability problems".
22942         * doc/posix-functions/access.texi: Likewise. Mention a related security
22943         problem.
22944         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22945         * lib/euidaccess.c: Add comments about platforms.
22946         * lib/unistd.in.h (access, euidaccess): Add warnings.
22947
22948 2010-03-07  Bruno Haible  <bruno@clisp.org>
22949
22950         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22951         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22952         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22953         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22954         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22955         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22956         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22957         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22958         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22959         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22960         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22961         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22962         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22963         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22964         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22965         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22966         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22967         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22968         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22969         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22970         Likewise.
22971         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22972         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22973         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22974         Likewise.
22975         * tests/test-spawn.c (main): Make it work when
22976         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22977
22978 2010-03-07  Bruno Haible  <bruno@clisp.org>
22979
22980         Fix incorrect Makefile.am generation in German locale.
22981         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22982         Execute sed command with character range in C locale.
22983
22984 2010-03-06  Bruno Haible  <bruno@clisp.org>
22985
22986         Tests for module 'iconv-h'.
22987         * modules/iconv-h-tests: New file.
22988         * tests/test-iconv-h.c: New file.
22989
22990         New module 'iconv-h'.
22991         * modules/iconv-h: New file.
22992         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22993         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22994         (configure.ac): Remove gl_ICONV_H.
22995         (Makefile.am): Remove rule for iconv.h.
22996
22997 2010-03-06  Bruno Haible  <bruno@clisp.org>
22998
22999         More consistent naming of *.m4 files.
23000         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23001         * modules/wctype (Files): Update.
23002
23003         More consistent naming of *.m4 files.
23004         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23005         * modules/wchar (Files): Update.
23006
23007 2010-03-06  Jim Meyering  <meyering@redhat.com>
23008
23009         euidaccess: relax license to LGPLv2+
23010         * modules/euidaccess (License): Relax to LGPLv2+.
23011
23012 2010-03-06  Bruno Haible  <bruno@clisp.org>
23013
23014         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23015         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23016         (Makefile.am): Augment lib_SOURCES instead.
23017
23018 2010-03-04  Jim Meyering  <meyering@redhat.com>
23019
23020         utime: remove obsolete module
23021         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23022         unnecessary for years, and has been marked as obsolete for 10 months.
23023         * modules/utime: Remove file.
23024         * lib/utime.c: Remove file.
23025         * m4/utime.m4: Remove file.
23026         * m4/utimes-null.m4: Remove file.
23027         * doc/posix-functions/utime.texi (utime): Remove reference to
23028         the module.  Move the sole "fixed by gnulib" item into the
23029         "problems not fixed by Gnulib" list.
23030         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23031
23032 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23033
23034         * modules/exit (License): Relax license to LGPLv2+.
23035         (Status): Mark as obsolete.
23036         * NEWS: Mention deprecated 'exit' module.
23037         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23038         of now obsolete 'exit'.
23039
23040 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23041
23042         fts-lgpl: remove unused module
23043         * modules/fts-lgpl: Remove.
23044         * MODULES.html.sh (func_all_modules): Adjust.
23045         * check-module (find_included_lib_files): Adjust.
23046         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23047
23048 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23049
23050         copy-acl: enhance Solaris ACL error handling
23051         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23052         * lib/set-mode-acl.c (qset_acl): Likewise.
23053
23054 2010-03-02  Bruno Haible  <bruno@clisp.org>
23055
23056         spawn: Don't override the system defined values on FreeBSD 8.
23057         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23058         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23059         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23060         if HAVE_POSIX_SPAWN is 1.
23061         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23062
23063 2010-03-01  Bruno Haible  <bruno@clisp.org>
23064
23065         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23066         regarding Automake.
23067
23068 2010-02-25  Bruno Haible  <bruno@clisp.org>
23069
23070         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23071         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23072         setting, not afterwards.
23073         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23074
23075 2010-02-24  Eric Blake  <eblake@redhat.com>
23076
23077         bootstrap, git-version-gen: use timestamp
23078         * build-aux/git-version-gen (scriptversion): Force UTC.
23079         * build-aux/bootstrap (scriptversion): New variable.
23080
23081         bootstrap: allow older git
23082         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23083         older than 1.6.4.  Requested by the libvirt project.
23084
23085 2010-02-23  Eric Blake  <eblake@redhat.com>
23086
23087         warn-on-use: work with old autoconf
23088         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23089         AS_VAR semantics of autoconf 2.60.
23090         Reported by Bruno Haible.
23091
23092         bootstrap: improve some comments
23093         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23094         clarification comments.
23095
23096         gettimeofday: provide correct function
23097         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23098         when replacement is declared, otherwise provide gettimeofday.
23099         Reported by Michael Goffioul.
23100
23101 2010-02-23  Jim Meyering  <meyering@redhat.com>
23102
23103         lib-ignore: relax license to "unlimited", not LGPLv2+
23104         * modules/lib-ignore (License): Relax to "unlimited".
23105
23106 2010-02-23  Jim Meyering  <meyering@redhat.com>
23107
23108         lib-ignore: relax license to LGPLv2+
23109         * modules/lib-ignore (License): Relax to LGPLv2+.
23110
23111 2010-02-22  Eric Blake  <eblake@redhat.com>
23112
23113         lseek: avoid bash 3.2 broken pipe bug
23114         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23115         warning from bash 3.2.
23116         Reported by Ben Pfaff, with analysis from Bruno Haible.
23117
23118         bootstrap: support non-FSF copyright holder
23119         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23120         bootstrap.conf override of COPYRIGHT_HOLDER.
23121         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23122
23123         bootstrap: interoperate with gettext 0.14.1
23124         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23125
23126         bootstrap: allow for alternate submodule location
23127         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23128         hardcoding submodule location.
23129         (gnulib_mk): Allow direct use of Makefile.am.
23130
23131         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23132         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23133         rather than reconfiguring where the submodule points.
23134
23135         gettimeofday: restore support for platforms that lack function
23136         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23137         replacement if function is missing.
23138         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23139         * modules/sys_time (Makefile.am): Substitute it.
23140         * lib/sys_time.in.h (gettimeofday): Check it.
23141         Reported by Michael Goffioul.
23142
23143 2010-02-21  Bruno Haible  <bruno@clisp.org>
23144
23145         * lib/stdio.in.h (obstack_printf): Fix typo.
23146
23147 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23148
23149         vc-list-files: use bzr ls's -R option
23150         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23151         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23152
23153 2010-02-21  Jim Meyering  <meyering@redhat.com>
23154
23155         init.sh: fix EXEEXT shims to work also for names like test-prog
23156         * tests/init.sh: Re-exec a better shell, when needed.
23157         If the current shell lacks support for posix $(...), an init.sh-using
23158         test will now try to find a shell that supports that.  If EXEEXT is
23159         nonempty, we also require support for hyphen-in-alias-name and shell
23160         substitutions like ${var#glob}.  Failure to find such a shell results
23161         in a skipped test.
23162
23163 2010-02-21  Bruno Haible  <bruno@clisp.org>
23164
23165         Really work around around "broken pipe" error message from bash 3.2.
23166         * gnulib-tool (func_reset_sigpipe): Remove function.
23167         (echo): In bash 3.2, define to a function that uses printf.
23168         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23169
23170 2010-02-20  Bruno Haible  <bruno@clisp.org>
23171
23172         Restore support for automake 1.9.6 with autoconf 2.61.
23173         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23174         Reported by James Youngman <jay@gnu.org>.
23175
23176 2010-02-20  Bruno Haible  <bruno@clisp.org>
23177
23178         Improve *printf warning condition.
23179         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23180         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23181         and the function is overridden due to SIGPIPE emulation.
23182
23183 2010-02-20  Bruno Haible  <bruno@clisp.org>
23184
23185         * lib/stdio.in.h: Tweak comments.
23186
23187 2010-02-19  Bruno Haible  <bruno@clisp.org>
23188
23189         Make it easier to find modules. New gnulib-tool option '--find'.
23190         * gnulib-tool: New option --find.
23191         (func_usage): Document it.
23192         (func_sanitize_modulelist): New function, extracted from
23193         func_all_modules.
23194         (func_all_modules): Invoke it.
23195         * doc/gnulib-tool.texi (Which modules?): New node.
23196
23197 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23198
23199         * lib/sys_select.in.h: Provide select replacement even if
23200         sys/select.h exists on a system, for Interix.
23201
23202 2010-02-18  Jim Meyering  <meyering@redhat.com>
23203
23204         init.sh: don't use $(...) just yet
23205         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23206         to accommodate e.g., Solaris' /bin/sh.
23207
23208 2010-02-17  Bruno Haible  <bruno@clisp.org>
23209
23210         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23211         Reported by Ludovic Courtès <ludo@gnu.org>.
23212
23213 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23214
23215         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23216         linking with -lintl.
23217
23218 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23219
23220         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23221         if not provided by the system's netdb.h.  Reported by
23222         ludo@gnu.org (Ludovic Courtès).
23223
23224 2010-02-15  Jim Meyering  <meyering@redhat.com>
23225
23226         init.sh: improve portability and efficiency
23227         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23228         "dummy" in a for loop.
23229         Use '!', not '^' to select the complement of a character set used
23230         in a "case" statement.
23231         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23232         Suggestions from Eric Blake.
23233
23234         init.sh: automatically accommodate programs with the .exe suffix
23235         Automatically arrange for an invocation of "prog" to execute the
23236         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23237         may use the simpler "prog", yet still work when built on a system
23238         that requires specifying the added suffix.
23239         Do this by constructing a function named "prog" that invokes
23240         "prog.exe" for each .exe file in selected directories.
23241         * tests/init.sh (find_exe_basenames_): New function.
23242         (create_exe_shim_functions_): New function.
23243         (path_prepend_): Use it.
23244
23245         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23246         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23247         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23248
23249 2010-02-14  Jim Meyering  <meyering@redhat.com>
23250
23251         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23252         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23253         (sc_prohibit_hash_pjw_without_use): New rule.
23254
23255         maint.mk: allow the default upload destination dir to be overridden
23256         * top/maint.mk (upload_dest_dir_): Define with a default that
23257         preserves the status quo.
23258         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23259         Reported by Peter Simons.
23260
23261         maint.mk: prohibit inclusion of "hash.h" without_use
23262         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23263
23264 2010-02-10  Jim Meyering  <meyering@redhat.com>
23265
23266         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23267         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23268
23269 2010-02-09  Eric Blake  <ebb9@byu.net>
23270         and Bruno Haible  <bruno@clisp.org>
23271
23272         obstack-printf-posix: ensure declaration
23273         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23274         extracted from gl_FUNC_OBSTACK_PRINTF.
23275         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23276         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23277         Likewise.
23278         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23279         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23280         0.
23281
23282 2010-02-08  Bruno Haible  <bruno@clisp.org>
23283
23284         gnulib-tool: Fix typo in 2010-02-07 commit.
23285         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23286         Reported by Eric Blake.
23287
23288 2010-02-07  Bruno Haible  <bruno@clisp.org>
23289
23290         gnulib-tool: Fix up caching patches.
23291         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23292         option --no-cache. Use associative arrays when supported by the shell.
23293         (sed_comments): New variable.
23294         (modcache): Renamed from do_cache.
23295         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23296         abbreviate unnecessarily.
23297         (have_associative): New variable.
23298         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23299         way also for ksh and zsh.
23300         (func_init_sed_convert_to_cache_statements): New function, extracted
23301         from func_cache_lookup_module. Add support for associative arrays.
23302         Don't set the c_MODULE_cached variable here. Ignore all lines before
23303         the first field header. Remove only the final newline, not all trailing
23304         newlines. Support empty fields correctly. Limit the use of 'eval' to
23305         assignments.
23306         (func_get_description, func_get_status, func_get_notice,
23307         func_get_applicability, func_get_filelist, func_get_dependencies,
23308         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23309         func_get_automake_snippet, func_get_include_directive,
23310         func_get_link_directive, func_get_license, func_get_maintainer):
23311         Update documentation. List the unoptimized code first. Add support for
23312         associative arrays. Limit the use of 'eval' to assignments.
23313         (func_get_applicability): Undo stylistic pessimisations.
23314         (func_get_automake_snippet, func_get_include_directive): Reduce code
23315         duplication.
23316         (func_modules_transitive_closure, func_modules_add_dummy,
23317         func_modules_notice, func_modules_to_filelist, func_add_file,
23318         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23319         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23320         func_create_testdir, func_create_megatestdir): Update documentation.
23321
23322 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23323
23324         * gnulib-tool (func_cache_lookup_module): Store the module name
23325         belonging to the cache variable; error out if two different
23326         module names map to the same cache variable name.
23327
23328 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23329
23330         gnulib-tool: Make caching optional.
23331         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23332         Update matching short versions of --no-changelog.
23333         (func_usage): Update.
23334         (sed_extract_cache_prog): Renamed from ...
23335         (sed_extract_prog): ... this; revert to old extraction script.
23336         (func_get_description, func_get_status)
23337         (func_get_notice, func_get_applicability, func_get_filelist)
23338         (func_get_dependencies, func_get_autoconf_early_snippet)
23339         (func_get_autoconf_snippet, func_get_automake_snippet)
23340         (func_get_include_directive, func_get_link_directive)
23341         (func_get_license, func_get_maintainer): If $do_cache is false,
23342         use old, non-caching extraction scripts.
23343         Suggestion by Bruno Haible.
23344
23345 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23346
23347         gnulib-tool: cache module metainformation.
23348         * gnulib-tool (sed_extract_prog): Match newline before each
23349         header, and rewrite header to a shell variable suffix.
23350         (func_cache_var, func_cache_lookup_module): New functions,
23351         to turn a module name into a cache variable prefix, and to
23352         look up and cache module metainformation.
23353         (func_get_description, func_get_status)
23354         (func_get_notice, func_get_applicability, func_get_filelist)
23355         (func_get_dependencies, func_get_autoconf_early_snippet)
23356         (func_get_autoconf_snippet, func_get_automake_snippet)
23357         (func_get_include_directive, func_get_link_directive)
23358         (func_get_license, func_get_maintainer): Use
23359         func_cache_lookup_module.
23360
23361 2010-02-07  Bruno Haible  <bruno@clisp.org>
23362
23363         fnctl: Fix missing dependency.
23364         * modules/fcntl (Depends-on): Add getdtablesize.
23365         Reported by John W. Eaton <jwe@gnu.org>.
23366
23367 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23368
23369         Argp: fix recognition of short alias options.
23370
23371         * lib/argp-parse.c (convert_options): Fix improper use of
23372         `|' between character values.
23373         * tests/test-argp.c (group1_option): New alias option
23374         --read (-r).
23375         (group1_parser): Special handling for 'r'.
23376         (test15): New test case.
23377         (test_fun): Add test15.
23378         * tests/test-argp-2.sh: Update expected --help and --usage
23379         outputs.
23380
23381 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23382
23383         * tests/test-argp.c: Fix indentation.
23384
23385 2010-02-04  Eric Blake  <ebb9@byu.net>
23386
23387         gettimeofday: expose type of second argument
23388         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23389         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23390         * tests/test-gettimeofday.c: Use it to silence warning.
23391         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23392         the issue.
23393
23394 2010-02-03  Jim Meyering  <meyering@redhat.com>
23395
23396         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23397         * lib/regcomp.c (TYPE_SIGNED): Define.
23398         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23399
23400         regcomp.c: avoid a new -Wshadow warning
23401         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23402
23403 2010-02-01  Jim Meyering  <meyering@redhat.com>
23404
23405         removing useless parentheses in cpp #define directives
23406         For motivation, see commit c0221df4, "define STREQ(a,b)
23407         consistently, removing useless parentheses"
23408         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23409         * lib/mountlist.c (MNT_IGNORE): Likewise.
23410         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23411
23412 2010-02-01  Eric Blake  <ebb9@byu.net>
23413
23414         sys_time: use link-warning
23415         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23416         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23417         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23418         * modules/sys_time (Depends-on): Add warn-on-use.
23419         (Makefile.am): Always build replacement.
23420         (configure.ac): Update substitutions.
23421         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23422         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23423         bother with SYS_TIME_H.
23424         * modules/gettimeofday (configure.ac): Declare indicator.
23425         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23426         in use.
23427
23428         closein-tests: silence compiler warning
23429         * tests/test-closein.c (main): Ignore fread result.
23430         * modules/closein-tests (Depends-on): Add ignore-value.
23431
23432         tests: silence warning about system return
23433         * tests/test-areadlink-with-size.c (main): Ignore system result.
23434         * tests/test-areadlink.c (main): Likewise.
23435         * tests/test-areadlinkat-with-size.c (main): Likewise.
23436         * tests/test-areadlinkat.c (main): Likewise.
23437         * tests/test-canonicalize-lgpl.c (main): Likewise.
23438         * tests/test-canonicalize.c (main): Likewise.
23439         * tests/test-chown.c (main): Likewise.
23440         * tests/test-fchownat.c (main): Likewise.
23441         * tests/test-fdutimensat.c (main): Likewise.
23442         * tests/test-fstatat.c (main): Likewise.
23443         * tests/test-futimens.c (main): Likewise.
23444         * tests/test-lchown.c (main): Likewise.
23445         * tests/test-link.c (main): Likewise.
23446         * tests/test-linkat.c (main): Likewise.
23447         * tests/test-lstat.c (main): Likewise.
23448         * tests/test-mkdir.c (main): Likewise.
23449         * tests/test-mkdirat.c (main): Likewise.
23450         * tests/test-mkfifo.c (main): Likewise.
23451         * tests/test-mkfifoat.c (main): Likewise.
23452         * tests/test-mknod.c (main): Likewise.
23453         * tests/test-readlink.c (main): Likewise.
23454         * tests/test-remove.c (main): Likewise.
23455         * tests/test-rename.c (main): Likewise.
23456         * tests/test-renameat.c (main): Likewise.
23457         * tests/test-rmdir.c (main): Likewise.
23458         * tests/test-symlink.c (main): Likewise.
23459         * tests/test-symlinkat.c (main): Likewise.
23460         * tests/test-unlink.c (main): Likewise.
23461         * tests/test-unlinkat.c (main): Likewise.
23462         * tests/test-utimens.c (main): Likewise.
23463         * tests/test-utimensat.c (main): Likewise.
23464         * modules/areadlink-tests (Depends-on): Add ignore-value.
23465         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23466         * modules/areadlinkat-tests (Depends-on): Likewise.
23467         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23468         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23469         * modules/canonicalize-tests (Depends-on): Likewise.
23470         * modules/chown-tests (Depends-on): Likewise.
23471         * modules/fdutimensat-tests (Depends-on): Likewise.
23472         * modules/futimens-tests (Depends-on): Likewise.
23473         * modules/lchown-tests (Depends-on): Likewise.
23474         * modules/link-tests (Depends-on): Likewise.
23475         * modules/linkat-tests (Depends-on): Likewise.
23476         * modules/lstat-tests (Depends-on): Likewise.
23477         * modules/mkdir-tests (Depends-on): Likewise.
23478         * modules/mkfifo-tests (Depends-on): Likewise.
23479         * modules/mkfifoat-tests (Depends-on): Likewise.
23480         * modules/mknod-tests (Depends-on): Likewise.
23481         * modules/openat-tests (Depends-on): Likewise.
23482         * modules/readlink-tests (Depends-on): Likewise.
23483         * modules/remove-tests (Depends-on): Likewise.
23484         * modules/rename-tests (Depends-on): Likewise.
23485         * modules/renameat-tests (Depends-on): Likewise.
23486         * modules/rmdir-tests (Depends-on): Likewise.
23487         * modules/symlink-tests (Depends-on): Likewise.
23488         * modules/symlinkat-tests (Depends-on): Likewise.
23489         * modules/unlink-tests (Depends-on): Likewise.
23490         * modules/utimens-tests (Depends-on): Likewise.
23491         * modules/utimensat-tests (Depends-on): Likewise.
23492
23493 2010-01-31  Bruno Haible  <bruno@clisp.org>
23494
23495         Perform the same test for many <math.h> functions.
23496         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23497         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23498         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23499         of gl_MATHFUNC.
23500         * modules/acos (configure.ac): Likewise.
23501         * modules/asin (configure.ac): Likewise.
23502         * modules/atan (configure.ac): Likewise.
23503         * modules/atan2 (configure.ac): Likewise.
23504         * modules/cbrt (configure.ac): Likewise.
23505         * modules/copysign (configure.ac): Likewise.
23506         * modules/cos (configure.ac): Likewise.
23507         * modules/cosh (configure.ac): Likewise.
23508         * modules/erf (configure.ac): Likewise.
23509         * modules/erfc (configure.ac): Likewise.
23510         * modules/exp (configure.ac): Likewise.
23511         * modules/fmod (configure.ac): Likewise.
23512         * modules/hypot (configure.ac): Likewise.
23513         * modules/j0 (configure.ac): Likewise.
23514         * modules/j1 (configure.ac): Likewise.
23515         * modules/jn (configure.ac): Likewise.
23516         * modules/lgamma (configure.ac): Likewise.
23517         * modules/log (configure.ac): Likewise.
23518         * modules/log10 (configure.ac): Likewise.
23519         * modules/log1p (configure.ac): Likewise.
23520         * modules/pow (configure.ac): Likewise.
23521         * modules/remainder (configure.ac): Likewise.
23522         * modules/sin (configure.ac): Likewise.
23523         * modules/sinh (configure.ac): Likewise.
23524         * modules/tan (configure.ac): Likewise.
23525         * modules/tanh (configure.ac): Likewise.
23526         * modules/y0 (configure.ac): Likewise.
23527         * modules/y1 (configure.ac): Likewise.
23528         * modules/yn (configure.ac): Likewise.
23529         Suggested by Paolo Bonzini.
23530
23531 2010-01-31  Bruno Haible  <bruno@clisp.org>
23532
23533         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23534
23535 2010-01-31  Bruno Haible  <bruno@clisp.org>
23536
23537         Work around getdelim() bug on FreeBSD 8.0.
23538         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23539         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23540         not work.
23541         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23542         is 1.
23543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23544         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23545         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23546         a non-zero size.
23547         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23548
23549 2010-01-31  Bruno Haible  <bruno@clisp.org>
23550
23551         Work around getline() bug on FreeBSD 8.0.
23552         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23553         and a non-zero size.
23554         * tests/test-getline.c (main): Likewise.
23555         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23556         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23557
23558 2010-01-28  Eric Blake  <ebb9@byu.net>
23559
23560         regex: fix build failure
23561         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23562         platforms.
23563
23564 2010-01-28  Jim Meyering  <meyering@redhat.com>
23565
23566         regex: do not ignore memory allocation failure
23567         * lib/regex_internal.c (create_cd_newstate): Detect
23568         re_node_set_init_copy failure.   Extracted from glibc commit
23569         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23570
23571         regex: sync more white-space changes from libc
23572         * lib/regex_internal.c: White-space only changes.
23573         * lib/regexec.c: Likewise.
23574
23575         regex: add many uses of __attribute_warn_unused_result__
23576         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23577         * lib/regexec.c: Likewise.
23578         Extracted from a messy glibc commit.
23579
23580         regcomp.c: spelling and merge-artifact from glibc
23581         * lib/regcomp.c: Merge remainder of glibc's
23582         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23583
23584         regcomp.c: sync white-space changes from glibc
23585         * lib/regcomp.c: Merge to accommodate white space
23586         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23587
23588         regcomp.c: do not ignore internal return values
23589         * lib/regcomp.c: Do not ignore internal return values.
23590         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23591         but without its white-space changes and spelling fixes.
23592
23593         regex_internal.h: define __attribute_warn_unused_result__
23594         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23595
23596         maint: add a syntax-check rule to check for vulnerable Makefile.in
23597         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23598
23599 2010-01-27  Jim Meyering  <meyering@redhat.com>
23600
23601         ncftpput-ftp: clean up spaces
23602         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23603         Remove trailing blanks.
23604
23605 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23606
23607         * build-aux/git-version-gen: Fix copyright statement.
23608         * build-aux/gnupload: Likewise.
23609         * tests/test-arcfour.c: Likewise.
23610         * tests/test-arctwo.c: Likewise.
23611         * tests/test-count-one-bits.c: Likewise.
23612         * tests/test-crc.c: Likewise.
23613         * tests/test-des.c: Likewise.
23614         * tests/test-gc-arcfour.c: Likewise.
23615         * tests/test-gc-arctwo.c: Likewise.
23616         * tests/test-gc-des.c: Likewise.
23617         * tests/test-gc-hmac-md5.c: Likewise.
23618         * tests/test-gc-hmac-sha1.c: Likewise.
23619         * tests/test-gc-md2.c: Likewise.
23620         * tests/test-gc-md4.c: Likewise.
23621         * tests/test-gc-md5.c: Likewise.
23622         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23623         * tests/test-gc-rijndael.c: Likewise.
23624         * tests/test-gc-sha1.c: Likewise.
23625         * tests/test-gc.c: Likewise.
23626         * tests/test-gethostname.c: Likewise.
23627         * tests/test-gettimeofday.c: Likewise.
23628         * tests/test-hash.c: Likewise.
23629         * tests/test-hmac-md5.c: Likewise.
23630         * tests/test-hmac-sha1.c: Likewise.
23631         * tests/test-md2.c: Likewise.
23632         * tests/test-md4.c: Likewise.
23633         * tests/test-md5.c: Likewise.
23634         * tests/test-memchr.c: Likewise.
23635         * tests/test-memchr2.c: Likewise.
23636         * tests/test-memcmp.c: Likewise.
23637         * tests/test-memmem.c: Likewise.
23638         * tests/test-memrchr.c: Likewise.
23639         * tests/test-rawmemchr.c: Likewise.
23640         * tests/test-read-file.c: Likewise.
23641         * tests/test-rijndael.c: Likewise.
23642         * tests/test-sockets.c: Likewise.
23643         * tests/test-strchrnul.c: Likewise.
23644         * tests/test-strstr.c: Likewise.
23645         * tests/test-strtod.c: Likewise.
23646         * build-aux/ncftpput-ftp: Likewise.
23647
23648 2010-01-26  Eric Blake  <ebb9@byu.net>
23649
23650         ignore-value: update recommended header name
23651         * modules/ignore-value (Include): Only use <> for headers that
23652         exist in glibc.
23653
23654 2010-01-26  Jim Meyering  <meyering@redhat.com>
23655
23656         test-userspec.c: avoid compiler warnings
23657         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23658         and "initialization discards qualifiers..." warnings.
23659         Put the first "uid" in its own scope, and make char* members "const".
23660
23661 2010-01-25  Bruno Haible  <bruno@clisp.org>
23662
23663         gnulib-tool: Make warning diagnostics consistent.
23664         * gnulib-tool (func_warning): New function.
23665         Use it everywhere where gnulib-tool produces output to stderr and it is
23666         not a fatal error.
23667
23668 2010-01-25  Bruno Haible  <bruno@clisp.org>
23669
23670         Fix test dependencies.
23671         * modules/xstrtol-tests (Depends-on): Add inttypes.
23672         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23673
23674 2010-01-25 Pádraig Brady <P@draigBrady.com>
23675
23676         syntax-check: detect incorrect boolean macro values in config.h
23677         * modules/maintainer-makefile (configure.ac): Parameterize the location
23678         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23679         The logic is from Eric Blake and the location indicated by Jim Meyering.
23680         Note the more natural CONFIG_HEADER name is prohibited by automake
23681         for backwards compatibility reasons.
23682         * top/maint.mk (sc_Wundef_boolean): New rule.
23683
23684 2010-01-25  Jim Meyering  <meyering@redhat.com>
23685
23686         bootstrap: detect MacOS 10.6's shasum, too
23687         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23688         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23689
23690 2010-01-23  Jim Meyering  <meyering@redhat.com>
23691
23692         xstrtoll: new module
23693         * modules/xstrtoll: New file.
23694         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23695         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23696         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23697         ./configure fails if you use this module and lack "long long".
23698         * modules/xstrtoll-tests: New module.
23699         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23700         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23701         new init.sh-based test framework.
23702
23703 2010-01-24  Bruno Haible  <bruno@clisp.org>
23704
23705         Tests for module 'yn'.
23706         * modules/yn-tests: New file.
23707         * tests/test-yn.c: New file.
23708
23709         Tests for module 'y1'.
23710         * modules/y1-tests: New file.
23711         * tests/test-y1.c: New file.
23712
23713         Tests for module 'y0'.
23714         * modules/y0-tests: New file.
23715         * tests/test-y0.c: New file.
23716
23717         Tests for module 'tanh'.
23718         * modules/tanh-tests: New file.
23719         * tests/test-tanh.c: New file.
23720
23721         Tests for module 'tan'.
23722         * modules/tan-tests: New file.
23723         * tests/test-tan.c: New file.
23724
23725         Tests for module 'sqrt'.
23726         * modules/sqrt-tests: New file.
23727         * tests/test-sqrt.c: New file.
23728
23729         Tests for module 'sinh'.
23730         * modules/sinh-tests: New file.
23731         * tests/test-sinh.c: New file.
23732
23733         Tests for module 'sin'.
23734         * modules/sin-tests: New file.
23735         * tests/test-sin.c: New file.
23736
23737         Tests for module 'rint'.
23738         * modules/rint-tests: New file.
23739         * tests/test-rint.c: New file.
23740
23741         Tests for module 'remainder'.
23742         * modules/remainder-tests: New file.
23743         * tests/test-remainder.c: New file.
23744
23745         Tests for module 'pow'.
23746         * modules/pow-tests: New file.
23747         * tests/test-pow.c: New file.
23748
23749         Tests for module 'nextafter'.
23750         * modules/nextafter-tests: New file.
23751         * tests/test-nextafter.c: New file.
23752
23753         Tests for module 'modf'.
23754         * modules/modf-tests: New file.
23755         * tests/test-modf.c: New file.
23756
23757         Tests for module 'logb'.
23758         * modules/logb-tests: New file.
23759         * tests/test-logb.c: New file.
23760
23761         Tests for module 'log1p'.
23762         * modules/log1p-tests: New file.
23763         * tests/test-log1p.c: New file.
23764
23765         Tests for module 'log10'.
23766         * modules/log10-tests: New file.
23767         * tests/test-log10.c: New file.
23768
23769         Tests for module 'log'.
23770         * modules/log-tests: New file.
23771         * tests/test-log.c: New file.
23772
23773         Tests for module 'lgamma'.
23774         * modules/lgamma-tests: New file.
23775         * tests/test-lgamma.c: New file.
23776
23777         Tests for module 'ldexp'.
23778         * modules/ldexp-tests: New file.
23779         * tests/test-ldexp.c: New file.
23780
23781         Tests for module 'jn'.
23782         * modules/jn-tests: New file.
23783         * tests/test-jn.c: New file.
23784
23785         Tests for module 'j1'.
23786         * modules/j1-tests: New file.
23787         * tests/test-j1.c: New file.
23788
23789         Tests for module 'j0'.
23790         * modules/j0-tests: New file.
23791         * tests/test-j0.c: New file.
23792
23793         Tests for module 'hypot'.
23794         * modules/hypot-tests: New file.
23795         * tests/test-hypot.c: New file.
23796
23797         Tests for module 'fmod'.
23798         * modules/fmod-tests: New file.
23799         * tests/test-fmod.c: New file.
23800
23801         Tests for module 'fabs'.
23802         * modules/fabs-tests: New file.
23803         * tests/test-fabs.c: New file.
23804
23805         Tests for module 'exp'.
23806         * modules/exp-tests: New file.
23807         * tests/test-exp.c: New file.
23808
23809         Tests for module 'erfc'.
23810         * modules/erfc-tests: New file.
23811         * tests/test-erfc.c: New file.
23812
23813         Tests for module 'erf'.
23814         * modules/erf-tests: New file.
23815         * tests/test-erf.c: New file.
23816
23817         Tests for module 'cosh'.
23818         * modules/cosh-tests: New file.
23819         * tests/test-cosh.c: New file.
23820
23821         Tests for module 'cos'.
23822         * modules/cos-tests: New file.
23823         * tests/test-cos.c: New file.
23824
23825         Tests for module 'copysign'.
23826         * modules/copysign-tests: New file.
23827         * tests/test-copysign.c: New file.
23828
23829         Tests for module 'cbrt'.
23830         * modules/cbrt-tests: New file.
23831         * tests/test-cbrt.c: New file.
23832
23833         Tests for module 'atan2'.
23834         * modules/atan2-tests: New file.
23835         * tests/test-atan2.c: New file.
23836
23837         Tests for module 'atan'.
23838         * modules/atan-tests: New file.
23839         * tests/test-atan.c: New file.
23840
23841         Tests for module 'asin'.
23842         * modules/asin-tests: New file.
23843         * tests/test-asin.c: New file.
23844
23845         Tests for module 'acos'.
23846         * modules/acos-tests: New file.
23847         * tests/test-acos.c: New file.
23848
23849 2010-01-24  Bruno Haible  <bruno@clisp.org>
23850
23851         Fix tests for common <math.h> functions.
23852         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23853         code snippet that references the function pointer, rather than merely
23854         calling the function. Substitute the FUNC_LIBM variable.
23855         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23856         * modules/acos (configure.ac): Likewise.
23857         * modules/asin (configure.ac): Likewise.
23858         * modules/atan (configure.ac): Likewise.
23859         * modules/atan2 (configure.ac): Likewise.
23860         * modules/cbrt (configure.ac): Likewise.
23861         * modules/copysign (configure.ac): Likewise.
23862         * modules/cos (configure.ac): Likewise.
23863         * modules/cosh (configure.ac): Likewise.
23864         * modules/erf (configure.ac): Likewise.
23865         * modules/erfc (configure.ac): Likewise.
23866         * modules/exp (configure.ac): Likewise.
23867         * modules/fabs (configure.ac): Likewise.
23868         * modules/fmod (configure.ac): Likewise.
23869         * modules/hypot (configure.ac): Likewise.
23870         * modules/j0 (configure.ac): Likewise.
23871         * modules/j1 (configure.ac): Likewise.
23872         * modules/jn (configure.ac): Likewise.
23873         * modules/ldexp (configure.ac): Likewise.
23874         * modules/lgamma (configure.ac): Likewise.
23875         * modules/log (configure.ac): Likewise.
23876         * modules/log10 (configure.ac): Likewise.
23877         * modules/log1p (configure.ac): Likewise.
23878         * modules/logb (configure.ac): Likewise.
23879         * modules/modf (configure.ac): Likewise.
23880         * modules/nextafter (configure.ac): Likewise.
23881         * modules/pow (configure.ac): Likewise.
23882         * modules/remainder (configure.ac): Likewise.
23883         * modules/rint (configure.ac): Likewise.
23884         * modules/sin (configure.ac): Likewise.
23885         * modules/sinh (configure.ac): Likewise.
23886         * modules/tan (configure.ac): Likewise.
23887         * modules/tanh (configure.ac): Likewise.
23888         * modules/y0 (configure.ac): Likewise.
23889         * modules/y1 (configure.ac): Likewise.
23890         * modules/yn (configure.ac): Likewise.
23891
23892 2010-01-24  Bruno Haible  <bruno@clisp.org>
23893
23894         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23895         * tests/test-acosl.c (x): New variable.
23896         (main): Store argument in x and fetch it from x.
23897         * tests/test-asinl.c (x): New variable.
23898         (main): Store argument in x and fetch it from x.
23899         * tests/test-atanl.c (x): New variable.
23900         (main): Store argument in x and fetch it from x.
23901         * tests/test-cosl.c (x): New variable.
23902         (main): Store argument in x and fetch it from x.
23903         * tests/test-expl.c (x): New variable.
23904         (main): Store argument in x and fetch it from x.
23905         * tests/test-logl.c (x): New variable.
23906         (main): Store argument in x and fetch it from x.
23907         * tests/test-sinl.c (x): New variable.
23908         (main): Store argument in x and fetch it from x.
23909         * tests/test-sqrtl.c (x): New variable.
23910         (main): Store argument in x and fetch it from x.
23911         * tests/test-tanl.c (x): New variable.
23912         (main): Store argument in x and fetch it from x.
23913
23914 2010-01-24  Bruno Haible  <bruno@clisp.org>
23915
23916         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23917         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23918         assignments to the initial TESTS_ENVIRONMENT.
23919         * doc/gnulib.texi (Unit test modules): Document it.
23920         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23921         TESTS_ENVIRONMENT.
23922         * modules/btowc-tests (Makefile.am): Likewise.
23923         * modules/c-stack-tests (Makefile.am): Likewise.
23924         * modules/c-strcase-tests (Makefile.am): Likewise.
23925         * modules/copy-file-tests (Makefile.am): Likewise.
23926         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23927         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23928         * modules/mbrtowc-tests (Makefile.am): Likewise.
23929         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23930         * modules/mbscasestr-tests (Makefile.am): Likewise.
23931         * modules/mbschr-tests (Makefile.am): Likewise.
23932         * modules/mbscspn-tests (Makefile.am): Likewise.
23933         * modules/mbsinit-tests (Makefile.am): Likewise.
23934         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23935         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23936         * modules/mbspbrk-tests (Makefile.am): Likewise.
23937         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23938         * modules/mbsrchr-tests (Makefile.am): Likewise.
23939         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23940         * modules/mbsspn-tests (Makefile.am): Likewise.
23941         * modules/mbsstr-tests (Makefile.am): Likewise.
23942         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23943         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23944         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23945         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23946         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23947         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23948         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23949         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23950         * modules/wcrtomb-tests (Makefile.am): Likewise.
23951         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23952         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23953         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23954         assignments from TESTS_ENVIRONMENT.
23955         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23956         augmentation.
23957         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23958         * modules/atexit-tests (Makefile.am): Likewise.
23959         * modules/binary-io-tests (Makefile.am): Likewise.
23960         * modules/closein-tests (Makefile.am): Likewise.
23961         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23962         * modules/exclude-tests (Makefile.am): Likewise.
23963         * modules/fflush-tests (Makefile.am): Likewise.
23964         * modules/fpending-tests (Makefile.am): Likewise.
23965         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23966         * modules/freadahead-tests (Makefile.am): Likewise.
23967         * modules/freadptr-tests (Makefile.am): Likewise.
23968         * modules/freadseek-tests (Makefile.am): Likewise.
23969         * modules/fseek-tests (Makefile.am): Likewise.
23970         * modules/fseeko-tests (Makefile.am): Likewise.
23971         * modules/ftell-tests (Makefile.am): Likewise.
23972         * modules/ftello-tests (Makefile.am): Likewise.
23973         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23974         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23975         * modules/lseek-tests (Makefile.am): Likewise.
23976         * modules/parse-duration-tests (Makefile.am): Likewise.
23977         * modules/perror-tests (Makefile.am): Likewise.
23978         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23979         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23980         * modules/pipe-tests (Makefile.am): Likewise.
23981         * modules/pread-tests (Makefile.am): Likewise.
23982         * modules/printf-posix-tests (Makefile.am): Likewise.
23983         * modules/select-tests (Makefile.am): Likewise.
23984         * modules/sigpipe-tests (Makefile.am): Likewise.
23985         * modules/tsearch-tests (Makefile.am): Likewise.
23986         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23987         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23988         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23989         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23990         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23991         * modules/version-etc-tests (Makefile.am): Likewise.
23992         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23993         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23994         * modules/xalloc-die-tests (Makefile.am): Likewise.
23995         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23996         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23997         * modules/xstrtol-tests (Makefile.am): Likewise.
23998         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23999         * modules/yesno-tests (Makefile.am): Likewise.
24000         Suggested by Jim Meyering.
24001
24002 2010-01-24  Bruno Haible  <bruno@clisp.org>
24003
24004         More documentation.
24005         * doc/gnulib.texi (Writing modules): New chapter.
24006         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24007         the new chapter.
24008
24009 2010-01-24  Jim Meyering  <meyering@redhat.com>
24010
24011         maint.mk: do not prepend "./" after filtering
24012         * top/maint.mk (_prepend_srcdir_prefix): New variable
24013         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24014         "./" when $(srcdir) is ".".
24015
24016         define STREQ(a,b) consistently, removing useless parentheses
24017         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24018         since the only risk is that "a" or "b" contains an unparenthesized
24019         comma, but if either did that, STREQ would have 3 or more arguments.
24020         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24021         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24022         * lib/hash-triple.c (STREQ): Likewise.
24023         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24024         * lib/getugroups.c (STREQ): Likewise.
24025
24026 2010-01-23  Jim Meyering  <meyering@redhat.com>
24027
24028         maint.mk: fix syntax-check in a non-srcdir build directory
24029         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24030         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24031
24032 2010-01-22  Jim Meyering  <meyering@redhat.com>
24033
24034         userspec: add unit tests
24035         * tests/test-userspec.c: New file.
24036         * modules/userspec-tests: Likewise.
24037
24038 2010-01-21  Jim Meyering  <meyering@redhat.com>
24039
24040         maint.mk: handle source file names containing "." robustly
24041         * top/maint.mk (_dot_escaped_srcdir): Define.
24042         (VC_LIST): Use it in LHS of sed substitution.
24043
24044 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24045
24046         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24047         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24048         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24049         from a non-srcdir build.
24050
24051 2010-01-20  Eric Blake  <ebb9@byu.net>
24052
24053         warn-on-use: use instead of link-warning
24054         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24055         * modules/unistd (Depends-on, Makefile.am): Likewise.
24056         * modules/arpa_inet (Depends-on): Replace link-warning with
24057         warn-on-use.
24058         (Makefile.am): Update rules accordingly.
24059         * modules/ctype (Depends-on, Makefile.am): Likewise.
24060         * modules/dirent (Depends-on, Makefile.am): Likewise.
24061         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24062         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24063         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24064         * modules/locale (Depends-on, Makefile.am): Likewise.
24065         * modules/math (Depends-on, Makefile.am): Likewise.
24066         * modules/search (Depends-on, Makefile.am): Likewise.
24067         * modules/signal (Depends-on, Makefile.am): Likewise.
24068         * modules/spawn (Depends-on, Makefile.am): Likewise.
24069         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24070         * modules/string (Depends-on, Makefile.am): Likewise.
24071         * modules/strings (Depends-on, Makefile.am): Likewise.
24072         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24073         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24074         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24075         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24076         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24077         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24078         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24079         * modules/wchar (Depends-on, Makefile.am): Likewise.
24080         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24081         should be poisoned.
24082         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24083         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24084         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24085         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24086         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24087         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24088         * m4/math_h.m4 (gl_MATH_H): Likewise.
24089         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24090         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24091         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24092         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24093         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24094         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24095         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24096         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24097         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24098         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24099         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24100         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24101         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24102         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24103         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24104         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24105         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24106         GL_LINK_WARNING.
24107         * lib/ctype.in.h: Likewise.
24108         * lib/dirent.in.h: Likewise.
24109         * lib/fcntl.in.h: Likewise.
24110         * lib/inttypes.in.h: Likewise.
24111         * lib/langinfo.in.h: Likewise.
24112         * lib/locale.in.h: Likewise.
24113         * lib/math.in.h: Likewise.
24114         * lib/search.in.h: Likewise.
24115         * lib/signal.in.h: Likewise.
24116         * lib/spawn.in.h: Likewise.
24117         * lib/stdio.in.h: Likewise.
24118         * lib/stdlib.in.h: Likewise.
24119         * lib/string.in.h: Likewise.
24120         * lib/strings.in.h: Likewise.
24121         * lib/sys_file.in.h: Likewise.
24122         * lib/sys_ioctl.in.h: Likewise.
24123         * lib/sys_select.in.h: Likewise.
24124         * lib/sys_socket.in.h: Likewise.
24125         * lib/sys_stat.in.h: Likewise.
24126         * lib/sys_times.in.h: Likewise.
24127         * lib/sys_utsname.in.h: Likewise.
24128         * lib/unistd.in.h: Likewise.
24129         * lib/wchar.in.h: Likewise.
24130
24131 2010-01-20  Bruno Haible  <bruno@clisp.org>
24132
24133         Avoid duplicate -lm.
24134         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24135         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24136         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24137         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24138         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24139         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24140         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24141         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24142         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24143         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24144         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24145         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24146         Reported by Paolo Bonzini.
24147
24148 2010-01-19  Bruno Haible  <bruno@clisp.org>
24149
24150         langinfo, nl_langinfo: Relicense under LGPLv2+.
24151         * modules/langinfo (License): Change to LGPLv2+.
24152         * modules/nl_langinfo (License): Likewise.
24153         Patch by David Lutterkort <lutter@redhat.com>.
24154
24155 2010-01-19  Bruno Haible  <bruno@clisp.org>
24156
24157         Avoid compilation error with cc on OSF/1 5.1.
24158         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24159         statement, not before.
24160         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24161
24162 2010-01-18  Bruno Haible  <bruno@clisp.org>
24163
24164         Avoid a link error due to the __printf__ symbol.
24165         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24166         and 2.6.x.
24167         (__format__, __printf__): Remove definitions.
24168         * lib/argp-fmtstream.h: Likewise.
24169         * lib/argp.h: Likewise.
24170         * lib/error.h: Likewise.
24171         * lib/vasnprintf.h: Likewise.
24172         * lib/xprintf.h: Likewise.
24173         * lib/xvasprintf.h: Likewise.
24174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24175
24176 2010-01-18  Bruno Haible  <bruno@clisp.org>
24177
24178         Tests for module 'tanl'.
24179         * modules/tanl-tests: New file.
24180         * tests/test-tanl.c: New file.
24181
24182         Tests for module 'sqrtl'.
24183         * modules/sqrtl-tests: New file.
24184         * tests/test-sqrtl.c: New file.
24185
24186         Tests for module 'sinl'.
24187         * modules/sinl-tests: New file.
24188         * tests/test-sinl.c: New file.
24189
24190         Tests for module 'logl'.
24191         * modules/logl-tests: New file.
24192         * tests/test-logl.c: New file.
24193
24194         Tests for module 'expl'.
24195         * modules/expl-tests: New file.
24196         * tests/test-expl.c: New file.
24197
24198         Tests for module 'cosl'.
24199         * modules/cosl-tests: New file.
24200         * tests/test-cosl.c: New file.
24201
24202         Tests for module 'atanl'.
24203         * modules/atanl-tests: New file.
24204         * tests/test-atanl.c: New file.
24205
24206         Tests for module 'asinl'.
24207         * modules/asinl-tests: New file.
24208         * tests/test-asinl.c: New file.
24209
24210         Tests for module 'acosl'.
24211         * modules/acosl-tests: New file.
24212         * tests/test-acosl.c: New file.
24213
24214         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24215         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24216         tanl): Use the standard gnulib idiom.
24217         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24218         * lib/sinl.c: Likewise.
24219         * lib/tanl.c: Don't include trigl.c.
24220         (kernel_tanl): Make static.
24221         * lib/sincosl.c: Include trigl.h first.
24222         * lib/trigl.c: Likewise.
24223         * m4/acosl.m4: New file.
24224         * m4/asinl.m4: New file.
24225         * m4/atanl.m4: New file.
24226         * m4/cosl.m4: New file.
24227         * m4/expl.m4: New file.
24228         * m4/logl.m4: New file.
24229         * m4/sinl.m4: New file.
24230         * m4/sqrtl.m4: New file.
24231         * m4/tanl.m4: New file.
24232         * m4/mathl.m4: Remove file.
24233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24234         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24235         Don't initialize GNULIB_MATHL.
24236         * modules/acosl: New file.
24237         * modules/asinl: New file.
24238         * modules/atanl: New file.
24239         * modules/cosl: New file.
24240         * modules/expl: New file.
24241         * modules/logl: New file.
24242         * modules/sinl: New file.
24243         * modules/sqrtl: New file.
24244         * modules/tanl: New file.
24245         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24246         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24247         substitute GNULIB_MATHL.
24248         * modules/mathl: Rewritten.
24249         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24250         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24251         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24252         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24253         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24254         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24255         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24256         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24257         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24258
24259 2010-01-18  Bruno Haible  <bruno@clisp.org>
24260
24261         sqrt: Make gl_FUNC_SQRT requirable.
24262         * m4/sqrt.m4: New file.
24263         * modules/sqrt (Files): Add it.
24264         (configure.ac): Invoke gl_FUNC_SQRT.
24265
24266 2010-01-18  Bruno Haible  <bruno@clisp.org>
24267
24268         New modules for common <math.h> functions.
24269         * m4/mathfunc.m4: New file.
24270         * modules/acos: New file.
24271         * modules/asin: New file.
24272         * modules/atan: New file.
24273         * modules/atan2: New file.
24274         * modules/cbrt: New file.
24275         * modules/copysign: New file.
24276         * modules/cos: New file.
24277         * modules/cosh: New file.
24278         * modules/erf: New file.
24279         * modules/erfc: New file.
24280         * modules/exp: New file.
24281         * modules/fabs: New file.
24282         * modules/fmod: New file.
24283         * modules/hypot: New file.
24284         * modules/j0: New file.
24285         * modules/j1: New file.
24286         * modules/jn: New file.
24287         * modules/ldexp: New file.
24288         * modules/lgamma: New file.
24289         * modules/log: New file.
24290         * modules/log10: New file.
24291         * modules/log1p: New file.
24292         * modules/logb: New file.
24293         * modules/modf: New file.
24294         * modules/nextafter: New file.
24295         * modules/pow: New file.
24296         * modules/remainder: New file.
24297         * modules/rint: New file.
24298         * modules/sin: New file.
24299         * modules/sinh: New file.
24300         * modules/sqrt: New file.
24301         * modules/tan: New file.
24302         * modules/tanh: New file.
24303         * modules/y0: New file.
24304         * modules/y1: New file.
24305         * modules/yn: New file.
24306         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24307         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24308         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24309         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24310         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24311         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24312         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24313         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24314         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24315         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24316         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24317         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24318         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24319         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24320         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24321         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24322         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24323         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24324         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24325         * doc/posix-functions/log.texi: Mention the 'log' module.
24326         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24327         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24328         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24329         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24330         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24331         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24332         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24333         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24334         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24335         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24336         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24337         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24338         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24339         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24340         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24341         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24342
24343 2010-01-18  Jim Meyering  <meyering@redhat.com>
24344
24345         ignore-value: relax license to LGPLv2+
24346         * modules/ignore-value (License): Relax to LGPLv2+.
24347
24348         getdate: don't leak when TZ contains two or more '"'s
24349         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24350         double quote in TZ after the first one.
24351
24352         readtokens: do not leak internal token_lengths buffer
24353         * lib/readtokens.c (readtokens): Free the local, lengths,
24354         when the supplied "token_lengths" parameter is NULL.
24355
24356 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24357
24358         Fix a couple of missing LIBTHREAD link failures on AIX.
24359         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24360         $(LIBTHREAD).
24361         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24362
24363         Link test-poll against INET_PTON_LIB.
24364         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24365         for inet_pton on Solaris 10.
24366
24367 2010-01-17  Bruno Haible  <bruno@clisp.org>
24368
24369         unistdio/*-sprintf: Fix typo in module description.
24370         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24371         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24372         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24373         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24374         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24375         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24376         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24377         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24378
24379 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24380
24381         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24382         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24383         variables in shell case patterns, for AIX and HP-UX ksh.
24384
24385         Split large sed scripts, for HP-UX sed.
24386         * modules/stdio: Split sed scripts around 50 sed commands,
24387         to avoid HP-UX limit of 99 commands, in the near future.
24388         * modules/string: Likewise.
24389         * modules/unistd: Likewise.
24390
24391         gnulib-tool: avoid writing in the current directory.
24392         * gnulib-tool (func_emit_lib_Makefile_am)
24393         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24394         not in the current directory, so concurrent gnulib-tool
24395         instances do not interfere.
24396
24397 2010-01-16  Jim Meyering  <meyering@redhat.com>
24398
24399         doc: update users.txt
24400         * users.txt: Add grep.
24401         (diffutils, gzip): Update URLs.
24402
24403 2010-01-12  Bruno Haible  <bruno@clisp.org>
24404
24405         posix_spawn: Avoid test failure on Cygwin.
24406         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24407         characters.
24408         Reported by Simon Josefsson.
24409
24410 2010-01-12  Bruno Haible  <bruno@clisp.org>
24411
24412         * tests/test-cond.c (main): When skipping the test, show the reason.
24413
24414 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24415
24416         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24417
24418 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24419
24420         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24421         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24422
24423 2010-01-12  Eric Blake  <ebb9@byu.net>
24424
24425         build: guarantee AS_VAR_IF
24426         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24427         (gl_AS_VAR_IF): Move...
24428         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24429         Reported by Simon Josefsson.
24430
24431 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24432
24433         * lib/stdio.in.h: Fix typo.
24434
24435 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24436
24437         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24438         libgpg-error.
24439
24440 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24441
24442         * tests/test-xalloc-die.sh: Use $EXEEXT.
24443
24444 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24445             Bruno Haible  <bruno@clisp.org>
24446
24447         getlogin, getlogin_r: Avoid test failure.
24448         * tests/test-getlogin.c: Include <stdio.h>.
24449         (main): Skip the test when the function fails because stdin is not a
24450         tty.
24451         * tests/test-getlogin_r.c: Include <stdio.h>.
24452         (main): Skip the test when the function fails because stdin is not a
24453         tty.
24454
24455 2010-01-11  Eric Blake  <ebb9@byu.net>
24456
24457         tests: avoid more large file warnings
24458         * tests/test-fflush.c: Avoid warning about ftell use.
24459         * tests/test-fseek.c: Avoid warning about fseek use.
24460
24461 2010-01-10  Bruno Haible  <bruno@clisp.org>
24462
24463         nproc: Work better on Linux when /proc and /sys are not mounted.
24464         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24465         as lower bound when, on glibc/Linux systems,
24466         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24467         Suggested by Pádraig Brady <P@draigbrady.com>.
24468         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24469
24470         nproc: Refactor.
24471         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24472         extracted from num_processors.
24473         (num_processors): Call it.
24474
24475 2010-01-11  Jim Meyering  <meyering@redhat.com>
24476
24477         utimecmp: avoid new warning from upcoming gcc-4.5.0
24478         * lib/utimecmp.c (BILLION): Define using #define rather than an
24479         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24480
24481 2010-01-11  Eric Blake  <ebb9@byu.net>
24482
24483         math: add portability warnings for classification macros
24484         * modules/math (Depends-on): Add warn-on-use.
24485         (Makefile.am): Provide new substitutions.
24486         * m4/math_h.m4 (gl_MATH_H): Require inline.
24487         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24488         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24489         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24490         implement warnings.
24491
24492         unistd: warn on use of environ without module
24493         * modules/unistd (Depends-on): Add warn-on-use.
24494         (Makefile.am): Provide new substitutions.
24495         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24496         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24497
24498         stdio: warn on suspicious uses
24499         * modules/stdio (Depends-on): Add warn-on-use.
24500         (Makefile.am): Provide new substitutions.
24501         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24502         fseeko.
24503         * lib/stdio.in.h (gets): Always warn on use.
24504         (fseek, ftell): Adjust when warnings are issued, and honor
24505         _GL_NO_LARGE_FILES as a way to silence the warning.
24506         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24507         any warning about large file offsets.
24508         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24509         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24510         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24511         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24512         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24513         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24514         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24515         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24516
24517         warn-on-use: new module
24518         * modules/warn-on-use: New file.
24519         * build-aux/warn-on-use.h: Likewise.
24520         * m4/warn-on-use.m4: Likewise.
24521         * MODULES.html.sh (Support for building): Mention it.
24522
24523 2010-01-10  Bruno Haible  <bruno@clisp.org>
24524
24525         Tests for module 'unistr/u32-strdup'.
24526         * modules/unistr/u32-strdup-tests: New file.
24527         * tests/unistr/test-u32-strdup.c: New file.
24528
24529         Tests for module 'unistr/u16-strdup'.
24530         * modules/unistr/u16-strdup-tests: New file.
24531         * tests/unistr/test-u16-strdup.c: New file.
24532
24533         Tests for module 'unistr/u8-strdup'.
24534         * modules/unistr/u8-strdup-tests: New file.
24535         * tests/unistr/test-u8-strdup.c: New file.
24536         * tests/unistr/test-strdup.h: New file.
24537
24538         Tests for module 'unistr/u32-strncmp'.
24539         * modules/unistr/u32-strncmp-tests: New file.
24540         * tests/unistr/test-u32-strncmp.c: New file.
24541
24542         Tests for module 'unistr/u16-strncmp'.
24543         * modules/unistr/u16-strncmp-tests: New file.
24544         * tests/unistr/test-u16-strncmp.c: New file.
24545
24546         Tests for module 'unistr/u8-strncmp'.
24547         * modules/unistr/u8-strncmp-tests: New file.
24548         * tests/unistr/test-u8-strncmp.c: New file.
24549         * tests/unistr/test-strncmp.h: New file.
24550
24551         Tests for module 'unistr/u32-strcoll'.
24552         * modules/unistr/u32-strcoll-tests: New file.
24553         * tests/unistr/test-u32-strcoll.c: New file.
24554
24555         Tests for module 'unistr/u16-strcoll'.
24556         * modules/unistr/u16-strcoll-tests: New file.
24557         * tests/unistr/test-u16-strcoll.c: New file.
24558
24559         Tests for module 'unistr/u8-strcoll'.
24560         * modules/unistr/u8-strcoll-tests: New file.
24561         * tests/unistr/test-u8-strcoll.c: New file.
24562
24563         Tests for module 'unistr/u32-strcmp'.
24564         * modules/unistr/u32-strcmp-tests: New file.
24565         * tests/unistr/test-u32-strcmp.c: New file.
24566         * tests/unistr/test-u32-strcmp.h: New file.
24567
24568         Tests for module 'unistr/u16-strcmp'.
24569         * modules/unistr/u16-strcmp-tests: New file.
24570         * tests/unistr/test-u16-strcmp.c: New file.
24571         * tests/unistr/test-u16-strcmp.h: New file.
24572
24573         Tests for module 'unistr/u8-strcmp'.
24574         * modules/unistr/u8-strcmp-tests: New file.
24575         * tests/unistr/test-u8-strcmp.c: New file.
24576         * tests/unistr/test-u8-strcmp.h: New file.
24577         * tests/unistr/test-strcmp.h: New file.
24578
24579         Tests for module 'unistr/u32-strncat'.
24580         * modules/unistr/u32-strncat-tests: New file.
24581         * tests/unistr/test-u32-strncat.c: New file.
24582
24583         Tests for module 'unistr/u16-strncat'.
24584         * modules/unistr/u16-strncat-tests: New file.
24585         * tests/unistr/test-u16-strncat.c: New file.
24586
24587         Tests for module 'unistr/u8-strncat'.
24588         * modules/unistr/u8-strncat-tests: New file.
24589         * tests/unistr/test-u8-strncat.c: New file.
24590         * tests/unistr/test-strncat.h: New file.
24591
24592         Tests for module 'unistr/u32-strcat'.
24593         * modules/unistr/u32-strcat-tests: New file.
24594         * tests/unistr/test-u32-strcat.c: New file.
24595
24596         Tests for module 'unistr/u16-strcat'.
24597         * modules/unistr/u16-strcat-tests: New file.
24598         * tests/unistr/test-u16-strcat.c: New file.
24599
24600         Tests for module 'unistr/u8-strcat'.
24601         * modules/unistr/u8-strcat-tests: New file.
24602         * tests/unistr/test-u8-strcat.c: New file.
24603         * tests/unistr/test-strcat.h: New file.
24604
24605         Tests for module 'unistr/u32-stpncpy'.
24606         * modules/unistr/u32-stpncpy-tests: New file.
24607         * tests/unistr/test-u32-stpncpy.c: New file.
24608
24609         Tests for module 'unistr/u16-stpncpy'.
24610         * modules/unistr/u16-stpncpy-tests: New file.
24611         * tests/unistr/test-u16-stpncpy.c: New file.
24612
24613         Tests for module 'unistr/u8-stpncpy'.
24614         * modules/unistr/u8-stpncpy-tests: New file.
24615         * tests/unistr/test-u8-stpncpy.c: New file.
24616         * tests/unistr/test-stpncpy.h: New file.
24617
24618         Tests for module 'unistr/u32-strncpy'.
24619         * modules/unistr/u32-strncpy-tests: New file.
24620         * tests/unistr/test-u32-strncpy.c: New file.
24621
24622         Tests for module 'unistr/u16-strncpy'.
24623         * modules/unistr/u16-strncpy-tests: New file.
24624         * tests/unistr/test-u16-strncpy.c: New file.
24625
24626         Tests for module 'unistr/u8-strncpy'.
24627         * modules/unistr/u8-strncpy-tests: New file.
24628         * tests/unistr/test-u8-strncpy.c: New file.
24629         * tests/unistr/test-strncpy.h: New file.
24630
24631         Tests for module 'unistr/u32-stpcpy'.
24632         * modules/unistr/u32-stpcpy-tests: New file.
24633         * tests/unistr/test-u32-stpcpy.c: New file.
24634
24635         Tests for module 'unistr/u16-stpcpy'.
24636         * modules/unistr/u16-stpcpy-tests: New file.
24637         * tests/unistr/test-u16-stpcpy.c: New file.
24638
24639         Tests for module 'unistr/u8-stpcpy'.
24640         * modules/unistr/u8-stpcpy-tests: New file.
24641         * tests/unistr/test-u8-stpcpy.c: New file.
24642         * tests/unistr/test-stpcpy.h: New file.
24643
24644         Tests for module 'unistr/u32-strcpy'.
24645         * modules/unistr/u32-strcpy-tests: New file.
24646         * tests/unistr/test-u32-strcpy.c: New file.
24647
24648         Tests for module 'unistr/u16-strcpy'.
24649         * modules/unistr/u16-strcpy-tests: New file.
24650         * tests/unistr/test-u16-strcpy.c: New file.
24651
24652         Tests for module 'unistr/u8-strcpy'.
24653         * modules/unistr/u8-strcpy-tests: New file.
24654         * tests/unistr/test-u8-strcpy.c: New file.
24655         * tests/unistr/test-strcpy.h: New file.
24656
24657         Tests for module 'unistr/u32-strnlen'.
24658         * modules/unistr/u32-strnlen-tests: New file.
24659         * tests/unistr/test-u32-strnlen.c: New file.
24660
24661         Tests for module 'unistr/u16-strnlen'.
24662         * modules/unistr/u16-strnlen-tests: New file.
24663         * tests/unistr/test-u16-strnlen.c: New file.
24664
24665         Tests for module 'unistr/u8-strnlen'.
24666         * modules/unistr/u8-strnlen-tests: New file.
24667         * tests/unistr/test-u8-strnlen.c: New file.
24668         * tests/unistr/test-strnlen.h: New file.
24669
24670         Tests for module 'unistr/u32-strlen'.
24671         * modules/unistr/u32-strlen-tests: New file.
24672         * tests/unistr/test-u32-strlen.c: New file.
24673
24674         Tests for module 'unistr/u16-strlen'.
24675         * modules/unistr/u16-strlen-tests: New file.
24676         * tests/unistr/test-u16-strlen.c: New file.
24677
24678         Tests for module 'unistr/u8-strlen'.
24679         * modules/unistr/u8-strlen-tests: New file.
24680         * tests/unistr/test-u8-strlen.c: New file.
24681
24682         Tests for module 'unistr/u32-prev'.
24683         * modules/unistr/u32-prev-tests: New file.
24684         * tests/unistr/test-u32-prev.c: New file.
24685
24686         Tests for module 'unistr/u16-prev'.
24687         * modules/unistr/u16-prev-tests: New file.
24688         * tests/unistr/test-u16-prev.c: New file.
24689
24690         Tests for module 'unistr/u8-prev'.
24691         * modules/unistr/u8-prev-tests: New file.
24692         * tests/unistr/test-u8-prev.c: New file.
24693
24694         Tests for module 'unistr/u32-next'.
24695         * modules/unistr/u32-next-tests: New file.
24696         * tests/unistr/test-u32-next.c: New file.
24697
24698         Tests for module 'unistr/u16-next'.
24699         * modules/unistr/u16-next-tests: New file.
24700         * tests/unistr/test-u16-next.c: New file.
24701
24702         Tests for module 'unistr/u8-next'.
24703         * modules/unistr/u8-next-tests: New file.
24704         * tests/unistr/test-u8-next.c: New file.
24705
24706         Tests for module 'unistr/u32-strmbtouc'.
24707         * modules/unistr/u32-strmbtouc-tests: New file.
24708         * tests/unistr/test-u32-strmbtouc.c: New file.
24709
24710         Tests for module 'unistr/u16-strmbtouc'.
24711         * modules/unistr/u16-strmbtouc-tests: New file.
24712         * tests/unistr/test-u16-strmbtouc.c: New file.
24713
24714         Tests for module 'unistr/u8-strmbtouc'.
24715         * modules/unistr/u8-strmbtouc-tests: New file.
24716         * tests/unistr/test-u8-strmbtouc.c: New file.
24717
24718         Tests for module 'unistr/u32-strmblen'.
24719         * modules/unistr/u32-strmblen-tests: New file.
24720         * tests/unistr/test-u32-strmblen.c: New file.
24721
24722         Tests for module 'unistr/u16-strmblen'.
24723         * modules/unistr/u16-strmblen-tests: New file.
24724         * tests/unistr/test-u16-strmblen.c: New file.
24725
24726         Tests for module 'unistr/u8-strmblen'.
24727         * modules/unistr/u8-strmblen-tests: New file.
24728         * tests/unistr/test-u8-strmblen.c: New file.
24729
24730         Tests for module 'unistr/u32-cpy-alloc'.
24731         * modules/unistr/u32-cpy-alloc-tests: New file.
24732         * tests/unistr/test-u32-cpy-alloc.c: New file.
24733
24734         Tests for module 'unistr/u16-cpy-alloc'.
24735         * modules/unistr/u16-cpy-alloc-tests: New file.
24736         * tests/unistr/test-u16-cpy-alloc.c: New file.
24737
24738         Tests for module 'unistr/u8-cpy-alloc'.
24739         * modules/unistr/u8-cpy-alloc-tests: New file.
24740         * tests/unistr/test-u8-cpy-alloc.c: New file.
24741         * tests/unistr/test-cpy-alloc.h: New file.
24742
24743         Tests for module 'unistr/u32-mbsnlen'.
24744         * modules/unistr/u32-mbsnlen-tests: New file.
24745         * tests/unistr/test-u32-mbsnlen.c: New file.
24746
24747         Tests for module 'unistr/u16-mbsnlen'.
24748         * modules/unistr/u16-mbsnlen-tests: New file.
24749         * tests/unistr/test-u16-mbsnlen.c: New file.
24750
24751         Tests for module 'unistr/u8-mbsnlen'.
24752         * modules/unistr/u8-mbsnlen-tests: New file.
24753         * tests/unistr/test-u8-mbsnlen.c: New file.
24754
24755         Tests for module 'unistr/u32-chr'.
24756         * modules/unistr/u32-chr-tests: New file.
24757         * tests/unistr/test-u32-chr.c: New file.
24758
24759         Tests for module 'unistr/u16-chr'.
24760         * modules/unistr/u16-chr-tests: New file.
24761         * tests/unistr/test-u16-chr.c: New file.
24762
24763         Tests for module 'unistr/u8-chr'.
24764         * modules/unistr/u8-chr-tests: New file.
24765         * tests/unistr/test-u8-chr.c: New file.
24766         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24767
24768         Tests for module 'unistr/u32-cmp2'.
24769         * modules/unistr/u32-cmp2-tests: New file.
24770         * tests/unistr/test-u32-cmp2.c: New file.
24771
24772         Tests for module 'unistr/u16-cmp2'.
24773         * modules/unistr/u16-cmp2-tests: New file.
24774         * tests/unistr/test-u16-cmp2.c: New file.
24775
24776         Tests for module 'unistr/u8-cmp2'.
24777         * modules/unistr/u8-cmp2-tests: New file.
24778         * tests/unistr/test-u8-cmp2.c: New file.
24779         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24780
24781         Tests for module 'unistr/u32-cmp'.
24782         * modules/unistr/u32-cmp-tests: New file.
24783         * tests/unistr/test-u32-cmp.c: New file.
24784
24785         Tests for module 'unistr/u16-cmp'.
24786         * modules/unistr/u16-cmp-tests: New file.
24787         * tests/unistr/test-u16-cmp.c: New file.
24788
24789         Tests for module 'unistr/u8-cmp'.
24790         * modules/unistr/u8-cmp-tests: New file.
24791         * tests/unistr/test-u8-cmp.c: New file.
24792         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24793
24794         Tests for module 'unistr/u32-set'.
24795         * modules/unistr/u32-set-tests: New file.
24796         * tests/unistr/test-u32-set.c: New file.
24797
24798         Tests for module 'unistr/u16-set'.
24799         * modules/unistr/u16-set-tests: New file.
24800         * tests/unistr/test-u16-set.c: New file.
24801
24802         Tests for module 'unistr/u8-set'.
24803         * modules/unistr/u8-set-tests: New file.
24804         * tests/unistr/test-u8-set.c: New file.
24805         * tests/unistr/test-set.h: New file.
24806
24807         Tests for module 'unistr/u32-move'.
24808         * modules/unistr/u32-move-tests: New file.
24809         * tests/unistr/test-u32-move.c: New file.
24810
24811         Tests for module 'unistr/u16-move'.
24812         * modules/unistr/u16-move-tests: New file.
24813         * tests/unistr/test-u16-move.c: New file.
24814
24815         Tests for module 'unistr/u8-move'.
24816         * modules/unistr/u8-move-tests: New file.
24817         * tests/unistr/test-u8-move.c: New file.
24818         * tests/unistr/test-move.h: New file.
24819
24820         Tests for module 'unistr/u32-cpy'.
24821         * modules/unistr/u32-cpy-tests: New file.
24822         * tests/unistr/test-u32-cpy.c: New file.
24823
24824         Tests for module 'unistr/u16-cpy'.
24825         * modules/unistr/u16-cpy-tests: New file.
24826         * tests/unistr/test-u16-cpy.c: New file.
24827
24828         Tests for module 'unistr/u8-cpy'.
24829         * modules/unistr/u8-cpy-tests: New file.
24830         * tests/unistr/test-u8-cpy.c: New file.
24831         * tests/unistr/test-cpy.h: New file.
24832
24833 2010-01-09  Bruno Haible  <bruno@clisp.org>
24834
24835         Tests for module 'unistr/u32-uctomb'.
24836         * modules/unistr/u32-uctomb-tests: New file.
24837         * tests/unistr/test-u32-uctomb.c: New file.
24838
24839         Tests for module 'unistr/u16-uctomb'.
24840         * modules/unistr/u16-uctomb-tests: New file.
24841         * tests/unistr/test-u16-uctomb.c: New file.
24842
24843         Tests for module 'unistr/u8-uctomb'.
24844         * modules/unistr/u8-uctomb-tests: New file.
24845         * tests/unistr/test-u8-uctomb.c: New file.
24846
24847         Tests for module 'unistr/u32-mbtoucr'.
24848         * modules/unistr/u32-mbtoucr-tests: New file.
24849         * tests/unistr/test-u32-mbtoucr.c: New file.
24850
24851         Tests for module 'unistr/u16-mbtoucr'.
24852         * modules/unistr/u16-mbtoucr-tests: New file.
24853         * tests/unistr/test-u16-mbtoucr.c: New file.
24854
24855         Tests for module 'unistr/u8-mbtoucr'.
24856         * modules/unistr/u8-mbtoucr-tests: New file.
24857         * tests/unistr/test-u8-mbtoucr.c: New file.
24858
24859         Tests for module 'unistr/u32-mbtouc'.
24860         * modules/unistr/u32-mbtouc-tests: New file.
24861         * tests/unistr/test-u32-mbtouc.c: New file.
24862
24863         Tests for module 'unistr/u16-mbtouc'.
24864         * modules/unistr/u16-mbtouc-tests: New file.
24865         * tests/unistr/test-u16-mbtouc.c: New file.
24866
24867         Tests for module 'unistr/u8-mbtouc'.
24868         * modules/unistr/u8-mbtouc-tests: New file.
24869         * tests/unistr/test-u8-mbtouc.c: New file.
24870
24871         Tests for module 'unistr/u32-mbtouc-unsafe'.
24872         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24873         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24874         * tests/unistr/test-u32-mbtouc.h: New file.
24875
24876         Tests for module 'unistr/u16-mbtouc-unsafe'.
24877         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24878         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24879         * tests/unistr/test-u16-mbtouc.h: New file.
24880
24881         Tests for module 'unistr/u8-mbtouc-unsafe'.
24882         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24883         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24884         * tests/unistr/test-u8-mbtouc.h: New file.
24885
24886         Tests for module 'unistr/u32-mblen'.
24887         * modules/unistr/u32-mblen-tests: New file.
24888         * tests/unistr/test-u32-mblen.c: New file.
24889
24890         Tests for module 'unistr/u16-mblen'.
24891         * modules/unistr/u16-mblen-tests: New file.
24892         * tests/unistr/test-u16-mblen.c: New file.
24893
24894         Tests for module 'unistr/u8-mblen'.
24895         * modules/unistr/u8-mblen-tests: New file.
24896         * tests/unistr/test-u8-mblen.c: New file.
24897
24898         Tests for module 'unistr/u32-to-u16'.
24899         * modules/unistr/u32-to-u16-tests: New file.
24900         * tests/unistr/test-u32-to-u16.c: New file.
24901
24902         Tests for module 'unistr/u32-to-u8'.
24903         * modules/unistr/u32-to-u8-tests: New file.
24904         * tests/unistr/test-u32-to-u8.c: New file.
24905
24906         Tests for module 'unistr/u16-to-u32'.
24907         * modules/unistr/u16-to-u32-tests: New file.
24908         * tests/unistr/test-u16-to-u32.c: New file.
24909
24910         Tests for module 'unistr/u16-to-u8'.
24911         * modules/unistr/u16-to-u8-tests: New file.
24912         * tests/unistr/test-u16-to-u8.c: New file.
24913
24914         Tests for module 'unistr/u8-to-u32'.
24915         * modules/unistr/u8-to-u32-tests: New file.
24916         * tests/unistr/test-u8-to-u32.c: New file.
24917
24918         Tests for module 'unistr/u8-to-u16'.
24919         * modules/unistr/u8-to-u16-tests: New file.
24920         * tests/unistr/test-u8-to-u16.c: New file.
24921
24922         Tests for module 'unistr/u32-check'.
24923         * modules/unistr/u32-check-tests: New file.
24924         * tests/unistr/test-u32-check.c: New file.
24925
24926         Tests for module 'unistr/u16-check'.
24927         * modules/unistr/u16-check-tests: New file.
24928         * tests/unistr/test-u16-check.c: New file.
24929
24930         Tests for module 'unistr/u8-check'.
24931         * modules/unistr/u8-check-tests: New file.
24932         * tests/unistr/test-u8-check.c: New file.
24933
24934         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24935         (category_equals): New function.
24936         (main): Add more tests.
24937         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24938
24939         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24940
24941 2010-01-10  Bruno Haible  <bruno@clisp.org>
24942
24943         unistr/u*-strcoll: Try harder to distinguish different strings.
24944         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24945         compare s1 and s2 to see if they are different.
24946
24947 2010-01-10  Bruno Haible  <bruno@clisp.org>
24948
24949         unistr/u*-stpncpy: Fix the return value.
24950         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24951         description of the return value consistent with stpncpy in glibc.
24952         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24953         written non-NUL unit.
24954
24955 2010-01-10  Bruno Haible  <bruno@clisp.org>
24956
24957         unistr/u*-next: Add missing dependencies.
24958         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24959         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24960         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24961
24962 2010-01-10  Bruno Haible  <bruno@clisp.org>
24963
24964         unistr/u8-mbsnlen: Fix return value for incomplete character.
24965         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24966         u8_mblen.
24967         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24968         Remove unistr/u8-mblen.
24969         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24970         u16_mblen.
24971         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24972         Remove unistr/u16-mblen.
24973
24974 2010-01-10  Bruno Haible  <bruno@clisp.org>
24975
24976         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24977         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24978         Reported by Brian Gough <bjg@gnu.org> and
24979         Chris Clayton <chris2553@googlemail.com> via
24980         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24981
24982 2010-01-09  Bruno Haible  <bruno@clisp.org>
24983
24984         unistr/u16-to-u32: Reject invalid input.
24985         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24986         u16_mbtouc.
24987         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24988         Remove unistr/u16-mbtouc.
24989
24990         unistr/u16-to-u8: Reject invalid input.
24991         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24992         u16_mbtouc.
24993         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24994         Remove unistr/u16-mbtouc.
24995
24996         unistr/u8-to-u32: Reject invalid input.
24997         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24998         u8_mbtouc.
24999         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25000         Remove unistr/u8-mbtouc.
25001
25002         unistr/u8-to-u16: Reject invalid input.
25003         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25004         u8_mbtouc.
25005         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25006         Remove unistr/u8-mbtouc.
25007
25008 2010-01-09  Bruno Haible  <bruno@clisp.org>
25009
25010         Tests for module 'getlogin'.
25011         * modules/getlogin-tests: New file.
25012         * tests/test-getlogin.c: New file.
25013
25014         New module 'getlogin'.
25015         * lib/unistd.in.h (getlogin): New declaration.
25016         * lib/getlogin.c: New file.
25017         * m4/getlogin.m4: New file.
25018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25019         HAVE_GETLOGIN.
25020         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25021         HAVE_GETLOGIN.
25022         * modules/getlogin: New file.
25023         * doc/posix-functions/getlogin.texi: Mention the new module.
25024         Reported by John W. Eaton <jwe@gnu.org>.
25025
25026 2010-01-09  Bruno Haible  <bruno@clisp.org>
25027
25028         getlogin_r: Support for native Windows.
25029         * lib/getlogin_r.c: Include <windows.h>
25030         (getlogin_r): Implement for native Windows.
25031         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25032         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25033         via John W. Eaton <jwe@gnu.org>.
25034
25035 2010-01-09  Bruno Haible  <bruno@clisp.org>
25036
25037         getlogin_r: Small fixes.
25038         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25039         succeeds.
25040         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25041         before testing whether getlogin_r is declared. No need to set
25042         HAVE_DECL_GETLOGIN_R to 1.
25043         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25044
25045 2010-01-09  Bruno Haible  <bruno@clisp.org>
25046
25047         * lib/unistd.in.h (getlogin_r): Add comment.
25048
25049 2010-01-09  Bruno Haible  <bruno@clisp.org>
25050
25051         Tests for module 'getlogin_r'.
25052         * modules/getlogin_r-tests: New file.
25053         * tests/test-getlogin_r.c: New file.
25054
25055 2010-01-09  Jim Meyering  <meyering@redhat.com>
25056
25057         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25058         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25059         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25060
25061 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25062
25063         * lib/dup2.c (rpl_dup2): Improve comment.
25064
25065 2010-01-08  Eric Blake  <ebb9@byu.net>
25066
25067         maint.mk: allow packages to add makefile @@ exceptions
25068         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25069         (sc_makefile_check): Rename...
25070         (sc_makefile_at_at_check): ...to this, and use hook.
25071
25072         dup2: work around mingw bug
25073         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25074         Reported by Simon Josefsson.
25075
25076 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25077
25078         glob: Fix C++ compilation.
25079         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25080         C++.
25081
25082 2010-01-07  Bruno Haible  <bruno@clisp.org>
25083
25084         Fix indentation of wctype.in.h, broken since 2007-01-06.
25085         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25086
25087 2010-01-07  Bruno Haible  <bruno@clisp.org>
25088
25089         mbslen: Avoid collision with system function.
25090         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25091         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25092         * m4/mbslen.m4: New file.
25093         * modules/mbslen (Files): Add it.
25094         (configure.ac): Invoke gl_MBSLEN.
25095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25096         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25097         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25098         via Ian Beckwith <ianb@erislabs.net>.
25099
25100 2010-01-07  Bruno Haible  <bruno@clisp.org>
25101
25102         dirent: Document the last fix.
25103         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25104
25105 2010-01-07  Bruno Haible  <bruno@clisp.org>
25106
25107         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25108         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25109         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25110         va_list are defined.
25111         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25112         Reported by Eric Blake.
25113
25114 2010-01-07  Bruno Haible  <bruno@clisp.org>
25115
25116         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25117         * modules/xlist (Depends-on): Add 'list',
25118         * modules/xoset (Depends-on): Add 'oset'.
25119         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25120
25121 2010-01-07  Bruno Haible  <bruno@clisp.org>
25122
25123         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25124         * doc/posix-functions/strncasecmp.texi: Likewise.
25125
25126 2010-01-07  Bruno Haible  <bruno@clisp.org>
25127
25128         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25129
25130 2010-01-07  John W. Eaton  <jwe@octave.org>
25131
25132         wctype: allow C++ use
25133         * lib/wctype.in.h: Add extern "C" block for C++.
25134
25135 2010-01-06  Eric Blake  <ebb9@byu.net>
25136
25137         maint.mk: detect incorrect GFDL usage
25138         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25139
25140 2010-01-06  Jim Meyering  <meyering@redhat.com>
25141         and Eric Blake  <ebb9@byu.net>
25142
25143         maint.mk: ignore multi-line copyright in NEWS
25144         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25145
25146 2010-01-06  Eric Blake  <ebb9@byu.net>
25147
25148         select: add missing dependency
25149         * modules/select-tests (Depends-on): Move sockets dependency...
25150         * modules/select (Depends-on): ...here.
25151         Reported by Ian Beckwith.
25152
25153         doc: regenerate INSTALL
25154         * doc/INSTALL: Reflect recent autoconf update.
25155         * doc/INSTALL.ISO: Likewise.
25156         * doc/INSTALL.UTF-8: Likewise.
25157
25158         pread: fix compilation on glibc
25159         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25160         Reported by Ralf Wildenhues.
25161
25162         dirent: fix test failure
25163         * lib/dirent.in.h (includes): Guarantee ino_t.
25164         Reported by Ralf Wildenhues.
25165
25166 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25167
25168         linkat, renameat: avoid bad free
25169         * lib/at-func2.c (at_func2): Fix typo.
25170         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25171
25172 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25173
25174         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25175         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25176         to avoid failure of symlink test later.
25177
25178 2010-01-06  Eric Blake  <ebb9@byu.net>
25179
25180         stdio, unistd: guarantee ssize_t
25181         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25182         2008 are exposed when needed.
25183         * lib/stdio.in.h (includes): Likewise.
25184         Reported by Ralf Wildenhues.
25185
25186 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25187
25188         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25189         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25190         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25191
25192 2010-01-06  Jim Meyering  <meyering@redhat.com>
25193
25194         readtokens: this module *does* require xalloc.h
25195         It uses only functions that were omitted by the old syntax-check rule.
25196         * lib/readtokens.c: Include "xalloc.h" once again.
25197         * modules/readtokens (Depends-on): Add xalloc.
25198         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25199
25200 2010-01-05  Eric Blake  <ebb9@byu.net>
25201
25202         maint: support 'make announcement' from a VPATH build
25203         * top/maint.mk (announcement): Look for correct NEWS file.
25204
25205 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25206
25207         utimens (fdutimens): ignore a negative FD, per contract
25208         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25209         when we have a valid file descriptor.  Otherwise, using a brand
25210         new glibc (with just-patched futimens that now fails with EBADF)
25211         would cause this function to fail with ENOSYS.
25212         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25213         See also http://bugzilla.redhat.com/552320.
25214
25215 2010-01-05  Eric Blake  <ebb9@byu.net>
25216
25217         strcase: document what it provides
25218         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25219         gnulib module.
25220         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25221         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25222
25223 2010-01-05  Jim Meyering  <meyering@redhat.com>
25224
25225         maint: remove useless inclusions of "xalloc.h"
25226         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25227         * lib/readtokens.c: Likewise.
25228         * lib/same.c: Likewise.
25229         * modules/getloadavg (Depends-on): Remove xalloc.
25230         * modules/readtokens: Likewise.
25231         * modules/same: Likewise.
25232
25233         maint.mk: include 4 more function names in alloca.h-checking regexp
25234         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25235         regexp.  Before, we would give a false-positive (saying alloca.h
25236         is included unnecessarily) when the only uses involved omitted symbols.
25237
25238         xalloc.h: use consistent formatting
25239         * lib/xalloc.h: Move declarations to start in the first column.
25240
25241 2010-01-05  Eric Blake  <ebb9@byu.net>
25242
25243         mkdir: avoid xalloc
25244         * lib/mkdir.c (includes): Drop unused header.
25245         Reported by John W. Eaton.
25246
25247 2010-01-04  Jim Meyering  <meyering@redhat.com>
25248
25249         nl_langinfo: avoid configure-time syntax error
25250         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25251         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25252         the empty string.  Don't let that provoke a shell syntax error.
25253
25254         regcomp, regexec, fnmatch: avoid array bounds read error
25255         * lib/regcomp.c (build_equiv_class): From glibc:
25256         Use only the low 24 bits of a findidx return value as an index
25257         into the weights array.  Patch by Ulrich Drepper:
25258         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25259         * lib/regexec.c (check_node_accept_bytes): Likewise.
25260         * lib/fnmatch_loop.c (FCT): Likewise.
25261
25262         regcomp: skip collseq lookup when there are no rules
25263         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25264         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25265
25266         regcomp: recognize ill-formed { } expressions
25267         * lib/regcomp.c (parse_dup_op): From glibc:
25268         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25269
25270         regcomp: fix typo in comment
25271         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25272         s/satisfy/satisfies/.
25273
25274         regcomp: sync from glibc: remove dead store
25275         * lib/regcomp.c (duplicate_node_closure): Remove useless
25276         search_duplicated_node call and dead store.
25277
25278         regcomp: sync from glibc; always use nl_langinfo
25279         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25280         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25281         * modules/regex (Depends-on): Add nl_langinfo.
25282
25283 2010-01-04  Eric Blake  <ebb9@byu.net>
25284
25285         fdopendir: fix configure test
25286         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25287
25288 2010-01-01  Bruno Haible  <bruno@clisp.org>
25289
25290         wchar: Remove unused configure check.
25291         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25292
25293 2010-01-01  Eric Blake  <ebb9@byu.net>
25294
25295         headers: make check of system header explicit
25296         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25297         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25298         ourselves.
25299         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25300         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25301         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25302         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25303         internals.
25304         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25305         missing.
25306         Suggested by Bruno Haible.
25307
25308 2010-01-01  Jim Meyering  <meyering@redhat.com>
25309
25310         ChangeLog: tweak to eliminate unnecessary copyright line
25311         * ChangeLog: Remove a copyright line that was mistakenly updated
25312         by today's update-copyright run.  Reported by Eric Blake.
25313
25314         test-update-copyright: don't let envvar setting cause test failure
25315         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25316
25317 2010-01-01  Bruno Haible  <bruno@clisp.org>
25318
25319         localename: Avoid gcc warning.
25320         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25321         function if it is not used.
25322
25323 2010-01-01  Jim Meyering  <meyering@redhat.com>
25324
25325         update nearly all FSF copyright year lists to include 2010
25326         Use the same procedure as for 2009, outlined in
25327         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25328
25329         version-etc: set COPYRIGHT_YEAR to 2010
25330         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25331
25332 2009-12-31  Eric Blake  <ebb9@byu.net>
25333
25334         doc: correct availability of cygwin 1.5.x getopt
25335         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25336         variables.
25337         * doc/posix-functions/opterr.texi (opterr): Likewise.
25338         * doc/posix-functions/optind.texi (optind): Likewise.
25339         * doc/posix-functions/optopt.texi (optopt): Likewise.
25340         * doc/posix-functions/tzname.texi (tzname): Likewise.
25341
25342         openat: update maintainer
25343         * modules/openat (Maintainer): Add myself.
25344
25345         utimens: avoid shadowing warning
25346         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25347         buffers into one, to avoid shadowing, as well as avoiding a
25348         redundant stat.
25349         Reported by Jim Meyering.
25350
25351         test-dup2: avoid compiler warning
25352         * tests/test-dup2.c (is_inheritable): Only define if used.
25353
25354 2010-01-01  Bruno Haible  <bruno@clisp.org>
25355
25356         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25357         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25358         defined, use wctomb instead of wcrtomb.
25359
25360 2010-01-01  Bruno Haible  <bruno@clisp.org>
25361
25362         iconv: Reject native Solaris iconv.
25363         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25364         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25365
25366 2009-12-31  Bruno Haible  <bruno@clisp.org>
25367
25368         * tests/test-signal.c (main): Remove test of 'SIG'.
25369
25370 2009-12-31  Bruno Haible  <bruno@clisp.org>
25371
25372         spawn: Fix incomplete fix.
25373         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25374         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25375         warnings for GNULIB_POSIXCHECK again.
25376         Reported by Eric Blake.
25377
25378 2009-12-31  Bruno Haible  <bruno@clisp.org>
25379
25380         Avoid namespace pollution on glibc systems.
25381         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25382         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25383         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25384         glibc systems.
25385
25386 2009-12-31  Bruno Haible  <bruno@clisp.org>
25387
25388         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25389         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25390         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25391         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25392         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25393         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25394         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25395
25396 2009-12-31  Bruno Haible  <bruno@clisp.org>
25397
25398         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25399         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25400         afterwards.
25401
25402 2009-12-31  Bruno Haible  <bruno@clisp.org>
25403
25404         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25405         SYS_UTSNAME_H.
25406
25407 2009-12-31  Bruno Haible  <bruno@clisp.org>
25408
25409         spawn: Fix misapplied patch.
25410         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25411         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25412         warnings for GNULIB_POSIXCHECK.
25413
25414 2009-12-31  Bruno Haible  <bruno@clisp.org>
25415
25416         times: Update after sys_times changed.
25417         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25418         * modules/times (Files): Add it.
25419         (configure.ac): Invoke gl_FUNC_TIMES.
25420
25421 2009-12-31  Bruno Haible  <bruno@clisp.org>
25422
25423         Use AC_C_INLINE where necessary.
25424         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25425         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25426         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25427         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25428         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25429         * m4/mbiter.m4 (gl_MBITER): Likewise.
25430         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25431         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25432         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25433         * modules/u64 (configure.ac): Likewise.
25434
25435 2009-12-31  Bruno Haible  <bruno@clisp.org>
25436
25437         Use AC_C_INLINE instead of module 'inline' where possible.
25438         * modules/inline (Description): Clarify purpose.
25439         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25440         * modules/count-one-bits (Depends-on): Remove inline.
25441         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25442         * modules/openat (Depends-on): Remove inline.
25443         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25444         instead of depending on module 'inline'.
25445         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25446         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25447         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25448         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25449         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25450         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25451         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25452         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25453         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25454         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25455         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25456         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25457         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25458         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25459         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25460         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25461         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25462         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25463         Likewise.
25464         * modules/unictype/property-ascii-hex-digit (Depends-on,
25465         configure.ac): Likewise.
25466         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25467         configure.ac): Likewise.
25468         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25469         configure.ac): Likewise.
25470         * modules/unictype/property-bidi-block-separator (Depends-on,
25471         configure.ac): Likewise.
25472         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25473         configure.ac): Likewise.
25474         * modules/unictype/property-bidi-common-separator (Depends-on,
25475         configure.ac): Likewise.
25476         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25477         Likewise.
25478         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25479         configure.ac): Likewise.
25480         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25481         configure.ac): Likewise.
25482         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25483         configure.ac): Likewise.
25484         * modules/unictype/property-bidi-european-digit (Depends-on,
25485         configure.ac): Likewise.
25486         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25487         configure.ac): Likewise.
25488         * modules/unictype/property-bidi-left-to-right (Depends-on,
25489         configure.ac): Likewise.
25490         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25491         configure.ac): Likewise.
25492         * modules/unictype/property-bidi-other-neutral (Depends-on,
25493         configure.ac): Likewise.
25494         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25495         Likewise.
25496         * modules/unictype/property-bidi-segment-separator (Depends-on,
25497         configure.ac): Likewise.
25498         * modules/unictype/property-bidi-whitespace (Depends-on,
25499         configure.ac): Likewise.
25500         * modules/unictype/property-combining (Depends-on, configure.ac):
25501         Likewise.
25502         * modules/unictype/property-composite (Depends-on, configure.ac):
25503         Likewise.
25504         * modules/unictype/property-currency-symbol (Depends-on,
25505         configure.ac): Likewise.
25506         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25507         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25508         Likewise.
25509         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25510         configure.ac): Likewise.
25511         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25512         Likewise.
25513         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25514         Likewise.
25515         * modules/unictype/property-extender (Depends-on, configure.ac):
25516         Likewise.
25517         * modules/unictype/property-format-control (Depends-on, configure.ac):
25518         Likewise.
25519         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25520         Likewise.
25521         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25522         Likewise.
25523         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25524         Likewise.
25525         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25526         Likewise.
25527         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25528         Likewise.
25529         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25530         Likewise.
25531         * modules/unictype/property-id-start (Depends-on, configure.ac):
25532         Likewise.
25533         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25534         Likewise.
25535         * modules/unictype/property-ids-binary-operator (Depends-on,
25536         configure.ac): Likewise.
25537         * modules/unictype/property-ids-trinary-operator (Depends-on,
25538         configure.ac): Likewise.
25539         * modules/unictype/property-ignorable-control (Depends-on,
25540         configure.ac): Likewise.
25541         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25542         Likewise.
25543         * modules/unictype/property-join-control (Depends-on, configure.ac):
25544         Likewise.
25545         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25546         Likewise.
25547         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25548         Likewise.
25549         * modules/unictype/property-logical-order-exception (Depends-on,
25550         configure.ac): Likewise.
25551         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25552         Likewise.
25553         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25554         * modules/unictype/property-non-break (Depends-on, configure.ac):
25555         Likewise.
25556         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25557         Likewise.
25558         * modules/unictype/property-numeric (Depends-on, configure.ac):
25559         Likewise.
25560         * modules/unictype/property-other-alphabetic (Depends-on,
25561         configure.ac): Likewise.
25562         * modules/unictype/property-other-default-ignorable-code-point
25563         (Depends-on, configure.ac): Likewise.
25564         * modules/unictype/property-other-grapheme-extend (Depends-on,
25565         configure.ac): Likewise.
25566         * modules/unictype/property-other-id-continue (Depends-on,
25567         configure.ac): Likewise.
25568         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25569         Likewise.
25570         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25571         Likewise.
25572         * modules/unictype/property-other-math (Depends-on, configure.ac):
25573         Likewise.
25574         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25575         Likewise.
25576         * modules/unictype/property-paired-punctuation (Depends-on,
25577         configure.ac): Likewise.
25578         * modules/unictype/property-paragraph-separator (Depends-on,
25579         configure.ac): Likewise.
25580         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25581         Likewise.
25582         * modules/unictype/property-pattern-white-space (Depends-on,
25583         configure.ac): Likewise.
25584         * modules/unictype/property-private-use (Depends-on, configure.ac):
25585         Likewise.
25586         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25587         Likewise.
25588         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25589         Likewise.
25590         * modules/unictype/property-radical (Depends-on, configure.ac):
25591         Likewise.
25592         * modules/unictype/property-sentence-terminal (Depends-on,
25593         configure.ac): Likewise.
25594         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25595         Likewise.
25596         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25597         * modules/unictype/property-terminal-punctuation (Depends-on,
25598         configure.ac): Likewise.
25599         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25600         Likewise.
25601         * modules/unictype/property-unassigned-code-value (Depends-on,
25602         configure.ac): Likewise.
25603         * modules/unictype/property-unified-ideograph (Depends-on,
25604         configure.ac): Likewise.
25605         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25606         Likewise.
25607         * modules/unictype/property-variation-selector (Depends-on,
25608         configure.ac): Likewise.
25609         * modules/unictype/property-white-space (Depends-on, configure.ac):
25610         Likewise.
25611         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25612         Likewise.
25613         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25614         Likewise.
25615         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25616         Likewise.
25617         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25618         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25619         Likewise.
25620
25621 2009-12-31  Bruno Haible  <bruno@clisp.org>
25622
25623         Remove unnecessary AC_C_INLINE invocation.
25624         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25625         since 2009-08-21.
25626
25627 2009-12-31  Jim Meyering  <meyering@redhat.com>
25628
25629         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25630         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25631         With this change, we can all remove the gpg_key_ID = ... definition
25632         from our respective cfg.mk files.
25633
25634         maint.mk: create announcement template in ~/, not in /tmp
25635         * top/maint.mk (emit_upload_commands): Adjust.
25636         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25637         Remove temporary file, .ci-msg.
25638
25639 2009-12-31  Eric Blake  <ebb9@byu.net>
25640
25641         link-warning: always build headers with link warnings
25642         * modules/arpa_inet (Makefile.am): Always build replacement
25643         header.
25644         * modules/ctype (Makefile.am): Likewise.
25645         * modules/dirent (Makefile.am): Likewise.
25646         * modules/inttypes (Makefile.am): Likewise.
25647         * modules/langinfo (Makefile.am): Likewise.
25648         * modules/locale (Makefile.am): Likewise.
25649         * modules/spawn (Makefile.am): Likewise.
25650         * modules/sys_file (Makefile.am): Likewise.
25651         * modules/sys_ioctl (Makefile.am): Likewise.
25652         * modules/sys_select (Makefile.am): Likewise.
25653         * modules/sys_socket (Makefile.am): Likewise.
25654         * modules/sys_times (Makefile.am): Likewise.
25655         * modules/sys_utsname (Makefile.am): Likewise.
25656         * modules/sys_wait (Makefile.am): Likewise.
25657         * modules/wchar (Makefile.am): Likewise.
25658         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25659         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25660         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25661         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25662         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25663         Likewise.
25664         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25665         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25666         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25667         Likewise.
25668         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25669         Likewise.
25670         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25671         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25672         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25673         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25674         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25675         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25676         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25677         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25678         (gl_WCHAR_H_DEFAULTS): Likewise.
25679
25680 2009-12-31  Eric Blake  <ebb9@byu.net>
25681
25682         signal, spawn: use link warnings
25683         * lib/signal.in.h (sigset_t): Make unconditional.
25684         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25685         (sigpending, sigprocmask, sigaction): Add link warnings.
25686         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25687         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25688         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25689         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25690         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25691         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25692         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25693         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25694         (posix_spawn_file_actions_destroy)
25695         (posix_spawn_file_actions_addopen)
25696         (posix_spawn_file_actions_addclose)
25697         (posix_spawn_file_actions_adddup2): Likewise.
25698         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25699         * tests/test-signal.c (main): Enhance test.
25700
25701         spawn: improve wrapper support
25702         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25703         (gl_SPAWN_H_DEFAULTS): New defaults.
25704         * modules/spawn (Makefile.am): Substitute them.
25705         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25706         Only declare if missing or broken.
25707
25708         sys_times, sys_utsname: use include_next
25709         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25710         header.
25711         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25712         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25713         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25714         * modules/sys_times (Depends-on): Add include_next.
25715         (Makefile.am): Substitute additional values.
25716         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25717         * lib/sys_times.in.h (includes): Include native header, if
25718         available.
25719         * lib/sys_utsname.in.h (includes): Likewise.
25720         * tests/test-sys_times.c (main): Enhance test.
25721
25722         fdutimensat: revert prior patch
25723         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25724         utimens.h.
25725         Reported by Bruno Haible.
25726
25727 2009-12-30  Eric Blake  <ebb9@byu.net>
25728
25729         sys_wait: drop link-warning dependency
25730         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25731         link-warning efforts.
25732         * lib/sys_wait.in.h: Likewise.
25733
25734         fdutimensat: remove bogus dependency
25735         * modules/fdutimensat (Depends-on): Drop inline.
25736
25737         unistd: fix typo
25738         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25739
25740 2009-12-30  Bruno Haible  <bruno@clisp.org>
25741
25742         Fix compilation error with Solaris cc.
25743         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25744         * lib/unicase/u16-is-invariant.c: Likewise.
25745         * lib/unicase/u32-is-invariant.c: Likewise.
25746         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25747
25748 2009-12-30  Bruno Haible  <bruno@clisp.org>
25749
25750         Fix test crash.
25751         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25752         locales.
25753         Reported by Simon Josefsson <simon@josefsson.org>.
25754
25755 2009-12-30  Bruno Haible  <bruno@clisp.org>
25756
25757         Fix compilation error on most platforms.
25758         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25759         Reported by Simon Josefsson <simon@josefsson.org>
25760         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25761
25762 2009-12-30  Eric Blake  <ebb9@byu.net>
25763
25764         futimens, utimensat: work around ntfs-3g bug
25765         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25766         a ctime bug is present, and expand workaround to cover ntfs-3g.
25767         * lib/utimens.c (fdutimens, lutimens): Likewise.
25768         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25769         (validate_timespec): Adjust return value.
25770         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25771         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25772         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25773
25774 2009-12-29  Eric Blake  <ebb9@byu.net>
25775
25776         link-warning: make usage consistent
25777         * modules/ctype (Depends-on): Add link-warning.
25778         (Makefile.am): Update rules accordingly.
25779         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25780         * modules/locale (Depends-on, Makefile.am): Likewise.
25781         * modules/sys_file (Makefile.am): Likewise.
25782         * modules/getopt-posix (Makefile.am): Delete unused link warning
25783         efforts.
25784         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25785         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25786         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25787         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25788
25789         stdio: remove unused variables
25790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25791         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25792         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25793
25794         tests: test more substitute headers
25795         * modules/ctype-tests: New file.
25796         * modules/dirent-tests: Likewise.
25797         * modules/spawn-tests: Likewise.
25798         * modules/sys_file-tests: Likewise.
25799         * modules/sys_ioctl-tests: Likewise.
25800         * modules/sys_wait-tests: Likewise.
25801         * tests/test-ctype.c: Likewise.
25802         * tests/test-dirent.c: Likewise.
25803         * tests/test-spawn.c: Likewise.
25804         * tests/test-sys_file.c: Likewise.
25805         * tests/test-sys_ioctl.c: Likewise.
25806         * tests/test-sys_wait.c: Likewise.
25807         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25808         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25809         whether or not flock is in use.
25810
25811         tests: remove License section from module
25812         * modules/arpa_inet-tests: Remove unneeded section.
25813         * modules/byteswap-tests: Likewise.
25814         * modules/ceilf-tests: Likewise.
25815         * modules/ceill-tests: Likewise.
25816         * modules/crypto/des-tests: Likewise.
25817         * modules/crypto/gc-arcfour-tests: Likewise.
25818         * modules/crypto/gc-arctwo-tests: Likewise.
25819         * modules/crypto/gc-des-tests: Likewise.
25820         * modules/crypto/gc-hmac-md5-tests: Likewise.
25821         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25822         * modules/crypto/gc-md2-tests: Likewise.
25823         * modules/crypto/gc-md4-tests: Likewise.
25824         * modules/crypto/gc-md5-tests: Likewise.
25825         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25826         * modules/crypto/gc-rijndael-tests: Likewise.
25827         * modules/crypto/gc-sha1-tests: Likewise.
25828         * modules/crypto/gc-tests: Likewise.
25829         * modules/crypto/md2-tests: Likewise.
25830         * modules/crypto/md4-tests: Likewise.
25831         * modules/fcntl-h-tests: Likewise.
25832         * modules/floorf-tests: Likewise.
25833         * modules/floorl-tests: Likewise.
25834         * modules/frexp-nolibm-tests: Likewise.
25835         * modules/frexp-tests: Likewise.
25836         * modules/frexpl-nolibm-tests: Likewise.
25837         * modules/frexpl-tests: Likewise.
25838         * modules/getaddrinfo-tests: Likewise.
25839         * modules/inttypes-tests: Likewise.
25840         * modules/isfinite-tests: Likewise.
25841         * modules/isinf-tests: Likewise.
25842         * modules/ldexpl-tests: Likewise.
25843         * modules/locale-tests: Likewise.
25844         * modules/math-tests: Likewise.
25845         * modules/netdb-tests: Likewise.
25846         * modules/netinet_in-tests: Likewise.
25847         * modules/printf-frexp-tests: Likewise.
25848         * modules/printf-frexpl-tests: Likewise.
25849         * modules/priv-set-tests: Likewise.
25850         * modules/random_r-tests: Likewise.
25851         * modules/round-tests: Likewise.
25852         * modules/roundf-tests: Likewise.
25853         * modules/roundl-tests: Likewise.
25854         * modules/search-tests: Likewise.
25855         * modules/select-tests: Likewise.
25856         * modules/signal-tests: Likewise.
25857         * modules/stdbool-tests: Likewise.
25858         * modules/stddef-tests: Likewise.
25859         * modules/stdint-tests: Likewise.
25860         * modules/stdio-tests: Likewise.
25861         * modules/stdlib-tests: Likewise.
25862         * modules/string-tests: Likewise.
25863         * modules/strings-tests: Likewise.
25864         * modules/sys_select-tests: Likewise.
25865         * modules/sys_socket-tests: Likewise.
25866         * modules/sys_stat-tests: Likewise.
25867         * modules/sys_time-tests: Likewise.
25868         * modules/sys_utsname-tests: Likewise.
25869         * modules/sysexits-tests: Likewise.
25870         * modules/time-tests: Likewise.
25871         * modules/trunc-tests: Likewise.
25872         * modules/truncf-tests: Likewise.
25873         * modules/truncl-tests: Likewise.
25874         * modules/tsearch-tests: Likewise.
25875         * modules/unistd-tests: Likewise.
25876         * modules/wchar-tests: Likewise.
25877         * modules/wctype-tests: Likewise.
25878
25879         tests: fix license on several tests
25880         * tests/test-des.c: Update to GPLv3+.
25881         * tests/test-flock.c: Likewise.
25882         * tests/test-fsync.c: Likewise.
25883         * tests/test-futimens.h: Likewise.
25884         * tests/test-gc-arcfour.c: Likewise.
25885         * tests/test-gc-arctwo.c: Likewise.
25886         * tests/test-gc-des.c: Likewise.
25887         * tests/test-gc-hmac-md5.c: Likewise.
25888         * tests/test-gc-hmac-sha1.c: Likewise.
25889         * tests/test-gc-md2.c: Likewise.
25890         * tests/test-gc-md4.c: Likewise.
25891         * tests/test-gc-md5.c: Likewise.
25892         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25893         * tests/test-gc-rijndael.c: Likewise.
25894         * tests/test-gc-sha1.c: Likewise.
25895         * tests/test-gc.c: Likewise.
25896         * tests/test-getcwd.c: Likewise.
25897         * tests/test-link.c: Likewise.
25898         * tests/test-link.h: Likewise.
25899         * tests/test-lutimens.h: Likewise.
25900         * tests/test-md2.c: Likewise.
25901         * tests/test-md4.c: Likewise.
25902         * tests/test-mkdir.h: Likewise.
25903         * tests/test-rename.c: Likewise.
25904         * tests/test-rename.h: Likewise.
25905         * tests/test-safe-alloc.c: Likewise.
25906         * tests/test-utimens-common.h: Likewise.
25907         * tests/test-utimens.h: Likewise.
25908
25909         maint: sync license texts
25910         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25911         * doc/gpl-3.0.texi: Revert copyright year update.
25912         * doc/lgpl-3.0.texi: Likewise.
25913
25914 2009-12-29  Jim Meyering  <meyering@redhat.com>
25915
25916         update nearly all FSF copyright year lists to include 2009
25917         The files named by the following are exempted:
25918             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25919               test -f "$dst" && { echo "$dst"; continue; }
25920               test -d "$dst" || continue
25921               echo "$dst"/$(basename "$src")
25922             done > exempt
25923             git ls-files tests/unictype >> exempt
25924         In the remaining files, convert to all-interval notation if
25925         - there is already at least one year interval like 2000-2003
25926         - the file is maintained by me
25927         - the file is in lib/uni*/, where that style already prevails
25928         Otherwise, use update-copyright's default.
25929
25930 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25931         and Eric Blake  <ebb9@byu.net>
25932
25933         tests: don't require debug system() to pass
25934         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25935         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25936         * tests/test-unlink.h (test_unlink_func): Likewise.
25937         * tests/test-fstatat.c (main): ...into callers.
25938         * tests/test-lstat.c (main): Likewise.
25939         * tests/test-rmdir.c (main): Likewise.
25940         * tests/test-unlink.c (main): Likewise.
25941         * tests/test-unlinkat.c (main): Likewise.
25942         * tests/test-areadlink-with-size.c (main): Don't require a
25943         debug-only system call to pass, aiding cross-testing to mingw.
25944         * tests/test-areadlink.c (main): Likewise.
25945         * tests/test-areadlinkat-with-size.c (main): Likewise.
25946         * tests/test-areadlinkat.c (main): Likewise.
25947         * tests/test-canonicalize-lgpl.c (main): Likewise.
25948         * tests/test-canonicalize.c (main): Likewise.
25949         * tests/test-chown.c (main): Likewise.
25950         * tests/test-fchownat.c (main): Likewise.
25951         * tests/test-lchown.c (main): Likewise.
25952         * tests/test-fdutimensat.c (main): Likewise.
25953         * tests/test-futimens.c (main): Likewise.
25954         * tests/test-link.c (main): Likewise.
25955         * tests/test-linkat.c (main): Likewise.
25956         * tests/test-mkdir.c (main): Likewise.
25957         * tests/test-mkdirat.c (main): Likewise.
25958         * tests/test-mkfifo.c (main): Likewise.
25959         * tests/test-mkfifoat.c (main): Likewise.
25960         * tests/test-mknod.c (main): Likewise.
25961         * tests/test-readlink.c (main): Likewise.
25962         * tests/test-remove.c (main): Likewise.
25963         * tests/test-rename.c (main): Likewise.
25964         * tests/test-renameat.c (main): Likewise.
25965         * tests/test-symlink.c (main): Likewise.
25966         * tests/test-symlinkat.c (main): Likewise.
25967         * tests/test-utimens.c (main): Likewise.
25968         * tests/test-utimensat.c (main): Likewise.
25969
25970 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25971
25972         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25973         on $(UNUSED_PARAMETER_H) to avoid build failure.
25974
25975 2009-12-28  Jim Meyering  <meyering@redhat.com>
25976
25977         update-copyright: you may specify a max. line length other than 72
25978         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25979
25980         maint: use consistent FSF copyright line syntax
25981         * lib/posixtm.c: Add missing comma in FSF copyright line.
25982         * lib/posixtm.h: Likewise.
25983         * lib/getugroups.c: Add missing ", Inc.".
25984
25985         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25986         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25987         FSF copyright line.  Remove trailing blanks.
25988
25989 2009-12-28  Eric Blake  <ebb9@byu.net>
25990
25991         test-dup2: reduce dependencies
25992         * modules/cloexec (Configure.ac): Set witness.
25993         * modules/dup2-tests (Depends-on): Drop cloexec.
25994         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25995         not present.
25996         Suggested by Bruno Haible.
25997
25998 2009-12-26  Bruno Haible  <bruno@clisp.org>
25999
26000         Remove an unneeded dependency.
26001         * modules/fseterr (Depends-on): Remove dup2.
26002
26003 2009-12-26  Eric Blake  <ebb9@byu.net>
26004
26005         tests: use macros.h in more places
26006         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26007         (ASSERT_STREAM): Provide default of stderr.
26008         * tests/test-dirent-safer.c: Include macros.h, using alternate
26009         stream for assertions.
26010         * tests/test-dup-safer.c: Likewise.
26011         * tests/test-freopen-safer.c: Likewise.
26012         * tests/test-getopt.c: Likewise.
26013         * tests/test-openat-safer.c: Likewise.
26014         * tests/test-pipe.c: Likewise.
26015         * tests/test-popen-safer.c: Likewise.
26016         * modules/dirent-safer-tests (Files): Include macros.h.
26017         * modules/unistd-safer-tests (Files): Likewise.
26018         * modules/freopen-safer-tests (Files): Likewise.
26019         * modules/getopt-posix-tests (Files): Likewise.
26020         * modules/openat-safer-tests (Files): Likewise.
26021         * modules/pipe-tests (Files): Likewise.
26022
26023 2009-12-26  Bruno Haible  <bruno@clisp.org>
26024
26025         javacomp: Portability fix.
26026         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26027         that it also works on Solaris.
26028
26029 2009-12-26  Bruno Haible  <bruno@clisp.org>
26030
26031         localename: Fix storage allocation of gl_locale_name_thread's result.
26032         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26033         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26034         all platforms that have 'uselocale'.
26035         (gl_locale_name_thread_unsafe): New function, extracted from
26036         gl_locale_name_thread.
26037         (gl_locale_name_thread): Call struniq on all platforms that have
26038         'uselocale'.
26039         * tests/test-localename.c (test_locale_name_thread): Check that the
26040         resulting strings are permanently allocated.
26041         * modules/localename-tests (Depends-on): Add strdup.
26042
26043 2009-12-26  Bruno Haible  <bruno@clisp.org>
26044
26045         * tests/test-localename.c (categories): Fill in the strings.
26046
26047 2009-12-26  Jim Meyering  <meyering@redhat.com>
26048
26049         isdir: complete the removal of m4/isdir.m4
26050         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26051
26052         isdir: clean up, since at least grep still uses it
26053         * lib/isdir.c: Include "isdir.h".
26054         (S_ISDIR): Remove now-unneeded definition.
26055         * modules/isdir (Files): Add lib/isdir.h.
26056         * lib/isdir.h: New file, with declaration.
26057         * m4/isdir.m4: Remove file -- unneeded.
26058
26059 2009-12-25  Bruno Haible  <bruno@clisp.org>
26060
26061         selinux-h: Make generated .h files standalone.
26062         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26063         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26064         * lib/se-selinux.in.h: Likewise.
26065         * modules/selinux-h (Depends-on): Add unused-parameter.
26066         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26067         selinux/selinux.h and selinux/context.h.
26068         Suggested by Eric Blake.
26069
26070 2009-12-25  Bruno Haible  <bruno@clisp.org>
26071
26072         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26073         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26074         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26075         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26076         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26077
26078 2009-12-24  Bruno Haible  <bruno@clisp.org>
26079
26080         openat: Fix warning.
26081         * lib/openat-proc.c: Include <unistd.h>.
26082
26083 2009-12-24  Bruno Haible  <bruno@clisp.org>
26084
26085         New module 'unused-parameter'.
26086         * build-aux/unused-parameter.h: New file, extracted from earlier
26087         gnulib-common.m4.
26088         * modules/unused-parameter: New file.
26089         * lib/unistr.h: Include unused-parameter.h.
26090         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26091         _GL_UNUSED.
26092         * modules/unistr/base (Depends-on): Add unused-parameter.
26093
26094 2009-12-24  Bruno Haible  <bruno@clisp.org>
26095
26096         Add missing dependencies to 'extensions' module.
26097         * m4/extensions.m4: Add comment.
26098         * modules/accept4 (Depends-on): Add extensions.
26099         * modules/dup3 (Depends-on): Likewise.
26100         * modules/fcntl (Depends-on): Likewise.
26101         * modules/futimens (Depends-on): Likewise.
26102         * modules/mknod (Depends-on): Likewise.
26103         * modules/pipe2 (Depends-on): Likewise.
26104         * modules/stat-time (Depends-on): Likewise.
26105         * modules/strcasestr-simple (Depends-on): Likewise.
26106         * modules/strsignal (Depends-on): Likewise.
26107         * modules/utimensat (Depends-on): Likewise.
26108         * modules/localcharset (Depends-on): Likewise. Needed because of
26109         gl_FCNTL_O_FLAGS.
26110         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26111         AC_TYPE_MBSTATE_T.
26112         * modules/wcsnrtombs (Depends-on): Likewise.
26113         * modules/wcsrtombs (Depends-on): Likewise.
26114
26115 2009-12-24  Bruno Haible  <bruno@clisp.org>
26116
26117         binary-io: Avoid gcc warning due to SET_BINARY.
26118         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26119         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26120
26121 2009-12-24  Bruno Haible  <bruno@clisp.org>
26122
26123         Avoid future namespace pollution on glibc systems.
26124         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26125         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26126         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26127         glibc systems.
26128
26129 2009-12-24  Bruno Haible  <bruno@clisp.org>
26130
26131         Refactor common macros used in tests.
26132         * tests/macros.h: New file.
26133         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26134         and/or <stdlib.h>, if appropriate.
26135         (ASSERT, SIZEOF): Remove macros.
26136         * tests/test-areadlink-with-size.c: Likewise.
26137         * tests/test-areadlinkat.c: Likewise.
26138         * tests/test-areadlinkat-with-size.c: Likewise.
26139         * tests/test-argmatch.c: Likewise.
26140         * tests/test-argv-iter.c: Likewise.
26141         * tests/test-array-mergesort.c: Likewise.
26142         * tests/test-array_list.c: Likewise.
26143         * tests/test-array_oset.c: Likewise.
26144         * tests/test-avltree_list.c: Likewise.
26145         * tests/test-avltree_oset.c: Likewise.
26146         * tests/test-avltreehash_list.c: Likewise.
26147         * tests/test-base64.c: Likewise.
26148         * tests/test-binary-io.c: Likewise.
26149         * tests/test-bitrotate.c: Likewise.
26150         * tests/test-btowc.c: Likewise.
26151         * tests/test-byteswap.c: Likewise.
26152         * tests/test-c-ctype.c: Likewise.
26153         * tests/test-c-stack.c: Likewise.
26154         * tests/test-c-strcasecmp.c: Likewise.
26155         * tests/test-c-strcasestr.c: Likewise.
26156         * tests/test-c-strncasecmp.c: Likewise.
26157         * tests/test-c-strstr.c: Likewise.
26158         * tests/test-canonicalize-lgpl.c: Likewise.
26159         * tests/test-canonicalize.c: Likewise.
26160         * tests/test-carray_list.c: Likewise.
26161         * tests/test-ceilf1.c: Likewise.
26162         * tests/test-ceilf2.c: Likewise.
26163         * tests/test-ceill.c: Likewise.
26164         * tests/test-chown.c: Likewise.
26165         * tests/test-cloexec.c: Likewise.
26166         * tests/test-copy-acl.c: Likewise.
26167         * tests/test-copy-file.c: Likewise.
26168         * tests/test-count-one-bits.c: Likewise.
26169         * tests/test-dprintf-posix.c: Likewise.
26170         * tests/test-dup2.c: Likewise.
26171         * tests/test-dup3.c: Likewise.
26172         * tests/test-duplocale.c: Likewise.
26173         * tests/test-fbufmode.c: Likewise.
26174         * tests/test-fchdir.c: Likewise.
26175         * tests/test-fchownat.c: Likewise.
26176         * tests/test-fcntl-safer.c: Likewise.
26177         * tests/test-fcntl.c: Likewise.
26178         * tests/test-fdopendir.c: Likewise.
26179         * tests/test-fdutimensat.c: Likewise.
26180         * tests/test-fflush2.c: Likewise.
26181         * tests/test-file-has-acl.c: Likewise.
26182         * tests/test-filevercmp.c: Likewise.
26183         * tests/test-flock.c: Likewise.
26184         * tests/test-floorf1.c: Likewise.
26185         * tests/test-floorf2.c: Likewise.
26186         * tests/test-floorl.c: Likewise.
26187         * tests/test-fnmatch.c: Likewise.
26188         * tests/test-fopen.h: Likewise.
26189         * tests/test-fpending.c: Likewise.
26190         * tests/test-fprintf-posix.c: Likewise.
26191         * tests/test-fpurge.c: Likewise.
26192         * tests/test-freadable.c: Likewise.
26193         * tests/test-freadahead.c: Likewise.
26194         * tests/test-freading.c: Likewise.
26195         * tests/test-freadptr.c: Likewise.
26196         * tests/test-freadptr2.c: Likewise.
26197         * tests/test-freadseek.c: Likewise.
26198         * tests/test-freopen.c: Likewise.
26199         * tests/test-frexp.c: Likewise.
26200         * tests/test-frexpl.c: Likewise.
26201         * tests/test-fseek.c: Likewise.
26202         * tests/test-fseeko.c: Likewise.
26203         * tests/test-fstatat.c: Likewise.
26204         * tests/test-fstrcmp.c: Likewise.
26205         * tests/test-fsync.c: Likewise.
26206         * tests/test-ftell.c: Likewise.
26207         * tests/test-ftello.c: Likewise.
26208         * tests/test-func.c: Likewise.
26209         * tests/test-futimens.c: Likewise.
26210         * tests/test-fwritable.c: Likewise.
26211         * tests/test-fwriting.c: Likewise.
26212         * tests/test-getcwd.c: Likewise.
26213         * tests/test-getdate.c: Likewise.
26214         * tests/test-getdelim.c: Likewise.
26215         * tests/test-getdtablesize.c: Likewise.
26216         * tests/test-getgroups.c: Likewise.
26217         * tests/test-getline.c: Likewise.
26218         * tests/test-getndelim2.c: Likewise.
26219         * tests/test-glob.c: Likewise.
26220         * tests/test-hash.c: Likewise.
26221         * tests/test-i-ring.c: Likewise.
26222         * tests/test-iconv-utf.c: Likewise.
26223         * tests/test-iconv.c: Likewise.
26224         * tests/test-idpriv-drop.c: Likewise.
26225         * tests/test-idpriv-droptemp.c: Likewise.
26226         * tests/test-inet_ntop.c: Likewise.
26227         * tests/test-inet_pton.c: Likewise.
26228         * tests/test-isblank.c: Likewise.
26229         * tests/test-isfinite.c: Likewise.
26230         * tests/test-isinf.c: Likewise.
26231         * tests/test-isnan.c: Likewise.
26232         * tests/test-isnand.h: Likewise.
26233         * tests/test-isnanf.h: Likewise.
26234         * tests/test-isnanl.h: Likewise.
26235         * tests/test-lchown.c: Likewise.
26236         * tests/test-ldexpl.c: Likewise.
26237         * tests/test-link.c: Likewise.
26238         * tests/test-linkat.c: Likewise.
26239         * tests/test-linked_list.c: Likewise.
26240         * tests/test-linkedhash_list.c: Likewise.
26241         * tests/test-localename.c: Likewise.
26242         * tests/test-lseek.c: Likewise.
26243         * tests/test-lstat.c: Likewise.
26244         * tests/test-mbmemcasecmp.c: Likewise.
26245         * tests/test-mbmemcasecoll.c: Likewise.
26246         * tests/test-mbrtowc.c: Likewise.
26247         * tests/test-mbscasecmp.c: Likewise.
26248         * tests/test-mbscasestr1.c: Likewise.
26249         * tests/test-mbscasestr2.c: Likewise.
26250         * tests/test-mbscasestr3.c: Likewise.
26251         * tests/test-mbscasestr4.c: Likewise.
26252         * tests/test-mbschr.c: Likewise.
26253         * tests/test-mbscspn.c: Likewise.
26254         * tests/test-mbsinit.c: Likewise.
26255         * tests/test-mbsncasecmp.c: Likewise.
26256         * tests/test-mbsnrtowcs.c: Likewise.
26257         * tests/test-mbspbrk.c: Likewise.
26258         * tests/test-mbspcasecmp.c: Likewise.
26259         * tests/test-mbsrchr.c: Likewise.
26260         * tests/test-mbsrtowcs.c: Likewise.
26261         * tests/test-mbsspn.c: Likewise.
26262         * tests/test-mbsstr1.c: Likewise.
26263         * tests/test-mbsstr2.c: Likewise.
26264         * tests/test-mbsstr3.c: Likewise.
26265         * tests/test-memchr.c: Likewise.
26266         * tests/test-memchr2.c: Likewise.
26267         * tests/test-memcmp.c: Likewise.
26268         * tests/test-memmem.c: Likewise.
26269         * tests/test-memrchr.c: Likewise.
26270         * tests/test-mkdir.c: Likewise.
26271         * tests/test-mkdirat.c: Likewise.
26272         * tests/test-mkfifo.c: Likewise.
26273         * tests/test-mkfifoat.c: Likewise.
26274         * tests/test-mknod.c: Likewise.
26275         * tests/test-nanosleep.c: Likewise.
26276         * tests/test-nl_langinfo.c: Likewise.
26277         * tests/test-obstack-printf.c: Likewise.
26278         * tests/test-open.c: Likewise.
26279         * tests/test-openat.c: Likewise.
26280         * tests/test-pipe-filter-gi1.c: Likewise.
26281         * tests/test-pipe-filter-gi2-main.c: Likewise.
26282         * tests/test-pipe-filter-ii1.c: Likewise.
26283         * tests/test-pipe-filter-ii2-main.c: Likewise.
26284         * tests/test-pipe2.c: Likewise.
26285         * tests/test-popen.h: Likewise.
26286         * tests/test-posixtm.c: Likewise.
26287         * tests/test-pread.c: Likewise.
26288         * tests/test-printf-frexp.c: Likewise.
26289         * tests/test-printf-frexpl.c: Likewise.
26290         * tests/test-printf-posix.c: Likewise.
26291         * tests/test-priv-set.c: Likewise.
26292         * tests/test-quotearg.c: Likewise.
26293         * tests/test-random_r.c: Likewise.
26294         * tests/test-rawmemchr.c: Likewise.
26295         * tests/test-rbtree_list.c: Likewise.
26296         * tests/test-rbtree_oset.c: Likewise.
26297         * tests/test-rbtreehash_list.c: Likewise.
26298         * tests/test-readlink.c: Likewise.
26299         * tests/test-remove.c: Likewise.
26300         * tests/test-rename.c: Likewise.
26301         * tests/test-renameat.c: Likewise.
26302         * tests/test-rmdir.c: Likewise.
26303         * tests/test-round1.c: Likewise.
26304         * tests/test-roundf1.c: Likewise.
26305         * tests/test-roundl.c: Likewise.
26306         * tests/test-safe-alloc.c: Likewise.
26307         * tests/test-sameacls.c: Likewise.
26308         * tests/test-set-mode-acl.c: Likewise.
26309         * tests/test-setenv.c: Likewise.
26310         * tests/test-sigaction.c: Likewise.
26311         * tests/test-signbit.c: Likewise.
26312         * tests/test-sleep.c: Likewise.
26313         * tests/test-snprintf-posix.c: Likewise.
26314         * tests/test-snprintf.c: Likewise.
26315         * tests/test-sprintf-posix.c: Likewise.
26316         * tests/test-stat-time.c: Likewise.
26317         * tests/test-stat.c: Likewise.
26318         * tests/test-strcasestr.c: Likewise.
26319         * tests/test-strchrnul.c: Likewise.
26320         * tests/test-strerror.c: Likewise.
26321         * tests/test-striconv.c: Likewise.
26322         * tests/test-striconveh.c: Likewise.
26323         * tests/test-striconveha.c: Likewise.
26324         * tests/test-strsignal.c: Likewise.
26325         * tests/test-strstr.c: Likewise.
26326         * tests/test-strtod.c: Likewise.
26327         * tests/test-strverscmp.c: Likewise.
26328         * tests/test-symlink.c: Likewise.
26329         * tests/test-symlinkat.c: Likewise.
26330         * tests/test-trunc1.c: Likewise.
26331         * tests/test-trunc2.c: Likewise.
26332         * tests/test-truncf1.c: Likewise.
26333         * tests/test-truncf2.c: Likewise.
26334         * tests/test-truncl.c: Likewise.
26335         * tests/test-uname.c: Likewise.
26336         * tests/test-unlink.c: Likewise.
26337         * tests/test-unlinkat.c: Likewise.
26338         * tests/test-unsetenv.c: Likewise.
26339         * tests/test-usleep.c: Likewise.
26340         * tests/test-utimens.c: Likewise.
26341         * tests/test-utimensat.c: Likewise.
26342         * tests/test-vasnprintf-posix.c: Likewise.
26343         * tests/test-vasnprintf-posix2.c: Likewise.
26344         * tests/test-vasnprintf.c: Likewise.
26345         * tests/test-vasprintf-posix.c: Likewise.
26346         * tests/test-vasprintf.c: Likewise.
26347         * tests/test-vdprintf-posix.c: Likewise.
26348         * tests/test-vfprintf-posix.c: Likewise.
26349         * tests/test-vprintf-posix.c: Likewise.
26350         * tests/test-vsnprintf-posix.c: Likewise.
26351         * tests/test-vsnprintf.c: Likewise.
26352         * tests/test-vsprintf-posix.c: Likewise.
26353         * tests/test-wcrtomb.c: Likewise.
26354         * tests/test-wcsnrtombs.c: Likewise.
26355         * tests/test-wcsrtombs.c: Likewise.
26356         * tests/test-wctype.c: Likewise.
26357         * tests/test-wcwidth.c: Likewise.
26358         * tests/test-xfprintf-posix.c: Likewise.
26359         * tests/test-xmemdup0.c: Likewise.
26360         * tests/test-xprintf-posix.c: Likewise.
26361         * tests/test-xvasprintf.c: Likewise.
26362         * tests/unicase/test-locale-language.c: Likewise.
26363         * tests/unicase/test-mapping-part1.h: Likewise.
26364         * tests/unicase/test-predicate-part1.h: Likewise.
26365         * tests/unicase/test-u8-casecmp.c: Likewise.
26366         * tests/unicase/test-u8-casecoll.c: Likewise.
26367         * tests/unicase/test-u8-casefold.c: Likewise.
26368         * tests/unicase/test-u8-is-cased.c: Likewise.
26369         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26370         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26371         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26372         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26373         * tests/unicase/test-u8-tolower.c: Likewise.
26374         * tests/unicase/test-u8-totitle.c: Likewise.
26375         * tests/unicase/test-u8-toupper.c: Likewise.
26376         * tests/unicase/test-u16-casecmp.c: Likewise.
26377         * tests/unicase/test-u16-casecoll.c: Likewise.
26378         * tests/unicase/test-u16-casefold.c: Likewise.
26379         * tests/unicase/test-u16-is-cased.c: Likewise.
26380         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26381         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26382         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26383         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26384         * tests/unicase/test-u16-tolower.c: Likewise.
26385         * tests/unicase/test-u16-totitle.c: Likewise.
26386         * tests/unicase/test-u16-toupper.c: Likewise.
26387         * tests/unicase/test-u32-casecmp.c: Likewise.
26388         * tests/unicase/test-u32-casecoll.c: Likewise.
26389         * tests/unicase/test-u32-casefold.c: Likewise.
26390         * tests/unicase/test-u32-is-cased.c: Likewise.
26391         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26392         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26393         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26394         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26395         * tests/unicase/test-u32-tolower.c: Likewise.
26396         * tests/unicase/test-u32-totitle.c: Likewise.
26397         * tests/unicase/test-u32-toupper.c: Likewise.
26398         * tests/unicase/test-ulc-casecmp.c: Likewise.
26399         * tests/unicase/test-ulc-casecoll.c: Likewise.
26400         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26401         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26402         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26403         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26404         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26405         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26406         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26407         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26408         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26409         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26410         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26411         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26412         * tests/unictype/test-bidi_byname.c: Likewise.
26413         * tests/unictype/test-bidi_name.c: Likewise.
26414         * tests/unictype/test-bidi_of.c: Likewise.
26415         * tests/unictype/test-bidi_test.c: Likewise.
26416         * tests/unictype/test-block_list.c: Likewise.
26417         * tests/unictype/test-block_of.c: Likewise.
26418         * tests/unictype/test-block_test.c: Likewise.
26419         * tests/unictype/test-categ_and.c: Likewise.
26420         * tests/unictype/test-categ_and_not.c: Likewise.
26421         * tests/unictype/test-categ_byname.c: Likewise.
26422         * tests/unictype/test-categ_name.c: Likewise.
26423         * tests/unictype/test-categ_none.c: Likewise.
26424         * tests/unictype/test-categ_of.c: Likewise.
26425         * tests/unictype/test-categ_or.c: Likewise.
26426         * tests/unictype/test-categ_test_withtable.c: Likewise.
26427         * tests/unictype/test-combining.c: Likewise.
26428         * tests/unictype/test-decdigit.c: Likewise.
26429         * tests/unictype/test-digit.c: Likewise.
26430         * tests/unictype/test-mirror.c: Likewise.
26431         * tests/unictype/test-numeric.c: Likewise.
26432         * tests/unictype/test-pr_byname.c: Likewise.
26433         * tests/unictype/test-pr_test.c: Likewise.
26434         * tests/unictype/test-predicate-part1.h: Likewise.
26435         * tests/unictype/test-scripts.c: Likewise.
26436         * tests/unictype/test-sy_c_ident.c: Likewise.
26437         * tests/unictype/test-sy_java_ident.c: Likewise.
26438         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26439         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26440         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26441         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26442         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26443         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26444         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26445         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26446         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26447         * tests/uninorm/test-compat-decomposition.c: Likewise.
26448         * tests/uninorm/test-composition.c: Likewise.
26449         * tests/uninorm/test-decomposing-form.c: Likewise.
26450         * tests/uninorm/test-decomposition.c: Likewise.
26451         * tests/uninorm/test-u8-nfc.c: Likewise.
26452         * tests/uninorm/test-u8-nfd.c: Likewise.
26453         * tests/uninorm/test-u8-nfkc.c: Likewise.
26454         * tests/uninorm/test-u8-nfkd.c: Likewise.
26455         * tests/uninorm/test-u8-normcmp.c: Likewise.
26456         * tests/uninorm/test-u8-normcoll.c: Likewise.
26457         * tests/uninorm/test-u16-nfc.c: Likewise.
26458         * tests/uninorm/test-u16-nfd.c: Likewise.
26459         * tests/uninorm/test-u16-nfkc.c: Likewise.
26460         * tests/uninorm/test-u16-nfkd.c: Likewise.
26461         * tests/uninorm/test-u16-normcmp.c: Likewise.
26462         * tests/uninorm/test-u16-normcoll.c: Likewise.
26463         * tests/uninorm/test-u32-nfc.c: Likewise.
26464         * tests/uninorm/test-u32-nfd.c: Likewise.
26465         * tests/uninorm/test-u32-nfkc.c: Likewise.
26466         * tests/uninorm/test-u32-nfkd.c: Likewise.
26467         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26468         * tests/uninorm/test-u32-normcmp.c: Likewise.
26469         * tests/uninorm/test-u32-normcoll.c: Likewise.
26470         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26471         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26472         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26473         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26474         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26475         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26476         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26477         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26478         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26479         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26480         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26481         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26482         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26483         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26484         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26485         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26486         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26487         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26488         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26489         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26490         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26491         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26492         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26493         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26494         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26495         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26496         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26497         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26498         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26499         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26500         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26501         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26502         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26503         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26504         * tests/uniwidth/test-u8-width.c: Likewise.
26505         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26506         * tests/uniwidth/test-u16-width.c: Likewise.
26507         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26508         * tests/uniwidth/test-u32-width.c: Likewise.
26509         * tests/uniwidth/test-uc_width.c: Likewise.
26510         * tests/uniwidth/test-uc_width2.c: Likewise.
26511         * modules/acl-tests (Files): Add tests/macros.h.
26512         * modules/areadlink-tests (Files): Likewise.
26513         * modules/areadlink-with-size-tests (Files): Likewise.
26514         * modules/areadlinkat-tests (Files): Likewise.
26515         * modules/areadlinkat-with-size-tests (Files): Likewise.
26516         * modules/argmatch-tests (Files): Likewise.
26517         * modules/argv-iter-tests (Files): Likewise.
26518         * modules/array-list-tests (Files): Likewise.
26519         * modules/array-mergesort-tests (Files): Likewise.
26520         * modules/array-oset-tests (Files): Likewise.
26521         * modules/avltree-list-tests (Files): Likewise.
26522         * modules/avltree-oset-tests (Files): Likewise.
26523         * modules/avltreehash-list-tests (Files): Likewise.
26524         * modules/base64-tests (Files): Likewise.
26525         * modules/binary-io-tests (Files): Likewise.
26526         * modules/bitrotate-tests (Files): Likewise.
26527         * modules/btowc-tests (Files): Likewise.
26528         * modules/byteswap-tests (Files): Likewise.
26529         * modules/c-ctype-tests (Files): Likewise.
26530         * modules/c-stack-tests (Files): Likewise.
26531         * modules/c-strcase-tests (Files): Likewise.
26532         * modules/c-strcasestr-tests (Files): Likewise.
26533         * modules/c-strstr-tests (Files): Likewise.
26534         * modules/canonicalize-lgpl-tests (Files): Likewise.
26535         * modules/canonicalize-tests (Files): Likewise.
26536         * modules/carray-list-tests (Files): Likewise.
26537         * modules/ceilf-tests (Files): Likewise.
26538         * modules/ceill-tests (Files): Likewise.
26539         * modules/chown-tests (Files): Likewise.
26540         * modules/cloexec-tests (Files): Likewise.
26541         * modules/copy-file-tests (Files): Likewise.
26542         * modules/count-one-bits-tests (Files): Likewise.
26543         * modules/dprintf-posix-tests (Files): Likewise.
26544         * modules/dup2-tests (Files): Likewise.
26545         * modules/dup3-tests (Files): Likewise.
26546         * modules/duplocale-tests (Files): Likewise.
26547         * modules/fbufmode-tests (Files): Likewise.
26548         * modules/fchdir-tests (Files): Likewise.
26549         * modules/fcntl-safer-tests (Files): Likewise.
26550         * modules/fcntl-tests (Files): Likewise.
26551         * modules/fdopendir-tests (Files): Likewise.
26552         * modules/fdutimensat-tests (Files): Likewise.
26553         * modules/fflush-tests (Files): Likewise.
26554         * modules/filevercmp-tests (Files): Likewise.
26555         * modules/flock-tests (Files): Likewise.
26556         * modules/floorf-tests (Files): Likewise.
26557         * modules/floorl-tests (Files): Likewise.
26558         * modules/fnmatch-tests (Files): Likewise.
26559         * modules/fopen-safer-tests (Files): Likewise.
26560         * modules/fopen-tests (Files): Likewise.
26561         * modules/fpending-tests (Files): Likewise.
26562         * modules/fprintf-posix-tests (Files): Likewise.
26563         * modules/fpurge-tests (Files): Likewise.
26564         * modules/freadable-tests (Files): Likewise.
26565         * modules/freadahead-tests (Files): Likewise.
26566         * modules/freading-tests (Files): Likewise.
26567         * modules/freadptr-tests (Files): Likewise.
26568         * modules/freadseek-tests (Files): Likewise.
26569         * modules/freopen-tests (Files): Likewise.
26570         * modules/frexp-nolibm-tests (Files): Likewise.
26571         * modules/frexp-tests (Files): Likewise.
26572         * modules/frexpl-nolibm-tests (Files): Likewise.
26573         * modules/frexpl-tests (Files): Likewise.
26574         * modules/fseek-tests (Files): Likewise.
26575         * modules/fseeko-tests (Files): Likewise.
26576         * modules/fstrcmp-tests (Files): Likewise.
26577         * modules/fsync-tests (Files): Likewise.
26578         * modules/ftell-tests (Files): Likewise.
26579         * modules/ftello-tests (Files): Likewise.
26580         * modules/func-tests (Files): Likewise.
26581         * modules/futimens-tests (Files): Likewise.
26582         * modules/fwritable-tests (Files): Likewise.
26583         * modules/fwriting-tests (Files): Likewise.
26584         * modules/getcwd-tests (Files): Likewise.
26585         * modules/getdate-tests (Files): Likewise.
26586         * modules/getdelim-tests (Files): Likewise.
26587         * modules/getdtablesize-tests (Files): Likewise.
26588         * modules/getgroups-tests (Files): Likewise.
26589         * modules/getline-tests (Files): Likewise.
26590         * modules/getndelim2-tests (Files): Likewise.
26591         * modules/glob-tests (Files): Likewise.
26592         * modules/hash-tests (Files): Likewise.
26593         * modules/i-ring-tests (Files): Likewise.
26594         * modules/iconv-tests (Files): Likewise.
26595         * modules/iconv_open-utf-tests (Files): Likewise.
26596         * modules/idpriv-drop-tests (Files): Likewise.
26597         * modules/idpriv-droptemp-tests (Files): Likewise.
26598         * modules/inet_ntop-tests (Files): Likewise.
26599         * modules/inet_pton-tests (Files): Likewise.
26600         * modules/isblank-tests (Files): Likewise.
26601         * modules/isfinite-tests (Files): Likewise.
26602         * modules/isinf-tests (Files): Likewise.
26603         * modules/isnan-tests (Files): Likewise.
26604         * modules/isnand-nolibm-tests (Files): Likewise.
26605         * modules/isnand-tests (Files): Likewise.
26606         * modules/isnanf-nolibm-tests (Files): Likewise.
26607         * modules/isnanf-tests (Files): Likewise.
26608         * modules/isnanl-nolibm-tests (Files): Likewise.
26609         * modules/isnanl-tests (Files): Likewise.
26610         * modules/lchown-tests (Files): Likewise.
26611         * modules/ldexpl-tests (Files): Likewise.
26612         * modules/link-tests (Files): Likewise.
26613         * modules/linkat-tests (Files): Likewise.
26614         * modules/linked-list-tests (Files): Likewise.
26615         * modules/linkedhash-list-tests (Files): Likewise.
26616         * modules/localename-tests (Files): Likewise.
26617         * modules/lseek-tests (Files): Likewise.
26618         * modules/lstat-tests (Files): Likewise.
26619         * modules/mbmemcasecmp-tests (Files): Likewise.
26620         * modules/mbmemcasecoll-tests (Files): Likewise.
26621         * modules/mbrtowc-tests (Files): Likewise.
26622         * modules/mbscasecmp-tests (Files): Likewise.
26623         * modules/mbscasestr-tests (Files): Likewise.
26624         * modules/mbschr-tests (Files): Likewise.
26625         * modules/mbscspn-tests (Files): Likewise.
26626         * modules/mbsinit-tests (Files): Likewise.
26627         * modules/mbsncasecmp-tests (Files): Likewise.
26628         * modules/mbsnrtowcs-tests (Files): Likewise.
26629         * modules/mbspbrk-tests (Files): Likewise.
26630         * modules/mbspcasecmp-tests (Files): Likewise.
26631         * modules/mbsrchr-tests (Files): Likewise.
26632         * modules/mbsrtowcs-tests (Files): Likewise.
26633         * modules/mbsspn-tests (Files): Likewise.
26634         * modules/mbsstr-tests (Files): Likewise.
26635         * modules/memchr-tests (Files): Likewise.
26636         * modules/memchr2-tests (Files): Likewise.
26637         * modules/memcmp-tests (Files): Likewise.
26638         * modules/memmem-tests (Files): Likewise.
26639         * modules/memrchr-tests (Files): Likewise.
26640         * modules/mkdir-tests (Files): Likewise.
26641         * modules/mkfifo-tests (Files): Likewise.
26642         * modules/mkfifoat-tests (Files): Likewise.
26643         * modules/mknod-tests (Files): Likewise.
26644         * modules/nanosleep-tests (Files): Likewise.
26645         * modules/nl_langinfo-tests (Files): Likewise.
26646         * modules/obstack-printf-tests (Files): Likewise.
26647         * modules/open-tests (Files): Likewise.
26648         * modules/openat-tests (Files): Likewise.
26649         * modules/pipe-filter-gi-tests (Files): Likewise.
26650         * modules/pipe-filter-ii-tests (Files): Likewise.
26651         * modules/pipe2-tests (Files): Likewise.
26652         * modules/popen-safer-tests (Files): Likewise.
26653         * modules/popen-tests (Files): Likewise.
26654         * modules/posixtm-tests (Files): Likewise.
26655         * modules/pread-tests (Files): Likewise.
26656         * modules/printf-frexp-tests (Files): Likewise.
26657         * modules/printf-frexpl-tests (Files): Likewise.
26658         * modules/printf-posix-tests (Files): Likewise.
26659         * modules/priv-set-tests (Files): Likewise.
26660         * modules/quotearg-tests (Files): Likewise.
26661         * modules/random_r-tests (Files): Likewise.
26662         * modules/rawmemchr-tests (Files): Likewise.
26663         * modules/rbtree-list-tests (Files): Likewise.
26664         * modules/rbtree-oset-tests (Files): Likewise.
26665         * modules/rbtreehash-list-tests (Files): Likewise.
26666         * modules/readlink-tests (Files): Likewise.
26667         * modules/remove-tests (Files): Likewise.
26668         * modules/rename-tests (Files): Likewise.
26669         * modules/renameat-tests (Files): Likewise.
26670         * modules/rmdir-tests (Files): Likewise.
26671         * modules/round-tests (Files): Likewise.
26672         * modules/roundf-tests (Files): Likewise.
26673         * modules/roundl-tests (Files): Likewise.
26674         * modules/safe-alloc-tests (Files): Likewise.
26675         * modules/setenv-tests (Files): Likewise.
26676         * modules/sigaction-tests (Files): Likewise.
26677         * modules/signbit-tests (Files): Likewise.
26678         * modules/sleep-tests (Files): Likewise.
26679         * modules/snprintf-posix-tests (Files): Likewise.
26680         * modules/snprintf-tests (Files): Likewise.
26681         * modules/sprintf-posix-tests (Files): Likewise.
26682         * modules/stat-tests (Files): Likewise.
26683         * modules/stat-time-tests (Files): Likewise.
26684         * modules/strcasestr-tests (Files): Likewise.
26685         * modules/strchrnul-tests (Files): Likewise.
26686         * modules/strerror-tests (Files): Likewise.
26687         * modules/striconv-tests (Files): Likewise.
26688         * modules/striconveh-tests (Files): Likewise.
26689         * modules/striconveha-tests (Files): Likewise.
26690         * modules/strsignal-tests (Files): Likewise.
26691         * modules/strstr-tests (Files): Likewise.
26692         * modules/strtod-tests (Files): Likewise.
26693         * modules/strverscmp-tests (Files): Likewise.
26694         * modules/symlink-tests (Files): Likewise.
26695         * modules/symlinkat-tests (Files): Likewise.
26696         * modules/trunc-tests (Files): Likewise.
26697         * modules/truncf-tests (Files): Likewise.
26698         * modules/truncl-tests (Files): Likewise.
26699         * modules/uname-tests (Files): Likewise.
26700         * modules/unicase/cased-tests (Files): Likewise.
26701         * modules/unicase/ignorable-tests (Files): Likewise.
26702         * modules/unicase/locale-language-tests (Files): Likewise.
26703         * modules/unicase/tolower-tests (Files): Likewise.
26704         * modules/unicase/totitle-tests (Files): Likewise.
26705         * modules/unicase/toupper-tests (Files): Likewise.
26706         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26707         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26708         * modules/unicase/u8-casefold-tests (Files): Likewise.
26709         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26710         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26711         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26712         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26713         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26714         * modules/unicase/u8-tolower-tests (Files): Likewise.
26715         * modules/unicase/u8-totitle-tests (Files): Likewise.
26716         * modules/unicase/u8-toupper-tests (Files): Likewise.
26717         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26718         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26719         * modules/unicase/u16-casefold-tests (Files): Likewise.
26720         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26721         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26722         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26723         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26724         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26725         * modules/unicase/u16-tolower-tests (Files): Likewise.
26726         * modules/unicase/u16-totitle-tests (Files): Likewise.
26727         * modules/unicase/u16-toupper-tests (Files): Likewise.
26728         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26729         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26730         * modules/unicase/u32-casefold-tests (Files): Likewise.
26731         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26732         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26733         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26734         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26735         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26736         * modules/unicase/u32-tolower-tests (Files): Likewise.
26737         * modules/unicase/u32-totitle-tests (Files): Likewise.
26738         * modules/unicase/u32-toupper-tests (Files): Likewise.
26739         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26740         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26741         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26742         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26743         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26744         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26745         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26746         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26747         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26748         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26749         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26750         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26751         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26752         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26753         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26754         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26755         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26756         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26757         * modules/unictype/block-list-tests (Files): Likewise.
26758         * modules/unictype/block-of-tests (Files): Likewise.
26759         * modules/unictype/block-test-tests (Files): Likewise.
26760         * modules/unictype/category-C-tests (Files): Likewise.
26761         * modules/unictype/category-Cc-tests (Files): Likewise.
26762         * modules/unictype/category-Cf-tests (Files): Likewise.
26763         * modules/unictype/category-Cn-tests (Files): Likewise.
26764         * modules/unictype/category-Co-tests (Files): Likewise.
26765         * modules/unictype/category-Cs-tests (Files): Likewise.
26766         * modules/unictype/category-L-tests (Files): Likewise.
26767         * modules/unictype/category-Ll-tests (Files): Likewise.
26768         * modules/unictype/category-Lm-tests (Files): Likewise.
26769         * modules/unictype/category-Lo-tests (Files): Likewise.
26770         * modules/unictype/category-Lt-tests (Files): Likewise.
26771         * modules/unictype/category-Lu-tests (Files): Likewise.
26772         * modules/unictype/category-M-tests (Files): Likewise.
26773         * modules/unictype/category-Mc-tests (Files): Likewise.
26774         * modules/unictype/category-Me-tests (Files): Likewise.
26775         * modules/unictype/category-Mn-tests (Files): Likewise.
26776         * modules/unictype/category-N-tests (Files): Likewise.
26777         * modules/unictype/category-Nd-tests (Files): Likewise.
26778         * modules/unictype/category-Nl-tests (Files): Likewise.
26779         * modules/unictype/category-No-tests (Files): Likewise.
26780         * modules/unictype/category-P-tests (Files): Likewise.
26781         * modules/unictype/category-Pc-tests (Files): Likewise.
26782         * modules/unictype/category-Pd-tests (Files): Likewise.
26783         * modules/unictype/category-Pe-tests (Files): Likewise.
26784         * modules/unictype/category-Pf-tests (Files): Likewise.
26785         * modules/unictype/category-Pi-tests (Files): Likewise.
26786         * modules/unictype/category-Po-tests (Files): Likewise.
26787         * modules/unictype/category-Ps-tests (Files): Likewise.
26788         * modules/unictype/category-S-tests (Files): Likewise.
26789         * modules/unictype/category-Sc-tests (Files): Likewise.
26790         * modules/unictype/category-Sk-tests (Files): Likewise.
26791         * modules/unictype/category-Sm-tests (Files): Likewise.
26792         * modules/unictype/category-So-tests (Files): Likewise.
26793         * modules/unictype/category-Z-tests (Files): Likewise.
26794         * modules/unictype/category-Zl-tests (Files): Likewise.
26795         * modules/unictype/category-Zp-tests (Files): Likewise.
26796         * modules/unictype/category-Zs-tests (Files): Likewise.
26797         * modules/unictype/category-and-not-tests (Files): Likewise.
26798         * modules/unictype/category-and-tests (Files): Likewise.
26799         * modules/unictype/category-byname-tests (Files): Likewise.
26800         * modules/unictype/category-name-tests (Files): Likewise.
26801         * modules/unictype/category-none-tests (Files): Likewise.
26802         * modules/unictype/category-of-tests (Files): Likewise.
26803         * modules/unictype/category-or-tests (Files): Likewise.
26804         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26805         * modules/unictype/combining-class-tests (Files): Likewise.
26806         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26807         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26808         * modules/unictype/ctype-blank-tests (Files): Likewise.
26809         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26810         * modules/unictype/ctype-digit-tests (Files): Likewise.
26811         * modules/unictype/ctype-graph-tests (Files): Likewise.
26812         * modules/unictype/ctype-lower-tests (Files): Likewise.
26813         * modules/unictype/ctype-print-tests (Files): Likewise.
26814         * modules/unictype/ctype-punct-tests (Files): Likewise.
26815         * modules/unictype/ctype-space-tests (Files): Likewise.
26816         * modules/unictype/ctype-upper-tests (Files): Likewise.
26817         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26818         * modules/unictype/decimal-digit-tests (Files): Likewise.
26819         * modules/unictype/digit-tests (Files): Likewise.
26820         * modules/unictype/mirror-tests (Files): Likewise.
26821         * modules/unictype/numeric-tests (Files): Likewise.
26822         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26823         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26824         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26825         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26826         Likewise.
26827         * modules/unictype/property-bidi-block-separator-tests (Files):
26828         Likewise.
26829         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26830         Likewise.
26831         * modules/unictype/property-bidi-common-separator-tests (Files):
26832         Likewise.
26833         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26834         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26835         Likewise.
26836         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26837         Likewise.
26838         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26839         Likewise.
26840         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26841         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26842         Likewise.
26843         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26844         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26845         Likewise.
26846         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26847         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26848         * modules/unictype/property-bidi-segment-separator-tests (Files):
26849         Likewise.
26850         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26851         * modules/unictype/property-byname-tests (Files): Likewise.
26852         * modules/unictype/property-combining-tests (Files): Likewise.
26853         * modules/unictype/property-composite-tests (Files): Likewise.
26854         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26855         * modules/unictype/property-dash-tests (Files): Likewise.
26856         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26857         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26858         Likewise.
26859         * modules/unictype/property-deprecated-tests (Files): Likewise.
26860         * modules/unictype/property-diacritic-tests (Files): Likewise.
26861         * modules/unictype/property-extender-tests (Files): Likewise.
26862         * modules/unictype/property-format-control-tests (Files): Likewise.
26863         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26864         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26865         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26866         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26867         * modules/unictype/property-hyphen-tests (Files): Likewise.
26868         * modules/unictype/property-id-continue-tests (Files): Likewise.
26869         * modules/unictype/property-id-start-tests (Files): Likewise.
26870         * modules/unictype/property-ideographic-tests (Files): Likewise.
26871         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26872         * modules/unictype/property-ids-trinary-operator-tests (Files):
26873         Likewise.
26874         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26875         * modules/unictype/property-iso-control-tests (Files): Likewise.
26876         * modules/unictype/property-join-control-tests (Files): Likewise.
26877         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26878         * modules/unictype/property-line-separator-tests (Files): Likewise.
26879         * modules/unictype/property-logical-order-exception-tests (Files):
26880         Likewise.
26881         * modules/unictype/property-lowercase-tests (Files): Likewise.
26882         * modules/unictype/property-math-tests (Files): Likewise.
26883         * modules/unictype/property-non-break-tests (Files): Likewise.
26884         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26885         * modules/unictype/property-numeric-tests (Files): Likewise.
26886         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26887         * modules/unictype/property-other-default-ignorable-code-point-tests
26888         (Files): Likewise.
26889         * modules/unictype/property-other-grapheme-extend-tests (Files):
26890         Likewise.
26891         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26892         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26893         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26894         * modules/unictype/property-other-math-tests (Files): Likewise.
26895         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26896         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26897         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26898         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26899         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26900         * modules/unictype/property-private-use-tests (Files): Likewise.
26901         * modules/unictype/property-punctuation-tests (Files): Likewise.
26902         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26903         * modules/unictype/property-radical-tests (Files): Likewise.
26904         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26905         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26906         * modules/unictype/property-space-tests (Files): Likewise.
26907         * modules/unictype/property-terminal-punctuation-tests (Files):
26908         Likewise.
26909         * modules/unictype/property-test-tests (Files): Likewise.
26910         * modules/unictype/property-titlecase-tests (Files): Likewise.
26911         * modules/unictype/property-unassigned-code-value-tests (Files):
26912         Likewise.
26913         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26914         * modules/unictype/property-uppercase-tests (Files): Likewise.
26915         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26916         * modules/unictype/property-white-space-tests (Files): Likewise.
26917         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26918         * modules/unictype/property-xid-start-tests (Files): Likewise.
26919         * modules/unictype/property-zero-width-tests (Files): Likewise.
26920         * modules/unictype/scripts-tests (Files): Likewise.
26921         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26922         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26923         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26924         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26925         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26926         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26927         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26928         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26929         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26930         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26931         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26932         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26933         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26934         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26935         * modules/uninorm/composition-tests (Files): Likewise.
26936         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26937         * modules/uninorm/decomposition-tests (Files): Likewise.
26938         * modules/uninorm/filter-tests (Files): Likewise.
26939         * modules/uninorm/nfc-tests (Files): Likewise.
26940         * modules/uninorm/nfd-tests (Files): Likewise.
26941         * modules/uninorm/nfkc-tests (Files): Likewise.
26942         * modules/uninorm/nfkd-tests (Files): Likewise.
26943         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26944         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26945         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26946         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26947         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26948         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26949         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26950         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26951         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26952         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26953         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26954         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26955         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26956         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26957         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26958         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26959         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26960         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26961         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26962         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26963         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26964         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26965         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26966         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26967         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26968         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26969         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26970         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26971         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26972         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26973         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26974         * modules/uniwidth/u8-width-tests (Files): Likewise.
26975         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26976         * modules/uniwidth/u16-width-tests (Files): Likewise.
26977         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26978         * modules/uniwidth/u32-width-tests (Files): Likewise.
26979         * modules/uniwidth/width-tests (Files): Likewise.
26980         * modules/unlink-tests (Files): Likewise.
26981         * modules/unsetenv-tests (Files): Likewise.
26982         * modules/usleep-tests (Files): Likewise.
26983         * modules/utimens-tests (Files): Likewise.
26984         * modules/utimensat-tests (Files): Likewise.
26985         * modules/vasnprintf-posix-tests (Files): Likewise.
26986         * modules/vasnprintf-tests (Files): Likewise.
26987         * modules/vasprintf-posix-tests (Files): Likewise.
26988         * modules/vasprintf-tests (Files): Likewise.
26989         * modules/vdprintf-posix-tests (Files): Likewise.
26990         * modules/vfprintf-posix-tests (Files): Likewise.
26991         * modules/vprintf-posix-tests (Files): Likewise.
26992         * modules/vsnprintf-posix-tests (Files): Likewise.
26993         * modules/vsnprintf-tests (Files): Likewise.
26994         * modules/vsprintf-posix-tests (Files): Likewise.
26995         * modules/wcrtomb-tests (Files): Likewise.
26996         * modules/wcsnrtombs-tests (Files): Likewise.
26997         * modules/wcsrtombs-tests (Files): Likewise.
26998         * modules/wctype-tests (Files): Likewise.
26999         * modules/wcwidth-tests (Files): Likewise.
27000         * modules/xmemdup0-tests (Files): Likewise.
27001         * modules/xprintf-posix-tests (Files): Likewise.
27002         * modules/xvasprintf-tests (Files): Likewise.
27003
27004 2009-12-24  Eric Blake  <ebb9@byu.net>
27005
27006         test-nanosleep: fix typo
27007         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27008         patch.
27009         Reported by Bruno Haible.
27010
27011 2009-12-24  Bruno Haible  <bruno@clisp.org>
27012
27013         Reduce namespace pollution on glibc systems.
27014         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27015         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27016         systems.
27017         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27018         <getopt.h> on glibc systems.
27019         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27020         systems.
27021         * lib/fcntl.c: Include <unistd.h> here instead.
27022
27023 2009-12-24  Bruno Haible  <bruno@clisp.org>
27024
27025         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27026
27027 2009-12-24  Eric Blake  <ebb9@byu.net>
27028
27029         tests: add signature checks
27030         * tests/signature.h (SIGNATURE_CHECK): New file.
27031         * modules/atexit-tests (Files): Use it.
27032         * modules/btowc-tests (Files): Likewise.
27033         * modules/canonicalize-lgpl-tests (Files): Likewise.
27034         * modules/ceilf-tests (Files): Likewise.
27035         * modules/ceill-tests (Files): Likewise.
27036         * modules/chown-tests (Files): Likewise.
27037         * modules/dprintf-posix-tests (Files): Likewise.
27038         * modules/dup2-tests (Files): Likewise.
27039         * modules/dup3-tests (Files): Likewise.
27040         * modules/duplocale-tests (Files): Likewise.
27041         * modules/fchdir-tests (Files): Likewise.
27042         * modules/fcntl-tests (Files): Likewise.
27043         * modules/fdopendir-tests (Files): Likewise.
27044         * modules/fflush-tests (Files): Likewise.
27045         * modules/flock-tests (Files): Likewise.
27046         * modules/floorf-tests (Files): Likewise.
27047         * modules/floorl-tests (Files): Likewise.
27048         * modules/fnmatch-tests (Files): Likewise.
27049         * modules/fopen-tests (Files): Likewise.
27050         * modules/fprintf-posix-tests (Files): Likewise.
27051         * modules/freopen-tests (Files): Likewise.
27052         * modules/frexp-nolibm-tests (Files): Likewise.
27053         * modules/frexp-tests (Files): Likewise.
27054         * modules/frexpl-nolibm-tests (Files): Likewise.
27055         * modules/frexpl-tests (Files): Likewise.
27056         * modules/fseek-tests (Files): Likewise.
27057         * modules/fseeko-tests (Files): Likewise.
27058         * modules/fsync-tests (Files): Likewise.
27059         * modules/ftell-tests (Files): Likewise.
27060         * modules/ftello-tests (Files): Likewise.
27061         * modules/futimens-tests (Files): Likewise.
27062         * modules/getaddrinfo-tests (Files): Likewise.
27063         * modules/getcwd-tests (Files): Likewise.
27064         * modules/getdelim-tests (Files): Likewise.
27065         * modules/getdtablesize-tests (Files): Likewise.
27066         * modules/getgroups-tests (Files): Likewise.
27067         * modules/gethostname-tests (Files): Likewise.
27068         * modules/getline-tests (Files): Likewise.
27069         * modules/getopt-posix-tests (Files): Likewise.
27070         * modules/gettimeofday-tests (Files): Likewise.
27071         * modules/glob-tests (Files): Likewise.
27072         * modules/iconv-tests (Files): Likewise.
27073         * modules/inet_ntop-tests (Files): Likewise.
27074         * modules/inet_pton-tests (Files): Likewise.
27075         * modules/isblank-tests (Files): Likewise.
27076         * modules/lchown-tests (Files): Likewise.
27077         * modules/ldexpl-tests (Files): Likewise.
27078         * modules/link-tests (Files): Likewise.
27079         * modules/linkat-tests (Files): Likewise.
27080         * modules/lseek-tests (Files): Likewise.
27081         * modules/lstat-tests (Files): Likewise.
27082         * modules/mbrtowc-tests (Files): Likewise.
27083         * modules/mbsinit-tests (Files): Likewise.
27084         * modules/mbsnrtowcs-tests (Files): Likewise.
27085         * modules/mbsrtowcs-tests (Files): Likewise.
27086         * modules/memchr-tests (Files): Likewise.
27087         * modules/memcmp-tests (Files): Likewise.
27088         * modules/memmem-tests (Files): Likewise.
27089         * modules/memrchr-tests (Files): Likewise.
27090         * modules/mkdir-tests (Files): Likewise.
27091         * modules/mkfifo-tests (Files): Likewise.
27092         * modules/mkfifoat-tests (Files): Likewise.
27093         * modules/mknod-tests (Files): Likewise.
27094         * modules/nanosleep-tests (Files): Likewise.
27095         * modules/nl_langinfo-tests (Files): Likewise.
27096         * modules/obstack-printf-tests (Files): Likewise.
27097         * modules/open-tests (Files): Likewise.
27098         * modules/openat-tests (Files): Likewise.
27099         * modules/perror-tests (Files): Likewise.
27100         * modules/pipe2-tests (Files): Likewise.
27101         * modules/poll-tests (Files): Likewise.
27102         * modules/popen-tests (Files): Likewise.
27103         * modules/posix_spawn-tests (Files): Likewise.
27104         * modules/posix_spawnp-tests (Files): Likewise.
27105         * modules/pread-tests (Files): Likewise.
27106         * modules/printf-posix-tests (Files): Likewise.
27107         * modules/pty-tests (Files): Likewise.
27108         * modules/random_r-tests (Files): Likewise.
27109         * modules/rawmemchr-tests (Files): Likewise.
27110         * modules/readlink-tests (Files): Likewise.
27111         * modules/remove-tests (Files): Likewise.
27112         * modules/rename-tests (Files): Likewise.
27113         * modules/renameat-tests (Files): Likewise.
27114         * modules/rmdir-tests (Files): Likewise.
27115         * modules/round-tests (Files): Likewise.
27116         * modules/roundf-tests (Files): Likewise.
27117         * modules/roundl-tests (Files): Likewise.
27118         * modules/select-tests (Files): Likewise.
27119         * modules/setenv-tests (Files): Likewise.
27120         * modules/sigaction-tests (Files): Likewise.
27121         * modules/sleep-tests (Files): Likewise.
27122         * modules/snprintf-posix-tests (Files): Likewise.
27123         * modules/snprintf-tests (Files): Likewise.
27124         * modules/sprintf-posix-tests (Files): Likewise.
27125         * modules/stat-tests (Files): Likewise.
27126         * modules/strcasestr-tests (Files): Likewise.
27127         * modules/strchrnul-tests (Files): Likewise.
27128         * modules/strerror-tests (Files): Likewise.
27129         * modules/strsignal-tests (Files): Likewise.
27130         * modules/strstr-tests (Files): Likewise.
27131         * modules/strtod-tests (Files): Likewise.
27132         * modules/strverscmp-tests (Files): Likewise.
27133         * modules/symlink-tests (Files): Likewise.
27134         * modules/symlinkat-tests (Files): Likewise.
27135         * modules/times-tests (Files): Likewise.
27136         * modules/trunc-tests (Files): Likewise.
27137         * modules/truncf-tests (Files): Likewise.
27138         * modules/truncl-tests (Files): Likewise.
27139         * modules/tsearch-tests (Files): Likewise.
27140         * modules/uname-tests (Files): Likewise.
27141         * modules/unlink-tests (Files): Likewise.
27142         * modules/unsetenv-tests (Files): Likewise.
27143         * modules/usleep-tests (Files): Likewise.
27144         * modules/utimensat-tests (Files): Likewise.
27145         * modules/vasprintf-tests (Files): Likewise.
27146         * modules/vdprintf-posix-tests (Files): Likewise.
27147         * modules/vfprintf-posix-tests (Files): Likewise.
27148         * modules/vprintf-posix-tests (Files): Likewise.
27149         * modules/vsnprintf-posix-tests (Files): Likewise.
27150         * modules/vsnprintf-tests (Files): Likewise.
27151         * modules/vsprintf-posix-tests (Files): Likewise.
27152         * modules/wcrtomb-tests (Files): Likewise.
27153         * modules/wcsnrtombs-tests (Files): Likewise.
27154         * modules/wcsrtombs-tests (Files): Likewise.
27155         * modules/wcwidth-tests (Files): Likewise.
27156         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27157         * tests/test-isinf.c (isinf): Likewise.
27158         * tests/test-isnan.c (isnan): Likewise.
27159         * tests/test-signbit.c (signbit): Likewise.
27160         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27161         declaration, either as macro or with correct signature.
27162         (select): Ensure function under test is declared with correct
27163         signature in correct header.
27164         * tests/test-atexit.c (atexit): Likewise.
27165         * tests/test-btowc.c (btowc): Likewise.
27166         * tests/test-canonicalize-lgpl.c (realpath)
27167         (canonicalize_file_name): Likewise.
27168         * tests/test-ceilf1.c (ceilf): Likewise.
27169         * tests/test-ceill.c (ceill): Likewise.
27170         * tests/test-chown.c (chown): Likewise.
27171         * tests/test-dprintf-posix.c (dprintf): Likewise.
27172         * tests/test-dup2.c (dup2): Likewise.
27173         * tests/test-dup3.c (dup3): Likewise.
27174         * tests/test-duplocale.c (duplocale): Likewise.
27175         * tests/test-fchdir.c (fchdir): Likewise.
27176         * tests/test-fchownat.c (fchownat): Likewise.
27177         * tests/test-fcntl.c (fcntl): Likewise.
27178         * tests/test-fdopendir.c (fdopendir): Likewise.
27179         * tests/test-fflush.c (fflush): Likewise.
27180         * tests/test-flock.c (flock): Likewise.
27181         * tests/test-floorf1.c (floorf): Likewise.
27182         * tests/test-floorl.c (floorl): Likewise.
27183         * tests/test-fnmatch.c (fnmatch): Likewise.
27184         * tests/test-fopen.c (fopen): Likewise.
27185         * tests/test-fprintf-posix.c (fprintf): Likewise.
27186         * tests/test-freopen.c (freopen): Likewise.
27187         * tests/test-frexp.c (frexp): Likewise.
27188         * tests/test-frexpl.c (frexpl): Likewise.
27189         * tests/test-fseek.c (fseek): Likewise.
27190         * tests/test-fseeko.c (fseeko): Likewise.
27191         * tests/test-fstatat.c (fstatat): Likewise.
27192         * tests/test-fsync.c (fsync): Likewise.
27193         * tests/test-ftell.c (ftell): Likewise.
27194         * tests/test-ftello.c (ftello): Likewise.
27195         * tests/test-futimens.c (futimens): Likewise.
27196         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27197         (gai_strerror): Likewise.
27198         * tests/test-getcwd.c (getcwd): Likewise.
27199         * tests/test-getdelim.c (getdelim): Likewise.
27200         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27201         * tests/test-getgroups.c (getgroups): Likewise.
27202         * tests/test-gethostname.c (gethostname): Likewise.
27203         * tests/test-getline.c (getline): Likewise.
27204         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27205         Likewise.
27206         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27207         * tests/test-glob.c (glob, globfree): Likewise.
27208         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27209         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27210         * tests/test-inet_pton.c (inet_pton): Likewise.
27211         * tests/test-isblank.c (isblank): Likewise.
27212         * tests/test-lchown.c (lchown): Likewise.
27213         * tests/test-ldexpl.c (ldexpl): Likewise.
27214         * tests/test-link.c (link): Likewise.
27215         * tests/test-linkat.c (linkat): Likewise.
27216         * tests/test-lseek.c (lseek): Likewise.
27217         * tests/test-lstat.c (lstat): Likewise.
27218         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27219         * tests/test-mbsinit.c (mbsinit): Likewise.
27220         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27221         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27222         * tests/test-memchr.c (memchr): Likewise.
27223         * tests/test-memcmp.c (memcmp): Likewise.
27224         * tests/test-memmem.c (memmem): Likewise.
27225         * tests/test-memrchr.c (memrchr): Likewise.
27226         * tests/test-mkdir.c (mkdir): Likewise.
27227         * tests/test-mkdirat.c (mkdirat): Likewise.
27228         * tests/test-mkfifo.c (mkfifo): Likewise.
27229         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27230         * tests/test-mknod.c (mknod): Likewise.
27231         * tests/test-nanosleep.c (nanosleep): Likewise.
27232         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27233         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27234         Likewise.
27235         * tests/test-open.c (open): Likewise.
27236         * tests/test-openat.c (openat): Likewise.
27237         * tests/test-perror.c (perror): Likewise.
27238         * tests/test-pipe2.c (pipe2): Likewise.
27239         * tests/test-poll.c (poll): Likewise.
27240         * tests/test-popen.c (popen, pclose): Likewise.
27241         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27242         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27243         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27244         (posix_spawn_file_actions_destroy)
27245         (posix_spawn_file_actions_addclose)
27246         (posix_spawn_file_actions_addopen)
27247         (posix_spawn_file_actions_adddup2): Likewise.
27248         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27249         * tests/test-pread.c (pread): Likewise.
27250         * tests/test-printf-posix.c (printf): Likewise.
27251         * tests/test-pty.c (openpty, forkpty): Likewise.
27252         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27253         (random_r): Likewise.
27254         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27255         * tests/test-readlink.c (readlink): Likewise.
27256         * tests/test-remove.c (remove): Likewise.
27257         * tests/test-rename.c (rename): Likewise.
27258         * tests/test-renameat.c (renameat): Likewise.
27259         * tests/test-rmdir.c (rmdir): Likewise.
27260         * tests/test-round1.c (round): Likewise.
27261         * tests/test-roundf1.c (roundf): Likewise.
27262         * tests/test-roundl.c (roundl): Likewise.
27263         * tests/test-setenv.c (setenv): Likewise.
27264         * tests/test-sigaction.c (sigaction): Likewise.
27265         * tests/test-sleep.c (sleep): Likewise.
27266         * tests/test-snprintf.c (snprintf): Likewise.
27267         * tests/test-sprintf-posix.c (sprintf): Likewise.
27268         * tests/test-stat.c (stat): Likewise.
27269         * tests/test-stpncpy.c (stpncpy): Likewise.
27270         * tests/test-strcasestr.c (strcasestr): Likewise.
27271         * tests/test-strchrnul.c (strchrnul): Likewise.
27272         * tests/test-strerror.c (strerror): Likewise.
27273         * tests/test-strsignal.c (strsignal): Likewise.
27274         * tests/test-strstr.c (strstr): Likewise.
27275         * tests/test-strtod.c (strtod): Likewise.
27276         * tests/test-strverscmp.c (strverscmp): Likewise.
27277         * tests/test-symlink.c (symlink): Likewise.
27278         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27279         * tests/test-times.c (times): Likewise.
27280         * tests/test-trunc1.c (trunc): Likewise.
27281         * tests/test-truncf1.c (truncf): Likewise.
27282         * tests/test-truncl.c (truncl): Likewise.
27283         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27284         Likewise.
27285         * tests/test-uname.c (uname): Likewise.
27286         * tests/test-unlink.c (unlink): Likewise.
27287         * tests/test-unlinkat.c (unlinkat): Likewise.
27288         * tests/test-unsetenv.c (unsetenv): Likewise.
27289         * tests/test-usleep.c (usleep): Likewise.
27290         * tests/test-utimensat.c (utimensat): Likewise.
27291         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27292         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27293         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27294         * tests/test-vprintf-posix.c (vprintf): Likewise.
27295         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27296         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27297         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27298         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27299         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27300         * tests/test-wcwidth.c (wcwidth): Likewise.
27301
27302         build: pull in conditional headers during GNULIB_POSIXCHECK
27303         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27304         definitions from any conditionally-included headers.
27305         * lib/stdlib.in.h (includes): Likewise.
27306         * lib/unistd.in.h (includes): Likewise.
27307
27308 2009-12-24  Bruno Haible  <bruno@clisp.org>
27309
27310         * tests/test-argv-iter.c: Include header file being tested immediately
27311         after config.h.
27312         * tests/test-base64.c: Likewise.
27313         * tests/test-flock.c: Likewise.
27314         * tests/test-fsync.c: Likewise.
27315         * tests/test-getdate.c: Likewise.
27316         * tests/test-getndelim2.c: Likewise.
27317         * tests/test-isfinite.c: Likewise.
27318         * tests/test-isinf.c: Likewise.
27319         * tests/test-strerror.c: Likewise.
27320         * tests/test-strsignal.c: Likewise.
27321
27322 2009-12-23  Eric Blake  <ebb9@byu.net>
27323
27324         unistd: work around cygwin bug
27325         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27326         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27327         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27328
27329 2009-12-23  Bruno Haible  <bruno@clisp.org>
27330
27331         localename: More tests.
27332         * tests/test-localename.c (SIZEOF): New macro.
27333         (categories): New variable.
27334         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27335         test_locale_name_default): Add test w.r.t. thread locale.
27336         (test_locale_name_thread): New function.
27337         (main): Invoke it.
27338
27339         localename: Make aware of thread locale.
27340         * lib/localename.h (gl_locale_name_thread): New declaration.
27341         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27342         behaviour with respect to thread locale.
27343         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27344         <langinfo.h>, glthread/lock.h.
27345         (SIZE_BITS): New macro.
27346         (string_hash): New function.
27347         (struct hash_node): New type.
27348         (HASH_TABLE_SIZE): New macro.
27349         (struniq_hash_table, struniq_lock): New variables.
27350         (struniq): New function.
27351         (gl_locale_name_thread): New function.
27352         (gl_locale_name): Invoke it.
27353         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27354         * modules/localename (Depends-on): Add lock.
27355         Reported by Mike Gran <spk121@yahoo.com>.
27356
27357 2009-12-23  Eric Blake  <ebb9@byu.net>
27358
27359         va-args: new module
27360         * modules/va-args: New file.
27361         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27362         * MODULES.html.sh (Core language properties): Mention it.
27363
27364         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27365         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27366         named alias for __attribute__((__unused__)).
27367         * lib/chown.c: Update client.
27368         * lib/fchmodat.c: Likewise.
27369         * lib/fts.c: Likewise.
27370         * lib/getdate.y: Likewise.
27371         * lib/getgroups.c: Likewise.
27372         * lib/getopt.c: Likewise.
27373         * lib/getugroups.c: Likewise.
27374         * lib/mkdir.c: Likewise.
27375         * lib/mkfifo.c: Likewise.
27376         * lib/mkfifoat.c: Likewise.
27377         * lib/mknod.c: Likewise.
27378         * lib/mknodat.c: Likewise.
27379         * lib/readlink.c: Likewise.
27380         * lib/se-context.in.h: Likewise.
27381         * lib/se-selinux.in.h: Likewise.
27382         * lib/sockets.c: Likewise.
27383         * lib/symlink.c: Likewise.
27384         * lib/symlinkat.c: Likewise.
27385         * lib/unicodeio.c: Likewise.
27386         * lib/unistr.h: Likewise.
27387         * tests/test-areadlink.c: Likewise.
27388         * tests/test-areadlinkat.c: Likewise.
27389         * tests/test-filenamecat.c: Likewise.
27390         * tests/test-fseeko.c: Likewise.
27391         * tests/test-ftello.c: Likewise.
27392         * tests/test-getdate.c: Likewise.
27393         * tests/test-getgroups.c: Likewise.
27394         * tests/test-gethostname.c: Likewise.
27395         * tests/test-quotearg.c: Likewise.
27396         * tests/test-version-etc.c: Likewise.
27397         * tests/test-xalloc-die.c: Likewise.
27398         * tests/test-xfprintf-posix.c: Likewise.
27399         * tests/test-xprintf-posix.c: Likewise.
27400         * tests/test-xvasprintf.c: Likewise.
27401
27402         tests: avoid compiler warnings
27403         * tests/test-fcntl.c (main): Delete unused parameters.
27404         * tests/test-freopen-safer.c (main): Likewise.
27405         * tests/test-xalloc-die.c (main): Mark unused parameters.
27406         * tests/test-fseeko.c (main): Likewise.
27407         * tests/test-ftello.c (main): Likewise.
27408         * tests/test-nanosleep.c (main): Avoid declaration warning.
27409         * tests/test-sleep.c (main): Likewise.
27410         * tests/test-unsetenv.c (main): Silence warning about string
27411         literal.
27412         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27413
27414 2009-12-23  Bruno Haible  <bruno@clisp.org>
27415
27416         * tests/test-localename.c (test_locale_name): New function, extracted
27417         from main. Also test mixed situations.
27418         (test_locale_name_posix, test_locale_name_environ,
27419         test_locale_name_default): New functions.
27420         (main): Invoke them all.
27421         * modules/localename-tests (configure.ac): Test for newlocale.
27422
27423 2009-12-23  Bruno Haible  <bruno@clisp.org>
27424
27425         unistd: Ensure getcwd gets declared before being overridden.
27426         * lib/unistd.in.h: Conditionally include <io.h>.
27427
27428 2009-12-22  Bruno Haible  <bruno@clisp.org>
27429
27430         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27431         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27432         (gl_WCHAR_H): Invoke it.
27433         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27434         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27435         Reported by Karl Berry <karl@freefriends.org>.
27436
27437 2009-12-22  Eric Blake  <ebb9@byu.net>
27438
27439         math, unistd: avoid redundant includes
27440         * lib/math.in.h (isnan): No need to re-include <math.h>.
27441         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27442
27443         getsubopt: work around cygwin bug
27444         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27445         avoid conflicting with system getsubopt.
27446         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27447         bug.
27448
27449         getopt: synchronize from glibc
27450         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27451         parameter order.  Adjust all callers.
27452         (_getopt_internal_r, main): Adjust quoting in error messages.
27453         Drop considerations for outdated POSIX 1003.2 error message.
27454         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27455         callers.
27456         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27457
27458         test-getopt: test stderr behavior
27459         * modules/getopt-posix-tests (Depends-on): Add dup2.
27460         * tests/test-getopt.c (ASSERT): Avoid stderr.
27461         (main): Move stderr to a temporary file.
27462         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27463         Instead, add parameter to inform caller if output occurred.
27464         (test_getopt): Adjust all existing tests to expect silence, and
27465         add new tests of leading ":".
27466         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27467         glibc shortcomings with leading "-:" or "+:" in optstring.
27468         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27469         Likewise.
27470         * doc/posix-functions/getopt.texi (getopt): Likewise.
27471
27472         test-getopt: enhance test
27473         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27474         supports optind=0.
27475         * tests/test-getopt.c (OPTIND_MIN): Move...
27476         * tests/test-getopt.h (OPTIND_MIN): ...here.
27477         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27478         Require that optind=0 works, since modern BSD supports it in
27479         addition to optreset, and since coreutils expects it.
27480         (test_getopt_long_only): New test.
27481         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27482         glibc shortcomings with 'W;', and enforcement of optind=0.
27483         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27484         Likewise.
27485
27486 2009-12-21  Bruno Haible  <bruno@clisp.org>
27487
27488         localename: Improvements for MacOS X and Cygwin.
27489         * lib/localename.h (gl_locale_name_environ): New declaration.
27490         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27491         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27492         (gl_locale_name_posix): Invoke it.
27493         (gl_locale_name_default): Add comments. Use Windows native API also on
27494         Cygwin.
27495
27496 2009-12-21  Bruno Haible  <bruno@clisp.org>
27497
27498         Update list of Win32 locale ids.
27499         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27500         (LANG_SAMI): Renamed from LANG_SAAMI.
27501         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27502         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27503         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27504         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27505         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27506         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27507         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27508         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27509         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27510         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27511         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27512         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27513         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27514         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27515         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27516         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27517         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27518         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27519         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27520         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27521         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27522         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27523         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27524         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27525         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27526         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27527         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27528         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27529         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27530         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27531         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27532         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27533         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27534         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27535         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27536         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27537         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27538         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27539         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27540         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27541         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27542         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27543         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27544         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27545         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27546         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27547         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27548         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27549         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27550         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27551         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27552         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27553         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27554         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27555         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27556         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27557         Add more languages and countries for Sami, Sorbian. Add more countries
27558         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27559         for Pashto. Change country for Syriac, Tswana.
27560
27561 2009-12-21  Eric Blake  <ebb9@byu.net>
27562
27563         test-utimens: avoid spurious failure
27564         * tests/test-chown.h (nap): Factor...
27565         * tests/nap.h: ...into new file.
27566         * tests/test-lchown.h (nap): Avoid duplication.
27567         * tests/test-utimens-common.h (nap): Use shared implementation,
27568         necessary on file systems with 1-second resolution.
27569         * modules/chown-tests (Files): Include new file.
27570         * modules/fdutimensat-tests (Files): Likewise.
27571         * modules/futimens-tests (Files): Likewise.
27572         * modules/lchown-tests (Files): Likewise.
27573         * modules/openat-tests (Files): Likewise.
27574         * modules/utimens-tests (Files): Likewise.
27575         * modules/utimensat-tests (Files): Likewise.
27576
27577 2009-12-19  Eric Blake  <ebb9@byu.net>
27578
27579         futimens, utimensat: work around Linux bug
27580         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27581         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27582         * lib/utimensat.c (rpl_utimensat): Work around it.
27583         * lib/futimens.c (rpl_futimens): Adjust comment.
27584
27585         utimens: work around Linux ctime bug
27586         * lib/utimens.c (detect_ctime_bug): New helper function.
27587         (update_timespec): Differentiate between workaround needed for
27588         this bug vs. what is needed for systems that lack utimensat.
27589         (fdutimens, lutimens): Work around bug.
27590
27591         utimens: check for ctime update
27592         * tests/test-utimens-common.h (check_ctime): Define.
27593         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27594         * tests/test-futimens.h (test_futimens): Likewise.
27595         * tests/test-lutimens.h (test_lutimens): Likewise.
27596         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27597         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27598
27599 2009-12-19  Bruno Haible  <bruno@clisp.org>
27600
27601         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27602         * tests/test-dprintf-posix2.sh: New file.
27603         * tests/test-dprintf-posix2.c: New file.
27604         * modules/dprintf-posix-tests (Files): Add them.
27605         (configure.ac): Check for getrlimit and setrlimit.
27606         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27607
27608 2009-12-19  Bruno Haible  <bruno@clisp.org>
27609
27610         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27611         * tests/test-fprintf-posix3.sh: New file.
27612         * tests/test-fprintf-posix3.c: New file.
27613         * modules/fprintf-posix-tests (Files): Add them.
27614         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27615
27616 2009-12-19  Eric Blake  <ebb9@byu.net>
27617
27618         dirfd: fix prototype
27619         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27620         * lib/dirfd.c (dirfd): Likewise.
27621
27622         canonicalize: reduce memory usage
27623         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27624         allocation to size.
27625         Reported by Solar Designer <solar@openwall.com>.
27626
27627 2009-12-19  Bruno Haible  <bruno@clisp.org>
27628
27629         New module attribute 'Applicability'.
27630         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27631         * gnulib-tool: New option --extract-applicability.
27632         (func_usage): Document it.
27633         (sed_extract_prog): Recognize it.
27634         (func_get_applicability): New function.
27635         (func_import): Generalize handling of 'link-warning' module.
27636         * modules/link-warning (Applicability): New section.
27637         * modules/arg-nonnull (Applicability): New section.
27638         Repoted by Simon Josefsson <simon@josefsson.org>.
27639
27640 2009-12-19  Bruno Haible  <bruno@clisp.org>
27641
27642         fflush: tweak
27643         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27644         * lib/fseeko.c (rpl_fseeko): Likewise.
27645
27646 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27647
27648         * lib/gl_list.h: Fix typo in comment.
27649
27650 2009-12-16  Eric Blake  <ebb9@byu.net>
27651
27652         fcntl: use to simplify other modules
27653         * modules/cloexec (Depends-on): Add fcntl.
27654         * modules/fchdir (Depends-on): Likewise.
27655         * modules/fd-safer-flag (Depends-on): Likewise.
27656         * modules/unistd-safer (Depends-on): Likewise.
27657         * modules/dup3 (configure.ac): Set module indicator.
27658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27659         missing.
27660         * lib/fchdir.c (_gl_register_dup): Fix comment.
27661         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27662         * lib/dup-safer.c (dup_safer): Likewise.
27663         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27664         * lib/dup3.c (dup3): Likewise.
27665         * tests/test-fchdir.c (main): Enhance test.
27666         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27667
27668         fcntl: port portions of fcntl to mingw
27669         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27670         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27671         replacement for mingw.
27672         * modules/fcntl (Description): Update.
27673         (Depends-on): Add dup2.
27674         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27675         * modules/fcntl-h (Makefile.am): Substitute it.
27676         * lib/fcntl.in.h (fcntl): Update declaration.
27677         (F_DUPFD, F_GETFD): New macros, when needed.
27678         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27679         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27680         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27681         we now guarantee.
27682
27683         fcntl: work around cygwin bug in F_DUPFD
27684         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27685         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27686         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27687         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27688         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27689
27690         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27691         * modules/fcntl (Files): List new files.
27692         (configure.ac): Run a test.
27693         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27694         * lib/fcntl.c (rpl_fcntl): Likewise.
27695         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27696         (gl_FCNTL_H): Always replace fcntl.h.
27697         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27698         * lib/fcntl.in.h (fcntl): Declare replacement.
27699         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27700         needed, plus a witness.
27701         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27702         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27703         * tests/test-fcntl.c: New file.
27704         * modules/fcntl-tests: Likewise.
27705
27706         binary-io: avoid potential compilation warning
27707         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27708         directives.
27709
27710         fflush: avoid compilation error on NetBSD
27711         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27712         between off_t and fpos_t, since the latter is sometimes a struct.
27713         * lib/fseeko.c (rpl_fseeko): Likewise.
27714         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27715
27716 2009-12-15  Eric Blake  <ebb9@byu.net>
27717
27718         fcntl-h, stdio, sys_ioctl: fix declarations
27719         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27720         function must not take arguments.
27721         * lib/sys_ioctl.in.h (ioctl): Likewise.
27722         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27723         (open): Add a link warning.
27724
27725 2009-12-15  Jim Meyering  <meyering@redhat.com>
27726
27727         areadlink, areadlink-with-size: relax license to LGPLv2+
27728         * modules/areadlink (License): Relax to LGPLv2+.
27729         * modules/areadlink-with-size (License): Likewise.
27730
27731 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27732             Bruno Haible  <bruno@clisp.org>
27733
27734         *printf: Fix memory leak.
27735         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27736         * lib/vfprintf.c (vfprintf): Likewise.
27737         * lib/dprintf.c (dprintf): Likewise.
27738         * lib/vdprintf.c (vdprintf): Likewise.
27739
27740 2009-12-14  Eric Blake  <ebb9@byu.net>
27741
27742         accept4: adjust module dependencies
27743         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27744
27745         utimens: one more try at avoiding compiler warning
27746         * lib/utimens.c (lutimens): Lower scope of result.
27747
27748 2009-12-13  Bruno Haible  <bruno@clisp.org>
27749
27750         Move the malloc checking from module 'list' to new module 'xlist'.
27751         * modules/xlist: New file.
27752         * lib/gl_xlist.h: New file.
27753         * lib/gl_xlist.c: New file.
27754         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27755         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27756         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27757         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27758         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27759         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27760         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27761         gl_sortedlist_nx_add): New declarations.
27762         (struct gl_list_implementation): Rename and change methods accordingly.
27763         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27764         (gl_list_nx_create): Renamed from gl_list_create.
27765         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27766         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27767         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27768         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27769         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27770         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27771         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27772         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27773         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27774         gl_list_create_empty.
27775         (gl_list_nx_create): Renamed from gl_list_create.
27776         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27777         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27778         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27779         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27780         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27781         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27782         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27783         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27784         * lib/gl_array_list.c: Don't include xalloc.h.
27785         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27786         NULL upon out-of-memory.
27787         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27788         out-of-memory.
27789         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27790         Change return type to 'int'.
27791         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27792         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27793         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27794         upon out-of-memory.
27795         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27796         upon out-of-memory.
27797         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27798         upon out-of-memory.
27799         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27800         upon out-of-memory.
27801         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27802         out-of-memory.
27803         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27804         Update.
27805         (gl_array_list_implementation): Update.
27806         * lib/gl_carray_list.c: Don't include xalloc.h.
27807         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27808         Return NULL upon out-of-memory.
27809         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27810         out-of-memory.
27811         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27812         Change return type to 'int'.
27813         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27814         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27815         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27816         upon out-of-memory.
27817         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27818         upon out-of-memory.
27819         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27820         out-of-memory.
27821         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27822         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27823         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27824         Update.
27825         (gl_carray_list_implementation): Update.
27826         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27827         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27828         gl_linked_create_empty. Return NULL upon out-of-memory.
27829         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27830         out-of-memory.
27831         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27832         Change return type to 'int'. Return -1 upon out-of-memory.
27833         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27834         out-of-memory.
27835         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27836         upon out-of-memory.
27837         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27838         upon out-of-memory.
27839         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27840         NULL upon out-of-memory.
27841         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27842         upon out-of-memory.
27843         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27844         out-of-memory.
27845         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27846         Update.
27847         * lib/gl_linked_list.c: Don't include xalloc.h.
27848         (gl_linked_list_implementation): Update.
27849         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27850         (add_to_bucket): Change return type to 'int'.
27851         (gl_linkedhash_list_implementation): Update.
27852         * lib/gl_anytree_list1.h (free_subtree): New function.
27853         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27854         gl_tree_create_empty. Return NULL upon out-of-memory.
27855         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27856         Change return type to 'int'. Return -1 upon out-of-memory.
27857         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27858         out-of-memory.
27859         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27860         (gl_tree_remove_node): New function, moved here from
27861         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27862         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27863         Update.
27864         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27865         malloc, not xmalloc. Return NULL upon out-of-memory.
27866         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27867         out-of-memory.
27868         (gl_tree_remove_node_from_tree): New function, extracted from
27869         gl_tree_remove_node.
27870         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27871         upon out-of-memory.
27872         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27873         out-of-memory.
27874         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27875         upon out-of-memory.
27876         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27877         upon out-of-memory.
27878         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27879         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27880         not xmalloc. Return NULL upon out-of-memory.
27881         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27882         out-of-memory.
27883         (gl_tree_remove_node_from_tree): New function, extracted from
27884         gl_tree_remove_node.
27885         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27886         upon out-of-memory.
27887         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27888         out-of-memory.
27889         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27890         upon out-of-memory.
27891         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27892         upon out-of-memory.
27893         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27894         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27895         gl_anytree_list1.h before gl_anyavltree_list2.h.
27896         (gl_avltree_list_implementation): Update.
27897         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27898         gl_anytree_list1.h before gl_anyavltree_list2.h.
27899         (gl_rbtree_list_implementation): Update.
27900         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27901         Change return type to 'int'. Return -1 upon out-of-memory. Use
27902         __builtin_expect.
27903         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27904         (gl_avltreehash_list_implementation): Update.
27905         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27906         (gl_rbtreehash_list_implementation): Update.
27907         * modules/array-list (Depends-on): Remove xalloc.
27908         * modules/carray-list (Depends-on): Likewise.
27909         * modules/linked-list (Depends-on): Likewise.
27910         * modules/linkedhash-list (Depends-on): Likewise.
27911         * modules/avltree-list (Depends-on): Likewise.
27912         * modules/rbtree-list (Depends-on): Likewise.
27913         * modules/avltreehash-list (Depends-on): Likewise.
27914         * modules/rbtreehash-list (Depends-on): Likewise.
27915
27916         * modules/xsublist: New file.
27917         * lib/gl_xsublist.h: New file.
27918         * lib/gl_xsublist.c: New file.
27919         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27920         (gl_sublist_nx_create): New declaration.
27921         * lib/gl_sublist.c: Don't include xalloc.h.
27922         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27923         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27924         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27925         Change return type to 'int'. Return -1 upon out-of-memory.
27926         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27927         upon out-of-memory.
27928         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27929         NULL upon out-of-memory.
27930         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27931         upon out-of-memory.
27932         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27933         NULL upon out-of-memory.
27934         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27935         NULL upon out-of-memory.
27936         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27937         upon out-of-memory.
27938         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27939         (gl_sublist_list_implementation): Update.
27940         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27941         upon out-of-memory.
27942         * modules/sublist (Depends-on): Remove xalloc.
27943
27944         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27945         * tests/test-carray_list.c: Likewise.
27946         * tests/test-linked_list.c: Likewise.
27947         * tests/test-linkedhash_list.c: Likewise.
27948         * tests/test-avltree_list.c: Likewise.
27949         * tests/test-rbtree_list.c: Likewise.
27950         * tests/test-avltreehash_list.c: Likewise.
27951         * tests/test-rbtreehash_list.c: Likewise.
27952         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27953         * modules/carray-list-tests (Makefile.am): Likewise.
27954         * modules/linked-list-tests (Makefile.am): Likewise.
27955         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27956         * modules/avltree-list-tests (Makefile.am): Likewise.
27957         * modules/rbtree-list-tests (Makefile.am): Likewise.
27958         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27959         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27960
27961         * NEWS: Mention the changes.
27962
27963         * lib/clean-temp.c: Include gl_xlist.h.
27964         * modules/clean-temp (Depends-on): Add xlist.
27965
27966         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27967         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27968
27969         * tests/test-array_oset.c: Include gl_xlist.h.
27970         * modules/array-oset-tests (Depends-on): Add xlist.
27971
27972         Reported by José E. Marchesi <jemarch@gnu.org>.
27973
27974 2009-12-13  Bruno Haible  <bruno@clisp.org>
27975
27976         Move the malloc checking from module 'oset' to new module 'xoset'.
27977         * modules/xoset: New file.
27978         * lib/gl_xoset.h: New file.
27979         * lib/gl_xoset.c: New file.
27980         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27981         declarations.
27982         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27983         (struct gl_oset_implementation): Rename and change methods accordingly.
27984         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27985         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27986         'int'. Mark as __warn_unused_result__.
27987         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27988         gl_oset_create_empty.
27989         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27990         'int'.
27991         * lib/gl_array_oset.c: Don't include xalloc.h.
27992         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27993         malloc, not xmalloc.
27994         (grow): Change return type to 'int'. Don't call xalloc_die.
27995         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27996         to 'int'.
27997         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27998         'int'.
27999         (gl_array_oset_implementation): Update.
28000         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28001         gl_tree_create_empty.
28002         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28003         'int'.
28004         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28005         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28006         xmalloc.
28007         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28008         not xmalloc.
28009         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28010         xmalloc.
28011         (gl_avltree_oset_implementation): Update.
28012         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28013         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28014         xmalloc.
28015         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28016         not xmalloc.
28017         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28018         xmalloc.
28019         (gl_rbtree_oset_implementation): Update.
28020         * modules/array-oset (Depends-on): Remove xalloc.
28021         * modules/avltree-oset (Depends-on): Likewise.
28022         * modules/rbtree-oset (Depends-on): Likewise.
28023         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28024         * tests/test-avltree_oset.c: Likewise.
28025         * tests/test-rbtree_oset.c: Likewise.
28026         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28027         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28028         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28029         * NEWS: Mention the change.
28030
28031 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28032
28033         maint.mk: allow a project to override release-prep commands
28034         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28035         commands into a new rule.
28036         (release-prep): New rule.
28037         (release-prep-hook): New overridable variable.
28038
28039 2009-12-13  Bruno Haible  <bruno@clisp.org>
28040
28041         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28042
28043 2009-12-13  Jim Meyering  <meyering@redhat.com>
28044
28045         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28046         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28047
28048 2009-12-12  Bruno Haible  <bruno@clisp.org>
28049
28050         duplocale: Tweak.
28051         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28052
28053 2009-12-12  Karl Berry  <karl@gnu.org>
28054
28055         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28056
28057 2009-12-12  Bruno Haible  <bruno@clisp.org>
28058
28059         * m4/po.m4: Undo incorrect untabification.
28060
28061 2009-12-12  Bruno Haible  <bruno@clisp.org>
28062
28063         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28064         * modules/c-strtod (Depends-on): Add locale.
28065         * modules/c-strtold (Depends-on): Likewise.
28066
28067 2009-12-12  Bruno Haible  <bruno@clisp.org>
28068
28069         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28070
28071 2009-12-11  Eric Blake  <ebb9@byu.net>
28072
28073         setenv: relax requirement in light of POSIX ruling
28074         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28075         not NULL.
28076         * tests/test-setenv.c (main): Relax test.
28077         * tests/test-unsetenv.c (main): Likewise.
28078         * doc/posix-functions/setenv.texi (setenv): Document this.
28079         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28080
28081 2009-12-11  Bruno Haible  <bruno@clisp.org>
28082
28083         New module 'fd-safer-flag'.
28084         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28085         * lib/dup-safer.c (dup_safer_flag): Remove function.
28086         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28087         * lib/fd-safer.c (fd_safer_flag): Remove function.
28088         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28089         * modules/cloexec (configure.ac): Drop indicator macro.
28090         * modules/fd-safer-flag: New file.
28091         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28092         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28093         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28094
28095 2009-12-11  Bruno Haible  <bruno@clisp.org>
28096
28097         Tests for module 'nl_langinfo'.
28098         * modules/nl_langinfo-tests: New file.
28099         * tests/test-nl_langinfo.sh: New file.
28100         * tests/test-nl_langinfo.c: New file.
28101
28102         New module 'nl_langinfo'.
28103         * lib/nl_langinfo.c: New file.
28104         * m4/nl_langinfo.m4: New file.
28105         * modules/nl_langinfo: New file.
28106         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28107
28108 2009-12-11  Bruno Haible  <bruno@clisp.org>
28109
28110         Tests for module 'langinfo'.
28111         * modules/langinfo-tests: New file.
28112         * tests/test-langinfo.c: New file.
28113
28114         New module 'langinfo'.
28115         * lib/langinfo.in.h: New file.
28116         * m4/langinfo_h.m4: New file.
28117         * modules/langinfo: New file.
28118         * doc/posix-headers/langinfo.texi: Mention the new module.
28119
28120 2009-12-11  Bruno Haible  <bruno@clisp.org>
28121
28122         * lib/config.charset: Untabify.
28123
28124 2009-12-11  Bruno Haible  <bruno@clisp.org>
28125
28126         * modules/unistd-safer (configure.ac): Drop indicator macro.
28127
28128 2009-12-11  Bruno Haible  <bruno@clisp.org>
28129
28130         Move pipe2-safer code to its own file.
28131         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28132         * lib/pipe-safer.c (pipe2_safer): Remove function.
28133         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28134         (Makefile.am): Add it to lib_SOURCES.
28135
28136 2009-12-10  Bruno Haible  <bruno@clisp.org>
28137
28138         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28139
28140 2009-12-10  Bruno Haible  <bruno@clisp.org>
28141
28142         Declare which arguments expect non-NULL values, for GCC and clang.
28143         * build-aux/arg-nonnull.h: New file.
28144         * modules/arg-nonnull: New file.
28145         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28146         (inet_ntop, inet_pton): Use it.
28147         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28148         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28149         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28150         (open, openat): Use it.
28151         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28152         (fnmatch): Use it.
28153         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28154         (getopt, getopt_long, getopt_long_only): Use it.
28155         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28156         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28157         Use it.
28158         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28159         (iconv_open): Use it.
28160         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28161         (strtoimax, strtoumax): Use it.
28162         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28163         (duplocale): Use it.
28164         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28165         (frexp, frexpl): Use it.
28166         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28167         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28168         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28169         (tsearch, tfind, tdelete, twalk): Use it.
28170         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28171         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28172         sigpending): Use it.
28173         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28174         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28175         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28176         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28177         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28178         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28179         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28180         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28181         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28182         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28183         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28184         Use it.
28185         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28186         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28187         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28188         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28189         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28190         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28191         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28192         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28193         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28194         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28195         strtoull, unsetenv): Use it.
28196         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28197         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28198         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28199         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28200         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28201         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28202         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28203         (strcasecmp, strncasecmp): Use it.
28204         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28205         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28206         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28207         rpl_setsockopt): Use it.
28208         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28209         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28210         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28211         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28212         (gettimeofday): Use it.
28213         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28214         (times): Use it.
28215         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28216         (uname): Use it.
28217         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28218         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28219         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28220         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28221         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28222         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28223         unlinkat, write): Use it.
28224         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28225         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28226         * lib/argv-iter.h: Include arg-nonnull.h.
28227         (_ATTRIBUTE_NONNULL_): Remove macro.
28228         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28229         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28230         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28231         optimization.
28232         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28233         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28234         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28235         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28236         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28237         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28238         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28239         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28240         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28241         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28242         * modules/dirent (Depends-on): Add arg-nonnull.
28243         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28244         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28245         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28246         * modules/fnmatch (Depends-on): Add arg-nonnull.
28247         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28248         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28249         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28250         * modules/glob (Depends-on): Add arg-nonnull.
28251         (Makefile.am): Insert arg-nonnull.h into glob.h.
28252         * modules/iconv_open (Depends-on): Add arg-nonnull.
28253         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28254         * modules/inttypes (Depends-on): Add arg-nonnull.
28255         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28256         * modules/locale (Depends-on): Add arg-nonnull.
28257         (Makefile.am): Insert arg-nonnull.h into locale.h.
28258         * modules/math (Depends-on): Add arg-nonnull.
28259         (Makefile.am): Insert arg-nonnull.h into math.h.
28260         * modules/netdb (Depends-on): Add arg-nonnull.
28261         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28262         * modules/search (Depends-on): Add arg-nonnull.
28263         (Makefile.am): Insert arg-nonnull.h into search.h.
28264         * modules/signal (Depends-on): Add arg-nonnull.
28265         (Makefile.am): Insert arg-nonnull.h into signal.h.
28266         * modules/spawn (Depends-on): Add arg-nonnull.
28267         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28268         * modules/stdio (Depends-on): Add arg-nonnull.
28269         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28270         * modules/stdlib (Depends-on): Add arg-nonnull.
28271         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28272         * modules/string (Depends-on): Add arg-nonnull.
28273         (Makefile.am): Insert arg-nonnull.h into string.h.
28274         * modules/strings (Depends-on): Add arg-nonnull.
28275         (Makefile.am): Insert arg-nonnull.h into strings.h.
28276         * modules/sys_socket (Depends-on): Add arg-nonnull.
28277         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28278         * modules/sys_stat (Depends-on): Add arg-nonnull.
28279         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28280         * modules/sys_time (Depends-on): Add arg-nonnull.
28281         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28282         * modules/sys_times (Depends-on): Add arg-nonnull.
28283         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28284         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28285         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28286         * modules/time (Depends-on): Add arg-nonnull.
28287         (Makefile.am): Insert arg-nonnull.h into time.h.
28288         * modules/unistd (Depends-on): Add arg-nonnull.
28289         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28290         * modules/wchar (Depends-on): Add arg-nonnull.
28291         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28292         * modules/argv-iter (Depends-on): Add arg-nonnull.
28293         * tests/test-canonicalize.c (null_ptr): New function.
28294         (main): Use it.
28295         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28296         (main): Use it.
28297         * tests/test-memmem.c (null_ptr): New function.
28298         (main): Use it.
28299         Reported by Jim Meyering.
28300
28301 2009-12-10  Bruno Haible  <bruno@clisp.org>
28302
28303         Use spaces for indentation, not tabs.
28304         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28305         * m4/*.m4: Untabify.
28306         * build-aux/*.h: Untabify.
28307         * tests/**/*.[hc]: Untabify.
28308         * README: New section "Indent with spaces, not TABs", based on
28309         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28310         * NEWS: Mention the change.
28311
28312 2009-12-10  Bruno Haible  <bruno@clisp.org>
28313
28314         pty test: Fix link error.
28315         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28316         test_pty_LDADD.
28317
28318 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28319
28320         * modules/pty: New file.
28321         * modules/pty-tests: New file.
28322         * m4/pty.m4: New file.
28323         * tests/test-pty.c: New file.
28324         * doc/glibc-headers/pty.texi: Modified.
28325         * doc/glibc-functions/forkpty.texi: Modified.
28326         * doc/glibc-functions/openpty.texi: Modified.
28327
28328 2009-12-10  Bruno Haible  <bruno@clisp.org>
28329
28330         Avoid syntax error in C++ mode.
28331         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28332
28333 2009-12-10  Bruno Haible  <bruno@clisp.org>
28334
28335         Use sed with option -e.
28336         * gnulib-tool (func_version, func_emit_copyright_notice,
28337         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28338         option -e to sed.
28339         * modules/link-warning (Makefile.am): Likewise.
28340
28341 2009-12-10  Jim Meyering  <meyering@redhat.com>
28342
28343         mgetgroups: do not write bytes beyond end of malloc'd buffer
28344         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28345         username, we call getgroups with a one-element-shorter buffer,
28346         but still told it the length was original, max_n_groups.
28347
28348 2009-12-09  Eric Blake  <ebb9@byu.net>
28349
28350         cloexec: relax license
28351         * modules/cloexec (Maintainer): Add myself.
28352         (License): Use LGPL, not GPL.
28353
28354         link-warning: optimize generation
28355         * modules/link-warning (Makefile.am): Reduce process usage.
28356
28357 2009-12-09  Bruno Haible  <bruno@clisp.org>
28358
28359         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28360         workaround was added on 2009-11-17.
28361
28362 2009-12-09  Jim Meyering  <meyering@redhat.com>
28363             Bruno Haible  <bruno@clisp.org>
28364
28365         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28366         * modules/link-warning (Makefile.am): Make the comment-removing sed
28367         command more robust in the face of bootstrap-prepended comment lines.
28368
28369 2009-12-09  Bruno Haible  <bruno@clisp.org>
28370
28371         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28372         most one group.
28373
28374 2009-12-09  Simon Josefsson <simon@josefsson.org>
28375             Bruno Haible  <bruno@clisp.org>
28376
28377         * build-aux/link-warning.h: Add copyright notice.
28378         * modules/link-warning (Makefile.am): Generate link-warning.h from
28379         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28380         * NEWS: Mention change in link-warning module.
28381         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28382         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28383         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28384         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28385         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28386         * modules/math (Makefile.am): Add dependency to math.h.
28387         * modules/search (Makefile.am): Add dependency to search.h.
28388         * modules/signal (Makefile.am): Add dependency to signal.h.
28389         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28390         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28391         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28392         * modules/string (Makefile.am): Add dependency to string.h.
28393         * modules/strings (Makefile.am): Add dependency to strings.h.
28394         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28395         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28396         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28397         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28398         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28399         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28400         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28401         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28402         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28403
28404 2009-12-09  Bruno Haible  <bruno@clisp.org>
28405
28406         fchdir: Optimize away rpl_fstat when possible.
28407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28408         REPLACE_OPEN_DIRECTORY.
28409         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28410
28411 2009-12-09  Bruno Haible  <bruno@clisp.org>
28412
28413         * lib/fchdir.c: Update comment.
28414
28415 2009-12-09  Bruno Haible  <bruno@clisp.org>
28416
28417         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28418
28419 2009-12-08  Eric Blake  <ebb9@byu.net>
28420
28421         fchdir: avoid memory leak on re-registration.
28422         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28423
28424 2009-12-08  Jim Meyering  <meyering@redhat.com>
28425
28426         init.sh: avoid Solaris 10 /bin/sh portability problem
28427         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28428         sourced script:
28429           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28430           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28431           bar
28432         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28433         and two tests used that idiom.
28434         * tests/init.sh: Update suggested usage comments.
28435         (path_prepend_): New function, to be used in place
28436         of the --src-path=DIR option.
28437         (setup_): Move PATH-prepending code into path_prepend_.
28438         * tests/test-pread.sh: Adapt to new usage.
28439         * tests/test-xalloc-die.sh: Likewise.
28440
28441 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28442
28443         * doc/gnulib.texi (Glibc pty.h): Add.
28444         * doc/glibc-functions/forkpty.texi: Add.
28445         * doc/glibc-functions/openpty.texi: Add.
28446         Suggested by Bruno Haible.
28447
28448 2009-12-08  Eric Blake  <ebb9@byu.net>
28449
28450         fchdir: fix logic bugs
28451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28452         * tests/test-fchdir.c (main): Enhance test.
28453         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28454         is in use.
28455
28456         dup2: fix logic bugs
28457         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28458         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28459         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28460         exists.
28461         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28462
28463 2009-12-07  Eric Blake  <ebb9@byu.net>
28464
28465         unlink: fix m4 detection
28466         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28467
28468         unistd-safer: add unit test
28469         * modules/unistd-safer-tests: New file.
28470         * tests/test-dup-safer.c: Likewise.
28471         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28472         * tests/test-dup2.c (setmode): Likewise.
28473         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28474
28475         cloexec: preserve text vs. binary across dup_cloexec
28476         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28477         mode.
28478         * modules/dup2-tests (Depends-on): Add binary-io.
28479         * modules/cloexec-tests (Depends-on): Likewise.
28480         * tests/test-dup2.c (setmode, is_mode): New helpers.
28481         (main): Add tests that translation mode is preserved.
28482         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28483         Reported by Bruno Haible.
28484
28485         mgetgroups: reduce duplicate listings
28486         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28487         resulting array.
28488         * tests/test-chown.h (test_chown): Simplify client.
28489         * tests/test-lchown.h (test_lchown): Likewise.
28490
28491 2009-12-06  Bruno Haible  <bruno@clisp.org>
28492
28493         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28494         value.
28495
28496 2009-12-06  Bruno Haible  <bruno@clisp.org>
28497
28498         * lib/progname.c: Include stdio.h, stdlib.h.
28499         (set_program_name): Reject a NULL argument.
28500
28501 2009-12-05  Eric Blake  <ebb9@byu.net>
28502
28503         pipe2-safer: new module
28504         * modules/pipe2-safer: New file.
28505         * lib/unistd-safer.h (pipe2_safer): New prototype.
28506         * lib/unistd--.h (pipe2): New wrapper.
28507         * lib/pipe-safer.c (pipe2_safer): New function.
28508         * modules/pipe (Depends-on): Add pipe2-safer.
28509         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28510
28511         stdlib-safer: preserve cloexec flag for mkostemp[s]
28512         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28513         fd_safer_flag.
28514
28515         unistd-safer: allow preservation of cloexec status via flag
28516         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28517         prototypes.
28518         * lib/dup-safer.c (dup_safer_flag): New function.
28519         * lib/fd-safer.c (fd_safer_flag): Likewise.
28520         * modules/cloexec (configure.ac): Set witness.
28521
28522         test-dup2: enhance test
28523         * modules/dup2-tests (Depends-on): Add cloexec.
28524         * tests/test-dup2.c (main): Enhance test.
28525
28526         cloexec: add dup_cloexec
28527         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28528         header and comments.
28529         * lib/cloexec.c (set_cloexec_flag): Add comments.
28530         (dup_cloexec): New function, with mingw implementation borrowed
28531         from...
28532         * lib/w32spawn.h (dup_noinherit): ...here.
28533         * modules/execute (Depends-on): Add cloexec.
28534         * modules/pipe (Depends-on): Likewise.
28535         * modules/cloexec (Depends-on): Add dup2.
28536         * modules/cloexec-tests (Files): New file.
28537         * tests/test-cloexec.c: Likewise.
28538
28539         test-xalloc-die: fix test for mingw
28540         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28541         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28542         directory and .exe suffix off argv[0] output.
28543
28544         test-fseeko: fix test for mingw
28545         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28546         than undefining fseek, so test will pass on mingw.
28547
28548 2009-12-05  Bruno Haible  <bruno@clisp.org>
28549
28550         * lib/progname.h (set_program_name): Clarify specification.
28551         * lib/progname.c (set_program_name): Likewise.
28552         Reported by Jim Meyering.
28553
28554 2009-12-05  Jim Meyering  <meyering@redhat.com>
28555
28556         maint.mk: backslash-escape parens in default regexp
28557         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28558         backslash-escape the literal parentheses.
28559
28560         maint.mk: news-date-check: use grep -E
28561         * top/maint.mk (today): Define a Make variable, not a...
28562         (news-date-check): ...shell variable.
28563         (news-date-regexp): Use the Make variable.
28564         Use grep's -E option.  Change the failing diagnostic to mention
28565         the variable, $(news-date-regexp).
28566
28567 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28568
28569         maintainer-makefile: allow customization of NEWS entry format
28570         * top/maint.mk (news-date-regexp): New overridable variable.
28571         (news-date-check): Use it.
28572
28573 2009-12-04  Eric Blake  <ebb9@byu.net>
28574
28575         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28576         * lib/mgetgroups.h (xgetgroups): New prototype.
28577         * lib/mgetgroups.c (xgetgroups): New wrapper.
28578         (mgetgroups): Handle ENOSYS.
28579         * modules/mgetgroups (Depends-on): Add realloc.
28580         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28581
28582         mgetgroups: avoid argument promotion issues with -1
28583         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28584         for invalid gid_t.
28585         * tests/test-chown.h (getegid, test_chown): Likewise.
28586         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28587
28588 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28589
28590         exclude: Fix header file problems.
28591         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28592
28593 2009-12-01  Jim Meyering  <meyering@redhat.com>
28594
28595         fts: fts_open: do not let an empty string cause immediate failure
28596         This is required in support of GNU rm, for which the command
28597         "rm A '' B" must process and remove both A and B, in spite of
28598         the empty string argument.
28599         * lib/fts.c (fts_open): Do not let the presence of an empty string
28600         cause fts_open to fail immediately.  Most fts-using tools must be
28601         able to process all arguments, in order, and can be expected to
28602         diagnose such arguments themselves.
28603
28604 2009-11-30  Eric Blake  <ebb9@byu.net>
28605
28606         utimens: fix compilation error
28607         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28608         Declare variable at right scope.
28609
28610 2009-11-29  Jim Meyering  <meyering@redhat.com>
28611
28612         bootstrap: handle perl-5.11's changed --version output
28613         * build-aux/bootstrap (get_version): Handle perl separately,
28614         since perl-5.11's --version output is different.
28615
28616 2009-11-28  Jim Meyering  <meyering@redhat.com>
28617
28618         userspec: depend on the inttostr module, too
28619         * modules/userspec (Depends-on): Add inttostr.
28620
28621         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28622         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28623         number of MAXUID when it evaluates to (uid_t) -1.
28624         Likewise for group ID.  Reported by Matt McCutchen in
28625         <http://savannah.gnu.org/bugs/?28113>
28626
28627         userspec: reformat to use spaces, not TABs
28628         * lib/userspec.c: Expand TABs to spaces.
28629         Add Emacs' "indent-tabs-mode: nil" hint.
28630
28631 2009-11-27  Eric Blake  <ebb9@byu.net>
28632
28633         getopt-gnu: flush out another BSD bug
28634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28635         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28636         flush out BSD bug.
28637         * tests/test-getopt.h (test_getopt): End lists with NULL.
28638         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28639         (test_getopt_long_posix): Enhance test.
28640         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28641         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28642         getopt-gnu.
28643         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28644         Likewise.
28645
28646 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28647
28648         * modules/idpriv-droptemp-tests (Notice): Fix text.
28649
28650 2009-11-27  Jim Meyering  <meyering@redhat.com>
28651
28652         test-xalloc-die: avoid spurious failure due to libtool argv difference
28653         In a libtool-enabled project, this test would fail due to a difference
28654         in the emitted program name, e.g.,
28655         -test-xalloc-die: memory exhausted
28656         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28657         Use program to avoid that.
28658         * modules/xalloc-die-tests (Depends-on): Add progname.
28659         * tests/test-xalloc-die.c: Include progname.h".
28660         (program_name): Remove decl.
28661         (main): Call set_program_name.
28662         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28663
28664 2009-11-26  Richard Jones  <rjones@redhat.com>
28665
28666         w32sock: leave win32 error in place.
28667         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28668
28669 2009-11-26  Eric Blake  <ebb9@byu.net>
28670
28671         init.sh: suggest to use skip_ and fail_ functions in comments
28672         * tests/init.sh: Add a sentence.
28673
28674 2009-11-25  Bruno Haible  <bruno@clisp.org>
28675
28676         init.sh: add documentation in comments
28677         * tests/init.sh: Add some developer and user documentation.
28678
28679 2009-11-26  Jim Meyering  <meyering@redhat.com>
28680
28681         init.sh: accommodate even those who specify bogus srcdir manually
28682         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28683         configure-time tests to be sanitized, so that there is no need to
28684         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28685         (with no double quotes) suffices.  However, since tests may be
28686         invoked manually, and since you may explicitly set srcdir to the
28687         name of a directory containing spaces, do quote its uses here.
28688         * tests/test-pread.sh: Likewise.
28689         Suggested by Bruno Haible.
28690
28691         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28692         * tests/test-pread.sh: Write no data into the pipe, because
28693         test-pread actually reads none.  This avoids a diagnostic,
28694         "bash: echo: write error: Broken pipe", that arises in the unusual
28695         event something is ignoring SIGPIPE, and might be interpreted
28696         as some sort of failure.  Reported by Bruno Haible.
28697
28698 2009-11-25  Jim Meyering  <meyering@redhat.com>
28699
28700         test-pread: cover failure with ESPIPE and EINVAL
28701         * tests/test-pread.c (main): Test for failure, too.
28702         * tests/test-pread.sh: Invoke with stdin on a pipe.
28703         Suggested by Eric Blake.
28704
28705         pread: improvement and fix
28706         * modules/pread (Depends-on): Depend on lseek, for portability to
28707         e.g., mingw.  Suggested by Eric Blake.
28708         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28709
28710         unistd.in.h: correct declaration of pread
28711         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28712         Reported by Richard W.M. Jones.
28713
28714         test-pread.sh: distribute the test script
28715         * modules/pread-tests (Files): Include test-pread.sh.
28716
28717         test-pread.sh: clean up
28718         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28719         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28720         That is unnecessary, since it's always ".".
28721         Suggestion from Eric Blake.
28722
28723         test-pread.sh: make executable
28724         * tests/test-pread.sh: Set executable bit.
28725         Reported by Eric Blake.
28726
28727         correct typo in test-pread.sh
28728         * tests/test-pread.sh: Add #! line.
28729
28730         test pread
28731         * tests/test-pread.c: New file.
28732         * tests/test-pread.sh: Likewise.
28733         * modules/pread-tests: Likewise.
28734
28735         pread: new module
28736         * modules/pread: New file.
28737         * lib/unistd.in.h (pread): Define/declare.
28738         * lib/pread.c (pread): New file.
28739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28740         * modules/unistd (Makefile.am): Substitute witnesses.
28741         * doc/posix-functions/pread.texi (pread): Update.
28742         * MODULES.html.sh: Add pread.
28743
28744 2009-11-25  Jim Meyering  <meyering@redhat.com>
28745
28746         tests/init.sh: new file to be used via most *.sh tests
28747         * tests/init.sh: New file.
28748
28749 2009-11-25  Eric Blake  <ebb9@byu.net>
28750
28751         utimens: work around older Linux failure with symlinks
28752         * lib/utimens.c (lutimensat_works_really): New variable.
28753         (fdutimens, lutimens): Use it to manage kernels that support
28754         nanosecond times on files, but not on symlinks.
28755         Reported by OndÅ™ej Vašík.
28756
28757         utimes: fix configure grammar
28758         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28759
28760 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28761
28762         regex: Fix fastmap for multibyte character ranges.
28763         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28764         characters when a multibyte character range is included.
28765
28766 2009-11-22  Andy Wingo  <wingo@pobox.com>
28767
28768         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28769         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28770
28771 2009-11-24  Bruno Haible  <bruno@clisp.org>
28772
28773         doc: Most *_l functions exist in MacOS X 10.5.
28774         * doc/posix-functions/duplocale.texi: Update platforms list.
28775         * doc/posix-functions/freelocale.texi: Likewise.
28776         * doc/posix-functions/newlocale.texi: Likewise.
28777         * doc/posix-functions/uselocale.texi: Likewise.
28778         * doc/posix-functions/isalnum_l.texi: Likewise.
28779         * doc/posix-functions/isalpha_l.texi: Likewise.
28780         * doc/posix-functions/isblank_l.texi: Likewise.
28781         * doc/posix-functions/iscntrl_l.texi: Likewise.
28782         * doc/posix-functions/isdigit_l.texi: Likewise.
28783         * doc/posix-functions/isgraph_l.texi: Likewise.
28784         * doc/posix-functions/islower_l.texi: Likewise.
28785         * doc/posix-functions/isprint_l.texi: Likewise.
28786         * doc/posix-functions/ispunct_l.texi: Likewise.
28787         * doc/posix-functions/isspace_l.texi: Likewise.
28788         * doc/posix-functions/isupper_l.texi: Likewise.
28789         * doc/posix-functions/iswalnum_l.texi: Likewise.
28790         * doc/posix-functions/iswalpha_l.texi: Likewise.
28791         * doc/posix-functions/iswblank_l.texi: Likewise.
28792         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28793         * doc/posix-functions/iswctype_l.texi: Likewise.
28794         * doc/posix-functions/iswdigit_l.texi: Likewise.
28795         * doc/posix-functions/iswgraph_l.texi: Likewise.
28796         * doc/posix-functions/iswlower_l.texi: Likewise.
28797         * doc/posix-functions/iswprint_l.texi: Likewise.
28798         * doc/posix-functions/iswpunct_l.texi: Likewise.
28799         * doc/posix-functions/iswspace_l.texi: Likewise.
28800         * doc/posix-functions/iswupper_l.texi: Likewise.
28801         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28802         * doc/posix-functions/isxdigit_l.texi: Likewise.
28803         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28804         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28805         * doc/posix-functions/strcoll_l.texi: Likewise.
28806         * doc/posix-functions/strfmon_l.texi: Likewise.
28807         * doc/posix-functions/strftime_l.texi: Likewise.
28808         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28809         * doc/posix-functions/strxfrm_l.texi: Likewise.
28810         * doc/posix-functions/tolower_l.texi: Likewise.
28811         * doc/posix-functions/toupper_l.texi: Likewise.
28812         * doc/posix-functions/towctrans_l.texi: Likewise.
28813         * doc/posix-functions/towlower_l.texi: Likewise.
28814         * doc/posix-functions/towupper_l.texi: Likewise.
28815         * doc/posix-functions/wcscoll_l.texi: Likewise.
28816         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28817         * doc/posix-functions/wctrans_l.texi: Likewise.
28818         * doc/posix-functions/wctype_l.texi: Likewise.
28819         * doc/glibc-functions/strptime_l.texi: Likewise.
28820         * doc/glibc-functions/strtod_l.texi: Likewise.
28821         * doc/glibc-functions/strtof_l.texi: Likewise.
28822         * doc/glibc-functions/strtol_l.texi: Likewise.
28823         * doc/glibc-functions/strtold_l.texi: Likewise.
28824         * doc/glibc-functions/strtoll_l.texi: Likewise.
28825         * doc/glibc-functions/strtoul_l.texi: Likewise.
28826         * doc/glibc-functions/strtoull_l.texi: Likewise.
28827         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28828         * doc/glibc-functions/wcstod_l.texi: Likewise.
28829         * doc/glibc-functions/wcstof_l.texi: Likewise.
28830         * doc/glibc-functions/wcstol_l.texi: Likewise.
28831         * doc/glibc-functions/wcstold_l.texi: Likewise.
28832         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28833         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28834         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28835
28836 2009-11-24  Bruno Haible  <bruno@clisp.org>
28837
28838         duplocale: Fix logic bug.
28839         * lib/duplocale.c: Don't include <langinfo.h>.
28840         (_NL_LOCALE_NAME): Remove macro.
28841         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28842         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28843
28844 2009-11-23  Jim Meyering  <meyering@redhat.com>
28845
28846         test-update-copyright: don't hard-code /usr/bin/perl
28847         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28848         perl to print the current year.  Gilles Espinasse reported that
28849         the replaced use of perl was hard-coded as /usr/bin/perl.
28850
28851 2009-11-23  Bruno Haible  <bruno@clisp.org>
28852
28853         duplocale: Add support for glibc 2.3.x.
28854         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28855
28856 2009-11-22  Bruno Haible  <bruno@clisp.org>
28857
28858         vasnprintf: Tiny optimization.
28859         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28860         MacOS X.
28861
28862 2009-11-22  Bruno Haible  <bruno@clisp.org>
28863
28864         Tests for module 'duplocale'.
28865         * modules/duplocale-tests: New file.
28866         * tests/test-duplocale.c: New file.
28867
28868         New module 'duplocale'.
28869         * m4/duplocale.m4: New file.
28870         * lib/locale.in.h (duplocale): New declaration.
28871         * lib/duplocale.c: New file.
28872         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28873         gl_LOCALE_H_DEFAULTS): New macros.
28874         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28875         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28876         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28877         REPLACE_DUPLOCALE.
28878         * modules/duplocale: New file.
28879         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28880
28881 2009-11-22  Bruno Haible  <bruno@clisp.org>
28882
28883         * modules/locale-tests (configure.ac): Test for newlocale function.
28884         * tests/test-locale.c: When the system has extended locale functions,
28885         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28886
28887         locale: Make locale_t available when possible.
28888         * lib/locale.in.h: Include <xlocale.h> when it exists.
28889         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28890         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28891         * modules/locale (Depends-on): Add extensions.
28892         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28893         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28894
28895 2009-11-22  Bruno Haible  <bruno@clisp.org>
28896
28897         Add comments.
28898         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28899         invocation.
28900         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28901         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28902         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28903
28904 2009-11-22  Bruno Haible  <bruno@clisp.org>
28905
28906         error: account for the possibility of freopen (stdout).
28907         * lib/error.c: Include <unistd.h>.
28908         (flush_stdout): New function, extracted from error and error_at_line.
28909         Determine stdout's fd dynamically.
28910         (error, error_at_line): Invoke flush_stdout.
28911         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28912         * modules/error (Depends-on): Add unistd.
28913
28914 2009-11-22  Bruno Haible  <bruno@clisp.org>
28915
28916         diffseq: Add comment.
28917         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28918
28919 2009-11-22  Jim Meyering  <meyering@redhat.com>
28920
28921         c-stack: avoid defining an unused static function
28922         * lib/c-stack.c (find_stack_direction): Do not define this function
28923         when it will not be used.
28924
28925         diffseq: avoid spurious gcc warnings
28926         * lib/diffseq.h (IF_LINT2): Define.
28927         (compareseq): Use it to initialize two members of "part".
28928         This avoids two used-uninitialized warnings.
28929
28930 2009-11-21  Jim Meyering  <meyering@redhat.com>
28931
28932         c-stack: avoid "ignoring return value of `write'" warning
28933         * lib/c-stack.c: Include "ignore-value.h".
28934         (die): Explicitly ignore each write return value.
28935         * modules/c-stack (Depends-on): Add ignore-value.
28936
28937 2009-11-21  Bruno Haible  <bruno@clisp.org>
28938
28939         diffseq: reduce scope of variable 'best'.
28940         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28941         variable, earlier used for two different purposes.
28942
28943 2009-11-21  Jim Meyering  <meyering@redhat.com>
28944
28945         diffseq: remove useless assignment to "best"
28946         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28947         assignment.  At that point "best" is already guaranteed to be zero.
28948
28949 2009-11-20  Eric Blake  <ebb9@byu.net>
28950
28951         build: mention ftp redirector in release announcements
28952         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28953         values that used to come from cfg.mk; mention FTP redirect URL.
28954         * build-aux/announce-gen: Mention the mirror list.
28955         Suggested by Karl Berry.
28956
28957         nanosleep: improve port to mingw
28958         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28960         LIB_NANOSLEEP, but only when needed.
28961         * modules/select (Link): Document LIBSOCKET.
28962         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28963         enough.
28964
28965         nanosleep: work around cygwin bug
28966         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28967         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28968         bug.
28969         (getnow): Delete, not needed.
28970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28971         LIB_CLOCK_GETTIME.
28972         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28973         clock-time, gettime.
28974         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28975         bug.
28976         * modules/nanosleep-tests: New test.
28977         * tests/test-nanosleep.c: New file.
28978
28979         sleep: work around cygwin bug
28980         * lib/sleep.c (rpl_sleep): Work around the bug.
28981         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28982         (gl_PREREQ_SLEEP): Delete unused macro.
28983         * modules/sleep (Depends-on): Add verify.
28984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28985         * modules/unistd (Makefile.am): Substitute witness.
28986         * lib/unistd.in.h (sleep): Update prototype.
28987         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28988         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28989         * modules/sleep-tests (Depends-on): Check for alarm.
28990
28991 2009-11-20  Jim Meyering  <meyering@redhat.com>
28992
28993         maint.mk: improve sc_prohibit_magic_number_exit
28994         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28995         so it does not match uses like System.exit(1).
28996         Add comments showing how to correct all offenders.
28997
28998 2009-11-19  Eric Blake  <ebb9@byu.net>
28999
29000         xalloc-die-tests: add missing library
29001         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29002
29003         test-xvasprintf: silence compiler warnings
29004         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29005         empty string from gcc.
29006
29007 2009-11-19  Jim Meyering  <meyering@redhat.com>
29008
29009         xfreopen: new module, from coreutils
29010         * modules/xfreopen: New module.
29011         * lib/xfreopen.c: New file.
29012         * lib/xfreopen.h: New file.
29013         * MODULES.html.sh (File stream based Input/Output"): Add it.
29014
29015 2009-11-19  Eric Blake  <ebb9@byu.net>
29016
29017         manywarnings: depend on warnings
29018         * modules/manywarnings (Depends-on): Add warnings.
29019
29020         build: avoid compiler warnings
29021         * lib/select.c (rpl_select): Delete unused variable.
29022         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29023
29024 2009-11-18  Eric Blake  <ebb9@byu.net>
29025
29026         tests: avoid false negative with --with-packager
29027         * tests/test-version-etc.sh: Discard packager information.
29028         * tests/test-argp-version-etc-1.sh: Likewise.
29029         Reported by Mike Frysinger.
29030
29031         utimens: fix regression on Solaris
29032         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29033         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29034         can only change fd timestamps via futimesat.  Instead, use an
29035         additional witness macro to avoid BSD bug.
29036         Reported by Jim Meyering.
29037
29038 2009-11-17  Eric Blake  <ebb9@byu.net>
29039
29040         usleep: use it to simplify tests
29041         * modules/stat-time-tests (Depends-on): Add usleep.
29042         (configure.ac): Drop usleep check.
29043         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29044         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29045         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29046         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29047         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29048         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29049         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29050         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29051         Likewise.
29052         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29053         * tests/test-lchown.h (nap): Likewise.
29054         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29055         * tests/test-stat-time.c (nap): Likewise.
29056         * tests/test-utimens-common.h (nap): Update comments.
29057
29058         usleep: new module
29059         * modules/usleep: New file.
29060         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29061         * lib/usleep.c (usleep): Likewise.
29062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29063         * modules/unistd (Makefile.am): Substitute witnesses.
29064         * lib/unistd.in.h (usleep): Add declaration.
29065         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29066         * MODULES.html.sh (Date and time): Likewise.
29067         * modules/usleep-tests (Depends-on): New test.
29068         * tests/test-usleep.c: New file.
29069
29070         chown: work around OpenBSD bug
29071         * lib/chown.c (rpl_chown): Work around the bug.
29072         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29073         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29074         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29075         * modules/chown (Depends-on): Add stdbool.
29076         * modules/lchown (Depends-on): Likewise.
29077         * doc/posix-functions/chown.texi (chown): Document the bug.
29078         * doc/posix-functions/lchown.texi (lchown): Likewise.
29079         * tests/test-lchown.h (test_chown): Relax test.
29080
29081         mkstemp: avoid conflict with C++ keyword template
29082         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29083         * lib/mkostemp.c (mkostemp): Likewise.
29084         * lib/mkostemps.c (mkostemps): Likewise.
29085         * lib/mkstemp.c (mkstemp): Likewise.
29086         * lib/mkstemps.c (mkstemps): Likewise.
29087
29088         xalloc-die-tests: optimize
29089         * tests/test-xalloc-die.sh: Reduce number of processes.
29090
29091 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29092
29093         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29094         patch from ludo@gnu.org (Ludovic Courtès).
29095
29096 2009-11-17  Jim Meyering  <meyering@redhat.com>
29097
29098         version-etc: use proper license string
29099         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29100         * modules/version-etc-fsf: Likewise.
29101
29102 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29103
29104         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29105         printed to stdout.  Deal with EOL differences.
29106
29107 2009-11-17  Eric Blake  <ebb9@byu.net>
29108
29109         unsetenv: work around Solaris bug
29110         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29111         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29112         Reported by Jim Meyering.
29113
29114         vasnprintf: avoid compiler warnings
29115         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29116         variables.
29117         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29118
29119 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29120
29121         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29122         settings since xalloc-die is no longer the self test,
29123         xalloc-die.sh is.
29124
29125 2009-11-17  Jim Meyering  <meyering@redhat.com>
29126
29127         test-xalloc-die.sh: make the code agree with the commit log
29128         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29129         at the end, just in case you happen to have a test-xalloc-die
29130         program in some other PATH directory.
29131
29132         test-xalloc-die.sh: fix a portability bug
29133         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29134         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29135         Otherwise, argv[0] (as often seen in diagnostics) would be too
29136         system-dependent, sometimes with, and sometimes without the leading "./".
29137
29138         version-etc-fsf: relax license to LGPLv3+
29139         * modules/version-etc-fsf (License): Relax license.
29140
29141 2009-11-16  Eric Blake  <ebb9@byu.net>
29142
29143         xalloc-die-tests: avoid printing null pointer
29144         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29145         shell script.
29146         * tests/test-xalloc-die.c (program_name): Declare.
29147         * tests/test-xalloc-die.sh (tmpfiles): New file.
29148
29149         setenv, unsetenv: work around various bugs
29150         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29151         (setenv) [HAVE_SETENV]: Work around bugs.
29152         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29153         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29154         for bugs.
29155         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29156         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29158         * modules/stdlib (Makefile.am): Update substitutions.
29159         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29160         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29161         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29162         * modules/setenv-tests: New test.
29163         * modules/unsetenv-tests: Likewise.
29164         * tests/test-setenv.c: New file.
29165         * tests/test-unsetenv.c: Likewise.
29166
29167 2009-11-16  Jim Meyering  <meyering@redhat.com>
29168
29169         version-etc: relax license to LGPLv3+
29170         * modules/version-etc (License): Relax license.
29171
29172         better AC_REQUIRE expanded-before-required-warning avoidance
29173         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29174         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29175         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29176         which is no longer needed.
29177
29178 2009-11-16  Eric Blake  <ebb9@byu.net>
29179
29180         test-freading: clean up temporary file
29181         * tests/test-freading.c (main): Remove file on success, and use
29182         ASSERT more liberally.
29183         Reported by Jim Meyering.
29184
29185 2009-11-16  Jim Meyering  <meyering@redhat.com>
29186
29187         avoid new AC_REQUIRE expanded-before-required warnings
29188         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29189         merely using it.
29190         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29191         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29192
29193 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29194
29195         * tests/test-xalloc-die.c: New file.
29196         * modules/xalloc-die-tests: New file.
29197         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29198         XFAIL_TESTS so it can be appended by modules.
29199
29200 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29201
29202         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29203         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29204
29205 2009-11-14  Eric Blake  <ebb9@byu.net>
29206
29207         fnmatch: avoid compiler warning
29208         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29209         to silence compiler warning about mismatch signedness in ?:.
29210         Reported by Robert Millan.
29211
29212         intprops: add double-inclusion guard
29213         * lib/intprops.h: Allow idempotent includes.
29214         Suggested by Bruce Korb.
29215
29216         openat: detect Solaris fchownat bug
29217         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29218         penalizing glibc chownat when only lchownat is broken.
29219         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29220         trailing slash bugs.
29221         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29222         * modules/openat-tests (Files): Include more files.
29223         (Depends-on): Add mgetgroups, sleep, stat-time.
29224         (configure.ac): Add additional checks.
29225         (Makefile.am): Build new test.
29226         * tests/test-fchownat.c: New file.
29227
29228         lchown: detect Solaris and FreeBSD bug
29229         * lib/lchown.c (rpl_lchown): Work around bug.
29230         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29232         * modules/unistd (Makefile.am): Populate it.
29233         * lib/unistd.in.h (lchown): Update declaration.
29234         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29235         * modules/lchown-tests: New file.
29236         * tests/test-lchown.h (test_lchown): Likewise.
29237         * tests/test-lchown.c (main): Likewise.
29238
29239         chown: detect Solaris and FreeBSD bug
29240         * lib/chown.c (rpl_chown): Work around bug.
29241         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29242         (gl_PREREQ_CHOWN): Delete.
29243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29244         * modules/unistd (Makefile.am): Populate it.
29245         * lib/unistd.in.h (chown): Update declaration.
29246         * lib/lchown.c (chown): Update client.
29247         * modules/lchown (Depends-on): Add lstat.
29248         * doc/posix-functions/chown.texi (chown): Document the bug.
29249         * doc/posix-functions/getgroups.texi (getgroups): Document
29250         getgroups pitfall.
29251         * modules/chown-tests: New file.
29252         * tests/test-chown.h (test_chown): Likewise.
29253         * tests/test-chown.c (main): Likewise.
29254
29255 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29256
29257         gnulib-tool: correctly detect absence of m4 directories
29258         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29259
29260 2009-11-14  Jim Meyering  <meyering@redhat.com>
29261
29262         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29263         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29264
29265 2009-11-14  John W. Eaton  <jwe@gnu.org>
29266
29267         strftime.h: wrap funtion declaration in extern "C" block
29268         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29269
29270 2009-11-13  Eric Blake  <ebb9@byu.net>
29271
29272         getgroups: avoid compiler warning
29273         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29274
29275         getgroups: work around FreeBSD bug
29276         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29277         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29278         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29279         * tests/test-getgroups.c (main): Fix buffer overrun.
29280
29281         getgroups: avoid compilation failure
29282         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29283         * modules/getgroups (Depends-on): Add stdint.
29284
29285 2009-11-13  Jim Meyering  <meyering@redhat.com>
29286
29287         test-getgroups: avoid compilation failure
29288         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29289
29290 2009-11-13  Eric Blake  <ebb9@byu.net>
29291
29292         mgetgroups: new module, taken from coreutils
29293         * modules/mgetgroups: New file.
29294         * lib/mgetgroups.h: Likewise.
29295         * lib/mgetgroups.c (mgetgroups): Likewise.
29296         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29297         * MODULES.html.sh (Users and groups): Mention it.
29298
29299         getgroups: don't expose GETGROUPS_T to user
29300         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29301         an element at a time if GETGROUPS_T is wrong size.
29302         * lib/getugroups.h (getugroups): Change signature.
29303         * lib/unistd.in.h (getgroups): Likewise.
29304         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29305         signature needs fixing.
29306         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29307         AC_TYPE_GETGROUPS.
29308         * modules/group-member (Depends-on): Add getgroups.
29309         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29310         (group_member): Rely on getgroups replacement.
29311         * lib/getugroups.c (getugroups): Use gid_t.
29312         * tests/test-getgroups.c (main): Likewise.
29313         * NEWS: Mention the signature change.
29314         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29315         problem with signature.
29316         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29317         GETGROUPS_T is still useful for setgroups.
29318
29319         getgroups, getugroups: provide stubs for mingw
29320         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29321         * lib/getugroups.c (getugroups): Likewise.
29322         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29323         function.  Modernize replacement scheme.
29324         (gl_PREREQ_GETGROUPS): Delete.
29325         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29326         * modules/getgroups (configure.ac): Declare witness.
29327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29328         * modules/unistd (Depends-on): Substitute witness.
29329         * lib/unistd.in.h (getgroups): Declare replacement.
29330
29331         getgroups: avoid calling exit
29332         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29333         drop xalloc.
29334         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29335         dependencies.
29336         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29337         exiting, in the rare case of malloc failure.
29338
29339         getgroups: fix logic error
29340         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29341         has more than 20 groups.
29342         * modules/getgroups-tests: New test.
29343         * tests/test-getgroups.c: New file.
29344
29345 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29346
29347         * tests/test-base64.c: Improve.
29348
29349 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29350
29351         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29352         Blake <ebb9@byu.net>.
29353
29354 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29355
29356         * tests/test-xvasprintf.c: Add %s%s related checks.
29357
29358 2009-11-12  Eric Blake  <ebb9@byu.net>
29359
29360         version-etc: match standards.texi style
29361         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29362         and use <> only for URLs.
29363
29364 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29365
29366         fts: do not fail on a submount during traversal
29367         * lib/fts.c (fts_build): Read the stat info again after opening
29368         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29369         Original report at http://bugzilla.redhat.com/501848.
29370
29371 2009-11-12  Jim Meyering  <meyering@redhat.com>
29372
29373         bootstrap: sync from coreutils
29374         * build-aux/bootstrap (bootstrap_epilogue): New function.
29375         Use git_modules_config in one more place.  This make bootstrap's
29376         --gnulib-srcdir option more useful for testing.
29377
29378         bootstrap: generalize autoheader check
29379         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29380         AC_CONFIG_HEADERS.
29381
29382 2009-11-11  Eric Blake  <ebb9@byu.net>
29383
29384         mkfifoat: use new modules for Solaris and BSD bugs
29385         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29386         * lib/mkfifoat.c (mknodat): Split...
29387         * lib/mknodat.c (mknodat): ...into new file.
29388         * modules/mkfifoat (Files): Ship new file.
29389         (Depends-on): Add mkfifo, mknod.
29390         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29391         (Depends-on): Add symlink.
29392         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29393         redundant with test_mkfifo.h.
29394         (do_mkfifoat, do_mknodat): New helpers.
29395
29396         mknod: new module
29397         * modules/mknod: New file.
29398         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29399         * lib/mknod.c (mknod): Likewise.
29400         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29401         defaults.
29402         * modules/sys_stat (Makefile.am): Substitute them.
29403         * lib/sys_stat.in.h (mknod): Declare replacement.
29404         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29405         Document it.
29406         * doc/posix-functions/mknod.texi (mknod): Likewise.
29407         * modules/mknod-tests: New test.
29408         * tests/test-mknod.c: Likewise.
29409
29410         mkfifo: new module
29411         * modules/mkfifo: New file.
29412         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29413         * lib/mkfifo.c (mkfifo): Likewise.
29414         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29415         defaults.
29416         * modules/sys_stat (Makefile.am): Substitute them.
29417         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29418         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29419         Document it.
29420         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29421         * modules/mkfifo-tests: New test.
29422         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29423         from test-mkfifoat.c.
29424         * tests/test-mkfifo.c: New file.
29425
29426         readlink: detect FreeBSD bug
29427         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29428         slash on symlink.
29429         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29430         * tests/test-readlink.h (test_readlink): Enhance test.
29431
29432         symlink: detect FreeBSD bug
29433         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29434         slash on symlink.
29435         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29436         * tests/test-symlink.h (test_symlink): Enhance test.
29437
29438 2009-11-10  Eric Blake  <ebb9@byu.net>
29439
29440         link: detect FreeBSD bug
29441         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29442         symlink.
29443         * doc/posix-functions/link.texi (link): Document the bug.
29444         * tests/test-link.h (test_link): Enhance test.
29445         * tests/test-linkat.c (main): Update caller.
29446
29447         unlink, remove: detect FreeBSD bug
29448         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29449         slash on symlink.
29450         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29451         * doc/posix-functions/remove.texi (remove): Likewise.
29452         * tests/test-unlink.h (test_unlink): Enhance test.
29453         * tests/test-remove.c (main): Likewise.
29454
29455 2009-11-09  Eric Blake  <ebb9@byu.net>
29456
29457         rename: detect FreeBSD bug
29458         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29459         slash on symlink.
29460         * modules/renameat-tests (Depends-on): Add filenamecat.
29461         * tests/test-rename.h (test_rename): Allow one more errno.
29462         * tests/test-renameat.c (main): Likewise.
29463         * doc/posix-functions/rename.texi (rename): Document the bug.
29464
29465         open: detect FreeBSD bug
29466         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29467         symlink.
29468         * doc/posix-functions/open.texi (open): Document the bug.
29469         * doc/posix-functions/utimes.texi (utimes): Likewise.
29470         * tests/test-open.h (test_open): Add parameters, and test symlink
29471         handling.
29472         * tests/test-open.c (main): Adjust caller.
29473         * tests/test-fcntl-safer.c (main): Likewise.
29474         * modules/open-tests (Depends-on): Add stdbool, symlink.
29475         * modules/fcntl-safer-tests (Depends-on): Likewise.
29476         * tests/test-openat.c (main): Add test-open tests.
29477
29478         stat: detect FreeBSD bug
29479         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29480         symlink.
29481         * doc/posix-functions/stat.texi (stat): Document the bug.
29482         * tests/test-stat.h (test_stat_func): Add argument.
29483         * tests/test-stat.c (main): Adjust caller.
29484         * tests/test-fstatat.c (main): Likewise.
29485         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29486         Reported by Jim Meyering.
29487
29488 2009-11-09  James Youngman  <jay@gnu.org>
29489
29490         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29491         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29492
29493 2009-11-08  Jim Meyering  <meyering@redhat.com>
29494
29495         utimens: remove invalid futimesat call
29496         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29497         It used the file descriptor of the target file as the DIR_FD
29498         parameter and NULL as the file name.  That caused failure with
29499         errno == EFAULT on FreeBSD-8.0-rc2
29500
29501 2009-11-07  Eric Blake  <ebb9@byu.net>
29502
29503         fflush, freadseek: use fseeko, not fseek
29504         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29505         (clear_ungetc_buffer): Avoid potential problems on large files.
29506         * lib/freadseek.c (freadseek): Likewise.
29507         * modules/freadseek (Depends-on): Add fseeko.
29508         * modules/fseek (configure.ac): Set a witness.
29509         * tests/test-fflush.c (main): Use fseeko.
29510         * tests/test-fpurge.c (fseek): Disable link warning.
29511         * tests/test-freadable.c (fseek): Likewise.
29512         * tests/test-freading.c (fseek): Likewise.
29513         * tests/test-fseeko.c (fseek): Likewise.
29514         * tests/test-ftell.c (fseek): Likewise.
29515         * tests/test-ftello.c (fseek): Likewise.
29516         * tests/test-fwritable.c (fseek): Likewise.
29517         * tests/test-fwriting.c (fseek): Likewise.
29518
29519 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29520
29521         * modules/memchr (Depends-on): Drop getpagesize dependency.
29522
29523 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29524
29525         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29526         Reported by Ludovic Courtès.
29527         * build-aux/pmccabe2html: Improve example usage.
29528         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29529
29530 2009-11-06  Jim Meyering  <meyering@redhat.com>
29531
29532         do-release-commit-and-tag: New module.
29533         Automate the release-commit and tag process.
29534         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29535         * modules/do-release-commit-and-tag: New file.
29536         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29537
29538 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29539
29540         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29541         because test-select.c uses inet_pton.
29542
29543 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29544
29545         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29546         GETADDRINFO_LIB.  Bump serial number.
29547         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29548         Suggested by Eric Blake <ebb9@byu.net>.
29549
29550 2009-11-05  Eric Blake  <ebb9@byu.net>
29551
29552         strtod: detect darwin bug
29553         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29554         Reported by Leo Davis.
29555
29556         freopen-safer: new module
29557         * modules/freopen-safer: New module.
29558         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29559         * lib/freopen-safer.c (freopen_safer): New file.
29560         * lib/stdio-safer.h (freopen_safer): New declaration.
29561         * lib/stdio--.h (freopen): New override.
29562         * MODULES.html.sh (File stream based Input/Output): Mention it.
29563         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29564         freopen-safer module.
29565         * doc/posix-functions/stderr.texi (stderr): Likewise.
29566         * doc/posix-functions/stdin.texi (stdin): Likewise.
29567         * doc/posix-functions/stdout.texi (stdout): Likewise.
29568         * modules/freopen-safer-tests: New test.
29569         * tests/test-reopen-safer.c: New file.
29570
29571 2009-11-05  Jim Meyering  <meyering@redhat.com>
29572
29573         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29574         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29575
29576 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29577
29578         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29579
29580 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29581
29582         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29583
29584 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29585
29586         Fix link error.
29587         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29588         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29589
29590 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29591
29592         * tests/test-func.c: Also test value of __func__.
29593
29594 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29595
29596         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29597         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29598
29599 2009-11-05  Bruno Haible  <bruno@clisp.org>
29600
29601         Fix link error.
29602         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29603         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29604         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29605
29606 2009-11-05  Bruno Haible  <bruno@clisp.org>
29607
29608         Tests for module 'inet_pton'.
29609         * modules/inet_pton-tests: New file.
29610         * tests/test-inet_pton.c: New file.
29611
29612 2009-11-05  Bruno Haible  <bruno@clisp.org>
29613
29614         Tests for module 'inet_ntop'.
29615         * modules/inet_ntop-tests: New file.
29616         * tests/test-inet_ntop.c: New file.
29617
29618 2009-11-04  Eric Blake  <ebb9@byu.net>
29619
29620         stdlib-safer: wrap all mkstemp variants
29621         * modules/mkostemp (configure.ac): Set witness.
29622         * modules/mkostemps (configure.ac): Likewise.
29623         * modules/mkstemps (configure.ac): Likewise.
29624         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29625         (mkstemps_safer): Wrap more functions.
29626         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29627         wrapping.
29628         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29629         (mkstemps_safer): Implement the wrappers.
29630
29631         mkstemps, mkostemps: new modules
29632         * modules/mkostemps: New module.
29633         * modules/mkstemps: Likewise.
29634         * lib/mkostemps.c (mkostemps): New file.
29635         * lib/mkstemps.c (mkstemps): Likewise.
29636         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29637         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29639         * modules/stdlib (Makefile.am): Substitute them.
29640         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29641         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29642         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29643         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29644         * MODULES.html.sh (File system functions): Mention them.
29645
29646         tempname: resync from glibc
29647         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29648         same values for __GT_FILE as glibc.  Abort even when assertions
29649         are disabled.
29650         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29651         match its value otherwise.  Allow idempotent inclusion.
29652         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29653         * lib/mkostemp.c (mkostemp): Likewise.
29654         * lib/mkstemp.c (mkstemp): Likewise.
29655         * lib/tmpfile.c (tmpfile): Likewise.
29656         * NEWS: Document this.
29657
29658         utimens: fix use of futimens on older Linux
29659         * lib/utimens.c (fdutimens): Use updated, rather than original,
29660         timespec to avoid bug in older Linux kernel.
29661         Reported by Simon Josefsson.
29662
29663 2009-11-04  Bruno Haible  <bruno@clisp.org>
29664
29665         Make num_processors more flexible and consistent.
29666         * lib/nproc.h (enum nproc_query): New type.
29667         (num_processors): Add a 'query' argument.
29668         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29669         (num_processors): Add a 'query' argument. Test the value of the
29670         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29671         mingw, count the number of CPUs available for the current process.
29672         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29673         Check for sched_getaffinity and sched_getaffinity_np.
29674         * modules/nproc (Depends-on): Add c-ctype, extensions.
29675         * NEWS: Mention the change.
29676
29677 2009-11-03  Bruno Haible  <bruno@clisp.org>
29678
29679         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29680
29681 2009-11-03  Jim Meyering  <meyering@redhat.com>
29682
29683         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29684         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29685         if it is defined.
29686
29687 2009-11-02  Eric Blake  <ebb9@byu.net>
29688
29689         mktime, timegm: share common declaration
29690         * lib/mktime-internal.h: New file.
29691         * lib/mktime.c: Use it rather than open-coding a declaration.
29692         * lib/timegm.c: Likewise.
29693         * modules/mktime (Files): Ship it.
29694         * modules/timegm (Files): Likewise.
29695         Suggested by Bruno Haible.
29696
29697         test-update-copyright: update test to match script changes
29698         * tests/test-update-copyright.sh: Avoid hard-coding perl
29699         location.  Don't update *.bak created by earlier runs.
29700
29701 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29702             Simon Josefsson  <simon@josefsson.org>
29703             Bruno Haible  <bruno@clisp.org>
29704
29705         Fix link error on Solaris 8.
29706         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29707         also in libnsl. Define also INET_PTON_LIB.
29708         * modules/inet_pton (Link): New section.
29709
29710 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29711             Bruno Haible  <bruno@clisp.org>
29712
29713         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29714         * modules/inet_ntop (Link): New section.
29715         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29716
29717 2009-11-02  Eric Blake  <ebb9@byu.net>
29718
29719         maint: avoid compiler warnings in m4 macros
29720         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29721         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29722
29723 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29724
29725         * m4/pmccabe2html.m4: Remove file.
29726         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29727         function.  Change maintainer.
29728         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29729         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29730         Courtès).
29731
29732 2009-10-31  Eric Blake  <ebb9@byu.net>
29733
29734         fseeko: fix m4 regression
29735         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29736         regression from 2009-10-27.
29737         Reported by Ralf Wildenhues.
29738
29739 2009-10-31  Jim Meyering  <meyering@redhat.com>
29740
29741         inttostr: aesthetics and improved (compile-time) safety
29742         Define inttype_is_signed rather than inttype_is_unsigned,
29743         since the sole use is via "#if inttype_is_signed".
29744         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29745         inttype_is_unsigned.
29746         * lib/offtostr.c (inttype_is_signed): Likewise.
29747         * lib/uinttostr.c (inttype_is_signed): Likewise.
29748         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29749         * lib/inttostr.c (inttostr): Use verify to cross-check the
29750         inttype_is_signed value and the signedness of the actual type.
29751         * modules/inttostr (Depends-on): Add verify.
29752
29753 2009-10-30  Eric Blake  <ebb9@byu.net>
29754
29755         build: avoid compiler warnings
29756         * lib/fchmodat.c (lchmod): Mark unused variables.
29757         * lib/getopt.c (_getopt_initialize): Likewise.
29758         * lib/mktime.c (__mktime_internal): Provide prototype.
29759         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29760         older gcc that do not understand #pragma GCC diagnostic.
29761         * lib/uinttostr.c (inttype_is_unsigned): Define.
29762         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29763
29764 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29765
29766         stat: fix compilation on AIX
29767         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29768         only see struct stat64.
29769
29770 2009-10-30  Eric Blake  <ebb9@byu.net>
29771
29772         exclude: make more robust
29773         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29774         rather than masking a coding bug.
29775         Suggested by Bruno Haible.
29776
29777 2009-10-30  Jim Meyering  <meyering@redhat.com>
29778
29779         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29780         Rather than putting #!/usr/bin/perl on the first line,
29781         start with a variant of what's recommended by "man perlrun" that
29782         invokes the first "perl" program from your shell's search path.
29783         * build-aux/gitlog-to-changelog: Replace #!... as above.
29784         Add a "Local Variables" perl mode setting.
29785         Prompted by a patch from Ludovic Courtès.
29786         Improved by Eric Blake.
29787         * build-aux/useless-if-before-free: Likewise.
29788         * build-aux/announce-gen: Likewise.
29789         * build-aux/update-copyright: Likewise.
29790
29791 2009-10-29  Eric Blake  <ebb9@byu.net>
29792
29793         filenamecat-lgpl: adjust clients
29794         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29795         filenamecat.
29796         * modules/renameat (Depends-on): Likewise.
29797
29798         filenamecat: split into filenamecat-lgpl
29799         * modules/filenamecat-lgpl: New module.
29800         * modules/filenamecat (Files): Move library-safe files into
29801         filenamecat-lgpl.
29802         (Depends-on): Add filenamecat-lgpl.
29803         (configure.ac): Declare witness.
29804         * lib/filenamecat.h (file_name_concat): Only declare when using
29805         GPL module.
29806         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29807         Move...
29808         * lib/filenamecat-lgpl.c: ...into new file.
29809         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29810         (gl_FILE_NAME_CONCAT): Use it.
29811         * MODULES.html.sh (File system functions): Mention new module.
29812
29813         argp: avoid memory leak
29814         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29815         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29816         base_name, since the latter malloc()s and can call exit().
29817         Leak introduced 2006-07-03.
29818
29819         dirname-lgpl: adjust clients that don't need full dirname
29820         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29821         * modules/filenamecat (Depends-on): Likewise.
29822         * modules/linkat (Depends-on): Likewise.
29823         * modules/mkancesdirs (Depends-on): Likewise.
29824         * modules/mkdir (Depends-on): Likewise.
29825         * modules/openat (Depends-on): Likewise.
29826         * modules/savewd (Depends-on): Likewise.
29827         * modules/rename (Depends-on): Likewise.
29828         (License): Relax license.
29829         * modules/mkdir-tests (Depends-on): Drop progname.
29830         (Makefile.am): Delete unneeded LDADD.
29831         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29832
29833         dirname: split into dirname-lgpl
29834         * modules/dirname-lgpl: New module.
29835         * modules/dirname (Files): Move library-safe files into
29836         dirname-lgpl.
29837         (Depends-on): Add dirname-lgpl.
29838         (configure.ac): Declare witness.
29839         * modules/double-slash-root (License): Relax license.
29840         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29841         module.
29842         * lib/dirname.c (dir_len, mdir_name): Move...
29843         * lib/dirname-lgpl.c: ...into new file.
29844         * lib/basename.c (last_component, base_len): Move...
29845         * lib/basename-lgpl.c: ...into new file.
29846         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29847         (gl_DIRNAME): Use it.
29848         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29849         Mention new module.
29850         * modules/dirname-tests (Depends-on): Add progname.
29851         * tests/test-dirname.c (program_name): Delete.
29852
29853         mkdir: make safe for libraries
29854         * modules/mkdir (Depends-on): Drop xalloc.
29855         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29856         exit.
29857
29858         tests: avoid some compiler warnings
29859         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29860         literals.
29861         * tests/test-memchr.c (main): Avoid type mismatch.
29862         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29863         * tests/test-base64.c (main): Likewise.
29864         * tests/test-getdelim.c (main): Likewise.
29865         * tests/test-gethostname.c (main): Likewise.
29866         * tests/test-getline.c (main): Likewise.
29867         * tests/test-netinet_in.c (main): Likewise.
29868         * tests/test-select.c (open_server_socket, main): Likewise.
29869         * tests/test-select-stdin.c (main): Likewise.
29870         * tests/test-sockets.c (main): Likewise.
29871         * tests/test-strsignal.c (main): Likewise.
29872         * tests/test-sys_select.c (main): Likewise.
29873         * tests/test-sys_socket.c (main): Likewise.
29874         * tests/test-u64.c (main): Likewise.
29875         * tests/test-xfprintf-posix.c (main): Likewise.
29876         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29877
29878         sockets: avoid compiler warning
29879         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29880
29881         maint: detect usage(1) and other suspicious exits
29882         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29883
29884 2009-10-29  Jim Meyering  <meyering@redhat.com>
29885
29886         timespec: long-to-int truncation could make timespec_cmp malfunction
29887         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29888         a multiple of 2^32 nanoseconds as no difference.
29889
29890 2009-10-28  Jim Meyering  <meyering@redhat.com>
29891
29892         fprintftime: wrap macro code argument in "do {...} while(0)"
29893         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29894         cpy macro must be a statement that can be followed by a semicolon.
29895         Now that the else clause contains a comment and is hence longer
29896         than one line, I require curly braces.  That in turn requires
29897         that we wrap this code block in the standard do...while(0).
29898
29899         fprintftime: remove stray semicolon from previous change
29900         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29901
29902         fprintftime: avoid a warning about ignored fwrite return value
29903         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29904         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29905         that is unsafe.
29906         * modules/fprintftime (Depends-on): Add ignore-value.
29907
29908         exclude: avoid an unwarranted warning
29909         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29910
29911 2009-10-27  Eric Blake  <ebb9@byu.net>
29912
29913         fseek: avoid compilation failure when fflush is replaced
29914         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29915         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29916         module is in use.
29917         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29918         module is not in use; since REPLACE_FSEEK worked otherwise.
29919         (GNULIB_FTELLO): Likewise for ftell.
29920         Reported by Ian Beckwith and others.
29921
29922 2009-10-27  Bruno Haible  <bruno@clisp.org>
29923
29924         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29925         Reported by Jim Meyering.
29926
29927 2009-10-27  Jim Meyering  <jim@meyering.net>
29928             Bruno Haible  <bruno@clisp.org>
29929
29930         Avoid warning despite dropping the return value of fwrite.
29931         * lib/unicodeio.c: Include ignore-value.h.
29932         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29933         * modules/unicodeio (Depends-on): Add ignore-value.
29934
29935 2009-10-26  Eric Blake  <ebb9@byu.net>
29936
29937         areadlinkat: fix fallback path
29938         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29939         pointer and zero.
29940
29941 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29942
29943         Use a better IO block size for modern systems
29944         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29945         * lib/md2.c: Likewise.
29946         * lib/md4.c: Likewise.
29947         * lib/md5.c: Likewise.
29948         * lib/sha1.c: Likewise.
29949         * lib/sha256.c: Likewise.
29950         * lib/sha512.c: Likewise.
29951
29952 2009-10-22  Eric Blake  <ebb9@byu.net>
29953
29954         tests: avoid several compiler warnings
29955         * tests/test-getcwd.c (main): Avoid buffer underflow.
29956         * tests/test-getdate.c (main): String literals are not safe with
29957         putenv, so use setenv.  Declare unused argument.
29958         * modules/getdate-tests (Depends-on): Add setenv.
29959         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29960         problems with string literals in char *.
29961         * tests/test-hash.c (main): Avoid shadowing declaration.
29962         (insert_new): Treat string literals as char const *.
29963         * tests/test-getopt.h (test_getopt): Likewise.
29964         (getopt_loop): Alter types to minimize casting elsewhere.
29965         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29966         (test_getopt_long_posix): Likewise.
29967         (do_getopt_long): Add wrapper to minimize casting.
29968         * tests/test-atexit.c (clear_temp_file): Use void.
29969         * tests/test-areadlink-with-size.c (main): Declare unused
29970         arguments.
29971         * tests/test-areadlink.c (main): Likewise.
29972         * tests/test-areadlinkat-with-size.c (main): Likewise.
29973         * tests/test-areadlinkat.c (main): Likewise.
29974         * tests/test-canonicalize-lgpl.c (main): Likewise.
29975         * tests/test-canonicalize.c (main): Likewise.
29976         * tests/test-dirent-safer.c (main): Likewise.
29977         * tests/test-dirname.c (main): Likewise.
29978         * tests/test-dup2.c (main): Likewise.
29979         * tests/test-fchdir.c (main): Likewise.
29980         * tests/test-fcntl-h.c (main): Likewise.
29981         * tests/test-fcntl-safer.c (main): Likewise.
29982         * tests/test-fdopendir.c (main): Likewise.
29983         * tests/test-fdutimensat.c (main): Likewise.
29984         * tests/test-fflush.c (main): Likewise.
29985         * tests/test-filenamecat.c (main): Likewise.
29986         * tests/test-filevercmp.c (main): Likewise.
29987         * tests/test-fopen-safer.c (main): Likewise.
29988         * tests/test-fopen.c (main): Likewise.
29989         * tests/test-fpending.c (main): Likewise.
29990         * tests/test-fpurge.c (main): Likewise.
29991         * tests/test-freading.c (main): Likewise.
29992         * tests/test-fstatat.c (main): Likewise.
29993         * tests/test-fsync.c (main): Likewise.
29994         * tests/test-futimens.c (main): Likewise.
29995         * tests/test-getndelim2.c (main): Likewise.
29996         * tests/test-gettimeofday.c (main): Likewise.
29997         * tests/test-getopt.c (main): Likewise.
29998         * tests/test-i-ring.c (main): Likewise.
29999         * tests/test-inttypes.c (main): Likewise.
30000         * tests/test-link.c (main): Likewise.
30001         * tests/test-lstat.c (main): Likewise.
30002         * tests/test-math.c (main): Likewise.
30003         * tests/test-md5.c (main): Likewise.
30004         * tests/test-memchr2.c (main): Likewise.
30005         * tests/test-memrchr.c (main): Likewise.
30006         * tests/test-mkdir.c (main): Likewise.
30007         * tests/test-mkdirat.c (main): Likewise.
30008         * tests/test-mkfifoat.c (main): Likewise.
30009         * tests/test-open.c (main): Likewise.
30010         * tests/test-openat-safer.c (main): Likewise.
30011         * tests/test-openat.c (main): Likewise.
30012         * tests/test-quotearg.c (main): Likewise.
30013         * tests/test-rawmemchr.c (main): Likewise.
30014         * tests/test-readlink.c (main): Likewise.
30015         * tests/test-remove.c (main): Likewise.
30016         * tests/test-rename.c (main): Likewise.
30017         * tests/test-renameat.c (main): Likewise.
30018         * tests/test-rmdir.c (main): Likewise.
30019         * tests/test-sha1.c (main): Likewise.
30020         * tests/test-signal.c (main): Likewise.
30021         * tests/test-sigaction.c (main): Likewise.
30022         * tests/test-stat.c (main): Likewise.
30023         * tests/test-stat-time.c (main): Likewise.
30024         * tests/test-stddef.c (main): Likewise.
30025         * tests/test-stdint.c (main): Likewise.
30026         * tests/test-stdio.c (main): Likewise.
30027         * tests/test-stdlib.c (main): Likewise.
30028         * tests/test-strchrnul.c (main): Likewise.
30029         * tests/test-strerror.c (main): Likewise.
30030         * tests/test-string.c (main): Likewise.
30031         * tests/test-strtod.c (main): Likewise.
30032         * tests/test-strverscmp.c (main): Likewise.
30033         * tests/test-symlink.c (main): Likewise.
30034         * tests/test-symlinkat.c (main): Likewise.
30035         * tests/test-sys_stat.c (main): Likewise.
30036         * tests/test-sys_time.c (main): Likewise.
30037         * tests/test-time.c (main): Likewise.
30038         * tests/test-unistd.c (main): Likewise.
30039         * tests/test-unlink.c (main): Likewise.
30040         * tests/test-unlinkat.c (main): Likewise.
30041         * tests/test-utimens.c (main): Likewise.
30042         * tests/test-utimensat.c (main): Likewise.
30043         * tests/test-version-etc.c (main): Likewise.
30044         * tests/test-wchar.c (main): Likewise.
30045         * tests/test-wctype.c (main): Likewise.
30046         * tests/test-xprintf-posix.c (main): Likewise.
30047         * tests/test-posixtm.c (main): Likewise.
30048         (STREQ): Delete unused macro.
30049         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30050         shadowed variables.
30051         * tests/test-memchr.c (main): Likewise.
30052
30053 2009-10-21  Eric Blake  <ebb9@byu.net>
30054
30055         areadlinkat: avoid failure on older glibc
30056         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30057         rather than mis-comparing 0 against FUNC_RESULT of char*.
30058
30059 2009-10-21  Bruno Haible  <bruno@clisp.org>
30060
30061         * modules/stpncpy (License): Relicense under LGPLv2+.
30062         Reported by David Lutterkort <lutter@redhat.com>.
30063
30064 2009-10-20  Eric Blake  <ebb9@byu.net>
30065
30066         utimensat: work around Solaris 9 bug
30067         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30068         has trailing slash bugs.
30069         * tests/test-lutimens.h (test_lutimens): Enhance test.
30070         * tests/test-utimens.h (test_utimens): Likewise.
30071         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30072         * doc/posix-functions/utimes.texi (utimes): Likewise.
30073         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30074         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30075         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30076         * doc/posix-functions/futimens.texi (futimens): Likewise.
30077
30078         fdutimensat: new module
30079         * modules/fdutimensat: New file.
30080         * lib/fdutimensat.c (fdutimensat): Likewise.
30081         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30082         * MODULES.html.sh (File system functions): Mention module.
30083         * modules/fdutimensat-tests: New test.
30084         * tests/test-fdutimensat.c: Likewise.
30085
30086         doc: regenerate INSTALL
30087         * doc/INSTALL: Reflect recent autoconf update.
30088         * doc/INSTALL.ISO: Likewise.
30089         * doc/INSTALL.UTF-8: Likewise.
30090
30091 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30092
30093         acl: warn if ACL support is not detected
30094         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30095
30096 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30097
30098         * lib/nproc.h: Add extern "C" block for C++.
30099
30100 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30101             Bruno Haible  <bruno@clisp.org>
30102
30103         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30104         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30105         * doc/posix-functions/isalpha.texi: Likewise.
30106         * doc/posix-functions/isblank.texi: Likewise.
30107         * doc/posix-functions/iscntrl.texi: Likewise.
30108         * doc/posix-functions/isdigit.texi: Likewise.
30109         * doc/posix-functions/isgraph.texi: Likewise.
30110         * doc/posix-functions/islower.texi: Likewise.
30111         * doc/posix-functions/isprint.texi: Likewise.
30112         * doc/posix-functions/ispunct.texi: Likewise.
30113         * doc/posix-functions/isspace.texi: Likewise.
30114         * doc/posix-functions/isupper.texi: Likewise.
30115         * doc/posix-functions/isxdigit.texi: Likewise.
30116
30117 2009-10-18  Bruno Haible  <bruno@clisp.org>
30118
30119         Tests for module 'isblank'.
30120         * modules/isblank-tests: New file.
30121         * tests/test-isblank.c: New file.
30122
30123         New module 'isblank'.
30124         * lib/isblank.c: New file.
30125         * m4/isblank.m4: New file.
30126         * modules/isblank: New file.
30127         * doc/posix-functions/isblank.texi: Mention the new module.
30128
30129 2009-10-18  Bruno Haible  <bruno@clisp.org>
30130
30131         New module 'ctype'.
30132         * lib/ctype.in.h: New file.
30133         * m4/ctype.m4: New file.
30134         * modules/ctype: New file.
30135         * doc/posix-headers/ctype.texi: Mention the new module.
30136
30137 2009-10-18  Jim Meyering  <meyering@redhat.com>
30138
30139         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30140         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30141         right after its initialization, rather than farther down.
30142         Keeping these in close proximity makes it easier to ensure
30143         that each such variable is initialized.  E.g.,
30144
30145             LIB_CLOCK_GETTIME=
30146             AC_SUBST([LIB_CLOCK_GETTIME])
30147
30148         This change also increments these serial numbers.
30149         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30150         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30151         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30152
30153 2009-10-18  Bruno Haible  <bruno@clisp.org>
30154
30155         Don't let environment variables perturb build.
30156         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30157         (gl_PREREQ_GETHRXTIME): ... not here.
30158
30159 2009-10-18  Bruno Haible  <bruno@clisp.org>
30160
30161         Avoid symlink attack in localcharset module.
30162         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30163         (O_NOFOLLOW): Define fallback.
30164         (get_charset_aliases): Don't open the file if it is a symbolic link.
30165         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30166         gl_FCNTL_H.
30167         (gl_FCNTL_H): Require it.
30168         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30169         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30170         Reported by Fergal Glynn <fglynn@veracode.com>.
30171
30172 2009-10-18  Bruno Haible  <bruno@clisp.org>
30173
30174         Implement nproc for mingw.
30175         * lib/nproc.c: Include <windows.h>
30176         (num_processors): On native Windows platforms, try GetSystemInfo.
30177
30178 2009-10-18  Bruno Haible  <bruno@clisp.org>
30179
30180         Implement nproc for IRIX.
30181         * lib/nproc.c: Include <sys/sysmp.h>.
30182         (num_processors): On IRIX systems, try sysmp.
30183         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30184
30185 2009-10-18  Bruno Haible  <bruno@clisp.org>
30186
30187         Implement nproc for HP-UX.
30188         * lib/nproc.c: Include <sys/pstat.h>
30189         (num_processors): On HP-UX systems, try pstat_getdynamic.
30190         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30191         pstat_getdynamic.
30192
30193 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30194             Bruno Haible  <bruno@clisp.org>
30195
30196         Implement nproc for NetBSD, OpenBSD.
30197         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30198         (ARRAY_SIZE): New macro.
30199         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30200         * m4/nproc.m4: New file.
30201         * modules/nproc (Files): Add m4/nproc.m4.
30202         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30203         (Makefile.am): Instead, augment lib_SOURCES.
30204
30205 2009-10-18  Bruno Haible  <bruno@clisp.org>
30206
30207         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30208         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30209         sys/param.h.
30210
30211 2009-10-16  Eric Blake  <ebb9@byu.net>
30212
30213         utimensat: new module
30214         * modules/utimensat: New file.
30215         * lib/utimensat.c (utimensat): Likewise.
30216         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30217         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30218         so we can work around Linux bugs.
30219         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30220         * modules/sys_stat (Makefile.am): Substitute them.
30221         * lib/sys_stat.in.h (utimensat): Declare it.
30222         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30223         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30224         * modules/utimensat-tests: New test.
30225         * tests/test-utimensat.c: Likewise.
30226
30227         utimens: let lutimens work on non-symlinks
30228         * lib/utimens.c (lutimens): Fall back to utimens rather than
30229         failing with ENOSYS, when file is not a symlink.
30230         (utimens): Reduce redirection.
30231         * tests/test-lutimens.h (test_lutimens): Update test to cover
30232         non-symlinks.
30233         * tests/test-utimens.h (test_utimens): Update test to cover
30234         symlinks.
30235         * tests/test-utimens.c (main): Update caller.
30236
30237         utimens: cache whether utimensat syscall works
30238         * lib/utimens.c (utimensat_works_really): New cache variable.
30239         (fdutimens, lutimens): Use it to avoid failing syscall.
30240
30241         test-stat-time, test-utimens: improve portability
30242         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30243         ext4 on alpha, and for cygwin.
30244         * tests/test-utimens-common.h: New file.
30245         (nap): Factor delays into single function.
30246         * tests/test-lutimens.h (test_lutimens): Use new header.
30247         * tests/test-futimens.h (test_futimens): Likewise.
30248         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30249         timestamps to occur from same machine, as was done previously for
30250         test_utimens.
30251         * modules/utimens-tests (Files): Ship new file.
30252         * modules/futimens-tests (Files): Likewise.
30253         Reported in part by Jim Meyering.
30254
30255         sys_stat: sort replacement declarations
30256         * lib/sys_stat.in.h: Sort declarations.
30257         * lib/futimens.c (futimens): Fix typo.
30258
30259 2009-10-15  Jim Meyering  <meyering@redhat.com>
30260
30261         don't let environment settings perturb build
30262         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30263         could cause a configure-time and/or build-time malfunction.
30264         Typically, a configure-time function-in-library test is performed
30265         via code like this:
30266
30267           LIB_VAR=
30268           AC_SUBST([LIB_VAR])
30269           prefix_saved_LIBS=$LIBS
30270             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30271                        [test "$ac_cv_search_FUNC" = "none required" ||
30272                         LIB_VAR=$ac_cv_search_FUNC])
30273           LIBS=$prefix_saved_LIBS
30274
30275         However, in each of the files affected by this change, the LIB_VAR=
30276         initialization was omitted.  Thus, when set in the environment, its
30277         value would propagate into generated Makefiles when FUNC is not found
30278         in LIB_NAME.
30279         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30280         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30282
30283 2009-10-14  Eric Blake  <ebb9@byu.net>
30284
30285         fchdir: avoid infinite recursion in mingw
30286         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30287         recursing.
30288
30289         test-stat-time: port to mingw
30290         * tests/test-stat-time.c (force_unlink): Return a value.
30291         (test_ctime) [W32]: Fix compilation error.
30292         (nap): Don't call usleep with too large an argument.  Use
30293         force_unlink.
30294         * doc/pastposix-functions/usleep.texi (usleep): Document the
30295         portability issue.
30296
30297 2009-10-13  Jim Meyering  <meyering@redhat.com>
30298
30299         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30300         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30301         * modules/pipe-filter-ii: Likewise.
30302         * modules/sys_socket-tests: Likewise.
30303         * modules/tsearch-tests: Likewise.
30304         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30305         (check): Depend on it.
30306
30307 2009-10-12  Eric Blake  <ebb9@byu.net>
30308
30309         utimens-tests: port to NFS file systems
30310         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30311         comparisons to avoid spurious failures from timestamp drift
30312         between NFS machines.
30313
30314 2009-10-12  Eric Blake  <ebb9@byu.net>
30315
30316         stat-time-tests: minor cleanups
30317         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30318         * tests/test-stat-time.c (nap): Separate assignment from call.
30319         Suggested by Paolo Bonzini and Bruno Haible.
30320
30321         sys_stat: guarantee struct timespec
30322         * lib/sys_stat.in.h (includes): Always include <time.h>
30323         * modules/sys_stat (Depends-on): Add time.
30324         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30325         mode_t permission values.
30326         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30327         get at subsecond timestamps.
30328
30329 2009-10-10  Eric Blake  <ebb9@byu.net>
30330
30331         futimens: new module
30332         * modules/futimens: New file.
30333         * lib/futimens.c (futimens): Likewise.
30334         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30335         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30336         we can work around Linux bugs.
30337         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30338         * modules/sys_stat (Makefile.am): Substitute them.
30339         * lib/sys_stat.in.h (futimens): Declare it.
30340         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30341         * doc/posix-functions/futimens.texi (futimens): Likewise.
30342         * modules/futimens-tests: New test.
30343         * tests/test-futimens.c: Likewise.
30344
30345         utimens: introduce fdutimens
30346         * lib/utimens.h (fdutimens): New prototype.
30347         * lib/utimens.c (gl_futimens): Move guts...
30348         (fdutimens): ...to new interface.
30349         * tests/test-utimens.c (do_fdutimens): Use it.
30350
30351         utimens: add UTIME_NOW and UTIME_OMIT support
30352         * lib/utimens.c (validate_timespec, update_timespec): New helper
30353         functions.
30354         (gl_futimens, lutimens): Use them.
30355         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30356         stdbool, sys_stat.
30357         (Link): Mention resulting library dependency.
30358         * modules/utimecmp (Link): Likewise.
30359         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30360         (Makefile.am): Pick up library dependency.
30361         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30362         definition.
30363         * tests/test-sys_stat.c: Test the definitions.
30364         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30365         * NEWS: Document library dependency.
30366
30367         utimecmp: support symlink timestamps
30368         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30369         hashing when possible.  Use pathconf when available.
30370         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30371         * modules/utimecmp (Depends-on): Add lstat.
30372
30373         utimens: add lutimens interface
30374         * lib/utimens.c (lutimens): New function.
30375         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30376         * lib/utimens.h (lutimens): Declare new interface.
30377         * tests/test-utimens.c (main): Enhance test.
30378         * tests/test-lutimens.h (test_lutimens): New file.
30379         * modules/utimens-tests (Files): Distribute it.
30380         (Depends-on): Add symlink.
30381         (configure.ac): Check for usleep.
30382
30383         utimens: validate futimens usage
30384         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30385         fewer syscalls on failure later on.  Avoid compiler warning on
30386         mingw.
30387         * modules/utimens (Depends-on): Add dup2.
30388
30389         utimens: add test
30390         * modules/utimens-tests: New test.
30391         * tests/test-utimens.h: New file.
30392         * tests/test-futimens.h: Likewise.
30393         * tests/test-utimens.c: Likewise.
30394
30395         doc: mention timestamp portability issues
30396         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30397         instead.
30398         * doc/posix-functions/utime.texi (utime): Likewise.
30399         * doc/posix-functions/utimes.texi (utimes): Likewise.
30400         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30401         instead.
30402         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30403         module.
30404         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30405         Mention weakness with symlink timestamps.
30406         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30407         to utimensat/futimens instead.
30408         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30409
30410         test-dup2: enhance test
30411         * tests/test-dup2.c (main): Also check AT_FDCWD.
30412
30413         test-stat-time: avoid more spurious failures
30414         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30415         xfs; and avoid race if the two timestamps cross quantization edge.
30416
30417         relocatable: prefer 'file system' over 'filesystem'
30418         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30419         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30420         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30421         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30422         * lib/relocatable.c (compute_curr_prefix): Likewise.
30423
30424 2009-10-10  Jim Meyering  <meyering@redhat.com>
30425
30426         stat-time-tests: check for the usleep function
30427         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30428
30429 2009-10-10  Bruno Haible  <bruno@clisp.org>
30430
30431         * modules/xnanosleep: Put the Link section after the Include section.
30432
30433 2009-10-09  Eric Blake  <ebb9@byu.net>
30434
30435         dup2: work around FreeBSD 6.1 bug
30436         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30437         * doc/posix-functions/dup2.texi (dup2): Document it.
30438         Reported by Nelson H. F. Beebe and Jim Meyering.
30439
30440         test-stat-time: port to buggy NFS clients
30441         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30442         (test_ctime): Also skip test if mtime and ctime are skewed.
30443
30444         maint: prefer 'file system' over 'filesystem'
30445         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30446         * doc/posix-functions/lstat.texi (lstat): Likewise.
30447         * lib/file-has-acl.c (file_has_acl): Likewise.
30448         * lib/fwriteerror.c [TEST]: Likewise.
30449         * tests/test-areadlink.h (test_areadlink): Likewise.
30450         * tests/test-areadlinkat-with-size.c (main): Likewise.
30451         * tests/test-areadlinkat.c (main): Likewise.
30452         * tests/test-canonicalize-lgpl.c (main): Likewise.
30453         * tests/test-canonicalize.c (main): Likewise.
30454         * tests/test-fstatat.c (main): Likewise.
30455         * tests/test-linkat.c (main): Likewise.
30456         * tests/test-lstat.h (test_lstat_func): Likewise.
30457         * tests/test-mkdir.h (test_mkdir): Likewise.
30458         * tests/test-readlink.h (test_readlink): Likewise.
30459         * tests/test-remove.c (main): Likewise.
30460         * tests/test-rename.h (test_rename): Likewise.
30461         * tests/test-renameat.c (main): Likewise.
30462         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30463         * tests/test-symlink.h (test_symlink): Likewise.
30464         * tests/test-symlinkat.c (main): Likewise.
30465         * tests/test-unlink.h (test_unlink_func): Likewise.
30466         * tests/test-unlinkat.c (main): Likewise.
30467
30468         maint: make realtime library usage explicit
30469         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30470         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30471         * modules/settime (Link): Likewise.
30472         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30473
30474         test-stat-time: speed up execution
30475         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30476         warning on mingw.
30477         (nap): New helper function.
30478         (prepare_test): Use it to reduce sleep time.
30479         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30480         execution.
30481         * modules/stat-time-tests (configure.ac): Check for usleep.
30482
30483 2009-10-09  Jim Meyering  <meyering@redhat.com>
30484
30485         selinux-h: always use getfilecon wrappers
30486         * lib/getfilecon.c: New file.
30487         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30488         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30489         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30490         (fgetfilecon): Provide a stub.
30491         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30492         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30493         file unconditionally.
30494         When <selinux/selinux.h> is found, arrange to use wrappers.
30495         * modules/selinux-h (Files): Add getfilecon.c.
30496         (Makefile.am): Substitute include-next-related bits
30497         into the now-always-generated selinux/selinux.h file.
30498         * doc/glibc-functions/lgetfilecon.texi: New file.
30499         * doc/glibc-functions/fgetfilecon.texi: New file.
30500         * doc/glibc-functions/getfilecon.texi: New file.
30501         * doc/glibc-functions/getfilecon-desc.texi: New file.
30502         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30503         which to pull in the new files.
30504         * MODULES.html.sh (Misc): Add selinux-h.
30505
30506 2009-10-08  Jim Meyering  <meyering@redhat.com>
30507
30508         unistd: fix comment typo
30509         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30510
30511 2009-10-08  Eric Blake  <ebb9@byu.net>
30512
30513         areadlink: use SIZE_MAX consistently
30514         * modules/areadlink (Depends-on): Add stdint.
30515         * modules/areadlink-with-size (Depends-on): Likewise.
30516         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30517         gives NULL; drop sys/types, since unistd gives size_t; and add
30518         stdint for SIZE_MAX.
30519         (SIZE_MAX): Rely on headers.
30520         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30521         and add stdint.
30522         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30523         (SIZE_MAX): Likewise.
30524         (INITIAL_BUF_SIZE): Turn into enum.
30525         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30526
30527 2009-10-08  Jim Meyering  <meyering@redhat.com>
30528
30529         areadlinkat: avoid compilation failure
30530         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30531         Fix typo in comment.
30532
30533 2009-10-07  Eric Blake  <ebb9@byu.net>
30534
30535         areadlinkat-with-size: new module
30536         * modules/areadlinkat-with-size: New module.
30537         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30538         * lib/areadlink.h (areadlinkat): Declare it.
30539         * MODULES.html.sh (File system functions): Mention it.
30540         * modules/areadlinkat-with-size-tests: New test.
30541         * tests/test-areadlinkat-with-size.c: New file.
30542
30543         xreadlinkat: new module
30544         * modules/xreadlinkat: New module.
30545         * lib/xreadlinkat.c (xreadlinkat): New file.
30546         * lib/xreadlink.h (xreadlinkat): Declare it.
30547         * MODULES.html.sh (File system functions): Mention it.
30548
30549         areadlinkat: new module
30550         * lib/at-func.c (FUNC_FAIL): New define.
30551         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30552         * modules/areadlinkat: New module.
30553         * lib/linkat.c (areadlinkat): Move...
30554         * lib/areadlinkat.c (areadlinkat): ...to new file.
30555         * lib/areadlink.h (areadlinkat): Declare it.
30556         * modules/linkat (Depends-on): Add areadlinkat.
30557         * MODULES.html.sh (File system functions): Mention it.
30558         * modules/areadlinkat-tests: New test.
30559         * tests/test-areadlinkat.c: New file.
30560
30561         areadlink, areadlink-with-size: add tests
30562         * modules/areadlink-tests: New test.
30563         * modules/areadlink-with-size-tests: Likewise.
30564         * tests/test-areadlink.h: New file.
30565         * tests/test-areadlink.c: Likewise.
30566         * tests/test-areadlink-with-size.c: Likewise.
30567
30568         maint: minor cleanups
30569         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30570         _UNUSED_PARAMETER_ instead.
30571         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30572         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30573         * modules/linkat-tests (Files): Distribute test-link.h.
30574
30575         openat, utimens: whitespace cleanup
30576         * lib/openat.c: Prefer space throughout, rather than mix of 8
30577         spaces vs. tabs.
30578         * lib/at-func.c: Likewise.
30579         * lib/utimens.c: Likewise.
30580
30581         openat: avoid using wrong fd
30582         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30583         working directory chooses same fd.
30584         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30585
30586         mkdir, mkdirat: fix cygwin 1.5.x bug
30587         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30588         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30589         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30590         bug.
30591         (gl_PREREQ_MKDIR): Delete unused macro.
30592         * modules/mkdir (Files): Track file rename.
30593         (configure.ac): Update macro name.
30594         * modules/openat (Depends-on): Add mkdir.
30595         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30596
30597         mkdir, mkdirat: add tests
30598         * modules/mkdir-tests: New test.
30599         * tests/test-mkdir.h: New file.
30600         * tests/test-mkdir.c: Likewise.
30601         * tests/test-mkdirat.c: Likewise.
30602         * modules/openat-tests (Files): Add new files.
30603         (Makefile.am): Run new test.
30604
30605 2009-10-06  Eric Blake  <ebb9@byu.net>
30606
30607         doc: tweak *at function documentation
30608         * doc/posix-functions/faccessat.texi (faccessat): Mention
30609         known issue with replacement.
30610         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30611         * doc/posix-functions/linkat.texi (linkat): Likewise.
30612         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30613         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30614         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30615         * doc/posix-functions/renameat.texi (renameat): Likewise.
30616         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30617
30618         openat: fix GNU/Hurd bug in unlinkat
30619         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30620         broken.
30621         * doc/posix-functions/unlink.texi (unlink): Document this.
30622         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30623
30624         fdopendir: fix GNU/Hurd bug
30625         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30626         allowing non-directory fds.
30627         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30628         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30629         * modules/dirent (Makefile.am): Substitute it.
30630         * lib/dirent.in.h (fdopendir): Declare replacement.
30631         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30632         * tests/test-fdopendir.c (main): Test something other than
30633         /dev/null, since on Hurd that behaves like a directory.
30634
30635         test-symlink: port to GNU/Hurd
30636         * tests/test-symlink.h (test_symlink): Relax expected errno.
30637
30638         doc: tweak more cygwin information
30639         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30640         now compatible with glibc.
30641         * doc/posix-functions/getopt.texi (getopt): Likewise.
30642
30643         getopt-gnu: add another test
30644         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30645         guarantee behavior relied on by m4.
30646         * tests/test-getopt.c (main): Use it.
30647         * modules/getopt-posix-tests (Depends-on): Add setenv.
30648         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30649
30650         getopt: fix compilation on darwin
30651         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30652         include.
30653         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30654         Reported by Ludovic Courtès.
30655
30656 2009-10-06  Bruno Haible  <bruno@clisp.org>
30657
30658         * modules/size_max (Description): Discourage its use.
30659         Reported by Simon Josefsson.
30660
30661 2009-10-06  Jim Meyering  <meyering@redhat.com>
30662
30663         linkat: avoid compilation failure
30664         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30665
30666 2009-10-05  Eric Blake  <ebb9@byu.net>
30667
30668         linkat: support Linux 2.6.17
30669         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30670         linkat on Linux, but allow cache variable override.
30671         * lib/linkat.c (rpl_linkat): Define override.
30672         * modules/linkat (Depends-on): Add symlinkat.
30673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30674         * modules/unistd (Makefile.am): Substitute it.
30675         * lib/unistd.in.h (linkat): Declare replacement.
30676         Reported by Pádraig Brady.
30677
30678         quotearg: port test to systems with C.UTF-8 locale
30679         * tests/test-quotearg.c (struct result_strings): Add another
30680         member, differentiating between C.ASCII and C.UTF-8 handling.
30681         (compare_strings): Add parameter.
30682         (main): Adjust all callers.
30683
30684         getopt: avoid clash with FreeBSD _getopt_internal
30685         * lib/getopt.in.h (_getopt_internal): Override the name.
30686         * lib/getopt_int.h (includes): Pick up any overrides.
30687         Reported by Reuben Thomas.
30688
30689         hash: allow C89 compilation
30690         * lib/hash.c (check_tuning): Move declaration before statement.
30691         Reported by Reuben Thomas.
30692
30693 2009-10-05  Karl Berry  <karl@gnu.org>
30694
30695         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30696
30697 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30698             Bruno Haible  <bruno@clisp.org>
30699
30700         * lib/uname.c (uname): Use a table-driven algorithm to compute
30701         Windows NT versions.
30702
30703 2009-10-04  Bruno Haible  <bruno@clisp.org>
30704
30705         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30706         program_invocation_short_name.
30707         * modules/progname (configure.ac): Test for presence of
30708         program_invocation_short_name.
30709         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30710
30711 2009-10-04  Bruno Haible  <bruno@clisp.org>
30712
30713         * lib/progname.c (set_program_name): Fix comment.
30714         Reported by Jim Meyering.
30715
30716 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30717             Bruno Haible  <bruno@clisp.org>
30718
30719         * lib/uname.c: Include <string.h>.
30720         (uname): Do only one call to GetVersionEx in the common case.
30721
30722 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30723             Bruno Haible  <bruno@clisp.org>
30724
30725         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30726         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30727         (uname): Add support for Windows CE and various non-x86 CPU types.
30728
30729 2009-10-03  Bruno Haible  <bruno@clisp.org>
30730
30731         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30732         invocation to tests/configure.ac.
30733         Reported by Ian Beckwith <ianb@erislabs.net>.
30734
30735 2009-10-02  Eric Blake  <ebb9@byu.net>
30736
30737         fchdir: avoid compiler warning
30738         * lib/fchdir.c (canonicalize_file_name)
30739         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30740
30741         test-open: support mingw errno values
30742         * tests/test-open.h (test_open): Relax test.
30743         * tests/test-fopen.h (test_fopen): Likewise.
30744         * tests/test-openat-safer.c (main): Likewise.
30745
30746         open: fix opening directory on mingw
30747         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30748
30749         test-open: on GNU/Hurd, /dev/null is a directory
30750         * tests/test-fopen.h (main): Rename...
30751         (test_fopen): ...to this.  Use a guaranteed non-directory when
30752         confirming open behavior on trailing slash.
30753         * tests/test-openat-safer.c (main): Likewise.
30754         * tests/test-open.h (main): Likewise....
30755         (test_open): ...to this.
30756         * tests/test-fopen.c (main): Adjust caller.
30757         * tests/test-fopen-safer.c (main): Likewise.
30758         * tests/test-open.c (main): Likewise.
30759         * tests/test-fcntl-safer.c (main): Likewise.
30760         Reported by Samuel Thibault.
30761
30762         rename, fchdir: don't ignore chdir failure
30763         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30764         * lib/rename.c (rpl_rename) [W32]: Likewise.
30765         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30766         an empty destination directory if source cannot be renamed,
30767         although there is still possibility for failure.
30768         * doc/posix-functions/rename.texi (rename): Document the race.
30769         Reported by Jim Meyering.
30770
30771         maint: cleanup whitespace in recent commits
30772         * lib/rename.c (rpl_rename): Remove tabs.
30773         * tests/test-link.h (test_link): Likewise.
30774         * lib/fchdir.c (get_name): Likewise.
30775         Reported by Jim Meyering.
30776
30777 2009-10-02  Ben Pfaff  <blp@gnu.org>
30778
30779         relocatable-prog-wrapper: Add missing dependency on
30780         double-slash-root.
30781         * modules/relocatable-prog-wrapper: Add dependency.
30782         Reported by Ian Beckwith <ianb@erislabs.net>.
30783
30784 2009-10-02  Eric Blake  <ebb9@byu.net>
30785
30786         renameat: fix Solaris bugs
30787         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30788         needed fixing.
30789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30790         * modules/stdio (Makefile.am): Substitute it.
30791         * lib/stdio.in.h (renameat): Declare replacement.
30792         * lib/renameat.c (rpl_renameat): Implement fix.
30793
30794         renameat: new module
30795         * modules/renameat: New file.
30796         * lib/renameat.c (renameat): Likewise.
30797         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30799         * modules/stdio (Makefile.am): Substitute them.
30800         * lib/stdio.in.h (renameat): Declare it.
30801         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30802         * doc/posix-functions/renameat.texi (renameat): Likewise.
30803         * modules/renameat-tests: New test.
30804         * tests/test-renameat.c: Likewise.
30805
30806         rename: fix mingw bugs
30807         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30808         directory overwrite bugs.
30809
30810         rename: fix another cygwin 1.5 bug
30811         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30812         checks.
30813         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30814         unnecessary cygwin workarounds.  Also work around bug with moving
30815         full directory onto an empty one.
30816         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30817
30818         rename-dest-slash: merge into rename module
30819         * modules/rename-dest-slash (Status): Mark obsolete.
30820         (Depends-on): Add rename.
30821         (Files): Let rename do it all.
30822         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30823         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30824         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30825         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30826         * lib/rename.c (rpl_rename): Update comments.
30827
30828         rename: fix cygwin 1.5.x bugs
30829         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30830         * lib/rename.c (rpl_rename): Work around them.
30831         * modules/rename (Depends-on): Add same-inode.
30832
30833         rename: fix Solaris 10 bug
30834         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30835         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30836         was the only bug.
30837
30838         rename: fix Solaris 9 bug
30839         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30840         on non-directory.  Avoid calling exit.
30841         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30842         strdup.
30843         * modules/rename-tests (Depends-on): Drop lstat.
30844         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30845         (gl_PREREQ_RENAME): Delete unused macro.
30846
30847         rename-dest-slash: fix NetBSD bug
30848         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30849         links.
30850         * modules/rename-dest-slash (Depends-on): Add same-inode.
30851
30852         rename-tests: new test, exposes several platform bugs
30853         * modules/rename-tests: New file.
30854         * tests/test-rename.h: Likewise.
30855         * tests/test-rename.c: Likewise.
30856         * doc/posix-functions/rename.texi (rename): Improve documentation,
30857         including bugs that will eventually be fixed in gnulib.
30858
30859 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30860
30861         * lib/uname.c: Include <stdlib.h>
30862         (uname): Assume version info is available.
30863
30864 2009-10-02  Jim Meyering  <meyering@redhat.com>
30865
30866         gnu-web-doc-update: correct --help output
30867         * build-aux/gnu-web-doc-update: Make --help output relevant.
30868
30869         gnu-web-doc-update: add standard options
30870         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30871
30872         gnu-web-doc-update: New module.
30873         Use this script to automatically update the on-line web documentation
30874         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30875         * modules/gnu-web-doc-update: New file, from coreutils.
30876         * build-aux/gnu-web-doc-update: New script.
30877
30878 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30879
30880         link: LoadLibrary is not needed.
30881         * lib/link.c: Use GetModuleHandle.
30882
30883 2009-10-01  Eric Blake  <ebb9@byu.net>
30884
30885         getopt: bump serial number
30886         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30887         change.
30888
30889         tests: tighten link, rmdir, and remove tests
30890         * tests/test-link.h (includes): No need to use <config.h> here.
30891         Clean up if directory hard link was created, otherwise test for
30892         trailing '.'.
30893         * tests/test-linkat.c (main): Simplify.
30894         * tests/test-remove.c (main): Enhance test for trailing '.'.
30895         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30896
30897 2009-10-01  Jim Meyering  <meyering@redhat.com>
30898
30899         maint.mk: requiring "make major" was annoying, for a "minor" release.
30900         What is intended is "stable", to contrast with alpha and beta,
30901         so require "make stable", not "make major".
30902         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30903         (get_tool_versions): Likewise.
30904         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30905
30906 2009-09-30  Ben Pfaff  <blp@gnu.org>
30907
30908         Fix broken build of replacement for Windows tmpfile().
30909         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30910         flags argument added along with the 'mkostemp' module.
30911
30912 2009-09-28  Bruno Haible  <bruno@clisp.org>
30913
30914         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30915         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30916         to 'remove_elt'.
30917         (gl_list_remove): Update.
30918         * lib/gl_list.c (gl_list_remove): Update.
30919         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30920         to 'remove_elt'.
30921         (gl_oset_remove): Update.
30922         * lib/gl_list.c (gl_oset_remove): Update.
30923         Reported by Eric Blake.
30924
30925 2009-09-28  Eric Blake  <ebb9@byu.net>
30926
30927         doc: mention yet more cygwin 1.7 status
30928         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30929         cygwin.
30930         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30931         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30932
30933         argp: fix test failure
30934         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30935         that are not upper-case.  Pass correct range to tolower.
30936
30937 2009-09-27  Jim Meyering  <meyering@redhat.com>
30938
30939         test-yesno: work around sparc-dash here-document infelicity
30940         Without this change, the literal \177 byte in a here document
30941         would make dash 0.5.5.1-3 access uninitialized memory.
30942         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30943         Instead, use a marker, "@", and filter through tr to create the desired
30944         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30945
30946 2009-09-27  Bruno Haible  <bruno@clisp.org>
30947
30948         Disable untested support for new flavours of ACLs on AIX.
30949         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30950         progress.
30951         * lib/set-mode-acl.c (qset_acl): Likewise.
30952
30953 2008-12-07  Bruno Haible  <bruno@clisp.org>
30954
30955         Add support for new flavours of ACLs on AIX. (Untested.)
30956         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30957         (file_has_acl): Add support for newer AIX.
30958         * lib/set-mode-acl.c (qset_acl): Likewise.
30959         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30960         Rainer Tammer <tammer@tammer.net>.
30961
30962 2009-09-26  Eric Blake  <ebb9@byu.net>
30963
30964         argp: fix compilation of getopt
30965         * lib/getopt.in.h (includes): Use different guard than glibc.
30966         Reported by Sergey Poznyakoff.
30967
30968         doc: mention more cygwin 1.7 status
30969         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30970         bug.
30971         * doc/posix-functions/execl.texi (execl): Likewise.
30972         * doc/posix-functions/execle.texi (execle): Likewise.
30973         * doc/posix-functions/execlp.texi (execlp): Likewise.
30974         * doc/posix-functions/execv.texi (execv): Likewise.
30975         * doc/posix-functions/execve.texi (execve): Likewise.
30976         * doc/posix-functions/execvp.texi (execvp): Likewise.
30977         * doc/glibc-functions/canonicalize_file_name.texi
30978         (canonicalize_file_name): Cygwin 1.7 now provides this.
30979         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30980         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30981         on AT_SYMLINK_NOFOLLOW.
30982
30983 2009-09-24  Eric Blake  <ebb9@byu.net>
30984
30985         test-linkat: make test more robust
30986         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30987
30988         getopt: fix inclusion guards for cygwin
30989         * modules/getopt-posix (Depends-on): Add include-next.
30990         (Makefile.am): Substitute more items in replacement header.
30991         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30992         <getopt.h>.
30993         * lib/getopt.in.h (includes): Use split inclusion guard, and
30994         prefer <getopt.h> over include <unistd.h> when one is present.
30995         (option): Also override name of 'struct option'.
30996
30997         same-inode: revert prior change; it is not yet ready
30998         * NEWS: Undo mention of this change.
30999         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31000         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31001         * lib/cycle-check.c (cycle_check): Likewise.
31002         * lib/same.c (same_name): Likewise.
31003         * lib/at-func2.c (at_func2): Likewise.
31004
31005 2009-09-23  Eric Blake  <ebb9@byu.net>
31006
31007         linkat: new module
31008         * modules/linkat: New file.
31009         * lib/at-func2.c (at_func2): Likewise.
31010         * lib/linkat.c (linkat): Likewise.
31011         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31012         * lib/openat-priv.h (at_func2): Add declaration.
31013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31014         * modules/unistd (Makefile.am): Substitute them.
31015         * lib/unistd.in.h (linkat): Declare it.
31016         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31017         * doc/posix-functions/linkat.texi (linkat): Likewise.
31018         * doc/posix-functions/link.texi (link): Tweak wording.
31019         * tests/test-link.c (main): Move guts...
31020         * tests/test-link.h (test_link): ...into new file.
31021         * modules/linkat-tests: New test.
31022         * tests/test-linkat.c: Likewise.
31023         * modules/link-tests (Files): Ship new file.
31024         (Depends-on): Add stdbool.
31025
31026         dirname: add library-safe mdir_name
31027         * lib/dirname.h (mdir_name): New prototype.
31028         * lib/dirname.c (dir_name): Move guts...
31029         (mdir_name): ...to new function that avoids xalloc_die.
31030
31031         fchdir: another mingw fix
31032         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31033         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31034         on mingw (where it has not yet been ported), and make it optional
31035         elsewhere.
31036         (_gl_register_fd): Use it.
31037
31038         same-inode: make SAME_INODE tri-state, to port to mingw
31039         * NEWS: Mention this change.
31040         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31041         st_ino always being 0.
31042         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31043         * lib/cycle-check.c (cycle_check): Likewise.
31044         * lib/same.c (same_name): Likewise.
31045
31046         lstat: avoid mingw compilation error
31047         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31048         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31049         lstat ourselves.
31050         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31051         was adequate.
31052         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31053         the checks for lstat.
31054         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31055
31056         link: fix test failure on Solaris 9
31057         * lib/link.c (rpl_link): Don't assume link will catch bogus
31058         trailing slash on source.
31059
31060         test-symlinkat: enhance test
31061         * tests/test-readlink.c (main): Move guts...
31062         * tests/test-readlink.h (test_readlink): ...into new file.
31063         * tests/test-symlink.c (main): Move guts...
31064         * tests/test-symlink.h (test_symlink): ...into new file.
31065         * tests/test-symlinkat.c (main): Use new files for further
31066         coverage.
31067         (do_symlink, do_readlink): New helper functions.
31068         * modules/symlink-tests (Files): Ship new file.
31069         (Depends-on): Add stdbool.
31070         * modules/readlink-tests (Files): Ship new file.
31071         (Depends-on): Add stdbool.
31072         * modules/symlinkat-tests (Files): Use new files.
31073
31074 2009-09-23  Eric Blake  <ebb9@byu.net>
31075
31076         readlink: document portability issue with symlink length
31077         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31078         systems have bogus st_size on symlinks, and mention the
31079         areadlink-with-size module.
31080         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31081         * doc/posix-functions/readlink.texi (readlink): Mention the
31082         areadlink module, and ERANGE failure.
31083         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31084         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31085
31086         readlink: fix Solaris 9 bug with trailing slash
31087         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31088         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31089         * doc/posix-functions/readlink.texi (readlink): Document this.
31090         * modules/readlink-tests: New test.
31091         * tests/test-readlink.c: Likewise.
31092
31093         readlink: fix cygwin 1.5.x bug with return type
31094         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31095         * lib/unistd.in.h (readlink): Use ssize_t.
31096         * lib/readlink.c (readlink): Likewise.
31097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31098         * modules/unistd (Makefile.am): Substitute it.
31099         * lib/unistd.in.h (readlink): Declare replacement.
31100         * doc/posix-functions/readlink.texi (readlink): Document this.
31101
31102         symlink: use throughout gnulib
31103         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31104         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31105         symlink is not used.
31106         * modules/symlinkat (Depends-on): Add symlink.
31107         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31108         * modules/canonicalize-tests (Depends-on): Likewise.
31109         * modules/lstat-tests (Depends-on): Likewise.
31110         * modules/openat-tests (Depends-on): Likewise.
31111         * modules/remove-tests (Depends-on): Likewise.
31112         * modules/rmdir-tests (Depends-on): Likewise.
31113         * modules/unlink-tests (Depends-on): Likewise.
31114         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31115         * tests/test-canonicalize.c (symlink): Likewise.
31116         * tests/test-fstatat.c (symlink): Likewise.
31117         * tests/test-lstat.c (symlink): Likewise.
31118         * tests/test-remove.c (symlink): Likewise.
31119         * tests/test-rmdir.c (symlink): Likewise.
31120         * tests/test-unlink.c (symlink): Likewise.
31121         * tests/test-unlinkat.c (symlink): Likewise.
31122
31123         symlink: new module, for Solaris 9 bug
31124         * modules/symlink: New file.
31125         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31126         * lib/symlink.c: Likewise.
31127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31128         * modules/unistd (Makefile.am): Substitute them.
31129         * lib/unistd.in.h (symlink): Declare replacement.
31130         * MODULES.html.sh (File system functions): Mention it.
31131         * doc/posix-functions/symlink.texi (symlink): Likewise.
31132         * modules/symlink-tests: New test.
31133         * tests/test-symlink.c: Likewise.
31134
31135 2009-09-23  Bruno Haible  <bruno@clisp.org>
31136
31137         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31138         when needed.
31139         Test case: gnulib-tool --import --with-tests atexit inttypes.
31140         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31141
31142 2009-09-23  Bruno Haible  <bruno@clisp.org>
31143
31144         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31145         subcommand, not in a subshell.
31146
31147 2009-09-22  Eric Blake  <ebb9@byu.net>
31148
31149         unistd: sort replacement declarations
31150         * lib/unistd.in.h: Sort declarations.
31151
31152         open, openat: minor optimization
31153         * lib/open.c (open): If open succeeded, len is non-zero.
31154         * lib/openat.c (rpl_openat): Likewise.
31155
31156         link-follow: ensure correct result
31157         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31158         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31159         distinguish between possible failures.
31160
31161 2009-09-21  Eric Blake  <ebb9@byu.net>
31162
31163         fts: avoid compiler warning
31164         * lib/fts.c (dirent_inode_sort_may_be_useful)
31165         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31166
31167 2009-09-19  Bruno Haible  <bruno@clisp.org>
31168
31169         * lib/progreloc.c (canonicalize_file_name): New declaration.
31170
31171 2009-09-19  Eric Blake  <ebb9@byu.net>
31172
31173         link: fix quoting
31174         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31175
31176         openat: fix openat bugs on Solaris 9
31177         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31178         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31179         * modules/openat (Depends-on): Add open.
31180         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31181         * modules/fcntl-h (Makefile.am): Substitute it.
31182         * lib/fcntl.in.h (openat): Declare replacement.
31183         * doc/posix-functions/openat.texi (openat): Document this.
31184
31185         openat: move fstatat and unlinkat into correct files
31186         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31187         compiled.
31188         * lib/openat.c (fstatat, unlinkat): Move...
31189         * lib/fstatat.c (fstatat): ...into correct files.
31190         * lib/unlinkat.c (unlinkat): Likewise.
31191
31192         openat: fix unlinkat bugs on Solaris 9
31193         * lib/unlinkat.c (unlinkat): New file.
31194         * modules/openat (Depends-on): Add unlink.
31195         (Files): Distribute it.
31196         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31197         trailing slash behavior is broken.
31198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31199         * modules/unistd (Makefile.am): Substitute it.
31200         * lib/unistd.in.h (unlinkat): Declare replacement.
31201         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31202
31203         openat: fix fstatat bugs on Solaris 9
31204         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31205         stat.
31206         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31207
31208         test-unlinkat: enhance test, to expose Solaris 9 bug
31209         * tests/test-unlink.c (main): Factor guts...
31210         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31211         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31212         * tests/test-rmdir.c (main): Adjust caller.
31213         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31214         (unlinker): New helper function.
31215         (rmdirat): Enhance check.
31216         * modules/rmdir-tests (Depends-on): Add stdbool.
31217         * modules/unlink-tests (Depends-on): Likewise.
31218         (Files): Add test-unlink.h.
31219         * modules/openat-tests (Files): Likewise.
31220         (Depends-on): Add unlinkdir.
31221
31222         test-fstatat: new test, to expose Solaris 9 bugs
31223         * tests/test-stat.c (main): Factor guts...
31224         * tests/test-stat.h (test_stat_func): ...into new file.
31225         * tests/test-lstat.c (main): Factor guts...
31226         * tests/test-lstat.h (test_lstat_func): ...into new file.
31227         * tests/test-fstatat.c: New file.
31228         * modules/stat-tests (Files): Add test-stat.h.
31229         * modules/lstat-tests (Files): Add test-lstat.h.
31230         (Depends-on): Add stdbool.
31231         * modules/openat-tests (Depends-on): Add pathmax.
31232         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31233         (Makefile.am): Run new test.
31234
31235         remove: new module, for mingw and Solaris 9 bugs
31236         * modules/remove: New file.
31237         * lib/remove.c: Likewise.
31238         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31240         * modules/stdio (Makefile.am): Use them.
31241         * lib/stdio.in.h (remove): Declare replacement.
31242         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31243         * doc/posix-functions/remove.texi (remove): Likewise.
31244         * modules/remove-tests: New test.
31245         * tests/test-remove.c: Likewise.
31246
31247         unlink: new module, for Solaris 9 bug
31248         * modules/unlink: New file.
31249         * lib/unlink.c: Likewise.
31250         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31252         * modules/unistd (Makefile.am): Use them.
31253         * lib/unistd.in.h (stat): Declare replacement.
31254         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31255         * doc/posix-functions/unlink.texi (unlink): Likewise.
31256         * modules/unlink-tests: New test.
31257         * tests/test-unlink.c: Likewise.
31258
31259         lstat: fix Solaris 9 bug
31260         * lib/lstat.c (lstat): Also check for trailing slash on
31261         non-symlink, non-directories.  Use stat module to simplify logic.
31262         * doc/posix-functions/lstat.texi (lstat): Document it.
31263         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31264         (configure.ac): Check for symlink.
31265         * tests/test-lstat.c (main): Add more tests.
31266
31267         stat: add as dependency to other modules
31268         * modules/chown (Depends-on): Add stat.
31269         * modules/euidaccess (Depends-on): Likewise.
31270         * modules/fchdir (Depends-on): Likewise.
31271         * modules/isdir (Depends-on): Likewise.
31272         * modules/link (Depends-on): Likewise.
31273         * modules/lstat (Depends-on): Likewise.
31274         * modules/mkdir-p (Depends-on): Likewise.
31275         * modules/modechange (Depends-on): Likewise.
31276         * modules/open (Depends-on): Likewise.
31277         * modules/readlink (Depends-on): Likewise.
31278         * modules/same (Depends-on): Likewise.
31279
31280         stat: fix Solaris 9 bug
31281         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31282         slash.
31283         * lib/stat.c (rpl_stat): Work around it.
31284         * doc/posix-functions/stat.texi (stat): Update documentation.
31285
31286         stat: new module, for mingw bug
31287         * modules/stat: New file.
31288         * lib/stat.c: Likewise.
31289         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31291         * modules/sys_stat (Makefile.am): Use them.
31292         * lib/sys_stat.in.h (stat): Declare replacement.
31293         * lib/openat.c (fstatat): Deal with lstat and stat being function
31294         macros.
31295         * modules/openat (Depends-on): Add inline.
31296         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31297         * doc/posix-functions/stat.texi (stat): Likewise.
31298         * modules/stat-tests: New test.
31299         * tests/test-stat.c: Likewise.
31300
31301 2009-09-19  Jim Meyering  <meyering@redhat.com>
31302
31303         syntax-check: detect unnecessary inclusion of canonicalize.h
31304         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31305
31306 2009-09-19  Eric Blake  <ebb9@byu.net>
31307
31308         canonicalize-lgpl: adjust clients to use correct header
31309         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31310         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31311         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31312         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31313         * lib/progreloc.c (includes): Likewise.
31314
31315 2009-09-19  Jim Meyering  <meyering@redhat.com>
31316
31317         test-posixtm.c: correct a comment
31318         * tests/test-posixtm.c: Correct first-line comment.
31319         Spotted by Eric Blake.
31320
31321 2009-09-16  Jim Meyering  <meyering@redhat.com>
31322
31323         posixtm-tests: make T const-correct; add a test case
31324         * tests/test-posixtm.c (T): Declare const.
31325         Add a test for -(2^31+1).
31326         Remove useless can-succeed-only-in-2002 test.
31327
31328         posixtm-tests: adjust the sole failing test
31329         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31330         expected output matches what mktime now produces.  Cross-checked via
31331         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31332
31333         posixtm: move #ifdef'd tests into a new module
31334         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31335         * tests/test-posixtm.c: ... this new file.
31336         * modules/posixtm-tests: New module.
31337
31338 2009-09-19  Eric Blake  <ebb9@byu.net>
31339
31340         openat: simplify use of at-func.c
31341         * lib/at-func.c (includes): Include prerequisites here, to
31342         simplify requirements on client files.
31343         * lib/openat-priv.h: Add double-inclusion guard.
31344         * lib/faccessat.c (includes): Simplify.
31345         * lib/fchmodat.c (includes): Likewise.
31346         * lib/fchownat.c (includes): Likewise.
31347         * lib/mkdirat.c (includes): Likewise.
31348         * lib/mkfifoat.c (includes): Likewise.
31349         * lib/symlinkat.c (includes): Likewise.
31350
31351         openat: allow return of fd 0
31352         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31353         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31354         unistd-safer.
31355         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31356         <fcntl.h>; this module does not leak fds.
31357         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31358         must be allowed to return 0, leaving openat_safer to add the
31359         safety.
31360         (openat_permissive): Avoid writing to just-opened fd 2 if
31361         restoring the current directory fails.
31362         * lib/openat-die.c (openat_restore_fail): Add comment.
31363         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31364         (save_cwd): Guarantee safe fd, but without use of open_safer.
31365         * tests/test-openat.c: New test.
31366         * modules/openat-tests (Files, Makefile.am): Distribute and build
31367         new file.
31368
31369         relocatable-prog-wrapper: fix build
31370         * modules/relocatable-prog-wrapper (Files): Update name of
31371         canonicalize m4 file, broken on 2009-09-17.
31372         Reported by emad hajjar <aleppos@hotmail.com>.
31373
31374 2009-09-19  Bruno Haible  <bruno@clisp.org>
31375
31376         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31377         * lib/safe-alloc.c: Likewise.
31378         Reported by Ian Beckwith <ianb@erislabs.net>.
31379
31380 2009-09-18  Bruno Haible  <bruno@clisp.org>
31381
31382         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31383         Reported by <erobles@sensacd.com.mx>.
31384
31385 2009-09-17  Eric Blake  <ebb9@byu.net>
31386
31387         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31388         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31389         slashes when checking if last component is missing.
31390         * tests/test-canonicalize.c (main): Test this.
31391
31392         canonicalize, canonicalize-lgpl: honor // if distinct from /
31393         * modules/canonicalize (Files): Add double-slash-root.m4.
31394         * modules/canonicalize-lgpl (Files): Likewise.
31395         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31396         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31397         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31398         fallback definition.
31399         (canonicalize_filename_mode): Use it to protect //.
31400         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31401         (__realpath): Likewise.
31402         * tests/test-canonicalize.c (main): Test this.
31403         * tests/test-canonicalize-lgpl.c (main): Likewise.
31404         * modules/canonicalize-tests (Depends-on): Add same-inode.
31405         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31406
31407         canonicalize-lgpl: fix glibc bug with trailing slash
31408         * m4/canonicalize-lgpl.m4: Move contents...
31409         * m4/canonicalize.m4: ...here.
31410         (gl_CANONICALIZE_LGPL): Factor realpath check...
31411         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31412         glibc 2.3.5 bug, fixed 2005-04-27.
31413         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31414         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31415         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31416         * modules/canonicalize-lgpl (Files): Manage file rename.
31417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31418         * modules/stdlib (Makefile.am): Substitute witness.
31419         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31420         is needed.
31421         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31422         replacement is required.
31423         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31424         * doc/glibc-functions/canonicalize_file_name.texi
31425         (canonicalize_file_name): Document this.
31426         * doc/posix-functions/realpath.texi (realpath): Likewise.
31427
31428         canonicalize-lgpl: reject non-directory with trailing slash
31429         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31430         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31431         catches failures in glibc 2.3.5.
31432         * tests/test-canonicalize.c (main): Likewise.
31433
31434         canonicalize-lgpl: use native realpath if it works
31435         * lib/canonicalize-lgpl.c (realpath): Guard with
31436         FUNC_REALPATH_WORKS.
31437         * lib/stdlib.in.h (realpath): Make declaration optional based on
31438         HAVE_REALPATH.
31439         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31440         native realpath works.
31441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31442         * modules/stdlib (Makefile.am): Substitute witness.
31443
31444         canonicalize, canonicalize-lgpl: use <stdlib.h>
31445         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31446         (Include): Mention <stdlib.h>.
31447         (configure.ac): Mention functions we provide.
31448         * modules/canonicalize (configure.ac): Likewise.
31449         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31450         realpath if canonicalize_file_name is missing.
31451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31452         * modules/stdlib (Makefile.am): Substitute witnesses.
31453         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31454         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31455         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31456         * NEWS: Document this.
31457         * doc/glibc-functions/canonicalize_file_name.texi
31458         (canonicalize_file_name): Likewise.
31459         * doc/posix-functions/realpath.texi (realpath): Likewise.
31460         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31461
31462         test-canonicalize: consolidate into single C program
31463         * tests/test-canonicalize.sh: Delete; move setup into...
31464         * tests/test-canonicalize.c (main): ...the program, making it
31465         easier to run in debugger.  Add some tests.
31466         * modules/canonicalize-tests (Files): Remove unused file.
31467         (Depends-on): Add progname.
31468         (configure.ac, Makefile.am): Simplify.
31469
31470         test-canonicalize-lgpl: consolidate into single C program
31471         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31472         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31473         easier to run in debugger.  Add some tests.
31474         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31475         (configure.ac, Makefile.am): Simplify.
31476
31477         canonicalize: avoid resolvepath
31478         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31479         unnecessary checks.
31480         * lib/canonicalize.c (includes): Simplify.
31481         (canonicalize_file_name): Drop resolvepath implementation.
31482         * modules/canonicalize (Depends-on): Drop filenamecat.
31483
31484         canonicalize: don't lose errno
31485         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31486         over calls to free.
31487
31488         canonicalize: simplify errno handling
31489         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31490         assignment.
31491
31492         canonicalize, canonicalize-lgpl: update module dependencies
31493         * modules/canonicalize (Depends-on): Add extensions, lstat,
31494         pathmax, stdlib.
31495         (Files): Drop pathmax.h.
31496         (configure.ac): Adjust macro name.
31497         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31498         lstat, stdlib, sys_stat.
31499         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31500         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31501         extensions.
31502         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31503         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31504         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31505         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31506         declaration, if available.
31507         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31508         we can rely on the readlink module.
31509         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31510         (includes): Use <unistd.h> unconditionally.
31511
31512 2009-09-17  Eric Blake  <ebb9@byu.net>
31513
31514         maint: make Include sections of modules consistent
31515         * modules/alloca: Use only header name; no need to list #include.
31516         * modules/alloca-opt: Likewise.
31517         * modules/arpa_inet: Likewise.
31518         * modules/canon-host: Likewise.
31519         * modules/configmake: Likewise.
31520         * modules/dirent: Likewise.
31521         * modules/eealloc: Likewise.
31522         * modules/environ: Likewise.
31523         * modules/fchdir: Likewise.
31524         * modules/fcntl: Likewise.
31525         * modules/fcntl-h: Likewise.
31526         * modules/gethrxtime: Likewise.
31527         * modules/gettime: Likewise.
31528         * modules/ignore-value: Likewise.
31529         * modules/inet_ntop: Likewise.
31530         * modules/inet_pton: Likewise.
31531         * modules/inttypes: Likewise.
31532         * modules/isnand-nolibm: Likewise.
31533         * modules/isnanf-nolibm: Likewise.
31534         * modules/mbchar: Likewise.
31535         * modules/mbfile: Likewise.
31536         * modules/mbiter: Likewise.
31537         * modules/mbuiter: Likewise.
31538         * modules/netdb: Likewise.
31539         * modules/netinet_in: Likewise.
31540         * modules/nproc: Likewise.
31541         * modules/pagealign_alloc: Likewise.
31542         * modules/poll: Likewise.
31543         * modules/printf-frexp: Likewise.
31544         * modules/pthread: Likewise.
31545         * modules/putenv: Likewise.
31546         * modules/random_r: Likewise.
31547         * modules/relocatable-prog: Likewise.
31548         * modules/search: Likewise.
31549         * modules/select: Likewise.
31550         * modules/selinux-h: Likewise.
31551         * modules/settime: Likewise.
31552         * modules/signal: Likewise.
31553         * modules/size_max: Likewise.
31554         * modules/socklen: Likewise.
31555         * modules/ssize_t: Likewise.
31556         * modules/stdarg: Likewise.
31557         * modules/stdbool: Likewise.
31558         * modules/stddef: Likewise.
31559         * modules/stdint: Likewise.
31560         * modules/stdio: Likewise.
31561         * modules/stdlib: Likewise.
31562         * modules/string: Likewise.
31563         * modules/strings: Likewise.
31564         * modules/sys_file: Likewise.
31565         * modules/sys_ioctl: Likewise.
31566         * modules/sys_select: Likewise.
31567         * modules/sys_socket: Likewise.
31568         * modules/sys_stat: Likewise.
31569         * modules/sys_time: Likewise.
31570         * modules/sys_times: Likewise.
31571         * modules/sys_utsname: Likewise.
31572         * modules/sys_wait: Likewise.
31573         * modules/sysexits: Likewise.
31574         * modules/time: Likewise.
31575         * modules/times: Likewise.
31576         * modules/tmpfile: Likewise.
31577         * modules/trim: Likewise.
31578         * modules/unistd: Likewise.
31579         * modules/wchar: Likewise.
31580         * modules/wctype: Likewise.
31581
31582 2009-09-17  Bruno Haible  <bruno@clisp.org>
31583
31584         Make getdate.y compile on QNX and NetBSD 5 / i386.
31585         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31586         TIME_T_FITS_IN_LONG_INT.
31587         * lib/getdate.y (long_time_t): New type.
31588         (relative_time): Change type of 'seconds' field to long_time_t.
31589         (get_date): Update types of local variables. Check against overflow
31590         during conversion from long_time_t to time_t.
31591         Reported by Matt Kraai <kraai@ftbfs.org>
31592         and Hasso Tepper <hasso@netbsd.org>.
31593
31594 2009-09-17  Bruno Haible  <bruno@clisp.org>
31595
31596         * modules/COPYING: Update copyright years.
31597         * modules/README: Likeiwse.
31598         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31599         Reported by Ian Beckwith <ianb@erislabs.net>.
31600
31601 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31602
31603         * users.txt: Update references for gnuit package.
31604
31605 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31606
31607         * m4/getdelim.m4: Fix typo in copyright line.
31608
31609 2009-09-17  Bruno Haible  <bruno@clisp.org>
31610
31611         * lib/atoll.c: Use the standard header with GPL copyright.
31612         * lib/argz.in.h: Likewise.
31613         * lib/glob.c: Likewise.
31614         * lib/glob-libc.h: Likewise.
31615         * lib/random_r.c: Likewise.
31616         * lib/siglist.h: Likewise.
31617         * lib/strsignal.c: Likewise.
31618         Reported by Ian Beckwith <ianb@erislabs.net>.
31619
31620 2009-09-17  Eric Blake  <ebb9@byu.net>
31621
31622         rmdir: ensure correct dependency order
31623         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31624
31625 2009-09-17  Bruno Haible  <bruno@clisp.org>
31626
31627         Disable assertion that fails on NetBSD 5 / i386.
31628         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31629         Reported by Sam Steingold <sds@gnu.org>
31630         and Hasso Tepper <hasso@netbsd.org>.
31631
31632 2009-09-16  Eric Blake  <ebb9@byu.net>
31633
31634         unlinkdir: port to mingw
31635         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31636         on which no one can unlink a directory.
31637
31638         stdlib: sort witness names
31639         * modules/stdlib (Makefile.am): Sort replacements.
31640         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31641         * lib/stdlib.in.h: Likewise.
31642
31643         parse-duration-tests: avoid link failure
31644         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31645         LIBINTL.
31646         Reported by Tom G. Christensen.
31647
31648         openat-tests: ensure unlinkat behaves like rmdir
31649         * tests/test-rmdir.c (main): Factor guts...
31650         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31651         * modules/rmdir-tests (Files): Ship new file.
31652         * modules/openat-tests: New test.
31653         * tests/test-unlinkat.c: Likewise.
31654
31655         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31656         * modules/rmdir-errno (Status, Notice): Now obsolete.
31657
31658         rmdir: work around cygwin 1.5.x and mingw bugs
31659         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31660         * lib/rmdir.c (rmdir): Work around it.
31661         * modules/rmdir (Status, Notice): No longer obsolete.
31662         (Files): Add dos.m4.
31663         (Depends-on): Add unistd.
31664         (configure.ac): Set witnesses.
31665         (License): Relax to LGPLv2+.
31666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31667         * modules/unistd (Makefile.am): Substitute witnesses.
31668         * lib/unistd.in.h (rmdir): Declare replacement.
31669         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31670         * modules/rmdir-tests: New tests.
31671         * tests/test-rmdir.c: Likewise.
31672
31673 2009-09-15  Eric Blake  <ebb9@byu.net>
31674
31675         fchdir: improve use of replacement functions
31676         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31677         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31678         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31679         REPLACE_CLOSEDIR.
31680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31681         * modules/sys_stat (Makefile.am): Substitute correct witness.
31682         * modules/dirent (Makefile.am): Likewise.
31683         * modules/unistd (Makefile.am): Likewise.
31684         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31685         * lib/unistd.in.h (dup): Likewise.
31686         * lib/sys_stat.in.h (fstat): Likewise.
31687
31688         maint: ignore gnulib-tool temp files
31689         * .gitignore: Ignore files created during gnulib-tool --test.
31690
31691 2009-09-13  Jim Meyering  <meyering@redhat.com>
31692
31693         posixtm: don't reject a time that specify "60" as the number of seconds
31694         * lib/posixtm.c (posixtime): The code to reject invalid dates
31695         would also reject a time specified with the .60 suffix.
31696         But POSIX allows that, in order to accommodate leap seconds.
31697         So don't reject it.
31698         (main): Adjust tests accordingly.
31699         * modules/posixtm (Depends-on): Add stpcpy.
31700
31701 2009-09-11  Jim Meyering  <meyering@redhat.com>
31702
31703         announce-gen: include [$release_type] in emitted Subject:
31704         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31705         e.g., [stable] in the emitted Subject: line.
31706
31707 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31708
31709         Remove obsolete macros from several modules.
31710         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31711         obsolete Autoconf macros with their modern counterparts.
31712         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31713         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31714         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31715         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31716         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31717         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31718         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31719         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31720         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31721         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31722         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31723         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31724         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31725         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31726         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31727         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31728         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31729         * m4/time_r.m4 (gl_TIME_R): Likewise.
31730         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31731         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31732         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31733
31734         Fix copyright header in build-aux scripts.
31735         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31736         recommendation.
31737         * build-aux/ncftpput-ftp: Likewise.
31738         * build-aux/update-copyright: Likewise.
31739
31740 2009-09-09  Eric Blake  <ebb9@byu.net>
31741
31742         test-link: allow Linux choice of errno
31743         * tests/test-link.c (main): Relax test for alternate error.
31744
31745         strndup: fix improper m4 caching
31746         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31747         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31748         (gl_PREREQ_STRNDUP): Delete.
31749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31750         * modules/string (Makefile.am): Substitute it.
31751         * lib/string.in.h (strndup): Modernize prototype.
31752
31753         getcwd: port to mingw
31754         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31755         different from the POSIX assumptions made throughout the getcwd
31756         module; fortunately, the mingw getcwd does not need replacement.
31757         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31758         * modules/getcwd-tests: New test.
31759         * tests/test-getcwd.c: Likewise.
31760
31761         link: fix platform bugs
31762         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31763         * lib/link.c (link): Work around them.  Fix related mingw bug.
31764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31765         * modules/unistd (Makefile.am): Substitute it.
31766         * lib/unistd.in.h (link): Declare replacement.
31767         * doc/posix-functions/link.texi (link): Document this.
31768         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31769
31770         test-link: consolidate into single C program, test more cases
31771         * tests/test-link.sh: Delete.
31772         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31773         at least Cygwin and Solaris.
31774         * modules/link-tests (Files): Remove unused file.
31775         (Depends-on): Add errno, sys_stat.
31776         (Makefile.am): Simplify.
31777
31778 2009-09-08  Bruno Haible  <bruno@clisp.org>
31779
31780         Work around towlower, towupper bug on mingw.
31781         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31782         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31783         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31784         * doc/posix-functions/towupper.texi: Likewise.
31785         Reported by Eric Blake.
31786
31787 2009-09-08  Jim Meyering  <meyering@redhat.com>
31788
31789         build: don't try to run autoheader if we don't use it
31790         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31791         is not used in configure.ac.
31792
31793 2009-09-08  Eric Blake  <ebb9@byu.net>
31794
31795         euidaccess: fix compilation error
31796         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31797
31798         rawmemchr: relax license
31799         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31800         okay.
31801         Reported by Jim Meyering.
31802
31803         mkfifoat: new module
31804         * modules/mkfifoat: New file.
31805         * lib/mkfifoat.c: Likewise.
31806         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31807         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31808         * modules/sys_stat (Makefile.am): Use them.
31809         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31810         * MODULES.html.sh (File system functions): Mention module.
31811         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31812         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31813         * modules/mkfifoat-tests: New test.
31814         * tests/test-mkfifoat.c: Likewise.
31815
31816         strchrnul: relax license
31817         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31818         okay.
31819         Reported by Jim Meyering.
31820
31821 2009-09-08  Eric Blake  <ebb9@byu.net>
31822
31823         fstatat: fix compilation on Solaris
31824         * lib/fstatat.c (includes): Add fcntl.h.
31825         Reported by Pádraig Brady.
31826
31827 2009-09-07  Eric Blake  <ebb9@byu.net>
31828
31829         rename: modernize replacement
31830         * modules/rename (Depends-on): Add stdio.
31831         (configure.ac): Declare witness.
31832         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31833         stdio take care of replacement.
31834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31835         * modules/stdio (Makefile.am): Substitute them.
31836         * lib/stdio.in.h (rename): Declare replacement.
31837         * lib/rename.c (includes): Allow cross-compilation to non-windows
31838         machines.
31839         * doc/posix-functions/rename.texi (rename): Improve
31840         documentation.
31841
31842         stdio: sort witness names
31843         * modules/stdio (Makefile.am): Sort replacements.
31844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31845         * lib/stdio.in.h: Likewise.
31846
31847         getcwd: minor cleanups
31848         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31849         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31850
31851         openat: provide more convenience names
31852         * modules/faccessat (configure.ac): Add C witness.
31853         * lib/unistd.in.h (readlinkat): Fix typo.
31854         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31855         convenience wrappers.
31856         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31857         wrappers in syntax checks.
31858
31859 2009-09-06  Eric Blake  <ebb9@byu.net>
31860
31861         doc: fix comments in recent patches
31862         * lib/faccessat.c: Mention correct function.
31863         * lib/fchmodat.c: Likewise.
31864         * lib/fchownat.c: Likewise.
31865         * lib/symlinkat.c: Likewise.
31866         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31867         constants.
31868
31869         faccessat, symlinkat: continue cleanup of previous patch
31870         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31871         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31872         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31874         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31875         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31876         set.
31877
31878 2009-09-06  Bruno Haible  <bruno@clisp.org>
31879
31880         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31881         (fstatat): Declare if GNULIB_FSTATAT is set.
31882         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31883         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31884         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31885         * modules/fcntl-h (Files): Remove m4/openat.m4.
31886         * modules/sys_stat (Files): Remove m4/openat.m4.
31887         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31888         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31889         * modules/unistd (Files): Remove m4/openat.m4.
31890         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31891         GNULIB_OPENAT.
31892         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31893         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31894         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31895         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31896         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31897         gl_OPENAT_DEFAULTS.
31898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31899         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31900         Don't require gl_OPENAT_DEFAULTS.
31901         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31902         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31903         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31904         (gl_OPENAT_DEFAULTS): Remove macro.
31905
31906 2009-09-06  Bruno Haible  <bruno@clisp.org>
31907
31908         * modules/openat (configure.ac): Remove unneeded witness.
31909
31910 2009-09-06  Bruno Haible  <bruno@clisp.org>
31911
31912         Set errno to ENOSYS when a function is entirely unsupported.
31913         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31914         EOPNOTSUPP.
31915         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31916         * modules/chown (Depends-on): Remove errno.
31917
31918 2009-09-06  Bruno Haible  <bruno@clisp.org>
31919
31920         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31921
31922 2009-09-06  Bruno Haible  <bruno@clisp.org>
31923
31924         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31925
31926 2009-09-06  Ben Pfaff  <blp@gnu.org>
31927             Bruno Haible  <bruno@clisp.org>
31928
31929         Work around a glibc bug in strtok_r.
31930         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31931         Undefine if UNDEFINE_STRTOK_R is set.
31932         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31934         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31935         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31936         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31937         UNDEFINE_STRTOK_R.
31938         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31939
31940 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31941
31942         exclude: minor fix
31943         * lib/exclude.c: Include wctype.h
31944
31945 2009-09-06  Akim Demaille  <demaille@gostai.com>
31946
31947         bootstrap: improve error message
31948         * build-aux/bootstrap (find_tool): Upon failure, report the list
31949         of candidates.
31950         Honor the initial value of the envvar.
31951
31952 2009-09-05  Eric Blake  <ebb9@byu.net>
31953
31954         symlinkat: new module
31955         * modules/symlinkat: New file.
31956         * lib/symlinkat.c: Likewise.
31957         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31959         * modules/unistd (Makefile.am): Use them.
31960         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31961         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31962         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31963         * MODULES.html.sh (File system functions): Mention module.
31964         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31965         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31966         * modules/symlinkat-tests: New test.
31967         * tests/test-symlinkat.c: Likewise.
31968
31969         test-openat-safer: add more checks
31970         * tests/test-openat-safer.c (main): Check more code paths.
31971
31972 2009-09-05  Jim Meyering  <meyering@redhat.com>
31973
31974         syntax-check: detect unnecessary inclusion of openat.h
31975         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31976
31977 2009-09-05  Bruno Haible  <bruno@clisp.org>
31978
31979         Support towlower, towupper.
31980         * doc/posix-functions/towlower.texi: Mention module wctype.
31981         * doc/posix-functions/towupper.texi: Likewise.
31982         * lib/wctype.in.h (towlower, towupper): New functions.
31983         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31984         (ASSERT): New macro.
31985         (e): New variable.
31986         (main): Test also towlower, towupper. Test WEOF argument.
31987         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31988
31989 2009-09-05  Bruno Haible  <bruno@clisp.org>
31990
31991         Fix conversion behaviour when the input is invalid.
31992         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31993         mark occurring in first pass of indirect conversion.
31994         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31995         input.
31996         Found by clang's static analyzer.
31997
31998 2009-09-05  Bruno Haible  <bruno@clisp.org>
31999
32000         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32001         where direct conversion is possible.
32002
32003 2009-09-04  Eric Blake  <ebb9@byu.net>
32004
32005         openat: fail with ENOENT on empty name
32006         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32007         buffer.
32008
32009         link-follow: fix logic bug in prior patch
32010         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32011         reversed sense of yes and no in prior patch.  Avoid confusing
32012         compilation failure with desired semantics.
32013
32014         link-follow: accomodate mingw and cross-compilation
32015         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32016         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32017         cross-compilation results to -1, to make linkat easier to
32018         implement when cross-compiling.  Trivially support mingw.
32019         * modules/link-follow (configure.ac): Call new name.
32020         * NEWS: Mention this.
32021
32022 2009-09-03  Eric Blake  <ebb9@byu.net>
32023
32024         faccessat: compile replacement
32025         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32026         needed.
32027
32028         fts: fix compilation error
32029         * lib/fts.c (includes): Re-add "openat.h", for
32030         openat_needs_fchdir.
32031
32032         faccessat: new module
32033         * modules/faccessat: New file.
32034         * lib/faccessat.c: Likewise.
32035         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32037         * modules/unistd (Makefile.am): Use it.
32038         * lib/unistd.in.h (faccessat): Declare it.
32039         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32040         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32041         * MODULES.html.sh (File system functions): Mention it.
32042         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32043         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32044
32045         euidaccess: prefer POSIX over non-standard implementation
32046         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32047         * lib/euidaccess.c (euidaccess): Use it if available.
32048
32049         openat: make template easier to use
32050         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32051         AT_FUNC_F2 to be undefined.
32052         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32053         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32054         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32055         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32056         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32057         Likewise.
32058         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32059         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32060         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32061         Likewise.
32062
32063         openat: declare in POSIX headers
32064         * NEWS: Mention this.
32065         * modules/openat (configure.ac): Declare witnesses.
32066         (Depends-on): Add fcntl-h, sys_stat, unistd.
32067         (Include): Mention correct headers.
32068         * modules/fcntl-h (Depends-on): Add link-warning.
32069         (Files): Add openat.m4.
32070         (Makefile.am): Substitute witnesses.
32071         * modules/sys_stat (Files, Makefile.am): Likewise.
32072         * modules/unistd (Files, Makefile.am): Likewise.
32073         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32074         (gl_OPENAT_DEFAULTS): New macro.
32075         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32077         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32078         (SYS_STAT_H): Remove unused variable.
32079         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32080         * lib/fcntl--.h (includes): Remove unneeded header.
32081         * lib/openat-safer.c (includes): Likewise.
32082         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32083         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32084         appropriate headers.
32085         (__OPENAT_PREFIX): Delete.
32086         * lib/fcntl.in.h (openat): Provide declaration.
32087         (AT_FDCWD): Fix Solaris bug.
32088         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32089         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32090         * lib/fchmodat.c (includes):  Adjust to find declaration.
32091         * lib/fchownat.c (includes): Likewise.
32092         * lib/mkdirat.c (includes): Likewise.
32093         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32094         still visible.
32095
32096 2009-09-02  Eric Blake  <ebb9@byu.net>
32097
32098         errno: use consistently
32099         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32100         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32101         * lib/canonicalize.c (ELOOP): Likewise.
32102         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32103         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32104         * lib/lchown.c (EOPNOTSUPP): Likewise.
32105         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32106         * lib/savewd.c (ESTALE): Likewise.
32107         * lib/settime.c (ENOSYS): Likewise.
32108         * lib/utimens.c (ENOSYS): Likewise.
32109         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32110         * lib/chdir-safer.c (ELOOP): Likewise.
32111         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32112         * modules/c-stack (Depends-on): Add errno.
32113         * modules/canonicalize (Depends-on): Likewise.
32114         * modules/chdir-safer (Depends-on): Likewise.
32115         * modules/fdopendir (Depends-on): Likewise.
32116         * modules/inet_ntop (Depends-on): Likewise.
32117         * modules/inet_pton (Depends-on): Likewise.
32118         * modules/lchown (Depends-on): Likewise.
32119         * modules/openat (Depends-on): Likewise.
32120         * modules/savewd (Depends-on): Likewise.
32121         * modules/settime (Depends-on): Likewise.
32122         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32123
32124         fts: avoid leaking fds
32125         * modules/fts (Depends-on): Add cloexec.
32126         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32127         flag.
32128
32129         fts: make directory fds more robust
32130         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32131         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32132
32133         backupfile, chdir-long, fts, savedir: make safer
32134         * lib/backupfile.c (includes): Use "dirent--.h", since
32135         numbered_backup can write to stderr during readdir.
32136         * lib/savedir.c (includes): Likewise.
32137         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32138         emulation can write to stderr on failure.
32139         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32140         * lib/getcwd.c: Document why opendir_safer is unused.
32141         * lib/glob.c: Likewise.
32142         * lib/scandir.c: Likewise.
32143         * lib/openat-proc.c: Likewise, for open_safer.
32144         * modules/backupfile (Depends-on): Add dirent-safer.
32145         * modules/savedir (Depends-on): Likewise.
32146         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32147         * modules/chdir-long (Depends-on): Add openat-safer.
32148
32149         openat-safer: new module
32150         * modules/openat-safer: New file.
32151         * lib/openat-safer.c: Likewise.
32152         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32153         * lib/fcntl-safer.h (openat_safer): Declare.
32154         * lib/fcntl--.h (openat): Override.
32155         * MODULES.html.sh (File descriptor based I/O): Mention it.
32156         * lib/openat.h: Add double-inclusion guards.
32157         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32158         "fcntl--.h", so we can implement openat.
32159         * modules/openat-safer-tests: New test.
32160         * tests/test-openat-safer.c: New file.
32161
32162         dirent-safer: new module
32163         * modules/dirent-safer: New file.
32164         * lib/dirent--.h: Likewise.
32165         * lib/dirent-safer.h: Likewise.
32166         * lib/opendir-safer.c: Likewise.
32167         * m4/dirent-safer.m4: Likewise.
32168         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32169         * modules/dirent-safer-tests: New test.
32170         * tests/test-dirent-safer.c: New file.
32171         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32172
32173         fdopendir: optimize on mingw
32174         * lib/unistd.in.h (_gl_directory_name): New prototype.
32175         * lib/fchdir.c (_gl_directory_name): Implement it.
32176         (fchdir): Use it to simplify implementation.
32177         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32178         fchdir, when available, to avoid calling [f]chdir().
32179
32180         fdopendir: split into its own module
32181         * lib/openat.c (fdopendir): Move...
32182         * lib/fdopendir.c: ...into new file.
32183         * modules/fdopendir: New module.
32184         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32185         * modules/openat (Depends-on): Add fdopendir.
32186         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32187         fdopendir here.
32188         * modules/savedir (Depends-on): Only need fdopendir, not full
32189         openat.
32190         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32191         * lib/openat.h (fdopendir): Drop prototype.
32192         * lib/dirent.in.h (fdopendir): Provide prototype.
32193         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32194         * modules/dirent (Makefile.am): Substitute them.
32195         * MODULES.html.sh (File system functions): Mention it.
32196         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32197         * modules/fdopendir-tests: New file.
32198         * tests/test-fdopendir.c: Likewise.
32199
32200         fchdir: use more consistent macro convention
32201         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32202         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32203         REPLACE_FCHDIR, rather than relying on config.h macros.
32204         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32205         inside a single make-time REPLACE_FCHDIR block, rather than using
32206         the config.h FCHDIR_REPLACEMENT.
32207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32208         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32209         Manage fstat replacement.
32210         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32211         REPLACE_FCHDIR.
32212         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32213         (Makefile.am): Substitute REPLACE_FCHDIR.
32214         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32215         FCHDIR_REPLACEMENT.
32216         * lib/dup-safer.c (dup_safer): Likewise.
32217         * lib/dup2.c (rpl_dup2): Likewise.
32218         * lib/dup3.c (rpl_dup3): Likewise.
32219         * lib/open.c (rpl_open): Likewise.
32220
32221         fchdir: simplify error handling, and support dup3
32222         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32223         stdbool, malloc-posix, realloc-posix.
32224         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32225         (ensure_dirs_slot): Return false on allocation failure.
32226         (rpl_dup2): Delete.
32227         (_gl_register_dup): New function.
32228         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32229         (_gl_register_fd): Close fd on allocation failure.
32230         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32231         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32232         prototype.
32233         (rpl_dup2_fchdir): Delete prototype.
32234         * lib/open.c (open): Update caller.
32235         * lib/dup2.c (dup2): Track fchdir metadata.
32236         * lib/dup3.c (dup3): Likewise.
32237         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32238         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32239
32240 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32241
32242         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32243         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32244         don't pass arguments to AC_OUTPUT.
32245
32246 2009-09-02  Bruno Haible  <bruno@clisp.org>
32247
32248         * modules/mkdtemp (License): Relicense under LGPLv2+.
32249         Reported by Paolo Bonzini.
32250
32251 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32252
32253         Replace uses of obsolete autoconf macros in Jim's modules.
32254         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32255         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32256         can evoke a warning from autoconf when run with -Wobsolete
32257         enabled.  They were declared obsolete for good reasons (see
32258         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32259         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32260         should not continue using the deprecated macros.
32261         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32262         obsolete Autoconf macros with modern counterparts.
32263         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32264         * m4/dos.m4 (gl_AC_DOS): Likewise.
32265         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32266         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32267         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32268         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32269         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32270         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32271         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32272         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32273         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32274         Likewise.
32275         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32276         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32277         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32278         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32279         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32280         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32281
32282 2009-09-01  Eric Blake  <ebb9@byu.net>
32283
32284         fchdir: fix off-by-one bug in previous patch
32285         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32286         (_gl_unregister_fd): Delete useless if.
32287
32288 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32289
32290         maint.mk: sort the list of syntax-check rules
32291         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32292         easier to get a sense of progress when the rules are run sequentially
32293         and take a long time.
32294
32295 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32296
32297         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32298         * modules/netinet_in: Likewise.
32299         * modules/sys_file: Likewise.
32300         * modules/sys_ioctl: Likewise.
32301         * modules/sys_select: Likewise.
32302         * modules/sys_socket: Likewise.
32303         * modules/sys_stat: Likewise.
32304         * modules/sys_time: Likewise.
32305         * modules/sys_times: Likewise.
32306         * modules/sys_utsname: Likewise.
32307         * modules/sys_wait: Likewise.
32308
32309 2009-09-01  Jim Meyering  <meyering@redhat.com>
32310
32311         fts: help ensure that return values are not ignored
32312         * lib/fts_.h (__GNUC_PREREQ): Define.
32313         (__attribute_warn_unused_result__): Define.
32314         (fts_children, fts_close, fts_open, fts_read): Declare with
32315         __attribute_warn_unused_result__.
32316
32317         fts: fts_close now fails also when closing a dir file descriptor fails
32318         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32319         and propagate to caller, along with errno.
32320
32321         announce-gen: correct formatting in --help output
32322         * build-aux/announce-gen (usage): Move the one-line description in
32323         --help output "up", to where it belongs, just after Usage:.
32324
32325 2009-08-31  Eric Blake  <ebb9@byu.net>
32326
32327         fchdir: port to mingw
32328         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32329         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32330         opened, then use a substitute.
32331         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32332         replacement.
32333         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32334         (_gl_register_fd): No need to check stat if open already filters
32335         all directories.
32336         (fchdir): Fix error condition to match POSIX.
32337         * modules/fchdir (Depends-on): Add sys_stat.
32338         * doc/posix-functions/open.texi (open): Document the limitation.
32339         * modules/fchdir-tests: New file.
32340         * tests/test-fchdir.c: Likewise.
32341
32342         canonicalize: allow cross-testing from cygwin to mingw
32343         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32344         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32345         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32346         Likewise.
32347         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32348         target does not support symlinks.
32349         * tests/test-canonicalize-lgpl.sh: Likewise.
32350
32351         chown: avoid compilation warning on mingw
32352         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32353         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32354         mingw.
32355         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32356         * modules/chown (Depends-on): Add errno.
32357
32358 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32359
32360         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32361         command.
32362
32363 2009-08-31  Jim Meyering  <meyering@redhat.com>
32364
32365         canonicalize: remove useless initialization
32366         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32367         initialization of local, "end".
32368
32369 2009-08-30  Bruno Haible  <bruno@clisp.org>
32370
32371         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32372         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32373         ENOSYS.
32374
32375 2009-08-30  Bruno Haible  <bruno@clisp.org>
32376
32377         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32378         /usr/xpg4/bin/tr when it exists.
32379         * tests/test-pipe-filter-gi1.sh: Likewise.
32380
32381 2009-08-30  Bruno Haible  <bruno@clisp.org>
32382
32383         Work around deficient /usr/bin/id program on Solaris.
32384         * tests/test-file-has-acl.sh (ID): New variable.
32385         * tests/test-set-mode-acl.sh (ID): Likewise.
32386         * tests/test-copy-acl.sh (ID): Likewise.
32387         * tests/test-copy-file.sh (ID): Likewise.
32388
32389 2009-08-30  Bruno Haible  <bruno@clisp.org>
32390
32391         New module 'xstriconveh'.
32392         * lib/xstriconveh.h: New file.
32393         * lib/xstriconveh.c: New file.
32394         * modules/xstriconveh: New file.
32395
32396 2009-08-30  Bruno Haible  <bruno@clisp.org>
32397
32398         Make it easier to use mem_cd_iconveh.
32399         * lib/striconveh.h (iconveh_t): New type.
32400         (iconveh_open, iconveh_close): New declarations.
32401         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32402         with a single 'const iconveh_t *' argument.
32403         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32404         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32405         with a single 'const iconveh_t *' argument.
32406         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32407         * tests/test-striconveh.c (main): Update.
32408         * NEWS: Mention the change.
32409
32410 2009-08-30  Bruno Haible  <bruno@clisp.org>
32411
32412         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32413         problem.
32414
32415 2009-08-30  Bruno Haible  <bruno@clisp.org>
32416
32417         Work around iconv_open problem on Solaris.
32418         * lib/iconv_open-solaris.gperf: New file.
32419         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32420         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32421         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32422         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32423         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32424         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32425
32426 2009-08-29  Jim Meyering  <meyering@redhat.com>
32427
32428         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32429         * top/maint.mk (cvs-check): Remove target; it was just an alias
32430         to the better-named vc-diff-check.
32431         (maintainer-distcheck): Remove rule.  It was used only from
32432         the (alpha/beta/major) target, and all of its commands but one
32433         were coreutils-specific.
32434         (vc-dist): Remove rule.
32435         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32436         Run vc-diff-check, not vc-dist.
32437         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32438
32439 2009-08-27  Bruno Haible  <bruno@clisp.org>
32440
32441         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32442         of 0.
32443
32444 2009-08-27  Bruno Haible  <bruno@clisp.org>
32445
32446         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32447         compilers.
32448         * doc/func.texi: Document the SunPRO C bug.
32449
32450 2009-08-27  Bruno Haible  <bruno@clisp.org>
32451
32452         Fix link error on Solaris.
32453         * tests/test-parse-duration.c (xstrdup): Remove function.
32454
32455 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32456
32457         ignore-value: handle pointer types, too
32458         * lib/ignore-value.h (__attribute__): Remove definition.
32459         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32460         of a more concise and more-often effective "(void) i" statement.
32461         (ignore_ptr): New function to suppress warnings from functions that
32462         return pointers, and to make it explicit that one function doesn't
32463         handle all cases.
32464
32465 2009-08-25  Bruno Haible  <bruno@clisp.org>
32466
32467         dup2: work around a Linux bug.
32468         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32469         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32470         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32471         Reported by Simon Josefsson.
32472
32473 2009-08-25  Jim Meyering  <meyering@redhat.com>
32474
32475         libguestfs uses gnulib
32476         * users.txt: Add libguestfs.
32477
32478 2009-08-24  Eric Blake  <ebb9@byu.net>
32479
32480         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32481         * lib/pipe2.c (includes): Add binary-io.h.
32482         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32483
32484 2009-08-24  Bruno Haible  <bruno@clisp.org>
32485
32486         Tolerate declared but missing accept4 syscall.
32487         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32488         available.
32489         * lib/sys_socket.in.h (accept4): If the function is already present,
32490         override it.
32491         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32492         * modules/accept4 (Makefile.am): Compile accept4.c always.
32493         Reported by Paolo Bonzini and Eric Blake.
32494
32495 2009-08-23  Bruno Haible  <bruno@clisp.org>
32496
32497         New module 'accept4'.
32498         * lib/sys_socket.in.h (accept4): New declaration.
32499         * lib/accept4.c: New file.
32500         * m4/accept4.m4: New file.
32501         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32502         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32503         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32504         HAVE_ACCEPT4.
32505         * modules/accept4: New file.
32506         * doc/glibc-functions/accept4.texi: Mention the new module.
32507
32508 2009-08-24  Jim Meyering  <meyering@redhat.com>
32509
32510         progname: also set global program_invocation_name, when possible
32511         Before this change, a libtool-enabled program that calls glibc's
32512         error function would report the program name as
32513         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32514         * modules/progname (configure.ac): Check for a declaration of
32515         program_invocation_name.
32516         * lib/progname.c:  Include <errno.h>.
32517         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32518         Set program_invocation_name.
32519
32520 2009-08-23  Bruno Haible  <bruno@clisp.org>
32521
32522         * lib/dup3.c: Include <string.h>.
32523
32524 2009-08-23  Bruno Haible  <bruno@clisp.org>
32525
32526         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32527         * lib/pipe2.c (pipe2): Likewise.
32528         Suggested by Eric Blake.
32529
32530 2009-08-23  Bruno Haible  <bruno@clisp.org>
32531
32532         Tolerate declared but missing dup3 syscall.
32533         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32534         * lib/unistd.in.h (dup3): If the function is already present,
32535         override it.
32536         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32537         * modules/dup3 (Makefile.am): Compile dup3.c always.
32538         Reported by Paolo Bonzini.
32539
32540 2009-08-23  Bruno Haible  <bruno@clisp.org>
32541
32542         Tolerate declared but missing pipe2 syscall.
32543         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32544         available.
32545         * lib/unistd.in.h (pipe2): If the function is already present,
32546         override it.
32547         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32548         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32549         Reported by Paolo Bonzini.
32550
32551 2009-08-23  Bruno Haible  <bruno@clisp.org>
32552
32553         * lib/pipe2.c (pipe2): Move #ifs inside function.
32554
32555 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32556
32557         quotearg: document limitations of quote_these_too
32558         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32559         those limitations are created.
32560         * lib/quotearg.h (set_char_quoting): Document that digits and
32561         letters that are special after backslash are not permitted.
32562         (quotearg_char): Cross-reference set_char_quoting documentation.
32563
32564 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32565
32566         quotearg: implement custom_quoting_style
32567         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32568         right_quote fields.
32569         (set_custom_quoting): New public function.
32570         (quotearg_buffer_restyled): Add left_quote and right_quote
32571         arguments, handle them very much like locale quoting, and update
32572         all uses.
32573         (quotearg_n_custom): New public function.
32574         (quotearg_n_custom_mem): New public function.
32575         (quotearg_custom): New public function.
32576         (quotearg_custom_mem): New public function.
32577         * lib/quotearg.h: Prototype and document new public functions.
32578         (enum quoting_style): For escape_quoting_style and
32579         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32580         ignored even though they're otherwise like c_quoting_style.
32581         Add custom_quoting_style member and document with comparison to
32582         clocale_quoting_style.
32583         * tests/test-quotearg.c (custom_quotes): New array.
32584         (custom_results): New array.
32585         (main): Extend to test custom quoting.
32586
32587 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32588
32589         quotearg: fix right quote escaping when it's in quote_these_too
32590         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32591         quote, be sure to prepend only one backslash.
32592         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32593         (main): Test it.
32594
32595 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32596
32597         quotearg-tests: test escaping of embedded locale quotes
32598         * tests/test-quotearg.c (struct result_strings): Add member for
32599         new input.
32600         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32601         (inputs): Add new input.
32602         (results_g): Add expected results.
32603         (flag_results): Likewise.
32604         (locale_results): Likewise.
32605         (compare_strings): Check those.
32606
32607 2009-08-23  Bruno Haible  <bruno@clisp.org>
32608
32609         Tests for module 'dup3'.
32610         * modules/dup3-tests: New file.
32611         * tests/test-dup3.c: New file.
32612
32613         New module 'dup3'.
32614         * lib/unistd.in.h (dup3): New declaration.
32615         * lib/dup3.c: New file.
32616         * m4/dup3.m4: New file.
32617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32618         HAVE_DUP3.
32619         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32620         * modules/dup3: New file.
32621         * doc/glibc-functions/dup3.texi: Mention the new module.
32622
32623 2009-08-23  Bruno Haible  <bruno@clisp.org>
32624
32625         Tweak the dup2 test.
32626         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32627         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32628         the test file is still empty. Fix argument order of lseek.
32629
32630 2009-08-23  Bruno Haible  <bruno@clisp.org>
32631
32632         Avoid test link errors when the modules getopt-gnu, gettext are used.
32633         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32634         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32635
32636 2009-08-23  Bruno Haible  <bruno@clisp.org>
32637
32638         Fix getdtablesize() on mingw.
32639         * lib/getdtablesize.c (getdtablesize): Implement differently.
32640         * lib/unistd.in.h (getdtablesize): Improve comment.
32641
32642 2009-08-23  Bruno Haible  <bruno@clisp.org>
32643
32644         New module 'mkostemp'.
32645         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32646         * lib/stdlib.in.h (mksotemp): New declaration.
32647         * lib/mkostemp.c: New file, from glibc with modifications.
32648         * lib/tempname.h (GT_FILE): Remove outdated comment.
32649         (gen_tempname): Add flags argument.
32650         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32651         (__GT_FILE): Map to 1.
32652         (small_open, large_open): Remove macros.
32653         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32654         * lib/mkstemp.c (mkstemp): Update.
32655         * lib/mkdtemp.c (mkdtemp): Likewise.
32656         * m4/mkostemp.m4: New file.
32657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32658         HAVE_MKOSTEMP.
32659         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32660         HAVE_MKOSTEMP.
32661         * modules/mkostemp: New file, based on modules/mkstemp.
32662         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32663         * NEWS: Mention the change.
32664
32665 2009-08-23  Bruno Haible  <bruno@clisp.org>
32666
32667         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32668         Reported by Eric Blake.
32669
32670 2009-08-23  Bruno Haible  <bruno@clisp.org>
32671
32672         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32673         Reported by Eric Blake.
32674
32675 2009-08-23  Bruno Haible  <bruno@clisp.org>
32676
32677         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32678         * modules/pipe2 (Depends-on): Likewise.
32679
32680 2009-08-23  Eric Blake  <ebb9@byu.net>
32681
32682         fcntl-h: add O_TTY_INIT support
32683         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32684         * tests/test-fcntl-h.c (o): Test it.
32685         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32686
32687         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32688         * modules/fcntl: Move <fcntl.h> header replacement...
32689         * modules/fcntl-h: ...to new name, so as not to collide with
32690         like-named function.
32691         * tests/test-fcntl.c: Rename...
32692         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32693         * modules/fcntl-tests: Rename...
32694         * modules/fcntl-h-tests: ...to this.  Update test file name.
32695         * modules/chdir-long (Depends-on): Update clients.
32696         * modules/chdir-safer (Depends-on): Likewise.
32697         * modules/fcntl-safer (Depends-on): Likewise.
32698         * modules/fts (Depends-on): Likewise.
32699         * modules/mkancesdirs (Depends-on): Likewise.
32700         * modules/mkdir-p (Depends-on): Likewise.
32701         * modules/open (Depends-on): Likewise.
32702         * modules/savewd (Depends-on): Likewise.
32703         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32704         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32705
32706 2009-08-22  Bruno Haible  <bruno@clisp.org>
32707
32708         * modules/binary-io (License): Relicense under LGPL.
32709         * modules/pipe2 (License): Likewise.
32710
32711 2009-08-22  Bruno Haible  <bruno@clisp.org>
32712
32713         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32714         return value.
32715         * lib/pipe-filter-gi.c (filter_init): Likewise.
32716         Reported by Eric Blake.
32717
32718 2009-08-22  Bruno Haible  <bruno@clisp.org>
32719
32720         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32721         * modules/pipe (Depends-on): Add pipe2.
32722
32723 2009-08-22  Bruno Haible  <bruno@clisp.org>
32724
32725         Tests for module 'pipe2'.
32726         * modules/pipe2-tests: New file.
32727         * tests/test-pipe2.c: New file.
32728
32729         New module 'pipe2'.
32730         * lib/unistd.in.h (pipe2): New declaration.
32731         * lib/pipe2.c: New file.
32732         * m4/pipe2.m4: New file.
32733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32734         HAVE_PIPE2.
32735         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32736         * modules/pipe2: New file.
32737         * doc/glibc-functions/pipe2.texi: Mention the new module.
32738
32739 2009-08-22  Bruno Haible  <bruno@clisp.org>
32740
32741         Reference some new glibc functions.
32742         * doc/glibc-functions/accept4.texi: New file.
32743         * doc/glibc-functions/dup3.texi: New file.
32744         * doc/glibc-functions/mkostemp.texi: New file.
32745         * doc/glibc-functions/pipe2.texi: New file.
32746         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32747         (Glibc sys/socket.h): Refer to accept4.
32748         (Glibc unistd.h): Refer to dup3, pipe2.
32749         Reported by Eric Blake.
32750
32751 2009-08-22  Jim Meyering  <meyering@redhat.com>
32752             Bruno Haible  <bruno@clisp.org>
32753
32754         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32755         This makes it so packages using automake-1.11's silent-rules option
32756         can print e.g., a single "GEN    configmake.h" line, rather than
32757         the 30+ statements that perform the job.  If you want to see the
32758         actual commands, you can still run "make V=1".
32759         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32760         so that make output is abbreviated when those variables are defined
32761         appropriately.
32762         * modules/argz: Likewise.
32763         * modules/arpa_inet: Likewise.
32764         * modules/byteswap: Likewise.
32765         * modules/configmake: Likewise.
32766         * modules/dirent: Likewise.
32767         * modules/errno: Likewise.
32768         * modules/fcntl: Likewise.
32769         * modules/float: Likewise.
32770         * modules/fnmatch: Likewise.
32771         * modules/getopt-posix: Likewise.
32772         * modules/glob: Likewise.
32773         * modules/iconv_open: Likewise.
32774         * modules/inttypes: Likewise.
32775         * modules/localcharset: Likewise.
32776         * modules/locale: Likewise.
32777         * modules/math: Likewise.
32778         * modules/netdb: Likewise.
32779         * modules/netinet_in: Likewise.
32780         * modules/poll: Likewise.
32781         * modules/posix_spawnp-tests: Likewise.
32782         * modules/sched: Likewise.
32783         * modules/search: Likewise.
32784         * modules/selinux-h: Likewise.
32785         * modules/signal: Likewise.
32786         * modules/spawn: Likewise.
32787         * modules/stdarg: Likewise.
32788         * modules/stdbool: Likewise.
32789         * modules/stddef: Likewise.
32790         * modules/stdint: Likewise.
32791         * modules/stdio: Likewise.
32792         * modules/stdlib: Likewise.
32793         * modules/string: Likewise.
32794         * modules/strings: Likewise.
32795         * modules/sys_file: Likewise.
32796         * modules/sys_ioctl: Likewise.
32797         * modules/sys_select: Likewise.
32798         * modules/sys_socket: Likewise.
32799         * modules/sys_stat: Likewise.
32800         * modules/sys_time: Likewise.
32801         * modules/sys_times: Likewise.
32802         * modules/sys_utsname: Likewise.
32803         * modules/sys_wait: Likewise.
32804         * modules/sysexits: Likewise.
32805         * modules/time: Likewise.
32806         * modules/unistd: Likewise.
32807         * modules/wchar: Likewise.
32808         * modules/wctype: Likewise.
32809
32810 2009-08-22  Jim Meyering  <meyering@redhat.com>
32811
32812         announce-gen: detect write failure
32813         * build-aux/announce-gen: Add Coda at end.
32814         Remove equivalent-but-more-verbose block at top.
32815
32816 2009-08-19  Akim Demaille  <demaille@gostai.com>
32817
32818         bootstrap: --help to stdout.
32819         * bootstrap (usage): Don't send --help to stderr.
32820         Use a here doc instead of a long string.
32821
32822 2009-08-21  Eric Blake  <ebb9@byu.net>
32823
32824         test-popen-safer: split from test-popen
32825         * tests/test-popen.c (main): Move...
32826         * tests/test-popen.h: ...into new file.
32827         * tests/test-popen-safer2.c: New file.
32828         * modules/popen-tests (Files): Add test-popen.h.
32829         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32830         Suggested by Bruno Haible.
32831
32832         test-fcntl-safer: split from test-open
32833         * tests/test-open.c (main): Move...
32834         * tests/test-open.h: ...into new file.
32835         * tests/test-fcntl-safer.c: New file.
32836         * modules/open-tests (Files): Add test-open.h.
32837         * modules/fcntl-safer-tests: New file.
32838         Suggested by Bruno Haible.
32839
32840         test-fopen-safer: split from test-fopen
32841         * tests/test-fopen.c (main): Move...
32842         * tests/test-fopen.h: ...into new file.
32843         * tests/test-fopen-safer.c: New file.
32844         * modules/fopen-tests (Files): Add test-fopen.h.
32845         * modules/fopen-safer-tests: New file.
32846         Suggested by Bruno Haible.
32847
32848 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32849
32850         popen-safer: test O_CLOEXEC at run-time.
32851         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32852
32853 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32854
32855         fcntl: move more flags to the header
32856         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32857         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32858         * lib/fcntl.in.h: Do both things here.
32859
32860 2009-08-21  Jim Meyering  <meyering@redhat.com>
32861
32862         consistently remove $@-t before redirecting to it
32863         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32864         * modules/alloca-opt: Likewise.
32865         * modules/byteswap: Likewise.
32866         * modules/fnmatch: Likewise.
32867         * modules/getopt-posix: Likewise.
32868         * modules/glob: Likewise.
32869         * modules/poll: Likewise.
32870         * modules/posix_spawnp-tests: Likewise.
32871         * modules/sys_socket: Likewise.
32872         * modules/sysexits: Likewise.
32873
32874 2009-08-21  Eric Blake  <ebb9@byu.net>
32875
32876         popen: simplify access to original popen
32877         * lib/popen.c (rpl_popen): No need to worry about popen being a
32878         macro.
32879         Reported by Bruno Haible.
32880
32881 2009-08-20  Eric Blake  <ebb9@byu.net>
32882
32883         build: avoid some compiler warnings
32884         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32885         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32886         type.
32887         (new_exclude_segment, excluded_file_pattern_p)
32888         (excluded_file_name_p): Reduce scope.
32889         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32890         old-style declaration.
32891
32892 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32893
32894         * tests/test-exclude1.sh: Handle Windows EOL.
32895         * tests/test-exclude2.sh: Likewise.
32896         * tests/test-exclude3.sh: Likewise.
32897         * tests/test-exclude4.sh: Likewise.
32898         * tests/test-exclude5.sh: Likewise.
32899         * tests/test-exclude6.sh: Likewise.
32900         * tests/test-exclude7.sh: Likewise.
32901
32902 2009-08-19  Akim Demaille  <demaille@gostai.com>
32903
32904         bootstrap: find sha1sum when named gsha1sum.
32905         * bootstrap (find_tool): New.
32906         ($SHA1SUM): New.
32907         Use it.
32908
32909 2009-08-20  Jim Meyering  <meyering@redhat.com>
32910
32911         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32912         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32913         expression that converts "." in a file name to "\." in the resulting
32914         regexp.  Start with a dummy statement, so that prior shell variable
32915         definitions are expanded portably.  Reported by Simon Josefsson.
32916
32917 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32918
32919         Fix polling for writeability of a screen buffer.
32920         * lib/poll.c: Distinguish input and screen buffers for the
32921         Win32 implementation.
32922         * lib/select.c: Likewise.
32923
32924 2009-08-19  Eric Blake  <ebb9@byu.net>
32925
32926         popen-safer: prevent popen from clobbering std descriptors
32927         * modules/popen-safer: New file.
32928         * lib/popen-safer.c: Likewise.
32929         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32930         * lib/stdio--.h (popen): Provide override.
32931         * lib/stdio-safer.h (popen_safer): Provide declaration.
32932         * tests/test-popen.c (includes): Partially test this.
32933         * modules/popen-safer-tests: New file, for more tests.
32934         * tests/test-popen-safer.c: Likewise.
32935         * MODULES.html.sh (file stream based Input/Output): Mention it.
32936
32937         tests: test some of the *-safer modules
32938         * modules/fopen-safer (Depends-on): Add fopen.
32939         * modules/fcntl-safer (Depends-on): Add fcntl.
32940         * modules/stdlib-safer (Depends-on): Add stdlib.
32941         (configure.ac): Set indicator.
32942         * modules/unistd-safer (configure.ac): Likewise.
32943         * modules/tmpfile-safer (configure.ac): Likewise.
32944         (Depends-on): Add tmpfile.
32945         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32946         active.
32947         * tests/test-fopen.c (includes): Test safer versions when they are
32948         in use.
32949         * tests/test-open.c (includes): Likewise.
32950
32951         popen: fix cygwin 1.5 bug when stdin closed
32952         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32953         * modules/popen: New file.
32954         * modules/popen-tests: Likewise.
32955         * tests/test-popen.c: Likewise.
32956         * m4/popen.m4: Likewise.
32957         * lib/popen.c: Likewise.
32958         * lib/stdio.in.h (popen): New declaration.
32959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32960         * modules/stdio (Makefile.am): Likewise.
32961         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32962
32963 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32964
32965         maint.mk: give full control over update-copyright exclusions
32966         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32967         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32968         (update-copyright): Don't force inclusion of top-level
32969         ChangeLog.  Don't force exclusion of all COPYING files, but make
32970         them the default exclusion instead.
32971
32972 2009-08-16  Bruno Haible  <bruno@clisp.org>
32973
32974         Fix test failures on Solaris 10.
32975         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32976         tests when Solaris iconv() is used.
32977         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32978         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32979         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32980         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32981         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32982
32983 2009-08-16  Bruno Haible  <bruno@clisp.org>
32984
32985         Fix test failures on Solaris 10.
32986         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32987         'tr' program and pass it as first argument.
32988         * tests/test-pipe-filter-gi1.sh: Likewise.
32989         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32990         program as first argument.
32991         * tests/test-pipe-filter-gi1.c (main): Likewise.
32992
32993 2009-08-16  Eric Blake  <ebb9@byu.net>
32994
32995         fpurge: fix previous commits
32996         * modules/fpurge (Makefile.am): Make replacement conditional,
32997         partially reverting 2007-04-29 change; missed in previous
32998         attempt.
32999         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33000         is missing.
33001
33002 2009-08-16  Bruno Haible  <bruno@clisp.org>
33003
33004         Clarify fpurge's effect on the file position.
33005         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33006         * tests/test-fpurge.c (main): Make a second pass for checking the file
33007         position.
33008
33009 2009-08-16  Bruno Haible  <bruno@clisp.org>
33010
33011         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33012         declaration of fpurge is missing.
33013         * tests/test-fpurge.c (main): Check that the file has not more contents
33014         than expected. Close the file before removing it.
33015
33016 2009-08-15  Eric Blake  <ebb9@byu.net>
33017
33018         fpurge: don't wrap working cygwin implementation
33019         * lib/fpurge.c (fpurge): Fix comment typo.
33020         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33021         1.7 to avoid replacement.
33022         * tests/test-fpurge.c (main): Enhance test.
33023
33024 2009-08-15  Eric Blake  <ebb9@byu.net>
33025         and Jim Meyering  <meyering@redhat.com>
33026
33027         test-update-copyright: skip if perl is insufficient
33028         * tests/test-update-copyright.sh: Failure to run maintainer tool
33029         should not cause testsuite failure on cygwin 1.5.
33030
33031 2009-08-14  Eric Blake  <ebb9@byu.net>
33032
33033         doc: mention more functions added in cygwin 1.7.0
33034         * doc/posix-headers/limits.texi (limits.h): Update for recent
33035         cygwin additions.
33036         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33037         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33038         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33039         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33040         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33041
33042 2009-08-14  Eric Blake  <ebb9@byu.net>
33043
33044         maint.mk: simplify update-copyright rule
33045         * top/maint.mk (update-copyright-local): Delete, and document how
33046         to do it in cfg.mk instead.
33047         (update-copyright-exclude-regexp): Delete, and document how to do
33048         it in .x-update-copyright instead.
33049         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33050         exclude ChangeLog.
33051
33052 2009-08-14  Bruno Haible  <bruno@clisp.org>
33053
33054         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33055
33056 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33057
33058         maint.mk: support update-copyright-env
33059         * top/maint.mk (update-copyright-env): Define place-holder.
33060         (update-copyright): Expand $(update-copyright-env) before
33061         invoking update-copyright.
33062
33063 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33064
33065         update-copyright: implement forced reformatting
33066         * build-aux/update-copyright: Implement and document
33067         UPDATE_COPYRIGHT_FORCE.
33068         * tests/test-update-copyright.sh: Test it.
33069
33070 2009-08-14  Eric Blake  <ebb9@byu.net>
33071         and Bruno Haible  <bruno@clisp.org>
33072
33073         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33074         * tests/test-locale.c: Revert previous patch related to NULL.
33075         * tests/test-stdio.c: Likewise.
33076         * tests/test-stdlib.c: Likewise.
33077         * tests/test-string.c: Likewise.
33078         * tests/test-unistd.c: Likewise.
33079         * modules/time-tests (Depends-on): Add verify.
33080         * modules/wchar-tests (Depends-on): Likewise.
33081         * tests/test-time.c: Test for NULL compliance.
33082         * tests/test-wchar.c: Likewise.
33083         * modules/locale (Depends-on): Add stddef.
33084         * modules/stdio (Depends-on): Likewise.
33085         * modules/stdlib (Depends-on): Likewise.
33086         * modules/string (Depends-on): Likewise.
33087         * modules/time (Depends-on): Likewise.
33088         * modules/unistd (Depends-on): Likewise.
33089         * modules/wchar (Depends-on): Likewise.
33090         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33091         * lib/stdlib.in.h (includes): Likewise.
33092         * lib/string.in.h (includes): Likewise.
33093         * lib/time.in.h (includes): Likewise.
33094         * lib/unistd.in.h (includes): Likewise.
33095         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33096         replaced.
33097         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33098         * m4/stddef_h.m4: New file.
33099         * modules/stddef: Likewise.
33100         * lib/stddef.in.h: Likewise.
33101         * modules/stddef-tests: Likewise.
33102         * tests/test-stddef.c: Likewise.
33103         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33104         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33105         * doc/posix-headers/locale.texi (locale.h): Likewise.
33106         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33107         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33108         * doc/posix-headers/string.texi (string.h): Likewise.
33109         * doc/posix-headers/time.texi (time.h): Likewise.
33110         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33111         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33112
33113 2009-08-14  Eric Blake  <ebb9@byu.net>
33114
33115         doc: improve git diff of texinfo files
33116         * .gitattributes: Add rule for *.texi files, with hint on how to
33117         use it.
33118         Copied from m4, and based on a report by Bruno Haible.
33119
33120 2009-08-14  Bruno Haible  <bruno@clisp.org>
33121
33122         Disable multithread support by default on Cygwin 1.5.x for real.
33123         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33124
33125 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33126
33127         update-copyright: much ado about intervals
33128         * build-aux/update-copyright: Implement and document
33129         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33130         of copyright year intervals.
33131         Also, document UPDATE_COPYRIGHT_YEAR.
33132         * tests/test-update-copyright.sh: Test it.
33133
33134         update-copyright: convert 2-digit to 4-digit years
33135         * build-aux/update-copyright: Implement and document.
33136         * tests/test-update-copyright.sh: Update.
33137
33138 2009-08-14  Jim Meyering  <meyering@redhat.com>
33139
33140         test-exclude: avoid coreutils "make check" failure
33141         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33142         just as in test-argmatch.c.
33143
33144 2009-08-13  Eric Blake  <ebb9@byu.net>
33145
33146         test-dup2: fix bad assumption
33147         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33148         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33149
33150         test-version-etc: fix CRLF portability issue
33151         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33152         recognize \r.
33153         * tests/test-argp-version-etc-1.sh: Likewise.
33154
33155         getopt: update client modules
33156         * modules/argp (Depends-on): Use getopt-gnu.
33157         * modules/git-merge-changelog (Depends-on): Likewise.
33158         * modules/long-options (Depends-on): Likewise.
33159         * modules/xstrtol (Depends-on): Likewise.
33160
33161 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33162
33163         * tests/test-version-etc.sh: Don't fail on different
33164         project/version.  Don't fail on CRLF differences.  Rewrite to use
33165         multiple -e instead of multiple sed forks, suggested by Eric Blake
33166         <ebb9@byu.net>.
33167         * tests/test-argp-version-etc-1.sh: Likewise.
33168
33169 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33170
33171         * tests/test-version-etc.sh: Don't fail on different
33172         project/version.
33173
33174 2009-08-12  Bruno Haible  <bruno@clisp.org>
33175
33176         Tests for modules 'getopt-posix', 'getopt-gnu'.
33177         * modules/getopt-posix-tests: New file.
33178         * tests/test-getopt.c: New file.
33179         * tests/test-getopt.h: New file.
33180         * tests/test-getopt_long.h: New file.
33181
33182         New modules 'getopt-posix', 'getopt-gnu'.
33183         * modules/getopt-gnu: New file, renamed from modules/getopt.
33184         * modules/getopt-posix: New file.
33185         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33186         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33187         (gl_GETOPT): Remove macro.
33188         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33189         Disable the test against BSD systems that declare optreset. Test
33190         against mingw bug. Test against lack of support of optional arguments
33191         on many platforms.
33192         * doc/glibc-headers/getopt.texi: Update module name and list of
33193         relevant platforms.
33194         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33195         'getopt-gnu' and more portability problems.
33196         * NEWS: Mention the changes.
33197
33198 2009-08-12  Bruno Haible  <bruno@clisp.org>
33199
33200         Ensure that optarg etc. get declared by <unistd.h>.
33201         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33202         AC_USE_SYSTEM_EXTENSIONS.
33203         * modules/getopt (Depends-on): Add 'extensions'.
33204
33205 2009-08-12  Bruno Haible  <bruno@clisp.org>
33206
33207         Avoid test link errors.
33208         * modules/pipe-filter-ii-tests (Makefile.am): Define
33209         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33210         * modules/pipe-filter-gi-tests (Makefile.am): Define
33211         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33213
33214 2009-08-12  Bruno Haible  <bruno@clisp.org>
33215
33216         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33217         gl_GETOPT_SUBSTITUTE before.
33218         (gl_GETOPT): Use it.
33219         * m4/argp.m4 (gl_ARGP): Update.
33220         Reported by Sergey Poznyakoff.
33221
33222         * m4/getopt.m4: Reorder macros.
33223         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33224         (gl_GETOPT_SUBSTITUTE): Remove macro.
33225
33226 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33227
33228         Minor improvement in gitlog-to-changelog
33229
33230         * build-aux/gitlog-to-changelog: New option `--format' makes
33231         output format string configurable.
33232
33233 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33234
33235         Optimize exclude: use hash tables for non-wildcard patterns.
33236
33237         * lib/exclude.c: Include hash.h and mbuiter.h
33238         (struct exclude_pattern, exclude_segment): New data types.
33239         (struct exclude): Rewrite.
33240         (fnmatch_pattern_has_wildcards): New function.
33241         (new_exclude_segment, free_exclude_segment): New functions.
33242         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33243         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33244         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33245         * modules/exclude: Depend on hash and mbuiter.
33246
33247         * modules/exclude-tests: New file.
33248         * tests/test-exclude.c: New file.
33249         * tests/test-exclude1.sh: New file.
33250         * tests/test-exclude2.sh: New file.
33251         * tests/test-exclude3.sh: New file.
33252         * tests/test-exclude4.sh: New file.
33253         * tests/test-exclude5.sh: New file.
33254         * tests/test-exclude6.sh: New file.
33255         * tests/test-exclude7.sh: New file.
33256
33257 2009-08-12  Bruno Haible  <bruno@clisp.org>
33258
33259         Ensure that getopt() gets declared by <unistd.h>.
33260         * lib/unistd.in.h: Conditionally include getopt.h.
33261         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33262         Set GNULIB_UNISTD_H_GETOPT.
33263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33264         GNULIB_UNISTD_H_GETOPT.
33265         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33266
33267 2009-08-12  Bruno Haible  <bruno@clisp.org>
33268
33269         Clarify logic.
33270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33271         gl_replace_getopt instead of GETOPT_H.
33272
33273 2009-08-12  Bruno Haible  <bruno@clisp.org>
33274
33275         * m4/getopt.m4: Add comments.
33276
33277 2009-08-12  Bruno Haible  <bruno@clisp.org>
33278
33279         Disable multithread support by default on Cygwin 1.5.x.
33280         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33281         set gl_use_threads=no if not specified otherwise.
33282
33283 2009-08-11  Bruno Haible  <bruno@clisp.org>
33284
33285         Avoid compilation error on NetBSD 5.0.
33286         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33287         * tests/test-stdio.c: Likewise.
33288         * tests/test-stdlib.c: Likewise.
33289         * tests/test-string.c: Likewise.
33290         * tests/test-unistd.c: Likewise.
33291         Reported by Greg Troxel <gdt@ir.bbn.com>
33292         at <https://savannah.gnu.org/support/?106973>.
33293
33294 2009-08-11  Bruno Haible  <bruno@clisp.org>
33295
33296         * modules/dup2-tests (Depends-on): Remove close.
33297
33298         Undo 2009-07-19 commit.
33299         * modules/acl-tests (Depends-on): Remove close.
33300         * modules/binary-io-tests (Depends-on): Likewise.
33301         * modules/closein-tests (Depends-on): Likewise.
33302         * modules/flock-tests (Depends-on): Likewise.
33303         * modules/fsync-tests (Depends-on): Likewise.
33304         * modules/lseek-tests (Depends-on): Likewise.
33305         * modules/pipe-tests (Depends-on): Likewise.
33306         * modules/posix_spawn-tests (Depends-on): Likewise.
33307         * modules/posix_spawnp-tests (Depends-on): Likewise.
33308         * modules/stat-time-tests (Depends-on): Likewise.
33309         * modules/yesno-tests (Depends-on): Likewise.
33310
33311 2009-08-10  Bruno Haible  <bruno@clisp.org>
33312
33313         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33314
33315 2009-08-10  Bruno Haible  <bruno@clisp.org>
33316
33317         Fix a gcc warning.
33318         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33319
33320 2009-08-10  Bruno Haible  <bruno@clisp.org>
33321
33322         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33323         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33324         not only the first time.
33325         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33326         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33327         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33328         is 1, not only the the first time.
33329
33330 2009-08-10  Bruno Haible  <bruno@clisp.org>
33331
33332         Make it possible to use module 'gethostname' without module 'close'.
33333         * lib/unistd.in.h (close): Evoke a link error only if
33334         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33336         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33337         * modules/unistd (Makefile.am): Substitute
33338         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33339         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33340         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33341         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33342         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33343         * modules/sys_ioctl (Makefile.am): Substitute
33344         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33345         * modules/socket (configure.ac): On native Windows, set
33346         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33347         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33348         Reported by Sam Steingold <sds@gnu.org>.
33349
33350 2009-08-10  Bruno Haible  <bruno@clisp.org>
33351
33352         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33353         * modules/ioctl (configure.ac): Likewise.
33354
33355 2009-08-10  Bruno Haible  <bruno@clisp.org>
33356
33357         Avoid collision between gnulib wrapper and libintl wrapper.
33358         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33359         already defined in intl/printf.c.
33360         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33361         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33362
33363 2009-08-09  Bruno Haible  <bruno@clisp.org>
33364
33365         Make <sys/select.h> really self-contained, also on Solaris 10.
33366         * lib/sys_select.in.h: Include <string.h>.
33367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33368         Solaris 10 problem.
33369         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33370         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33371         Reported by Jim Meyering.
33372
33373 2009-08-09  Bruno Haible  <bruno@clisp.org>
33374
33375         Avoid warnings from 'aclocal' that are due to a use of macro name
33376         AM_XGETTEXT_OPTION that is not defined in automake.
33377         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33378         automake.
33379         * modules/error (configure.ac): Likewise.
33380         * modules/propername (configure.ac): Likewise.
33381         * modules/vasprintf (configure.ac): Likewise.
33382         * modules/verror (configure.ac): Likewise.
33383         * modules/xprintf (configure.ac): Likewise.
33384         * modules/xvasprintf (configure.ac): Likewise.
33385
33386 2009-08-08  Bruno Haible  <bruno@clisp.org>
33387
33388         Avoid compilation error in C++ mode.
33389         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33390         Reported by Sam Steingold <sds@gnu.org>.
33391
33392 2009-08-08  Bruno Haible  <bruno@clisp.org>
33393
33394         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33395         for the various Unix platforms.
33396         * doc/posix-headers/limits.texi: Update platforms list regarding
33397         HOST_NAME_MAX.
33398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33399
33400 2009-08-07  Jim Meyering  <meyering@redhat.com>
33401
33402         selinux-at: fix typo in a comment
33403         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33404         Spotted by Paolo Bonzini.
33405
33406         selinux-at: remove redundant m4 code, add documentation
33407         * modules/selinux-at (configure.ac): Remove redundant code.
33408         LIB_SELINUX is already set via the dependent module, selinux-h.
33409         (Include): Add quotes around selinux-at.h.
33410         * lib/selinux-at.h: Add documentation.
33411         Reported by Bruno Haible in
33412         http://marc.info/?l=gnulib-bug&m=124958988300749
33413
33414 2009-08-07  Bruno Haible  <bruno@clisp.org>
33415
33416         Avoid link error on MacOS X 10.3 and 10.4.
33417         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33418         on non-ELF systems.
33419         * lib/argp-pv.c (argp_program_version): Likewise.
33420         Reported by Simon Josefsson.
33421
33422 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33423
33424         * tests/test-version-etc.sh: Use $EXEEXT.
33425
33426 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33427
33428         update-copyright: update documentation to point to maint.mk
33429         * build-aux/update-copyright: Here.
33430
33431 2009-08-06  Jim Meyering  <meyering@redhat.com>
33432
33433         maint.mk: support update-copyright-local
33434         * top/maint.mk (update-copyright-local): Define place-holder.
33435         (update-copyright): Depend on $(update-copyright-local).
33436
33437 2009-08-06  Jim Meyering  <meyering@redhat.com>
33438
33439         selinux-at: new module
33440         Initially written for coreutils, this module will soon be
33441         used by findutils, too.
33442         * MODULES.html.sh [Misc]: Add selinux-at.
33443         * lib/selinux-at.h: New file, from coreutils.
33444         * lib/selinux-at.c: Likewise.
33445         * modules/selinux-at: Likewise.
33446         (License): Change from LGPL to GPL, since it depends
33447         on the GPL'd openat module.
33448
33449         doc: update README
33450         * README: Remove references to cogito.
33451         Remove cvs-repo-updating instructions from 2007.
33452         Don't imply that CVS is better if you have limited disk space.
33453
33454 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33455
33456         update-copyright: support C-style comments
33457         * build-aux/update-copyright: Implement and document.
33458         * tests/test-update-copyright.sh: Test.
33459
33460 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33461
33462         update-copyright: support omitted "(C)"
33463         * build-aux/update-copyright: Implement and document.  Also,
33464         allow variable whitespace before "(C)".
33465         * tests/test-update-copyright.sh: Test.
33466
33467 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33468
33469         update-copyright: don't trip on non-FSF copyright statements
33470         * build-aux/update-copyright: Fix so that the first correctly
33471         formatted FSF copyright statement is recognized no matter what
33472         appears before it.  Update documentation.
33473         * tests/test-update-copyright.sh: Test that.
33474
33475 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33476
33477         update-copyright: clean up code a little
33478         * build-aux/update-copyright: Append "_re" to the name of any
33479         variable holding a regular expression.
33480         Replace "old" and "new" with "stmt" in variable names.
33481         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33482         handled correctly.
33483         Format code more consistently.
33484
33485 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33486
33487         update-copyright-tests: improve portability
33488         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33489         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33490
33491 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33492
33493         update-copyright: support @copyright{} and &copy;
33494         * build-aux/update-copyright: Implement and document.
33495         * tests/test-update-copyright.sh: Test.
33496
33497 2009-08-04  Jim Meyering  <meyering@redhat.com>
33498
33499         update-copyright-tests: correctly test EOL=\r\n handling
33500         * tests/test-update-copyright.sh: Put \r at the end of some lines
33501         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33502
33503         maint.mk: make update-copyright exclusion list more configurable
33504         * top/maint.mk (update-copyright): Default to excluding COPYING,
33505         but allow an override, in case someone does want to update that file.
33506
33507         maint.mk: don't update copyright date in COPYING
33508         * top/maint.mk (update-copyright): Exclude COPYING.
33509
33510         maint.mk: add a copyright-updating rule
33511         * top/maint.mk (update-copyright): New rule.
33512         Derived from coreutils/Makefile.am.
33513
33514         update-copyright: rename some variables
33515         * build-aux/update-copyright: Rename a few variables for clarity.
33516         Tweak syntax.  List Joel E. Denny as coauthor.
33517
33518 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33519
33520         update-copyright: fix bug for 2-digit last year and add tests
33521         * build-aux/update-copyright: Fix bug.
33522         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33523         specified.
33524         * modules/update-copyright-tests: New
33525         * tests/test-update-copyright.sh: New.
33526
33527 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33528
33529         update-copyright: handle leading tabs in line prefix
33530         * build-aux/update-copyright: Count leading tabs as 8 spaces
33531         when computing margin.  This helps with the formatting of
33532         ChangeLogs, for example.
33533         Fix documentation a little.
33534
33535 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33536
33537         update-copyright: support EOL=\r\n
33538         * build-aux/update-copyright: Implement that.
33539
33540 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33541
33542         update-copyright: automatically format copyright statements
33543         * build-aux/update-copyright: Implement that.
33544         Also, be a little more predictable and safer by always failing
33545         when the full copyright format is not perfectly recognized as an
33546         unbroken whole.  Discussed at
33547         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33548         Rewrite documentation.
33549
33550 2009-08-03  Bruno Haible  <bruno@clisp.org>
33551
33552         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33553
33554 2009-08-02  Bruno Haible  <bruno@clisp.org>
33555
33556         Tests for module 'uname'.
33557         * modules/uname-tests: New file.
33558         * tests/test-uname.c: New file.
33559
33560         New module 'uname'.
33561         * lib/uname.c: New file.
33562         * m4/uname.m4: New file.
33563         * modules/uname: New file.
33564         * doc/posix-functions/uname.texi: Mention the new module.
33565
33566 2009-08-02  Bruno Haible  <bruno@clisp.org>
33567
33568         Tests for module 'sys_utsname'.
33569         * modules/sys_utsname-tests: New file.
33570         * tests/test-sys_utsname.c: New file.
33571
33572         New module 'sys_utsname'.
33573         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33574         * m4/sys_utsname_h.m4: New file.
33575         * modules/sys_utsname: New file.
33576         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33577
33578 2009-08-02  Bruno Haible  <bruno@clisp.org>
33579
33580         Implicitly initialize the sockets library.
33581         * lib/gethostname.c: Include sockets.h.
33582         (rpl_gethostname): Invoke gl_sockets_startup.
33583         * lib/socket.c: Include sockets.h.
33584         (rpl_socket): Invoke gl_sockets_startup.
33585         * modules/gethostname (Depends-on): Add sockets.
33586         * modules/socket (Depends-on): Likewise.
33587         * tests/test-poll.c: Don't include sockets.h.
33588         (main): Don't invoke gl_sockets_startup.
33589         * tests/test-select.c: Don't include sockets.h.
33590         (main): Don't invoke gl_sockets_startup.
33591
33592 2009-08-02  Bruno Haible  <bruno@clisp.org>
33593
33594         Allow multiple calls to gl_sockets_startup.
33595         * lib/sockets.c (initialized_sockets_version): New variable.
33596         (gl_sockets_startup): Do nothing if already called for this or a higher
33597         version.
33598         (gl_sockets_cleanup): Reset initialized_sockets_version.
33599
33600 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33601
33602         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33603         different project/version.
33604
33605 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33606             Bruno Haible  <bruno@clisp.org>
33607
33608         Tests for module 'pipe-filter-gi'.
33609         * modules/pipe-filter-gi-tests: New file.
33610         * tests/test-pipe-filter-gi1.sh: New file.
33611         * tests/test-pipe-filter-gi1.c: New file.
33612         * tests/test-pipe-filter-gi2.sh: New file.
33613         * tests/test-pipe-filter-gi2-main.c: New file.
33614         * tests/test-pipe-filter-gi2-child.c: New file.
33615
33616         New module 'pipe-filter-gi'.
33617         * lib/pipe-filter-gi.c: New file.
33618         * modules/pipe-filter-gi: New file.
33619
33620 2009-08-02  Bruno Haible  <bruno@clisp.org>
33621             Paolo Bonzini  <bonzini@gnu.org>
33622
33623         Tests for module 'pipe-filter-ii'.
33624         * modules/pipe-filter-ii-tests: New file.
33625         * tests/test-pipe-filter-ii1.sh: New file.
33626         * tests/test-pipe-filter-ii1.c: New file.
33627         * tests/test-pipe-filter-ii2.sh: New file.
33628         * tests/test-pipe-filter-ii2-main.c: New file.
33629         * tests/test-pipe-filter-ii2-child.c: New file.
33630
33631         New module 'pipe-filter-ii'.
33632         * lib/pipe-filter.h: New file.
33633         * lib/pipe-filter-ii.c: New file.
33634         * lib/pipe-filter-aux.h: New file.
33635         * modules/pipe-filter-ii: New file.
33636
33637 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33638
33639         * lib/gc-libgcrypt.c: Change copyright to FSF.
33640         * lib/gc-gnulib.c: Likewise.
33641
33642 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33643
33644         * lib/gethostname.c: Include limits.h.
33645
33646 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33647             Bruno Haible  <bruno@clisp.org>
33648
33649         Ensure HOST_NAME_MAX as part of the gethostname module.
33650         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33651         define also HOST_NAME_MAX.
33652         * tests/test-gethostname.c: Include <limits.h>.
33653         (main): Check also HOST_NAME_MAX.
33654         * doc/posix-headers/limits.texi: Document the mingw problem.
33655
33656 2009-08-02  Bruno Haible  <bruno@clisp.org>
33657
33658         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33659         Add comments.
33660
33661 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33662
33663         * lib/gethostname.c: Add Windows wrapper.
33664         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33665         * modules/gethostname: Depend on sys_socket & errno, for also
33666         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33667         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33668
33669 2009-07-31  Jim Meyering  <meyering@redhat.com>
33670
33671         getloadavg: fix symbol name in comment
33672         * lib/getloadavg.c: Correct a typo I introduced when adding
33673         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33674         Matt Kraai spotted the problem.
33675
33676 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33677
33678         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33679         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33680         code also if ! defined N_NAME_POINTER.
33681         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33682         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33683         but the n_name member is a 12-byte array.
33684
33685 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33686
33687         update-copyright: generalize comment handling
33688         * build-aux/update-copyright: Handle copyright statements
33689         within more comment styles.
33690         Document usage.
33691         Report any file with an external copyright holder or parse failure.
33692
33693 2009-07-29  Jim Meyering  <meyering@redhat.com>
33694
33695         mktime: correct setting of REPLACE_MKTIME
33696         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33697
33698         update-copyright: new module
33699         * modules/update-copyright: New file.
33700         * build-aux/update-copyright: New file.
33701         * MODULES.html.sh (maint+release support): Add update-copyright.
33702
33703 2009-07-27  Bruno Haible  <bruno@clisp.org>
33704
33705         Fix compilation error when <ctime> is used and mktime is replaced.
33706         * lib/time.in.h (mktime): New declaration.
33707         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33708         REPLACE_MKTIME instead of defining mktime in config.h.
33709         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33710         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33711         Reported by Ross McFarland <rwmcfa1@neces.com>.
33712
33713 2009-07-27  Bruno Haible  <bruno@clisp.org>
33714
33715         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33716         Reported by Matt Kraai <mkraai@beckman.com>.
33717
33718 2009-07-25  Jim Meyering  <meyering@redhat.com>
33719
33720         maint.mk: avoid warnings about missing files
33721         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33722         diagnostic when .prev-version does not exist.
33723         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33724         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33725         nonexistent cfg.mk.
33726         Suggestions from Simon Josefsson.
33727
33728 2009-07-25  Bruno Haible  <bruno@clisp.org>
33729
33730         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33731         defined as macros. Needed on QNX 6.4.1.
33732         Reported by Matt Kraai <mkraai@beckman.com>.
33733
33734 2009-07-23  Jim Meyering  <meyering@redhat.com>
33735
33736         maint.mk: invoke "make dist" with a working value of XZ_OPT
33737         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33738
33739 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33740
33741         Make fseeko.c compile on QNX.
33742         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33743
33744 2009-07-22  Peter Simons  <simons@cryp.to>
33745
33746         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33747         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33748         * lib/md4.h: Likewise.
33749         * lib/md5.h: Likewise.
33750         * lib/sha1.h: Likewise.
33751         * lib/sha256.h: Likewise.
33752         * lib/sha512.h: Likewise.
33753
33754         tests-sha1: don't assign literal string to 'char *' variable
33755         * tests/test-sha1.c (main): Declare locals with "const" to match
33756         attributes of the right hand side.
33757
33758 2009-07-21  Eric Blake  <ebb9@byu.net>
33759
33760         dup2: fix more mingw problems
33761         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33762         fd to itself.
33763         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33764         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33765         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33766         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33767         care of mingw bugs.
33768
33769 2009-07-21  Jim Meyering  <meyering@redhat.com>
33770
33771         vc-list-files: avoid failure when /bin/sh is dash
33772         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33773         On some Debian based systems, /bin/sh is a symlink to dash, and running
33774         this command would omit the "/" following each 'tests' prefix:
33775           dash -x build-aux/vc-list-files -C . tests
33776         That is because bash and dash work differently:
33777           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33778           bash ok
33779           dash odd
33780
33781 2009-07-21  Eric Blake  <ebb9@byu.net>
33782
33783         dup2-tests: test previous patch
33784         * modules/dup2-tests: New file.
33785         * tests/test-dup2.c: Likewise.
33786         * tests/test-open.c (main): Avoid unspecified behavior.
33787         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33788         test.
33789
33790         dup2: work around mingw and cygwin 1.5 bug
33791         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33793         * modules/unistd (Makefile.am): Substitute it.
33794         * lib/unistd.in.h (dup2): Declare the replacement.
33795         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33796         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33797         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33798         * modules/execute (Depends-on): Add dup2.
33799         * modules/fseterr (Depends-on): Likewise.
33800         * modules/pipe (Depends-on): Likewise.
33801         * modules/posix_spawn-internal (Depends-on): Likewise.
33802
33803 2009-07-21  Bruno Haible  <bruno@clisp.org>
33804
33805         * modules/.gitattributes: New file.
33806
33807 2009-07-20  Bruno Haible  <bruno@clisp.org>
33808
33809         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33810         (main): Use it.
33811
33812 2009-07-20  Eric Blake  <ebb9@byu.net>
33813
33814         test-pipe: make a bit more robust.
33815         * tests/test-pipe.c (myerr): Allow error messages regardless of
33816         what we do to stderr.
33817         (test_pipe): Rearrange to avoid deadlock.
33818         (child_main): Try a larger read, to ensure we avoided deadlock.
33819         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33820         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33821         if misused.
33822
33823 2009-07-19  Jim Meyering  <meyering@redhat.com>
33824
33825         fts: avoid false-positive cycle-detection
33826         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33827         for each new command line argument.
33828
33829 2009-07-19  Bruno Haible  <bruno@clisp.org>
33830
33831         Fix build error on mingw with the modules sys_select and unistd.
33832         * modules/acl-tests (Depends-on): Add close.
33833         * modules/binary-io-tests (Depends-on): Likewise.
33834         * modules/closein-tests (Depends-on): Likewise.
33835         * modules/flock-tests (Depends-on): Likewise.
33836         * modules/fsync-tests (Depends-on): Likewise.
33837         * modules/lseek-tests (Depends-on): Likewise.
33838         * modules/pipe-tests (Depends-on): Likewise.
33839         * modules/posix_spawn-tests (Depends-on): Likewise.
33840         * modules/posix_spawnp-tests (Depends-on): Likewise.
33841         * modules/stat-time-tests (Depends-on): Likewise.
33842         * modules/yesno-tests (Depends-on): Likewise.
33843
33844 2009-07-19  Bruno Haible  <bruno@clisp.org>
33845
33846         Unify conditionals.
33847         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33848         macros, not at the compiler macros.
33849         * lib/pipe.c: Likewise.
33850         * lib/execute.c: Likewise.
33851         * lib/spawni.c: Likewise.
33852
33853 2009-07-19  Bruno Haible  <bruno@clisp.org>
33854
33855         Fix handling of closed stdin/stdout/stderr on mingw.
33856         * lib/w32spawn.h: Include unistd.h.
33857         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33858         file descriptor with O_NOINHERIT flag.
33859         (fd_safer_noinherit): New function, based on fd-safer.c.
33860         (dup_safer_noinherit): New function, based on dup-safer.c.
33861         (undup_safer_noinherit): New function.
33862         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33863         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33864         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33865         instead of fd_safer.
33866         * tests/test-pipe.c: Include <windows.h>.
33867         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33868         result.
33869
33870         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33871         from main.
33872         (test_pipe): Pass an extra argument for disambiguation.
33873         (main): Invoke parent_main or child_main.
33874
33875         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33876         consistently.
33877
33878 2009-07-18  Eric Blake  <ebb9@byu.net>
33879
33880         test-pipe: fix mingw build
33881         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33882
33883 2009-07-18  Bruno Haible  <bruno@clisp.org>
33884
33885         * modules/pipe-tests (Makefile.am): Fix typo.
33886
33887 2009-07-18  Eric Blake  <ebb9@byu.net>
33888
33889         error: fix mingw build
33890         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33891         Reported by Bruno Haible.
33892
33893         error: avoid undefined use of stdout
33894         * lib/error.c (error, error_at_line): Check that fd 1 is open
33895         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33896         is handling faults and the close_stdout module wants to report the
33897         detection of closed stdout as an error.
33898
33899 2009-07-17  Eric Blake  <ebb9@byu.net>
33900
33901         pipe: be robust in face of closed fds
33902         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33903         should cause child to misbehave.
33904         * modules/pipe-tests: New module.
33905         * tests/test-pipe.c: New file.
33906         * tests/test-pipe.sh: New file.
33907         Reported by Akim Demaille.
33908
33909 2009-07-14  Bruno Haible  <bruno@clisp.org>
33910
33911         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33912         Reported by anonymous kc.
33913
33914 2009-07-07  Jim Meyering  <meyering@redhat.com>
33915
33916         maint.mk: don't look for translatable strings in *.m4 or *.mk
33917         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33918         when searching for translatable strings.
33919
33920 2009-07-05  Jim Meyering  <meyering@redhat.com>
33921
33922         remove superfluous parentheses in STREQ definition
33923         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33924         * lib/getugroups.c (STREQ): Likewise.
33925         * lib/fnmatch.c (STREQ): Likewise.
33926         Spotted by Bruno Haible.
33927
33928 2009-07-04  Jim Meyering  <meyering@redhat.com>
33929
33930         argv-iter: new module
33931         * MODULES.html.sh: Add argv-iter.
33932         * lib/argv-iter.c, lib/argv-iter.h: New files.
33933         * modules/argv-iter: New file.
33934         * modules/argv-iter-tests: New file.
33935         * tests/test-argv-iter.c: Test it.
33936
33937 2009-07-04  Bruno Haible  <bruno@clisp.org>
33938
33939         Fix assertion.
33940         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33941         contains more exact copies of a given entry than file2, leave the extra
33942         copies unpaired rather than aborting.
33943         Reported by Eric Blake.
33944
33945 2009-07-02  Bruno Haible  <bruno@clisp.org>
33946
33947         Speedup git-merge-changelog for git cherry-pick.
33948         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33949         (entries_mapping_get): New function, extracted from compute_mapping.
33950         (entries_mapping_reverse_get): New function.
33951         (compute_mapping): Add a 'full' argument. Return the result in a
33952         'struct entries_mapping'.
33953         (main): Update. Access the mappings through entries_mapping_get.
33954         Reported by Eric Blake.
33955
33956 2009-07-02  Bruno Haible  <bruno@clisp.org>
33957
33958         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33959         best_i.
33960
33961 2009-07-02  Bruno Haible  <bruno@clisp.org>
33962
33963         Speed up approximate search for matching ChangeLog entries.
33964         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33965         argument. Call fstrcmp_bounded instead of fstrcmp.
33966         (compute_mapping, try_split_merged_entry, main): Update callers.
33967
33968 2009-07-02  Bruno Haible  <bruno@clisp.org>
33969
33970         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33971
33972 2009-06-30  Bruno Haible  <bruno@clisp.org>
33973
33974         Reduce the number of uc_is_cased calls.
33975         * lib/unicase.h (casing_suffix_context_t): Add
33976         'first_char_except_ignorable' field.
33977         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33978         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33979         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33980         Update initializer.
33981         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33982         case-ignorable characters.
33983         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33984         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33985         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33986         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33987         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33988
33989 2009-06-30  Bruno Haible  <bruno@clisp.org>
33990
33991         Tests for module 'unicase/ignorable'.
33992         * modules/unicase/ignorable-tests: New file.
33993         * tests/unicase/test-ignorable.c: New file, generated by
33994         gen-uni-tables.
33995
33996         Tests for module 'unicase/cased'.
33997         * modules/unicase/cased-tests: New file.
33998         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33999         * tests/unicase/test-predicate-part1.h: New file, derived from
34000         tests/unictype/test-predicate-part1.h.
34001         * tests/unicase/test-predicate-part2.h: New file, same as
34002         tests/unictype/test-predicate-part2.h.
34003
34004         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34005         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34006         (output_casing_properties): New function.
34007         (main): Call it.
34008         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34009         * lib/unicase/cased.c: Include unictype/bitmap.h.
34010         (uc_is_cased): Define through a bitmap lookup.
34011         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34012         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34013         (uc_is_case_ignorable): Define through a bitmap lookup.
34014         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34015         lib/unictype/bitmap.h.
34016         (Depends-on): Add inline. Clean up.
34017         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34018         lib/unictype/bitmap.h.
34019         (Depends-on): Add inline. Clean up.
34020         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34021         recognition.
34022         * tests/unicase/test-u16-tolower.c (main): Likewise.
34023         * tests/unicase/test-u32-tolower.c (main): Likewise.
34024
34025 2009-06-30  Bruno Haible  <bruno@clisp.org>
34026
34027         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34028         * lib/unicase/u16-casemap.c: Likewise.
34029         * lib/unicase/u32-casemap.c: Likewise.
34030
34031 2009-06-29  Bruno Haible  <bruno@clisp.org>
34032
34033         Define u32_casefold as a wrapper around u32_ct_casefold.
34034         * lib/unicase/u32-casefold.c: Update.
34035         * modules/unicase/u32-casefold (Depends-on): Add
34036         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34037         unicase/empty-suffix-context. Clean up.
34038
34039         Define u16_casefold as a wrapper around u16_ct_casefold.
34040         * lib/unicase/u16-casefold.c: Update.
34041         * modules/unicase/u16-casefold (Depends-on): Add
34042         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34043         unicase/empty-suffix-context. Clean up.
34044
34045         Define u8_casefold as a wrapper around u8_ct_casefold.
34046         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34047         * lib/unicase/u8-casefold.c: Update.
34048         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34049         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34050
34051         Define u32_totitle as a wrapper around u32_ct_totitle.
34052         * lib/unicase/u32-totitle.c: Update.
34053         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34054         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34055
34056         Define u16_totitle as a wrapper around u16_ct_totitle.
34057         * lib/unicase/u16-totitle.c: Update.
34058         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34059         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34060
34061         Define u8_totitle as a wrapper around u8_ct_totitle.
34062         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34063         functions.
34064         (FUNC): Delegate to U_CT_TOTITLE.
34065         * lib/unicase/u8-totitle.c: Update.
34066         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34067         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34068
34069         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34070         invocation.
34071         * modules/unicase/u32-tolower (Depends-on): Add
34072         unicase/empty-prefix-context, unicase/empty-suffix-context.
34073
34074         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34075         invocation.
34076         * modules/unicase/u16-tolower (Depends-on): Add
34077         unicase/empty-prefix-context, unicase/empty-suffix-context.
34078
34079         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34080         * modules/unicase/u8-tolower (Depends-on): Add
34081         unicase/empty-prefix-context, unicase/empty-suffix-context.
34082
34083         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34084         invocation.
34085         * modules/unicase/u32-toupper (Depends-on): Add
34086         unicase/empty-prefix-context, unicase/empty-suffix-context.
34087
34088         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34089         invocation.
34090         * modules/unicase/u16-toupper (Depends-on): Add
34091         unicase/empty-prefix-context, unicase/empty-suffix-context.
34092
34093         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34094         * modules/unicase/u8-toupper (Depends-on): Add
34095         unicase/empty-prefix-context, unicase/empty-suffix-context.
34096
34097         New module 'unicase/u32-ct-casefold'.
34098         * lib/unicase/u32-ct-casefold.c: New file.
34099         * modules/unicase/u32-ct-casefold: New file.
34100
34101         New module 'unicase/u16-ct-casefold'.
34102         * lib/unicase/u16-ct-casefold.c: New file.
34103         * modules/unicase/u16-ct-casefold: New file.
34104
34105         New module 'unicase/u8-ct-casefold'.
34106         * lib/unicase/u8-ct-casefold.c: New file.
34107         * lib/unicase/u-ct-casefold.h: New file, derived from
34108         lib/unicase/u-casefold.h.
34109         * modules/unicase/u8-ct-casefold: New file.
34110
34111         New module 'unicase/u32-ct-totitle'.
34112         * lib/unicase/u32-ct-totitle.c: New file.
34113         * modules/unicase/u32-ct-totitle: New file.
34114
34115         New module 'unicase/u16-ct-totitle'.
34116         * lib/unicase/u16-ct-totitle.c: New file.
34117         * modules/unicase/u16-ct-totitle: New file.
34118
34119         New module 'unicase/u8-ct-totitle'.
34120         * lib/unicase/u8-ct-totitle.c: New file.
34121         * lib/unicase/u-ct-totitle.h: New file, derived from
34122         lib/unicase/u-totitle.h.
34123         * modules/unicase/u8-ct-totitle: New file.
34124
34125         New module 'unicase/u32-ct-tolower'.
34126         * lib/unicase/u32-ct-tolower.c: New file.
34127         * modules/unicase/u32-ct-tolower: New file.
34128
34129         New module 'unicase/u16-ct-tolower'.
34130         * lib/unicase/u16-ct-tolower.c: New file.
34131         * modules/unicase/u16-ct-tolower: New file.
34132
34133         New module 'unicase/u8-ct-tolower'.
34134         * lib/unicase/u8-ct-tolower.c: New file.
34135         * modules/unicase/u8-ct-tolower: New file.
34136
34137         New module 'unicase/u32-ct-toupper'.
34138         * lib/unicase/u32-ct-toupper.c: New file.
34139         * modules/unicase/u32-ct-toupper: New file.
34140
34141         New module 'unicase/u16-ct-toupper'.
34142         * lib/unicase/u16-ct-toupper.c: New file.
34143         * modules/unicase/u16-ct-toupper: New file.
34144
34145         New module 'unicase/u8-ct-toupper'.
34146         * lib/unicase/u8-ct-toupper.c: New file.
34147         * modules/unicase/u8-ct-toupper: New file.
34148
34149         Add context arguments to u*_casemap functions.
34150         * lib/unicase/unicasemap.h: Include unicase.h.
34151         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34152         suffix_context arguments.
34153         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34154         functions.
34155         (FUNC): Add prefix_context and suffix_context arguments. Use
34156         uc_is_cased and uc_is_case_ignorable.
34157         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34158         * lib/unicase/u16-casemap.c: Likewise.
34159         * lib/unicase/u32-casemap.c: Likewise.
34160         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34161         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34162         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34163         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34164         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34165         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34166
34167         New module 'unicase/u32-suffix-context'.
34168         * lib/unicase/u32-suffix-context.c: New file.
34169         * modules/unicase/u32-suffix-context: New file.
34170
34171         New module 'unicase/u16-suffix-context'.
34172         * lib/unicase/u16-suffix-context.c: New file.
34173         * modules/unicase/u16-suffix-context: New file.
34174
34175         New module 'unicase/u8-suffix-context'.
34176         * lib/unicase/u8-suffix-context.c: New file.
34177         * lib/unicase/u-suffix-context.h: New file.
34178         * modules/unicase/u8-suffix-context: New file.
34179
34180         New module 'unicase/empty-suffix-context'.
34181         * lib/unicase/empty-suffix-context.c: New file.
34182         * modules/unicase/empty-suffix-context: New file.
34183
34184         New module 'unicase/u32-prefix-context'.
34185         * lib/unicase/u32-prefix-context.c: New file.
34186         * modules/unicase/u32-prefix-context: New file.
34187
34188         New module 'unicase/u16-prefix-context'.
34189         * lib/unicase/u16-prefix-context.c: New file.
34190         * modules/unicase/u16-prefix-context: New file.
34191
34192         New module 'unicase/u8-prefix-context'.
34193         * lib/unicase/u8-prefix-context.c: New file.
34194         * lib/unicase/u-prefix-context.h: New file.
34195         * lib/unicase/context.h: New file.
34196         * modules/unicase/u8-prefix-context: New file.
34197
34198         New module 'unicase/empty-prefix-context'.
34199         * lib/unicase/empty-prefix-context.c: New file.
34200         * modules/unicase/empty-prefix-context: New file.
34201
34202         New module 'unicase/ignorable'.
34203         * lib/unicase/ignorable.c: New file.
34204         * modules/unicase/ignorable: New file.
34205
34206         New module 'unicase/cased'.
34207         * lib/unicase/caseprop.h: New file.
34208         * lib/unicase/cased.c: New file.
34209         * modules/unicase/cased: New file.
34210
34211         New functions for case mapping of substrings.
34212         * lib/unicase.h (casing_prefix_context_t): New type.
34213         (unicase_empty_prefix_context): New variable.
34214         (u8_casing_prefix_context, u16_casing_prefix_context,
34215         u32_casing_prefix_context, u8_casing_prefixes_context,
34216         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34217         declarations.
34218         (casing_suffix_context_t): New type.
34219         (unicase_empty_suffix_context): New variable.
34220         (u8_casing_suffix_context, u16_casing_suffix_context,
34221         u32_casing_suffix_context, u8_casing_suffixes_context,
34222         u16_casing_suffixes_context, u32_casing_suffixes_context,
34223         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34224         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34225         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34226         declarations.
34227
34228 2009-06-28  Jim Meyering  <meyering@redhat.com>
34229
34230         boostrap: indent only with spaces
34231         * build-aux/bootstrap: Indent only with spaces, never TABs.
34232
34233         bootstrap: split long lines
34234         * build-aux/bootstrap: Keep line length < 80.
34235
34236         bootstrap: sync from coreutils
34237         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34238         just as autoreconf does.  Verify a list of prerequisite
34239         package-name,version-number pairs if defined in bootstrap.conf.
34240         Refer to README-prereq, if prerequisites are not satisfied.
34241
34242 2009-06-27  Eric Blake  <ebb9@byu.net>
34243
34244         tests: add test for bogus NULL definition
34245         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34246         * tests/test-stdlib.c: Likewise.
34247         * tests/test-string.c: Likewise.
34248         * tests/test-locale.c: Likewise.
34249         * tests/test-unistd.c: Likewise.
34250         * modules/stdio-tests (Depends-on): Add verify.
34251         * modules/stdlib-tests (Depends-on): Likewise.
34252         * modules/string-tests (Depends-on): Likewise.
34253         * modules/locale-tests (Depends-on): Likewise.
34254         * modules/unistd-tests (Depends-on): Likewise.
34255
34256 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34257
34258         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34259         self-explaining comment.
34260         * m4/selinux-selinux-h: Update serial.
34261         (gl_LIBSELINUX): New macro, adding a warning for missing development
34262         packages to code extracted from...
34263         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34264         Add warning for missing development packages here, too.
34265
34266 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34267
34268         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34269
34270 2009-06-25  Eric Blake  <ebb9@byu.net>
34271
34272         version-etc: fix regression
34273         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34274         gcc.
34275         (version_etc): Use it, to catch bugs with trailing NULL.
34276         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34277         (version_etc_va): Fix logic bug.
34278         * modules/version-etc-tests: Add test.
34279         * tests/test-version-etc.c: New file.
34280         * tests/test-version-etc.sh: Likewise.
34281
34282 2009-06-25  Sam Steingold  <sds@gnu.org>
34283
34284         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34285         mbtowc declaration.
34286
34287 2009-06-25  Eric Blake  <ebb9@byu.net>
34288
34289         fpurge: migrate into <stdio.h>
34290         * lib/fpurge.h: Delete...
34291         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34292         * lib/fpurge.c (fpurge): Change declaring header.
34293         * modules/fpurge (Files): Drop deleted file.
34294         (Depends-on): Add stdio.
34295         (configure.ac): Set witness.
34296         * modules/stdio (Makefile.am): Support fpurge macros.
34297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34298         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34299         * lib/fflush.c: Update client.
34300         * tests/test-fpurge.c: Likewise.
34301         * NEWS: Mention the change.
34302
34303 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34304
34305         * lib/argp-version-etc.c (program_authors): Add const
34306         qualifier.
34307         * lib/version-etc.c: Fix typos in the comments.
34308         * modules/argp-version-etc: Depends on version-etc.
34309
34310 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34311
34312         argp-version-etc: new module.
34313
34314         * lib/argp-version-etc.c: New file.
34315         * lib/argp-version-etc.h: New file.
34316         * modules/argp-version-etc: New file.
34317         * modules/argp-version-etc-tests: New file.
34318         * tests/test-argp-version-etc.c: New test.
34319         * tests/test-argp-version-etc-1.sh: New test.
34320
34321 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34322
34323         Provide additional interfaces and documentation for version-etc
34324         module.
34325
34326         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34327         interfaces.
34328         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34329         prototypes.
34330
34331 2009-06-24  Bruno Haible  <bruno@clisp.org>
34332
34333         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34334         HAVE_LIB${NAME} macro.
34335         Reported by Sam Steingold <sds@gnu.org>.
34336
34337 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34338
34339         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34340         needed.
34341
34342 2009-06-21  Bruno Haible  <bruno@clisp.org>
34343
34344         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34345         work.
34346         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34347         together with LIB${NAME}, LTLIB${NAME}.
34348         Reported by Sam Steingold <sds@gnu.org>.
34349
34350 2009-06-20  Jim Meyering  <meyering@redhat.com>
34351
34352         tests: make sc_require_test_exit_idiom more generic
34353         * top/maint.mk (Exit_witness_file): New overridable variable.
34354         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34355         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34356
34357 2009-06-19  Jim Meyering  <meyering@redhat.com>
34358
34359         hash: reverse order of src/dst parameters in an internal interface
34360         * lib/hash.c (transfer_entries): Reverse order of parameters to
34361         put DST before SRC.  Adjust callers.
34362
34363         tests: test-hash: avoid wholesale duplication
34364         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34365         Instead, use a loop and add a single conditional.
34366
34367         tests: test-hash: allow seed selection via a command line argument
34368         * tests/test-hash.c (get_seed): New function.
34369         (main): Use it.
34370
34371 2009-06-19  Eric Blake  <ebb9@byu.net>
34372
34373         hash: avoid memory leak on allocation failure
34374         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34375         failure.  Factor repeated algorithm...
34376         (transfer_entries): ...into new helper routine.
34377         (hash_delete): React to hash_rehash return value.
34378
34379         hash: reduce memory pressure in hash_rehash no-op case
34380         * lib/hash.c (next_prime): Avoid overflow.
34381         (hash_initialize): Factor bucket size computation...
34382         (compute_bucket_size): ...into new helper function.
34383         (hash_rehash): Use new function and open coding to reduce memory
34384         pressure, and avoid a memory leak in USE_OBSTACK code.
34385         Reported by Jim Meyering.
34386
34387 2009-06-18  Eric Blake  <ebb9@byu.net>
34388
34389         hash: make rotation more obvious
34390         * modules/hash (Depends-on): Add bitrotate and stdint.
34391         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34392         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34393         (SIZE_MAX): Rely on headers for definition.
34394         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34395         (raw_hasher): Use rotr_sz.
34396         Suggested by Jim Meyering.
34397
34398         hash: fix memory leak in last patch
34399         * lib/hash.c (hash_rehash): Avoid memory leak.
34400
34401         hash: avoid no-op rehashing
34402         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34403
34404         hash: provide default callback functions
34405         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34406         (hash_initialize): Use them as defaults.
34407         * tests/test-hash.c (main): Test this.
34408
34409         hash: minor optimization
34410         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34411         when possible.
34412         (hash_initialize): Document this promise.
34413         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34414         * tests/test-hash.c (hash_compare_strings): Test this.
34415
34416 2009-06-18  Bruno Haible  <bruno@clisp.org>
34417
34418         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34419         going to be replaced anyway.
34420
34421 2009-06-18  Bruno Haible  <bruno@clisp.org>
34422
34423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34424         in one place.
34425         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34426         be replaced anyway.
34427
34428 2009-06-18  Eric Blake  <ebb9@byu.net>
34429
34430         hash: check for resize before insertion
34431         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34432         threshold before insertion, so that a pathological hash_rehash
34433         that fills every bucket can still trigger another rehash.
34434
34435 2009-06-18  Jim Meyering  <meyering@redhat.com>
34436
34437         hash-tests: add a loop around the small tests
34438         * tests/test-hash.c (main): Repeat small tests with selected
34439         small initial table sizes.
34440
34441 2009-06-17  Eric Blake  <ebb9@byu.net>
34442
34443         hash: minor cleanups
34444         * lib/hash.h (hash_entry): Make opaque, by moving...
34445         * lib/hash.c (hash_entry): ...here.
34446         (hash_insert): Clarify restrictions on what can be inserted.
34447         (hash_get_next): Clarify when it is safe to remove an element
34448         during traversal.
34449         (check_tuning): Skip verification when tuning is known safe.
34450         (hash_initialize): Clarify restrictions on tuning.
34451
34452 2009-06-17  Jim Meyering  <jim@meyering.net>
34453         and Eric Blake  <ebb9@byu.net>
34454
34455         hash-tests: new module
34456         * modules/hash-tests: New file.
34457         * tests/test-hash.c: New file.
34458
34459 2009-06-17  Eric Blake  <ebb9@byu.net>
34460
34461         strstr-simple: document new module
34462         * MODULES.html.sh: Document new module.
34463
34464         strstr, strcasestr: replace on platforms with broken memchr
34465         * modules/strstr: Split into...
34466         * modules/strstr-simple: ...new module that does not care about
34467         performance, but does care about glibc bug.
34468         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34469         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34470         if platform memchr is broken, per Debian bug 521737.
34471         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34472         memchr.
34473         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34474         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34475         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34476         * modules/mountlist (Depends-on): Add strstr-simple.
34477         * modules/gen-uni-tables (Depends-on): Likewise.
34478         * modules/argz (Depends-on): Add strstr.
34479
34480 2009-06-17  Bruno Haible  <bruno@clisp.org>
34481
34482         * modules/posix_spawn-internal (Depends-on): Add errno.
34483
34484 2009-06-17  Bruno Haible  <bruno@clisp.org>
34485
34486         Define missing ESTALE on Interix 3.5.
34487         * lib/errno.in.h (ESTALE): Assign a value if missing.
34488         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34489         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34490         missing.
34491         * doc/posix-headers/errno.texi: Mention the Interix bug.
34492         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34493
34494 2009-06-15  Eric Blake  <ebb9@byu.net>
34495
34496         memchr, memchr2: add valgrind exception
34497         * lib/memchr.valgrind: New file.
34498         * lib/memchr2.valgrind: New file.
34499         * modules/memchr (Files): Distribute valgrind file.
34500         * modules/memchr2 (Files): Likewise.
34501
34502         docs: memchr is no longer obsolete
34503         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34504         * lib/string.in.h (memchr): Simplify logic.
34505
34506 2009-06-14  Jim Meyering  <meyering@redhat.com>
34507
34508         link-follow: fix the "checking..." message to not mention trailing slash
34509         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34510         never considered trailing slashes.
34511
34512 2009-06-14  Bruno Haible  <bruno@clisp.org>
34513
34514         * m4/memchr.m4: Mention also the bug on IA-64.
34515         * doc/posix-functions/memchr.texi: Likewise.
34516
34517 2009-06-12  Eric Blake  <ebb9@byu.net>
34518
34519         memchr: detect broken x86_64 and alpha implementations
34520         * modules/memchr-tests (Depends-on): Move mmap detection...
34521         * modules/memchr (Depends-on): ...here.
34522         (configure.ac): Set indicator.
34523         * lib/string.in.h (memchr): Declare replacement.
34524         * modules/string (Makefile.am): Trigger replacement.
34525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34526         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34527         bugs.
34528         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34529         * modules/getpagesize (License): Relax license.
34530
34531 2009-06-11  Bruno Haible  <bruno@clisp.org>
34532
34533         * lib/idpriv.h: Add more references.
34534
34535 2009-06-08  Bruno Haible  <bruno@clisp.org>
34536
34537         Tests for module 'idpriv-droptemp'.
34538         * modules/idpriv-droptemp-tests: New file.
34539         * tests/test-idpriv-droptemp.sh: New file.
34540         * tests/test-idpriv-droptemp.su.sh: New file.
34541         * tests/test-idpriv-droptemp.c: New file.
34542
34543         New module 'idpriv-droptemp'.
34544         * lib/idpriv-droptemp.c: New file.
34545         * modules/idpriv-droptemp: New file.
34546
34547 2009-06-08  Bruno Haible  <bruno@clisp.org>
34548
34549         Tests for module 'idpriv-drop'.
34550         * modules/idpriv-drop-tests: New file.
34551         * tests/test-idpriv-drop.sh: New file.
34552         * tests/test-idpriv-drop.su.sh: New file.
34553         * tests/test-idpriv-drop.c: New file.
34554
34555         New module 'idpriv-drop'.
34556         * lib/idpriv.h: New file.
34557         * lib-idpriv-drop.c: New file.
34558         * m4/idpriv.m4: New file.
34559         * modules/idpriv-drop: New file.
34560
34561 2009-06-08  Bruno Haible  <bruno@clisp.org>
34562
34563         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34564         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34565         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34566         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34567         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34568         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34569         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34570
34571 2009-06-08  Eric Blake  <ebb9@byu.net>
34572
34573         test-strstr: use memory fence, when possible
34574         * tests/test-strstr.c (main): Use memory fence, in order to be
34575         more likely to trigger Debian bug 521737.
34576         * modules/strstr-tests (Files): Pull in additional files.
34577
34578         memchr: no longer obsolete, for wider field testing
34579         * modules/memchr (Status, Notice): Delete, this module is no
34580         longer obsolete.
34581         * modules/vasnprintf (Depends-on): Add memchr.
34582
34583 2009-06-07  Jim Meyering  <meyering@redhat.com>
34584
34585         hash: declare some functions with the warn_unused_result attribute
34586         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34587
34588 2009-06-07  Bruno Haible  <bruno@clisp.org>
34589
34590         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34591         Reported by Eric Blake.
34592
34593 2009-06-06  Eric Blake  <ebb9@byu.net>
34594
34595         test-alignof: fix typo with long double
34596         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34597         compiler error.
34598
34599 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34600
34601         Escape non-texinfo { and }s.
34602         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34603         markup error.
34604
34605 2009-06-04  Jim Meyering  <meyering@redhat.com>
34606
34607         gitlog-to-changelog: don't infloop on an empty commit log
34608         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34609         Reported by Boris Petersen <transacid@centerim.org>.
34610
34611 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34612
34613         version-etc: extend for packagers
34614         Add three new configure options, intended for packagers:
34615           --with-packager="packager name"
34616           --with-packager-version="packager-specific version"
34617           --with-packager-bug-reports="packager bug reporting"
34618         An example with coreutils:
34619           $ ./configure \
34620             --with-packager=Gentoo \
34621             --with-packager-bug-report=http://bugs.gentoo.org/ \
34622             --with-packager-version="patchset 1.6"
34623           $ ./src/ls --version | head -n2
34624           ls (GNU coreutils) 7.1-dirty
34625           Packaged by Gentoo (patchset 1.6)
34626         Note that the bug reporting info via --help doesn't show up because
34627         coreutils uses its own custom emit_bug_reporting_address() implementation
34628         in src/system.h.  If it didn't, it'd look like:
34629           $ ./src/ls --help | tail -n4
34630           Report bugs to <bug-coreutils@gnu.org>.
34631           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34632           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34633           General help using GNU software: <http://www.gnu.org/gethelp/>.
34634         * lib/version-etc.c: Print new information, if provided.
34635         * m4/version-etc.m4: New file.
34636         * modules/version-etc (Files): Add m4/version-etc.m4.
34637         (configure.ac): Add gl_VERSION_ETC.
34638
34639 2009-05-31  Bruno Haible  <bruno@clisp.org>
34640
34641         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34642         and 'int64_t'.
34643         * modules/alignof-tests (Dependencies): Add stdint.
34644         Reported by Eric Blake.
34645
34646 2009-05-31  Bruno Haible  <bruno@clisp.org>
34647
34648         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34649         restriction due to compiler bugs.
34650         Reported by Eric Blake.
34651
34652 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34653             Bruno Haible  <bruno@clisp.org>
34654
34655         Fix test-alignof failure.
34656         * lib/alignof.h (alignof_slot): New macro.
34657         (alignof_type): New macro, with the same semantics as the previous
34658         'alignof'.
34659         (alignof): Alias to alignof_slot.
34660         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34661         check that the results are usable as constant expressions.
34662
34663 2009-05-31  Bruno Haible  <bruno@clisp.org>
34664
34665         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34666         * tests/test-memchr.c (main): Check that memchr does not read past the
34667         first occurrence of the byte.
34668         * tests/test-strstr.c (main): Update comment.
34669         Suggested by Eric Blake.
34670
34671 2009-05-30  Bruno Haible  <bruno@clisp.org>
34672
34673         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34674         detail how to use dumpbin.
34675         Reported by David Byron <dbyron@dbyron.com>.
34676
34677 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34678
34679         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34680
34681 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34682
34683         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34684
34685 2009-05-28  Bruno Haible  <bruno@clisp.org>
34686
34687         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34688         build-aux/ files.
34689
34690 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34691
34692         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34693
34694 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34695
34696         * gnulib-tool (sed_transform_main_lib_file)
34697         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34698         regexps.
34699
34700 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34701
34702         * tests/test-strstr.c: Add another self-test.
34703         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34704         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34705
34706 2009-05-23  Bruno Haible  <bruno@clisp.org>
34707
34708         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34709         change.
34710
34711 2009-05-21  Bruno Haible  <bruno@clisp.org>
34712
34713         Simplify use of mode_t varargs.
34714         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34715         uses 'mode_t' or 'int'.
34716         * lib/openat.c (openat): Likewise.
34717         * lib/open-safer.c (open_safer): Likewise.
34718         * m4/mode_t.m4: New file.
34719         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34720         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34721         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34722         * modules/open (Files): Add m4/mode_t.m4.
34723         * modules/openat (Files): Likewise.
34724         * modules/fcntl-safer (Files): Likewise.
34725         Suggested by Eric Blake.
34726
34727 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34728
34729         * doc/glibc-functions/fallocate.texi: New file.
34730         * doc/gnulib.texi: Include it.
34731
34732 2009-05-21  Eric Blake  <ebb9@byu.net>
34733             Bruno Haible  <bruno@clisp.org>
34734
34735         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34736         invocations.
34737         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34738
34739 2009-05-21  Eric Blake  <ebb9@byu.net>
34740             Bruno Haible  <bruno@clisp.org>
34741
34742         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34743         include_next. Fix of 2008-11-20 commit.
34744         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34745         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34746         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34747         NEXT_MATH_H.
34748         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34749         instead of NEXT_MATH_H.
34750
34751 2009-05-21  Bruno Haible  <bruno@clisp.org>
34752
34753         Avoid redefinition warnings for SIZE_MAX.
34754         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34755         Reported by Simon Josefsson.
34756
34757 2009-05-21  Bruno Haible  <bruno@clisp.org>
34758
34759         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34760         AC_CACHE_VAL.
34761
34762 2009-05-20  Bruno Haible  <bruno@clisp.org>
34763
34764         Make zeroptr.h work on mingw.
34765         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34766         mprotect.
34767         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34768         * modules/memchr2-tests (configure.ac): Likewise.
34769         * modules/memcmp-tests (configure.ac): Likewise.
34770         * modules/memmem-tests (configure.ac): Likewise.
34771         * modules/memrchr-tests (configure.ac): Likewise.
34772         Reported by Simon Josefsson.
34773
34774 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34775
34776         * tests/test-glob.c: Include string.h for strcmp prototype.
34777
34778 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34779
34780         * modules/getdelim (Depends-on): Add explicit stdint, although it
34781         was implicitly already pulled in via realloc-posix.
34782         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34783
34784 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34785
34786         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34787         G. Christensen" <tgc@jupiterrise.com>.
34788         * m4/sys_socket_h.m4: Check for sa_family_t.
34789         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34790         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34791         * tests/test-sys_socket.c: Check that sa_family_t works.
34792
34793 2009-05-18  Eric Blake  <ebb9@byu.net>
34794
34795         maint.mk: allow gnulib_dir in VPATH build
34796         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34797
34798 2009-05-15  Jim Meyering  <meyering@redhat.com>
34799
34800         maint.mk: Give gnulib_dir a default definition.
34801         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34802         Thus, most packages no longer need to specify this variable in cfg.mk
34803
34804 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34805
34806         rename.m4: fix typos that would make non-mingw cross-configure fail
34807         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34808
34809 2009-05-13  Eric Blake  <ebb9@byu.net>
34810
34811         mmap-anon: avoid out-of-order autoconf expansion
34812         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34813         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34814         * modules/memchr-tests (Depends-on): Add extensions.
34815         * modules/memchr2-tests (Depends-on): Add extensions.
34816         * modules/memcmp-tests (Depends-on): Add extensions.
34817         * modules/memmem-tests (Depends-on): Add extensions.
34818         * modules/memrchr-tests (Depends-on): Add extensions.
34819
34820 2009-05-13  Bruno Haible  <bruno@clisp.org>
34821
34822         Make some tests ISO C 99 compliant.
34823         * tests/zerosize-ptr.h: New file.
34824         * tests/test-memchr.c: Include zerosize-ptr.h.
34825         (main): Use a zero-size object pointer instead of NULL.
34826         * tests/test-memchr2.c: Include zerosize-ptr.h.
34827         (main): Use a zero-size object pointer instead of NULL.
34828         * tests/test-memcmp.c: Include zerosize-ptr.h.
34829         (main): Use a zero-size object pointer instead of NULL.
34830         * tests/test-memmem.c: Include zerosize-ptr.h.
34831         (main): Use a zero-size object pointer instead of NULL.
34832         * tests/test-memrchr.c: Include zerosize-ptr.h.
34833         (main): Use a zero-size object pointer instead of NULL.
34834         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34835         m4/mmap-anon.m4.
34836         (Depends-on): Add getpagesize.
34837         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34838         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34839         m4/mmap-anon.m4.
34840         (Depends-on): Add getpagesize.
34841         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34842         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34843         m4/mmap-anon.m4.
34844         (Depends-on): Add getpagesize.
34845         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34846         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34847         m4/mmap-anon.m4.
34848         (Depends-on): Add getpagesize.
34849         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34850         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34851         m4/mmap-anon.m4.
34852         (Depends-on): Add getpagesize.
34853         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34854
34855 2009-05-12  Bruno Haible  <bruno@clisp.org>
34856
34857         Tests for module 'alignof'.
34858         * modules/alignof-tests: New file.
34859         * tests/test-alignof.c: New file.
34860
34861 2009-05-12  Bruno Haible  <bruno@clisp.org>
34862
34863         Fix alignof macro.
34864         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34865         vendor compilers that are always correct.
34866
34867 2009-05-12  Bruno Haible  <bruno@clisp.org>
34868
34869         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34870         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34871         not whether its fully works.
34872
34873 2009-05-12  Bruno Haible  <bruno@clisp.org>
34874
34875         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34876
34877 2009-05-12  Jim Meyering  <meyering@redhat.com>
34878
34879         * top/maint.mk: Adjust backslash alignment.
34880
34881 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34882
34883         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34884
34885 2009-05-11  Eric Blake  <ebb9@byu.net>
34886
34887         argp: avoid undefined behavior
34888         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34889         macros.
34890
34891 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34892
34893         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34894         user.name to prevent git commit from complaining.
34895
34896 2009-05-10  Bruno Haible  <bruno@clisp.org>
34897
34898         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34899         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34900         it rewrites every file name only once.
34901         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34902
34903 2009-05-08  Bruno Haible  <bruno@clisp.org>
34904
34905         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34906         instead of 'max'.
34907
34908 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34909
34910         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34911         sockaddr_storage test.
34912
34913 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34914
34915         * modules/sys_socket (Makefile.am): Substitute
34916         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34917         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34918         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34919         * tests/test-sys_socket.c: Check sockaddr_storage.
34920
34921 2009-05-08  Bruno Haible  <bruno@clisp.org>
34922
34923         New module 'alignof'.
34924         * lib/alignof.h: New file.
34925         * modules/alignof: New file.
34926
34927 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34928             Bruno Haible  <bruno@clisp.org>
34929
34930         Fix test-file-has-acl on FreeBSD.
34931         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34932         mask is implicitly added.
34933         * tests/test-file-has-acl.c: Include <signal.h>.
34934         (main): Terminate the test after 5 seconds.
34935         * modules/acl-tests (configure.ac): Check for alarm function.
34936
34937 2009-05-04  Bruno Haible  <bruno@clisp.org>
34938
34939         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34940         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34941         * modules/errno (configure.ac): Drop AC_REQUIRE.
34942         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34943         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34944
34945 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34946
34947         * modules/glob-tests: New module.
34948         * tests/test-glob.c: Add.
34949
34950 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34951
34952         * modules/fnmatch-tests: New module.
34953         * tests/test-fnmatch.c: Add.
34954
34955 2009-05-04  Eric Blake  <ebb9@byu.net>
34956
34957         maint: make the new no-submodule-changes rule VPATH-safe
34958         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34959
34960 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34961             Bruno Haible  <bruno@clisp.org>
34962
34963         acl: Fix infinite loop on FreeBSD.
34964         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34965         of return value from acl_get_entry.
34966         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34967         Likewise.
34968
34969 2009-05-03  Bruno Haible  <bruno@clisp.org>
34970
34971         * lib/acl-internal.h (acl_entries): Clarify return value.
34972         * lib/acl_entries.c (acl_entries): Likewise.
34973
34974 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34975
34976         Bug fix in acl module.
34977         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34978
34979 2009-05-03  Bruno Haible  <bruno@clisp.org>
34980
34981         Create gperf-generated file in the source dir, not in the build dir.
34982         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34983         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34984         * modules/unicase/locale-language (unicase/locale-languages.h):
34985         Likewise.
34986         * modules/unicase/special-casing (unicase/special-casing-table.h):
34987         Likewise.
34988         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34989         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34990         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34991         Reported by Ralf Wildenhues.
34992
34993 2009-05-03  Bruno Haible  <bruno@clisp.org>
34994
34995         * modules/fnmatch (Description, configure.ac): Taken from
34996         fnmatch-posix.
34997         * modules/fnmatch-posix: Turn into a symbolic reference to the
34998         'fnmatch' module, and deprecate.
34999         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35000
35001 2009-05-03  Bruno Haible  <bruno@clisp.org>
35002
35003         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35004         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35005         Reported by Ralf Wildenhues.
35006
35007 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35008
35009         * m4/fnmatch.m4: Fix fnmatch re-define.
35010
35011 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35012
35013         priv-set: new module and tests; adapt write-any-file
35014         * lib/priv-set.c: New file.
35015         * lib/priv-set.h: New file.
35016         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35017         * lib/write-any-file.c: Simplify by using priv-set module.
35018         * m4/priv-set.m4: New file.
35019         * modules/priv-set: New file.
35020         * modules/unlinkdir: Add dependency on priv-set module.
35021         * modules/write-any-file: Likewise.
35022
35023         Tests for module 'priv-set'.
35024         * modules/priv-set-tests: New file.
35025         * tests/test-priv-set.c: New file.
35026
35027 2009-05-03  Jim Meyering  <meyering@redhat.com>
35028             Bruno Haible  <bruno@clisp.org>
35029
35030         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35031         use the converted UTF-8 variant of the name instead.
35032
35033 2009-05-03  Jim Meyering  <meyering@redhat.com>
35034
35035         tests: tighten some getdate tests
35036         * tests/test-getdate.c (main): Tighten tests: require equality,
35037         not just greater than.  Set TZ envvar to UTC0.
35038
35039 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35040
35041         getdate: correctly interpret "next monday" when run on a Monday
35042         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35043         that e.g., "next tues" (when run on a tuesday) results in a date
35044         that is one week in the future, and not today's date.
35045         I.e., add a week when the wday is the same as the current one.
35046         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35047         and earlier by Martin Bernreuther and Jan Minář.
35048         * tests/test-getdate.c (main): Check that "next DAY" is always in
35049         the future and that "last DAY" is always in the past.
35050
35051 2009-05-02  Jim Meyering  <meyering@redhat.com>
35052
35053         build: ensure that a release build fails when a submodule is unclean
35054         * top/maint.mk (no-submodule-changes): New rule.
35055         (alpha beta major): Depend on it.
35056
35057 2009-05-02  Bruno Haible  <bruno@clisp.org>
35058
35059         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35060         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35061         shell variable gl_fnmatch_required to detect which variant is
35062         requested.
35063         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35064         gl_FUNC_FNMATCH_POSIX.
35065         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35066         exclude fnmatch-posix.
35067
35068 2009-05-02  Bruno Haible  <bruno@clisp.org>
35069
35070         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35071         * modules/mbsrtowcs (License): Change to LGPLv2+.
35072         * modules/strnlen1 (License): Likewise.
35073         Reported by Simon Josefsson.
35074
35075 2009-05-02  Bruno Haible  <bruno@clisp.org>
35076
35077         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35078         "cross".
35079         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35080         gnulib-tool was called with option --source-base=lib.
35081
35082 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35083
35084         Use automake *-local hooks without commands, for extensibility.
35085         * modules/localcharset (Makefile.am): Rename install-exec-local
35086         rule to install-exec-localcharset, and make it a prerequisite of
35087         install-exec-local.  Likewise, rename the uninstall-local rule to
35088         uninstall-localcharset, and make it a prerequisite of the former.
35089
35090 2009-05-01  Bruno Haible  <bruno@clisp.org>
35091
35092         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35093         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35094         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35096         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35097         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35098         m4/locale-zh.m4, m4/codeset.m4.
35099
35100         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35101         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35102         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35103         m4/locale-zh.m4.
35104
35105         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35106         REPLACE_WCRTOMB if mbstate_t must be replaced.
35107         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35108         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35109
35110 2009-05-01  Bruno Haible  <bruno@clisp.org>
35111
35112         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35113         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35114         dngettext, dcngettext, textdomain, bindtextdomain,
35115         bind_textdomain_codeset): Undefine before redefining.
35116
35117 2009-04-30  Bruno Haible  <bruno@clisp.org>
35118
35119         Fix bug introduced on 2009-04-25.
35120         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35121         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35122         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35123         is defined.
35124         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35125         is defined.
35126         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35127         is defined.
35128         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35129
35130 2009-04-28  Bruno Haible  <bruno@clisp.org>
35131
35132         Comment tweaks.
35133         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35134         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35135         * lib/unicase.h (u*_casexfrm): Likewise.
35136         Reported by Paolo Bonzini.
35137
35138 2009-04-28  Bruno Haible  <bruno@clisp.org>
35139
35140         Fix a compilation error.
35141         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35142         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35143         Reported by Jim Meyering.
35144
35145 2009-04-27  Bruno Haible  <bruno@clisp.org>
35146
35147         New module 'libunistring'.
35148         * modules/libunistring: New file.
35149         * m4/libunistring.m4: New file.
35150         * MODULES.html.sh (Unicode string functions): Add it.
35151
35152 2009-04-27  Eric Blake  <ebb9@byu.net>
35153
35154         maint.mk: allow package-specific header to provide <config.h>
35155         * top/maint.mk (sc_require_config_h): New variable.
35156         (sc_require_config_h, sc_require_config_h_first): Use it.
35157
35158 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35159
35160         * top/maint.mk (sc_avoid_if_before_free): Except
35161         useless-if-before-free script.
35162
35163 2009-04-27  Eric Blake  <ebb9@byu.net>
35164
35165         maintainer-makefile: depend on all required helper scripts
35166         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35167         useless-if-before-free.
35168         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35169         version, rather than assuming gnulib checkout is available.
35170         Reported by Simen Josefsson.
35171
35172 2009-04-26  Bruno Haible  <bruno@clisp.org>
35173
35174         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35175         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35176         "../" or "..".
35177
35178 2009-04-26  Bruno Haible  <bruno@clisp.org>
35179
35180         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35181         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35182         AC_LIB_HAVE_LINKFLAGS.
35183
35184 2009-04-26  Bruno Haible  <bruno@clisp.org>
35185
35186         Simplify calling convention of u*_conv_from_encoding.
35187         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35188         u32_conv_from_encoding): Expect a resultbuf argument and return the
35189         result directly as a pointer.
35190         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35191         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35192         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35193         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35194         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35195         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35196         Update.
35197         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35198         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35199         * lib/vasnprintf.c (VASNPRINTF): Update.
35200         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35201         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35202         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35203         * NEWS: Mention the change.
35204
35205 2009-04-26  Bruno Haible  <bruno@clisp.org>
35206
35207         Simplify calling convention of u*_conv_to_encoding.
35208         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35209         u32_conv_to_encoding): Expect a resultbuf argument and return the
35210         result directly as a pointer.
35211         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35212         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35213         freeing scaled_offsets if mem_iconveha failed.
35214         * lib/unicase/u-casexfrm.h (FUNC): Update.
35215         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35216         * lib/vasnprintf.c (VASNPRINTF): Update.
35217         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35218         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35219         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35220         * NEWS: Mention the change.
35221
35222 2009-04-26  Bruno Haible  <bruno@clisp.org>
35223
35224         Avoid test failures on AIX and OSF/1.
35225         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35226         malloc(0).
35227         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35228         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35229         Likewise.
35230         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35231         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35232         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35233         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35234         * doc/posix-functions/malloc.texi: Document the portability problem
35235         related to malloc(0).
35236
35237 2009-04-26  Bruno Haible  <bruno@clisp.org>
35238
35239         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35240         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35241         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35242
35243 2009-04-25  Bruno Haible  <bruno@clisp.org>
35244
35245         Avoid link error when creating a namespace clean library.
35246         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35247         as macro with arguments if already defined as an alias.
35248         * lib/signbitf.c (gl_signbitf): Don't undefine.
35249         * lib/signbitd.c (gl_signbitd): Don't undefine.
35250         * lib/signbitl.c (gl_signbitl): Don't undefine.
35251
35252 2009-04-25  Jim Meyering  <meyering@redhat.com>
35253
35254         vc-list-files: fix another quoting bug
35255         * build-aux/vc-list-files: Avoid sed backslash expansion
35256         of pathological directory names.
35257
35258 2009-04-25  Eric Blake  <ebb9@byu.net>
35259
35260         vc-list-files: fix shell quoting error
35261         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35262         timestamp.
35263
35264 2009-04-25  Jim Meyering  <meyering@redhat.com>
35265
35266         vc-list-files: restore lost functionality with subdir argument
35267         * build-aux/vc-list-files: When given a non-"." sub-directory
35268         argument, substitute the $dir/ prefix back onto each resulting name.
35269         Otherwise, coreutils' root_tests check would fail.
35270
35271 2009-04-24  Eric Blake  <ebb9@byu.net>
35272
35273         vc-list-files: ignore git symlinks
35274         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35275         than ls-files, to ignore git symlinks.
35276
35277         maint.mk: import improvements from m4
35278         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35279         (move_if_change): Delete unused macro.
35280         (news-date-check, vc-diff-check): Support VPATH builds.
35281         (announcement): Likewise.  Split --bootstrap-tools list...
35282         (boostrap-tools): ...into separate list, which can be overridden
35283         in cfg.mk.
35284         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35285         requiring dependency on useless-if-before-free module.
35286         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35287         Support VPATH builds.
35288
35289 2009-04-24  Jim Meyering  <meyering@redhat.com>
35290
35291         maint.mk: remove coreutils-specific rules and variables
35292         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35293         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35294         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35295
35296         maint.mk: remove obsolete rule
35297         * top/maint.mk (rel-check): Remove rule.
35298         (WGET, WGETFLAGS): Remove now-unused variables.
35299
35300 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35301
35302         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35303         consistency.
35304
35305         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35306         '$(PATH_SEPARATOR)' instead of ':'.
35307
35308 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35309
35310         * lib/getopt1.c (main): Use 'const' for static array.
35311
35312 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35313
35314         * top/maint.mk: Sync with coreutils.
35315         * NEWS: Explain incompatibilities.
35316
35317 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35318             Bruno Haible  <bruno@clisp.org>
35319
35320         Fix cross-compilation results.
35321         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35322         statement, as third argument of AC_TRY_RUN.
35323         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35324         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35325         Likewise.
35326         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35327         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35328         Likewise.
35329         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35330         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35331         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35332
35333 2009-04-20  Bruno Haible  <bruno@clisp.org>
35334
35335         Avoid test failure on mingw.
35336         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35337
35338 2009-04-20  Bruno Haible  <bruno@clisp.org>
35339
35340         Avoid compilation error on mingw.
35341         * modules/localename-tests (Depends-on): Add locale.
35342
35343 2009-04-19  Bruno Haible  <bruno@clisp.org>
35344
35345         Support for building a shared library on Windows platforms.
35346         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35347         (main): Test the presence of UNINORM_NFC here.
35348         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35349         (main): Test the presence of UNINORM_NFD here.
35350         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35351         (main): Test the presence of UNINORM_NFKC here.
35352         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35353         (main): Test the presence of UNINORM_NFKD here.
35354
35355 2009-04-19  Bruno Haible  <bruno@clisp.org>
35356
35357         Avoid a compiler warning.
35358         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35359         Change type of variable 'sequence'.
35360
35361 2009-04-19  Bruno Haible  <bruno@clisp.org>
35362
35363         * modules/configmake (Makefile.am): When the contents of configmake.h
35364         does not change, arrange to preserve its modification time.
35365
35366 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35367
35368         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35369         gettext domain.
35370
35371 2009-04-16  Jim Meyering  <meyering@redhat.com>
35372
35373         useless-if-before-free: improve conversion code
35374         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35375         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35376
35377 2009-04-14  Bruno Haible  <bruno@clisp.org>
35378
35379         * modules/fcntl (Depends-on): Add extensions.
35380         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35381
35382 2009-04-12  Ben Pfaff  <blp@gnu.org>
35383
35384         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35385         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35386
35387 2009-03-20  Ben Pfaff  <blp@gnu.org>
35388
35389         Make rename replace existing destinations on Windows.
35390         * m4/rename.m4: Add test for Mingw.
35391         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35392         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35393         * doc/posix-functions/rename.texi: Document.
35394
35395 2009-04-10  Bruno Haible  <bruno@clisp.org>
35396
35397         New include file "iconveh.h".
35398         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35399         * lib/striconveh.h: Include it.
35400         (enum iconv_ilseq_handler): Remove definition.
35401         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35402         striconveh.h.
35403         * lib/striconveha.c: Include striconveh.h.
35404         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35405         * modules/striconveh (Files): Add lib/iconveh.h.
35406         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35407         lib/striconveh.h.
35408
35409 2009-04-10  Bruno Haible  <bruno@clisp.org>
35410
35411         * lib/uniconv.h: Update comment.
35412
35413 2009-04-10  Bruno Haible  <bruno@clisp.org>
35414
35415         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35416         always.
35417         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35418         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35419         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35420         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35421         "unistring-notinline.h", so that the function gets defined always.
35422         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35423         * lib/unistr/u8-uctomb.c: Likewise.
35424         * lib/unistr/u16-mbtouc.c: Likewise.
35425         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35426         * lib/unistr/u16-uctomb.c: Likewise.
35427         * lib/unistr/u32-mbtouc.c: Likewise.
35428         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35429         * lib/unistr/u32-uctomb.c: Likewise.
35430
35431 2009-04-10  Bruno Haible  <bruno@clisp.org>
35432
35433         Mark 'utime' obsolete.
35434         * modules/utime (Status, Notice): New sections.
35435         Suggested by Jim Meyering.
35436
35437         Fix cross-compile guess for utime test.
35438         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35439         autoconf.
35440         * doc/posix-functions/utime.texi: Give more precisions.
35441         Reported by Jan <ipif@ymail.com>.
35442
35443 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35444
35445         filevercmp: correct today's change
35446         * lib/filevercmp.c: Also handle coreutils' test inputs.
35447         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35448
35449         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35450         for reporting it.
35451         * lib/filevercmp.c: Special handle for "", "." and "..".
35452         * tests/test-filevercmp.c: Enlarge the set suite.
35453
35454 2009-04-07  Jim Meyering  <meyering@redhat.com>
35455
35456         useless-if-before-free: show how to remove braced useless free, too
35457         * build-aux/useless-if-before-free: still only in a comment, though.
35458
35459 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35460
35461         maint.mk: import changes to syntax-check macros from coreutils
35462         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35463         Use them in the relevant macros.
35464
35465 2009-04-06  Bruno Haible  <bruno@clisp.org>
35466
35467         Fix unportable use of bit-fields.
35468         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35469         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35470         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35471
35472 2009-04-06  Bruno Haible  <bruno@clisp.org>
35473
35474         Avoid test failures on AIX and OSF/1.
35475         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35476         that malloc(0) = NULL.
35477         * tests/unicase/test-u8-tolower.c (check): Likewise.
35478         * tests/unicase/test-u8-totitle.c (check): Likewise.
35479         * tests/unicase/test-u8-toupper.c (check): Likewise.
35480         * tests/unicase/test-u16-casefold.c (check): Likewise.
35481         * tests/unicase/test-u16-tolower.c (check): Likewise.
35482         * tests/unicase/test-u16-totitle.c (check): Likewise.
35483         * tests/unicase/test-u16-toupper.c (check): Likewise.
35484         * tests/unicase/test-u32-casefold.c (check): Likewise.
35485         * tests/unicase/test-u32-tolower.c (check): Likewise.
35486         * tests/unicase/test-u32-totitle.c (check): Likewise.
35487         * tests/unicase/test-u32-toupper.c (check): Likewise.
35488         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35489         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35490         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35491         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35492         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35493         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35494         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35495         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35496         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35497         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35498         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35499         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35500
35501 2009-04-05  Bruno Haible  <bruno@clisp.org>
35502
35503         Work around an autoconf limitation.
35504         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35505         comment line if it would be longer than 3 KB.
35506
35507 2009-04-05  Bruno Haible  <bruno@clisp.org>
35508
35509         Avoid test failure with libiconv-1.13.
35510         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35511         of the expected test results.
35512
35513 2009-04-05  Bruno Haible  <bruno@clisp.org>
35514
35515         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35516         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35517         that it should be installed.
35518
35519 2009-04-05  Bruno Haible  <bruno@clisp.org>
35520
35521         * gnulib-tool: New option --copy-file.
35522         (func_usage): Document it.
35523         (func_dest_tmpfilename): Moved out of func_import.
35524         (func_add_file, func_update_file): New functions, extracted from
35525         func_import.
35526         (func_import): Update.
35527
35528 2009-04-05  Karl Berry  <karl@gnu.org>
35529
35530         * README: prominently mention gnulib-tool.
35531         Rearrange sections so getting the code is near the top.
35532
35533 2009-04-05  Bruno Haible  <bruno@clisp.org>
35534
35535         * lib/unicase.h: Mention u*_cmp2.
35536         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35537         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35538         * lib/unicase/ulc-casecmp.c: Likewise.
35539         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35540         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35541         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35542         unistr/u8-cmp.
35543         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35544         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35545         unistr/u16-cmp.
35546         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35547         unistr/u32-cmp.
35548
35549         * lib/uninorm.h: Mention u*_cmp2.
35550         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35551         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35552         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35553         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35554         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35555         unistr/u8-cmp.
35556         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35557         unistr/u16-cmp.
35558         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35559         unistr/u32-cmp.
35560
35561         New module 'unistr/u32-cmp2'.
35562         * lib/unistr/u32-cmp2.c: New file.
35563         * modules/unistr/u32-cmp2: New file.
35564
35565         New module 'unistr/u16-cmp2'.
35566         * lib/unistr/u16-cmp2.c: New file.
35567         * modules/unistr/u16-cmp2: New file.
35568
35569         New module 'unistr/u8-cmp2'.
35570         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35571         * lib/unistr/u8-cmp2.c: New file.
35572         * lib/unistr/u-cmp2.h: New file.
35573         * modules/unistr/u8-cmp2: New file.
35574
35575 2009-04-05  Bruno Haible  <bruno@clisp.org>
35576
35577         * lib/unictype.h (uc_property_is_valid): New macro.
35578         * tests/unictype/test-pr_byname.c (main): Use it.
35579
35580         * lib/unistr.h: Doc fixes.
35581         * lib/uniconv.h: Doc fixes.
35582         * lib/unictype.h: Doc fixes.
35583
35584 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35585
35586         Port coreutils 7.2 to Solaris 8.
35587
35588         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35589         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35590         for Solaris 8.  This is a bit of a hack, as it means it's the
35591         caller's responsibility to add -lnsl if needed, but most likely it
35592         won't be needed since only getaddrinfo uses this and getaddrinfo
35593         isn't needed on Solaris 8.
35594
35595         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35596         problem to Solaris 8 encountered with coreutils 7.2, which
35597         resulted in a message "fnmatch.c:292: warning: passing argument 4
35598         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35599         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35600
35601 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35602
35603         * m4/ld-version-script.m4: Add FIXME comment.
35604
35605 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35606
35607         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35608         SOVERSION variable.
35609
35610 2009-04-02  Bruno Haible  <bruno@clisp.org>
35611
35612         * Makefile (info, html, dvi, pdf): Combine the rules.
35613         Suggested by Jim Meyering.
35614
35615 2009-04-01  Bruno Haible  <bruno@clisp.org>
35616
35617         * Makefile (info, html, dvi, pdf): New targets.
35618         Reported by Reuben Thomas <rrt@sc3d.org>.
35619
35620 2009-04-01  Bruno Haible  <bruno@clisp.org>
35621
35622         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35623         can be put into PATH.
35624         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35625
35626 2009-04-01  Bruno Haible  <bruno@clisp.org>
35627
35628         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35629
35630 2009-04-01  Bruno Haible  <bruno@clisp.org>
35631
35632         Rename module 'visibility'.
35633         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35634         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35635         * doc/gnulib.texi: Update.
35636         * MODULES.html.sh (Misc): Update.
35637         * NEWS: Mention the change.
35638
35639 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35640
35641         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35642         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35643         Eric Blake <ebb9@byu.net> for review.
35644         * MODULES.html.sh: Add lib-msvc-compat.
35645         * doc/gnulib.texi: Link to new section.
35646         * m4/ld-output-def.m4: New file.
35647         * doc/ld-output-def.texi: New file.
35648
35649 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35650
35651         Rename ld-version-script to lib-symbol-versions.  Suggested by
35652         Bruno Haible <bruno@clisp.org>.
35653         * modules/ld-version-script: Renamed to lib-symbol-versions.
35654         * doc/ld-version-script.texi: Fix module name.
35655         * MODULES.html.sh: Add lib-symbol-versions.
35656
35657 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35658
35659         * modules/u64-tests: New file.
35660         * tests/test-u64.c: New file.
35661
35662 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35663
35664         * MODULES.html.sh: Mention u64.
35665         * modules/u64: New module.
35666         * modules/crypto/sha512: Depend on u64 module instead of providing
35667         u64.h.
35668
35669 2009-03-27  Eric Blake  <ebb9@byu.net>
35670
35671         test-strerror: make debugging EAI_SYSTEM easier
35672         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35673         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35674         failure was EAI_SYSTEM.
35675
35676 2009-03-25  Bruno Haible  <bruno@clisp.org>
35677
35678         Fix a problem with --enable-relocatable on Solaris 7.
35679         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35680         since 2008-02-24.
35681
35682 2009-03-25  Eric Blake  <ebb9@byu.net>
35683
35684         test-sockets: avoid gcc warning
35685         * tests/test-sockets.c (main): Silence compiler warning.
35686
35687 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35688
35689         New modules nproc, pthread, contributed by Glen Lenker.
35690
35691         * MODULES.html.sh: Add pthread, nproc.
35692         * lib/nproc.c: New file.
35693         * lib/nproc.h: New file.
35694         * lib/pthread.in.h: New file.
35695         * m4/pthread.m4: New file.
35696         * modules/nproc: New file.
35697         * modules/pthread: New file.
35698
35699 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35700
35701         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35702         New variable.
35703
35704 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35705
35706         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35707         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35708         * tests/test-filevercmp.c: Add tests for backup suffixes.
35709
35710 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35711
35712         * modules/stdlib (Depends-on): Add stdint, needed when defining
35713         struct random_data on, for example, HP-UX 10.20.  Reported by
35714         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35715
35716 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35717
35718         * lib/readline.c (readline): Call fflush on stdout after printing
35719         prompt.
35720
35721 2009-03-20  Bruno Haible  <bruno@clisp.org>
35722
35723         Remove dependency from 'close' module to -lws2_32 on native Windows.
35724         * lib/close-hook.h: New file.
35725         * lib/close-hook.c: New file.
35726         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35727         w32sock.h.
35728         (_gl_close_fd_maybe_socket): Remove function.
35729         (rpl_close): Invoke execute_all_close_hooks instead of
35730         _gl_close_fd_maybe_socket.
35731         * lib/sockets.c: Include close-hook.h, w32sock.h.
35732         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35733         (close_sockets_hook): New variable.
35734         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35735         (gl_sockets_cleanup): Unregister it.
35736         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35737         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35738         * modules/close-hook: New file.
35739         * modules/close (Files): Remove lib/w32sock.h.
35740         (Depends-on): Add close-hook.
35741         (Link): Remove section.
35742         * modules/sockets (Files): Add lib/w32sock.h.
35743         (Depends-on): Add close-hook.
35744         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35745         invocation.
35746         * NEWS: Mention that LIB_CLOSE is gone.
35747
35748 2009-03-23  Eric Blake  <ebb9@byu.net>
35749
35750         signal-tests: test previous patch
35751         * tests/test-signal.c: New file.
35752         * modules/signal-tests: Likewise.
35753
35754         signal.h: always support 'volatile sig_atomic_t'
35755         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35756         (gl_SIGNAL_H_DEFAULTS): Add a default.
35757         * modules/signal (Makefile.am): Substitute if needed.
35758         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35759         users can blindly add volatile.
35760         * doc/posix-headers/signal.texi (signal.h): Document it.
35761         Reported by Matthew Woehlke.
35762
35763 2009-03-23  Jim Meyering  <meyering@redhat.com>
35764
35765         pathmax: PATH_MAX: use pathconf only when available
35766         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35767         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35768         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35769         This avoids a link failure in a PSP cross-compilation environment
35770         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35771
35772         * lib/vasnprintf.c (divide): Fix typo in comment.
35773
35774 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35775
35776         * gnulib-tool (func_filter_filelist): Fix comment.
35777
35778 2009-03-20  Bruno Haible  <bruno@clisp.org>
35779
35780         Make sockets.h self-contained.
35781         * lib/sockets.c: Include sockets.h first.
35782         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35783
35784 2009-03-19  Eric Blake  <ebb9@byu.net>
35785
35786         doc: mention more functions added in cygwin 1.7.0
35787         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35788         addition.
35789         * doc/posix-functions/log2f.texi: Likewise.
35790
35791 2009-03-19  Jim Meyering  <meyering@redhat.com>
35792
35793         fsusage: avoid syntax error due to statement-before-declaration
35794         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35795         after all declarations.  Reported by Matthew Woehlke in
35796         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35797
35798 2009-03-18  Eric Blake  <ebb9@byu.net>
35799
35800         build-aux/compile: sync from automake
35801         * build-aux/compile: New file, from automake.
35802         * config/srclist.txt: Mention build-aux/compile.
35803
35804 2009-03-17  Bruno Haible  <bruno@clisp.org>
35805
35806         * lib/git-merge-changelog.c: Fix typo in comment.
35807         Reported by Reuben Thomas <rrt@sc3d.org>.
35808
35809 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35810
35811         * m4/regex.m4: update and improve help for
35812         --without-included-regex.
35813
35814 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35815
35816         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35817         failure on missing include files.
35818
35819 2009-03-17  Eric Blake  <ebb9@byu.net>
35820
35821         doc: mention more functions added in cygwin 1.7.0
35822         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35823         addition.
35824         * doc/posix-functions/fwscanf.texi: Likewise.
35825         * doc/posix-functions/swprintf.texi: Likewise.
35826         * doc/posix-functions/swscanf.texi: Likewise.
35827         * doc/posix-functions/vfwprintf.texi: Likewise.
35828         * doc/posix-functions/vfwscanf.texi: Likewise.
35829         * doc/posix-functions/vswprintf.texi: Likewise.
35830         * doc/posix-functions/vswscanf.texi: Likewise.
35831         * doc/posix-functions/vwprintf.texi: Likewise.
35832         * doc/posix-functions/vwscanf.texi: Likewise.
35833         * doc/posix-functions/wcscasecmp.texi: Likewise.
35834         * doc/posix-functions/wcsdup.texi: Likewise.
35835         * doc/posix-functions/wcsftime.texi: Likewise.
35836         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35837         * doc/posix-functions/wprintf.texi: Likewise.
35838         * doc/posix-functions/wscanf.texi: Likewise.
35839         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35840
35841 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35842
35843         maint.mk: really add $(AM_MAKEFLAGS)
35844         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35845         was inadvertently omitted in the last commit.
35846         Spotted by Bruno Haible.
35847
35848         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35849         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35850         $(AM_MAKEFLAGS)' rather than plain `make'.
35851
35852         gnulib-tool: execute $MAKE not make
35853         * gnulib-tool: Default $MAKE to 'make'.
35854         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35855         than make.  Initialize $MAKE in the do-autobuild script.
35856
35857         gnulib-tool: use $MAKE not make in generated files
35858         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35859         make, in generated files.  Initialize $MAKE in the do-autobuild
35860         script.
35861
35862         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35863
35864         GNUmakefile: disable parallelism only for multiple, recursive targets
35865         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35866         additions in the Makefile.
35867         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35868         by Automake.
35869         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35870         are listed on the command line and at least one of them is
35871         listed in $(ALL_RECURSIVE_TARGETS).
35872
35873 2009-03-14  Bruno Haible  <bruno@clisp.org>
35874
35875         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35876         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35877         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35878         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35879         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35880         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35881         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35882         unistr/u8-uctomb.
35883         * modules/unistr/u8-strchr (Depends-on): Likewise.
35884         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35885         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35886         unistr/u16-uctomb.
35887         * modules/unistr/u16-strchr (Depends-on): Likewise.
35888         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35889
35890 2009-03-12  Bruno Haible  <bruno@clisp.org>
35891
35892         Work around select() bug on Interix 3.5.
35893         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35894         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35895         * m4/select.m4: New file.
35896         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35897         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35898         * modules/select (Files): Add m4/select.m4.
35899         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35900         * modules/nanosleep (Depends-on): Add select.
35901         * modules/poll (Depends-on): Likewise.
35902         * doc/posix-functions/select.texi: Mention the Interix bug.
35903         Reported by Markus Duft <mduft@gentoo.org>.
35904
35905         * lib/select.c: Renamed from lib/winsock-select.c.
35906         * modules/select (Files): Add lib/select.c, remove
35907         lib/winsock-select.c.
35908         (configure.ac): Update.
35909
35910 2009-03-12  Jim Meyering  <meyering@redhat.com>
35911
35912         avoid gcc warnings about unused macro definitions
35913         * lib/readtokens.c (STREQ): Remove unused definition.
35914         * lib/xmalloc.c (SIZE_MAX): Likewise.
35915         * lib/openat-die.c (N_): Likewise.
35916         * lib/mountlist.c (SIZE_MAX): Remove definition.
35917         Instead, include <stdint.h>.
35918         * lib/readutmp.c: Likewise.
35919         * modules/readutmp (Depends-on): Add stdint.
35920         * modules/mountlist (Depends-on): Add stdint.
35921         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35922
35923 2009-03-10  Bruno Haible  <bruno@clisp.org>
35924
35925         Tests for module 'mbmemcasecoll'.
35926         * modules/mbmemcasecoll-tests: New file.
35927         * tests/test-mbmemcasecoll1.sh: New file.
35928         * tests/test-mbmemcasecoll2.sh: New file.
35929         * tests/test-mbmemcasecoll3.sh: New file.
35930         * tests/test-mbmemcasecoll.c: New file.
35931
35932         New module 'mbmemcasecoll'.
35933         * lib/mbmemcasecoll.h: New file.
35934         * lib/mbmemcasecoll.c: New file.
35935         * modules/mbmemcasecoll: New file.
35936
35937         * tests/test-mbmemcasecmp.h: New file, extracted from
35938         tests/test-mbmemcasecmp.c.
35939         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35940         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35941         (main): Update.
35942         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35943
35944 2009-03-09  Bruno Haible  <bruno@clisp.org>
35945
35946         Tests for module 'mbmemcasecmp'.
35947         * modules/mbmemcasecmp-tests: New file.
35948         * tests/test-mbmemcasecmp1.sh: New file.
35949         * tests/test-mbmemcasecmp2.sh: New file.
35950         * tests/test-mbmemcasecmp3.sh: New file.
35951         * tests/test-mbmemcasecmp.c: New file.
35952
35953         New module 'mbmemcasecmp'.
35954         * lib/mbmemcasecmp.h: New file.
35955         * lib/mbmemcasecmp.c: New file.
35956         * modules/mbmemcasecmp: New file.
35957
35958 2009-03-09  Bruno Haible  <bruno@clisp.org>
35959
35960         Tests for module 'unicase/ulc-casecoll'.
35961         * modules/unicase/ulc-casecoll-tests: New file.
35962         * tests/unicase/test-ulc-casecoll1.sh: New file.
35963         * tests/unicase/test-ulc-casecoll2.sh: New file.
35964         * tests/unicase/test-ulc-casecoll.c: New file.
35965
35966         New module 'unicase/ulc-casecoll'.
35967         * lib/unicase.h (ulc_casecoll): New declaration.
35968         * lib/unicase/ulc-casecoll.c: New file.
35969         * modules/unicase/ulc-casecoll: New file.
35970
35971         New module 'unicase/ulc-casexfrm'.
35972         * lib/unicase.h (ulc_casexfrm): New declaration.
35973         * lib/unicase/ulc-casexfrm.c: New file.
35974         * modules/unicase/ulc-casexfrm: New file.
35975
35976 2009-03-09  Bruno Haible  <bruno@clisp.org>
35977
35978         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35979         invocations.
35980
35981         * m4/mbscasecmp.m4: Remove file.
35982         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35983         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35984
35985         * m4/mbscasestr.m4: Remove file.
35986         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35987         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35988
35989         * m4/mbschr.m4: Remove file.
35990         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35991         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35992
35993         * m4/mbscspn.m4: Remove file.
35994         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35995         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35996
35997         * m4/mbslen.m4: Remove file.
35998         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35999         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36000
36001         * m4/mbsncasecmp.m4: Remove file.
36002         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36003         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36004
36005         * m4/mbsnlen.m4: Remove file.
36006         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36007         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36008
36009         * m4/mbspbrk.m4: Remove file.
36010         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36011         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36012
36013         * m4/mbspcasecmp.m4: Remove file.
36014         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36015         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36016
36017         * m4/mbsrchr.m4: Remove file.
36018         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36019         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36020
36021         * m4/mbssep.m4: Remove file.
36022         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36023         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36024
36025         * m4/mbsspn.m4: Remove file.
36026         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36027         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36028
36029         * m4/mbsstr.m4: Remove file.
36030         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36031         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36032
36033         * m4/mbstok_r.m4: Remove file.
36034         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36035         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36036
36037         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36038
36039         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36040         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36041
36042         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36043
36044 2009-03-08  Bruno Haible  <bruno@clisp.org>
36045
36046         Tests for module 'unicase/ulc-casecmp'.
36047         * modules/unicase/ulc-casecmp-tests: New file.
36048         * tests/unicase/test-ulc-casecmp1.sh: New file.
36049         * tests/unicase/test-ulc-casecmp2.sh: New file.
36050         * tests/unicase/test-ulc-casecmp.c: New file.
36051
36052         New module 'unicase/ulc-casecmp'.
36053         * lib/unicase.h (ulc_casecmp): New declaration.
36054         * lib/unicase/ulc-casecmp.c: New file.
36055         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36056         'const SRC_UNIT *'.
36057         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36058         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36059         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36060         * modules/unicase/ulc-casecmp: New file.
36061
36062         Tests for module 'unicase/u32-is-cased'.
36063         * modules/unicase/u32-is-cased-tests: New file.
36064         * tests/unicase/test-u32-is-cased.c: New file.
36065
36066         Tests for module 'unicase/u16-is-cased'.
36067         * modules/unicase/u16-is-cased-tests: New file.
36068         * tests/unicase/test-u16-is-cased.c: New file.
36069
36070         Tests for module 'unicase/u8-is-cased'.
36071         * modules/unicase/u8-is-cased-tests: New file.
36072         * tests/unicase/test-u8-is-cased.c: New file.
36073         * tests/unicase/test-is-cased.h: New file.
36074
36075         New module 'unicase/u32-is-cased'.
36076         * lib/unicase/u32-is-cased.c: New file.
36077         * modules/unicase/u32-is-cased: New file.
36078
36079         New module 'unicase/u16-is-cased'.
36080         * lib/unicase/u16-is-cased.c: New file.
36081         * modules/unicase/u16-is-cased: New file.
36082
36083         New module 'unicase/u8-is-cased'.
36084         * lib/unicase/u8-is-cased.c: New file.
36085         * lib/unicase/u-is-cased.h: New file.
36086         * modules/unicase/u8-is-cased: New file.
36087
36088         Tests for module 'unicase/u32-is-casefolded'.
36089         * modules/unicase/u32-is-casefolded-tests: New file.
36090         * tests/unicase/test-u32-is-casefolded.c: New file.
36091
36092         Tests for module 'unicase/u16-is-casefolded'.
36093         * modules/unicase/u16-is-casefolded-tests: New file.
36094         * tests/unicase/test-u16-is-casefolded.c: New file.
36095
36096         Tests for module 'unicase/u8-is-casefolded'.
36097         * modules/unicase/u8-is-casefolded-tests: New file.
36098         * tests/unicase/test-u8-is-casefolded.c: New file.
36099         * tests/unicase/test-is-casefolded.h: New file.
36100
36101         New module 'unicase/u32-is-casefolded'.
36102         * lib/unicase/u32-is-casefolded.c: New file.
36103         * modules/unicase/u32-is-casefolded: New file.
36104
36105         New module 'unicase/u16-is-casefolded'.
36106         * lib/unicase/u16-is-casefolded.c: New file.
36107         * modules/unicase/u16-is-casefolded: New file.
36108
36109         New module 'unicase/u8-is-casefolded'.
36110         * lib/unicase/u8-is-casefolded.c: New file.
36111         * modules/unicase/u8-is-casefolded: New file.
36112
36113         Tests for module 'unicase/u32-is-titlecase'.
36114         * modules/unicase/u32-is-titlecase-tests: New file.
36115         * tests/unicase/test-u32-is-titlecase.c: New file.
36116
36117         Tests for module 'unicase/u16-is-titlecase'.
36118         * modules/unicase/u16-is-titlecase-tests: New file.
36119         * tests/unicase/test-u16-is-titlecase.c: New file.
36120
36121         Tests for module 'unicase/u8-is-titlecase'.
36122         * modules/unicase/u8-is-titlecase-tests: New file.
36123         * tests/unicase/test-u8-is-titlecase.c: New file.
36124         * tests/unicase/test-is-titlecase.h: New file.
36125
36126         New module 'unicase/u32-is-titlecase'.
36127         * lib/unicase/u32-is-titlecase.c: New file.
36128         * modules/unicase/u32-is-titlecase: New file.
36129
36130         New module 'unicase/u16-is-titlecase'.
36131         * lib/unicase/u16-is-titlecase.c: New file.
36132         * modules/unicase/u16-is-titlecase: New file.
36133
36134         New module 'unicase/u8-is-titlecase'.
36135         * lib/unicase/u8-is-titlecase.c: New file.
36136         * modules/unicase/u8-is-titlecase: New file.
36137
36138         Tests for module 'unicase/u32-is-lowercase'.
36139         * modules/unicase/u32-is-lowercase-tests: New file.
36140         * tests/unicase/test-u32-is-lowercase.c: New file.
36141
36142         Tests for module 'unicase/u16-is-lowercase'.
36143         * modules/unicase/u16-is-lowercase-tests: New file.
36144         * tests/unicase/test-u16-is-lowercase.c: New file.
36145
36146         Tests for module 'unicase/u8-is-lowercase'.
36147         * modules/unicase/u8-is-lowercase-tests: New file.
36148         * tests/unicase/test-u8-is-lowercase.c: New file.
36149         * tests/unicase/test-is-lowercase.h: New file.
36150
36151         New module 'unicase/u32-is-lowercase'.
36152         * lib/unicase/u32-is-lowercase.c: New file.
36153         * modules/unicase/u32-is-lowercase: New file.
36154
36155         New module 'unicase/u16-is-lowercase'.
36156         * lib/unicase/u16-is-lowercase.c: New file.
36157         * modules/unicase/u16-is-lowercase: New file.
36158
36159         New module 'unicase/u8-is-lowercase'.
36160         * lib/unicase/u8-is-lowercase.c: New file.
36161         * modules/unicase/u8-is-lowercase: New file.
36162
36163         Tests for module 'unicase/u32-is-uppercase'.
36164         * modules/unicase/u32-is-uppercase-tests: New file.
36165         * tests/unicase/test-u32-is-uppercase.c: New file.
36166
36167         Tests for module 'unicase/u16-is-uppercase'.
36168         * modules/unicase/u16-is-uppercase-tests: New file.
36169         * tests/unicase/test-u16-is-uppercase.c: New file.
36170
36171         Tests for module 'unicase/u8-is-uppercase'.
36172         * modules/unicase/u8-is-uppercase-tests: New file.
36173         * tests/unicase/test-u8-is-uppercase.c: New file.
36174         * tests/unicase/test-is-uppercase.h: New file.
36175
36176         New module 'unicase/u32-is-uppercase'.
36177         * lib/unicase/u32-is-uppercase.c: New file.
36178         * modules/unicase/u32-is-uppercase: New file.
36179
36180         New module 'unicase/u16-is-uppercase'.
36181         * lib/unicase/u16-is-uppercase.c: New file.
36182         * modules/unicase/u16-is-uppercase: New file.
36183
36184         New module 'unicase/u8-is-uppercase'.
36185         * lib/unicase/u8-is-uppercase.c: New file.
36186         * modules/unicase/u8-is-uppercase: New file.
36187
36188         New module 'unicase/u32-is-invariant'.
36189         * lib/unicase/u32-is-invariant.c: New file.
36190         * modules/unicase/u32-is-invariant: New file.
36191
36192         New module 'unicase/u16-is-invariant'.
36193         * lib/unicase/u16-is-invariant.c: New file.
36194         * modules/unicase/u16-is-invariant: New file.
36195
36196         New module 'unicase/u8-is-invariant'.
36197         * lib/unicase/u8-is-invariant.c: New file.
36198         * lib/unicase/invariant.h: New file.
36199         * lib/unicase/u-is-invariant.h: New file.
36200         * modules/unicase/u8-is-invariant: New file.
36201
36202         Tests for module 'unicase/u32-casecoll'.
36203         * modules/unicase/u32-casecoll-tests: New file.
36204         * tests/unicase/test-u32-casecoll.c: New file.
36205
36206         Tests for module 'unicase/u16-casecoll'.
36207         * modules/unicase/u16-casecoll-tests: New file.
36208         * tests/unicase/test-u16-casecoll.c: New file.
36209
36210         Tests for module 'unicase/u8-casecoll'.
36211         * modules/unicase/u8-casecoll-tests: New file.
36212         * tests/unicase/test-u8-casecoll.c: New file.
36213
36214         New module 'unicase/u32-casecoll'.
36215         * lib/unicase/u32-casecoll.c: New file.
36216         * modules/unicase/u32-casecoll: New file.
36217
36218         New module 'unicase/u16-casecoll'.
36219         * lib/unicase/u16-casecoll.c: New file.
36220         * modules/unicase/u16-casecoll: New file.
36221
36222         New module 'unicase/u8-casecoll'.
36223         * lib/unicase/u8-casecoll.c: New file.
36224         * lib/unicase/u-casecoll.h: New file.
36225         * modules/unicase/u8-casecoll: New file.
36226
36227         New module 'unicase/u32-casexfrm'.
36228         * lib/unicase/u32-casexfrm.c: New file.
36229         * modules/unicase/u32-casexfrm: New file.
36230
36231         New module 'unicase/u16-casexfrm'.
36232         * lib/unicase/u16-casexfrm.c: New file.
36233         * modules/unicase/u16-casexfrm: New file.
36234
36235         New module 'unicase/u8-casexfrm'.
36236         * lib/unicase/u8-casexfrm.c: New file.
36237         * lib/unicase/u-casexfrm.h: New file.
36238         * modules/unicase/u8-casexfrm: New file.
36239
36240         Tests for module 'unicase/u32-casecmp'.
36241         * modules/unicase/u32-casecmp-tests: New file.
36242         * tests/unicase/test-u32-casecmp.c: New file.
36243
36244         Tests for module 'unicase/u16-casecmp'.
36245         * modules/unicase/u16-casecmp-tests: New file.
36246         * tests/unicase/test-u16-casecmp.c: New file.
36247
36248         Tests for module 'unicase/u8-casecmp'.
36249         * modules/unicase/u8-casecmp-tests: New file.
36250         * tests/unicase/test-u8-casecmp.c: New file.
36251         * tests/unicase/test-casecmp.h: New file.
36252
36253         New module 'unicase/u32-casecmp'.
36254         * lib/unicase/u32-casecmp.c: New file.
36255         * modules/unicase/u32-casecmp: New file.
36256
36257         New module 'unicase/u16-casecmp'.
36258         * lib/unicase/u16-casecmp.c: New file.
36259         * modules/unicase/u16-casecmp: New file.
36260
36261         New module 'unicase/u8-casecmp'.
36262         * lib/unicase/u8-casecmp.c: New file.
36263         * lib/unicase/u-casecmp.h: New file.
36264         * modules/unicase/u8-casecmp: New file.
36265
36266         Tests for module 'unicase/u32-casefold'.
36267         * modules/unicase/u32-casefold-tests: New file.
36268         * tests/unicase/test-u32-casefold.c: New file.
36269
36270         Tests for module 'unicase/u16-casefold'.
36271         * modules/unicase/u16-casefold-tests: New file.
36272         * tests/unicase/test-u16-casefold.c: New file.
36273
36274         Tests for module 'unicase/u8-casefold'.
36275         * modules/unicase/u8-casefold-tests: New file.
36276         * tests/unicase/test-u8-casefold.c: New file.
36277
36278         New module 'unicase/u32-casefold'.
36279         * lib/unicase/u32-casefold.c: New file.
36280         * modules/unicase/u32-casefold: New file.
36281
36282         New module 'unicase/u16-casefold'.
36283         * lib/unicase/u16-casefold.c: New file.
36284         * modules/unicase/u16-casefold: New file.
36285
36286         New module 'unicase/u8-casefold'.
36287         * lib/unicase/u8-casefold.c: New file.
36288         * lib/unicase/u-casefold.h: New file.
36289         * modules/unicase/u8-casefold: New file.
36290
36291         New module 'unicase/tocasefold'.
36292         * lib/unicase/casefold.h: New file.
36293         * lib/unicase/tocasefold.c: New file.
36294         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36295         * modules/unicase/tocasefold: New file.
36296
36297         Tests for module 'unicase/u32-totitle'.
36298         * modules/unicase/u32-totitle-tests: New file.
36299         * tests/unicase/test-u32-totitle.c: New file.
36300
36301         Tests for module 'unicase/u16-totitle'.
36302         * modules/unicase/u16-totitle-tests: New file.
36303         * tests/unicase/test-u16-totitle.c: New file.
36304
36305         Tests for module 'unicase/u8-totitle'.
36306         * modules/unicase/u8-totitle-tests: New file.
36307         * tests/unicase/test-u8-totitle.c: New file.
36308
36309         New module 'unicase/u32-totitle'.
36310         * lib/unicase/u32-totitle.c: New file.
36311         * modules/unicase/u32-totitle: New file.
36312
36313         New module 'unicase/u16-totitle'.
36314         * lib/unicase/u16-totitle.c: New file.
36315         * modules/unicase/u16-totitle: New file.
36316
36317         New module 'unicase/u8-totitle'.
36318         * lib/unicase/u8-totitle.c: New file.
36319         * lib/unicase/u-totitle.h: New file.
36320         * modules/unicase/u8-totitle: New file.
36321
36322         Tests for module 'unicase/u32-tolower'.
36323         * modules/unicase/u32-tolower-tests: New file.
36324         * tests/unicase/test-u32-tolower.c: New file.
36325
36326         Tests for module 'unicase/u16-tolower'.
36327         * modules/unicase/u16-tolower-tests: New file.
36328         * tests/unicase/test-u16-tolower.c: New file.
36329
36330         Tests for module 'unicase/u8-tolower'.
36331         * modules/unicase/u8-tolower-tests: New file.
36332         * tests/unicase/test-u8-tolower.c: New file.
36333
36334         New module 'unicase/u32-tolower'.
36335         * lib/unicase/u32-tolower.c: New file.
36336         * modules/unicase/u32-tolower: New file.
36337
36338         New module 'unicase/u16-tolower'.
36339         * lib/unicase/u16-tolower.c: New file.
36340         * modules/unicase/u16-tolower: New file.
36341
36342         New module 'unicase/u8-tolower'.
36343         * lib/unicase/u8-tolower.c: New file.
36344         * modules/unicase/u8-tolower: New file.
36345
36346         Tests for module 'unicase/u32-toupper'.
36347         * modules/unicase/u32-toupper-tests: New file.
36348         * tests/unicase/test-u32-toupper.c: New file.
36349
36350         Tests for module 'unicase/u16-toupper'.
36351         * modules/unicase/u16-toupper-tests: New file.
36352         * tests/unicase/test-u16-toupper.c: New file.
36353
36354         Tests for module 'unicase/u8-toupper'.
36355         * modules/unicase/u8-toupper-tests: New file.
36356         * tests/unicase/test-u8-toupper.c: New file.
36357
36358         New module 'unicase/u32-toupper'.
36359         * lib/unicase/u32-toupper.c: New file.
36360         * modules/unicase/u32-toupper: New file.
36361
36362         New module 'unicase/u16-toupper'.
36363         * lib/unicase/u16-toupper.c: New file.
36364         * modules/unicase/u16-toupper: New file.
36365
36366         New module 'unicase/u8-toupper'.
36367         * lib/unicase/u8-toupper.c: New file.
36368         * modules/unicase/u8-toupper: New file.
36369
36370         New module 'unicase/u32-casemap'.
36371         * lib/unicase/u32-casemap.c: New file.
36372         * modules/unicase/u32-casemap: New file.
36373
36374         New module 'unicase/u16-casemap'.
36375         * lib/unicase/u16-casemap.c: New file.
36376         * modules/unicase/u16-casemap: New file.
36377
36378         New module 'unicase/u8-casemap'.
36379         * lib/unicase/unicasemap.h: New file.
36380         * lib/unicase/u8-casemap.c: New file.
36381         * lib/unicase/u-casemap.h: New file.
36382         * modules/unicase/u8-casemap: New file.
36383
36384         New module 'unicase/special-casing'.
36385         * lib/unicase/special-casing.h: New file.
36386         * lib/unicase/special-casing.c: New file.
36387         * lib/unicase/special-casing-table.gperf: New file, generated by
36388         gen-uni-tables.c.
36389         * modules/unicase/special-casing: New file.
36390
36391         Tests for module 'unicase/locale-language'.
36392         * modules/unicase/locale-language-tests: New file.
36393         * tests/unicase/test-locale-language.sh: New file.
36394         * tests/unicase/test-locale-language.c: New file.
36395
36396         New module 'unicase/locale-language'.
36397         * lib/unicase/locale-language.c: New file.
36398         * lib/unicase/locale-languages.gperf: New file.
36399         * modules/unicase/locale-language: New file.
36400
36401         Generate more tables for case conversion and case folding.
36402         * lib/gen-uni-tables.c (SCC_*): New enum items.
36403         (struct special_casing_rule): New type.
36404         (casing_rules, num_casing_rules, allocated_casing_rules): New
36405         variables.
36406         (add_casing_rule, fill_casing_rules): New functions.
36407         (struct casefold_rule): New type.
36408         (casefolding_rules, num_casefolding_rules,
36409         allocated_casefolding_rules): New variables.
36410         (fill_casefolding_rules): New function.
36411         (unicode_casefold): New variable.
36412         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36413         sort_casing_rules, output_casing_rules): New functions.
36414         (main): Accept to more arguments: SpecialCasing.txt and
36415         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36416         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36417         Output mapping for casefolding.
36418
36419         * lib/unicase.h: Include stdbool.h, uninorm.h.
36420         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36421         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36422         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36423         arguments.
36424         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36425         resultp arguments.
36426         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36427         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36428         resultp arguments.
36429         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36430         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36431         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36432         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36433         declarations.
36434         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36435
36436 2009-03-08  Bruno Haible  <bruno@clisp.org>
36437
36438         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36439         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36440         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36441         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36442
36443 2009-03-07  Bruno Haible  <bruno@clisp.org>
36444
36445         Adjust u*_normcmp, u*_normcoll API.
36446         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36447         u16_normcoll, u32_normcoll): Change failure conventions.
36448         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36449         errno and return -1.
36450         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36451
36452 2009-03-07  Bruno Haible  <bruno@clisp.org>
36453
36454         Tests for module 'uninorm/u32-normcoll'.
36455         * modules/uninorm/u32-normcoll-tests: New file.
36456         * tests/uninorm/test-u32-normcoll.c: New file.
36457
36458         Tests for module 'uninorm/u16-normcoll'.
36459         * modules/uninorm/u16-normcoll-tests: New file.
36460         * tests/uninorm/test-u16-normcoll.c: New file.
36461
36462         Tests for module 'uninorm/u8-normcoll'.
36463         * modules/uninorm/u8-normcoll-tests: New file.
36464         * tests/uninorm/test-u8-normcoll.c: New file.
36465
36466 2009-03-07  Bruno Haible  <bruno@clisp.org>
36467
36468         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36469         tests/uninorm/test-u32-normcmp.c.
36470         * tests/uninorm/test-u32-normcmp.c: Include it.
36471         (test_nonascii): New function, extracted from main. Add some more
36472         tests.
36473         (main): Invoke test_ascii and test_nonascii.
36474         * modules/uninorm/u32-normcmp-tests (Files): Add
36475         tests/uninorm/test-u32-normcmp.h.
36476         (Depends-on): Remove uninorm/u32-normcmp.
36477
36478         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36479         tests/uninorm/test-u16-normcmp.c.
36480         * tests/uninorm/test-u16-normcmp.c: Include it.
36481         (test_nonascii): New function, extracted from main. Add some more
36482         tests.
36483         (main): Invoke test_ascii and test_nonascii.
36484         * modules/uninorm/u16-normcmp-tests (Files): Add
36485         tests/uninorm/test-u16-normcmp.h.
36486         (Depends-on): Remove uninorm/u16-normcmp.
36487
36488         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36489         tests/uninorm/test-u8-normcmp.c.
36490         * tests/uninorm/test-u8-normcmp.c: Include it.
36491         (test_nonascii): New function, extracted from main. Add some more
36492         tests.
36493         (main): Invoke test_ascii and test_nonascii.
36494         * modules/uninorm/u8-normcmp-tests (Files): Add
36495         tests/uninorm/test-u8-normcmp.h.
36496         (Depends-on): Remove uninorm/u8-normcmp.
36497
36498 2009-03-07  Bruno Haible  <bruno@clisp.org>
36499
36500         New module 'uninorm/u32-normcoll'.
36501         * lib/uninorm/u32-normcoll.c: New file.
36502         * modules/uninorm/u32-normcoll: New file.
36503
36504         New module 'uninorm/u16-normcoll'.
36505         * lib/uninorm/u16-normcoll.c: New file.
36506         * modules/uninorm/u16-normcoll: New file.
36507
36508         New module 'uninorm/u8-normcoll'.
36509         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36510         declarations.
36511         * lib/uninorm/u8-normcoll.c: New file.
36512         * lib/uninorm/u-normcoll.h: New file.
36513         * modules/uninorm/u8-normcoll: New file.
36514
36515         New module 'uninorm/u32-normxfrm'.
36516         * lib/uninorm/u32-normxfrm.c: New file.
36517         * modules/uninorm/u32-normxfrm: New file.
36518
36519         New module 'uninorm/u16-normxfrm'.
36520         * lib/uninorm/u16-normxfrm.c: New file.
36521         * modules/uninorm/u16-normxfrm: New file.
36522
36523         New module 'uninorm/u8-normxfrm'.
36524         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36525         declarations.
36526         * lib/uninorm/u8-normxfrm.c: New file.
36527         * lib/uninorm/u-normxfrm.h: New file.
36528         * modules/uninorm/u8-normxfrm: New file.
36529
36530 2009-03-07  Bruno Haible  <bruno@clisp.org>
36531
36532         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36533         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36534         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36535
36536 2009-03-07  Bruno Haible  <bruno@clisp.org>
36537
36538         New module 'memxfrm'.
36539         * lib/memxfrm.h: New file.
36540         * lib/memxfrm.c: New file.
36541         * modules/memxfrm: New file.
36542
36543 2009-03-07  Bruno Haible  <bruno@clisp.org>
36544
36545         New module 'memcmp2'.
36546         * lib/memcmp2.h: New file.
36547         * lib/memcmp2.c: New file.
36548         * modules/memcmp2: New file.
36549
36550 2009-03-07  Bruno Haible  <bruno@clisp.org>
36551
36552         Tests for module 'uninorm/decomposing-form'.
36553         * modules/uninorm/decomposing-form-tests: New file.
36554         * tests/uninorm/test-decomposing-form.c: New file.
36555
36556         New module 'uninorm/decomposing-form'.
36557         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36558         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36559         Add 'decomposing_variant' field.
36560         * lib/uninorm/decomposing-form.c: New file.
36561         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36562         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36563         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36564         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36565         * modules/uninorm/decomposing-form: New file.
36566         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36567         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36568
36569 2009-03-07  Bruno Haible  <bruno@clisp.org>
36570
36571         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36572         strings.
36573
36574 2009-03-06  Bruno Haible  <bruno@clisp.org>
36575
36576         Tests for module 'uninorm/u32-normcmp'.
36577         * tests/uninorm/test-u32-normcmp.c: New file.
36578         * modules/uninorm/u32-normcmp-tests: New file.
36579
36580         Tests for module 'uninorm/u16-normcmp'.
36581         * tests/uninorm/test-u16-normcmp.c: New file.
36582         * modules/uninorm/u16-normcmp-tests: New file.
36583
36584         Tests for module 'uninorm/u8-normcmp'.
36585         * tests/uninorm/test-u8-normcmp.c: New file.
36586         * modules/uninorm/u8-normcmp-tests: New file.
36587
36588         New module 'uninorm/u32-normcmp'.
36589         * lib/uninorm/u32-normcmp.c: New file.
36590         * modules/uninorm/u32-normcmp: New file.
36591
36592         New module 'uninorm/u16-normcmp'.
36593         * lib/uninorm/u16-normcmp.c: New file.
36594         * modules/uninorm/u16-normcmp: New file.
36595
36596         New module 'uninorm/u8-normcmp'.
36597         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36598         declarations.
36599         * lib/uninorm/u8-normcmp.c: New file.
36600         * lib/uninorm/u-normcmp.h: New file.
36601         * modules/uninorm/u8-normcmp: New file.
36602
36603 2009-03-06  Bruno Haible  <bruno@clisp.org>
36604
36605         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36606         Reported by Eric Blake.
36607
36608 2009-03-06  Eric Blake  <ebb9@byu.net>
36609             Bruno Haible  <bruno@clisp.org>
36610
36611         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36612         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36613         condition.
36614         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36615         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36616         condition.
36617         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36618
36619 2009-03-06  Eric Blake  <ebb9@byu.net>
36620
36621         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36622         to avoid compiler warnings.
36623         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36624
36625 2009-03-05  Bruno Haible  <bruno@clisp.org>
36626
36627         * tests/test-ftell.c (main): Disable test beyond end of file on
36628         FreeMiNT.
36629         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36630
36631 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36632
36633         * lib/filevercmp.c: Move hidden files up in ordering.
36634         * tests/test-filevercmp.c: Add tests for hidden files.
36635
36636 2009-03-04  Bruno Haible  <bruno@clisp.org>
36637
36638         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36639         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36640         AM_CFLAGS.
36641         Reported by Simon Josefsson.
36642
36643 2009-03-03  Bruno Haible  <bruno@clisp.org>
36644
36645         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36646         Reported by Simon Josefsson.
36647
36648         * doc/ld-version-script.texi: Update node reference.
36649
36650 2009-03-03  Bruno Haible  <bruno@clisp.org>
36651
36652         * modules/visibility (License): Change to 'unlimited'.
36653         Suggested by Simon Josefsson.
36654
36655 2009-03-03  Jim Meyering  <meyering@redhat.com>
36656
36657         unlinkdir: cannot_unlink_dir may modify process state
36658         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36659         it's neither thread-safe nor appropriate for use in a library.
36660
36661 2009-03-03  Eric Blake  <ebb9@byu.net>
36662
36663         test-closein: silence test under Darwin
36664         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36665         care if it dies from EPIPE or EBADF.
36666
36667 2009-03-03  Bruno Haible  <bruno@clisp.org>
36668
36669         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36670         earlier.
36671         * doc/visibility.texi: Fix @node and @section.
36672
36673 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36674
36675         * doc/gnulib.texi: Link to sections for ld version script and
36676         visibility.
36677         * doc/visibility.texi: Add @node and @section.
36678         * modules/ld-version-script: New module.
36679         * m4/ld-version-script.m4: New file.
36680         * doc/ld-version-script.texi: New file.
36681
36682 2009-03-02  David Lutterkort  <lutter@redhat.com>
36683
36684         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36685         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36686
36687 2009-03-02  Bruno Haible  <bruno@clisp.org>
36688
36689         * doc/visibility.texi: Mention libtool's -export-symbols option.
36690
36691 2009-03-02  Jim Meyering  <meyering@redhat.com>
36692
36693         announce-gen: new option: --no-print-checksums
36694         * build-aux/announce-gen (usage): Describe it.
36695         (print_checksums): Print a newline here, not in the [*] footnote.
36696         (main): Honor it.
36697
36698 2009-03-01  Bruno Haible  <bruno@clisp.org>
36699
36700         Use socklen_t in the native Windows replacements prototypes.
36701         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36702         instead of 'int'.
36703         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36704         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36705         * modules/getsockopt (Depends-on): Add socklen.
36706         * modules/setsockopt (Depends-on): Add socklen.
36707
36708 2009-03-01  Bruno Haible  <bruno@clisp.org>
36709
36710         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36711         least 4.2.
36712
36713 2009-03-01  Eric Blake  <ebb9@byu.net>
36714             Bruno Haible  <bruno@clisp.org>
36715
36716         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36717         error messages.
36718         * lib/wait-process.c (wait_subprocess): Omit error message about
36719         deadly signal sent to the child of termsigp != NULL.
36720
36721 2009-03-01  Eric Blake  <ebb9@byu.net>
36722
36723         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36724
36725 2009-03-01  Bruno Haible  <bruno@clisp.org>
36726
36727         Avoid a gcc warning.
36728         * tests/test-sched.c (b): Make global.
36729         Reported by Eric Blake.
36730
36731 2009-01-19  Martin Lambers  <marlam@marlam.de>
36732
36733         Provide POSIX semantics for socket timeout options on W32.
36734         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36735         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36736         * modules/setsockopt: Depend on sys_time module for struct timeval.
36737         * modules/getsockopt: Depend on sys_time module for struct timeval.
36738
36739 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36740
36741         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36742         __USE_GNU, for consistency with netdb.in.h.
36743         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36744
36745 2009-03-01  Bruno Haible  <bruno@clisp.org>
36746
36747         More support for FreeMiNT.
36748         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36749         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36750
36751 2009-03-01  Bruno Haible  <bruno@clisp.org>
36752
36753         More support for FreeMiNT.
36754         * lib/fpurge.c (fpurge): Correct last commit.
36755         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36756
36757 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36758
36759         Fix unportable awk script in vc-list-files.
36760         * build-aux/vc-list-files: In the replacement awk script, use
36761         substr with a second argument of 1, not zero.
36762         Report by Simon Josefsson.
36763
36764 2009-02-28  Bruno Haible  <bruno@clisp.org>
36765
36766         More support for FreeMiNT.
36767         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36768         to FreeMiNT today.
36769         * lib/fwriting.c (fwriting): Likewise.
36770         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36771
36772 2009-02-28  Bruno Haible  <bruno@clisp.org>
36773
36774         * tests/test-freadseek.c (main): Disable test beyond end of file on
36775         FreeMiNT.
36776         * tests/test-ftello.c (main): Likewise.
36777         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36778
36779 2009-02-28  Bruno Haible  <bruno@clisp.org>
36780
36781         Add tentative support for FreeMiNT.
36782         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36783         * lib/fpurge.c (fpurge): Likewise.
36784         * lib/freadable.c (freadable): Likewise.
36785         * lib/freading.c (freading): Likewise.
36786         * lib/freadptr.c (freadptr): Likewise.
36787         * lib/freadseek.c (freadptrinc): Likewise.
36788         * lib/fseeko.c (rpl_fseeko): Likewise.
36789         * lib/fseterr.c (fseterr): Likewise.
36790         * lib/fwritable.c (fwritable): Likewise.
36791         * lib/fwriting.c (fwriting): Likewise.
36792         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36793         Hourihane.
36794         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36795
36796 2009-02-28  Bruno Haible  <bruno@clisp.org>
36797
36798         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36799         SIGCHLD.
36800         Reported by Jim Meyering.
36801
36802 2009-02-28  Bruno Haible  <bruno@clisp.org>
36803
36804         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36805         Mention the results of these tests on various platforms.
36806         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36807         order.
36808         * doc/posix-functions/printf.texi: Likewise.
36809         * doc/posix-functions/snprintf.texi: Likewise.
36810         * doc/posix-functions/sprintf.texi: Likewise.
36811         * doc/posix-functions/vfprintf.texi: Likewise.
36812         * doc/posix-functions/vprintf.texi: Likewise.
36813         * doc/posix-functions/vsnprintf.texi: Likewise.
36814         * doc/posix-functions/vsprintf.texi: Likewise.
36815         * doc/glibc-functions/obstack_printf.texi: Likewise.
36816         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36817
36818 2009-02-28  Bruno Haible  <bruno@clisp.org>
36819
36820         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36821         Reported by Loïc Minier <lool@dooz.org>.
36822
36823 2009-02-27  Bruno Haible  <bruno@clisp.org>
36824
36825         * gnulib-tool (func_import): Make the sed expression used to create the
36826         sed script for updating the .gitignore file POSIX compliant.
36827         Reported by Eric Blake.
36828
36829 2009-02-27  Bruno Haible  <bruno@clisp.org>
36830
36831         * gnulib-tool (sed): Don't alias as "sed --posix".
36832         Reported by Eric Blake.
36833
36834 2009-02-27  Bruno Haible  <bruno@clisp.org>
36835
36836         Avoid test link errors.
36837         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36838         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36839         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36840         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36841         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36842
36843 2009-02-27  Bruno Haible  <bruno@clisp.org>
36844
36845         Avoid spurious "(cached)" in configure output.
36846         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36847         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36848         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36849         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36850         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36851         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36852         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36853         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36854         Reported by Eric Blake.
36855
36856 2009-02-27  Eric Blake  <ebb9@byu.net>
36857
36858         printf: fix regression in previous patch
36859         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36860
36861 2009-02-27  Bruno Haible  <bruno@clisp.org>
36862
36863         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36864         value.
36865         * lib/stdint.in.h: Likewise.
36866         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36867
36868 2009-02-27  Eric Blake  <ebb9@byu.net>
36869
36870         doc: mention more functions added in cygwin 1.7.0
36871         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36872         addition.
36873         * doc/posix-functions/open_wmemstream.texi: Likewise.
36874         * doc/posix-functions/wcsnlen.texi: Likewise.
36875         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36876         * doc/posix-functions/wcstod.texi: Likewise.
36877         * doc/posix-functions/wcstof.texi: Likewise.
36878         * doc/posix-functions/wcstoimax.texi: Likewise.
36879         * doc/posix-functions/wcstok.texi: Likewise.
36880         * doc/posix-functions/wcstoumax.texi: Likewise.
36881
36882         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36883         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36884         * doc/posix-functions/fprintf.texi: Update.
36885         * doc/posix-functions/printf.texi: Update.
36886         * doc/posix-functions/snprintf.texi: Update.
36887         * doc/posix-functions/sprintf.texi: Update.
36888         * doc/posix-functions/vfprintf.texi: Update.
36889         * doc/posix-functions/vprintf.texi: Update.
36890         * doc/posix-functions/vsnprintf.texi: Update.
36891         * doc/posix-functions/vsprintf.texi: Update.
36892         * doc/glibc-functions/obstack_printf.texi: Update.
36893         * doc/glibc-functions/obstack_vprintf.texi: Update.
36894
36895 2009-02-26  Eric Blake  <ebb9@byu.net>
36896
36897         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36898         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36899         compilation bug by using runtime conversion.
36900         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36901         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36902         * modules/ceill-tests (Files): Use nan.h.
36903         * modules/floorl-tests (Files): Likewise.
36904         * modules/frexpl-tests (Files): Likewise.
36905         * modules/isnanl-tests (Files): Likewise.
36906         * modules/ldexpl-tests (Files): Likewise.
36907         * modules/roundl-tests (Files): Likewise.
36908         * modules/truncl-tests (Files): Likewise.
36909         * tests/test-ceill.c (main): Use a working NaN.
36910         * tests/test-floorl.c (main): Likewise.
36911         * tests/test-frexpl.c (main): Likewise.
36912         * tests/test-isnan.c (test_long_double): Likewise.
36913         * tests/test-isnanl.h (main): Likewise.
36914         * tests/test-ldexpl.h (main): Likewise.
36915         * tests/test-roundl.h (main): Likewise.
36916         * tests/test-truncl.h (main): Likewise.
36917         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36918
36919 2009-02-26  Eric Blake  <ebb9@byu.net>
36920             Bruno Haible  <bruno@clisp.org>
36921
36922         Work around a *printf bug with %ls on Solaris.
36923         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36924         precision is specified, sprintf stops converting the wide string
36925         argument when the number of bytes that have been produced by this
36926         conversion equals or exceeds the precision.
36927         * doc/posix-functions/fprintf.texi: Update.
36928         * doc/posix-functions/printf.texi: Update.
36929         * doc/posix-functions/snprintf.texi: Update.
36930         * doc/posix-functions/sprintf.texi: Update.
36931         * doc/posix-functions/vfprintf.texi: Update.
36932         * doc/posix-functions/vprintf.texi: Update.
36933         * doc/posix-functions/vsnprintf.texi: Update.
36934         * doc/posix-functions/vsprintf.texi: Update.
36935         * doc/glibc-functions/obstack_printf.texi: Update.
36936         * doc/glibc-functions/obstack_vprintf.texi: Update.
36937
36938 2009-02-26  Eric Blake  <ebb9@byu.net>
36939
36940         stdlib: favor compiler check of random.h
36941         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36942         to avoid an ObjC random.h installed by Swarm.
36943
36944 2009-02-26  Bruno Haible  <bruno@clisp.org>
36945
36946         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36947         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36948         Reported by Gary V. Vaughan <gary@gnu.org>.
36949
36950 2009-02-26  Bruno Haible  <bruno@clisp.org>
36951
36952         Fix *printf behaviour regarding the %ls directive.
36953         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36954         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36955         NEED_PRINTF_DIRECTIVE_LS.
36956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36957         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36958         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36959         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36960         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36961         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36962         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36967         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36968         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36969         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36970         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36971         * doc/posix-functions/fprintf.texi: Update.
36972         * doc/posix-functions/printf.texi: Update.
36973         * doc/posix-functions/snprintf.texi: Update.
36974         * doc/posix-functions/sprintf.texi: Update.
36975         * doc/posix-functions/vfprintf.texi: Update.
36976         * doc/posix-functions/vprintf.texi: Update.
36977         * doc/posix-functions/vsnprintf.texi: Update.
36978         * doc/posix-functions/vsprintf.texi: Update.
36979         * doc/glibc-functions/obstack_printf.texi: Update.
36980         * doc/glibc-functions/obstack_vprintf.texi: Update.
36981         Reported by Eric Blake.
36982
36983 2009-02-25  Bruno Haible  <bruno@clisp.org>
36984
36985         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36986         with known value.
36987         Reported by Gary V. Vaughan <gary@gnu.org>.
36988
36989 2009-02-25  Bruno Haible  <bruno@clisp.org>
36990
36991         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36992         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36993         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36994         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36995         Reported by Gary V. Vaughan <gary@gnu.org>.
36996
36997 2009-02-25  Bruno Haible  <bruno@clisp.org>
36998
36999         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37000         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37001         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37002         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37003         Reported by Gary V. Vaughan <gary@gnu.org>.
37004
37005 2009-02-25  Eric Blake  <ebb9@byu.net>
37006
37007         tests: skip fseek/ftell tests if ungetc is broken
37008         * m4/ungetc.m4: New file.
37009         * modules/fseek-tests: Split test, so ungetc dependency is
37010         separate from rest of test.
37011         * modules/fseeko-tests: Likewise.
37012         * modules/ftell-tests: Likewise.
37013         * modules/ftello-tests: Likewise.
37014         * tests/test-fseek.c (main): Isolate ungetc dependency.
37015         * tests/test-fseeko.c (main): Likewise.
37016         * tests/test-ftell.c (main): Likewise.
37017         * tests/test-ftello.c (main): Likewise.
37018         * tests/test-fseek2.sh: New file.
37019         * tests/test-fseeko2.sh: Likewise.
37020         * tests/test-ftell2.sh: Likewise.
37021         * tests/test-ftello2.sh: Likewise.
37022
37023 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37024
37025         test-getaddrinfo: fix usage of skip return code 77
37026         * tests/test-gettaddrinfo.c: Return skip code 77 only
37027         for first occurance of skip (4x77 is not 77)
37028
37029 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37030
37031         strtod: avoid C99 decl-after-statement
37032         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37033
37034 2009-02-24  Eric Blake  <ebb9@byu.net>
37035
37036         strtod: detect HP-UX 11.31 bug
37037         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37038         Reported by Gary V. Vaughan.
37039
37040 2009-02-23  Bruno Haible  <bruno@clisp.org>
37041
37042         Fix invalid read past end of memory block.
37043         * lib/vasnprintf.c (DCHAR_SET): Define.
37044         (local_wcslen): Define only when needed.
37045         (local_strnlen, local_wcsnlen): New functions.
37046         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37047         directives that involve a conversion ourselves.
37048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37049         wcsnlen, mbrtowc, wcrtomb.
37050         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37051         * tests/test-vasprintf-posix.c (test_function): Likewise.
37052         * tests/test-snprintf-posix.h (test_function): Likewise.
37053         * tests/test-sprintf-posix.h (test_function): Likewise.
37054         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37055
37056 2009-02-22  Bruno Haible  <bruno@clisp.org>
37057
37058         Implement new clarified decomposition of Hangul syllables.
37059         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37060         of type LTV, return only a pairwise decomposition.
37061         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37062         Likewise.
37063         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37064         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37065         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37066
37067 2009-02-22  Bruno Haible  <bruno@clisp.org>
37068
37069         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37070         zero-length results and shrink excess allocated memory.
37071         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37072         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37073         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37074         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37075         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37076         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37077         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37078         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37079         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37080         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37081         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37082         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37083
37084 2009-02-21  Bruno Haible  <bruno@clisp.org>
37085
37086         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37087         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37088         spaces after a period. Put a space between a macro name and its
37089         argument list. Trivial rewordings.
37090         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37091         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37092         (main): Return 0 explicitly.
37093
37094 2009-02-21  Bruno Haible  <bruno@clisp.org>
37095
37096         Tests for module 'uninorm/filter'.
37097         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37098         * modules/uninorm/filter-tests: New file.
37099
37100         New module 'uninorm/filter'.
37101         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37102         uninorm_filter_flush, uninorm_filter_free): New declarations.
37103         * lib/uninorm/uninorm-filter.c: New file.
37104         * modules/uninorm/filter: New file.
37105
37106 2009-02-21  Bruno Haible  <bruno@clisp.org>
37107
37108         Tests for module 'uninorm/nfkc'.
37109         * tests/uninorm/test-nfkc.c: New file.
37110         * tests/uninorm/test-u8-nfkc.c: New file.
37111         * tests/uninorm/test-u16-nfkc.c: New file.
37112         * tests/uninorm/test-u32-nfkc.c: New file.
37113         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37114         * tests/uninorm/test-u32-nfkc-big.c: New file.
37115         * modules/uninorm/nfkc-tests: New file.
37116
37117         New module 'uninorm/nfkc'.
37118         * lib/uninorm/nfkc.c: New file.
37119         * modules/uninorm/nfkc: New file.
37120
37121         Tests for module 'uninorm/nfkd'.
37122         * tests/uninorm/test-nfkd.c: New file.
37123         * tests/uninorm/test-u8-nfkd.c: New file.
37124         * tests/uninorm/test-u16-nfkd.c: New file.
37125         * tests/uninorm/test-u32-nfkd.c: New file.
37126         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37127         * tests/uninorm/test-u32-nfkd-big.c: New file.
37128         * modules/uninorm/nfkd-tests: New file.
37129
37130         New module 'uninorm/nfkd'.
37131         * lib/uninorm/nfkd.c: New file.
37132         * modules/uninorm/nfkd: New file.
37133
37134         Tests for module 'uninorm/nfc'.
37135         * tests/uninorm/test-nfc.c: New file.
37136         * tests/uninorm/test-u8-nfc.c: New file.
37137         * tests/uninorm/test-u16-nfc.c: New file.
37138         * tests/uninorm/test-u32-nfc.c: New file.
37139         * tests/uninorm/test-u32-nfc-big.sh: New file.
37140         * tests/uninorm/test-u32-nfc-big.c: New file.
37141         * modules/uninorm/nfc-tests: New file.
37142
37143         New module 'uninorm/nfc'.
37144         * lib/uninorm/nfc.c: New file.
37145         * modules/uninorm/nfc: New file.
37146
37147         Tests for module 'uninorm/nfd'.
37148         * tests/uninorm/test-nfd.c: New file.
37149         * tests/uninorm/test-u8-nfd.c: New file.
37150         * tests/uninorm/test-u16-nfd.c: New file.
37151         * tests/uninorm/test-u32-nfd.c: New file.
37152         * tests/uninorm/test-u32-nfd-big.sh: New file.
37153         * tests/uninorm/test-u32-nfd-big.c: New file.
37154         * tests/uninorm/test-u32-normalize-big.h: New file.
37155         * tests/uninorm/test-u32-normalize-big.c: New file.
37156         * tests/uninorm/NormalizationTest.txt: New file, created from
37157         Unicode 5.1.0 NormalizationTest.txt.
37158         * modules/uninorm/nfd-tests: New file.
37159
37160         New module 'uninorm/nfd'.
37161         * lib/uninorm/nfd.c: New file.
37162         * modules/uninorm/nfd: New file.
37163
37164         New module 'uninorm/u32-normalize'.
37165         * lib/uninorm/u32-normalize.c: New file.
37166         * modules/uninorm/u32-normalize: New file.
37167
37168         New module 'uninorm/u16-normalize'.
37169         * lib/uninorm/u16-normalize.c: New file.
37170         * modules/uninorm/u16-normalize: New file.
37171
37172         New module 'uninorm/u8-normalize'.
37173         * lib/uninorm/u8-normalize.c: New file.
37174         * lib/uninorm/normalize-internal.h: New file.
37175         * lib/uninorm/u-normalize-internal.h: New file.
37176         * modules/uninorm/u8-normalize: New file.
37177
37178         New module 'uninorm/decompose-internal'.
37179         * lib/uninorm/decompose-internal.c: New file.
37180         * modules/uninorm/decompose-internal: New file.
37181
37182         Tests for module 'uninorm/composition'.
37183         * tests/uninorm/test-composition.c: New file.
37184         * modules/uninorm/composition-tests: New file.
37185
37186         New module 'uninorm/composition'.
37187         * lib/uninorm/composition.c: New file.
37188         * lib/uninorm/composition-table.gperf: New file, generated by
37189         gen-uni-tables.
37190         * modules/uninorm/composition: New file.
37191
37192         Tests for module 'uninorm/compat-decomposition'.
37193         * tests/uninorm/test-compat-decomposition.c: New file.
37194         * modules/uninorm/compat-decomposition-tests: New file.
37195
37196         New module 'uninorm/compat-decomposition'.
37197         * lib/uninorm/decompose-internal.h: New file.
37198         * lib/uninorm/compat-decomposition.c: New file.
37199         * modules/uninorm/compat-decomposition: New file.
37200
37201         Tests for module 'uninorm/canonical-decomposition'.
37202         * tests/uninorm/test-canonical-decomposition.c: New file.
37203         * modules/uninorm/canonical-decomposition-tests: New file.
37204
37205         New module 'uninorm/canonical-decomposition'.
37206         * lib/uninorm/canonical-decomposition.c: New file.
37207         * modules/uninorm/canonical-decomposition: New file.
37208
37209         Tests for module 'uninorm/decomposition'.
37210         * tests/uninorm/test-decomposition.c: New file.
37211         * modules/uninorm/decomposition-tests: New file.
37212
37213         New module 'uninorm/decomposition'.
37214         * lib/uninorm/decomposition.c: New file.
37215         * modules/uninorm/decomposition: New file.
37216
37217         New module 'uninorm/decomposition-table'.
37218         * lib/uninorm/decomposition-table.h: New file.
37219         * lib/uninorm/decomposition-table.c: New file.
37220         * lib/uninorm/decomposition-table1.h: New file, generated by
37221         gen-uni-tables.
37222         * lib/uninorm/decomposition-table2.h: New file, generated by
37223         gen-uni-tables.
37224         * modules/uninorm/decomposition-table: New file.
37225
37226         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37227         (UC_DECOMP_*): New enumeration items.
37228         (get_decomposition): New function.
37229         (struct decomp_table): New type.
37230         (output_decomposition, output_decomposition_tables): New functions.
37231         (unicode_composition_exclusions): New variable.
37232         (fill_composition_exclusions, debug_output_composition_tables): New
37233         functions.
37234         (main): Accept one more argument. Invoke fill_composition_exclusions.
37235         Output decomposition and composition tables.
37236
37237         New module 'uninorm/base'.
37238         * lib/uninorm.h: New file.
37239         * lib/unictype.h: Update comment.
37240         * modules/uninorm/base: New file.
37241
37242 2009-02-21  David Lutterkort  <lutter@redhat.com>
37243
37244         Tests for module 'safe-alloc'.
37245         * tests/test-safe-alloc.c: New file.
37246         * modules/safe-alloc-tests: New file.
37247
37248         New module 'safe-alloc'.
37249         * lib/safe-alloc.h: New file.
37250         * lib/safe-alloc.c: New file.
37251         * m4/safe-alloc.m4: New file.
37252         * modules/safe-alloc: New file.
37253         * doc/safe-alloc.texi: New file.
37254         * doc/gnulib.texi: Include it.
37255         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37256         safe-alloc.
37257
37258 2009-02-18  Bruno Haible  <bruno@clisp.org>
37259
37260         Fix link error on non-glibc systems.
37261         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37262         variable.
37263         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37264
37265 2009-02-18  Jim Meyering  <meyering@redhat.com>
37266
37267         fts: avoid used-uninitialized error due to recent change
37268         * lib/fts.c (fts_read): Guard uses of the new member,
37269         parent->fts_n_dirs_remaining, since it's not relevant for
37270         the parent of a directory specified on the command-line.
37271
37272 2009-02-17  James Youngman  <jay@gnu.org>
37273             Bruno Haible  <bruno@clisp.org>
37274
37275         * m4/include_next.m4: Reformulate comment.
37276
37277 2009-02-16  Jim Meyering  <meyering@redhat.com>
37278
37279         fts: add #if guards so that the fts_lgpl module still builds
37280         * lib/fts.c: Guard just-added hash-table-using parts with
37281         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37282         Reported by Simon Josefsson.
37283
37284 2009-02-15  Bruno Haible  <bruno@clisp.org>
37285
37286         * modules/array-mergesort-tests: New file.
37287         * tests/test-array-mergesort.c: New file.
37288
37289         New module 'array-mergesort'.
37290         * modules/array-mergesort: New file.
37291         * lib/array-mergesort.h: New file.
37292
37293 2009-02-15  Bruno Haible  <bruno@clisp.org>
37294
37295         Fix 2009-02-07 commit.
37296         * lib/gen-uni-tables.c (output_predicate, output_category,
37297         output_combclass, output_bidi_category, output_decimal_digit,
37298         output_digit, output_numeric, output_mirror, output_scripts,
37299         output_ident_category, output_simple_mapping): Fix format directives.
37300         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37301
37302 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37303
37304         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37305         fixes are available from IBM.
37306
37307 2009-02-13  Jim Meyering  <meyering@redhat.com>
37308
37309         fts: arrange not to stat non-directories in more cases
37310         This makes GNU find (when it doesn't need to stat each file)
37311         *much* more efficient at traversing reiserfs file systems.
37312         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37313         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37314         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37315         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37316         (leaf_optimization_applies): New function.
37317         (LCO_hash, LCO_compare): New helper functions.
37318         (link_count_optimize_ok): New function.
37319         (fts_stat): Initialize new member (if dir).
37320         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37321         we've just stat'ed a directory.  Skip the stat call when possible.
37322         ---
37323         Note this AFS-related exchange:
37324         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37325         and note find's pioctl call in find/fstype.c.
37326         But that is necessary only if you want to enable the
37327         optimization for AFS, and for now, I don't.
37328
37329         fts: move a function definition "up" (no semantic change)
37330         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37331         "up" to precede upcoming use of a related function.
37332
37333 2009-02-11  Jim Meyering  <meyering@redhat.com>
37334
37335         fts: correct internal computation of nlinks (optimization-related)
37336         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37337         whether the current entry is a directory, so don't test it.
37338
37339 2009-02-10  Bruno Haible  <bruno@clisp.org>
37340
37341         Tests for module 'uniwbrk/ulc-wordbreaks'.
37342         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37343         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37344         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37345
37346         Tests for module 'uniwbrk/u32-wordbreaks'.
37347         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37348         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37349
37350         Tests for module 'uniwbrk/u16-wordbreaks'.
37351         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37352         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37353
37354         Tests for module 'uniwbrk/u8-wordbreaks'.
37355         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37356         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37357
37358 2009-02-10  Bruno Haible  <bruno@clisp.org>
37359
37360         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37361         property.
37362         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37363         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37364         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37365
37366 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37367
37368         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37369         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37370
37371 2009-02-10  Bruno Haible  <bruno@clisp.org>
37372
37373         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37374         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37375         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37376         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37377         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37378         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37379
37380 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37381
37382         * lib/sockets.h (gl_fd_to_handle): New function.
37383
37384         * tests/test-sockets.c: Call gl_fd_to_handle.
37385
37386 2009-02-09  Bruno Haible  <bruno@clisp.org>
37387
37388         * doc/havelib.texi: Document the conventions on bi-arch systems.
37389
37390 2009-02-08  Bruno Haible  <bruno@clisp.org>
37391
37392         Document the AC_LIB_LINKFLAGS macro.
37393         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37394         * doc/gnulib.texi: Include it.
37395
37396 2009-02-08  Bruno Haible  <bruno@clisp.org>
37397
37398         Fix wrong order of sections, compared to TOC.
37399         * doc/gnulib.texi: Include relocatable-maint.texi after the
37400         "Regular expressions" node, not before.
37401
37402 2009-02-08  Bruno Haible  <bruno@clisp.org>
37403
37404         Tests for module 'unicase/totitle'.
37405         * modules/unicase/totitle-tests: New file.
37406
37407         Tests for module 'unicase/tolower'.
37408         * modules/unicase/tolower-tests: New file.
37409
37410         Tests for module 'unicase/toupper'.
37411         * modules/unicase/toupper-tests: New file.
37412         * tests/unicase/test-mapping-part1.h: New file.
37413         * tests/unicase/test-mapping-part2.h: New file.
37414
37415         New module 'unicase/totitle'.
37416         * modules/unicase/totitle: New file.
37417         * lib/unicase/totitle.c: New file.
37418
37419         New module 'unicase/tolower'.
37420         * modules/unicase/tolower: New file.
37421         * lib/unicase/tolower.c: New file.
37422
37423         New module 'unicase/toupper'.
37424         * modules/unicase/toupper: New file.
37425         * lib/unicase/toupper.c: New file.
37426         * lib/unicase/simple-mapping.h: New file.
37427
37428         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37429         (mapping_table): New structure.
37430         (output_simple_mapping): New function.
37431         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37432         * modules/gen-uni-tables (Description): Update.
37433         * lib/unicase/toupper.h: New file, automatically generated by
37434         gen-uni-tables.
37435         * lib/unicase/tolower.h: New file, automatically generated by
37436         gen-uni-tables.
37437         * lib/unicase/totitle.h: New file, automatically generated by
37438         gen-uni-tables.
37439         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37440         gen-uni-tables.
37441         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37442         gen-uni-tables.
37443         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37444         gen-uni-tables.
37445
37446         New module 'unicase/base'.
37447         * modules/unicase/base: New file.
37448         * lib/unicase.h: New file.
37449
37450 2009-02-08  Bruno Haible  <bruno@clisp.org>
37451
37452         New module 'uniwbrk/ulc-wordbreaks'.
37453         * modules/uniwbrk/ulc-wordbreaks: New file.
37454         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37455
37456         New module 'uniwbrk/u32-wordbreaks'.
37457         * modules/uniwbrk/u32-wordbreaks: New file.
37458         * lib/uniwbrk/u32-wordbreaks.c: New file.
37459
37460         New module 'uniwbrk/u16-wordbreaks'.
37461         * modules/uniwbrk/u16-wordbreaks: New file.
37462         * lib/uniwbrk/u16-wordbreaks.c: New file.
37463
37464         New module 'uniwbrk/u8-wordbreaks'.
37465         * modules/uniwbrk/u8-wordbreaks: New file.
37466         * lib/uniwbrk/u8-wordbreaks.c: New file.
37467         * lib/uniwbrk/u-wordbreaks.h: New file.
37468
37469         New module 'uniwbrk/table'.
37470         * modules/uniwbrk/table: New file.
37471         * lib/uniwbrk/wbrktable.h: New file.
37472         * lib/uniwbrk/wbrktable.c: New file.
37473
37474         New module 'uniwbrk/wordbreak-property'.
37475         * modules/uniwbrk/wordbreak-property: New file.
37476         * lib/uniwbrk/wordbreak-property.c: New file.
37477
37478         * lib/gen-uni-tables.c (WBP_*): New enum items.
37479         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37480         (unicode_org_wbp): New variable.
37481         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37482         New functions.
37483         (wbp_table): New structure.
37484         (output_wbp, output_wbrk_tables): New functions.
37485         (main): Accept additional argument. Invoke fill_org_wbp,
37486         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37487         output_wbrk_tables.
37488         * modules/gen-uni-tables (Description): Update.
37489         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37490         gen-uni-tables.
37491
37492         New module 'uniwbrk/base'.
37493         * modules/uniwbrk/base: New file.
37494         * lib/uniwbrk.h: New file.
37495
37496 2009-02-08  Bruno Haible  <bruno@clisp.org>
37497
37498         Update to Unicode 5.1.0.
37499         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37500         U+2185..U+2188.
37501         (is_property_default_ignorable_code_point): Don't include characters
37502         of category Cc or Cs and not-a-characters.
37503         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37504         U+0D79, U+109E, U+109F, U+A60C.
37505         * lib/unictype/bidi_of.h: Regenerated.
37506         * lib/unictype/blocks.h: Regenerated.
37507         * lib/unictype/categ_C.h: Regenerated.
37508         * lib/unictype/categ_Cf.h: Regenerated.
37509         * lib/unictype/categ_Cn.h: Regenerated.
37510         * lib/unictype/categ_L.h: Regenerated.
37511         * lib/unictype/categ_Ll.h: Regenerated.
37512         * lib/unictype/categ_Lm.h: Regenerated.
37513         * lib/unictype/categ_Lo.h: Regenerated.
37514         * lib/unictype/categ_Lu.h: Regenerated.
37515         * lib/unictype/categ_M.h: Regenerated.
37516         * lib/unictype/categ_Mc.h: Regenerated.
37517         * lib/unictype/categ_Me.h: Regenerated.
37518         * lib/unictype/categ_Mn.h: Regenerated.
37519         * lib/unictype/categ_N.h: Regenerated.
37520         * lib/unictype/categ_Nd.h: Regenerated.
37521         * lib/unictype/categ_Nl.h: Regenerated.
37522         * lib/unictype/categ_No.h: Regenerated.
37523         * lib/unictype/categ_P.h: Regenerated.
37524         * lib/unictype/categ_Pd.h: Regenerated.
37525         * lib/unictype/categ_Pe.h: Regenerated.
37526         * lib/unictype/categ_Pf.h: Regenerated.
37527         * lib/unictype/categ_Pi.h: Regenerated.
37528         * lib/unictype/categ_Po.h: Regenerated.
37529         * lib/unictype/categ_Ps.h: Regenerated.
37530         * lib/unictype/categ_S.h: Regenerated.
37531         * lib/unictype/categ_Sk.h: Regenerated.
37532         * lib/unictype/categ_Sm.h: Regenerated.
37533         * lib/unictype/categ_So.h: Regenerated.
37534         * lib/unictype/categ_of.h: Regenerated.
37535         * lib/unictype/combining.h: Regenerated.
37536         * lib/unictype/ctype_alnum.h: Regenerated.
37537         * lib/unictype/ctype_alpha.h: Regenerated.
37538         * lib/unictype/ctype_graph.h: Regenerated.
37539         * lib/unictype/ctype_lower.h: Regenerated.
37540         * lib/unictype/ctype_print.h: Regenerated.
37541         * lib/unictype/ctype_punct.h: Regenerated.
37542         * lib/unictype/ctype_upper.h: Regenerated.
37543         * lib/unictype/decdigit.h: Regenerated.
37544         * lib/unictype/digit.h: Regenerated.
37545         * lib/unictype/mirror.h: Regenerated.
37546         * lib/unictype/numeric.h: Regenerated.
37547         * lib/unictype/pr_alphabetic.h: Regenerated.
37548         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37549         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37550         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37551         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37552         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37553         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37554         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37555         * lib/unictype/pr_combining.h: Regenerated.
37556         * lib/unictype/pr_dash.h: Regenerated.
37557         * lib/unictype/pr_decimal_digit.h: Regenerated.
37558         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37559         * lib/unictype/pr_deprecated.h: Regenerated.
37560         * lib/unictype/pr_diacritic.h: Regenerated.
37561         * lib/unictype/pr_extender.h: Regenerated.
37562         * lib/unictype/pr_format_control.h: Regenerated.
37563         * lib/unictype/pr_grapheme_base.h: Regenerated.
37564         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37565         * lib/unictype/pr_grapheme_link.h: Regenerated.
37566         * lib/unictype/pr_id_continue.h: Regenerated.
37567         * lib/unictype/pr_id_start.h: Regenerated.
37568         * lib/unictype/pr_ideographic.h: Regenerated.
37569         * lib/unictype/pr_ignorable_control.h: Regenerated.
37570         * lib/unictype/pr_lowercase.h: Regenerated.
37571         * lib/unictype/pr_math.h: Regenerated.
37572         * lib/unictype/pr_numeric.h: Regenerated.
37573         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37574         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37575         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37576         * lib/unictype/pr_other_id_continue.h: Regenerated.
37577         * lib/unictype/pr_other_lowercase.h: Regenerated.
37578         * lib/unictype/pr_other_math.h: Regenerated.
37579         * lib/unictype/pr_punctuation.h: Regenerated.
37580         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37581         * lib/unictype/pr_soft_dotted.h: Regenerated.
37582         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37583         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37584         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37585         * lib/unictype/pr_uppercase.h: Regenerated.
37586         * lib/unictype/pr_xid_continue.h: Regenerated.
37587         * lib/unictype/pr_xid_start.h: Regenerated.
37588         * lib/unictype/pr_zero_width.h: Regenerated.
37589         * lib/unictype/scripts.h: Regenerated.
37590         * lib/unictype/scripts_byname.gperf: Regenerated.
37591         * lib/unictype/sy_java_ident.h: Regenerated.
37592         * lib/unilbrk/lbrkprop1.h: Regenerated.
37593         * lib/unilbrk/lbrkprop2.h: Regenerated.
37594         * tests/unictype/test-categ_C.c: Regenerated.
37595         * tests/unictype/test-categ_Cf.c: Regenerated.
37596         * tests/unictype/test-categ_Cn.c: Regenerated.
37597         * tests/unictype/test-categ_L.c: Regenerated.
37598         * tests/unictype/test-categ_Ll.c: Regenerated.
37599         * tests/unictype/test-categ_Lm.c: Regenerated.
37600         * tests/unictype/test-categ_Lo.c: Regenerated.
37601         * tests/unictype/test-categ_Lu.c: Regenerated.
37602         * tests/unictype/test-categ_M.c: Regenerated.
37603         * tests/unictype/test-categ_Mc.c: Regenerated.
37604         * tests/unictype/test-categ_Me.c: Regenerated.
37605         * tests/unictype/test-categ_Mn.c: Regenerated.
37606         * tests/unictype/test-categ_N.c: Regenerated.
37607         * tests/unictype/test-categ_Nd.c: Regenerated.
37608         * tests/unictype/test-categ_Nl.c: Regenerated.
37609         * tests/unictype/test-categ_No.c: Regenerated.
37610         * tests/unictype/test-categ_P.c: Regenerated.
37611         * tests/unictype/test-categ_Pd.c: Regenerated.
37612         * tests/unictype/test-categ_Pe.c: Regenerated.
37613         * tests/unictype/test-categ_Pf.c: Regenerated.
37614         * tests/unictype/test-categ_Pi.c: Regenerated.
37615         * tests/unictype/test-categ_Po.c: Regenerated.
37616         * tests/unictype/test-categ_Ps.c: Regenerated.
37617         * tests/unictype/test-categ_S.c: Regenerated.
37618         * tests/unictype/test-categ_Sk.c: Regenerated.
37619         * tests/unictype/test-categ_Sm.c: Regenerated.
37620         * tests/unictype/test-categ_So.c: Regenerated.
37621         * tests/unictype/test-ctype_alnum.c: Regenerated.
37622         * tests/unictype/test-ctype_alpha.c: Regenerated.
37623         * tests/unictype/test-ctype_graph.c: Regenerated.
37624         * tests/unictype/test-ctype_lower.c: Regenerated.
37625         * tests/unictype/test-ctype_print.c: Regenerated.
37626         * tests/unictype/test-ctype_punct.c: Regenerated.
37627         * tests/unictype/test-ctype_upper.c: Regenerated.
37628         * tests/unictype/test-decdigit.h: Regenerated.
37629         * tests/unictype/test-digit.h: Regenerated.
37630         * tests/unictype/test-numeric.h: Regenerated.
37631         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37632         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37633         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37634         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37635         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37636         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37637         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37638         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37639         * tests/unictype/test-pr_combining.c: Regenerated.
37640         * tests/unictype/test-pr_dash.c: Regenerated.
37641         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37642         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37643         * tests/unictype/test-pr_deprecated.c: Regenerated.
37644         * tests/unictype/test-pr_diacritic.c: Regenerated.
37645         * tests/unictype/test-pr_extender.c: Regenerated.
37646         * tests/unictype/test-pr_format_control.c: Regenerated.
37647         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37648         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37649         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37650         * tests/unictype/test-pr_id_continue.c: Regenerated.
37651         * tests/unictype/test-pr_id_start.c: Regenerated.
37652         * tests/unictype/test-pr_ideographic.c: Regenerated.
37653         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37654         * tests/unictype/test-pr_lowercase.c: Regenerated.
37655         * tests/unictype/test-pr_math.c: Regenerated.
37656         * tests/unictype/test-pr_numeric.c: Regenerated.
37657         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37658         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37659         Regenerated.
37660         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37661         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37662         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37663         * tests/unictype/test-pr_other_math.c: Regenerated.
37664         * tests/unictype/test-pr_punctuation.c: Regenerated.
37665         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37666         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37667         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37668         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37669         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37670         * tests/unictype/test-pr_uppercase.c: Regenerated.
37671         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37672         * tests/unictype/test-pr_xid_start.c: Regenerated.
37673         * tests/unictype/test-pr_zero_width.c: Regenerated.
37674
37675         Update to Unicode 5.1.0.
37676         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37677         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37678         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37679         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37680         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37681         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37682         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37683         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37684         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37685         (nonspacing_table_ind): Update.
37686         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37687
37688         Update to Unicode 5.1.0.
37689         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37690         code transform.
37691         * lib/uniname/uniname.c (unicode_character_name,
37692         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37693         * lib/uniname/uninames.h: Regenerated.
37694         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37695
37696 2009-02-07  Bruno Haible  <bruno@clisp.org>
37697
37698         Merge gen-ctype and gen-lbrk into a single program.
37699         * lib/gen-uni-tables.c: New file, incorporating
37700         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37701         Add directory prefixes to the names of the generated files.
37702         * lib/unictype/gen-ctype.c: Remove file.
37703         * lib/unilbrk/gen-lbrk.c: Remove file.
37704         * modules/gen-uni-tables: New file.
37705         * modules/unictype/gen-ctype: Remove file.
37706         * modules/unilbrk/gen-lbrk: Remove file.
37707
37708 2009-02-07  Bruno Haible  <bruno@clisp.org>
37709
37710         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37711
37712         New module 'unistr/u32-strcoll'.
37713         * modules/unistr/u32-strcoll: New file.
37714         * lib/unistr/u32-strcoll.c: New file.
37715
37716         New module 'unistr/u16-strcoll'.
37717         * modules/unistr/u16-strcoll: New file.
37718         * lib/unistr/u16-strcoll.c: New file.
37719
37720         New module 'unistr/u8-strcoll'.
37721         * modules/unistr/u8-strcoll: New file.
37722         * lib/unistr/u8-strcoll.c: New file.
37723         * lib/unistr/u-strcoll.h: New file.
37724
37725 2009-02-07  Bruno Haible  <bruno@clisp.org>
37726
37727         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37728         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37729         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37730         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37731         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37732         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37733
37734 2009-02-07  Bruno Haible  <bruno@clisp.org>
37735
37736         Make 64-bit clean.
37737         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37738         output_combclass, output_bidi_category, output_decimal_digit,
37739         output_digit, output_numeric, output_mirror, output_scripts,
37740         output_ident_category): Use proper width specifier in format strings.
37741
37742 2009-02-07  Bruno Haible  <bruno@clisp.org>
37743
37744         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37745         failure behaviour.
37746
37747 2009-02-07  Jim Meyering  <meyering@redhat.com>
37748
37749         regex: avoid compilation failure with upcoming gcc-4.4
37750         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37751         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37752         "... error: integer overflow in preprocessor expression".
37753
37754 2009-02-05  Ben Pfaff  <blp@gnu.org>
37755
37756         Fix link errors on Windows when close module is used.
37757         * modules/close: Add $(LIB_CLOSE) to Link section.
37758         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37759         $(LIB_CLOSE) on Windows.
37760
37761 2009-02-05  Jim Meyering  <meyering@redhat.com>
37762
37763         still avoid unused-parameter warnings, but do it cleanly
37764         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37765         (get_fs_usage): Cast to void instead.
37766         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37767         (dev_from_mount_options, read_file_system_list): Cast to void.
37768         Prompted by Bruno Haible.
37769
37770 2009-02-04  Jim Meyering  <meyering@redhat.com>
37771
37772         fsusage.c: correct copyright year
37773         * lib/fsusage.c: Reflect year in which the change is pushed into
37774
37775         avoid misc. warnings
37776         * lib/fsusage.c (UNUSED_PARAM): Define.
37777         (get_fs_usage): Mark parameter "disk" as unused.
37778         * lib/getugroups.c (getgrent): Use "void" in prototype.
37779         * lib/mountlist.c: Mark unused parameters.
37780         (read_file_system_list): Declare a local with "const".
37781         * lib/nanosleep.c (getnow): Declare static.
37782         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37783
37784         dirfd: set errno upon failure
37785         * lib/dirfd.c: Include <errno.h>.
37786         Set errno to ENOTSUP when returning -1.
37787         * modules/dirfd (Depends-on): Add errno.
37788         Suggested by John Kodis <kodis@comcast.net>.
37789
37790 2009-02-01  Bruno Haible  <bruno@clisp.org>
37791
37792         Don't assume sizeof (long) >= sizeof (void *).
37793         * lib/memcmp.c: Include stdint.h.
37794         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37795         srcp2 to 'const byte *'.
37796         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37797         types to uintptr_t.
37798         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37799         * modules/memcmp (Depends-on): Add stdint.
37800         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37801
37802 2009-01-30  Eric Blake  <ebb9@byu.net>
37803
37804         fix more require-before-expand issues
37805         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37806         expand, AC_PROG_AWK.
37807         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37808
37809 2009-01-28  Eric Blake  <ebb9@byu.net>
37810
37811         version-etc: use consistent URL formatting
37812         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37813         Improve formatting.  Use fputs for string without %.
37814
37815 2009-01-28  Jim Meyering  <meyering@redhat.com>
37816
37817         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37818         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37819         "underquoted definition of NAME" from autoconf-2.59.
37820
37821 2009-01-28  Bruno Haible  <bruno@clisp.org>
37822
37823         * doc/gnulib.texi: Add "Obsolete modules" to index.
37824
37825 2009-01-28  Jim Meyering  <meyering@redhat.com>
37826
37827         useless-if-before-free: recognize more variants
37828         * build-aux/useless-if-before-free: Also recognize e.g.,
37829         if (NULL != p) free (p);
37830
37831 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37832
37833         test-getaddrinfo: skip (don't fail) this test when there's no network
37834         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37835         on the presumption that it means you lack network access.
37836
37837 2009-01-26  Jim Meyering  <meyering@redhat.com>
37838
37839         fflush: avoid warnings on modern systems
37840         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37841         pos and result, into scopes where they're used.
37842
37843 2009-01-26  Eric Blake  <ebb9@byu.net>
37844
37845         Silence warning reintroduced by recent extensions patch.
37846         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37847         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37848         autoconf.
37849
37850         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37851         * m4/00gnulib.m4: New file.
37852         * gnulib-tool (func_get_filelist): Always use it.
37853         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37854         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37855
37856 2009-01-25  Bruno Haible  <bruno@clisp.org>
37857
37858         Make test-quotearg work on MacOS X and AIX.
37859         * tests/test-quotearg.sh: New file.
37860         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37861         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37862         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37863         include <libintl.h>.
37864         (fake_locale): Remove variable.
37865         (gettext, dgettext, dcgettext): Remove functions.
37866         (main): Instead of setting a fake locale, set a real locale. Call
37867         textdomain and bindtextdomain.
37868         * modules/quotearg-tests (Files): Add the new files.
37869         (Depends-on): Add gettext, setenv, unsetenv.
37870         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37871         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37872         Augment TESTS_ENVIRONMENT.
37873
37874 2009-01-25  Bruno Haible  <bruno@clisp.org>
37875
37876         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37877         fr_FR.ISO8859-1 locale on MacOS X.
37878         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37879         ja_JP.eucJP locale on MacOS X.
37880         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37881         zh_CN.GB18030 locale on MacOS X.
37882
37883 2009-01-25  Bruno Haible  <bruno@clisp.org>
37884
37885         Avoid link errors on MacOS X 10.3.
37886         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37887         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37888
37889 2009-01-25  Bruno Haible  <bruno@clisp.org>
37890
37891         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37892         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37893         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37894         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37895         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37896         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37897         posix_spawnattr_init, posix_spawnattr_setsigmask,
37898         posix_spawnattr_setflags, posix_spawnattr_destroy.
37899
37900         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37901         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37902         * modules/execute (Files): Remove m4/posix_spawn.m4.
37903         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37904         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37905         posix_spawnattr_init, posix_spawnattr_setsigmask,
37906         posix_spawnattr_setflags, posix_spawnattr_destroy.
37907
37908 2009-01-25  Bruno Haible  <bruno@clisp.org>
37909
37910         * lib/glthread/threadlib.c: Include <stdlib.h>.
37911
37912 2009-01-25  Bruno Haible  <bruno@clisp.org>
37913
37914         * lib/glthread/threadlib.c (dummy): New declaration.
37915
37916 2009-01-25  Bruno Haible  <bruno@clisp.org>
37917
37918         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37919         multibyte characters also for the GB18030 encoding. Don't crash when
37920         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37921
37922 2009-01-25  Bruno Haible  <bruno@clisp.org>
37923
37924         Avoid redefining 'struct random_data' on OSF/1 5.1.
37925         * lib/stdlib.in.h: Include <random.h> if it exists.
37926         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37927         HAVE_RANDOM_H. Include <random.h> when testing whether
37928         'struct random_data' exists.
37929         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37930
37931 2009-01-25  Bruno Haible  <bruno@clisp.org>
37932
37933         Don't install charset.alias on MacOS X >= 10.3.
37934         * lib/localcharset.c (DARWIN7): New macro.
37935         (get_charset_aliases): Hardcode the result for Darwin7.
37936         * modules/localcharset (install-exec-local): Don't install
37937         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37938
37939 2009-01-25  Bruno Haible  <bruno@clisp.org>
37940
37941         Don't install charset.alias on mingw and Cygwin.
37942         * modules/localcharset (install-exec-local): Don't install
37943         charset.alias on mingw and Cygwin, if the file does not yet exist.
37944         The result for these platforms is hardcoded in localcharset.c.
37945
37946 2009-01-25  Bruno Haible  <bruno@clisp.org>
37947
37948         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37949         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37950         before requiring AC_USE_SYSTEM_EXTENSIONS.
37951
37952 2009-01-25  Jim Meyering  <meyering@redhat.com>
37953
37954         c-strtod: avoid warnings
37955         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37956         "assignment discards qualifiers from pointer target type" warnings.
37957
37958 2009-01-24  Bruno Haible  <bruno@clisp.org>
37959
37960         Add support for non-UTF-8 locales on MacOS X.
37961         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37962         canonical encodings. For Darwin 7 and newer, don't map traditional
37963         encodings to UTF-8.
37964         Reported by Vincent Lefevre <vincent@vinc17.org>
37965         at <http://savannah.gnu.org/bugs/?25235>.
37966
37967 2009-01-24  Bruno Haible  <bruno@clisp.org>
37968
37969         * doc/gnulib.texi (Obsolete modules): New section.
37970         Reported by Mike Frysinger <vapier@gentoo.org>.
37971
37972 2009-01-24  Bruno Haible  <bruno@clisp.org>
37973
37974         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37975         (%.dvi): New rule.
37976
37977 2009-01-24  Bruno Haible  <bruno@clisp.org>
37978
37979         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37980         Reported by Eric Blake.
37981
37982 2009-01-24  Bruno Haible  <bruno@clisp.org>
37983
37984         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37985         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37986         Reported by Gary V. Vaughan <gary@gnu.org>.
37987
37988 2009-01-24  Bruno Haible  <bruno@clisp.org>
37989
37990         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37991
37992 2009-01-23  Bruno Haible  <bruno@clisp.org>
37993
37994         Make c-strtod, c-strtold usable in libraries.
37995         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37996         (C_STRTOD): Call strdup instead of xstrdup.
37997         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37998         * modules/c-strtold (Depends-on): Likewise.
37999         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38000         * NEWS: Mention the change.
38001         Reported by Michael Gold <mgold@ncf.ca>.
38002
38003 2009-01-23  Jim Meyering  <meyering@redhat.com>
38004
38005         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38006         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38007         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38008
38009 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38010
38011         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38012         GNU CoreUtils.
38013         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38014         * modules/version-etc (Description): Update.
38015
38016 2009-01-22  Bruno Haible  <bruno@clisp.org>
38017
38018         Cache the C locale object.
38019         * lib/c-strtod.c (c_locale_cache): New variable.
38020         (c_locale): New function.
38021         (C_STRTOD): Use it, and don't call freelocale.
38022         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38023         Suggested by Paolo Bonzini.
38024
38025 2009-01-21  Bruno Haible  <bruno@clisp.org>
38026
38027         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38028         conditions other than overflow.
38029
38030 2009-01-21  Bruno Haible  <bruno@clisp.org>
38031
38032         * lib/c-strtod.c: Include errno.h.
38033         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38034         value from STRTOD_L and STRTOD.
38035
38036 2009-01-21  Bruno Haible  <bruno@clisp.org>
38037         and Jim Meyering  <meyering@redhat.com>
38038
38039         nanosleep: skip configure test (fail it) for apple universal builds
38040         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38041         universal builds, assume that nanosleep does not work.
38042         * modules/nanosleep (Depends-on): Add multiarch.
38043
38044         mktime: skip configure test (fail it) for apple universal builds
38045         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38046         universal builds, assume that mktime does not work.
38047         * modules/mktime (Depends-on): Add multiarch.
38048
38049 2009-01-21  Eric Blake  <ebb9@byu.net>
38050
38051         multiarch: avoid expand-before-require warning
38052         * modules/multiarch (configure.ac): Require, rather than expand,
38053         gl_MULTIARCH.
38054         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38055         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38056         enforce that all clients require it.  Partial reversion of
38057         2008-12-29 patch.
38058
38059         error: avoid expand-before-require warning
38060         * modules/errno (configure.ac): Require, rather than expand,
38061         gl_HEADER_ERRNO_H.
38062         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38063         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38064         enforce that all clients require it.
38065
38066         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38067         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38068         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38069         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38070
38071 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38072
38073         Revert:
38074         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38075
38076         regex: do not depend on obsolete modules.
38077         * modules/regex: Remove memcmp and memmove.
38078
38079 2009-01-20  Bruno Haible  <bruno@clisp.org>
38080
38081         Make the 'link' module link on Windows NT 4.
38082         * lib/link.c (_WIN32_WINNT): Don't define.
38083         (CreateHardLinkFuncType): New type.
38084         (CreateHardLinkFunc, initialized): New variables.
38085         (initialize): New function.
38086         (link): Invoke CreateHardLink indirectly through the function pointer.
38087
38088 2009-01-20  Bruno Haible  <bruno@clisp.org>
38089
38090         Fix compilation failure on mingw.
38091         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38092
38093 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38094
38095         * doc/c-strtod.texi: Mention a couple of restrictions.
38096
38097 2009-01-20  Jim Meyering  <meyering@redhat.com>
38098
38099         gettimeofday: move more declarations out of functions
38100         * lib/gettimeofday.c: Move extern declarations of tzset and
38101         gmtime out of containing functions.  Prompted by Bruno Haible.
38102
38103 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38104
38105         regex: do not depend on obsolete modules.
38106         * modules/regex: Remove memcmp and memmove.
38107
38108 2009-01-19  Bruno Haible  <bruno@clisp.org>
38109
38110         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38111         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38112         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38113         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38114         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38115
38116 2009-01-19  Bruno Haible  <bruno@clisp.org>
38117
38118         * tests/test-link.c: Include <errno.h>.
38119         (main): Exit with code 77 when a hard link cannot be created due to
38120         the file system.
38121         * tests/test-link.sh: Skip test when a hard link cannot be created due
38122         to the file system.
38123         Suggested by Eric Blake.
38124
38125 2009-01-19  Martin Lambers  <marlam@marlam.de>
38126
38127         * modules/link-tests: New file.
38128         * tests/test-link.sh: New file.
38129         * tests/test-link.c: New file.
38130
38131 2009-01-19  Eric Blake  <ebb9@byu.net>
38132
38133         doc: mention another function added in cygwin 1.7.0
38134         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38135         Another new function in cygwin 1.7.
38136
38137 2009-01-19  Bruno Haible  <bruno@clisp.org>
38138
38139         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38140         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38141         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38142         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38143         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38144         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38145         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38146         * m4/md4.m4 (gl_MD4): Likewise.
38147         * m4/md5.m4 (gl_MD5): Likewise.
38148         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38149         * m4/sha1.m4 (gl_SHA1): Likewise.
38150         * m4/sha256.m4 (gl_SHA256): Likewise.
38151         * m4/sha512.m4 (gl_SHA512): Likewise.
38152
38153 2009-01-19  Bruno Haible  <bruno@clisp.org>
38154
38155         * modules/uniname/uniname-tests (Depends-on): Add progname.
38156         * tests/uniname/test-uninames.c: Include progname.h.
38157         (main): Call set_program_name.
38158
38159         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38160         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38161         (main): Call set_program_name.
38162
38163         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38164         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38165         (main): Call set_program_name.
38166
38167         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38168         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38169         (main): Call set_program_name.
38170
38171         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38172         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38173         (main): Call set_program_name.
38174
38175         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38176         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38177         (main): Call set_program_name.
38178
38179         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38180         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38181         (main): Call set_program_name.
38182
38183         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38184         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38185         (main): Call set_program_name.
38186
38187         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38188         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38189         (main): Call set_program_name.
38190
38191 2009-01-19  Eric Blake  <ebb9@byu.net>
38192
38193         test-unistd: test previous patch
38194         * tests/test-unistd.c: Test *_FILENO macros.
38195
38196         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38197         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38198         Guarantee a definition.
38199         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38200         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38201         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38202         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38203         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38204         Likewise.
38205         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38206         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38207         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38208         Likewise.
38209         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38210         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38211         (STDERR_FILENO): Likewise.
38212         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38213         (STDERR_FILENO): Likewise.
38214         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38215         (STDERR_FILENO): Likewise.
38216         Reported by Elbert Pol.
38217
38218 2009-01-19  Eric Blake  <ebb9@byu.net>
38219
38220         doc: mention more functions added in cygwin 1.7.0
38221         * doc/posix-functions/abort.texi (abort): Update wording related
38222         to cygwin.
38223         * doc/posix-functions/daylight.texi (daylight): Likewise.
38224         * doc/posix-functions/optarg.texi (optarg): Likewise.
38225         * doc/posix-functions/optarg.texi (opterr): Likewise.
38226         * doc/posix-functions/optarg.texi (optind): Likewise.
38227         * doc/posix-functions/optarg.texi (optopt): Likewise.
38228         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38229         worked in 1.5.x, and was withdrawn in 1.7.
38230         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38231         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38232         cygwin versions.
38233         * doc/posix-functions/perror.texi (perror): Likewise.
38234         * doc/posix-functions/printf.texi (printf): Likewise.
38235         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38236         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38237         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38238         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38239         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38240         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38241         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38242         Likewise.
38243         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38244         Likewise.
38245         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38246         this function.
38247         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38248         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38249         Likewise.
38250         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38251         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38252         * doc/posix-functions/confstr.texi (confstr): Likewise.
38253         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38254         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38255         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38256         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38257         * doc/posix-functions/fputws.texi (fputws): Likewise.
38258         * doc/posix-functions/fwide.texi (fwide): Likewise.
38259         * doc/posix-functions/getwc.texi (getwc): Likewise.
38260         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38261         * doc/posix-functions/putwc.texi (putwc): Likewise.
38262         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38263         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38264         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38265         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38266         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38267         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38268         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38269         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38270         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38271         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38272         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38273
38274 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38275
38276         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38277         * lib/ioctl.c: Include <sys/ioctl.h>.
38278
38279 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38280
38281         * modules/getdate-tests (Depends-on): Add progname.
38282         * tests/test-getdate.c: Use progname module, to avoid link errors
38283         on non-glibc systems.
38284
38285 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38286
38287         * modules/filenamecat-tests (Depends-on): Add progname.
38288         * modules/fstrcmp-tests (Depends-on): Likewise.
38289
38290         * tests/test-filenamecat.c: Use progname module, to avoid link
38291         errors on non-glibc systems.
38292         * tests/test-fstrcmp.c: Likewise.
38293
38294 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38295
38296         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38297         * lib/gettimeofday.c: Move extern declaration out of function.
38298
38299 2009-01-18  Bruno Haible  <bruno@clisp.org>
38300
38301         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38302         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38303         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38304
38305 2009-01-18  Bruno Haible  <bruno@clisp.org>
38306
38307         * lib/strftime.c (MEMPCPY): Remove unused macro.
38308         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38309
38310 2009-01-18  Martin Lambers  <marlam@marlam.de>
38311
38312         New module 'link'.
38313         * lib/unistd.in.h (link): New declaration.
38314         * lib/link.c: New file.
38315         * m4/link.m4: New file.
38316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38317         HAVE_LINK.
38318         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38319         * modules/link: New file.
38320         * doc/posix-functions/link.texi: Mention the new module.
38321
38322 2009-01-18  Bruno Haible  <bruno@clisp.org>
38323
38324         * tests/test-avltree_list.c (main): Call set_program_name.
38325         * tests/test-avltree_oset.c (main): Likewise.
38326         * tests/test-obstack-printf.c: Include progname.h.
38327         (main): Call set_program_name.
38328         * tests/test-quotearg.c: Include progname.h.
38329         (main): Call set_program_name.
38330         * tests/test-xmemdup0.c: Include progname.h.
38331         (main): Call set_program_name.
38332
38333 2009-01-18  Bruno Haible  <bruno@clisp.org>
38334
38335         New module 'alphasort'.
38336         * lib/dirent.in.h (alphasort): New declaration.
38337         * lib/alphasort.c: New file, from glibc with modifications.
38338         * m4/alphasort.m4: New file.
38339         * modules/alphasort: New file.
38340         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38341         HAVE_ALPHASORT.
38342         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38343         HAVE_ALPHASORT.
38344         * doc/posix-functions/alphasort.texi: Mention the new module and the
38345         portability problems.
38346
38347 2009-01-18  Bruno Haible  <bruno@clisp.org>
38348
38349         New module 'scandir'.
38350         * lib/dirent.in.h (scandir): New declaration.
38351         * lib/scandir.c: New file, from glibc with modifications.
38352         * m4/scandir.m4: New file.
38353         * modules/scandir: New file.
38354         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38355         HAVE_SCANDIR.
38356         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38357         HAVE_SCANDIR.
38358         * doc/posix-functions/scandir.texi: Mention the new module and the
38359         portability problems.
38360
38361 2009-01-17  Bruno Haible  <bruno@clisp.org>
38362
38363         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38364         Update documentation.
38365         (func_remove_suffix): Escape all dots in the suffix. Update
38366         documentation.
38367         (func_filter_filelist): Update documentation.
38368         Reported by Ralf Wildenhues.
38369
38370 2009-01-17  Bruno Haible  <bruno@clisp.org>
38371
38372         * modules/dprintf-posix-tests: New file.
38373         * tests/test-dprintf-posix.sh: New file.
38374         * tests/test-dprintf-posix.c: New file.
38375
38376         New modules 'dprintf', 'dprintf-posix'.
38377         * lib/stdio.in.h (dprintf): New declaration.
38378         * lib/dprintf.c: New file.
38379         * m4/dprintf.m4: New file.
38380         * m4/dprintf-posix.m4: New file.
38381         * modules/dprintf: New file.
38382         * modules/dprintf-posix: New file.
38383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38384         HAVE_DPRINTF, REPLACE_DPRINTF.
38385         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38386         HAVE_DPRINTF, REPLACE_DPRINTF.
38387         * doc/posix-functions/dprintf.texi: Mention the new modules.
38388
38389 2009-01-17  Bruno Haible  <bruno@clisp.org>
38390
38391         * modules/vdprintf-posix-tests: New file.
38392         * tests/test-vdprintf-posix.sh: New file.
38393         * tests/test-vdprintf-posix.c: New file.
38394
38395         New modules 'vdprintf', 'vdprintf-posix'.
38396         * lib/stdio.in.h (vdprintf): New declaration.
38397         * lib/vdprintf.c: New file.
38398         * m4/vdprintf.m4: New file.
38399         * m4/vdprintf-posix.m4: New file.
38400         * modules/vdprintf: New file.
38401         * modules/vdprintf-posix: New file.
38402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38403         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38404         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38405         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38406         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38407
38408 2009-01-17  Bruno Haible  <bruno@clisp.org>
38409
38410         Fix replacement of fopen on mingw.
38411         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38412         mingw.
38413
38414 2009-01-17  Bruno Haible  <bruno@clisp.org>
38415
38416         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38417         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38418
38419 2009-01-17  Bruno Haible  <bruno@clisp.org>
38420
38421         Avoid test-fflush2.sh failure on mingw.
38422         * tests/test-fflush2.c: Include binary-io.h.
38423         (main): Put standard input into binary mode.
38424         * modules/fflush-tests (Depends-on): Add binary-io.
38425
38426 2009-01-17  Bruno Haible  <bruno@clisp.org>
38427
38428         * lib/wchar.in.h: In another particular situation, include only the
38429         system's <wchar.h> file.
38430         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38431         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38432         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38433
38434 2009-01-17  Bruno Haible  <bruno@clisp.org>
38435
38436         Support for stripping executables in --enable-relocatable.
38437         * build-aux/install-reloc: Expect one more argument, or an environment
38438         variable RELOC_STRIP_PROG. If set, strip the destination program and
38439         its wrapper.
38440         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38441         RELOC_STRIP_PROG.
38442         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38443         to set RELOCATABLE_STRIP.
38444         * NEWS: Mention the new Makefile requirement.
38445
38446 2009-01-17  Bruno Haible  <bruno@clisp.org>
38447
38448         * build-aux/install-reloc: Remove debugging information left over by
38449         C compiler on MacOS X.
38450
38451 2009-01-17  Bruno Haible  <bruno@clisp.org>
38452
38453         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38454         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38455         _NSGetExecutablePath.
38456
38457 2009-01-16  Jim Meyering  <meyering@redhat.com>
38458
38459         strerror: avoid warnings about discarding "const"
38460         * lib/strerror.c (rpl_strerror): Instead of returning a const
38461         string from each and every "case", use a variable, and add a single
38462         cast after the switch.
38463
38464 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38465
38466         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38467
38468 2009-01-16  Bruno Haible  <bruno@clisp.org>
38469
38470         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38471         array initializer syntax that also works in C++ mode.
38472         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38473
38474 2009-01-16  Jim Meyering  <meyering@redhat.com>
38475
38476         poll: suppress a warning
38477         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38478         to ignore "...unsigned expression < 0 is always false" warnings.
38479
38480 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38481
38482         poll: remove declarations of unused variables
38483         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38484         sockbuf and optlen.
38485
38486 2009-01-15  Bruno Haible  <bruno@clisp.org>
38487
38488         Make fflush-after-ungetc POSIX compliant on BSD systems.
38489         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38490         (clear_ungetc_buffer): Implement also for other systems.
38491         (rpl_fflush): On glibc systems, invoke
38492         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38493         clear_ungetc_buffer after fetching the stream's position, not before.
38494
38495 2009-01-15  Bruno Haible  <bruno@clisp.org>
38496
38497         Make fflush-after-ungetc POSIX compliant on glibc systems.
38498         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38499         after ungetc.
38500         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38501         (rpl_fflush): On glibc systems, simply call the system's fflush
38502         function after clearing the ungetc buffer.
38503         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38504         Instead, lseek only to the end of file, then use the system's fseeko
38505         for the rest. On glibc systems, reset the EOF indicator bit.
38506
38507 2009-01-15  Jim Meyering  <meyering@redhat.com>
38508
38509         openmp.m4: revert quote-adding change, for portability to older autoconf
38510         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38511         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38512         Simon Josefsson noticed the problem when using autoconf-2.61.
38513
38514 2009-01-15  Bruno Haible  <bruno@clisp.org>
38515
38516         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38517         * tests/test-fflush2.c (ASSERT): Always fail.
38518         (main): Add two tests for fflush() after ungetc(), taking into account
38519         the Austin Group's clarification.
38520         Suggested by Eric Blake.
38521
38522 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38523
38524         mktime.m4: remove K&R-style function prototypes
38525         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38526         for the Sun C++ compiler.
38527
38528 2009-01-14  Bruno Haible  <bruno@clisp.org>
38529
38530         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38531         while including <wchar.h>.
38532         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38533         the system's <wchar.h> file.
38534         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38535
38536 2009-01-14  Bruno Haible  <bruno@clisp.org>
38537
38538         * m4/csharp.m4: Don't mention gettext on the serial number line.
38539         * m4/csharpexec.m4: Likewise.
38540         * m4/eaccess.m4: Likewise.
38541         * m4/javaexec.m4: Likewise.
38542         * m4/sig_atomic_t.m4: Likewise.
38543         * m4/tmpdir.m4: Likewise.
38544         * m4/intldir.m4: Bump gettext version.
38545         * m4/lib-ld.m4: Likewise.
38546
38547 2009-01-14  Bruno Haible  <bruno@clisp.org>
38548
38549         * lib/progname.c (set_program_name): Add more comments.
38550         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38551
38552 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38553
38554         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38555         were sys/stat.h does not define it.
38556
38557 2009-01-14  Jim Meyering  <meyering@redhat.com>
38558
38559         many *.m4 files: improve m4 quoting
38560         99% of this change was performed by running the following commands:
38561         git ls-files | grep '\.m4$' | xargs perl -pi \
38562           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38563           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38564           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38565           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38566         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38567         The remainder were to add Copyright dates, increment serial numbers,
38568         undo some changes in comments, exclude m4/intl.m4, and add quotes
38569         around the "1" in ",1" where the unusual spacing prohibited the
38570         above regexps from doing the job.  For more details, see
38571         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38572         * m4/acl.m4: Modified.
38573         * m4/afs.m4: Likewise.
38574         * m4/alloca.m4: Likewise.
38575         * m4/argp.m4: Likewise.
38576         * m4/argz.m4: Likewise.
38577         * m4/atexit.m4: Likewise.
38578         * m4/bison-i18n.m4: Likewise.
38579         * m4/bison.m4: Likewise.
38580         * m4/byteswap.m4: Likewise.
38581         * m4/c-stack.m4: Likewise.
38582         * m4/c-strtod.m4: Likewise.
38583         * m4/calloc.m4: Likewise.
38584         * m4/canonicalize-lgpl.m4: Likewise.
38585         * m4/chown.m4: Likewise.
38586         * m4/clock_time.m4: Likewise.
38587         * m4/codeset.m4: Likewise.
38588         * m4/copy-file.m4: Likewise.
38589         * m4/csharp.m4: Likewise.
38590         * m4/csharpcomp.m4: Likewise.
38591         * m4/csharpexec.m4: Likewise.
38592         * m4/d-ino.m4: Likewise.
38593         * m4/d-type.m4: Likewise.
38594         * m4/dirfd.m4: Likewise.
38595         * m4/double-slash-root.m4: Likewise.
38596         * m4/eaccess.m4: Likewise.
38597         * m4/eealloc.m4: Likewise.
38598         * m4/environ.m4: Likewise.
38599         * m4/errno_h.m4: Likewise.
38600         * m4/euidaccess.m4: Likewise.
38601         * m4/execute.m4: Likewise.
38602         * m4/fatal-signal.m4: Likewise.
38603         * m4/fchdir.m4: Likewise.
38604         * m4/fcntl_h.m4: Likewise.
38605         * m4/fileblocks.m4: Likewise.
38606         * m4/filenamecat.m4: Likewise.
38607         * m4/findprog.m4: Likewise.
38608         * m4/flexmember.m4: Likewise.
38609         * m4/fnmatch.m4: Likewise.
38610         * m4/fopen.m4: Likewise.
38611         * m4/fpending.m4: Likewise.
38612         * m4/fprintf-posix.m4: Likewise.
38613         * m4/free.m4: Likewise.
38614         * m4/frexp.m4: Likewise.
38615         * m4/frexpl.m4: Likewise.
38616         * m4/fsusage.m4: Likewise.
38617         * m4/ftruncate.m4: Likewise.
38618         * m4/gc-camellia.m4: Likewise.
38619         * m4/gc-random.m4: Likewise.
38620         * m4/gc.m4: Likewise.
38621         * m4/getaddrinfo.m4: Likewise.
38622         * m4/getcwd-abort-bug.m4: Likewise.
38623         * m4/getcwd-path-max.m4: Likewise.
38624         * m4/getdate.m4: Likewise.
38625         * m4/getdomainname.m4: Likewise.
38626         * m4/getgroups.m4: Likewise.
38627         * m4/gethostname.m4: Likewise.
38628         * m4/gethrxtime.m4: Likewise.
38629         * m4/getline.m4: Likewise.
38630         * m4/getloadavg.m4: Likewise.
38631         * m4/getndelim2.m4: Likewise.
38632         * m4/getpass.m4: Likewise.
38633         * m4/gettext.m4: Likewise.
38634         * m4/gettime.m4: Likewise.
38635         * m4/gettimeofday.m4: Likewise.
38636         * m4/gnulib-common.m4: Likewise.
38637         * m4/group-member.m4: Likewise.
38638         * m4/host-os.m4: Likewise.
38639         * m4/iconv.m4: Likewise.
38640         * m4/iconv_open.m4: Likewise.
38641         * m4/inet_ntop.m4: Likewise.
38642         * m4/inet_pton.m4: Likewise.
38643         * m4/inline.m4: Likewise.
38644         * m4/intldir.m4: Likewise.
38645         * m4/intlmacosx.m4: Likewise.
38646         * m4/intmax.m4: Likewise.
38647         * m4/intmax_t.m4: Likewise.
38648         * m4/inttypes.m4: Likewise.
38649         * m4/inttypes_h.m4: Likewise.
38650         * m4/inttypes-pri.m4: Likewise.
38651         * m4/isapipe.m4: Likewise.
38652         * m4/isnand.m4: Likewise.
38653         * m4/isnanf.m4: Likewise.
38654         * m4/isnanl.m4: Likewise.
38655         * m4/javacomp.m4: Likewise.
38656         * m4/javaexec.m4: Likewise.
38657         * m4/jm-winsz1.m4: Likewise.
38658         * m4/jm-winsz2.m4: Likewise.
38659         * m4/lchown.m4: Likewise.
38660         * m4/lcmessage.m4: Likewise.
38661         * m4/ldexpl.m4: Likewise.
38662         * m4/lib-ld.m4: Likewise.
38663         * m4/lib-link.m4: Likewise.
38664         * m4/libsigsegv.m4: Likewise.
38665         * m4/link-follow.m4: Likewise.
38666         * m4/localcharset.m4: Likewise.
38667         * m4/locale-fr.m4: Likewise.
38668         * m4/locale-ja.m4: Likewise.
38669         * m4/locale-tr.m4: Likewise.
38670         * m4/locale-zh.m4: Likewise.
38671         * m4/lock.m4: Likewise.
38672         * m4/longlong.m4: Likewise.
38673         * m4/ls-mntd-fs.m4: Likewise.
38674         * m4/lstat.m4: Likewise.
38675         * m4/malloc.m4: Likewise.
38676         * m4/mathl.m4: Likewise.
38677         * m4/mbrtowc.m4: Likewise.
38678         * m4/mbstate_t.m4: Likewise.
38679         * m4/mbswidth.m4: Likewise.
38680         * m4/memchr.m4: Likewise.
38681         * m4/memcmp.m4: Likewise.
38682         * m4/memcpy.m4: Likewise.
38683         * m4/memmem.m4: Likewise.
38684         * m4/memmove.m4: Likewise.
38685         * m4/mempcpy.m4: Likewise.
38686         * m4/memrchr.m4: Likewise.
38687         * m4/memset.m4: Likewise.
38688         * m4/minmax.m4: Likewise.
38689         * m4/mkdir-slash.m4: Likewise.
38690         * m4/mkdtemp.m4: Likewise.
38691         * m4/mktime.m4: Likewise.
38692         * m4/mmap-anon.m4: Likewise.
38693         * m4/mountlist.m4: Likewise.
38694         * m4/nanosleep.m4: Likewise.
38695         * m4/nls.m4: Likewise.
38696         * m4/nocrash.m4: Likewise.
38697         * m4/open.m4: Likewise.
38698         * m4/openat.m4: Likewise.
38699         * m4/openmp.m4: Likewise.
38700         * m4/pathmax.m4: Likewise.
38701         * m4/perl.m4: Likewise.
38702         * m4/physmem.m4: Likewise.
38703         * m4/pipe.m4: Likewise.
38704         * m4/po.m4: Likewise.
38705         * m4/poll.m4: Likewise.
38706         * m4/posixtm.m4: Likewise.
38707         * m4/posixver.m4: Likewise.
38708         * m4/printf-frexp.m4: Likewise.
38709         * m4/printf-frexpl.m4: Likewise.
38710         * m4/printf-posix.m4: Likewise.
38711         * m4/printf-posix-rpl.m4: Likewise.
38712         * m4/printf.m4: Likewise.
38713         * m4/progtest.m4: Likewise.
38714         * m4/putenv.m4: Likewise.
38715         * m4/readline.m4: Likewise.
38716         * m4/readlink.m4: Likewise.
38717         * m4/readutmp.m4: Likewise.
38718         * m4/realloc.m4: Likewise.
38719         * m4/regex.m4: Likewise.
38720         * m4/relocatable.m4: Likewise.
38721         * m4/relocatable-lib.m4: Likewise.
38722         * m4/rename-dest-slash.m4: Likewise.
38723         * m4/rename.m4: Likewise.
38724         * m4/rmdir-errno.m4: Likewise.
38725         * m4/rmdir.m4: Likewise.
38726         * m4/roundf.m4: Likewise.
38727         * m4/roundl.m4: Likewise.
38728         * m4/rpmatch.m4: Likewise.
38729         * m4/save-cwd.m4: Likewise.
38730         * m4/selinux-selinux-h.m4: Likewise.
38731         * m4/setenv.m4: Likewise.
38732         * m4/settime.m4: Likewise.
38733         * m4/sig2str.m4: Likewise.
38734         * m4/sig_atomic_t.m4: Likewise.
38735         * m4/signalblocking.m4: Likewise.
38736         * m4/signbit.m4: Likewise.
38737         * m4/sigpipe.m4: Likewise.
38738         * m4/sockets.m4: Likewise.
38739         * m4/sockpfaf.m4: Likewise.
38740         * m4/st_dm_mode.m4: Likewise.
38741         * m4/stat-time.m4: Likewise.
38742         * m4/stdbool.m4: Likewise.
38743         * m4/stdint.m4: Likewise.
38744         * m4/stdint_h.m4: Likewise.
38745         * m4/stpcpy.m4: Likewise.
38746         * m4/stpncpy.m4: Likewise.
38747         * m4/strcase.m4: Likewise.
38748         * m4/strchrnul.m4: Likewise.
38749         * m4/strcspn.m4: Likewise.
38750         * m4/strdup.m4: Likewise.
38751         * m4/strftime.m4: Likewise.
38752         * m4/strndup.m4: Likewise.
38753         * m4/strnlen.m4: Likewise.
38754         * m4/strpbrk.m4: Likewise.
38755         * m4/strptime.m4: Likewise.
38756         * m4/strsep.m4: Likewise.
38757         * m4/strtod.m4: Likewise.
38758         * m4/strtoimax.m4: Likewise.
38759         * m4/strtok_r.m4: Likewise.
38760         * m4/strtol.m4: Likewise.
38761         * m4/strtoll.m4: Likewise.
38762         * m4/strtoul.m4: Likewise.
38763         * m4/strtoull.m4: Likewise.
38764         * m4/strtoumax.m4: Likewise.
38765         * m4/strverscmp.m4: Likewise.
38766         * m4/threadlib.m4: Likewise.
38767         * m4/timegm.m4: Likewise.
38768         * m4/tm_gmtoff.m4: Likewise.
38769         * m4/tmpdir.m4: Likewise.
38770         * m4/tmpfile.m4: Likewise.
38771         * m4/tzset.m4: Likewise.
38772         * m4/uintmax_t.m4: Likewise.
38773         * m4/unlinkdir.m4: Likewise.
38774         * m4/unlocked-io.m4: Likewise.
38775         * m4/uptime.m4: Likewise.
38776         * m4/userspec.m4: Likewise.
38777         * m4/utimbuf.m4: Likewise.
38778         * m4/utime.m4: Likewise.
38779         * m4/utimes-null.m4: Likewise.
38780         * m4/utimes.m4: Likewise.
38781         * m4/vararrays.m4: Likewise.
38782         * m4/vasnprintf.m4: Likewise.
38783         * m4/vfprintf-posix.m4: Likewise.
38784         * m4/vprintf-posix.m4: Likewise.
38785         * m4/wait-process.m4: Likewise.
38786         * m4/wchar_t.m4: Likewise.
38787         * m4/wint_t.m4: Likewise.
38788         * m4/write-any-file.m4: Likewise.
38789         * m4/yield.m4: Likewise.
38790
38791 2009-01-13  Bruno Haible  <bruno@clisp.org>
38792
38793         Avoid test-copy-file.sh failures when ACL support insufficient.
38794         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38795         TESTS_ENVIRONMENT.
38796         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38797         Reported by Jim Meyering.
38798
38799 2009-01-13  Bruno Haible  <bruno@clisp.org>
38800
38801         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38802         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38803         * modules/unistdio/u8-printf-parse (Files): Likewise.
38804         * modules/unistdio/u32-printf-parse (Files): Likewise.
38805         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38806
38807 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38808
38809         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38810         and m4/inttypes_h.m4 too.
38811
38812 2009-01-12  Eric Blake  <ebb9@byu.net>
38813
38814         tests: IRIX 6.2 cc can't compile -0.0 into .data
38815         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38816         rather than at compile-time.
38817         * tests/test-floorl.c (minus_zero): Likewise.
38818         * tests/test-frexpl.c (minus_zero): Likewise.
38819         * tests/test-isnan.c (minus_zerol): Likewise.
38820         * tests/test-isnanl.h (minus_zero): Likewise.
38821         * tests/test-ldexpl.c (minus_zero): Likewise.
38822         * tests/test-roundl.c (minus_zero): Likewise.
38823         * tests/test-signbit.c (minus_zerol): Likewise.
38824         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38825         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38826         * tests/test-truncl.c (minus_zero): Likewise.
38827         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38828         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38829         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38830
38831 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38832
38833         regex: fix glibc bug 9697
38834         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38835         handling.
38836
38837 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38838
38839         regex: fix glibc bug 697
38840         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38841         being NULL also if there are no backreferences.
38842
38843 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38844
38845         regex: merge glibc changes
38846         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38847         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38848         re_string_skip_chars, re_string_reconstruct): Likewise.
38849         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38850
38851 2009-01-07  Jim Meyering  <meyering@redhat.com>
38852
38853         poll: filter through cppi
38854         * lib/poll.c: Indent cpp directives to reflect nesting.
38855
38856 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38857
38858         poll: don't return uninitialized
38859         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38860
38861 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38862
38863         avoid compile failure on AIX 6.1
38864         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38865         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38866
38867 2009-01-04  Jim Meyering  <meyering@redhat.com>
38868
38869         remove duplicate inclusion of <stdio.h>
38870         * tests/test-fprintf-posix.c: Likewise.
38871         * tests/test-printf-posix.c: Likewise.
38872         * tests/test-snprintf-posix.c: Likewise.
38873         * tests/test-sprintf-posix.c: Likewise.
38874         * tests/test-vasprintf-posix.c: Likewise.
38875         * tests/test-vfprintf-posix.c: Likewise.
38876         * tests/test-vprintf-posix.c: Likewise.
38877         * tests/test-vsnprintf-posix.c: Likewise.
38878         * tests/test-vsprintf-posix.c: Likewise.
38879
38880 2009-01-03  Jim Meyering  <meyering@redhat.com>
38881
38882         gnulib-tool: fix sed-based filtering
38883         * gnulib-tool (func_filter_filelist): Remove extra backslash
38884         in sed_fff_filter definition.
38885
38886 2009-01-02  Jim Meyering  <meyering@redhat.com>
38887
38888         strftime: avoid compilation failure on Solaris 2.6
38889         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38890         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38891         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38892         be available.  Reported by Tom G. Christensen.  Details in
38893         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38894
38895 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38896             Bruno Haible  <bruno@clisp.org>
38897
38898         Speed up gnulib-tool by doing more string processing through shell
38899         built-ins.
38900         * gnulib-tool (fast_func_append): New variable.
38901         (func_remove_prefix, func_remove_suffix): New functions.
38902         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38903         (func_filter_filelist): New function.
38904         (func_get_dependencies): Use func_remove_suffix instead of sed.
38905         (func_get_automake_snippet): Use func_filter_filelist instead of a
38906         subshell and sed invocation.
38907
38908 2009-01-01  Bruno Haible  <bruno@clisp.org>
38909
38910         Fix a security bug.
38911         * gnulib-tool (func_import, import, update): Don't allow the characters
38912         '"', '$', '`', '\' in macro arguments that become part of commands that
38913         are evaluated.
38914
38915 2009-01-01  Bruno Haible  <bruno@clisp.org>
38916
38917         * gnulib-tool (func_reset_sigpipe): Add more comments.
38918
38919 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38920
38921         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38922         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38923         already know the answer.
38924
38925 2009-01-01  Jim Meyering  <meyering@redhat.com>
38926
38927         * lib/version-etc.c (version_etc_va): Update copyright year.
38928
38929 2008-12-30  Bruno Haible  <bruno@clisp.org>
38930
38931         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38932         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38933         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38934
38935 2008-12-29  Eric Blake  <ebb9@byu.net>
38936
38937         multiarch: avoid autoconf AC_REQUIRE bug
38938         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38939         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38940         2.63 and older.
38941         Reported by Bruno Haible, and analyzed in
38942         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38943
38944 2008-12-29  Bruno Haible  <bruno@clisp.org>
38945
38946         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38947         files in subdirectories correctly.
38948         Reported by Ralf Wildenhues.
38949
38950 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38951
38952         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38953         rather than 'join FILE -', for Solaris join.
38954
38955 2008-12-29  Bruno Haible  <bruno@clisp.org>
38956
38957         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38958         quoting.
38959         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38960         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38961         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38962         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38963         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38964         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38965         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38966         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38967         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38968         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38969         * m4/nls.m4 (AM_NLS): Likewise.
38970         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38971         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38972         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38973         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38974         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38975         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38976         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38977         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38978         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38979         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38980         * m4/xsize.m4 (gl_XSIZE): Likewise.
38981         Suggested by Jim Meyering.
38982
38983 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38984
38985         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38986         * lib/parse-duration.c: use a switch instead of cascading if's.
38987
38988 2008-12-29  Eric Blake  <ebb9@byu.net>
38989
38990         wchar.h: supply WEOF on Irix 5.3
38991         * lib/wchar.in.h (wint_t): Also supply WEOF.
38992         * lib/wctype.in.h (wint_t): Likewise.
38993         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38994         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38995         Reported by Tom G. Christensen.
38996
38997 2008-12-26  Bruno Haible  <bruno@clisp.org>
38998
38999         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39000         i486, i586, i686.
39001
39002 2008-12-26  Bruno Haible  <bruno@clisp.org>
39003
39004         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39005
39006 2008-12-26  Bruno Haible  <bruno@clisp.org>
39007
39008         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39009         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39010         not __STDC_CONSTANT_MACROS.
39011         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39012
39013 2008-12-25  Bruno Haible  <bruno@clisp.org>
39014
39015         Add support for universal builds to vasnprintf.
39016         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39017         universal builds, guess no.
39018         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39019         * modules/vasprintf-posix (Depends-on): Likewise.
39020         * modules/fprintf-posix (Depends-on): Likewise.
39021         * modules/vfprintf-posix (Depends-on): Likewise.
39022         * modules/snprintf-posix (Depends-on): Likewise.
39023         * modules/vsnprintf-posix (Depends-on): Likewise.
39024         * modules/sprintf-posix (Depends-on): Likewise.
39025         * modules/vsprintf-posix (Depends-on): Likewise.
39026         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39027         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39028         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39029         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39030         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39031         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39032         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39033
39034         Add support for universal builds to <inttypes.h>.
39035         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39036         _SCNu64_PREFIX): In Apple
39037         universal builds, define directly, using _LP64.
39038         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39039         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39040         * modules/inttypes (Depends-on): Add multiarch.
39041         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39042
39043         Add support for universal builds to <stdint.h>.
39044         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39045         universal builds, define directly, using _LP64.
39046         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39047         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39048         and size_t.
39049         * modules/stdint (Depends-on): Add multiarch.
39050         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39051
39052         New module 'multiarch'.
39053         * modules/multiarch: New file.
39054         * m4/multiarch.m4: New file.
39055
39056 2008-12-25  Bruno Haible  <bruno@clisp.org>
39057
39058         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39059
39060 2008-12-25  Bruno Haible  <bruno@clisp.org>
39061
39062         * modules/btowc (License): Relicense under LGPLv2+.
39063         * modules/mbsinit (License): Likewise.
39064         * modules/mbrtowc (License): Likewise.
39065         * modules/wcrtomb (License): Likewise.
39066         * modules/streq (License): Likewise.
39067         Reported by David Lutterkort <lutter@redhat.com>.
39068
39069 2008-12-23  Bruno Haible  <bruno@clisp.org>
39070
39071         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39072
39073 2008-12-23  Bruno Haible  <bruno@clisp.org>
39074
39075         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39076         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39077         GETADDRINFO_LIB, not in LIBS.
39078         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39079         * modules/canon-host (Link): Likewise.
39080         * NEWS: Mention the change.
39081         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39082         GETADDRINFO_LIB.
39083
39084 2008-12-22  Bruno Haible  <bruno@clisp.org>
39085
39086         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39087         * doc/posix-functions/iswalpha_l.texi: Likewise.
39088         * doc/posix-functions/iswblank_l.texi: Likewise.
39089         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39090         * doc/posix-functions/iswctype_l.texi: Likewise.
39091         * doc/posix-functions/iswdigit_l.texi: Likewise.
39092         * doc/posix-functions/iswgraph_l.texi: Likewise.
39093         * doc/posix-functions/iswlower_l.texi: Likewise.
39094         * doc/posix-functions/iswprint_l.texi: Likewise.
39095         * doc/posix-functions/iswpunct_l.texi: Likewise.
39096         * doc/posix-functions/iswspace_l.texi: Likewise.
39097         * doc/posix-functions/iswupper_l.texi: Likewise.
39098         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39099         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39100         * doc/posix-functions/open_wmemstream.texi: Likewise.
39101         * doc/posix-functions/swscanf.texi: Likewise.
39102         * doc/posix-functions/towctrans_l.texi: Likewise.
39103         * doc/posix-functions/towlower.texi: Likewise.
39104         * doc/posix-functions/towlower_l.texi: Likewise.
39105         * doc/posix-functions/towupper.texi: Likewise.
39106         * doc/posix-functions/towupper_l.texi: Likewise.
39107         * doc/posix-functions/vfwprintf.texi: Likewise.
39108         * doc/posix-functions/vfwscanf.texi: Likewise.
39109         * doc/posix-functions/vswscanf.texi: Likewise.
39110         * doc/posix-functions/vwprintf.texi: Likewise.
39111         * doc/posix-functions/vwscanf.texi: Likewise.
39112         * doc/posix-functions/wcpcpy.texi: Likewise.
39113         * doc/posix-functions/wcpncpy.texi: Likewise.
39114         * doc/posix-functions/wcscasecmp.texi: Likewise.
39115         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39116         * doc/posix-functions/wcscoll_l.texi: Likewise.
39117         * doc/posix-functions/wcsdup.texi: Likewise.
39118         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39119         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39120         * doc/posix-functions/wcsnlen.texi: Likewise.
39121         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39122         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39123         * doc/posix-functions/wctrans_l.texi: Likewise.
39124         * doc/posix-functions/wctype_l.texi: Likewise.
39125         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39126         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39127         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39128         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39129         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39130         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39131         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39132         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39133         * doc/glibc-functions/wcschrnul.texi: Likewise.
39134         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39135         * doc/glibc-functions/wcstod_l.texi: Likewise.
39136         * doc/glibc-functions/wcstof_l.texi: Likewise.
39137         * doc/glibc-functions/wcstol_l.texi: Likewise.
39138         * doc/glibc-functions/wcstold_l.texi: Likewise.
39139         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39140         * doc/glibc-functions/wcstoq.texi: Likewise.
39141         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39142         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39143         * doc/glibc-functions/wcstouq.texi: Likewise.
39144         * doc/glibc-functions/wmempcpy.texi: Likewise.
39145
39146 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39147             Eric Blake  <ebb9@byu.net>
39148             Paolo Bonzini  <bonzini@gnu.org>
39149             Bruno Haible  <bruno@clisp.org>
39150
39151         Make c-stack work on Haiku.
39152         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39153         (c_stack_action): Use SA_ONSTACK flag.
39154
39155 2008-12-22  Bruno Haible  <bruno@clisp.org>
39156
39157         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39158
39159 2008-12-22  Bruno Haible  <bruno@clisp.org>
39160
39161         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39162         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39163         being overridden.
39164         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39165         New macros.
39166         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39167         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39168         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39169         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39170
39171 2008-12-22  Bruno Haible  <bruno@clisp.org>
39172
39173         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39174         from test code.
39175
39176 2008-12-22  Eric Blake  <ebb9@byu.net>
39177
39178         Avoid gcc warnings on cygwin.
39179         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39180         Avoid unused variable.
39181         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39182         Likewise.
39183
39184 2008-12-22  Bruno Haible  <bruno@clisp.org>
39185
39186         Remove HAVE_MBRTOWC conditionals.
39187         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39188         (mbscasecmp): Assume mbrtowc function.
39189         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39190         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39191         * lib/mbschr.c: Include mbuiter.h unconditionally.
39192         (mbschr): Assume mbrtowc function.
39193         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39194         (mbscspn): Assume mbrtowc function.
39195         * lib/mbslen.c: Include mbuiter.h unconditionally.
39196         (mbslen): Assume mbrtowc function.
39197         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39198         (mbsncasecmp): Assume mbrtowc function.
39199         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39200         (mbsnlen): Assume mbrtowc function.
39201         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39202         (mbspbrk): Assume mbrtowc function.
39203         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39204         (mbspcasecmp): Assume mbrtowc function.
39205         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39206         (mbsrchr): Assume mbrtowc function.
39207         * lib/mbssep.c: Include mbuiter.h unconditionally.
39208         (mbssep): Assume mbrtowc function.
39209         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39210         (mbsspn): Assume mbrtowc function.
39211         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39212         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39213         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39214         (mbstok_r): Assume mbrtowc function.
39215         * lib/propername.c: Include mbuiter.h unconditionally.
39216         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39217         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39218         (trim2): Assume mbrtowc function.
39219         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39220         (mbsnwidth): Assume mbrtowc function.
39221         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39222         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39223         fallback definitions.
39224         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39225
39226 2008-12-22  Bruno Haible  <bruno@clisp.org>
39227
39228         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39229
39230 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39231
39232         * modules/regex: Request emulations for the mb*/wc* functions we need.
39233         * m4/regex.m4: Don't look for those functions here.
39234         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39235
39236 2008-12-22  Bruno Haible  <bruno@clisp.org>
39237
39238         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39239
39240 2008-12-21  Bruno Haible  <bruno@clisp.org>
39241
39242         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39243         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39244         (Include): Remove conditionalization.
39245         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39246         (Include): Remove conditionalization.
39247         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39248         (Include): Remove conditionalization.
39249         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39250         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39251         * NEWS: Mention the change.
39252         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39253         via Sergey Poznyakoff <gray@gnu.org.ua>.
39254
39255 2008-12-21  Bruno Haible  <bruno@clisp.org>
39256
39257         * MODULES.html.sh (Extended multibyte and wide character utilities
39258         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39259         wcrtomb, wcsrtombs.
39260         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39261         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39262         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39263         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39264
39265 2008-12-21  Bruno Haible  <bruno@clisp.org>
39266
39267         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39268
39269 2008-12-21  Bruno Haible  <bruno@clisp.org>
39270
39271         * modules/wcsnrtombs-tests: New file.
39272         * tests/test-wcsnrtombs1.sh: New file.
39273         * tests/test-wcsnrtombs2.sh: New file.
39274         * tests/test-wcsnrtombs3.sh: New file.
39275         * tests/test-wcsnrtombs4.sh: New file.
39276         * tests/test-wcsnrtombs.c: New file.
39277
39278         New module 'wcsnrtombs'.
39279         * lib/wchar.in.h (wcsnrtombs): New declaration.
39280         * lib/wcsnrtombs.c: New file.
39281         * lib/wcsrtombs-state.c: New file.
39282         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39283         (internal_state): Remove variable.
39284         * m4/wcsnrtombs.m4: New file.
39285         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39286         compilation units.
39287         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39288         HAVE_WCSNRTOMBS.
39289         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39290         HAVE_WCSNRTOMBS.
39291         * modules/wcsnrtombs: New file.
39292         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39293         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39294
39295 2008-12-21  Bruno Haible  <bruno@clisp.org>
39296
39297         * modules/wcsrtombs-tests: New file.
39298         * tests/test-wcsrtombs1.sh: New file.
39299         * tests/test-wcsrtombs2.sh: New file.
39300         * tests/test-wcsrtombs3.sh: New file.
39301         * tests/test-wcsrtombs4.sh: New file.
39302         * tests/test-wcsrtombs.c: New file.
39303
39304         New module 'wcsrtombs'.
39305         * lib/wchar.in.h (wcsrtombs): New declaration.
39306         * lib/wcsrtombs.c: New file.
39307         * m4/wcsrtombs.m4: New file.
39308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39309         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39311         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39312         * modules/wcsrtombs: New file.
39313         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39314         bugs.
39315
39316 2008-12-21  Bruno Haible  <bruno@clisp.org>
39317
39318         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39319         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39320         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39321         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39322         if not correct.
39323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39324         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39325         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39326         m4/locale-zh.m4, m4/codeset.m4.
39327         * doc/posix-functions/wcrtomb.texi: Document the bug.
39328
39329 2008-12-21  Bruno Haible  <bruno@clisp.org>
39330
39331         Work around a btowc() bug on IRIX 6.5.
39332         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39333         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39334         REPLACE_WTOBC if not.
39335         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39336         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39337         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39338
39339 2008-12-21  Bruno Haible  <bruno@clisp.org>
39340
39341         * modules/wcrtomb-tests: New file.
39342         * tests/test-wcrtomb.sh: New file.
39343         * tests/test-wcrtomb.c: New file.
39344
39345         New module 'wcrtomb'.
39346         * lib/wchar.in.h (wcrtomb): New declaration.
39347         * lib/wcrtomb.c: New file.
39348         * m4/wcrtomb.m4: New file.
39349         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39350         HAVE_WCRTOMB.
39351         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39352         HAVE_WCRTOMB.
39353         * modules/wcrtomb: New file.
39354         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39355
39356 2008-12-21  Bruno Haible  <bruno@clisp.org>
39357
39358         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39359         * modules/mbsrtowcs (Files): Likewise.
39360         * modules/wctob (Files): Likewise.
39361         * modules/c-strcase-tests (Files): Likewise.
39362         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39363         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39364         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39365         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39366         * modules/vasnprintf-posix-tests (Files): Likewise.
39367
39368 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39369
39370         gitlog-to-changelog: pass all command-line arguments to git-log
39371         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39372         it is sometimes convenient to filter the commits in various ways.
39373         gitlog-to-changelog only allows --since to specify a start date,
39374         but git-log itself supports many other filtering mechanisms.
39375         At the moment, I want to filter by branch name.  Rather than
39376         adding a --branch option to gitlog-to-changelog, it seems more
39377         flexible to simply pass all options directly to git-log and let
39378         git do the work.  Notice that this effectively makes --since a
39379         redundant option for gitlog-to-changelog, but removing it would
39380         require current usage to change since calls would then require
39381         an additional '--'.
39382
39383 2008-12-21  Bruno Haible  <bruno@clisp.org>
39384
39385         * modules/mbsnrtowcs-tests: New file.
39386         * tests/test-mbsnrtowcs1.sh: New file.
39387         * tests/test-mbsnrtowcs2.sh: New file.
39388         * tests/test-mbsnrtowcs3.sh: New file.
39389         * tests/test-mbsnrtowcs4.sh: New file.
39390         * tests/test-mbsnrtowcs.c: New file.
39391
39392         New module 'mbsnrtowcs'.
39393         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39394         * lib/mbsnrtowcs.c: New file.
39395         * lib/mbsrtowcs-state.c: New file.
39396         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39397         (internal_state): Remove variable.
39398         * m4/mbsnrtowcs.m4: New file.
39399         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39400         compilation units.
39401         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39402         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39403         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39404         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39405         * modules/mbsnrtowcs: New file.
39406         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39407         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39408         portability problem.
39409
39410 2008-12-21  Bruno Haible  <bruno@clisp.org>
39411
39412         Work around mbsrtowcs bug.
39413         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39414         (gl_FUNC_MBSRTOWCS): Invoke it.
39415         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39416         m4/locale-zh.m4.
39417         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39418
39419 2008-12-21  Bruno Haible  <bruno@clisp.org>
39420
39421         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39422
39423 2008-12-21  Bruno Haible  <bruno@clisp.org>
39424
39425         Update doc for AIX.
39426         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39427         16-bit wchar_t type.
39428         * doc/posix-functions/btowc.texi: Likewise.
39429         * doc/posix-functions/fgetwc.texi: Likewise.
39430         * doc/posix-functions/fgetws.texi: Likewise.
39431         * doc/posix-functions/fputwc.texi: Likewise.
39432         * doc/posix-functions/fputws.texi: Likewise.
39433         * doc/posix-functions/fwide.texi: Likewise.
39434         * doc/posix-functions/fwprintf.texi: Likewise.
39435         * doc/posix-functions/fwscanf.texi: Likewise.
39436         * doc/posix-functions/getwchar.texi: Likewise.
39437         * doc/posix-functions/getwc.texi: Likewise.
39438         * doc/posix-functions/iswalnum.texi: Likewise.
39439         * doc/posix-functions/iswalpha.texi: Likewise.
39440         * doc/posix-functions/iswblank.texi: Likewise.
39441         * doc/posix-functions/iswcntrl.texi: Likewise.
39442         * doc/posix-functions/iswctype.texi: Likewise.
39443         * doc/posix-functions/iswdigit.texi: Likewise.
39444         * doc/posix-functions/iswgraph.texi: Likewise.
39445         * doc/posix-functions/iswlower.texi: Likewise.
39446         * doc/posix-functions/iswprint.texi: Likewise.
39447         * doc/posix-functions/iswpunct.texi: Likewise.
39448         * doc/posix-functions/iswspace.texi: Likewise.
39449         * doc/posix-functions/iswupper.texi: Likewise.
39450         * doc/posix-functions/iswxdigit.texi: Likewise.
39451         * doc/posix-functions/mbrtowc.texi: Likewise.
39452         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39453         * doc/posix-functions/mbstowcs.texi: Likewise.
39454         * doc/posix-functions/mbtowc.texi: Likewise.
39455         * doc/posix-functions/putwchar.texi: Likewise.
39456         * doc/posix-functions/putwc.texi: Likewise.
39457         * doc/posix-functions/swprintf.texi: Likewise.
39458         * doc/posix-functions/tolower.texi: Likewise.
39459         * doc/posix-functions/toupper.texi: Likewise.
39460         * doc/posix-functions/towctrans.texi: Likewise.
39461         * doc/posix-functions/ungetwc.texi: Likewise.
39462         * doc/posix-functions/vswprintf.texi: Likewise.
39463         * doc/posix-functions/wcrtomb.texi: Likewise.
39464         * doc/posix-functions/wcscat.texi: Likewise.
39465         * doc/posix-functions/wcschr.texi: Likewise.
39466         * doc/posix-functions/wcscmp.texi: Likewise.
39467         * doc/posix-functions/wcscoll.texi: Likewise.
39468         * doc/posix-functions/wcscpy.texi: Likewise.
39469         * doc/posix-functions/wcscspn.texi: Likewise.
39470         * doc/posix-functions/wcsftime.texi: Likewise.
39471         * doc/posix-functions/wcslen.texi: Likewise.
39472         * doc/posix-functions/wcsncat.texi: Likewise.
39473         * doc/posix-functions/wcsncmp.texi: Likewise.
39474         * doc/posix-functions/wcsncpy.texi: Likewise.
39475         * doc/posix-functions/wcspbrk.texi: Likewise.
39476         * doc/posix-functions/wcsrchr.texi: Likewise.
39477         * doc/posix-functions/wcsrtombs.texi: Likewise.
39478         * doc/posix-functions/wcsspn.texi: Likewise.
39479         * doc/posix-functions/wcsstr.texi: Likewise.
39480         * doc/posix-functions/wcstod.texi: Likewise.
39481         * doc/posix-functions/wcstof.texi: Likewise.
39482         * doc/posix-functions/wcstoimax.texi: Likewise.
39483         * doc/posix-functions/wcstok.texi: Likewise.
39484         * doc/posix-functions/wcstold.texi: Likewise.
39485         * doc/posix-functions/wcstoll.texi: Likewise.
39486         * doc/posix-functions/wcstol.texi: Likewise.
39487         * doc/posix-functions/wcstombs.texi: Likewise.
39488         * doc/posix-functions/wcstoull.texi: Likewise.
39489         * doc/posix-functions/wcstoul.texi: Likewise.
39490         * doc/posix-functions/wcstoumax.texi: Likewise.
39491         * doc/posix-functions/wcswidth.texi: Likewise.
39492         * doc/posix-functions/wcsxfrm.texi: Likewise.
39493         * doc/posix-functions/wctob.texi: Likewise.
39494         * doc/posix-functions/wctomb.texi: Likewise.
39495         * doc/posix-functions/wctrans.texi: Likewise.
39496         * doc/posix-functions/wctype.texi: Likewise.
39497         * doc/posix-functions/wcwidth.texi: Likewise.
39498         * doc/posix-functions/wmemchr.texi: Likewise.
39499         * doc/posix-functions/wmemcmp.texi: Likewise.
39500         * doc/posix-functions/wmemcpy.texi: Likewise.
39501         * doc/posix-functions/wmemmove.texi: Likewise.
39502         * doc/posix-functions/wmemset.texi: Likewise.
39503         * doc/posix-functions/wprintf.texi: Likewise.
39504         * doc/posix-functions/wscanf.texi: Likewise.
39505
39506 2008-12-21  Bruno Haible  <bruno@clisp.org>
39507
39508         Update doc for HP-UX 11.11.
39509         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39510         in HP-UX version 11.00, not in all versions of HP-UX 11.
39511         * doc/posix-functions/fwide.texi: Likewise.
39512         * doc/posix-functions/fwprintf.texi: Likewise.
39513         * doc/posix-functions/fwscanf.texi: Likewise.
39514         * doc/posix-functions/inet_ntop.texi: Likewise.
39515         * doc/posix-functions/inet_pton.texi: Likewise.
39516         * doc/posix-functions/mbrlen.texi: Likewise.
39517         * doc/posix-functions/mbrtowc.texi: Likewise.
39518         * doc/posix-functions/mbsinit.texi: Likewise.
39519         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39520         * doc/posix-functions/swprintf.texi: Likewise.
39521         * doc/posix-functions/swscanf.texi: Likewise.
39522         * doc/posix-functions/towctrans.texi: Likewise.
39523         * doc/posix-functions/vfwprintf.texi: Likewise.
39524         * doc/posix-functions/vswprintf.texi: Likewise.
39525         * doc/posix-functions/vwprintf.texi: Likewise.
39526         * doc/posix-functions/wcrtomb.texi: Likewise.
39527         * doc/posix-functions/wcsrtombs.texi: Likewise.
39528         * doc/posix-functions/wcsstr.texi: Likewise.
39529         * doc/posix-functions/wctob.texi: Likewise.
39530         * doc/posix-functions/wctrans.texi: Likewise.
39531         * doc/posix-functions/wmemchr.texi: Likewise.
39532         * doc/posix-functions/wmemcmp.texi: Likewise.
39533         * doc/posix-functions/wmemcpy.texi: Likewise.
39534         * doc/posix-functions/wmemmove.texi: Likewise.
39535         * doc/posix-functions/wmemset.texi: Likewise.
39536         * doc/posix-functions/wprintf.texi: Likewise.
39537         * doc/posix-functions/wscanf.texi: Likewise.
39538
39539 2008-12-21  Bruno Haible  <bruno@clisp.org>
39540
39541         Work around a portability problem.
39542         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39543         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39544
39545 2008-12-20  Bruno Haible  <bruno@clisp.org>
39546
39547         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39548         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39549         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39550         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39551         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39552
39553         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39554         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39555         set.
39556         (GNULIB_defined_mbstate_t): New macro.
39557         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39558         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39559         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39560         reuses the system's mbrtowc function but works around the bugs.
39561         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39562         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39563         macros.
39564         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39565         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39566         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39567         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39568         REPLACE_MBSINIT if mbsinit needs to be overridden.
39569         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39570         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39571         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39572         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39573         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39574         m4/locale-zh.m4.
39575         (Depends): Add mbsinit.
39576         * modules/mbsinit (Depends): Add mbrtowc.
39577         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39578
39579 2008-12-20  Bruno Haible  <bruno@clisp.org>
39580
39581         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39582         so that there are no conversion errors on AIX.
39583         * tests/test-mbsrtowcs.c (main): LIkewise.
39584
39585 2008-12-20  Bruno Haible  <bruno@clisp.org>
39586
39587         Work around wctob bug on Solaris <= 9.
39588         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39589         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39590         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39591         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39592         * modules/wctob (Files): Add m4/locale-fr.m4.
39593         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39594
39595 2008-12-20  Bruno Haible  <bruno@clisp.org>
39596
39597         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39598         /dev/null.
39599         * tests/test-select-in.sh: Likewise.
39600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39601
39602 2008-12-20  Bruno Haible  <bruno@clisp.org>
39603
39604         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39605         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39606         Cygwin 1.5.x.
39607
39608 2008-12-20  Bruno Haible  <bruno@clisp.org>
39609
39610         Ensure mbstate_t is defined on HP-UX 11.11.
39611         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39612         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39613         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39614         AC_USE_SYSTEM_EXTENSIONS.
39615         * modules/fnmatch (Depends-on): Add extensions.
39616         * modules/mbrlen (Depends-on): Likewise.
39617         * modules/mbrtowc (Depends-on): Likewise.
39618         * modules/mbsinit (Depends-on): Likewise.
39619         * modules/mbsrtowcs (Depends-on): Likewise.
39620         * modules/mbswidth (Depends-on): Likewise.
39621         * modules/quotearg (Depends-on): Likewise.
39622         * modules/strftime (Depends-on): Likewise.
39623
39624 2008-12-20  Bruno Haible  <bruno@clisp.org>
39625
39626         Ensure wctob is declared on IRIX 6.5.
39627         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39628         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39629         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39630         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39631         of HAVE_WCTOB.
39632         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39633         HAVE_WCTOB.
39634         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39635
39636 2008-12-19  Bruno Haible  <bruno@clisp.org>
39637
39638         * modules/mbsrtowcs-tests: New file.
39639         * tests/test-mbsrtowcs1.sh: New file.
39640         * tests/test-mbsrtowcs2.sh: New file.
39641         * tests/test-mbsrtowcs3.sh: New file.
39642         * tests/test-mbsrtowcs4.sh: New file.
39643         * tests/test-mbsrtowcs.c: New file.
39644
39645         New module 'mbsrtowcs'.
39646         * lib/wchar.in.h (mbsrtowcs): New declaration.
39647         * lib/mbsrtowcs.c: New file.
39648         * m4/mbsrtowcs.m4: New file.
39649         * modules/mbsrtowcs: New file.
39650         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39651         HAVE_MBSRTOWCS.
39652         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39653         HAVE_MBSRTOWCS.
39654         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39655
39656 2008-12-19  Bruno Haible  <bruno@clisp.org>
39657
39658         New module 'mbrlen'.
39659         * lib/wchar.in.h (mbrlen): New declaration.
39660         * lib/mbrlen.c: New file.
39661         * m4/mbrlen.m4: New file.
39662         * modules/mbrlen: New file.
39663         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39664         HAVE_MBRLEN.
39665         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39666         HAVE_MBRLEN.
39667         * doc/posix-functions/mbrlen.texi: Document the new module.
39668
39669 2008-12-19  Bruno Haible  <bruno@clisp.org>
39670
39671         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39672         * modules/mbrtowc (Depends-on): Add verify.
39673         Suggested by Paul Eggert.
39674
39675 2008-12-18  Bruno Haible  <bruno@clisp.org>
39676
39677         * modules/mbsinit-tests: New file.
39678         * tests/test-mbsinit.sh: New file.
39679         * tests/test-mbsinit.c: New file.
39680
39681 2008-12-18  Bruno Haible  <bruno@clisp.org>
39682
39683         * modules/mbrtowc-tests: New file.
39684         * tests/test-mbrtowc1.sh: New file.
39685         * tests/test-mbrtowc2.sh: New file.
39686         * tests/test-mbrtowc3.sh: New file.
39687         * tests/test-mbrtowc4.sh: New file.
39688         * tests/test-mbrtowc.c: New file.
39689
39690         New module 'mbrtowc'.
39691         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39692         mbsinit and mbrtowc.
39693         (mbrtowc): New declaration.
39694         * lib/mbrtowc.c: New file.
39695         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39696         * modules/mbrtowc: New file.
39697         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39698         HAVE_MBRTOWC.
39699         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39700         HAVE_MBRTOWC.
39701         * doc/posix-functions/mbrtowc.texi: Document the new module.
39702
39703 2008-12-18  Bruno Haible  <bruno@clisp.org>
39704
39705         New module 'wctob'.
39706         * lib/wchar.in.h (wctob): New declaration.
39707         * lib/wctob.c: New file.
39708         * m4/wctob.m4: New file.
39709         * modules/wctob: New file.
39710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39711         HAVE_WCTOB.
39712         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39713         * doc/posix-functions/wctob.texi: Document the new module.
39714
39715 2008-12-18  Bruno Haible  <bruno@clisp.org>
39716
39717         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39718         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39719
39720 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39721
39722         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39723         G. Christensen" <tgc@jupiterrise.com>.
39724
39725         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39726         G. Christensen" <tgc@jupiterrise.com>.
39727
39728         * lib/flock.c: Need to include string.h.  Reported by "Tom
39729         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39730         <ebb9@byu.net>.
39731
39732 2008-12-18  Bruno Haible  <bruno@clisp.org>
39733
39734         * m4/locale-ja.m4: New file, from GNU gettext.
39735
39736 2008-12-17  Bruno Haible  <bruno@clisp.org>
39737
39738         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39739         Suggested by Eric Blake.
39740
39741 2008-12-17  Bruno Haible  <bruno@clisp.org>
39742
39743         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39744
39745 2008-12-17  Bruno Haible  <bruno@clisp.org>
39746
39747         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39748         * modules/mbsinit (Depends-on): Add verify.
39749         Suggested by Paul Eggert.
39750
39751 2008-12-17  Bruno Haible  <bruno@clisp.org>
39752
39753         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39754         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39755         gl_FUNC_MBRTOWC.
39756         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39757         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39758         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39759         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39760         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39761         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39762         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39763         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39764         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39765         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39766         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39767         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39768         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39769         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39770         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39771         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39772         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39773         * modules/trim (configure.ac): Likewise.
39774
39775 2008-12-17  Bruno Haible  <bruno@clisp.org>
39776
39777         * modules/btowc-tests: New file.
39778         * tests/test-btowc1.sh: New file.
39779         * tests/test-btowc2.sh: New file.
39780         * tests/test-btowc.c: New file.
39781
39782         New module 'btowc'.
39783         * lib/wchar.in.h (btowc): New declaration.
39784         * lib/btowc.c: New file.
39785         * m4/btowc.m4: New file.
39786         * modules/btowc: New file.
39787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39788         HAVE_BTOWC.
39789         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39790         * doc/posix-functions/btowc.texi: Document the new module.
39791
39792 2008-12-17  Bruno Haible  <bruno@clisp.org>
39793
39794         New module 'mbsinit'.
39795         * lib/wchar.in.h (mbsinit): New declaration.
39796         * lib/mbsinit.c: New file.
39797         * m4/mbsinit.m4: New file.
39798         * modules/mbsinit: New file.
39799         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39800         HAVE_MBSINIT.
39801         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39802         HAVE_MBSINIT.
39803         * doc/posix-functions/mbsinit.texi: Document the new module.
39804
39805 2008-12-16  Bruno Haible  <bruno@clisp.org>
39806
39807         * lib/unistd.in.h: Add comment.
39808         * tests/test-environ.c: Don't include <stdlib.h>.
39809
39810 2008-12-16  Bruno Haible  <bruno@clisp.org>
39811
39812         * lib/parse-duration.h (parse_duration): Document return value
39813         convention.
39814         * lib/parse-duration.c: Include specification header first. Add
39815         comments.
39816         (_): Remove macro.
39817         (parse_year_month_day, parse_hour_minute_second): Move side effects
39818         outside of strchr call.
39819         (parse_non_iso8601): Move side effects outside of isspace call.
39820         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39821         call.
39822
39823 2008-12-16  Bruno Haible  <bruno@clisp.org>
39824
39825         * tests/test-parse-duration.sh: Produce no output when the test
39826         succeeds.
39827
39828 2008-12-16  Bruno Haible  <bruno@clisp.org>
39829
39830         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39831         expressions.
39832
39833 2008-12-15  Bruno Haible  <bruno@clisp.org>
39834
39835         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39836         * doc/glibc-functions/flistxattr.texi: Likewise.
39837         * doc/glibc-functions/fopencookie.texi: Likewise.
39838         * doc/glibc-functions/fremovexattr.texi: Likewise.
39839         * doc/glibc-functions/fsetxattr.texi: Likewise.
39840         * doc/glibc-functions/getxattr.texi: Likewise.
39841         * doc/glibc-functions/lgetxattr.texi: Likewise.
39842         * doc/glibc-functions/listxattr.texi: Likewise.
39843         * doc/glibc-functions/llistxattr.texi: Likewise.
39844         * doc/glibc-functions/lremovexattr.texi: Likewise.
39845         * doc/glibc-functions/lsetxattr.texi: Likewise.
39846         * doc/glibc-functions/removexattr.texi: Likewise.
39847         * doc/glibc-functions/setxattr.texi: Likewise.
39848         * doc/posix-functions/open_memstream.texi: Likewise.
39849
39850 2008-12-15  Eric Blake  <ebb9@byu.net>
39851
39852         Update doc for cygwin 1.7.
39853         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39854         functions.
39855         * doc/posix-functions/fchmodat.texi: Likewise.
39856         * doc/posix-functions/fchownat.texi: Likewise.
39857         * doc/posix-functions/fdopendir.texi: Likewise.
39858         * doc/posix-functions/fmemopen.texi: Likewise.
39859         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39860         * doc/posix-functions/fstatat.texi: Likewise.
39861         * doc/posix-functions/futimens.texi: Likewise.
39862         * doc/posix-functions/gai_strerror.texi: Likewise.
39863         * doc/posix-functions/getaddrinfo.texi: Likewise.
39864         * doc/posix-functions/getnameinfo.texi: Likewise.
39865         * doc/posix-functions/if_freenameindex.texi: Likewise.
39866         * doc/posix-functions/if_indextoname.texi: Likewise.
39867         * doc/posix-functions/if_nameindex.texi: Likewise.
39868         * doc/posix-functions/if_nametoindex.texi: Likewise.
39869         * doc/posix-functions/insque.texi: Likewise.
39870         * doc/posix-functions/linkat.texi: Likewise.
39871         * doc/posix-functions/llrint.texi: Likewise.
39872         * doc/posix-functions/llrintf.texi: Likewise.
39873         * doc/posix-functions/llrintl.texi: Likewise.
39874         * doc/posix-functions/lockf.texi: Likewise.
39875         * doc/posix-functions/lrintl.texi: Likewise.
39876         * doc/posix-functions/mkdirat.texi: Likewise.
39877         * doc/posix-functions/mkfifoat.texi: Likewise.
39878         * doc/posix-functions/mknodat.texi: Likewise.
39879         * doc/posix-functions/mq_close.texi: Likewise.
39880         * doc/posix-functions/mq_getattr.texi: Likewise.
39881         * doc/posix-functions/mq_notify.texi: Likewise.
39882         * doc/posix-functions/mq_open.texi: Likewise.
39883         * doc/posix-functions/mq_receive.texi: Likewise.
39884         * doc/posix-functions/mq_send.texi: Likewise.
39885         * doc/posix-functions/mq_setattr.texi: Likewise.
39886         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39887         * doc/posix-functions/mq_timedsend.texi: Likewise.
39888         * doc/posix-functions/mq_unlink.texi: Likewise.
39889         * doc/posix-functions/open_memstream.texi: Likewise.
39890         * doc/posix-functions/openat.texi: Likewise.
39891         * doc/posix-functions/posix_fadvise.texi: Likewise.
39892         * doc/posix-functions/posix_fallocate.texi: Likewise.
39893         * doc/posix-functions/posix_madvise.texi: Likewise.
39894         * doc/posix-functions/posix_memalign.texi: Likewise.
39895         * doc/posix-functions/posix_openpt.texi: Likewise.
39896         * doc/posix-functions/readlinkat.texi: Likewise.
39897         * doc/posix-functions/remque.texi: Likewise.
39898         * doc/posix-functions/renameat.texi: Likewise.
39899         * doc/posix-functions/rintl.texi: Likewise.
39900         * doc/posix-functions/sem_unlink.texi: Likewise.
39901         * doc/posix-functions/shm_open.texi: Likewise.
39902         * doc/posix-functions/shm_unlink.texi: Likewise.
39903         * doc/posix-functions/signgam.texi: Likewise.
39904         * doc/posix-functions/sigset.texi: Likewise.
39905         * doc/posix-functions/stpcpy.texi: Likewise.
39906         * doc/posix-functions/stpncpy.texi: Likewise.
39907         * doc/posix-functions/strerror.texi: Likewise.
39908         * doc/posix-functions/strtod.texi: Likewise.
39909         * doc/posix-functions/symlinkat.texi: Likewise.
39910         * doc/posix-functions/unlinkat.texi: Likewise.
39911         * doc/posix-functions/utimensat.texi: Likewise.
39912         * doc/glibc-functions/bindresvport.texi: Likewise.
39913         * doc/glibc-functions/dn_expand.texi: Likewise.
39914         * doc/glibc-functions/exp10.texi: Likewise.
39915         * doc/glibc-functions/exp10f.texi: Likewise.
39916         * doc/glibc-functions/fgetxattr.texi: Likewise.
39917         * doc/glibc-functions/flistxattr.texi: Likewise.
39918         * doc/glibc-functions/fopencookie.texi: Likewise.
39919         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39920         * doc/glibc-functions/fremovexattr.texi: Likewise.
39921         * doc/glibc-functions/fsetxattr.texi: Likewise.
39922         * doc/glibc-functions/getifaddrs.texi: Likewise.
39923         * doc/glibc-functions/getxattr.texi: Likewise.
39924         * doc/glibc-functions/lgetxattr.texi: Likewise.
39925         * doc/glibc-functions/listxattr.texi: Likewise.
39926         * doc/glibc-functions/llistxattr.texi: Likewise.
39927         * doc/glibc-functions/lremovexattr.texi: Likewise.
39928         * doc/glibc-functions/lsetxattr.texi: Likewise.
39929         * doc/glibc-functions/pow10.texi: Likewise.
39930         * doc/glibc-functions/pow10f.texi: Likewise.
39931         * doc/glibc-functions/rcmd_af.texi: Likewise.
39932         * doc/glibc-functions/removexattr.texi: Likewise.
39933         * doc/glibc-functions/res_init.texi: Likewise.
39934         * doc/glibc-functions/res_mkquery.texi: Likewise.
39935         * doc/glibc-functions/res_query.texi: Likewise.
39936         * doc/glibc-functions/res_querydomain.texi: Likewise.
39937         * doc/glibc-functions/res_send.texi: Likewise.
39938         * doc/glibc-functions/rresvport_af.texi: Likewise.
39939         * doc/glibc-functions/setxattr.texi: Likewise.
39940         * doc/glibc-functions/strcasestr.texi: Likewise.
39941
39942 2008-12-15  Bruno Haible  <bruno@clisp.org>
39943
39944         Fix compilation error on OSF/1 4.0.
39945         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39946         <sys/time.h>, simply delegate to the system header.
39947         Reported by Daniel Richard G. <oss@teragram.com>.
39948
39949 2008-12-15  Bruno Haible  <bruno@clisp.org>
39950
39951         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39952         * doc/posix-functions/fchmodat.texi: Likewise.
39953         * doc/posix-functions/fchownat.texi: Likewise.
39954         * doc/posix-functions/fdopendir.texi: Likewise.
39955         * doc/posix-functions/fstatat.texi: Likewise.
39956         * doc/posix-functions/mkdirat.texi: Likewise.
39957         * doc/posix-functions/unlinkat.texi: Likewise.
39958
39959 2008-12-14  Bruno Haible  <bruno@clisp.org>
39960
39961         Update doc for POSIX:2008.
39962         * doc/posix-functions/faccessat.texi: New file.
39963         * doc/posix-functions/fchmodat.texi: New file.
39964         * doc/posix-functions/fchownat.texi: New file.
39965         * doc/posix-functions/fdopendir.texi: New file.
39966         * doc/posix-functions/fstatat.texi: New file.
39967         * doc/posix-functions/futimens.texi: New file.
39968         * doc/posix-functions/linkat.texi: New file.
39969         * doc/posix-functions/mkdirat.texi: New file.
39970         * doc/posix-functions/mkfifoat.texi: New file.
39971         * doc/posix-functions/mknodat.texi: New file.
39972         * doc/posix-functions/open_wmemstream.texi: New file.
39973         * doc/posix-functions/openat.texi: New file.
39974         * doc/posix-functions/psiginfo.texi: New file.
39975         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39976         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39977         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39978         * doc/posix-functions/readlinkat.texi: New file.
39979         * doc/posix-functions/renameat.texi: New file.
39980         * doc/posix-functions/strerror_l.texi: New file.
39981         * doc/posix-functions/symlinkat.texi: New file.
39982         * doc/posix-functions/unlinkat.texi: New file.
39983         * doc/posix-functions/utimensat.texi: New file.
39984         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39985
39986 2008-12-14  Bruno Haible  <bruno@clisp.org>
39987
39988         Update doc for POSIX:2008.
39989         * doc/posix-functions/alphasort.texi: Renamed from
39990         doc/glibc-functions/alphasort.texi.
39991         * doc/posix-functions/dirfd.texi: Renamed from
39992         doc/glibc-functions/dirfd.texi.
39993         * doc/posix-functions/dprintf.texi: Renamed from
39994         doc/glibc-functions/dprintf.texi.
39995         * doc/posix-functions/duplocale.texi: Renamed from
39996         doc/glibc-functions/duplocale.texi.
39997         * doc/posix-functions/fexecve.texi: Renamed from
39998         doc/glibc-functions/fexecve.texi.
39999         * doc/posix-functions/fmemopen.texi: Renamed from
40000         doc/glibc-functions/fmemopen.texi.
40001         * doc/posix-functions/freelocale.texi: Renamed from
40002         doc/glibc-functions/freelocale.texi.
40003         * doc/posix-functions/getdate_err.texi: Renamed from
40004         doc/glibc-functions/getdate_err.texi.
40005         * doc/posix-functions/isalnum_l.texi: Renamed from
40006         doc/glibc-functions/isalnum_l.texi.
40007         * doc/posix-functions/isalpha_l.texi: Renamed from
40008         doc/glibc-functions/isalpha_l.texi.
40009         * doc/posix-functions/isblank_l.texi: Renamed from
40010         doc/glibc-functions/isblank_l.texi.
40011         * doc/posix-functions/iscntrl_l.texi: Renamed from
40012         doc/glibc-functions/iscntrl_l.texi.
40013         * doc/posix-functions/isdigit_l.texi: Renamed from
40014         doc/glibc-functions/isdigit_l.texi.
40015         * doc/posix-functions/isgraph_l.texi: Renamed from
40016         doc/glibc-functions/isgraph_l.texi.
40017         * doc/posix-functions/islower_l.texi: Renamed from
40018         doc/glibc-functions/islower_l.texi.
40019         * doc/posix-functions/isprint_l.texi: Renamed from
40020         doc/glibc-functions/isprint_l.texi.
40021         * doc/posix-functions/ispunct_l.texi: Renamed from
40022         doc/glibc-functions/ispunct_l.texi.
40023         * doc/posix-functions/isspace_l.texi: Renamed from
40024         doc/glibc-functions/isspace_l.texi.
40025         * doc/posix-functions/isupper_l.texi: Renamed from
40026         doc/glibc-functions/isupper_l.texi.
40027         * doc/posix-functions/iswalnum_l.texi: Renamed from
40028         doc/glibc-functions/iswalnum_l.texi.
40029         * doc/posix-functions/iswalpha_l.texi: Renamed from
40030         doc/glibc-functions/iswalpha_l.texi.
40031         * doc/posix-functions/iswblank_l.texi: Renamed from
40032         doc/glibc-functions/iswblank_l.texi.
40033         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40034         doc/glibc-functions/iswcntrl_l.texi.
40035         * doc/posix-functions/iswctype_l.texi: Renamed from
40036         doc/glibc-functions/iswctype_l.texi.
40037         * doc/posix-functions/iswdigit_l.texi: Renamed from
40038         doc/glibc-functions/iswdigit_l.texi.
40039         * doc/posix-functions/iswgraph_l.texi: Renamed from
40040         doc/glibc-functions/iswgraph_l.texi.
40041         * doc/posix-functions/iswlower_l.texi: Renamed from
40042         doc/glibc-functions/iswlower_l.texi.
40043         * doc/posix-functions/iswprint_l.texi: Renamed from
40044         doc/glibc-functions/iswprint_l.texi.
40045         * doc/posix-functions/iswpunct_l.texi: Renamed from
40046         doc/glibc-functions/iswpunct_l.texi.
40047         * doc/posix-functions/iswspace_l.texi: Renamed from
40048         doc/glibc-functions/iswspace_l.texi.
40049         * doc/posix-functions/iswupper_l.texi: Renamed from
40050         doc/glibc-functions/iswupper_l.texi.
40051         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40052         doc/glibc-functions/iswxdigit_l.texi.
40053         * doc/posix-functions/isxdigit_l.texi: Renamed from
40054         doc/glibc-functions/isxdigit_l.texi.
40055         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40056         doc/glibc-functions/mbsnrtowcs.texi.
40057         * doc/posix-functions/mkdtemp.texi: Renamed from
40058         doc/glibc-functions/mkdtemp.texi.
40059         * doc/posix-functions/newlocale.texi: Renamed from
40060         doc/glibc-functions/newlocale.texi.
40061         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40062         doc/glibc-functions/nl_langinfo_l.texi.
40063         * doc/posix-functions/open_memstream.texi: Renamed from
40064         doc/glibc-functions/open_memstream.texi.
40065         * doc/posix-functions/opterr.texi: Renamed from
40066         doc/glibc-functions/opterr.texi.
40067         * doc/posix-functions/optind.texi: Renamed from
40068         doc/glibc-functions/optind.texi.
40069         * doc/posix-functions/optopt.texi: Renamed from
40070         doc/glibc-functions/optopt.texi.
40071         * doc/posix-functions/psignal.texi: Renamed from
40072         doc/glibc-functions/psignal.texi.
40073         * doc/posix-functions/scandir.texi: Renamed from
40074         doc/glibc-functions/scandir.texi.
40075         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40076         doc/glibc-functions/sched_get_priority_min.texi.
40077         * doc/posix-functions/signgam.texi: Renamed from
40078         doc/glibc-functions/signgam.texi.
40079         * doc/posix-functions/stpcpy.texi: Renamed from
40080         doc/glibc-functions/stpcpy.texi.
40081         * doc/posix-functions/stpncpy.texi: Renamed from
40082         doc/glibc-functions/stpncpy.texi.
40083         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40084         doc/glibc-functions/strcasecmp_l.texi.
40085         * doc/posix-functions/strcoll_l.texi: Renamed from
40086         doc/glibc-functions/strcoll_l.texi.
40087         * doc/posix-functions/strfmon_l.texi: Renamed from
40088         doc/glibc-functions/strfmon_l.texi.
40089         * doc/posix-functions/strftime_l.texi: Renamed from
40090         doc/glibc-functions/strftime_l.texi.
40091         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40092         doc/glibc-functions/strncasecmp_l.texi.
40093         * doc/posix-functions/strndup.texi: Renamed from
40094         doc/glibc-functions/strndup.texi.
40095         * doc/posix-functions/strnlen.texi: Renamed from
40096         doc/glibc-functions/strnlen.texi.
40097         * doc/posix-functions/strsignal.texi: Renamed from
40098         doc/glibc-functions/strsignal.texi.
40099         * doc/posix-functions/strxfrm_l.texi: Renamed from
40100         doc/glibc-functions/strxfrm_l.texi.
40101         * doc/posix-functions/timer_gettime.texi: Renamed from
40102         doc/glibc-functions/timer_gettime.texi.
40103         * doc/posix-functions/tolower_l.texi: Renamed from
40104         doc/glibc-functions/tolower_l.texi.
40105         * doc/posix-functions/toupper_l.texi: Renamed from
40106         doc/glibc-functions/toupper_l.texi.
40107         * doc/posix-functions/towctrans_l.texi: Renamed from
40108         doc/glibc-functions/towctrans_l.texi.
40109         * doc/posix-functions/towlower_l.texi: Renamed from
40110         doc/glibc-functions/towlower_l.texi.
40111         * doc/posix-functions/towupper_l.texi: Renamed from
40112         doc/glibc-functions/towupper_l.texi.
40113         * doc/posix-functions/uselocale.texi: Renamed from
40114         doc/glibc-functions/uselocale.texi.
40115         * doc/posix-functions/vdprintf.texi: Renamed from
40116         doc/glibc-functions/vdprintf.texi.
40117         * doc/posix-functions/wcpcpy.texi:
40118         Renamed from doc/glibc-functions/wcpcpy.texi.
40119         * doc/posix-functions/wcpncpy.texi: Renamed from
40120         doc/glibc-functions/wcpncpy.texi.
40121         * doc/posix-functions/wcscasecmp.texi: Renamed from
40122         doc/glibc-functions/wcscasecmp.texi.
40123         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40124         doc/glibc-functions/wcscasecmp_l.texi.
40125         * doc/posix-functions/wcscoll_l.texi: Renamed from
40126         doc/glibc-functions/wcscoll_l.texi.
40127         * doc/posix-functions/wcsdup.texi: Renamed from
40128         doc/glibc-functions/wcsdup.texi.
40129         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40130         doc/glibc-functions/wcsncasecmp.texi.
40131         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40132         doc/glibc-functions/wcsncasecmp_l.texi.
40133         * doc/posix-functions/wcsnlen.texi: Renamed from
40134         doc/glibc-functions/wcsnlen.texi.
40135         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40136         doc/glibc-functions/wcsnrtombs.texi.
40137         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40138         doc/glibc-functions/wcsxfrm_l.texi.
40139         * doc/posix-functions/wctrans_l.texi: Renamed from
40140         doc/glibc-functions/wctrans_l.texi.
40141         * doc/posix-functions/wctype_l.texi: Renamed from
40142         doc/glibc-functions/wctype_l.texi.
40143         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40144         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40145         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40146         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40147         these subsections.
40148         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40149         Remove sections.
40150
40151 2008-12-14  Bruno Haible  <bruno@clisp.org>
40152
40153         Update doc for POSIX:2008.
40154         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40155
40156 2008-12-14  Bruno Haible  <bruno@clisp.org>
40157
40158         Update doc for POSIX:2008.
40159         * doc/pastposix-functions/bcmp.texi: Renamed from
40160         doc/posix-functions/bcmp.texi.
40161         * doc/pastposix-functions/bcopy.texi: Renamed from
40162         doc/posix-functions/bcopy.texi.
40163         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40164         doc/posix-functions/bsd_signal.texi.
40165         * doc/pastposix-functions/bzero.texi: Renamed from
40166         doc/posix-functions/bzero.texi.
40167         * doc/pastposix-functions/ecvt.texi: Renamed from
40168         doc/posix-functions/ecvt.texi.
40169         * doc/pastposix-functions/fcvt.texi: Renamed from
40170         doc/posix-functions/fcvt.texi.
40171         * doc/pastposix-functions/ftime.texi: Renamed from
40172         doc/posix-functions/ftime.texi.
40173         * doc/pastposix-functions/gcvt.texi: Renamed from
40174         doc/posix-functions/gcvt.texi.
40175         * doc/pastposix-functions/getcontext.texi: Renamed from
40176         doc/posix-functions/getcontext.texi.
40177         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40178         doc/posix-functions/gethostbyaddr.texi.
40179         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40180         doc/posix-functions/gethostbyname.texi.
40181         * doc/pastposix-functions/getwd.texi: Renamed from
40182         doc/posix-functions/getwd.texi.
40183         * doc/pastposix-functions/h_errno.texi: Renamed from
40184         doc/posix-functions/h_errno.texi.
40185         * doc/pastposix-functions/index.texi: Renamed from
40186         doc/posix-functions/index.texi.
40187         * doc/pastposix-functions/makecontext.texi: Renamed from
40188         doc/posix-functions/makecontext.texi.
40189         * doc/pastposix-functions/mktemp.texi: Renamed from
40190         doc/posix-functions/mktemp.texi.
40191         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40192         doc/posix-functions/pthread_attr_getstackaddr.texi.
40193         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40194         doc/posix-functions/pthread_attr_setstackaddr.texi.
40195         * doc/pastposix-functions/rindex.texi: Renamed from
40196         doc/posix-functions/rindex.texi.
40197         * doc/pastposix-functions/scalb.texi: Renamed from
40198         doc/posix-functions/scalb.texi.
40199         * doc/pastposix-functions/setcontext.texi: Renamed from
40200         doc/posix-functions/setcontext.texi.
40201         * doc/pastposix-functions/swapcontext.texi: Renamed from
40202         doc/posix-functions/swapcontext.texi.
40203         * doc/pastposix-functions/ualarm.texi: Renamed from
40204         doc/posix-functions/ualarm.texi.
40205         * doc/pastposix-functions/usleep.texi: Renamed from
40206         doc/posix-functions/usleep.texi.
40207         * doc/pastposix-functions/vfork.texi: Renamed from
40208         doc/posix-functions/vfork.texi.
40209         * doc/pastposix-functions/wcswcs.texi: Renamed from
40210         doc/posix-functions/wcswcs.texi.
40211         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40212         (Function Substitutes): Update.
40213
40214 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40215
40216         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40217         m4/strerror.m4.
40218
40219 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40220             Bruno Haible  <bruno@clisp.org>
40221
40222         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40223
40224 2008-12-13  Bruno Haible  <bruno@clisp.org>
40225
40226         * modules/strtoull (Depends-on): Remove unistd.
40227
40228 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40229
40230         * modules/strtoull (Depends-on): Add stdlib.
40231
40232 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40233
40234         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40235
40236 2008-12-10  Jim Meyering  <meyering@redhat.com>
40237
40238         gl_ASSERT: don't say assertions are disabled when they're not
40239         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40240         "checking whether to enable assertions... no", when they are in
40241         fact enabled.  This is solely a bug in the output of configure.
40242         In spite of saying "no", NDEBUG was not defined in that case.
40243         Also, as noted by Eric Blake, leave assertions enabled upon
40244         --enable-assert=INVALID.
40245
40246 2008-12-10  Bruno Haible  <bruno@clisp.org>
40247
40248         Change MODULES.html to refer to POSIX:2008 where possible.
40249         * MODULES.html.sh (POSIX2008_URL): New variable.
40250         (posix_headers): Remove sys/timeb, ucontext.
40251         (posix2001_headers): New variable.
40252         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40253         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40254         index, makecontext, mktemp, pthread_attr_getstackaddr,
40255         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40256         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40257         (posix2001_functions): New variable.
40258         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40259         otherwise.
40260
40261 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40262
40263         add missing include to parse-duration.c
40264         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40265         * modules/parse-duration (Depends-on): Add xalloc.
40266
40267         fix sed script reading maint.mk
40268         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40269         (syntax-check-rules): Use it.
40270
40271 2008-12-09  Bruno Haible  <bruno@clisp.org>
40272
40273         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40274         MacOS X 10.4/PowerPC.
40275         Reported by Simon Josefsson.
40276
40277 2008-12-08  Jim Meyering  <meyering@redhat.com>
40278
40279         work around mingw's lack of some S_IF definitions
40280         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40281         Reported by Simon Josefsson.
40282
40283 2008-12-08  Bruno Haible  <bruno@clisp.org>
40284
40285         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40286         applied to variables. Needed on MacOS X 10.4/PowerPC.
40287         Reported by Simon Josefsson.
40288
40289 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40290         and Eric Blake  <ebb9@byu.net>
40291
40292         assert: honor --enable-assert
40293         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40294         order to honor --enable-assert, rather than treating it as a
40295         synonym for --disable-assert.
40296
40297 2008-12-08  Jim Meyering  <meyering@redhat.com>
40298
40299         * lib/posixtm.c: Remove now-useless declaration of mktime.
40300
40301         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40302
40303 2008-12-07  Bruno Haible  <bruno@clisp.org>
40304
40305         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40306         test_once): Mark functions as static.
40307         * tests/test-tls.c (test_tls): Likewise.
40308
40309 2008-12-07  Bruno Haible  <bruno@clisp.org>
40310
40311         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40312         iconv_register_autodetect.
40313
40314 2008-12-07  Jim Meyering  <meyering@redhat.com>
40315
40316         posixtm.c: avoid a warning
40317         * lib/posixtm.c (posixtime): Don't initialize tm0.
40318         It's no longer needed to placate gcc4's -Wuninitialized,
40319         and the attempt to placate would elicit a new warning.
40320
40321         unicodeio.c: mark unused parameters
40322         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40323         (fallback_failure_callback): Likewise.
40324
40325 2008-12-07  Bruno Haible  <bruno@clisp.org>
40326
40327         * gnulib-tool (func_create_testdir): When building the tests
40328         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40329         Reported by Simon Josefsson.
40330
40331 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40332
40333         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40334
40335 2008-12-06  Bruno Haible  <bruno@clisp.org>
40336
40337         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40338         Suggested by Eric Blake.
40339
40340 2008-12-06  Bruno Haible  <bruno@clisp.org>
40341
40342         Fix a c-stack test failure on MacOS X.
40343         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40344         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40345         handler for SIGBUS as well.
40346         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40347         install a signal handler for SIGBUS as well.
40348         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40349
40350 2008-12-06  Bruno Haible  <bruno@clisp.org>
40351
40352         Advocacy documentation.
40353         * doc/gnulib-intro.texi (Benefits): New section.
40354         * doc/gnulib.texi: Update.
40355
40356 2008-12-06  Bruno Haible  <bruno@clisp.org>
40357
40358         Document the 'manywarnings' module.
40359         * doc/manywarnings.texi: New file.
40360         * doc/gnulib.texi: Include it.
40361
40362 2008-12-05  Eric Blake  <ebb9@byu.net>
40363
40364         tests: silence some gcc warnings
40365         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40366         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40367         type mismatches.
40368
40369 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40370             Bruno Haible  <bruno@clisp.org>
40371
40372         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40373
40374 2008-11-29  Jim Meyering  <meyering@redhat.com>
40375
40376         unicodeio.c: mark unused parameters
40377         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40378         (fallback_failure_callback): Likewise.
40379
40380         fts: fix a thinko
40381         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40382         (set_stat_type): Return S_IF*-valued "type" directly.
40383         Prompted by James Youngman's spotting a related bug.
40384         Confirmed by further testing through find.
40385
40386         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40387         * lib/fts.c (D_TYPE): Define.
40388         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40389         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40390         (s_ifmt_shift_bits): New function.
40391         (set_stat_type): New function.
40392         (fts_build): When not calling fts_stat, call set_stat_type
40393         to propagate dirent.d_type info to fts_read caller.
40394         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40395         fts_statp->st_mode type information may be valid.
40396
40397 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40398
40399         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40400         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40401         <sds@gnu.org>.
40402
40403 2008-11-20  Bruno Haible  <bruno@clisp.org>
40404
40405         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40406         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40407         INCLUDE_NEXT.
40408         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40409         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40410         * modules/math (Makefile.am): Substitute
40411         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40412         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40413
40414 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40415             Bruno Haible  <bruno@clisp.org>
40416
40417         * lib/stdint.in.h: Define all type macros so that their expansion is
40418         a single typedef'ed token. Fixes a compilation failure in Boost which
40419         does "using ::int8_t;".
40420
40421 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40422
40423         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40424         gl_MANYWARN_ALL_GCC.
40425         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40426         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40427         * modules/manywarnings: New file.
40428         * MODULES.html.sh: Mention manywarnings module.
40429
40430 2008-11-18  Bruno Haible  <bruno@clisp.org>
40431
40432         * doc/gnulib-tool.texi (Unit tests): New section.
40433
40434 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40435
40436         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40437         paths like 'lib/po/foo.po'.
40438
40439 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40440
40441         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40442         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40443
40444 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40445
40446         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40447         parameter works.
40448
40449 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40450
40451         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40452
40453 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40454
40455         * modules/parse-duration-tests: New file.
40456         * tests/test-parse-duration.sh: New file.
40457         * tests/test-parse-duration.c: New file.
40458
40459         New module 'parse-duration'.
40460         * lib/parse-duration.h: New file.
40461         * lib/parse-duration.c: New file.
40462         * modules/parse-duration: New file.
40463
40464 2008-11-17  Bruno Haible  <bruno@clisp.org>
40465
40466         * tests/test-select-out.sh: Comment out the first pipe test.
40467         Reported by Simon Josefsson.
40468
40469 2008-11-17  Bruno Haible  <bruno@clisp.org>
40470
40471         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40472         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40473         gl_HOSTENT.
40474
40475 2008-11-17  Bruno Haible  <bruno@clisp.org>
40476
40477         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40478         -lnetwork and -lnet. Needed for Haiku and BeOS.
40479
40480 2008-11-16  Bruno Haible  <bruno@clisp.org>
40481
40482         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40483
40484 2008-11-16  Bruno Haible  <bruno@clisp.org>
40485
40486         Avoid test failure on Haiku.
40487         * tests/test-fsync.c: Include <errno.h>.
40488         (main): Don't require that fsync (0) fails.
40489
40490 2008-11-15  Bruno Haible  <bruno@clisp.org>
40491
40492         New module 'hostent'.
40493         * modules/hostent: New file.
40494         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40495
40496 2008-11-15  Bruno Haible  <bruno@clisp.org>
40497
40498         New module 'servent'.
40499         * modules/servent: New file.
40500         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40501
40502 2008-11-15  Bruno Haible  <bruno@clisp.org>
40503
40504         Avoid generating same test program with two different rules.
40505         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40506         test-frexp to test-frexp-nolibm.
40507         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40508         test-frexpl to test-frexpl-nolibm.
40509
40510 2008-11-15  Bruno Haible  <bruno@clisp.org>
40511
40512         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40513         $(FREXPL_LIBM).
40514
40515 2008-11-15  Bruno Haible  <bruno@clisp.org>
40516
40517         * lib/netdb.in.h: Activate the definitions also when the system's
40518         <netdb.h> has 'struct addrinfo'.
40519         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40520         EAI_OVERFLOW or AI_NUMERICSERV.
40521         * doc/posix-headers/netdb.texi: Document the problem.
40522
40523 2008-11-15  Bruno Haible  <bruno@clisp.org>
40524
40525         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40526
40527         Make the 'sched' module work on platforms where <sched.h> exists but
40528         is incomplete (such as Haiku).
40529         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40530         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40531         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40532         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40533         HAVE_STRUCT_SCHED_PARAM.
40534         * modules/sched (Depends-on): Add include_next.
40535         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40536         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40537         * doc/posix-headers/sched.texi: Document the issue.
40538
40539 2008-11-13  Jim Meyering  <meyering@redhat.com>
40540
40541         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40542         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40543         test would fail due to the difference in the Report bugs to ...
40544         line.  The expected address is empty, "<>", while the actual
40545         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40546
40547 2008-11-12  Bruno Haible  <bruno@clisp.org>
40548
40549         lstat: don't compile lstat.c on systems lacking lstat
40550         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40551         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40552         Reported by Daniel P. Berrange via Jim Meyering.
40553
40554 2008-11-12  Jim Meyering  <meyering@redhat.com>
40555
40556         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40557
40558 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40559
40560         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40561         instead.
40562
40563 2008-11-12  Bruno Haible  <bruno@clisp.org>
40564
40565         * lib/unicodeio.c: Include unistr.h.
40566         (utf8_wctomb): Remove function.
40567         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40568
40569 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40570
40571         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40572         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40573         <bruno@clisp.org>.
40574         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40575
40576 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40577
40578         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40579         * doc/gnulib.texi: Add section for warnings.
40580
40581 2008-11-11  Bruno Haible  <bruno@clisp.org>
40582
40583         * lib/sockets.h: Add a comment.
40584
40585 2008-11-11  Karl Berry  <karl@gnu.org>
40586
40587         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40588
40589 2008-11-11  Eric Blake  <ebb9@byu.net>
40590
40591         fdl.texi: avoid git symlinks
40592         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40593
40594 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40595
40596         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40597
40598 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40599
40600         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40601         (gl_WARN_ADD): Substitute $2 if literal.
40602
40603 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40604
40605         * m4/warning.m4: Remove.
40606
40607 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40608
40609         * m4/warnings.m4: Almost complete rewrite. :-)
40610
40611 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40612
40613         * modules/warnings: New module.
40614         * m4/warnings.m4: New file.
40615         * MODULES.html.sh: Mention warnings module.
40616         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40617         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40618
40619 2008-11-10  Eric Blake  <ebb9@byu.net>
40620
40621         fdl.texi: make a symlink to the latest version
40622         * doc/standards.texi: Revert today's earlier change.
40623         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40624         * doc/fdl.texi: ...and replace this with a symlink to the newer
40625         fdl-1.3.texi.
40626
40627 2008-11-10  Bruno Haible  <bruno@clisp.org>
40628
40629         * tests/test-select-fd.c (main): Accept the result file name as fourth
40630         argument.
40631         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40632         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40633
40634 2008-11-10  Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40637         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40638         as autoconf-substituted macros.
40639         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40640         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40641         gl_NETDB_H_DEFAULTS. Set these variables.
40642         * modules/netdb (Makefile.am): Substitute these variables.
40643
40644 2008-11-10  Eric Blake  <ebb9@byu.net>
40645
40646         standards.texi: include correct file for FDL 1.3
40647         * doc/standards.texi (GNU Free Documentation License): Change
40648         include file to pull in FDL 1.3, not 1.2.
40649
40650         fdl.texi: revert accidental change to license
40651         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40652
40653 2008-11-10  Bruno Haible  <bruno@clisp.org>
40654
40655         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40656         cross-compiling guesses also when the native compile gives no result.
40657
40658 2008-11-10  Bruno Haible  <bruno@clisp.org>
40659
40660         * lib/spawni.c (__spawni): Force variable into the stack.
40661
40662 2008-11-10  Bruno Haible  <bruno@clisp.org>
40663
40664         Add support for Haiku.
40665         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40666         glibc and BeOS, but also on Haiku.
40667         * lib/fpurge.c (fpurge): Likewise.
40668         * lib/freadable.c (freadable): Likewise.
40669         * lib/freadahead.c (freadahead): Likewise.
40670         * lib/freading.c (freading): Likewise.
40671         * lib/freadptr.c (freadptr): Likewise.
40672         * lib/freadseek.c (freadptrinc): Likewise.
40673         * lib/fseeko.c (rpl_fseeko): Likewise.
40674         * lib/fseterr.c (fseterr): Likewise.
40675         * lib/fwritable.c (fwritable): Likewise.
40676         * lib/fwriting.c (fwriting): Likewise.
40677         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40678
40679 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40680
40681         * lib/config.charset: Treat Haiku like BeOS.
40682
40683 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40684
40685         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40686         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40687
40688 2008-11-08  Bruno Haible  <bruno@clisp.org>
40689
40690         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40691         AC_CACHE_CHECK.
40692
40693 2008-11-08  Bruno Haible  <bruno@clisp.org>
40694
40695         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40696
40697 2008-11-08  Bruno Haible  <bruno@clisp.org>
40698
40699         * tests/test-select-fd.c: New file.
40700         * tests/test-select-in.sh: New file.
40701         * tests/test-select-out.sh: New file.
40702         * tests/test-select-stdin.c: New file.
40703         * modules/select-tests (Files): Add the new files.
40704         (Depends-on): Add gettimeofday.
40705         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40706         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40707         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40708
40709 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40710             Bruno Haible  <bruno@clisp.org>
40711
40712         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40713
40714 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40715
40716         * build-aux/pmccabe2html: Added support for C++ source files.
40717
40718 2008-11-05  Ben Pfaff  <blp@gnu.org>
40719
40720         Fix lib/close.c build on Windows.
40721         * modules/close (Files): Add lib/w32sock.h.
40722
40723 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40724
40725         Accept Bison's NEWS format.
40726         * build-aux/announce-gen (print_news_deltas): Tweak
40727         $re_prefix.
40728
40729 2008-11-04  Bruno Haible  <bruno@clisp.org>
40730
40731         * modules/random_r (Maintainer): Add glibc.
40732
40733 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40734
40735         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40736         by karl@freefriends.org (Karl Berry).
40737         * doc/alloca.texi: Likewise.
40738         * doc/c-ctype.texi: Likewise.
40739         * doc/c-strcase.texi: Likewise.
40740         * doc/c-strcaseeq.texi: Likewise.
40741         * doc/c-strcasestr.texi: Likewise.
40742         * doc/c-strstr.texi: Likewise.
40743         * doc/c-strtod.texi: Likewise.
40744         * doc/c-strtold.texi: Likewise.
40745         * doc/ctime.texi: Likewise.
40746         * doc/error.texi: Likewise.
40747         * doc/fdl.texi: Likewise.
40748         * doc/gcd.texi: Likewise.
40749         * doc/getdate.texi: Likewise.
40750         * doc/gnulib-intro.texi: Likewise.
40751         * doc/gnulib-tool.texi: Likewise.
40752         * doc/gnulib.texi: Likewise.
40753         * doc/inet_ntoa.texi: Likewise.
40754         * doc/maintain.texi: Likewise.
40755         * doc/make-stds.texi: Likewise.
40756         * doc/quote.texi: Likewise.
40757         * doc/regexprops-generic.texi: Likewise.
40758         * doc/standards.texi: Likewise.
40759         * doc/verify.texi: Likewise.
40760         * doc/visibility.texi: Likewise.
40761         * doc/gnulib.texi (GNU Free Documentation License): Include
40762         fdl-1.3.texi instead of fdl.texi.
40763
40764 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40765
40766         * doc/fdl-1.3.texi: New file, from
40767         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40768         * modules/fdl-1.3: Add.
40769         * MODULES.html.sh: Add fdl-1.3.
40770
40771 2008-11-03  Bruno Haible  <bruno@clisp.org>
40772
40773         Make determination of absolute name of header file work with AIX xlc.
40774         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40775         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40776         preprocessing.
40777         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40778         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40779
40780 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40781
40782         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40783         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40784         <ludo@gnu.org>.
40785
40786 2008-11-02  Bruno Haible  <bruno@clisp.org>
40787
40788         Mark 'strpbrk' obsolete.
40789         * modules/strpbrk (Status, Notice): New sections.
40790         * modules/strtok_r (Depends-on): Add strpbrk.
40791
40792 2008-11-02  Bruno Haible  <bruno@clisp.org>
40793
40794         Mark 'strdup' obsolete.
40795         * modules/strdup (Status, Notice): New sections.
40796         * modules/findprog (Depends-on): Add strdup.
40797         * modules/getaddrinfo (Depends-on): Likewise.
40798         * modules/localename (Depends-on): Likewise.
40799         * modules/relocatable-lib (Depends-on): Likewise.
40800         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40801         * modules/relocatable-prog (Depends-on): Likewise.
40802         * modules/trim (Depends-on): Likewise.
40803         * modules/unictype/gen-ctype (Depends-on): Likewise.
40804         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40805
40806 2008-11-02  Bruno Haible  <bruno@clisp.org>
40807
40808         Mark 'strcspn' obsolete.
40809         * modules/strcspn (Status, Notice): New sections.
40810
40811 2008-11-02  Bruno Haible  <bruno@clisp.org>
40812
40813         Mark 'rmdir' obsolete.
40814         * modules/rmdir (Status, Notice): New sections.
40815         * modules/clean-temp (Depends-on): Add rmdir.
40816         * modules/openat (Depends-on): Likewise.
40817
40818 2008-11-02  Bruno Haible  <bruno@clisp.org>
40819
40820         Mark 'raise' obsolete.
40821         * modules/raise (Status, Notice): New sections.
40822         (Include): Specify <signal.h>.
40823         * modules/stdio (Depends-on): Add raise.
40824         * modules/write (Depends-on): Likewise.
40825
40826 2008-11-02  Bruno Haible  <bruno@clisp.org>
40827
40828         Mark 'memset' obsolete.
40829         * modules/memset (Status, Notice): New sections.
40830
40831 2008-11-02  Bruno Haible  <bruno@clisp.org>
40832
40833         Mark 'memmove' obsolete.
40834         * modules/memmove (Status, Notice): New sections.
40835         * modules/argp (Depends-on): Add memmove.
40836         * modules/argz (Depends-on): Likewise.
40837         * modules/canonicalize (Depends-on): Likewise.
40838         * modules/canonicalize-lgpl (Depends-on): Likewise.
40839         * modules/fts (Depends-on): Likewise.
40840         * modules/getcwd (Depends-on): Likewise.
40841         * modules/human (Depends-on): Likewise.
40842         * modules/regex (Depends-on): Likewise.
40843         * modules/striconveh (Depends-on): Likewise.
40844         * modules/trim (Depends-on): Likewise.
40845         * modules/unistr/u8-move (Depends-on): Likewise.
40846         * modules/unistr/u16-move (Depends-on): Likewise.
40847         * modules/unistr/u32-move (Depends-on): Likewise.
40848
40849 2008-11-02  Bruno Haible  <bruno@clisp.org>
40850
40851         Mark 'memcpy' obsolete.
40852         * modules/memcpy (Status, Notice): New sections.
40853
40854 2008-11-02  Bruno Haible  <bruno@clisp.org>
40855
40856         Mark 'memcmp' obsolete.
40857         * modules/memcmp (Status, Notice): New sections.
40858         * modules/argmatch (Depends-on): Add memchr.
40859         * modules/backupfile (Depends-on): Likewise.
40860         * modules/c-strcasestr (Depends-on): Likewise.
40861         * modules/crypto/des (Depends-on): Likewise.
40862         * modules/csharpcomp (Depends-on): Likewise.
40863         * modules/fnmatch (Depends-on): Likewise.
40864         * modules/git-merge-changelog (Depends-on): Likewise.
40865         * modules/isnand (Depends-on): Likewise.
40866         * modules/isnand-nolibm (Depends-on): Likewise.
40867         * modules/isnanf (Depends-on): Likewise.
40868         * modules/isnanf-nolibm (Depends-on): Likewise.
40869         * modules/isnanl (Depends-on): Likewise.
40870         * modules/isnanl-nolibm (Depends-on): Likewise.
40871         * modules/mbchar (Depends-on): Likewise.
40872         * modules/memcoll (Depends-on): Likewise.
40873         * modules/quotearg (Depends-on): Likewise.
40874         * modules/regex (Depends-on): Likewise.
40875         * modules/relocatable-prog (Depends-on): Likewise.
40876         * modules/same (Depends-on): Likewise.
40877         * modules/signbit (Depends-on): Likewise.
40878         * modules/strcasestr-simple (Depends-on): Likewise.
40879         * modules/unictype/gen-ctype (Depends-on): Likewise.
40880         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40881         * modules/uniname/uniname (Depends-on): Likewise.
40882         * modules/unistr/u8-cmp (Depends-on): Likewise.
40883
40884 2008-11-02  Bruno Haible  <bruno@clisp.org>
40885
40886         Mark 'memchr' obsolete.
40887         * modules/memchr (Status, Notice): New sections.
40888         * modules/argp (Depends-on): Add memchr.
40889         * modules/base64 (Depends-on): Likewise.
40890         * modules/c-strcasestr (Depends-on): Likewise.
40891         * modules/chdir-long (Depends-on): Likewise.
40892         * modules/fnmatch (Depends-on): Likewise.
40893         * modules/getsubopt (Depends-on): Likewise.
40894         * modules/git-merge-changelog (Depends-on): Likewise.
40895         * modules/glob (Depends-on): Likewise.
40896         * modules/strcasestr-simple (Depends-on): Likewise.
40897         * modules/strnlen (Depends-on): Likewise.
40898
40899 2008-11-02  Bruno Haible  <bruno@clisp.org>
40900
40901         Mark 'atexit' obsolete.
40902         * modules/atexit (Status, Notice): New sections.
40903         * modules/chdir-long (Depends-on): Add atexit.
40904         * modules/wait-process (Depends-on): Likewise.
40905
40906 2008-11-02  Bruno Haible  <bruno@clisp.org>
40907
40908         * gnulib-tool: New option --with-obsolete.
40909         (func_usage): Document it.
40910         (func_modules_transitive_closure): Drop obsolete dependencies if
40911         incobsolete is not true.
40912         (func_import): Read and save the incobsolete variable to the cache.
40913
40914 2008-11-02  Bruno Haible  <bruno@clisp.org>
40915
40916         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40917         * gnulib-tool: New option --extract-status.
40918         (func_usage): Document it.
40919         (sed_extract_prog): Recognize it.
40920         (func_get_status): New function.
40921
40922 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40923
40924         * modules/sockets (License): Change from LGPL to LGPLv2+.
40925
40926 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40927
40928         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40929
40930 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40931
40932         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40933         Mention times and sys_times.
40934         * modules/sys_times, modules/sys_times-tests: New modules.
40935         * modules/times, modules/times-tests: Likewise
40936         * m4/sys_times_h.m4: New file.
40937         * lib/sys_times.in.h: Likewise
40938         * lib/times.c: Likewise.
40939         * tests/test-sys_times.c: Likewise.
40940         * tests/test-times.c: Likewise.
40941         * doc/posix-headers/sys_times.texi: Update.
40942         * doc/posix-functions/times.texi: Update.
40943
40944 2008-10-28  Jim Meyering  <meyering@redhat.com>
40945
40946         * modules/tempname (Depends-on): Add lstat.
40947
40948         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40949
40950 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40951
40952         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40953         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40954         using idiom used elsewhere in gnulib.
40955
40956 2008-10-27  Jim Meyering  <meyering@redhat.com>
40957
40958         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40959
40960 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40961
40962         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40963         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40964         programs.
40965         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40966
40967 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40968
40969         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40970
40971 2008-10-27  Bruno Haible  <bruno@clisp.org>
40972
40973         * tests/test-lstat.c: Include <stdio.h>.
40974
40975 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40976
40977         * modules/lstat-tests: New module.
40978         * tests/test-lstat.c: New file.
40979
40980 2008-10-26  Jim Meyering  <meyering@redhat.com>
40981
40982         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40983
40984 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40985             Bruno Haible  <bruno@clisp.org>
40986
40987         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40988         * modules/configmake (Include): Add a note that the include must come
40989         after all system headers.
40990         * lib/javaversion.c: Include configmake.h after all other includes.
40991
40992 2008-10-26  Bruno Haible  <bruno@clisp.org>
40993
40994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40995         HAVE_STRUCT_RANDOM_DATA to 1.
40996         (gl_STDLIB_H): Simplify.
40997
40998 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40999
41000         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41001         substitute HAVE_STRUCT_RANDOM_DATA.
41002         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41003         random_data.
41004         * modules/stdlib (Makefile.am): Substitute
41005         HAVE_STRUCT_RANDOM_DATA.
41006
41007 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41008
41009         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41010         * doc/gnulib-intro.texi (Copyright): Likewise.
41011
41012 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41013
41014         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41015         findings.
41016
41017 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41018             Bruno Haible  <bruno@clisp.org>
41019
41020         * lib/unistd.in.h: Include <winsock2.h>.
41021         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41022         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41023         Provide dummy declarations.
41024         (gethostname): Override.
41025         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41026         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41027         gl_PREREQ_SYS_H_WINSOCK2.
41028         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41029         * doc/posix-functions/gethostname.texi: More details.
41030
41031 2008-10-25  Bruno Haible  <bruno@clisp.org>
41032
41033         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41034         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41035         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41036
41037         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41038         here ...
41039         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41040         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41041         gl_UNISTD_H_DEFAULTS.
41042
41043 2008-10-25  Eric Blake  <ebb9@byu.net>
41044
41045         signbit: avoid spurious compiler failure
41046         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41047         declarations inside function.
41048
41049 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41050             Bruno Haible  <bruno@clisp.org>
41051
41052         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41053         * modules/random_r (Depends-on): Add stdint.
41054
41055 2008-10-24  Bruno Haible  <bruno@clisp.org>
41056
41057         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41058         Eggert.
41059         * modules/strerror (License): Likewise.
41060
41061 2008-10-24  Jim Meyering  <meyering@redhat.com>
41062
41063         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41064         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41065
41066 2008-10-24  Eric Blake  <ebb9@byu.net>
41067
41068         getgroups: fix compilation when getgroups is available
41069         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41070         but with <config.h> override of getgroups disabled.
41071
41072 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41073
41074         * doc/gnulib.texi (Header files): Add note about C++ problems.
41075         Explained by Bruno Haible <bruno@clisp.org>.
41076
41077 2008-10-23  Bruno Haible  <bruno@clisp.org>
41078
41079         Define a dummy SA_NODEFER macro on Interix.
41080         * lib/signal.in.h (SA_NODEFER): Define fallback.
41081         Reported by Aleksey Cheusov <cheusov@tut.by> via
41082         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41083
41084 2008-10-23  Bruno Haible  <bruno@clisp.org>
41085
41086         * modules/freadahead (License): Change to LGPLv2+.
41087         Suggested by Simon Josefsson.
41088
41089 2008-10-23  Jim Meyering  <meyering@redhat.com>
41090
41091         random_r: new module
41092         * modules/random_r: New file.
41093         * m4/random_r.m4: New file.
41094         * lib/random_r.c: New file, from glibc.
41095         * modules/random_r-tests: New file.
41096         * tests/test-random_r.c: New file.
41097         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41098          Declare.
41099         (RAND_MAX): Define.
41100         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41101         * modules/stdlib: Substitute them, too.
41102         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41103         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41104         * doc/glibc-functions/random_r.texi: Likewise.
41105         * doc/glibc-functions/setstate_r.texi: Likewise.
41106         * doc/glibc-functions/srandom_r.texi: Likewise.
41107         * config/srclist.txt: Mention it.
41108
41109 2008-10-23  David Lutterkort  <lutter@redhat.com>
41110
41111         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41112         link requirement
41113
41114 2008-10-23  Jim Meyering  <meyering@redhat.com>
41115
41116         selinux-h: mark parameters of stub functions as intentionally unused
41117         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41118         * lib/se-context.in.h: Likewise.
41119
41120 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41121
41122         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41123
41124 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41125
41126         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41127
41128 2008-10-22  Eric Blake  <ebb9@byu.net>
41129
41130         glthread/thread: avoid compiler warning
41131         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41132         Add unreachable abort to silence compiler.
41133
41134 2008-10-22  Eric Blake  <ebb9@byu.net>
41135
41136         netdb: also supply struct addrinfo for cygwin 1.5.x
41137         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41138         older cygwin.
41139         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41140         cygwin.
41141         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41142
41143 2008-10-22  Bruno Haible  <bruno@clisp.org>
41144
41145         * users.txt: Update entry about pspp.
41146
41147 2008-10-21  Bruno Haible  <bruno@clisp.org>
41148
41149         Simplification.
41150         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41151         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41152
41153         Simplification.
41154         * lib/ioctl.c (ioctl): Don't undefine.
41155         * lib/socket.c (socket): Don't undefine.
41156
41157         Remove unused module indicator macros.
41158         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41159         GNULIB_$1 as a C macro.
41160
41161         * doc/posix-functions/close.texi: Undo last change.
41162         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41163         Windows platforms.
41164
41165 2008-10-21  Bruno Haible  <bruno@clisp.org>
41166
41167         Add gethostname() declaration to <unistd.h>.
41168         * lib/unistd.in.h (gethostname): New declaration.
41169         * lib/gethostname.c: Include <unistd.h>.
41170         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41171         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41173         and HAVE_GETHOSTNAME.
41174         * modules/gethostname (Depends-on): Add unistd.
41175         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41176         (Include): Specify <unistd.h>.
41177         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41178         HAVE_GETHOSTNAME.
41179         * tests/test-gethostname.c: Include <unistd.h> first.
41180
41181 2008-10-21  Bruno Haible  <bruno@clisp.org>
41182
41183         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41184         * modules/select-tests (Depends-on): Likewise.
41185         Reported by Simon Josefsson.
41186
41187 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41188
41189         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41190         * lib/accept.c: New file, based on winsock.c.
41191         * lib/bind.c: New file, based on winsock.c.
41192         * lib/connect.c: New file, based on winsock.c.
41193         * lib/getpeername.c: New file, based on winsock.c.
41194         * lib/getsockname.c: New file, based on winsock.c.
41195         * lib/getsockopt.c: New file, based on winsock.c.
41196         * lib/ioctl.c: New file, based on winsock.c.
41197         * lib/listen.c: New file, based on winsock.c.
41198         * lib/recv.c: New file, based on winsock.c.
41199         * lib/recvfrom.c: New file, based on winsock.c.
41200         * lib/send.c: New file, based on winsock.c.
41201         * lib/sendto.c: New file, based on winsock.c.
41202         * lib/setsockopt.c: New file, based on winsock.c.
41203         * lib/shutdown.c: New file, based on winsock.c.
41204         * lib/socket.c: New file, based on winsock.c.
41205         * lib/w32sock.h: New file, based on winsock.c.
41206         * lib/winsock.c: Remove file.
41207         * modules/accept: Likewise.
41208         * modules/bind: Likewise.
41209         * modules/connect: Likewise.
41210         * modules/getpeername: Likewise.
41211         * modules/getsockname: Likewise.
41212         * modules/getsockopt: Likewise.
41213         * modules/ioctl: Likewise.
41214         * modules/listen: Likewise.
41215         * modules/recv: Likewise.
41216         * modules/recvfrom: Likewise.
41217         * modules/send: Likewise.
41218         * modules/sendto: Likewise.
41219         * modules/setsockopt: Likewise.
41220         * modules/shutdown: Likewise.
41221         * modules/socket: Use socket.c instead of winsock.c.
41222         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41223         * doc/posix-functions/accept.texi: Doc fix.
41224         * doc/posix-functions/bind.texi: Doc fix.
41225         * doc/posix-functions/close.texi: Doc fix.
41226         * doc/posix-functions/connect.texi: Doc fix.
41227         * doc/posix-functions/getpeername.texi: Doc fix.
41228         * doc/posix-functions/getsockname.texi: Doc fix.
41229         * doc/posix-functions/getsockopt.texi: Doc fix.
41230         * doc/posix-functions/ioctl.texi: Doc fix.
41231         * doc/posix-functions/listen.texi: Doc fix.
41232         * doc/posix-functions/recv.texi: Doc fix.
41233         * doc/posix-functions/recvfrom.texi: Doc fix.
41234         * doc/posix-functions/send.texi: Doc fix.
41235         * doc/posix-functions/sendto.texi: Doc fix.
41236         * doc/posix-functions/setsockopt.texi: Doc fix.
41237         * doc/posix-functions/shutdown.texi: Doc fix.
41238         * doc/posix-functions/socket.texi: Doc fix.
41239
41240 2008-10-20  Bruno Haible  <bruno@clisp.org>
41241
41242         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41243         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41244         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41245         as an alias for SIGABRT.
41246         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41247         (sigaction): Map it to SIGABRT.
41248         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41249
41250 2008-10-20  Bruno Haible  <bruno@clisp.org>
41251
41252         * lib/fts.c: Don't include lstat.h.
41253         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41254
41255         Move the lstat() declaration to <sys/stat.h>.
41256         * lib/lstat.h: Remove file.
41257         * lib/sys_stat.in.h: Add special invocation convention.
41258         (lstat): New declaration.
41259         * lib/lstat.c (orig_lstat): New function.
41260         (rpl_lstat): Use orig_lstat instead of lstat.
41261         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41262         AC_C_INLINE. Set REPLACE_LSTAT.
41263         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41264         and REPLACE_LSTAT.
41265         * modules/lstat (Files): Remove lib/lstat.h.
41266         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41267         (Include): Specify <sys/stat.h> instead of lstat.h.
41268         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41269         REPLACE_LSTAT.
41270         * NEWS: Mention the change.
41271
41272 2008-10-20  Bruno Haible  <bruno@clisp.org>
41273
41274         * modules/posix_spawn-tests: New file.
41275         * tests/test-posix_spawn3.c: New file.
41276
41277 2008-10-20  Bruno Haible  <bruno@clisp.org>
41278
41279         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41280         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41281         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41282         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41283         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41284
41285 2008-10-20  Bruno Haible  <bruno@clisp.org>
41286
41287         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41288         of posix_spawn on AIX 5.3.
41289
41290 2008-10-20  Bruno Haible  <bruno@clisp.org>
41291
41292         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41293
41294 2008-10-20  Bruno Haible  <bruno@clisp.org>
41295
41296         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41297         of AC_LANG_PROGRAM.
41298
41299 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41300
41301         * lib/netdb.in.h: Don't define GNU specific constants until they
41302         are supported or needed.  Reported by Bruno Haible
41303         <bruno@clisp.org>.
41304
41305 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41306
41307         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41308
41309 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41310
41311         * lib/getaddrinfo.h: Remove file.
41312         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41313         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41314         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41315         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41316         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41317         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41318         * tests/test-getaddrinfo.c: Likewise.
41319         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41320         * NEWS: Mention change.
41321
41322 2008-10-19  Bruno Haible  <bruno@clisp.org>
41323
41324         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41325
41326 2008-10-19  Bruno Haible  <bruno@clisp.org>
41327
41328         * lib/wait-process.c: Include simply <sys/wait.h>.
41329         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41330         WIFSTOPPED): Remove fallback definitions.
41331         * modules/wait-process (Depends-on): Add sys_wait.
41332
41333         New module 'sys_wait'.
41334         * modules/sys_wait: New file.
41335         * lib/sys_wait.in.h: New file, partially copied from
41336         lib/wait-process.c.
41337         * m4/sys_wait_h.m4: New file.
41338         * doc/posix-headers/sys_wait.texi: Mention the new module.
41339
41340 2008-10-19  Bruno Haible  <bruno@clisp.org>
41341
41342         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41343
41344 2008-10-19  Bruno Haible  <bruno@clisp.org>
41345
41346         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41347         * lib/wait-process.c (WAIT_T): Remove type.
41348         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41349         (wait_subprocess): Update.
41350
41351 2008-10-19  Bruno Haible  <bruno@clisp.org>
41352
41353         New module 'atoll'.
41354         * modules/atoll: New file.
41355         * lib/stdlib.in.h (atoll): New declaration.
41356         * lib/atoll.c: New file, from glibc with modifications.
41357         * m4/atoll.m4: New file.
41358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41359         HAVE_ATOLL.
41360         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41361         * doc/posix-functions/atoll.texi: Mention the new module.
41362
41363 2008-10-19  Bruno Haible  <bruno@clisp.org>
41364
41365         Add strtoull() declaration to <stdlib.h>.
41366         * lib/stdlib.in.h (strtoull): New declaration.
41367         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41368         Set HAVE_STRTOULL.
41369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41370         HAVE_STRTOULL.
41371         * modules/strtoull (Depends-on): Add stdlib.
41372         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41373         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41374         HAVE_STRTOULL.
41375
41376 2008-10-19  Bruno Haible  <bruno@clisp.org>
41377
41378         Add strtoll() declaration to <stdlib.h>.
41379         * lib/stdlib.in.h (strtoll): New declaration.
41380         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41381         Set HAVE_STRTOLL.
41382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41383         HAVE_STRTOLL.
41384         * modules/strtoll (Depends-on): Add stdlib.
41385         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41386         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41387
41388 2008-10-19  Bruno Haible  <bruno@clisp.org>
41389
41390         * modules/bcopy (Depends-on): Add strings.
41391         (Include): Specify <strings.h>.
41392
41393 2008-10-19  Bruno Haible  <bruno@clisp.org>
41394
41395         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41396
41397 2008-10-19  Bruno Haible  <bruno@clisp.org>
41398
41399         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41400         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41401         mingw.
41402
41403 2008-10-19  Bruno Haible  <bruno@clisp.org>
41404
41405         * lib/atanl.c: Don't include isnanl.h.
41406         * lib/cosl.c: Likewise.
41407         * lib/ldexpl.c: Likewise.
41408         * lib/logl.c: Likewise.
41409         * lib/sinl.c: Likewise.
41410         * lib/sqrtl.c: Likewise.
41411         * lib/tanl.c: Likewise.
41412
41413         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41414         * lib/isnanf.h: Remove file.
41415         * lib/isnand.h: Remove file.
41416         * lib/isnanl.h: Remove file.
41417         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41418         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41419         macros.
41420         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41421         HAVE_ISNANF, don't define it as a C macro.
41422         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41423         HAVE_ISNAND, don't define it as a C macro.
41424         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41425         HAVE_ISNANL, don't define it as a C macro.
41426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41427         HAVE_ISNAN[FDL].
41428         * modules/isnanf (Files): Remove lib/isnanf.h.
41429         (Depends-on): Add math.
41430         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41431         (Include): Specify <math.h> instead of isnanf.h.
41432         * modules/isnand (Files): Remove lib/isnand.h.
41433         (Depends-on): Add math.
41434         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41435         (Include): Specify <math.h> instead of isnand.h.
41436         * modules/isnanl (Files): Remove lib/isnanl.h.
41437         (Depends-on): Add math.
41438         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41439         (Include): Specify <math.h> instead of isnanl.h.
41440         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41441         HAVE_ISNAN[FDL].
41442         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41443         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41444         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41445         * NEWS: Mention the change.
41446
41447 2008-10-18  Bruno Haible  <bruno@clisp.org>
41448
41449         Add getusershell(), setusershell(), endusershell() declarations to
41450         <unistd.h>.
41451         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41452         declarations.
41453         * lib/getusershell.c: Include unistd.h.
41454         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41455         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41456         HAVE_GETUSERSHELL.
41457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41458         and HAVE_GETUSERSHELL.
41459         * modules/getusershell (Depends-on): Add unistd, extensions.
41460         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41461         (Include): Specify <unistd.h>.
41462         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41463         HAVE_GETUSERSHELL.
41464
41465 2008-10-18  Bruno Haible  <bruno@clisp.org>
41466
41467         Add a getloadavg() declaration to <stdlib.h>.
41468         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41469         getloadavg declaration.
41470         (getloadavg): New declaration.
41471         * lib/getloadavg.c: Include <stdlib.h> first.
41472         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41473         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41474         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41476         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41477         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41478         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41479         (Include): Specify <stdlib.h>.
41480         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41481         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41482
41483 2008-10-18  Bruno Haible  <bruno@clisp.org>
41484
41485         * lib/dirchownmod.c: Don't include lchmod.h.
41486
41487         Move the lchmod() declaration to <sys/stat.h>.
41488         * lib/lchmod.h: Remove file.
41489         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41490         (lchmod): New declaration, moved here from lib/lchown.h.
41491         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41492         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41493         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41494         and HAVE_LCHMOD.
41495         * modules/lchmod (Files): Remove lib/lchmod.h.
41496         (Depends-on): Add sys_stat, extensions.
41497         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41498         (Include): Specify <sys/stat.h> instead of lchmod.h.
41499         * modules/sys_stat (Depends-on): Add link-warning.
41500         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41501         definition of GL_LINK_WARNING.
41502         * NEWS: Mention the change.
41503
41504 2008-10-18  Bruno Haible  <bruno@clisp.org>
41505
41506         * lib/fchdir.c: Don't include dirfd.h.
41507         * lib/fts.c: Likewise.
41508         * lib/getcwd.c: Likewise.
41509         * lib/glob.c: Likewise.
41510
41511         Move the dirfd() declaration to <dirent.h>.
41512         * lib/dirfd.h: Remove file.
41513         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41514         (dirfd): New declaration.
41515         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41516         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41517         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41518         HAVE_DECL_DIRFD.
41519         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41520         HAVE_DECL_DIRFD.
41521         * modules/dirfd (Files): Remove lib/dirfd.h.
41522         (Depends-on): Add dirent, extensions.
41523         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41524         (Include): Specify <dirent.h> instead of dirfd.h.
41525         * modules/dirent (Depends-on): Add link-warning.
41526         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41527         definition of GL_LINK_WARNING.
41528         * NEWS: Mention the change.
41529
41530 2008-10-18  Bruno Haible  <bruno@clisp.org>
41531
41532         Move the euidaccess() declaration to <unistd.h>.
41533         * lib/euidaccess.h: Remove file.
41534         * lib/unistd.in.h (euidaccess): New declaration.
41535         * lib/euidaccess.c: Don't include euidaccess.h.
41536         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41537         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41539         and HAVE_EUIDACCESS.
41540         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41541         (Depends-on): Add unistd.
41542         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41543         (Include): Specify <unistd.h> instead of euidaccess.h.
41544         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41545         HAVE_EUIDACCESS.
41546         * NEWS: Mention the change.
41547
41548 2008-10-18  Bruno Haible  <bruno@clisp.org>
41549
41550         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41551
41552         Move the getdomainname() declaration to <unistd.h>.
41553         * lib/getdomainname.h: Remove file.
41554         * lib/unistd.in.h (getdomainname): New declaration.
41555         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41556         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41557         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41558         HAVE_GETDOMAINNAME.
41559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41560         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41561         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41562         (Depends-on): Add unistd, extensions.
41563         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41564         (Includes): Specify <unistd.h> instead of getdomainname.h.
41565         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41566         HAVE_GETDOMAINNAME.
41567         * NEWS: Mention the change.
41568
41569 2008-10-18  Bruno Haible  <bruno@clisp.org>
41570
41571         * modules/dirent: New file.
41572         * m4/dirent_h.m4: New file.
41573         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41574         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41575         * modules/fchdir (Files): Remove lib/dirent.in.h.
41576         (Depends-on): Add dirent.
41577         (Makefile.am): Move rules to modules/dirent.
41578         * doc/posix-headers/dirent.texi: Mention the new module.
41579
41580 2008-10-18  Bruno Haible  <bruno@clisp.org>
41581
41582         Avoid -Wunused-parameter warnings in public gnulib header files.
41583         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41584         macro.
41585         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41586
41587 2008-10-18  Bruno Haible  <bruno@clisp.org>
41588
41589         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41590         * doc/glibc-functions/error.texi: Mention the module 'error'.
41591         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41592         * doc/glibc-functions/getdomainname.texi: Mention the module
41593         'getdomainname'.
41594         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41595         * doc/glibc-functions/getpagesize.texi: Mention the module
41596         'getpagesize'.
41597         * doc/glibc-functions/getusershell.texi: Mention the module
41598         'getusershell'.
41599         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41600         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41601         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41602         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41603         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41604         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41605         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41606         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41607         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41608         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41609         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41610         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41611         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41612         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41613
41614 2008-10-17  Bruno Haible  <bruno@clisp.org>
41615
41616         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41617         HP-UX and IRIX, use -0.0L.
41618         * tests/test-ceill.c (minus_zero): Likewise.
41619         * tests/test-floorl.c (minus_zero): Likewise.
41620         * tests/test-frexpl.c (minus_zero): Likewise.
41621         * tests/test-isnan.c (minus_zerol): Likewise.
41622         * tests/test-isnanl.h (minus_zero): Likewise.
41623         * tests/test-ldexpl.c (minus_zero): Likewise.
41624         * tests/test-roundl.c (minus_zero): Likewise.
41625         * tests/test-signbit.c (minus_zerol): Likewise.
41626         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41627         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41628         * tests/test-truncl.c (minus_zero): Likewise.
41629         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41630         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41631         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41632         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41633
41634 2008-10-17  Bruno Haible  <bruno@clisp.org>
41635
41636         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41637         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41638         that it gets activated only for gcc >= 3.0.
41639         * lib/dirent.in.h: Likewise.
41640         * lib/errno.in.h: Likewise.
41641         * lib/fcntl.in.h: Likewise.
41642         * lib/float.in.h: Likewise.
41643         * lib/iconv.in.h: Likewise.
41644         * lib/inttypes.in.h: Likewise.
41645         * lib/locale.in.h: Likewise.
41646         * lib/math.in.h: Likewise.
41647         * lib/netdb.in.h: Likewise.
41648         * lib/netinet_in.in.h: Likewise.
41649         * lib/search.in.h: Likewise.
41650         * lib/signal.in.h: Likewise.
41651         * lib/spawn.in.h: Likewise.
41652         * lib/stdarg.in.h: Likewise.
41653         * lib/stdint.in.h: Likewise.
41654         * lib/stdio.in.h: Likewise.
41655         * lib/stdlib.in.h: Likewise.
41656         * lib/string.in.h: Likewise.
41657         * lib/strings.in.h: Likewise.
41658         * lib/sys_file.in.h: Likewise.
41659         * lib/sys_ioctl.in.h: Likewise.
41660         * lib/sys_select.in.h: Likewise.
41661         * lib/sys_socket.in.h: Likewise.
41662         * lib/sys_stat.in.h: Likewise.
41663         * lib/sys_time.in.h: Likewise.
41664         * lib/sysexits.in.h: Likewise.
41665         * lib/time.in.h: Likewise.
41666         * lib/unistd.in.h: Likewise.
41667         * lib/wchar.in.h: Likewise.
41668         * lib/wctype.in.h: Likewise.
41669         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41670
41671 2008-10-17  Jim Meyering  <meyering@redhat.com>
41672
41673         ignore-value: don't depend on inline module
41674         * modules/ignore-value (Depends-on): Remove 'inline'.
41675         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41676         Suggestion from Bruno Haible.
41677
41678 2008-10-17  Bruno Haible  <bruno@clisp.org>
41679
41680         New implementation of condition variables for Win32.
41681         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41682         (gl_linked_waitqueue_t): New type.
41683         (gl_cond_t): Use it.
41684         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41685         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41686         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41687         (glthread_cond_init_func, glthread_cond_wait_func,
41688         glthread_cond_timedwait_func, glthread_cond_signal_func,
41689         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41690         Reimplemented on the basis of gl_linked_waitqueue_t.
41691         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41692         gl_waitqueue_t.
41693         (gl_rwlock_t): Update.
41694         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41695
41696 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41697
41698         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41699         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41700
41701 2008-10-17  Jim Meyering  <meyering@redhat.com>
41702
41703         ignore-value: new module
41704         * modules/ignore-value: New file.
41705         * lib/ignore-value.h: New file.
41706         * MODULES.html.sh (Compiler warning management): New section,
41707         just for this module.  More to come.
41708
41709 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41710
41711         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41712         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41713         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41714
41715 2008-10-16  Jim Meyering  <meyering@redhat.com>
41716
41717         openat-die.c: avoid 'no previous prototype' warning
41718         * lib/openat-die.c: Include "openat.h".
41719         Reported by Reuben Thomas <rrt@sc3d.org>.
41720
41721 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41722
41723         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41724         * lib/netdb.in.h: Fix typo.
41725         Reported by Bruno Haible  <bruno@clisp.org>
41726
41727         * lib/netdb.in.h: Include sys/socket.h for platforms without
41728         netdb.h, to get structures like hostent on MinGW.
41729         * modules/netdb (Depends-on): Add sys_socket.
41730
41731 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41732
41733         * modules/netdb, modules/netdb-tests: New file.
41734         * m4/netdb_h.m4: New file.
41735         * lib/netdb.in.h: Add, currently just an empty file pending
41736         definitions.
41737         * tests/test-netdb.c: New file.
41738         * doc/posix-headers/netdb.texi: Mention that we replace it if
41739         needed.
41740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41741         netdb.
41742
41743 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41744
41745         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41746         with code.
41747
41748 2008-10-13  Bruno Haible  <bruno@clisp.org>
41749
41750         * lib/glthread/cond.c (glthread_cond_wait_func,
41751         glthread_cond_timedwait_func): Add a comment.
41752
41753 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41754
41755         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41756         * tests/test-select.c: Likewise,
41757
41758 2008-10-13  Bruno Haible  <bruno@clisp.org>
41759
41760         * lib/glthread/cond.c (glthread_cond_wait_func,
41761         glthread_cond_timedwait_func): Fix variable name.
41762         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41763
41764 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41765
41766         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41767         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41768         struct sockaddr.sa_len.
41769         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41770
41771 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41772
41773         * build-aux/pmccabe2html: Add css and css_url parameters.
41774
41775 2008-10-12  Bruno Haible  <bruno@clisp.org>
41776
41777         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41778         calling aclx_get.
41779         Reported by Rainer Tammer <tammer@tammer.net>.
41780
41781 2008-10-12  Bruno Haible  <bruno@clisp.org>
41782
41783         Use msvcrt aware primitives for creation/termination of Win32 threads.
41784         * lib/glthread/thread.c: Include <process.h>.
41785         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41786         (wrapper_func): Update signature.
41787         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41788
41789 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41790             Bruno Haible  <bruno@clisp.org>
41791
41792         Provide a Win32 implementation of the 'cond' module.
41793         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41794         * lib/glthread/cond.c (glthread_cond_init_func,
41795         glthread_cond_wait_func, glthread_cond_timedwait_func,
41796         glthread_cond_signal_func, glthread_cond_broadcast_func,
41797         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41798         * modules/cond (Dependencies): Add gettimeofday.
41799
41800 2008-10-11  Bruno Haible  <bruno@clisp.org>
41801
41802         Make sleep work on older versions of mingw.
41803         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41804         only whether it exists.
41805         * doc/posix-functions/sleep.texi: Mention the problem with older
41806         versions of mingw.
41807
41808 2008-10-11  Bruno Haible  <bruno@clisp.org>
41809
41810         New module 'shutdown'.
41811         * modules/shutdown: New file.
41812         * lib/sys_socket.in.h (shutdown): New declaration.
41813         * lib/winsock.c (shutdown): New function.
41814         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41815         GNULIB_SHUTDOWN.
41816         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41817         * doc/posix-functions/shutdown.texi: Document the new module.
41818
41819 2008-10-11  Jim Meyering  <meyering@redhat.com>
41820
41821         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41822
41823 2008-10-11  Bruno Haible  <bruno@clisp.org>
41824
41825         New module 'fclose'.
41826         * modules/fclose: New file.
41827         * lib/stdio.in.h (fclose): New declaration.
41828         * lib/fclose.c: New file.
41829         * m4/fclose.m4: New file.
41830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41831         REPLACE_FCLOSE.
41832         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41833         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41834         REPLACE_FCLOSE.
41835         * modules/close (Depends-on): fclose.
41836         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41837
41838 2008-10-11  Bruno Haible  <bruno@clisp.org>
41839
41840         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41841         set errno and don't call _close.
41842
41843 2008-10-10  Bruno Haible  <bruno@clisp.org>
41844
41845         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41846         ACL, not afterwards. Fixes test failure on Cygwin.
41847
41848 2008-10-09  Ben Pfaff  <blp@gnu.org>
41849
41850         * build-aux/announce-gen: Fix gnulib version related part of usage
41851         message.  Die with a useful error message if no tarballs are
41852         found.
41853
41854 2008-10-10  Jim Meyering  <meyering@redhat.com>
41855
41856         bootstrap: use git's --depth=N option only if it's supported
41857         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41858         recognize the --depth option.  Reported by Pádraig Brady.
41859
41860 2008-10-09  Bruno Haible  <bruno@clisp.org>
41861
41862         New module 'ioctl'.
41863         * modules/ioctl: New file.
41864         * lib/sys_socket.in.h (ioctl): Remove declaration.
41865         * lib/winsock.c: Include <sys/ioctl.h>.
41866         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41867         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41868         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41869         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41870         * doc/posix-functions/ioctl.texi: Mention the new module.
41871
41872 2008-10-09  Bruno Haible  <bruno@clisp.org>
41873
41874         New module 'sys_ioctl'.
41875         * lib/sys_ioctl.in.h: New file.
41876         * m4/sys_ioctl_h.m4: New file.
41877         * modules/sys_ioctl: New file.
41878         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41879
41880 2008-10-09  Bruno Haible  <bruno@clisp.org>
41881
41882         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41883         * lib/winsock.c: Include <stdarg.h>.
41884         (rpl_ioctl): Change to second argument 'int' and then varargs.
41885
41886 2008-10-09  Bruno Haible  <bruno@clisp.org>
41887
41888         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41889         when the sys_socket module is present and the system has <winsock2.h>.
41890
41891 2008-10-09  Bruno Haible  <bruno@clisp.org>
41892
41893         * doc/posix-functions/close.texi: Mention module 'close' instead of
41894         module 'sys_socket'.
41895
41896 2008-10-09  Bruno Haible  <bruno@clisp.org>
41897
41898         * doc/glibc-headers/sys_ioctl.texi: New file.
41899         * doc/gnulib.texi: Include it.
41900
41901 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41902             Bruno Haible  <bruno@clisp.org>
41903
41904         Combine the two replacements of 'close'.
41905         * lib/sys_socket.in.h (close): Define to a reminder to include
41906         <unistd.h>.
41907         (_gl_close_fd_maybe_socket): New declaration.
41908         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41909         * lib/winsock.c (close): Remove undefinition.
41910         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41911         needed for the gnulib module 'close'.
41912         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41913         define to an error symbol or to a warning, if suitable.
41914         * lib/close.c: Include <sys/socket.h>.
41915         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41916         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41917         UNISTD_H_HAVE_WINSOCK2_H.
41918         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41920         UNISTD_H_HAVE_WINSOCK2_H.
41921         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41922         (configure.ac): Set a module indicator.
41923         (Makefile.am): Substitute GNULIB_CLOSE.
41924         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41925         * modules/poll-tests (Depends-on): Add close.
41926         * modules/select-tests (Depends-on): Likewise.
41927
41928 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41929             Bruno Haible  <bruno@clisp.org>
41930
41931         New module 'close'.
41932         * modules/close: New file.
41933         * lib/unistd.in.h (close): Move declaration out of the
41934         FCHDIR_REPLACEMENT scope.
41935         (_gl_unregister_fd): New declaration.
41936         * lib/close.c: New file.
41937         * lib/fchdir.c (rpl_close): Remove function.
41938         * m4/close.m4: New file.
41939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41940         close.
41941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41942         REPLACE_CLOSE.
41943         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41944         REPLACE_CLOSE.
41945         * modules/fchdir (Depends-on): Add close.
41946
41947 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41948             Bruno Haible  <bruno@clisp.org>
41949
41950         * lib/fcntl.in.h (open): Simplify conditionals.
41951         (_gl_register_fd): New declaration.
41952         * lib/fchdir.c (rpl_open): Remove function.
41953         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41954         also.
41955         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41956         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41957         open.
41958
41959 2008-10-09  Jim Meyering  <meyering@redhat.com>
41960
41961         GNUmakefile: use the more name-space-friendly "_version"
41962         * top/GNUmakefile (_dummy): Update.
41963         (_version): Rename from "version".
41964
41965 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41966             Bruno Haible  <bruno@clisp.org>
41967
41968         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41969         rpl_close.
41970         (_gl_register_fd): New function, extracted from rpl_open.
41971         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41972         (rpl_open, rpl_opendir): Use _gl_register_fd.
41973
41974 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41975
41976         Fix organization of 'open' replacement.
41977         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41978         (gl_FUNC_OPEN): Use it.
41979         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41980
41981 2008-10-08  Bruno Haible  <bruno@clisp.org>
41982
41983         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41984
41985 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41986
41987         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41988         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41989         listen).
41990
41991 2008-10-08  Eric Blake  <ebb9@byu.net>
41992
41993         GNUmakefile: add 'make version' target
41994         * top/GNUmakefile (_curr-ver): Split version update rules...
41995         (version): ...into a target.
41996
41997 2008-10-07  Bruno Haible  <bruno@clisp.org>
41998
41999         Use a more portable replacement expression for -0.0L.
42000         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42001         instead of -0.0L. Fix m4 quotation.
42002
42003         * tests/test-signbit.c: Include <float.h>.
42004         (minus_zero): New variable.
42005         (test_signbitl): Use minus_zero instead of -zero.
42006         * modules/signbit-tests (Depends-on): Add float.
42007
42008         * tests/test-ceill.c: Include <float.h>.
42009         (zero): Remove variable.
42010         (minus_zero): New variable.
42011         (main): Use minus_zero instead of -zero.
42012         * modules/ceill-tests (Depends-on): Add float.
42013
42014         * tests/test-floorl.c: Include <float.h>.
42015         (zero): Remove variable.
42016         (minus_zero): New variable.
42017         (main): Use minus_zero instead of -zero.
42018         * modules/floorl-tests (Depends-on): Add float.
42019
42020         * tests/test-roundl.c: Include <float.h>.
42021         (zero): Remove variable.
42022         (minus_zero): New variable.
42023         (main): Use minus_zero instead of -zero.
42024         * modules/roundl-tests (Depends-on): Add float.
42025
42026         * tests/test-truncl.c: Include <float.h>.
42027         (zero): Remove variable.
42028         (minus_zero): New variable.
42029         (main): Use minus_zero instead of -zero.
42030         * modules/truncl-tests (Depends-on): Add float.
42031
42032         * tests/test-frexpl.c (zero): Remove variable.
42033         (minus_zero): New variable.
42034         (main): Use minus_zero instead of -zero.
42035         * modules/frexpl-tests (Depends-on): Add float.
42036
42037         * tests/test-isnan.c (zerol): Remove variable.
42038         (minus_zerol): New variable.
42039         (test_long_double): Use minus_zerol instead of -zerol.
42040         * modules/isnan-tests (Depends-on): Add float.
42041
42042         * tests/test-isnanl.h (zero): Remove variable.
42043         (minus_zero): New variable.
42044         (main): Use minus_zero instead of -zero.
42045         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42046         * modules/isnanl-tests (Depends-on): Add float.
42047
42048         * tests/test-ldexpl.c (zero): Remove variable.
42049         (minus_zero): New variable.
42050         (main): Use minus_zero instead of -zero.
42051         * modules/ldexpl-tests (Depends-on): Add float.
42052
42053         * tests/test-snprintf-posix.h (zerol): Remove variable.
42054         (minus_zerol): New variable.
42055         (test_function): Use minus_zerol instead of -zerol.
42056         * modules/snprintf-posix-tests (Depends-on): Add float.
42057         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42058
42059         * tests/test-sprintf-posix.h (zerol): Remove variable.
42060         (minus_zerol): New variable.
42061         (test_function): Use minus_zerol instead of -zerol.
42062         * modules/sprintf-posix-tests (Depends-on): Add float.
42063         * modules/vsprintf-posix-tests (Depends-on): Add float.
42064
42065         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42066         (minus_zerol): New variable.
42067         (test_function): Use minus_zerol instead of -zerol.
42068         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42069
42070         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42071         (minus_zerol): New variable.
42072         (test_function): Use minus_zerol instead of -zerol.
42073         * modules/vasprintf-posix-tests (Depends-on): Add float.
42074
42075 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42076
42077         * MODULES.html.sh (Support for building documentation): Mention
42078         pmccabe2html.  Sort entries.
42079
42080         Add pmccabe2html module, from gnupdf.
42081         * build-aux/pmccabe.css: New file.
42082         * build-aux/pmccabe2html: New file.
42083         * m4/pmccabe2html.m4: New file.
42084         * modules/pmccabe2html: New file.
42085
42086 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42087
42088         flock: new module
42089         * MODULES.html.sh: Add to list of modules.
42090         * lib/flock.c: flock implementation for Windows and Unix systems
42091         which have fcntl.
42092         * doc/glibc-functions/flock.texi: Update documentation.
42093         * lib/sys_file.in.h: <sys/file.h> header file.
42094         * m4/flock.m4: M4 macros.
42095         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42096         * modules/flock: flock module.
42097         * modules/flock-tests: flock tests module.
42098         * modules/sys_file: sys/file.h module.
42099         * tests/test-flock.c: test suite for flock.
42100
42101 2008-10-06  Jim Meyering  <meyering@redhat.com>
42102
42103         bootstrap: check for LT_INIT more portably still ;-)
42104         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42105         Spotted by Bruno Haible.
42106
42107 2008-10-06  Eric Blake  <ebb9@byu.net>
42108
42109         test-signbit: avoid tripping Irix cc bug on -0.0L
42110         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42111         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42112         entire testsuite consistent and avoids an Irix 6.2 bug.
42113
42114 2008-10-05  Bruno Haible  <bruno@clisp.org>
42115             Jim Meyering  <jim@meyering.net>
42116
42117         Add an option for ignoring EPIPE during close_stdout.
42118         * lib/closeout.h: Include <stdbool.h>.
42119         (close_stdout_set_ignore_EPIPE): New declaration.
42120         * lib/closeout.c: Include <stdbool.h>.
42121         (ignore_EPIPE): New variable.
42122         (close_stdout_set_ignore_EPIPE): New function.
42123         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42124         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42125         failure.
42126         * modules/closeout (Depends-on): Add stdbool.
42127
42128 2008-10-05  Bruno Haible  <bruno@clisp.org>
42129
42130         * modules/accept: New file.
42131         * modules/bind: New file.
42132         * modules/connect: New file.
42133         * modules/getpeername: New file.
42134         * modules/getsockname: New file.
42135         * modules/getsockopt: New file.
42136         * modules/listen: New file.
42137         * modules/recv: New file.
42138         * modules/recvfrom: New file.
42139         * modules/send: New file.
42140         * modules/sendto: New file.
42141         * modules/setsockopt: New file.
42142         * modules/socket: New file.
42143         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42144         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42145         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42146         the particular module is requested. Add a link warning when the
42147         particular module is not requested.
42148         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42149         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42150         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42151         the particular module is requested.
42152         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42153         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42154         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42155         * modules/sys_socket (Depends-on): Add link-warning.
42156         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42157         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42158         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42159         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42160         GL_LINK_WARNING.
42161         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42162         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42163         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42164         * doc/posix-functions/getpeername.texi: Mention the new module
42165         'getpeername'.
42166         * doc/posix-functions/getsockname.texi: Mention the new module
42167         'getsockname'.
42168         * doc/posix-functions/getsockopt.texi: Mention the new module
42169         'getsockopt'.
42170         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42171         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42172         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42173         * doc/posix-functions/send.texi: Mention the new module 'send'.
42174         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42175         * doc/posix-functions/setsockopt.texi: Mention the new module
42176         'setsockopt'.
42177         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42178         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42179         listen, connect, accept.
42180         * modules/select-tests (Depends-on): Likewise.
42181
42182 2008-10-05  Bruno Haible  <bruno@clisp.org>
42183
42184         * lib/winsock.c (strerror): Remove unused #undef.
42185         (rpl_close): Remove unused local variable.
42186
42187         * modules/sys_socket (Depends-on); Add errno.
42188
42189 2008-10-05  Bruno Haible  <bruno@clisp.org>
42190
42191         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42192         (select): Add a link warning when the 'select' module is not used.
42193         * modules/sys_select (Depends-on): Add link-warning.
42194         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42195         Suggested by Paolo Bonzini.
42196
42197 2008-10-05  Jim Meyering  <meyering@redhat.com>
42198
42199         bootstrap: check for LT_INIT more portably
42200         * build-aux/bootstrap: Avoid using grep -E, since it's not
42201         portable enough.  Suggestion from Bruno Haible.
42202
42203 2008-10-05  Bruno Haible  <bruno@clisp.org>
42204
42205         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42206         as being fixed by gnulib.
42207
42208 2008-10-05  Bruno Haible  <bruno@clisp.org>
42209
42210         * modules/select-tests: New file, mostly copied from
42211         modules/sys_select-tests.
42212         * tests/test-select.c: New file, mostly copied from
42213         tests/test-sys_select.c.
42214         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42215         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42216         (Makefile.am): Remove test_sys_select_LDADD.
42217
42218         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42219         to an undefined symbol, for an error message.
42220         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42221         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42222         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42223         winsock-select.c here.
42224         * modules/sys_select (Files): Remove lib/winsock-select.c.
42225         (Depends-on): Remove alloca.
42226         (Makefile.am): Substitute GNULIB_SELECT.
42227         * modules/select: New file.
42228         * doc/posix-functions/select.texi: Update.
42229
42230 2008-10-05  Bruno Haible  <bruno@clisp.org>
42231
42232         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42233         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42234         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42235         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42236         getdtablesize.
42237         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42238         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42239
42240 2008-10-05  Bruno Haible  <bruno@clisp.org>
42241
42242         * modules/getdtablesize-tests: New file.
42243         * tests/test-getdtablesize.c: New file.
42244
42245         New module 'getdtablesize'.
42246         * lib/unistd.in.h (getdtablesize): New declaration.
42247         * lib/getdtablesize.c: New file.
42248         * m4/getdtablesize.m4: New file.
42249         * modules/getdtablesize: New file.
42250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42251         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42252         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42253         HAVE_GETDTABLESIZE.
42254         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42255
42256 2008-10-05  Bruno Haible  <bruno@clisp.org>
42257
42258         * modules/sched (Makefile.am): Fix typo.
42259         Reported by Simon Josefsson.
42260
42261 2008-10-05  Jim Meyering  <meyering@redhat.com>
42262
42263         bootstrap: check for LT_INIT, too
42264         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42265         are deprecated.  Suggestion from Ralf Wildenhues.
42266
42267 2008-10-05  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42270         overriding them by ours.
42271         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42272
42273 2008-10-05  Jim Meyering  <meyering@redhat.com>
42274
42275         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42276         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42277         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42278
42279 2008-10-04  Bruno Haible  <bruno@clisp.org>
42280
42281         * modules/dup2 (License): Change to LGPLv2+.
42282         * modules/sleep (License): Likewise.
42283         * modules/perror (License): Likewise.
42284         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42285         Blake.
42286         * modules/signal (License): Likewise.
42287         * modules/sigprocmask (License): Likewise.
42288         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42289         Meyering.
42290
42291 2008-10-04  Bruno Haible  <bruno@clisp.org>
42292
42293         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42294         Reported by Rainer Tammer <tammer@tammer.net>.
42295
42296 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42297             Bruno Haible  <bruno@clisp.org>
42298
42299         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42300         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42301         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42302
42303 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42304
42305         filevercmp: new module
42306         * lib/filevercmp.h: New function filevercmp comparing version strings.
42307         * lib/filevercmp.c: Implementation of filevercmp function.
42308         * modules/filevercmp: Module metadata.
42309         * tests/test-filevercmp.c: Unit test for new module.
42310         * modules/filevercmp-tests: Unit test metadata.
42311         * MODULES.html.sh: Add filevercmp module.
42312
42313 2008-10-03  Bruno Haible  <bruno@clisp.org>
42314
42315         * lib/c-ctype.h: Add comment.
42316         Reported by Jim Meyering.
42317
42318 2008-10-02  Bruno Haible  <bruno@clisp.org>
42319
42320         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42321
42322 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42323
42324         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42325         name of bootstrap.conf accordingly.
42326
42327 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42328
42329         * build-aux/bootstrap: Install git-merge-changelog configuration
42330         items into .gitconfig if needed.
42331
42332 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42333
42334         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42335         git repository, and initialize/update it accordingly.
42336
42337 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42338
42339         * modules/fsync-tests: New file.
42340         * tests/test-fsync.c: New file.
42341
42342         New module 'fsync'.
42343         * lib/fsync.c: New file.
42344         * m4/fsync.m4: New file.
42345         * modules/fsync: New file.
42346         * lib/unistd.in.h (fsync): New declaration.
42347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42348         GNULIB_FSYNC and HAVE_FSYNC.
42349         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42350         * MODULES.html.sh (posix_functions): Add fsync.
42351         * doc/posix-functions/fsync.texi: Mention the new module.
42352
42353 2008-10-02  Jim Meyering  <meyering@redhat.com>
42354
42355         fts.c: sync with similar code from coreutils' remove.c
42356         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42357         Guard also with "#if defined __linux__", since for now at least,
42358         this code is Linux-kernel-specific.
42359
42360 2008-10-02  Jim Meyering  <meyering@redhat.com>
42361
42362         fts: bug fixes
42363         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42364         Include <sys/vfs.h>, not <sys/statfs.h>.
42365
42366         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42367         Include <sys/vfs.h>, not <sys/statfs.h>.
42368
42369 2008-10-01  Bruno Haible  <bruno@clisp.org>
42370
42371         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42372         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42373         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42374         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42375         * doc/posix-functions/posix_spawnp.texi: Likewise.
42376         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42377         whether posix_spawn actually works.
42378         * m4/pipe.m4 (gl_PIPE): Likewise.
42379         * modules/execute (Files): Add m4/posix_spawn.m4.
42380         * modules/pipe (Files): Add m4/posix_spawn.m4.
42381         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42382
42383 2008-10-01  Jim Meyering  <meyering@redhat.com>
42384
42385         remove trailing spaces
42386         * NEWS: Likewise.
42387         * lib/poll.c (poll): Likewise.
42388         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42389         * lib/winsock.c (rpl_close): Likewise.
42390         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42391         * modules/yield: Likewise.
42392         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42393         * tests/test-sys_select.c (connect_to_socket): Likewise.
42394
42395         fts.c: adjust a new interface to be more generally useful
42396         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42397         (fts_build): Adjust caller.
42398
42399 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42400
42401         * modules/cond-tests: New file.
42402         * tests/test-cond.c: New file.
42403
42404 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42405             Bruno Haible  <bruno@clisp.org>
42406
42407         * modules/cond (Dependencies): Add errno, time.
42408         * lib/glthread/cond.h: Include <time.h>.
42409         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42410         across platforms.
42411
42412 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42413             Bruno Haible  <bruno@clisp.org>
42414
42415         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42416
42417 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42418             Bruno Haible  <bruno@clisp.org>
42419
42420         * modules/tls-tests (Depends-on): Add thread, yield.
42421         (configure.ac): Remove all checks.
42422         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42423         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42424         gl_thread_self): Remove definitions. Include glthread/thread.h and
42425         glthread/yield.h instead.
42426         (test_tls): Pass an additional NULL argument to gl_thread_join.
42427
42428 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42429             Bruno Haible  <bruno@clisp.org>
42430
42431         * modules/lock-tests (Depends-on): Add thread, yield.
42432         (configure.ac): Remove all checks.
42433         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42434         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42435         gl_thread_self): Remove definitions. Include glthread/thread.h and
42436         glthread/yield.h instead.
42437         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42438         additional NULL argument to gl_thread_join.
42439
42440 2008-09-30  Bruno Haible  <bruno@clisp.org>
42441
42442         Fix the Win32 implementation of the 'thread' module.
42443         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42444         pointer type.
42445         (gl_thread_self): Invoke gl_thread_self_func.
42446         (gl_thread_self_func): New declaration.
42447         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42448         (do_init_self_key, init_self_key): New functions.
42449         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42450         Remove some fields.
42451         (running_threads, running_lock): Remove variables.
42452         (get_current_thread_handle): New function.
42453         (gl_thread_self_func, wrapper_func, glthread_create_func,
42454         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42455         simplified.
42456
42457 2008-09-30  Bruno Haible  <bruno@clisp.org>
42458
42459         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42460         files.
42461
42462 2008-09-30  Jim Meyering  <meyering@redhat.com>
42463
42464         fts.m4: correct the test for statfs.f_type
42465         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42466         when checking for statfs.f_type.
42467
42468 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42469
42470         tests: avoid some compiler warnings
42471         * tests/test-memchr.c (main): Pass NULL indirectly.
42472         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42473
42474 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42475
42476         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42477         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42478         exactly specified dayshifts.
42479         (dayshift): New rule.
42480         (rel): Add dayshift.
42481         (relative_time_table) [tomorrow, yesterday, today, now]:
42482         Use tDAY_SHIFT in place of tDAY_UNIT.
42483         * tests/test-getdate.c: Add tests for now-disallowed countable
42484         dayshifts, e.g., "4 yesterday ago".
42485
42486 2008-09-29  Bruno Haible  <bruno@clisp.org>
42487
42488         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42489         * tests/test-posix_spawn1.in.sh: Renamed from
42490         tests/test-posix_spawn.in.sh.
42491         * tests/test-posix_spawn2.c: New file.
42492         * tests/test-posix_spawn2.in.sh: New file.
42493         * modules/posix_spawnp-tests (Files): Update.
42494         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42495
42496 2008-09-29  Bruno Haible  <bruno@clisp.org>
42497
42498         Propagate effects of putenv/setenv/unsetenv to child processes.
42499         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42500         * lib/pipe.c (create_pipe): Likewise.
42501
42502 2008-09-29  Bruno Haible  <bruno@clisp.org>
42503
42504         Enable use of shell scripts as executables in mingw.
42505         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42506         run the program as a shell script.
42507         * lib/pipe.c (create_pipe): Likewise.
42508         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42509         resulting array.
42510
42511 2008-09-29  Eric Blake  <ebb9@byu.net>
42512
42513         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42514
42515 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42516
42517         * doc/posix-functions/accept.texi: Update mingw problems.
42518         * doc/posix-functions/bind.texi: Update mingw problems.
42519         * doc/posix-functions/close.texi: Update mingw problems.
42520         * doc/posix-functions/connect.texi: Update mingw problems.
42521         * doc/posix-functions/getpeername.texi: Update mingw problems.
42522         * doc/posix-functions/getsockname.texi: Update mingw problems.
42523         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42524         * doc/posix-functions/ioctl.texi: Update mingw problems.
42525         * doc/posix-functions/listen.texi: Update mingw problems.
42526         * doc/posix-functions/recv.texi: Update mingw problems.
42527         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42528         * doc/posix-functions/select.texi: Update mingw problems.
42529         * doc/posix-functions/send.texi: Update mingw problems.
42530         * doc/posix-functions/sendto.texi: Update mingw problems.
42531         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42532         * doc/posix-functions/socket.texi: Update mingw problems.
42533
42534 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42535             Bruno Haible  <bruno@clisp.org>
42536
42537         * lib/sys_select.in.h: Include sys/time.h.
42538         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42539         * modules/sys_select: Depend on sys_time.
42540         * tests/test-sys_select.c: Test that sys/select.h defines struct
42541         timeval fully.
42542
42543 2008-09-29  Bruno Haible  <bruno@clisp.org>
42544
42545         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42546         * lib/sys_select.in.h: Likewise.
42547
42548 2008-09-29  Bruno Haible  <bruno@clisp.org>
42549
42550         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42551
42552 2008-09-29  Bruno Haible  <bruno@clisp.org>
42553
42554         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42555         Set LIBSOCKET instead of augmenting LIBS.
42556         * modules/sockets (Link): New section.
42557         * modules/sockets-tests (test_sockets_LDADD): New variable.
42558         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42559         * modules/poll-tests (test_poll_LDADD): New variable.
42560         * NEWS: Document the change.
42561
42562 2008-09-29  Bruno Haible  <bruno@clisp.org>
42563
42564         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42565         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42566         ARPA_INET_H directly.
42567         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42568
42569 2008-09-28  Bruno Haible  <bruno@clisp.org>
42570
42571         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42572         from gl_HEADER_SYS_SOCKET.
42573         (gl_HEADER_SYS_SOCKET): Invoke it.
42574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42575
42576 2008-09-28  Bruno Haible  <bruno@clisp.org>
42577
42578         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42579         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42580         Needed on OSF/1 4.0.
42581
42582 2008-09-28  Bruno Haible  <bruno@clisp.org>
42583
42584         Override open more carefully.
42585         * lib/open.c (orig_open): New function.
42586         (rpl_open): Use orig_open instead of open.
42587         * lib/fcntl.in.h: Add special invocation convention.
42588         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42589         (gl_FUNC_OPEN): Invoke it.
42590
42591         Override freopen more carefully.
42592         * lib/freopen.c (orig_freopen): New function.
42593         (rpl_freopen): Use orig_freopen instead of freopen.
42594         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42595         (gl_FUNC_FREOPEN): Invoke it.
42596
42597         Override fopen more carefully.
42598         * lib/fopen.c (orig_fopen): New function.
42599         (rpl_fopen): Use orig_fopen instead of fopen.
42600         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42601         (gl_FUNC_FOPEN): Invoke it.
42602         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42603
42604 2008-09-28  Bruno Haible  <bruno@clisp.org>
42605
42606         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42607         SIGPIPE.
42608
42609 2008-09-28  Bruno Haible  <bruno@clisp.org>
42610
42611         * tests/test-sigaction.c (handler, main): Disable the check whether
42612         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42613         glibc systems with LinuxThreads.
42614
42615 2008-09-28  Bruno Haible  <bruno@clisp.org>
42616
42617         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42618
42619         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42620         with AIX xlc.
42621         * lib/fcntl.in.h (open): Likewise.
42622         Reported by Rainer Tammer <tammer@tammer.net>.
42623
42624 2008-09-28  Bruno Haible  <bruno@clisp.org>
42625
42626         * modules/posix_spawnp-tests: New file.
42627         * tests/test-posix_spawn.c: New file.
42628         * tests/test-posix_spawn.in.sh: New file.
42629
42630         New module 'posix_spawnp'.
42631         * modules/posix_spawnp: New file.
42632         * lib/spawnp.c: New file, from GNU libc with modifications.
42633         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42634
42635         New module 'posix_spawn'.
42636         * modules/posix_spawn: New file.
42637         * lib/spawn.c: New file, from GNU libc with modifications.
42638         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42639
42640         New module 'posix_spawnattr_destroy'.
42641         * modules/posix_spawnattr_destroy: New file.
42642         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42643         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42644         module.
42645
42646         New module 'posix_spawnattr_setsigmask'.
42647         * modules/posix_spawnattr_setsigmask: New file.
42648         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42649         modifications.
42650         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42651         new module.
42652
42653         New module 'posix_spawnattr_getsigmask'.
42654         * modules/posix_spawnattr_getsigmask: New file.
42655         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42656         modifications.
42657         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42658         new module.
42659
42660         New module 'posix_spawnattr_setsigdefault'.
42661         * modules/posix_spawnattr_setsigdefault: New file.
42662         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42663         modifications.
42664         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42665         new module.
42666
42667         New module 'posix_spawnattr_getsigdefault'.
42668         * modules/posix_spawnattr_getsigdefault: New file.
42669         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42670         modifications.
42671         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42672         new module.
42673
42674         New module 'posix_spawnattr_setschedpolicy'.
42675         * modules/posix_spawnattr_setschedpolicy: New file.
42676         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42677         modifications.
42678         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42679         new module.
42680
42681         New module 'posix_spawnattr_getschedpolicy'.
42682         * modules/posix_spawnattr_getschedpolicy: New file.
42683         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42684         modifications.
42685         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42686         new module.
42687
42688         New module 'posix_spawnattr_setschedparam'.
42689         * modules/posix_spawnattr_setschedparam: New file.
42690         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42691         modifications.
42692         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42693         new module.
42694
42695         New module 'posix_spawnattr_getschedparam'.
42696         * modules/posix_spawnattr_getschedparam: New file.
42697         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42698         modifications.
42699         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42700         new module.
42701
42702         New module 'posix_spawnattr_setpgroup'.
42703         * modules/posix_spawnattr_setpgroup: New file.
42704         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42705         modifications.
42706         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42707         module.
42708
42709         New module 'posix_spawnattr_getpgroup'.
42710         * modules/posix_spawnattr_getpgroup: New file.
42711         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42712         modifications.
42713         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42714         module.
42715
42716         New module 'posix_spawnattr_setflags'.
42717         * modules/posix_spawnattr_setflags: New file.
42718         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42719         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42720         module.
42721
42722         New module 'posix_spawnattr_getflags'.
42723         * modules/posix_spawnattr_getflags: New file.
42724         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42725         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42726         module.
42727
42728         New module 'posix_spawnattr_init'.
42729         * modules/posix_spawnattr_init: New file.
42730         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42731         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42732         module.
42733
42734         New module 'posix_spawn_file_actions_destroy'.
42735         * modules/posix_spawn_file_actions_destroy: New file.
42736         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42737         modifications.
42738         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42739         the new module.
42740
42741         New module 'posix_spawn_file_actions_addopen'.
42742         * modules/posix_spawn_file_actions_addopen: New file.
42743         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42744         modifications.
42745         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42746         the new module.
42747
42748         New module 'posix_spawn_file_actions_adddup2'.
42749         * modules/posix_spawn_file_actions_adddup2: New file.
42750         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42751         modifications.
42752         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42753         the new module.
42754
42755         New module 'posix_spawn_file_actions_addclose'.
42756         * modules/posix_spawn_file_actions_addclose: New file.
42757         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42758         modifications.
42759         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42760         the new module.
42761
42762         New module 'posix_spawn_file_actions_init'.
42763         * modules/posix_spawn_file_actions_init: New file.
42764         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42765         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42766         new module.
42767
42768         New module 'posix_spawn-internal'.
42769         * modules/posix_spawn-internal: New file.
42770         * lib/spawn_int.h: New file, from GNU libc with modifications.
42771         * lib/spawni.c: New file, from GNU libc with modifications.
42772         * m4/posix_spawn.m4: New file.
42773
42774         New module 'spawn'.
42775         * modules/spawn: New file.
42776         * lib/spawn.in.h: New file, from GNU libc with modifications.
42777         * m4/spawn_h.m4: New file.
42778         * doc/posix-headers/spawn.texi: Mention the new module.
42779
42780 2008-09-28  Bruno Haible  <bruno@clisp.org>
42781
42782         * modules/sched-tests: New file.
42783         * tests/test-sched.c: New file.
42784
42785         New module 'sched'.
42786         * modules/sched: New file.
42787         * lib/sched.in.h: New file.
42788         * m4/sched_h.m4: New file.
42789         * doc/posix-headers/sched.texi: Mention the new module.
42790
42791 2008-09-27  Eric Blake  <ebb9@byu.net>
42792
42793         Fix previous patch, and tweak references to $0.
42794         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42795         (func_version, func_gnulib_dir): Don't call this program
42796         gnulib-tool.
42797         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42798         with using $0 in function.
42799         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42800         (func_fatal_error): Reuse the name the user invoked us with.
42801
42802 2008-09-27  Bruno Haible  <bruno@clisp.org>
42803
42804         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42805         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42806         (gl_ICONV_H): Not here.
42807         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42808         instead of assigning ICONV_H directly.
42809
42810         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42812         WCHAR_H directly.
42813
42814 2008-09-27  Bruno Haible  <bruno@clisp.org>
42815
42816         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42817         * modules/arpa_inet (Depends-on): Add link-warning.
42818         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42819         * modules/unistd (Makefile.am): Likewise.
42820
42821 2008-09-26  Bruno Haible  <bruno@clisp.org>
42822
42823         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42824         variables.
42825         (func_version): Essentially copied from gnulib-tool.
42826         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42827         func_readlink): Copied from gnulib-tool.
42828
42829 2008-09-26  Bruno Haible  <bruno@clisp.org>
42830
42831         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42832         invoking git-version-gen.
42833
42834 2008-09-26  Bruno Haible  <bruno@clisp.org>
42835
42836         * posix-modules: Update to directory names changed on 2008-01-19.
42837         Remove commas in output before splitting into words. No more need to
42838         avoid 'ftruncate' since 2007-02-19.
42839
42840 2008-09-26  Bruno Haible  <bruno@clisp.org>
42841
42842         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42843
42844 2008-09-26  Bruno Haible  <bruno@clisp.org>
42845
42846         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42847         * modules/fwriteerror (Depends-on): Add errno.
42848
42849 2008-09-26  Bruno Haible  <bruno@clisp.org>
42850
42851         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42852         * tests/test-vc-list-files-cvs.sh: Likewise.
42853
42854 2008-09-26  Bruno Haible  <bruno@clisp.org>
42855
42856         * doc/posix-headers/sys_resource.texi: Reorder items.
42857
42858 2008-09-26  Jim Meyering  <meyering@redhat.com>
42859
42860         fts: tweak inode comparison function
42861         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42862         inode numbers, as documented.
42863
42864         fts: sort dirent entries on inode number before traversing
42865         This avoids a quadratic, seek-related performance penalty when
42866         operating on a directory containing many entries (measurable at 10k;
42867         3.5 hours at 2 million entries with a cold cache) on certain types
42868         of file systems, including ext3 and ext4, but not tmpfs.
42869         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42870         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42871         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42872         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42873         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42874         (fts_build): Set the stat.st_ino member from D_INO.
42875         If it is likely to be useful, sort dirent entries on inode number.
42876
42877         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42878         and the struct statfs.f_type member.
42879         * modules/fts (Depends-on): Add d-ino.
42880
42881 2008-09-26  Bruno Haible  <bruno@clisp.org>
42882
42883         * modules/sigpipe-die (Depends-on): Add sigpipe.
42884
42885         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42886         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42887         and GNULIB_STDIO_H_SIGPIPE are set.
42888         * lib/stdio-write.c: New file.
42889         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42890         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42891         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42892         REPLACE_STDIO_WRITE_FUNCS.
42893         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42894         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42895         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42896         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42897         * modules/stdio (Files): Add lib/stdio-write.c.
42898         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42899         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42900         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42901         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42902         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42903         REPLACE_FPRINTF_POSIX.
42904         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42905         REPLACE_PRINTF_POSIX.
42906         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42907         REPLACE_VFPRINTF_POSIX.
42908         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42909         REPLACE_VPRINTF_POSIX.
42910         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42911         SIGPIPE issue.
42912         * doc/posix-functions/fputc.texi: Likewise.
42913         * doc/posix-functions/fputs.texi: Likewise.
42914         * doc/posix-functions/fwrite.texi: Likewise.
42915         * doc/posix-functions/printf.texi: Likewise.
42916         * doc/posix-functions/putc.texi: Likewise.
42917         * doc/posix-functions/putchar.texi: Likewise.
42918         * doc/posix-functions/puts.texi: Likewise.
42919         * doc/posix-functions/vfprintf.texi: Likewise.
42920         * doc/posix-functions/vprintf.texi: Likewise.
42921
42922         * modules/safe-write (Depends-on): Add write.
42923
42924         * modules/sigpipe-tests: New file.
42925         * tests/test-sigpipe.c: New file.
42926         * tests/test-sigpipe.sh: New file.
42927
42928         * modules/write: New file.
42929         * lib/unistd.in.h: Include <sys/types.h>.
42930         (write): New declaration.
42931         * lib/write.c: New file.
42932         * m4/write.m4: New file.
42933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42934         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42935         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42936         GNULIB_WRITE, REPLACE_WRITE.
42937         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42938         and the SIGPIPE issue.
42939
42940         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42941         (raise): New declaration.
42942         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42943         (ext_signal): New function.
42944         (rpl_raise): New function.
42945         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42946         GNULIB_SIGNAL_H_SIGPIPE.
42947         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42948         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42949
42950         * modules/sigpipe: New file.
42951         * m4/sigpipe.m4: New file.
42952
42953 2008-09-25  Derek Price  <derek@ximbiot.com>
42954             Bruno Haible  <bruno@clisp.org>
42955
42956         * gnulib-tool (func_import): Report all license incompatibilities, not
42957         just the first one.
42958
42959 2008-09-25  Bruno Haible  <bruno@clisp.org>
42960
42961         * gnulib-tool (func_import): When computing the edits, consider not
42962         only the Makefile.ams that exist but also those that will be generated.
42963
42964 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42965
42966         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42967         fixes gnulib-tool --test warning about duplicate dependency.
42968
42969 2008-09-25  Bruno Haible  <bruno@clisp.org>
42970
42971         * gnulib-tool: Don't ask the user to perform edits in the generated
42972         Makefile.ams.
42973         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42974         apply to the Makefile.am being generated.
42975         (func_emit_tests_Makefile_am): Execute edits that apply to the
42976         Makefile.am being generated.
42977         (func_import): Setup list of Makefile.am edits before emitting the
42978         Makefile.ams, not at the end.
42979         (func_create_testdir): Update.
42980         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42981
42982 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42983
42984         * gnulib-tool (func_import): Store the --tests-base option in the
42985         comment in gnulib-cache.m4.
42986
42987 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42988
42989         * NEWS: Document increased portability that sys_select now provides.
42990
42991         * lib/sys_select.in.h: Install select wrapper.
42992         * lib/sys_socket.in.h: Use more descriptive name when there is no
42993         select wrapper.
42994         * lib/winsock-select.c: New.
42995         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42996         Require gl_HEADER_SYS_SOCKET.
42997         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42998         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42999         * tests/test-sys_select.c: Add functional tests.
43000
43001 2008-09-24  Eric Blake  <ebb9@byu.net>
43002
43003         open, fopen: close fd leak in last patch
43004         * lib/open.c (rpl_open): Close fd before returning error.
43005         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43006         * doc/posix-functions/open.texi (open): Document that Irix also
43007         has the bug.
43008         * doc/posix-functions/fopen.texi (fopen): Likewise.
43009         Reported by Paolo Bonzini.
43010
43011 2008-09-24  Bruno Haible  <bruno@clisp.org>
43012
43013         Ensure that a filename ending in a slash cannot be used to access a
43014         non-directory.
43015         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43016         to check whether it's really a directory.
43017         * lib/fopen.c: Include fcntl.h, unistd.h.
43018         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43019         and fdopen().
43020         * modules/fopen (Depends-on): Add unistd.
43021         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43022         * tests/test-fopen.c (main): Likewise.
43023         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43024         * doc/posix-functions/fopen.texi: Likewise.
43025         Reported by Eric Blake.
43026
43027 2008-09-23  Eric Blake  <ebb9@byu.net>
43028
43029         c-stack: avoid compiler optimizations when provoking overflow
43030         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43031         recursion harder to optimize, to ensure a stack overflow occurs.
43032         * tests/test-c-stack.c (recurse): Likewise.
43033         Borrowed from libsigsegv.
43034
43035         c-stack: work around Irix sigaltstack bug
43036         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43037         whether sigaltstack uses wrong end of stack_t (copied in part from
43038         libsigsegv).
43039         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43040         Irix bug, without requiring an over-allocation.
43041         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43042         bug.
43043
43044         fopen: document mingw bug on directories
43045         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43046         not allowing a stream visiting a directory, even though reading
43047         from such a stream is not portable.
43048
43049 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43050
43051         * lib/poll.c: Rewrite.
43052         * modules/poll: Depend on alloca.
43053
43054 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43055
43056         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43057         instead define prototypes for a full set of wrappers.  Ensure
43058         that Cygwin does not use the compatibility code, which is only
43059         for MinGW.
43060         * lib/winsock.c: New.
43061         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43062         * modules/sys_socket: Add lib/winsock.c.
43063
43064         * modules/poll-tests: Add errno and perror.
43065         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43066
43067 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43068
43069         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43070
43071 2008-09-23  Bruno Haible  <bruno@clisp.org>
43072
43073         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43074         * doc/glibc-functions/*: Likewise.
43075
43076 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43077
43078         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43079         success.
43080
43081 2008-09-22  Eric Blake  <ebb9@byu.net>
43082             Bruno Haible  <bruno@clisp.org>
43083
43084         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43085         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43086         supply %A but mishandle pseudo-NaN.
43087         Reported by Simon Josefsson.
43088
43089 2008-09-21  Bruno Haible  <bruno@clisp.org>
43090
43091         * tests/test-lock.c (main): Tweak skip message.
43092         * tests/test-tls.c (main): Likewise.
43093
43094 2008-09-21  Bruno Haible  <bruno@clisp.org>
43095
43096         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43097         whether 'struct sigaction' has sa_sigaction here...
43098         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43099         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43100
43101 2008-09-21  Bruno Haible  <bruno@clisp.org>
43102
43103         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43104         section.
43105         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43106         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43107         the new section.
43108         (Support for obsolete systems lacking POSIX:2001): New section.
43109         (String handling <string.h>): Move strdup to the new section.
43110         Suggested by Simon Josefsson and Paolo Bonzini.
43111
43112 2008-09-21  Bruno Haible  <bruno@clisp.org>
43113
43114         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43115         exponents in %e and %g results on 'long double'. Needed for mingw's
43116         improved *printf functions.
43117         * tests/test-vasprintf-posix.c (test_function): Likewise.
43118         * tests/test-snprintf-posix.h (test_function): Likewise.
43119         * tests/test-sprintf-posix.h (test_function): Likewise.
43120         Reported by Eric Blake.
43121
43122 2008-09-21  Bruno Haible  <bruno@clisp.org>
43123
43124         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43125         * tests/test-sprintf-posix.h (test_function): Likewise.
43126
43127 2008-09-21  Bruno Haible  <bruno@clisp.org>
43128
43129         * modules/getpass (Depends-on): Add strdup-posix.
43130
43131         New module 'strdup-posix'.
43132         * modules/strdup-posix: New file.
43133         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43134         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43136         REPLACE_STRDUP.
43137         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43138         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43139         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43140         strdup-posix.
43141
43142         * modules/strdup (Depends-on): Remove malloc-posix.
43143
43144 2008-09-20  Bruno Haible  <bruno@clisp.org>
43145
43146         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43147         Wildenhues.
43148
43149 2008-09-20  Bruno Haible  <bruno@clisp.org>
43150
43151         Ensure that wint_t gets defined on IRIX 5.3.
43152         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43153         * lib/wctype.in.h (wint_t): Likewise.
43154         (__wctype_wint_t): Remove type.
43155         (isw*): Use wint_t instead of __wctype_wint_t.
43156         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43157         * modules/wchar (Files): Add m4/wint_t.m4.
43158         (Makefile.am): Substitute HAVE_WINT_T.
43159         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43160         * tests/test-wctype.c: Check that wint_t is defined.
43161         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43162         * doc/posix-headers/wctype.texi: Likewise.
43163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43164
43165 2008-09-18  Bruno Haible  <bruno@clisp.org>
43166
43167         * gnulib-tool (func_exit): Update comment.
43168
43169 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43170
43171         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43172         assumes strdup exists and does not depend on strdup to return
43173         ENOMEM on out of memory conditions.
43174
43175 2008-09-18  Bruno Haible  <bruno@clisp.org>
43176
43177         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43178         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43179         digits for the exponent.
43180
43181 2008-09-18  Jim Meyering  <meyering@redhat.com>
43182             Bruno Haible  <bruno@clisp.org>
43183
43184         * lib/vasnprintf.c (decimal_point_char): Define also if
43185         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43186
43187 2008-09-16  Bruno Haible  <bruno@clisp.org>
43188         and Eric Blake  <ebb9@byu.net>
43189
43190         vasnprintf: support Irix 5.3
43191         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43192         that mishandle long double infinity.
43193         Reported by Tom G. Christensen.
43194
43195 2008-09-16  Bruno Haible  <bruno@clisp.org>
43196
43197         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43198         Solaris 9.
43199         * doc/glibc-functions/alphasort.texi: Likewise.
43200         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43201
43202 2008-09-16  Jim Meyering  <meyering@redhat.com>
43203
43204         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43205         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43206         a umask modification leak out of a subshell.  Otherwise, the
43207         opensolaris /bin/sh would be accepted and thus cause unwarranted
43208         failures in the coreutils test suite.
43209
43210 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43211
43212         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43213         to succeed.
43214
43215 2008-09-16  Jim Meyering  <meyering@redhat.com>
43216
43217         avoid spurious test failure when library is built without ACL support
43218         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43219         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43220         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43221         * tests/test-copy-acl.sh: Likewise.
43222
43223 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43224
43225         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43226         based on character occurrence counts.
43227
43228 2008-09-15  Eric Blake  <ebb9@byu.net>
43229
43230         tests: avoid some compiler warnings
43231         * tests/test-memchr.c (main): Pass NULL indirectly.
43232         * tests/test-closein.c (main): Avoid unused variable.
43233
43234 2008-09-15  Bruno Haible  <bruno@clisp.org>
43235
43236         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43237         are missing on OpenBSD 4.0 individually.
43238         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43239
43240 2008-09-15  Bruno Haible  <bruno@clisp.org>
43241
43242         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43243         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43244         * doc/posix-functions/perror.texi: Likewise.
43245         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43246         is missing.
43247         Reported by Eric Blake.
43248
43249         * lib/errno.in.h: Use replacement values >= 2000.
43250         Reported by Eric Blake.
43251
43252 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43253
43254         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43255         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43256         limit.
43257         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43258         compareseq was aborted.
43259
43260 2008-09-14  Bruno Haible  <bruno@clisp.org>
43261
43262         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43263         yvec_edit_count.
43264         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43265         (fstrcmp_bounded): Simplify result computation accordingly.
43266
43267 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43268
43269         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43270         (fstrcmp): Define in terms of fstrcmp_bounded.
43271         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43272         lower_bound argument.
43273         Return quickly if the result is certainly < lower_bound.
43274         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43275
43276 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43277
43278         * lib/diffseq.h (EARLY_ABORT): New macro.
43279         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43280         evaluates to true.
43281
43282 2008-09-14  Bruno Haible  <bruno@clisp.org>
43283
43284         * modules/perror-tests: New file.
43285         * tests/test-perror.sh: New file.
43286         * tests/test-perror.c: New file.
43287
43288         New module 'perror'.
43289         * lib/stdio.in.h (perror): New declaration.
43290         * lib/perror.c: New file.
43291         * m4/perror.m4: New file.
43292         * modules/perror: New file.
43293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43294         * doc/posix-functions/perror.texi: Mention the perror module.
43295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43296         REPLACE_PERROR.
43297         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43298         REPLACE_PERROR.
43299
43300 2008-09-14  Bruno Haible  <bruno@clisp.org>
43301
43302         * modules/stdio (Makefile.am): Reorder to match the order in
43303         lib/stdio.in.h.
43304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43305
43306 2008-09-13  Bruno Haible  <bruno@clisp.org>
43307
43308         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43309
43310 2008-09-13  Bruno Haible  <bruno@clisp.org>
43311
43312         Extend strerror to cover the added errno values.
43313         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43314         (rpl_strerror): Provide error messages for the added errno values and
43315         for the WSA* values.
43316         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43317         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43318         strerror.
43319         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43320         * modules/strerror (Depends-on): Add errno.
43321         * doc/posix-functions/strerror.texi: Document the change.
43322         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43323         and EOVERFLOW.
43324
43325 2008-09-13  Bruno Haible  <bruno@clisp.org>
43326
43327         * modules/EOVERFLOW: Remove file.
43328         * m4/eoverflow.m4: Remove file.
43329         * modules/EOVERFLOW-tests: Remove file.
43330         * tests/test-EOVERFLOW.c: Remove file.
43331         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43332         * modules/ftell (Depends-on): Likewise.
43333         * modules/getdelim (Depends-on): Likewise.
43334         * modules/getugroups (Depends-on): Likewise.
43335         * modules/poll (Depends-on): Likewise.
43336         * modules/snprintf (Depends-on): Likewise.
43337         * modules/sprintf-posix (Depends-on): Likewise.
43338         * modules/vasnprintf (Depends-on): Likewise.
43339         * modules/vasprintf (Depends-on): Likewise.
43340         * modules/vfprintf-posix (Depends-on): Likewise.
43341         * modules/vsnprintf (Depends-on): Likewise.
43342         * modules/vsprintf-posix (Depends-on): Likewise.
43343         * modules/xvasprintf (Depends-on): Likewise.
43344         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43345         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43346         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43347         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43348         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43349         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43350         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43351         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43352         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43353         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43354         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43355         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43356         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43357         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43358         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43359         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43360         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43361         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43362         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43363         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43364         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43365         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43366         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43367         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43368         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43369         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43370         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43371         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43372         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43373         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43374         * MODULES.html.sh: Remove EOVERFLOW.
43375         * NEWS: Mention the change.
43376
43377 2008-09-13  Bruno Haible  <bruno@clisp.org>
43378
43379         * modules/errno-tests: New file.
43380         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43381
43382         * lib/errno.in.h: New file.
43383         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43384         * modules/errno: New file.
43385         * doc/posix-headers/errno.texi: Update documentation.
43386         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43387
43388 2008-09-13  Bruno Haible  <bruno@clisp.org>
43389
43390         * tests/test-poll.c: Use #if for native Windows, rather than testing
43391         __MSVCRT__.
43392
43393 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43394             Bruno Haible  <bruno@clisp.org>
43395
43396         * lib/glob.c: Don't include <pwd.h> on native Windows.
43397         (WINDOWS32): New macro.
43398         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43399
43400 2008-09-13  Bruno Haible  <bruno@clisp.org>
43401
43402         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43403         (ETIMEDOUT): Remove macro.
43404         (glthread_cond_timedwait_multithreaded): New declaration.
43405         (glthread_cond_timedwait): Use it.
43406         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43407         (glthread_cond_timedwait_multithreaded): New function.
43408
43409 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43410
43411         * modules/poll-tests: Do not check for io.h.
43412         * tests/test-poll.c: Check for __MSVCRT__ instead.
43413
43414 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43415
43416         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43417         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43418         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43419
43420 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43421
43422         * modules/poll-tests: New.
43423         * tests/test-poll.c: New.
43424
43425 2008-09-12  Eric Blake  <ebb9@byu.net>
43426
43427         frexp: test for NetBSD failure on -0.0
43428         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43429         not all, bugs from NetBSD 3.0 have been fixed.
43430         * doc/posix-functions/frexp.texi (frexp): Document bug.
43431         Reported by Thomas Klausner.
43432
43433         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43434         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43435         literal -0.0.
43436         Reported by Jonathan C. Patschke <jp@centtech.com>.
43437
43438 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43439
43440         * lib/glthread/cond.h: Use dummy implementation also if
43441         USE_WIN32_THREADS.
43442
43443 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43444
43445         * modules/fnmatch-posix (License): Change to LGPLv2+.
43446         * modules/fnmatch-gnu (License): Likewise.
43447
43448 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43449
43450         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43451
43452 2008-09-11  Jim Meyering  <meyering@redhat.com>
43453
43454         * users.txt: Add gtk-vnc.
43455
43456 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43457
43458         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43459         rotate amounts.
43460
43461         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43462         required for 16-bit and 8-bit rotates.
43463         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43464         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43465         UINT8_MAX instead of hard-coded constants.
43466         Suggested by Paul Eggert.
43467
43468 2008-09-07  Bruno Haible  <bruno@clisp.org>
43469
43470         * tests/test-striconveh.c (main): Check behaviour when converting from
43471         UTF-7.
43472
43473         Make striconveh work better with stateful encodings.
43474         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43475         that iconv does not increment the inptr when returning -1/EINVAL.
43476
43477 2008-09-07  Bruno Haible  <bruno@clisp.org>
43478
43479         * build-aux/config.rpath: Update according to libtool-2.2.6.
43480         * build-aux/config.libpath: Likewise.
43481
43482 2008-09-06  Bruno Haible  <bruno@clisp.org>
43483
43484         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43485         * lib/freadptr.c (freadptr): Likewise.
43486         * lib/freadseek.c (freadptrinc): Likewise.
43487         Reported by Simon Josefsson.
43488
43489 2008-09-06  Bruno Haible  <bruno@clisp.org>
43490
43491         * modules/freadptr (License): Change to LGPLv2+.
43492         * modules/freadseek (License): Likewise.
43493         Suggested by Eric Blake.
43494
43495         * modules/memchr2 (License): Change to LGPLv2+.
43496         Approved by Eric Blake.
43497
43498 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43499             Bruno Haible  <bruno@clisp.org>
43500
43501         Make gnulib-tool work with native 'sed' on AIX.
43502         * gnulib-tool (sed_noop): New variable.
43503         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43504         func_add_or_update, func_create_testdir): Use it to initialize sed
43505         script variables.
43506         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43507
43508 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43509             Bruno Haible  <bruno@clisp.org>
43510
43511         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43512         also works after #include directives.
43513
43514 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43515
43516         getdate.y: reject an out-of-range timezone value
43517         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43518         the range [-24...+24].  When specified with only one or two digits,
43519         * tests/test-getdate.c: Tests for the fix.
43520         * doc/getdate.texi: Document this change.
43521
43522 2008-09-03  Bruno Haible  <bruno@clisp.org>
43523
43524         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43525
43526 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43527
43528         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43529         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43530         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43531         Blake <ebb9@byu.net>.
43532
43533         * tests/test-bitrotate.c: Add more test vectors.
43534
43535 2008-09-02  Eric Blake  <ebb9@byu.net>
43536
43537         vasnprintf-posix: handle large precision via %.*d
43538         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43539         when handling it ourselves.
43540         * tests/test-vasnprintf-posix.c (test_function): Add test.
43541         * tests/test-snprintf-posix.h (test_function): Likewise.
43542         * tests/test-sprintf-posix.h (test_function): Likewise.
43543         * tests/test-vasprintf-posix.c (test_function): Likewise.
43544         Reported by Alain Guibert.
43545
43546 2008-09-01  Eric Blake  <ebb9@byu.net>
43547
43548         c-stack: make configure-time check more robust
43549         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43550         successful sigaction call.
43551         Reported by Tom G. Christensen.
43552
43553 2008-09-01  Bruno Haible  <bruno@clisp.org>
43554
43555         New module 'findprog-lgpl'.
43556         * modules/findprog-lgpl: New file.
43557         * lib/findprog-lgpl.c: New file.
43558         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43559         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43560         to decide whether to use strdup or xstrdup, concatenated_filename or
43561         xconcatenated_filename.
43562
43563 2008-09-01  Bruno Haible  <bruno@clisp.org>
43564
43565         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43566         'xconcat-filename' (GPL).
43567         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43568         (License): Change to LGPLv2+.
43569         * modules/xconcat-filename: New file.
43570         * lib/concat-filename.h (concatenated_filename): Change specification.
43571         (xconcatenated_filename): New declaration.
43572         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43573         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43574         memory situations.
43575         * lib/xconcat-filename.c: New file.
43576         * NEWS: Mention the change.
43577         * lib/findprog.c: Include concat-filename.h, not filename.h.
43578         (find_in_path): Use xconcatenated_filename instead of
43579         concatenated_filename.
43580         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43581         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43582         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43583         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43584         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43585         instead of concatenated_filename.
43586         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43587         (execute_java_class): Use xconcatenated_filename instead of
43588         concatenated_filename.
43589         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43590         * modules/javacomp (Depends-on): Likewise.
43591         * modules/javaexec (Depends-on): Likewise.
43592
43593 2008-09-01  Bruno Haible  <bruno@clisp.org>
43594
43595         Split module 'filename' into 'filename' and 'concat-filename'.
43596         * modules/filename: Keep only lib/filename.h.
43597         (License): Change to LGPLv2+.
43598         * modules/concat-filename: New file, extracted from modules/filename.
43599         * lib/filename.h (concatenated_filename): Remove declaration.
43600         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43601         * lib/concat-filename.c: Include concat-filename.h.
43602         * NEWS: Mention the change.
43603
43604 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43605
43606         * lib/bitrotate.h (rotl8, rotr8): Add.
43607
43608         * modules/bitrotate (configure.ac): Need
43609         AC_REQUIRE([AC_C_INLINE]).
43610         (Description): Mention stdint.h.  Reported by Bruno Haible
43611         <bruno@clisp.org>.
43612
43613         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43614         Paolo Bonzini <bonzini@gnu.org>.
43615
43616 2008-08-31  Bruno Haible  <bruno@clisp.org>
43617
43618         Assume Solaris specific bi-arch conventions on Solaris systems.
43619         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43620         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43621         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43622         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43623         like acl_libdirstem.
43624         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43625         acl_libdirstem.
43626         * NEWS: Mention the change.
43627         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43628
43629 2008-08-31  Jim Meyering  <meyering@redhat.com>
43630
43631         * lib/strftime.h: Add comments describing the two added arguments.
43632
43633         remove duplicate #include directives
43634         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43635         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43636
43637 2008-08-31  Bruno Haible  <bruno@clisp.org>
43638
43639         New module 'sigpipe-die'.
43640         * modules/sigpipe-die: New file.
43641         * lib/sigpipe-die.h: New file.
43642         * lib/sigpipe-die.c: New file.
43643         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43644
43645 2008-08-31  Bruno Haible  <bruno@clisp.org>
43646
43647         Don't override previously installed signal handlers.
43648         * lib/fatal-signal.c (saved_sigactions): New variable.
43649         (uninstall_handlers): Reset the signal to the saved handler, not
43650         to SIG_DFL (except when ignored).
43651         (install_handlers): Save the previous handlers.
43652
43653 2008-08-30  Bruno Haible  <bruno@clisp.org>
43654
43655         * gnulib-tool (func_reset_sigpipe): New function.
43656         (func_get_automake_snippet, func_modules_transitive_closure,
43657         func_import): Invoke it before a join command that reads from stdin,
43658         to avoid "echo: write error: Broken pipe" error messages on stderr.
43659         Reported by Sam Steingold <sds@gnu.org>.
43660
43661 2008-08-30  Bruno Haible  <bruno@clisp.org>
43662
43663         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43664         Code copied from m4/open.m4.
43665         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43666         access and the filename ends in a slash. Code copied from lib/open.c.
43667         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43668         * tests/test-fopen.c (main): Check against bug with trailing slash.
43669
43670 2008-08-29  Bruno Haible  <bruno@clisp.org>
43671
43672         Avoid some "gcc -pedantic" warnings.
43673         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43674         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43675         * lib/dirent.in.h: Likewise.
43676         * lib/fcntl.in.h: Likewise.
43677         * lib/float.in.h: Likewise.
43678         * lib/iconv.in.h: Likewise.
43679         * lib/inttypes.in.h: Likewise.
43680         * lib/locale.in.h: Likewise.
43681         * lib/math.in.h: Likewise.
43682         * lib/netinet_in.in.h: Likewise.
43683         * lib/search.in.h: Likewise.
43684         * lib/signal.in.h: Likewise.
43685         * lib/stdarg.in.h: Likewise.
43686         * lib/stdint.in.h: Likewise.
43687         * lib/stdio.in.h: Likewise.
43688         * lib/stdlib.in.h: Likewise.
43689         * lib/string.in.h: Likewise.
43690         * lib/strings.in.h: Likewise.
43691         * lib/sys_select.in.h: Likewise.
43692         * lib/sys_socket.in.h: Likewise.
43693         * lib/sys_stat.in.h: Likewise.
43694         * lib/sys_time.in.h: Likewise.
43695         * lib/sysexits.in.h: Likewise.
43696         * lib/time.in.h: Likewise.
43697         * lib/unistd.in.h: Likewise.
43698         * lib/wchar.in.h: Likewise.
43699         * lib/wctype.in.h: Likewise.
43700         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43701         * modules/fchdir (Makefile.am): Likewise.
43702         * modules/fcntl (Makefile.am): Likewise.
43703         * modules/float (Makefile.am): Likewise.
43704         * modules/iconv_open (Makefile.am): Likewise.
43705         * modules/inttypes (Makefile.am): Likewise.
43706         * modules/locale (Makefile.am): Likewise.
43707         * modules/math (Makefile.am): Likewise.
43708         * modules/netinet_in (Makefile.am): Likewise.
43709         * modules/search (Makefile.am): Likewise.
43710         * modules/signal (Makefile.am): Likewise.
43711         * modules/stdarg (Makefile.am): Likewise.
43712         * modules/stdint (Makefile.am): Likewise.
43713         * modules/stdio (Makefile.am): Likewise.
43714         * modules/stdlib (Makefile.am): Likewise.
43715         * modules/string (Makefile.am): Likewise.
43716         * modules/strings (Makefile.am): Likewise.
43717         * modules/sys_select (Makefile.am): Likewise.
43718         * modules/sys_socket (Makefile.am): Likewise.
43719         * modules/sys_stat (Makefile.am): Likewise.
43720         * modules/sys_time (Makefile.am): Likewise.
43721         * modules/sysexits (Makefile.am): Likewise.
43722         * modules/time (Makefile.am): Likewise.
43723         * modules/unistd (Makefile.am): Likewise.
43724         * modules/wchar (Makefile.am): Likewise.
43725         * modules/wctype (Makefile.am): Likewise.
43726         Reported by Reuben Thomas <rrt@sc3d.org>.
43727
43728 2008-08-29  Bruno Haible  <bruno@clisp.org>
43729
43730         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43731         any more.
43732
43733 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43734
43735         * MODULES.html.sh (Misc): Add bitrotate.
43736
43737         * modules/bitrotate: New file.
43738
43739         * lib/bitrotate.h: New file.
43740
43741         * modules/bitrotate-tests: New file.
43742
43743         * tests/test-bitrotate.c: New file.
43744
43745         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43746         on the bitrotate module.
43747
43748         * lib/arctwo.c: Use new bitrotate module.
43749
43750 2008-08-29  Jim Meyering  <meyering@redhat.com>
43751
43752         bootstrap: merge changes from coreutils
43753         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43754         of copied files.  Remove a kludge, now that this is fixed.
43755         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43756         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43757         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43758
43759 2008-08-29  Bruno Haible  <bruno@clisp.org>
43760
43761         * MODULES.html.sh: Remove --cvs-urls option.
43762
43763 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43764
43765         maint.mk: adjust to file name change
43766         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43767
43768 2008-08-28  Jim Meyering  <meyering@redhat.com>
43769
43770         * modules/getndelim2 (License): Relicense to LGPLv2+.
43771         Approved by Richard Stallman for the version of 1995, and by
43772         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43773
43774 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43775
43776         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43777         dummy if one is not available.  Do not touch them if
43778         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43779         (getc_maybe_unlocked): New.
43780         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43781
43782 2008-08-26  Eric Blake  <ebb9@byu.net>
43783
43784         doc/INSTALL: resync from autoconf
43785         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43786         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43787         moving...
43788         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43789         * INSTALL: Regenerate.
43790         * INSTALL.ISO: New file.
43791         * INSTALL.UTF-8: Likewise.
43792
43793 2008-08-26  Jim Meyering  <meyering@redhat.com>
43794
43795         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43796         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43797         these definitions conditional, so that they may be overridden, too.
43798
43799 2008-08-26  Bruno Haible  <bruno@clisp.org>
43800
43801         Generate INSTALL file variants with prettier quotes.
43802         * doc/Makefile (INSTALL_PRELUDE): New macro.
43803         (INSTALL): Use it.
43804         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43805
43806 2008-08-26  Bruno Haible  <bruno@clisp.org>
43807
43808         Run makeinfo in an English locale.
43809         * doc/Makefile (MAKEINFO): New variable.
43810
43811 2008-08-26  Bruno Haible  <bruno@clisp.org>
43812
43813         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43814         Suggested by Eric Blake.
43815
43816 2008-08-25  Bruno Haible  <bruno@clisp.org>
43817
43818         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43819
43820 2008-08-25  Eric Blake  <ebb9@byu.net>
43821
43822         c-stack: test that stack overflow can be caught
43823         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43824         that platform allows handling stack overflow; at least OS/2 EMX
43825         has sigaltstack, but crashes before transferring control to
43826         handler on stack overflow.
43827         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43828         check for HAVE_STACK_OVERFLOW_HANDLING.
43829         Reported by Elbert Pol.
43830
43831 2008-08-25  Bruno Haible  <bruno@clisp.org>
43832
43833         * doc/posix-functions/strftime.texi: Fix description of strftime
43834         module.
43835
43836 2008-08-24  Bruno Haible  <bruno@clisp.org>
43837
43838         * tests/uniwidth/test-uc_width2.c: New file.
43839         * tests/uniwidth/test-uc_width2.sh: New file.
43840         * modules/uniwidth/width-tests (Files): Add the new files.
43841         (TESTS): Add uniwidth/test-uc_width2.sh.
43842         (TESTS_ENVIRONMENT): New variable.
43843         (check_PROGRAMS): Add test-uc_width2.
43844         (test_uc_width2_SOURCES): New variable.
43845
43846         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43847         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43848         not 0x00AB.
43849         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43850
43851 2008-08-22  Eric Blake  <ebb9@byu.net>
43852
43853         test-lock, test-tls: mention why a test is skipped
43854         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43855         skipped.
43856         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43857
43858         count-one-bits: relax license
43859         * modules/count-one-bits (License): Relicense to LGPLv2+.
43860         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43861
43862 2008-08-22  Andreas Schwab  <schwab@suse.de>
43863
43864         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43865         Remove spurious space in assignment.
43866
43867 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43868
43869         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43870         Paul Eggert <eggert@CS.UCLA.EDU>.
43871
43872 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43873
43874         * modules/gettext: Add m4/threadlib.m4.
43875
43876 2008-08-19  Eric Blake  <ebb9@byu.net>
43877
43878         test-c-stack: fix compilation failure on FreeBSD 5.0
43879         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43880         headers before <sys/resource.h>.
43881         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43882         the bug.
43883         Reported by Nelson H. F. Beebe.
43884
43885         strverscmp: migrate from "strverscmp.h" to <string.h>
43886         * modules/string (Makefile.am): Add new hooks.
43887         * modules/strverscmp (Files): Remove strverscmp.h.
43888         (Depends-on): Add string.
43889         (configure.ac): Add indicator.
43890         (Include): Mention new header.
43891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43892         defaults.
43893         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43894         results.
43895         * lib/strverscmp.h: Delete.
43896         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43897         * tests/test-strverscmp.c (includes): Adjust client.
43898         * lib/check-version.c (includes): Likewise.
43899         * NEWS: Document the change.
43900
43901         strverscmp: add unit test
43902         * modules/strverscmp-tests: New file.
43903         * tests/test-strverscmp.c: Likewise.
43904
43905 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43906
43907         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43908         regarding Windows crypto stuff, from Mono.
43909
43910 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43911
43912         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43913         if present, for intel RND.  Return error on failures.
43914
43915 2008-08-18  Ben Pfaff  <blp@gnu.org>
43916
43917         gitlog-to-changelog: give better diagnostic for failed pipe-open
43918         * build-aux/gitlog-to-changelog: Improve error message: suggest
43919         that the version of Git may be too old.
43920
43921 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43922
43923         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43924         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43925
43926 2008-08-18  Bruno Haible  <bruno@clisp.org>
43927
43928         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43929         pthread_in_use().
43930
43931 2008-08-18  Bruno Haible  <bruno@clisp.org>
43932
43933         * lib/glthread/threadlib.c: Include <pthread.h>.
43934
43935 2008-08-18  Bruno Haible  <bruno@clisp.org>
43936
43937         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43938         glthread_recursive_lock_* macros.
43939         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43940         Fix syntax error.
43941
43942 2008-08-18  Bruno Haible  <bruno@clisp.org>
43943
43944         * lib/glthread/thread.c: Avoid forcing a context switch right after
43945         thread creation.
43946
43947 2008-08-17  Bruno Haible  <bruno@clisp.org>
43948
43949         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43950         * lib/glthread/thread.h: Provide Win32 specific implementation.
43951         * modules/thread (Files): Add lib/glthread/thread.c.
43952         (Depends-on): Add lock.
43953         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43954
43955 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43956
43957         New module 'yield'.
43958         * modules/yield: New file.
43959         * lib/glthread/yield.h: New file.
43960         * m4/yield.m4: New file.
43961         * MODULES.html.sh (Multithreading): Add yield.
43962
43963 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43964
43965         New module 'thread'.
43966         * modules/thread: New file.
43967         * lib/glthread/thread.h: New file.
43968         * m4/thread.m4: New file.
43969         * MODULES.html.sh (Multithreading): Add thread.
43970
43971 2008-08-17  Bruno Haible  <bruno@clisp.org>
43972
43973         * lib/glthread/lock.h: Include <stdlib.h> always.
43974         * lib/glthread/tls.h: Likewise.
43975         * lib/glthread/cond.h: Likewise.
43976
43977 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43978
43979         New module 'cond'.
43980         * modules/cond: New file.
43981         * lib/glthread/cond.h: New file.
43982         * lib/glthread/cond.c: New file.
43983         * m4/cond.m4: New file.
43984         * MODULES.html.sh (Multithreading): Add cond.
43985
43986 2008-08-16  Eric Blake  <ebb9@byu.net>
43987
43988         c-stack: fix regression on Irix 5.3 from 2008-06-21
43989         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43990         sa_sigaction...
43991         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43992         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43993         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43994         * modules/signal (Makefile.am): Use the value.
43995         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43996         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43997         * doc/posix-headers/signal.texi (signal.h): Document this
43998         portability issue.
43999         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44000         Reported by Tom G. Christensen.
44001
44002 2008-08-17  Bruno Haible  <bruno@clisp.org>
44003
44004         New module 'threadlib'.
44005         * modules/threadlib: New file.
44006         * lib/glthread/threadlib.c: New file, extracted from
44007         lib/glthread/lock.c.
44008         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44009         functions.
44010         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44011         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44012         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44013         macros.
44014         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44015         (gl_DISABLE_THREADS): Remove macro.
44016         * modules/lock (Files): Remove build-aux/config.rpath.
44017         (Depends-on): Remove havelib. Add threadlib.
44018         (configure.ac-early): Remove section.
44019         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44020         * modules/tls (Depends-on): Remove lock. Add threadlib.
44021         (Link): New section, copied from threadlib.
44022         * MODULES.html.sh (Multithreading): Add threadlib.
44023
44024 2008-08-14  Bruno Haible  <bruno@clisp.org>
44025
44026         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44027         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44028         glthread_rwlock_unlock, glthread_rwlock_destroy,
44029         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44030         glthread_recursive_lock_destroy): Define as macros always.
44031         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44032         glthread_lock_lock.
44033         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44034         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44035         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44036         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44037         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44038         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44039         (glthread_recursive_lock_lock_func): Renamed from
44040         glthread_recursive_lock_lock.
44041         (glthread_recursive_lock_unlock_func): Renamed from
44042         glthread_recursive_lock_unlock.
44043         (glthread_recursive_lock_destroy_func): Renamed from
44044         glthread_recursive_lock_destroy.
44045
44046 2008-08-14  Bruno Haible  <bruno@clisp.org>
44047
44048         * lib/glthread/lock.h: Renamed from lib/lock.h.
44049         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44050         * lib/glthread/tls.h: Renamed from lib/tls.h.
44051         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44052         * lib/fstrcmp.c: Update includes.
44053         * lib/strsignal.c: Update includes.
44054         * modules/lock (Files, Makefile.am): Update.
44055         (Include): Change to "glthread/lock.h".
44056         * modules/tls (Files, Makefile.am): Update.
44057         (Include): Change to "glthread/tls.h".
44058         * tests/test-lock.c: Update includes.
44059         * tests/test-tls.c: Update includes.
44060         * NEWS: Mention the renamed header files.
44061
44062 2008-08-11  Jim Meyering  <meyering@redhat.com>
44063
44064         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44065
44066 2008-08-11  Eric Blake  <ebb9@byu.net>
44067
44068         test-c-stack: avoid C99-ism
44069         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44070         before statement.
44071         Reported by Alain Guibert.
44072
44073 2008-08-10  Jim Meyering  <meyering@redhat.com>
44074
44075         ensure that return value of uinttostr et al are not ignored
44076         * lib/inttostr.h (__GNUC_PREREQ): Define.
44077         (__attribute_warn_unused_result__): Define.
44078         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44079
44080 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44081
44082         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44083         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44084
44085 2008-08-07  Jim Meyering  <meyering@redhat.com>
44086
44087         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44088
44089         * modules/mkstemp (License): Relicense under LGPLv2+.
44090         * modules/tempname (License): Likewise.
44091
44092 2008-08-06  Bruno Haible  <bruno@clisp.org>
44093
44094         * lib/poll.c (poll): Further micro-optimization.
44095
44096 2008-08-06  Jim Meyering  <meyering@redhat.com>
44097
44098         inet_pton.c: use locale-independent tolower
44099         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44100         (inet_pton6): Use c_tolower rather than tolower.
44101         * modules/inet_pton (Depends-on): Add c-ctype.
44102
44103 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44104
44105         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44106         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44107
44108 2008-08-06  Jim Meyering  <meyering@redhat.com>
44109
44110         * modules/inet_pton (License): Relicense under LGPLv2+.
44111
44112 2008-08-03  Bruno Haible  <bruno@clisp.org>
44113
44114         Additional non-aborting API for lock and tls.
44115         * lib/lock.h: Include <errno.h>.
44116         (glthread_lock_init): New macro/function.
44117         (gl_lock_init): Define as wrapper around glthread_lock_init.
44118         (glthread_lock_lock): New macro/function.
44119         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44120         (glthread_lock_unlock): New macro/function.
44121         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44122         (glthread_lock_destroy): New macro/function.
44123         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44124         (glthread_rwlock_init): New macro/function.
44125         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44126         (glthread_rwlock_rdlock): New macro/function.
44127         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44128         (glthread_rwlock_wrlock): New macro/function.
44129         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44130         (glthread_rwlock_unlock): New macro/function.
44131         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44132         (glthread_rwlock_destroy): New macro/function.
44133         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44134         (glthread_recursive_lock_init): New macro/function.
44135         (gl_recursive_lock_init): Define as wrapper around
44136         glthread_recursive_lock_init.
44137         (glthread_recursive_lock_lock): New macro/function.
44138         (gl_recursive_lock_lock): Define as wrapper around
44139         glthread_recursive_lock_lock.
44140         (glthread_recursive_lock_unlock): New macro/function.
44141         (gl_recursive_lock_unlock): Define as wrapper around
44142         glthread_recursive_lock_unlock.
44143         (glthread_recursive_lock_destroy): New macro/function.
44144         (gl_recursive_lock_destroy): Define as wrapper around
44145         glthread_recursive_lock_destroy.
44146         (glthread_once): New macro/function.
44147         (gl_once): Define as wrapper around glthread_once.
44148         Update function declarations.
44149         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44150         glthread_rwlock_init. Return error code.
44151         (glthread_rwlock_rdlock_multithreaded): Renamed from
44152         glthread_rwlock_rdlock. Return error code.
44153         (glthread_rwlock_wrlock_multithreaded): Renamed from
44154         glthread_rwlock_wrlock. Return error code.
44155         (glthread_rwlock_unlock_multithreaded): Renamed from
44156         glthread_rwlock_unlock. Return error code.
44157         (glthread_rwlock_destroy_multithreaded): Renamed from
44158         glthread_rwlock_destroy. Return error code.
44159         (glthread_recursive_lock_init_multithreaded): Renamed from
44160         glthread_recursive_lock_init. Return error code.
44161         (glthread_recursive_lock_lock_multithreaded): Renamed from
44162         glthread_recursive_lock_lock. Return error code.
44163         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44164         glthread_recursive_lock_unlock. Return error code.
44165         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44166         glthread_recursive_lock_destroy. Return error code.
44167         (glthread_once_call): Make static.
44168         (glthread_once_multithreaded): Renamed from glthread_once.
44169         * lib/tls.h: Include <errno.h>.
44170         (glthread_tls_key_init): New macro/function.
44171         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44172         (glthread_tls_set): New macro/function.
44173         (gl_tls_set): Define as wrapper around glthread_tls_set.
44174         (glthread_tls_key_destroy): New macro/function.
44175         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44176         Update function declarations.
44177         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44178         glthread_tls_get.
44179         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44180
44181 2008-08-04  Eric Blake  <ebb9@byu.net>
44182
44183         gnumakefile: use space, not TAB, outside of targets
44184         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44185
44186 2008-08-02  Jim Meyering  <meyering@redhat.com>
44187
44188         getdate.y: avoid locale-dependent date parsing failure
44189         In Turkish locales, getdate would fail to recognize keywords
44190         containing a lowercase "i".  The solution is not to rely on
44191         locale-sensitive case-conversion.
44192         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44193         (lookup_word): Use c_toupper in place of toupper.
44194         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44195         Reported by Vefa Bicakci <bicave@superonline.com> in
44196         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44197         * modules/getdate (Depends-on): Add c-ctype.
44198
44199 2008-08-02  Bruno Haible  <bruno@clisp.org>
44200
44201         * gnulib-tool (func_import): When updating or creating a .gitignore
44202         file, prepend each added line with a slash, and ignore leading slashes
44203         from the existing lines.
44204         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44205
44206 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44207
44208         Portability fix for GNU make 3.79.1.
44209         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44210         versions do not understand.
44211
44212 2008-08-01  Bruno Haible  <bruno@clisp.org>
44213
44214         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44215         * tests/test-isnanf.h (zero): New variable.
44216         (main): Avoid literal -0.0f.
44217         * tests/test-isnand.h (zero): New variable.
44218         (main): Avoid literal -0.0.
44219         * tests/test-isnanl.h (zero): New variable.
44220         (main): Avoid literal -0.0L.
44221         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44222         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44223         -0.0, -0.0L.
44224         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44225         (test_signbitd): Avoid literal -0.0.
44226         (test_signbitl): Avoid literal -0.0L.
44227         * tests/test-ceilf1.c (zero): New variable.
44228         (main): Avoid literal -0.0f.
44229         * tests/test-ceill.c (zero): New variable.
44230         (main): Avoid literal -0.0L.
44231         * tests/test-floorf1.c (zero): New variable.
44232         (main): Avoid literal -0.0f.
44233         * tests/test-floorl.c (zero): New variable.
44234         (main): Avoid literal -0.0L.
44235         * tests/test-roundf1.c (zero): New variable.
44236         (main): Avoid literal -0.0f.
44237         * tests/test-round1.c (zero): New variable.
44238         (main): Avoid literal -0.0.
44239         * tests/test-roundl.c (zero): New variable.
44240         (main): Avoid literal -0.0L.
44241         * tests/test-truncf1.c (zero): New variable.
44242         (main): Avoid literal -0.0f.
44243         * tests/test-trunc1.c (zero): New variable.
44244         (main): Avoid literal -0.0.
44245         * tests/test-truncl.c (zero): New variable.
44246         (main): Avoid literal -0.0L.
44247         * tests/test-frexp.c (zero): New variable.
44248         (main): Avoid literal -0.0.
44249         * tests/test-frexpl.c (zero): New variable.
44250         (main): Avoid literal -0.0L.
44251         * tests/test-ldexpl.c (zero): New variable.
44252         (main): Avoid literal -0.0L.
44253         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44254         (zerod, zerol): New variables.
44255         (test_function): Avoid literals -0.0, -0.0L.
44256         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44257         (zerod, zerol): New variables.
44258         (test_function): Avoid literals -0.0, -0.0L.
44259         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44260         (zerod, zerol): New variables.
44261         (test_function): Avoid literals -0.0, -0.0L.
44262         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44263         (zerod, zerol): New variables.
44264         (test_function): Avoid literals -0.0, -0.0L.
44265         * tests/test-strtod.c (zero): New variable.
44266         (main): Avoid literal -0.0.
44267         Reported by Jonathan C. Patschke <jp@centtech.com>.
44268
44269 2008-07-31  Jim Meyering  <meyering@redhat.com>
44270
44271         sha256.h: correct definition of SHA224_DIGEST_SIZE
44272         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44273         Reported by Paulie Pena IV <paulie4@gmail.com>.
44274         Define as 224 / 8, rather than as a literal.
44275         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44276         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44277         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44278
44279 2008-07-31  Bruno Haible  <bruno@clisp.org>
44280
44281         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44282         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44283         Reported by Jonathan Patschke <jp@centtech.com>.
44284
44285 2008-07-31  Bruno Haible  <bruno@clisp.org>
44286
44287         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44288         Reported by Paolo Bonzini <bonzini@gnu.org>.
44289
44290 2008-07-30  Eric Blake  <ebb9@byu.net>
44291
44292         test-strtod: allow compilation without -lm
44293         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44294         Reported by Dennis Clarke <blastwave@gmail.com>.
44295
44296 2008-07-28  Jim Meyering  <meyering@redhat.com>
44297
44298         bootstrap: work also when there are no .po files in po/
44299         * build-aux/bootstrap (update_po_files): Complete the change
44300         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44301
44302 2008-07-27  Jim Meyering  <meyering@redhat.com>
44303
44304         * users.txt: Add zile.
44305
44306 2008-07-26  Ben Pfaff  <blp@gnu.org>
44307
44308         Add missing dependencies on new m4/exponent[fdl].m4 files.
44309         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44310         * modules/isnand-nolibm: Add m4/exponentd.m4.
44311         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44312         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44313         m4/isnan[fdl].m4, because the macros actually used moved.
44314         Reported by Jim Meyering.
44315
44316 2008-07-14  Ben Pfaff  <blp@gnu.org>
44317
44318         Add isinf module.
44319         * lib/isinf.c: New file.
44320         * lib/math.in.h: Define isinf macro if we have decided to replace
44321         it.
44322         * m4/isinf.m4: New file.
44323         * m4/math_h.m4: Initialize and substitute variables for isinf
44324         module.
44325         * modules/isinf: New file.
44326         * modules/isinf-tests: New file.
44327         * modules/math: Add substitutions for new module.
44328         * tests/test-isinf.c: New file.
44329         * doc/posix-functions/isinf.texi: Mention new module.
44330         * MODULES.html.sh: Mention new module.
44331
44332 2008-07-14  Ben Pfaff  <blp@gnu.org>
44333
44334         Factor out some macros for use by additional modules.
44335         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44336         exponentf.m4.
44337         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44338         exponentd.m4.
44339         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44340         file exponentl.m4.
44341         * m4/exponentf.m4: New file.
44342         * m4/exponentd.m4: New file.
44343         * m4/exponentl.m4: New file.
44344         * modules/isnanf: Use new file m4/exponentf.m4.
44345         * modules/isnand: Use new file m4/exponentd.m4.
44346         * modules/isnanl: Use new file m4/exponentl.m4.
44347
44348 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44349
44350         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44351         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44352         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44353         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44354
44355         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44356         readlink on platforms without PATH_MAX.
44357
44358 2008-07-21  Eric Blake  <ebb9@byu.net>
44359
44360         Warn, not fail, on stale version.
44361         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44362
44363         Don't allow installation with stale devel version number.
44364         * top/GNUmakefile (_is-install-target): New macro.
44365         (_curr-ver): Forbid installation with stale version number.
44366
44367 2008-07-20  Bruno Haible  <bruno@clisp.org>
44368
44369         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44370         TESTS_ENVIRONMENT.
44371         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44372
44373 2008-07-20  Bruno Haible  <bruno@clisp.org>
44374
44375         * lib/c-stack.h (c_stack_action): Add documentation.
44376         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44377
44378 2008-07-20  Bruno Haible  <bruno@clisp.org>
44379
44380         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44381         * modules/readlink (License): Likewise.
44382
44383 2008-07-17  Eric Blake  <ebb9@byu.net>
44384
44385         * modules/c-stack (Link): Fix typo.
44386
44387         Make c-stack use libsigsegv, when available.
44388         * modules/c-stack (Depends-on): Add libsigsegv.
44389         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44390         needed.
44391         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44392         (segv_handler, overflow_handler, c_stack_action)
44393         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44394         implementation when libsigsegv is available, but only when using
44395         the library is necessary.
44396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44397         comment, explaining why XSI check fails on Linux.
44398         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44399         * tests/test-c-stack2.sh: Tweak skip message.
44400         * NEWS: Document new link-time requirements.
44401
44402 2008-07-16  Eric Blake  <ebb9@byu.net>
44403
44404         c-stack: Expose false positives when not using libsigsegv.
44405         * modules/c-stack-tests (Files): Expand test.
44406         * tests/test-c-stack.c (main): Add means to conditionally trigger
44407         non-overflow SIGSEGV.
44408         * tests/test-c-stack2.sh: New file.
44409
44410 2008-07-14  Bruno Haible  <bruno@clisp.org>
44411
44412         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44413         Reported by Eric Blake.
44414
44415 2008-07-14  Sam Steingold  <sds@gnu.org>
44416             Bruno Haible  <bruno@clisp.org>
44417
44418         New module libsigsegv.
44419         * modules/libsigsegv: New file.
44420         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44421         modifications.
44422         * MODULES.html.sh (Signal handling): New section.
44423
44424 2008-07-14  Bruno Haible  <bruno@clisp.org>
44425
44426         * modules/unictype/ctype-* (Description): Add the word "function".
44427         Improves the resulting doc in MODULES.html.
44428
44429 2008-07-12  Ben Pfaff  <blp@gnu.org>
44430
44431         Add longlong module.
44432         * modules/longlong: New file.
44433
44434 2008-07-12  Bruno Haible  <bruno@clisp.org>
44435
44436         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44437         to empty.
44438
44439 2008-07-10  Ben Pfaff  <blp@gnu.org>
44440
44441         Add isnan module.
44442         * doc/posix-functions/isnan.texi: Mention new module.
44443         * lib/math.in.h: Define isnan macro if we have decided to replace
44444         it.
44445         * m4/isnan.m4: New file.
44446         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44447         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44448         also.
44449         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44450         redundancy.
44451         * m4/math_h.m4: Initialize and substitute variables for isnan
44452         module.
44453         * modules/isnan: New file.
44454         * modules/isnan-tests: New file.
44455         * modules/math: Add substitutions for new module.
44456         * tests/test-isnan.c: New file.
44457         * MODULES.html.sh: Mention new module.
44458
44459 2008-07-10  Ben Pfaff  <blp@gnu.org>
44460
44461         Add isnanf module.
44462         * lib/isnanf.m4: New file.
44463         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44464         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44465         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44466         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44467         * modules/isnanf: New file.
44468         * modules/isnanf-tests: New file.
44469         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44470         files.
44471         * tests/test-isnanf-nolibm.c: factored most of its contents into
44472         new file tests/test-isnanf.h.
44473         * tests/test-isnanf.h: New file.
44474         * tests/test-isnanf.c: New file.
44475         * MODULES.html.sh: Mention new module.
44476         * doc/glibc-functions/isnanf.texi: Mention new module.
44477
44478 2008-07-10  Ben Pfaff  <blp@gnu.org>
44479
44480         Add isnand module.
44481         * lib/isnand.h: New file.
44482         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44483         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44484         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44485         functionality also.
44486         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44487         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44488         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44489         * modules/isnand: New file.
44490         * modules/isnand-tests: New file.
44491         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44492         files.
44493         * tests/test-isnand-nolibm.c: factored most of its contents into
44494         new file tests/test-isnand.h.
44495         * tests/test-isnand.h: New file.
44496         * tests/test-isnand.c: New file.
44497         * MODULES.html.sh: Mention new module.
44498
44499 2008-07-10  Ben Pfaff  <blp@gnu.org>
44500
44501         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44502         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44503         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44504         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44505         * modules/isnanf-nolibm: Update references to renamed files.
44506         * modules/isnand-nolibm: Likewise.
44507         * modules/isnanf-nolibm-tests: Likewise.
44508         * modules/isnand-nolibm-tests: Likewise.
44509         * lib/frexp.c: Likewise.
44510         * lib/isfinite.c: Likewise.
44511         * lib/signbitd.c: Likewise.
44512         * lib/signbitf.c: Likewise.
44513         * lib/vasnprintf.c: Likewise.
44514         * tests/test-ceilf1.c: Likewise.
44515         * tests/test-ceilf2.c: Likewise.
44516         * tests/test-floorf1.c: Likewise.
44517         * tests/test-floorf2.c: Likewise.
44518         * tests/test-frexp.c: Likewise.
44519         * tests/test-round1.c: Likewise.
44520         * tests/test-round2.c: Likewise.
44521         * tests/test-roundf1.c: Likewise.
44522         * tests/test-strtod.c: Likewise.
44523         * tests/test-trunc1.c: Likewise.
44524         * tests/test-trunc2.c: Likewise.
44525         * tests/test-truncf1.c: Likewise.
44526         * tests/test-truncf2.c: Likewise.
44527         * NEWS: Mention the renamed header files.
44528
44529 2008-07-11  Jim Meyering  <meyering@redhat.com>
44530
44531         vc-list-files: make the last-resort awk code more portable
44532         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44533         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44534         does not support it.
44535
44536 2008-07-10  Eric Blake  <ebb9@byu.net>
44537
44538         Work with tar's bootstrap.
44539         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44540         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44541         an m4 comment.
44542
44543 2008-07-09  Jim Meyering  <meyering@redhat.com>
44544
44545         posix-shell.m4: fix typo that made this test malfunction
44546         * m4/posix-shell.m4: Remove capitalization in variable name.
44547
44548 2008-07-08  Bruno Haible  <bruno@clisp.org>
44549
44550         * m4/onceonly.m4: Update comments.
44551         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44552
44553 2008-07-04  Jim Meyering  <meyering@redhat.com>
44554
44555         * users.txt: Add vc-dwim.
44556         (bison, coreutils): Use the gitweb URL.
44557
44558 2008-07-03  Jim Meyering  <meyering@redhat.com>
44559
44560         * users.txt: Add libffcall.  From Sam Steingold.
44561
44562 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44563
44564         getdate.y: do not ignore TZ with relative day, month or year offset
44565         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44566         relative-date-handling, since otherwise, the latter would clobber the
44567         sole output (an updated Start value) of the tz-handling block.
44568         * tests/test-getdate.c: Tests for the fix
44569
44570 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44571
44572         Recognize 'foo_LIBRARIES += libgnu.a'.
44573         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44574         makefile snippet has already specified an installation location,
44575         also using '+='.
44576
44577 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44578
44579         getdate.y: factor out common actions
44580         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44581         Use them in place of open-coded actions.
44582
44583 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44584
44585         Add self-test for getdate module.
44586         * modules/getdate-tests: New file.
44587         * tests/test-getdate.c: New file.
44588
44589 2008-06-29  Bruno Haible  <bruno@clisp.org>
44590
44591         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44592         .gitignore.
44593         Reported by Sylvain Beucler <beuc@beuc.net>.
44594
44595 2008-06-29  Bruno Haible  <bruno@clisp.org>
44596
44597         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44598         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44599
44600 2008-06-29  Bruno Haible  <bruno@clisp.org>
44601
44602         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44603         EXTRA_DIST.
44604         Reported by Sylvain Beucler <beuc@beuc.net>.
44605
44606 2008-06-26  Jim Meyering  <meyering@redhat.com>
44607
44608         make several modules depend on the "open" module
44609         This provides slightly increased consistency when opening-for-write
44610         the name of a non-directory spelled with a trailing slash.
44611         * modules/chdir-safer: Likewise.
44612         * modules/chown: Likewise.
44613         * modules/clean-temp: Likewise.
44614         * modules/copy-file: Likewise.
44615         * modules/fchdir: Likewise.
44616         * modules/fcntl-safer: Likewise.
44617         * modules/pipe: Likewise.
44618         * modules/utime: Likewise.
44619         Prompted by Eric Blake and Bruno Haible.
44620
44621 2008-06-24  Andreas Schwab  <schwab@suse.de>
44622
44623         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44624         literals can be used as initializers for global variables.
44625
44626 2008-06-23  Eric Blake  <ebb9@byu.net>
44627
44628         Make gnulib-cache.m4 easier to diff.
44629         * gnulib-tool (func_import): Allow newlines when reading cached
44630         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44631
44632 2008-06-23  Bruno Haible  <bruno@clisp.org>
44633
44634         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44635         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44636         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44637         m4/signalblocking.m4.
44638         (gl_PREREQ_SIGACTION): Don't invoke it.
44639         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44640         gl_PREREQ_SIG_HANDLER_H.
44641         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44642         Don't check for sigaction here.
44643
44644 2008-06-23  Bruno Haible  <bruno@clisp.org>
44645
44646         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44647         (install_handlers): Don't set the SA_RESETHAND flag.
44648
44649 2008-06-23  Bruno Haible  <bruno@clisp.org>
44650
44651         * m4/sigaction.m4: Comment fixes.
44652         * lib/signal.in.h: Likewise.
44653
44654 2008-06-23  Eric Blake  <ebb9@byu.net>
44655
44656         Fix typo.
44657         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44658
44659         Avoid SA_ namespace.
44660         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44661         Reported by Ralf Wildenhues.
44662
44663         Avoid test failure due to SA_RESTORER.
44664         * tests/test-sigaction.c (SA_MASK): New macro.
44665         (main): Avoid failing due to extension flags being set.
44666         Reported by Jim Meyering.
44667
44668         Revert use of sig-handler.h in sigprocmask.c.
44669         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44670         it requires the existence of struct sigaction.
44671         * lib/sigprocmask.c (handler_t): Restore typedef.
44672         (rpl_signal, old_handlers): Use local type.
44673
44674 2008-06-22  Bruno Haible  <bruno@clisp.org>
44675
44676         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44677         conditionally.
44678         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44679
44680 2008-06-22  Bruno Haible  <bruno@clisp.org>
44681
44682         * doc/posix-functions/siginterrupt.texi: Move note.
44683
44684         * lib/signal.in.h (SA_RESTART): New macro.
44685         * lib/sigaction.c: Update comment.
44686
44687         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44688
44689         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44690         (gl_PREREQ_SIGPROCMASK): Invoke it.
44691         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44692
44693         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44694
44695         * lib/sigprocmask.c: Update a comment.
44696
44697 2008-06-21  Eric Blake  <ebb9@byu.net>
44698
44699         Use sigaction module rather than signal().
44700         * modules/c-stack (Depends-on): Add sigaction.
44701         * modules/fatal-signal (Depends-on): Likewise.
44702         * modules/nanosleep (Depends-on): Likewise.
44703         * modules/sigprocmask (Files): Add sig-handler.h.
44704         * modules/sigaction (Files): Likewise.
44705         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44706         Eggert.
44707         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44708         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44709         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44710         (init_fatal_signals): Likewise.
44711         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44712         (siginterrupt): Delete fallback.
44713         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44714         instead.
44715         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44716         siginterrupt.
44717
44718         New module sigaction, for mingw.
44719         * modules/sigaction: New module...
44720         * modules/sigaction-tests: ...and its test.
44721         * m4/sigaction.m4: New file.
44722         * lib/sigaction.c: Likewise.
44723         * tests/test-sigaction.c: Likewise.
44724         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44725         * modules/signal (Makefile.am): Likewise.
44726         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44727         needed.
44728         * doc/posix-headers/signal.texi (signal.h): Mention provided
44729         types.
44730         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44731         that sigaction is preferable.
44732         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44733         module.
44734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44735         sigaction.
44736
44737         Improve robustness of sigprocmask by overriding signal.
44738         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44739         is in use.
44740         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44741         (SIGKILL, SIGSTOP): Provide fallbacks.
44742         (rpl_signal): Implement.
44743         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44744         signal can be called inside handlers.
44745
44746         Fix nanosleep module on mingw.
44747         * modules/nanosleep (Depends-on): Add sys_select.
44748         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44749
44750         Fix licensing of sigprocmask.
44751         * modules/raise (License): Relicense as LGPL.
44752
44753 2008-06-21  Bruno Haible  <bruno@clisp.org>
44754
44755         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44756         result if it contains question marks.
44757         Reported by Michael Geng <linux@michaelgeng.de>.
44758
44759 2008-06-19  Bruno Haible  <bruno@clisp.org>
44760
44761         Fix CVS-ism.
44762         * doc/gnulib.texi: Include updated-stamp.texi.
44763         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44764         (updated-stamp.texi): New rule.
44765         (gnulib.info): Depend on it.
44766         * doc/.gitignore: Add updated-stamp.texi.
44767         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44768
44769 2008-06-19  Bruno Haible  <bruno@clisp.org>
44770
44771         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44772         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44773
44774 2008-06-19  Eric Blake  <ebb9@byu.net>
44775
44776         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44777         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44778         Reported by Stepan Kasal.
44779
44780 2008-06-18  Bruno Haible  <bruno@clisp.org>
44781
44782         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44783         Reported by Eric Blake.
44784
44785 2008-06-18  Eric Blake  <ebb9@byu.net>
44786
44787         Work around cygwin 1.5.25 strsignal bug.
44788         * tests/test-strsignal.c: Allow for const char *.
44789         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44790
44791 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44792
44793         * users.txt: Update URL to article and add author/date
44794         information.
44795
44796 2008-06-17  Bruno Haible  <bruno@clisp.org>
44797
44798         New macro gl_DISABLE_THREADS.
44799         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44800         if the user did not pass --enable-threads or --disable-threads option.
44801         (gl_DISABLE_THREADS): New macro.
44802         Reported by Eric Blake <ebb9@byu.net>.
44803
44804 2008-06-17  Bruno Haible  <bruno@clisp.org>
44805
44806         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44807         when the macro ignores it.
44808         Based on a patch by Eric Blake <ebb9@byu.net>.
44809
44810 2008-06-17  Bruno Haible  <bruno@clisp.org>
44811
44812         * modules/tls (License): Change to LGPLv2+.
44813         Reported by Eric Blake.
44814
44815 2008-06-17  Eric Blake  <ebb9@byu.net>
44816
44817         Simplify c-stack prerequisites.
44818         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44819         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44820         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44821         check.
44822         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44823         <sys/resource.h>.
44824
44825         Move c-stack test into testsuite.
44826         * modules/c-stack-tests: New file.
44827         * lib/c-stack.c [DEBUG]: Move test program...
44828         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44829         fail test if sigaltstack is lacking.
44830         * tests/test-c-stack.sh: New driver file.
44831
44832 2008-06-16  Eric Blake  <ebb9@byu.net>
44833
44834         Use raise module consistently.
44835         * modules/fatal-signal (Depends-on): Add raise.
44836         * modules/sigprocmask (Depends-on): Likewise.
44837         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44838         * lib/sigprocmask.c (sigprocmask): Likewise.
44839         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44840         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44841
44842         Fix compliance bug in sigpending.
44843         * lib/sigprocmask.c (sigpending): Return pending array via
44844         parameter, not return value.
44845
44846 2008-06-14  Eric Blake  <ebb9@byu.net>
44847
44848         Improve obstack-printf test code.
44849         * tests/test-obstack-printf.c (test_function): Fix comment, and
44850         simplify usage of obstack_* in macros.  Add a test for coverage.
44851         Reported by Bruno Haible.
44852
44853 2008-06-14  Bruno Haible  <bruno@clisp.org>
44854
44855         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44856         array size as a constant, not as a const variable.
44857         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44858         AC_USE_SYSTEM_EXTENSIONS.
44859         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44860         Test whether the obstack_printf function actually exists.
44861         * modules/obstack-printf (Depends-on): Add extensions.
44862         (Include): Remove obstack.h.
44863         * modules/obstack-printf-posix (Depends-on): Add extensions.
44864         (Include): Remove obstack.h.
44865
44866 2008-06-13  Eric Blake  <ebb9@byu.net>
44867
44868         Add obstack-printf and obstack-printf-posix modules.
44869         * modules/obstack-printf: New file.
44870         * modules/obstack-printf-posix: Likewise.
44871         * MODULES.html.sh (Misc): Mention them.
44872         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44873         Likewise.
44874         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44875         Likewise.
44876         * modules/stdio (Makefile.am): Accomodate new modules.
44877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44878         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44879         Declare.
44880         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44881         functions.
44882         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44883         (gl_REPLACE_OBSTACK_PRINTF): New macros
44884         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44885         * tests/test-obstack-printf.c: New file.
44886         * modules/obstack-printf-tests: Likewise.
44887         * modules/obstack-printf-posix-tests: Likewise.
44888
44889 2008-06-11  Bruno Haible  <bruno@clisp.org>
44890
44891         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44892         * lib/open.c: Include errno.h.
44893         (open): Fail when attempting to write to a file that has a trailing
44894         slash.
44895         * tests/test-open.c (main): Test against trailing slash bug.
44896         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44897
44898 2008-06-10  Bruno Haible  <bruno@clisp.org>
44899
44900         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44901         for $? to work inside the trap command, with various /bin/sh-s.
44902         * tests/test-vc-list-files-cvs.sh: Likewise.
44903
44904 2008-06-10  Bruno Haible  <bruno@clisp.org>
44905
44906         * lib/acl-internal.h: Don't include gettext.h here.
44907         * lib/set-mode-acl.c: Include gettext.h here.
44908         * lib/copy-acl.c: Likewise.
44909
44910 2008-06-10  Bruno Haible  <bruno@clisp.org>
44911
44912         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44913         * lib/wait-process.c (wait_subprocess): Likewise.
44914         * lib/execute.h (execute): Add termsigp argument.
44915         * lib/execute.c (execute): Likewise.
44916         * lib/csharpcomp.c (compile_csharp_using_pnet,
44917         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44918         * lib/csharpexec.c (execute_csharp_using_pnet,
44919         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44920         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44921         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44922         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44923         is_jikes_present): Update.
44924         * lib/javaexec.c (execute_java_class): Update.
44925         * lib/javaversion.c (execute_and_read_line): Update.
44926         * NEWS: Document the changes.
44927         Reported by Eric Blake.
44928
44929 2008-06-10  Eric Blake  <ebb9@byu.net>
44930
44931         Add missing include.
44932         * tests/test-strstr.c (includes): Add <signal.h>.
44933         * tests/test-strcasestr.c (includes): Likewise.
44934         * tests/test-memmem.c (includes): Likewise.
44935
44936 2008-06-10  Bruno Haible  <bruno@clisp.org>
44937
44938         * lib/wait-process.c (wait_subprocess): Add an assertion.
44939
44940 2008-06-10  Bruno Haible  <bruno@clisp.org>
44941
44942         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44943
44944 2008-06-10  Bruno Haible  <bruno@clisp.org>
44945
44946         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44947         using alarm().
44948         * tests/test-strcasestr.c (main): Likewise.
44949         * tests/test-strstr.c (main): Likewise.
44950
44951 2008-06-09  Bruno Haible  <bruno@clisp.org>
44952
44953         Work around the Solaris 10 ACE ACLs ABI change.
44954         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44955         declare if ACL_NO_TRIVIAL is present.
44956         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44957         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44958         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44959         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44960         define if ACL_NO_TRIVIAL is present.
44961         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44962         and use the current ABI.
44963         (file_has_acl): Use same #if condition as elsewhere.
44964         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44965         in use, and use the current ABI.
44966         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44967         Reported by Jim Meyering.
44968
44969 2008-06-09  Eric Blake  <ebb9@byu.net>
44970
44971         Work around environments that (stupidly) ignore SIGALRM.
44972         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44973         before using alarm().
44974         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44975         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44976         Reported by Ian Beckwith <ianb@erislabs.net>.
44977
44978         Produce autobuild blurb earlier in log.
44979         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44980
44981 2008-06-09  Jim Meyering  <meyering@redhat.com>
44982         and OndÅ™ej Vašík  <ovasik@redhat.com>
44983
44984         utimens.c: correct kernel bug work-around
44985         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44986         failure, not success, and the kernel bug we're trying to work
44987         around affects not just the utimensat call, but also the fallback
44988         futimens call.
44989         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44990         not success.
44991         [HAVE_FUTIMENS]: Use the same work-around, here.
44992
44993 2008-06-09  Jim Meyering  <meyering@redhat.com>
44994
44995         add more guards around definition of ACE_-related code
44996         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44997         ALLOW and ACE_OWNER are also defined.
44998
44999 2008-06-08  Bruno Haible  <bruno@clisp.org>
45000
45001         * lib/acl-internal.h: Add me as co-author.
45002         * lib/file-has-acl.c: Likewise.
45003         * lib/set-mode-acl.c: Likewise.
45004         * lib/copy-acl.c: Likewise.
45005
45006 2008-06-08  Bruno Haible  <bruno@clisp.org>
45007
45008         Add support for AIX ACLs.
45009         * lib/acl-internal.h (acl_nontrivial): New declaration.
45010         * lib/file-has-acl.c (acl_nontrivial): New function.
45011         (file_has_acl): Add implementation using AIX 4 ACL API.
45012         * lib/set-mode-acl.c (qset_acl): Likewise.
45013         * lib/copy-acl.c (qcopy_acl): Likewise.
45014
45015 2008-06-08  Bruno Haible  <bruno@clisp.org>
45016
45017         Add support for HP-UX ACLs.
45018         * lib/acl-internal.h (acl_nontrivial): New declaration.
45019         * lib/file-has-acl.c (acl_nontrivial): New function.
45020         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45021         * lib/set-mode-acl.c (qset_acl): Likewise.
45022         * lib/copy-acl.c (qcopy_acl): Likewise.
45023
45024 2008-06-08  Bruno Haible  <bruno@clisp.org>
45025
45026         Add support for Cygwin ACLs.
45027         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45028         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45029         the chmod_or_fchmod call.
45030         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45031
45032 2008-06-08  Bruno Haible  <bruno@clisp.org>
45033
45034         Fix bug with setuid modes in Solaris 10+ code.
45035         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45036         succeeded, when the mode contains some special bits.
45037
45038 2008-06-08  Bruno Haible  <bruno@clisp.org>
45039
45040         Add support for Solaris 7..10 ACLs.
45041         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45042         declarations.
45043         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45044         functions.
45045         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45046         * lib/set-mode-acl.c (qset_acl): Likewise.
45047         * lib/copy-acl.c (qcopy_acl): Likewise.
45048
45049 2008-06-08  Bruno Haible  <bruno@clisp.org>
45050
45051         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45052         declaration.
45053         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45054         (acl_access_nontrivial): Remove MacOS X case.
45055         (file_has_acl): Use acl_extended_nontrivial.
45056         * lib/copy-acl.c (qcopy_acl): Likewise.
45057
45058 2008-06-08  Bruno Haible  <bruno@clisp.org>
45059
45060         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45061
45062 2008-06-08  Jim Meyering  <meyering@redhat.com>
45063
45064         * modules/acl (Maintainer): Add Bruno Haible.
45065
45066 2008-06-07  Bruno Haible  <bruno@clisp.org>
45067
45068         Improve support for Tru64 ACLs.
45069         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45070         ACL on OSF/1.
45071
45072 2008-06-07  Bruno Haible  <bruno@clisp.org>
45073
45074         Add support for MacOS X ACLs.
45075         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45076         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45077         * lib/set-mode-acl.c (qset_acl): Likewise.
45078         * lib/copy-acl.c (qcopy_acl): Likewise.
45079
45080 2008-06-07  Bruno Haible  <bruno@clisp.org>
45081
45082         Fix memory leak introduced on 2008-05-22.
45083         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45084         use.
45085
45086 2008-06-07  Bruno Haible  <bruno@clisp.org>
45087
45088         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45089         to construct an empty ACL.
45090
45091 2008-06-07  Bruno Haible  <bruno@clisp.org>
45092
45093         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45094         precisely.
45095         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45096
45097 2008-06-07  Bruno Haible  <bruno@clisp.org>
45098
45099         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45100         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45101
45102 2008-06-07  Bruno Haible  <bruno@clisp.org>
45103
45104         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45105         regardless of POSIX.
45106         * doc/posix-functions/_longjmp.texi: Likewise.
45107         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45108         SystemV platform in this case.
45109
45110 2008-06-06  Eric Blake  <ebb9@byu.net>
45111
45112         Document abort() bugs.
45113         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45114
45115         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45116         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45117         sigsetjmp.
45118         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45119         siglongjmp, but only as a macro.
45120         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45121         is obsolete.
45122         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45123
45124         Tweak documentation to cover cygwin argz bugs.
45125         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45126         argz bug fix; no code change needed since no cygwin releases
45127         occurred between the last fix and the bug being tested.
45128         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45129         module and recently fixed cygwin bugs.
45130         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45131         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45132         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45133         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45134         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45135         Likewise.
45136         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45137         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45138         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45139         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45140         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45141         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45142         Likewise.
45143
45144         Avoid gcc warning on cygwin.
45145         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45146         !ACL_NO_TRIVIAL]: Avoid unused variable.
45147
45148 2008-06-05  Eric Blake  <ebb9@byu.net>
45149
45150         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45151         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45152         git-version-gen fails to come up with a version.
45153         Reported by Simon Josefsson.
45154
45155 2008-06-05  Jim Meyering  <meyering@redhat.com>
45156             Paul Eggert  <eggert@cs.ucla.edu>
45157
45158         utimens.c: work around a probable Linux kernel bug
45159         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45160         appears to be a kernel bug that causes utimensat to return 280
45161         instead of 0, indicating success.
45162
45163 2008-06-04  Bruno Haible  <bruno@clisp.org>
45164
45165         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45166         2008-06-01 commit.
45167
45168 2008-06-04  Bruno Haible  <bruno@clisp.org>
45169
45170         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45171         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45172         (file_has_acl): Use it. Save errno afterwards.
45173         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45174
45175 2008-06-03  Bruno Haible  <bruno@clisp.org>
45176
45177         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45178         draft code. Simplify #ifs.
45179         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45180         Put Solaris code after POSIX-draft code. Fix comments regarding
45181         Solaris 10, HP-UX. Mention Cygwin.
45182         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45183
45184 2008-06-03  Eric Blake  <ebb9@byu.net>
45185
45186         Provide fallback for older kernels.
45187         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45188         Provide runtime fallback if kernel lacks support.
45189         Reported by Mike Frysinger.
45190
45191 2008-06-02  Bruno Haible  <bruno@clisp.org>
45192
45193         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45194         it exists.
45195
45196 2008-06-02  Bruno Haible  <bruno@clisp.org>
45197
45198         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45199         * lib/copy-acl.c (qcopy_acl): Update comment.
45200
45201 2008-06-02  Bruno Haible  <bruno@clisp.org>
45202
45203         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45204         like ACL APIs.
45205
45206 2008-06-02  Bruno Haible  <bruno@clisp.org>
45207
45208         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45209         * tests/test-set-mode-acl.sh: Likewise.
45210         * tests/test-copy-acl.sh: Likewise.
45211         * tests/test-copy-file.sh: Likewise.
45212
45213 2008-06-02  Bruno Haible  <bruno@clisp.org>
45214
45215         * tests/test-file-has-acl.sh: Remove unused code.
45216
45217 2008-06-01  Bruno Haible  <bruno@clisp.org>
45218
45219         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45220         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45221         messages.
45222         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45223
45224 2008-06-01  Bruno Haible  <bruno@clisp.org>
45225
45226         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45227         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45228         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45229         APIs.
45230         * modules/acl-tests (configure.ac): Remove tests now contained in
45231         m4/acl.m4.
45232
45233 2008-06-02  Jim Meyering  <meyering@redhat.com>
45234
45235         announce-gen: use a better key-server host name
45236         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45237         it may be more consistently reliable.  Suggested by Werner Koch
45238         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45239
45240 2008-06-01  Bruno Haible  <bruno@clisp.org>
45241
45242         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45243         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45244
45245 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45246
45247         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45248
45249 2008-06-01  Bruno Haible  <bruno@clisp.org>
45250
45251         New ACL tests.
45252         * tests/test-file-has-acl.sh: New file.
45253         * tests/test-file-has-acl.c: New file.
45254         * tests/test-set-mode-acl.sh: New file.
45255         * tests/test-set-mode-acl.c: New file.
45256         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45257         * tests/test-copy-acl.c: New file.
45258         * modules/acl-tests: New file, based on modules/copy-file-tests.
45259         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45260         (Depends-on): Add acl-tests.
45261         (configure.ac): Remove checks.
45262         (Makefile.am): Don't create test-sameacls program here any more.
45263
45264 2008-06-01  Bruno Haible  <bruno@clisp.org>
45265
45266         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45267         * tests/test-sameacls.c: Include progname.h.
45268         (main): Invoke set_program_name. Portability fixes for MacOS X,
45269         Solaris, HP-UX.
45270
45271 2008-06-01  Bruno Haible  <bruno@clisp.org>
45272
45273         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45274         function.
45275         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45276
45277 2008-06-01  Bruno Haible  <bruno@clisp.org>
45278
45279         * modules/rpmatch (Depends-on): Add strdup.
45280
45281 2008-06-01  Bruno Haible  <bruno@clisp.org>
45282
45283         * lib/pipe.c: Include unistd-safer.h.
45284         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45285         * modules/pipe (Depends-on): Add unistd-safer.
45286
45287 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45288
45289         * modules/autobuild (configure.ac): Call AB_INIT.
45290
45291 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45292
45293         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45294         Suggested by Bruno Haible <bruno@clisp.org>.
45295
45296 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45297
45298         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45299         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45300         <bruno@clisp.org>.
45301
45302 2008-05-29  Eric Blake  <ebb9@byu.net>
45303
45304         Prefer new POSIX 200x interfaces over futimesat.
45305         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45306         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45307         when available.
45308         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45309
45310 2008-05-28  Bruno Haible  <bruno@clisp.org>
45311
45312         * modules/stpcpy (License): Change to LGPLv2+.
45313         Requested by David Lutterkort <dlutter@redhat.com>.
45314
45315 2008-05-27  Bruno Haible  <bruno@clisp.org>
45316
45317         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45318         current mingw.
45319         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45320
45321 2008-05-27  Bruno Haible  <bruno@clisp.org>
45322
45323         * modules/iconv_open (Link): New section, from module 'iconv'.
45324         * modules/striconv (Link): Likewise.
45325         * modules/striconveh (Link): Likewise.
45326         * modules/xstriconv (Link): Likewise.
45327         * modules/unicodeio (Link): Likewise.
45328         * modules/propername (Link): Likewise.
45329         Reported by Jim Meyering.
45330
45331 2008-05-26  Jim Meyering  <meyering@redhat.com>
45332
45333         sha256: do not artificially restrict buffer length to be < 2^32
45334         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45335         uint32_t to size_t.
45336         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45337         to match.
45338
45339         avoid unaligned access errors, e.g., on sparc
45340         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45341         direct access through a possibly-unaligned uint64* pointer.
45342         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45343         direct access through a possibly-unaligned uint32* pointer.
45344         Prompted by this patch from Tom "spot" Callaway:
45345         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45346
45347         sha512.c: fix typo in comment
45348         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45349
45350 2008-05-25  Bruno Haible  <bruno@clisp.org>
45351
45352         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45353         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45354         (Makefile.am): Update lib_SOURCES.
45355
45356 2008-05-25  Bruno Haible  <bruno@clisp.org>
45357
45358         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45359
45360 2008-05-25  Jim Meyering  <meyering@redhat.com>
45361
45362         useless-if-before-free: freed expr may have white-space differences
45363         * build-aux/useless-if-before-free: Recognize cases in which the
45364         freed expression differs from the tested one in embedded white
45365         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45366         $1 was used, so we can't make any regexp shy.  Improved tests now
45367         detect this.
45368
45369         useless-if-before-free: accept white space in the expression.
45370         * build-aux/useless-if-before-free: For now, any white space
45371         in the expression must be identical in the free argument.
45372
45373         useless-if-before-free: efficiency tweak
45374         * build-aux/useless-if-before-free: Make the expression-matching
45375         regexp "shy".
45376         Make the *outer* regexp shy, not the expr-matching one.
45377
45378         update code-in-comment to accept cast of free arg
45379         * build-aux/useless-if-before-free: Update regexp.
45380
45381 2008-05-25  Bruno Haible  <bruno@clisp.org>
45382
45383         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45384         * modules/copy-file-tests (Files, Makefile.am): Update.
45385         * tests/test-copy-file.c (func_test_copy): Update.
45386
45387 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45388
45389         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45390
45391 2008-05-23  Bruno Haible  <bruno@clisp.org>
45392
45393         Improve support for ACLs on OSF/1.
45394         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45395         Remove fallback for unknown flavors of ACLs.
45396
45397 2008-05-22  Bruno Haible  <bruno@clisp.org>
45398
45399         Add support for ACLs on OSF/1.
45400         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45401         replacements.
45402         (acl_free_text): New macro fallback.
45403         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45404         acl_free.
45405         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45406         acl_free_text function. Require AC_C_INLINE.
45407
45408 2008-05-22  Bruno Haible  <bruno@clisp.org>
45409
45410         Make copy_acl work on MacOS X 10.5.
45411         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45412         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45413         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45414         If MODE_INSIDE_ACL, don't assume that every system has the same text
45415         representation for ACLs as FreeBSD.
45416         * lib/copy-acl.c (copy_acl): Add support for platforms with
45417         !MODE_INSIDE_ACL.
45418         * lib/file-has-acl.c (file_has_acl): Likewise.
45419         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45420         FreeBSD, MacOS X, or IRIX, respectively.
45421
45422 2008-05-22  Bruno Haible  <bruno@clisp.org>
45423
45424         * lib/acl.h: Don't include <sys/acl.h>.
45425         (GETACLCNT): Move fallback to lib/acl-internal.h.
45426         * lib/acl-internal.h: Include <sys/acl.h> here.
45427         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45428
45429 2008-05-22  Bruno Haible  <bruno@clisp.org>
45430
45431         Split off copy_acl function to separate file.
45432         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45433         * lib/acl.c (copy_acl): Moved function to separate file.
45434         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45435         * modules/acl (Files): Add lib/copy-acl.c.
45436         (Makefiles.am): Augment lib_SOURCES.
45437
45438 2008-05-22  Bruno Haible  <bruno@clisp.org>
45439
45440         * modules/copy-file-tests: New file.
45441         * tests/test-copy-file.sh: New file.
45442         * tests/test-copy-file.c: New file.
45443         * tests/test-copy-file-sameacls.c: New file.
45444
45445 2008-05-22  Eric Blake  <ebb9@byu.net>
45446
45447         Avoid gcc warning.
45448         * tests/test-memcmp.c (main): Pass NULL indirectly.
45449
45450 2008-05-21  Bruno Haible  <bruno@clisp.org>
45451
45452         Add reference doc about ACLs.
45453         * doc/acl-resources.txt: New file.
45454         * doc/acl-cygwin.txt: New file.
45455
45456 2008-05-21  Bruno Haible  <bruno@clisp.org>
45457
45458         Avoid one more warning from gcc.
45459         * lib/vasnprintf.c (IF_LINT): Update comments.
45460         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45461
45462 2008-05-21  Jim Meyering  <meyering@redhat.com>
45463
45464         avoid a warning from gcc
45465         * lib/vasnprintf.c (IF_LINT): Define.
45466         (scale10_round_decimal_long_double):
45467         Use it to avoid a "may be used uninitialized" warning.
45468         (scale10_round_decimal_double): Likewise.
45469
45470 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45471
45472         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45473         declared.
45474
45475 2008-05-20  Bruno Haible  <bruno@clisp.org>
45476
45477         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45478         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45479
45480 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45481
45482         * modules/memcmp-tests: New file.
45483         * tests/test-memcmp.c: New file.
45484
45485 2008-05-19  Bruno Haible  <bruno@clisp.org>
45486
45487         * modules/propername (Notice, configure.ac): Put quoted "..." into
45488         --keyword option.
45489         * lib/propername.h: Update comments accordingly.
45490         Reported by Eric Blake.
45491
45492 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45493
45494         * modules/getpass-gnu (Depends-on): Add fseeko.
45495
45496 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45497
45498         * modules/base64-tests: New file.
45499
45500 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45501
45502         * lib/base64.c (base64_decode_ctx): If a decode context structure
45503         was passed in use it to ignore newlines.  If a context structure
45504         was _not_ passed in, continue to treat newlines as garbage (this
45505         is the historical behavior).  Formerly base64_decode.
45506         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45507         takes a decode context structure.
45508         * lib/base64.h (base64_decode): Macro for four-argument calls.
45509         (base64_decode_alloc): Likewise.
45510         * lib/base64.c (base64_decode_ctx): If a decode context structure
45511         was passed in use it to ignore newlines.  If a context structure
45512         was _not_ passed in, continue to treat newlines as garbage (this
45513         is the historical behavior).  Formerly base64_decode.
45514         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45515         takes a decode context structure.
45516         * lib/base64.h (base64_decode): Macro for four-argument calls.
45517         (base64_decode_alloc): Likewise.
45518
45519 2008-05-19  Jim Meyering  <meyering@redhat.com>
45520
45521         avoid a warning from gcc
45522         * lib/trim.c (IF_LINT): Define.
45523         (trim2): Use it to avoid a "may be used uninitialized" warning.
45524
45525         Fix doc typo.
45526         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45527
45528 2008-05-19  Bruno Haible  <bruno@clisp.org>
45529
45530         * doc/glibc-functions/getpass.texi: Document limits of other
45531         implementations.
45532
45533 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45534             Bruno Haible <bruno@clisp.org>
45535
45536         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45537
45538 2008-05-18  Bruno Haible  <bruno@clisp.org>
45539
45540         * modules/propername: New file, from GNU gettext.
45541         * lib/propername.h: New file, from GNU gettext.
45542         * lib/propername.c: New file, from GNU gettext.
45543         * MODULES.html.sh (Internationalization functions): Add propername.
45544
45545 2008-05-16  Jim Meyering  <meyering@redhat.com>
45546             Bruno Haible  <bruno@clisp.org>
45547
45548         Avoid some warnings from "gcc -Wshadow".
45549         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45550
45551 2008-05-15  Eric Blake  <ebb9@byu.net>
45552
45553         Extend previous patch to cygwin 1.7.0.
45554         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45555         fast implementation in cygwin >= 1.7.0.
45556         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45558
45559 2008-05-15  Bruno Haible  <bruno@clisp.org>
45560
45561         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45562         implementation in glibc >= 2.9.
45563         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45564         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45565
45566 2008-05-15  Bruno Haible  <bruno@clisp.org>
45567
45568         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45569         (Unicode string functions): Add unilbrk/*.
45570         Reported by Karl Berry.
45571
45572 2008-05-15  Eric Blake  <ebb9@byu.net>
45573
45574         Fix violation of <stdbool.h> replacement in regex.
45575         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45576         * lib/regexec.c (re_search_internal): Likewise.
45577         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45578
45579 2008-05-15  Jim Meyering  <meyering@redhat.com>
45580
45581         avoid distracting test output when git or cvs is not found
45582         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45583         * tests/test-vc-list-files-git.sh: Likewise.
45584
45585 2008-05-15  Eric Blake  <ebb9@byu.net>
45586
45587         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45588         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45589         glibc version.
45590         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45591         * doc/posix-functions/strstr.texi (strstr): Likewise.
45592         * lib/str-two-way.h (MAX): Sychronize with glibc.
45593
45594 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45595
45596         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45597         opr.ctx_type.
45598         (calc_first): Initialize constraint field.
45599         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45600         Fix grammar.
45601         (duplicate_node): Merge constraint field for all node types.
45602         (calc_eclosure_iter): Look at constraint field for all node types.
45603         * lib/regex_internal.c (create_cd_newstate): Don't look at
45604         opr.ctx_type.
45605
45606 2008-05-14  Bruno Haible  <bruno@clisp.org>
45607
45608         Help GCC to do better code generation.
45609         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45610         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45611         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45612         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45613         Declare with attribute 'malloc' if supported.
45614
45615 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45616
45617         use "echo STR|wc -c" rather than unportable "expr length STR"
45618         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45619         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45620
45621 2008-05-14  Jim Meyering  <meyering@redhat.com>
45622
45623         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45624         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45625         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45626         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45627         via Collin Lasse.
45628
45629 2008-05-14  Eric Blake  <ebb9@byu.net>
45630
45631         Avoid quadratic growth in gl_LIBSOURCES.
45632         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45633         Suggested by Bruno Haible.
45634
45635         Test xmemdup0.
45636         * modules/xmemdup0-tests: New file.
45637         * tests/test-xmemdup0.c: Likewise.
45638
45639 2008-05-13  Eric Blake  <ebb9@byu.net>
45640
45641         Split xmemdup0 into its own module.
45642         * modules/xmemdup0: New file.
45643         * lib/xmemdup0.h: Likewise.
45644         * lib/xmemdup0.c: Likewise.
45645         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45646         * lib/xalloc.h (xmemdup0): Remove.
45647         * lib/xmalloc.c (xmemdup0): Likewise.
45648
45649 2008-05-13  Eric Blake  <ebb9@byu.net>
45650             Bruno Haible  <bruno@clisp.org>
45651
45652         Reduce number of forks required during autoconf.
45653         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45654         and gl_LIBSOURCES_DIR.
45655         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45656         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45657         m4_syscmd per file.
45658         <m4_foreach_w>: Move...
45659         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45660
45661 2008-05-13  Eric Blake  <ebb9@byu.net>
45662
45663         * gnulib-tool: Fix various comment typos.
45664
45665 2008-05-12  Bruno Haible  <bruno@clisp.org>
45666
45667         Tailor the linebreaking algorithm.
45668         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45669
45670 2008-05-12  Bruno Haible  <bruno@clisp.org>
45671
45672         Update to Unicode 5.0.0.
45673         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45674         LBP_JV, LBP_JT. Redistribute values.
45675         (unilbrk_table): Change size.
45676         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45677         Unicode TR#14 rev. 22.
45678         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45679         LBP_JV, LBP_JT. Redistribute values.
45680         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45681         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45682         Update.
45683         * lib/unilbrk/lbrkprop1.h: Regenerated.
45684         * lib/unilbrk/lbrkprop2.h: Regenerated.
45685         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45686         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45687         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45688         Likewise.
45689         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45690         Likewise.
45691         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45692         result.
45693         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45694         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45695         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45696         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45697         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45698         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45699
45700 2008-05-11  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45703
45704 2008-05-11  Bruno Haible  <bruno@clisp.org>
45705
45706         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45707         * modules/unilbrk/gen-lbrk: New file.
45708
45709 2008-05-11  Bruno Haible  <bruno@clisp.org>
45710
45711         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45712         * m4/sha512.m4 (gl_SHA512): Likewise.
45713
45714 2008-05-11  Jim Meyering  <meyering@redhat.com>
45715
45716         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45717         * modules/crypto/sha256: New file.
45718         * modules/crypto/sha512: Likewise.
45719         * lib/sha256.c: Likewise.
45720         * lib/sha256.h: Likewise.
45721         * lib/sha512.c: Likewise.
45722         * lib/sha512.h: Likewise.
45723         * lib/u64.h: Likewise.
45724         * m4/sha256.m4: Likewise.
45725         * m4/sha512.m4: Likewise.
45726         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45727
45728 2008-05-10  Bruno Haible  <bruno@clisp.org>
45729
45730         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45731         (Input/Output <stdio.h>): Add xprintf.
45732         (Signal handling <signal.h>): Add strsignal.
45733         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45734         (Core language properties): Add func.
45735         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45736         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45737         strings.
45738         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45739         (Input/output): New section.
45740         (File system functions): Add openat-die, stat-macros.
45741         (Networking functions): Add sockets.
45742         (Unicode string functions): Add unictype/*.
45743         (Support for building libraries and executables): Add gperf.
45744         (Support for building documentation): Add agpl-3.0.
45745         (Misc): Add nocrash.
45746
45747 2008-05-10  Bruno Haible  <bruno@clisp.org>
45748
45749         * modules/unictype/gen-ctype: New file.
45750
45751 2008-05-10  Jim Meyering  <meyering@redhat.com>
45752
45753         Make chdir-safer.c more efficient on a system with no symlinks.
45754         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45755         also if ELOOP is zero.  Suggested by Bruno Haible.
45756
45757         Make chdir-safer.c slightly safer.
45758         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45759         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45760
45761         Avoid compile failure on systems without ELOOP (like mingw).
45762         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45763         Reported by Bruno Haible.
45764
45765 2008-05-10  Bruno Haible  <bruno@clisp.org>
45766
45767         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45768         (is_utf8_encoding): Use a case-insensitive comparison.
45769         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45770         streq.
45771
45772 2008-05-10  Bruno Haible  <bruno@clisp.org>
45773
45774         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45775         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45776         * lib/unilbrk/ulc-common.h (iconv_string_length,
45777         iconv_string_keeping_offsets): Remove declarations.
45778         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45779         Don't include <iconv.h>, streq.h, xsize.h.
45780         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45781         conversion.
45782         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45783         <iconv.h>, streq.h, xsize.h.
45784         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45785         conversion.
45786         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45787         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45788         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45789         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45790
45791 2008-05-10  Bruno Haible  <bruno@clisp.org>
45792
45793         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45794         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45795
45796         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45797         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45798
45799         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45800         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45801
45802         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45803         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45804
45805         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45806         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45807
45808         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45809         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45810
45811         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45812         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45813
45814         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45815         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45816
45817 2008-05-10  Bruno Haible  <bruno@clisp.org>
45818
45819         Split up 'linebreak' module.
45820         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45821         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45822         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45823         modifications.
45824         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45825         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45826         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45827         lib/linebreak.c.
45828         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45829         lib/linebreak.c.
45830         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45831         lib/linebreak.c.
45832         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45833         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45834         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45835         lib/linebreak.c.
45836         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45837         lib/linebreak.c.
45838         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45839         lib/linebreak.c.
45840         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45841         lib/linebreak.c.
45842         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45843         lib/linebreak.c.
45844         * modules/unilbrk/base: New file.
45845         * modules/unilbrk/tables: New file.
45846         * modules/unilbrk/u8-possible-linebreaks: New file.
45847         * modules/unilbrk/u16-possible-linebreaks: New file.
45848         * modules/unilbrk/u32-possible-linebreaks: New file.
45849         * modules/unilbrk/ulc-common: New file.
45850         * modules/unilbrk/ulc-possible-linebreaks: New file.
45851         * modules/unilbrk/u8-width-linebreaks: New file.
45852         * modules/unilbrk/u16-width-linebreaks: New file.
45853         * modules/unilbrk/u32-width-linebreaks: New file.
45854         * modules/unilbrk/ulc-width-linebreaks: New file.
45855         * lib/linebreak.h: Remove file.
45856         * lib/linebreak.c: Remove file.
45857         * m4/linebreak.m4: Remove file.
45858         * modules/linebreak: Remove file.
45859         * NEWS: Mention the changes.
45860
45861 2008-05-09  Eric Blake  <ebb9@byu.net>
45862
45863         Add xmemdup0.
45864         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45865         implementation.
45866         * lib/xmalloc.c (xmemdup0): New C implementation.
45867
45868 2008-05-08  Bruno Haible  <bruno@clisp.org>
45869
45870         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45871
45872 2008-05-07  Eric Blake  <ebb9@byu.net>
45873
45874         Support cross-compilation of <wctype.h>.
45875         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45876         AC_CACHE_CHECK.
45877
45878 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45879
45880         * build-aux/vc-list-files: Add support for bzr.
45881
45882 2008-05-03  Jim Meyering  <meyering@redhat.com>
45883
45884         avoid failed assertion with tight malloc
45885         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45886
45887 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45888
45889         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45890         are needed from arpa/inet.h.
45891         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45892         Reported by Bruno Haible.
45893
45894 2008-05-02  Jim Meyering  <meyering@redhat.com>
45895
45896         avoid compilation error on FreeBSD 6
45897         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45898
45899 2008-05-01  Jim Meyering  <meyering@redhat.com>
45900
45901         useless-if-before-free: correct --help's exit status description
45902         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45903         for one or more matches, etc.  Reported by Bruno Haible.
45904
45905         vc-list-files: make the stand-alone gnulib test work
45906         * modules/vc-list-files-tests (configure.ac):
45907         Define and AC_SUBST abs_aux_dir.
45908         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45909         $(abs_top_srcdir) to each script and having each of them
45910         duplicate the work of setting PATH, set PATH here, using
45911         the new variable, abs_aux_dir instead.
45912         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45913         * tests/test-vc-list-files-git.sh: Likewise.
45914         Reported by Bruno Haible.
45915
45916 2008-05-01  Bruno Haible  <bruno@clisp.org>
45917
45918         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45919         reallocation. Rename 'done' to 'found_delimiter'.
45920
45921 2008-05-01  Jim Meyering  <meyering@redhat.com>
45922
45923         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45924         * build-aux/vc-list-files: Use `...`, not $(...).
45925
45926 2008-04-30  Jim Meyering  <meyering@redhat.com>
45927
45928         add tests for vc-list-files
45929         * modules/vc-list-files-tests: New module.
45930         * tests/test-vc-list-files-cvs.sh: New file.
45931         * tests/test-vc-list-files-git.sh: New file.
45932
45933         avoid a warning from gcc
45934         * lib/getndelim2.c (IF_LINT): Define.
45935         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45936
45937         vc-list-files: work properly with build-aux/cvsu, too
45938         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45939         to all cvs-based clauses.
45940
45941         vc-list-files: work properly in the CVS+awk case, too
45942         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45943
45944         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45945         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45946         take more than one file argument, so .  Add quotes, just in case $dir
45947         ever contains a shell meta-character.  Prompted by Soren Hansen in
45948         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45949
45950 2008-04-29  Eric Blake  <ebb9@byu.net>
45951
45952         Optimize getndelim2 to use block operations when possible.
45953         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45954         freadseek, and memchr2.
45955         * lib/getndelim2.c (getndelim2): Use them for block reads.
45956
45957 2008-04-29  Bruno Haible  <bruno@clisp.org>
45958
45959         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45960         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45961         * modules/inet_ntop (Depends-on): Add extensions.
45962         * modules/inet_pton (Depends-on): Likewise.
45963         Reported by Simon Josefsson.
45964
45965 2008-04-29  Jim Meyering  <meyering@redhat.com>
45966
45967         When the is more than one match in a block, match all of them.
45968         * build-aux/useless-if-before-free: Iterate through each block
45969         until there are no more matches.
45970
45971         Fix broken useless-if-before-free script.
45972         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45973         the expression to match cast of argument to free-like function.
45974
45975 2008-04-29  Eric Blake  <ebb9@byu.net>
45976
45977         Use new header.
45978         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45979
45980 2008-04-29  Jim Meyering  <meyering@redhat.com>
45981
45982         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45983         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45984         by gnulib to exist and to declare e.g., inet_ntop.
45985         Don't include "inet_ntop.h", now removed.
45986
45987         * m4/arpa_inet_h.m4: Remove trailing blanks.
45988
45989 2008-04-29  Eric Blake  <ebb9@byu.net>
45990
45991         Silence valgrind on safe reads beyond potential array bounds.
45992         * lib/rawmemchr.valgrind: New file.
45993         * lib/strchrnul.valgrind: Likewise.
45994         * modules/rawmemchr (Files): Distribute new file.
45995         * modules/strchrnul (Files): Likewise.
45996         Suggested by Bruno Haible.
45997
45998 2008-04-29  Bruno Haible  <bruno@clisp.org>
45999
46000         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46001         (inet_ntop, inet_pton): Change portability warning's wording.
46002         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46003         Invoke gl_CHECK_NEXT_HEADERS.
46004         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46005         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46006         set ARPA_INET_H.
46007         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46008         * modules/arpa_inet (Description): No longer only for systems that
46009         lack it.
46010         (Depends-on): Add include_next.
46011         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46012         HAVE_ARPA_INET_H.
46013
46014 2008-04-29  Jim Meyering  <meyering@redhat.com>
46015
46016         * modules/mkdir (License): Re-license as LGPLv2+.
46017
46018 2008-04-29  Bruno Haible  <bruno@clisp.org>
46019
46020         * modules/rawmemchr (Maintainer): Set to Eric.
46021         * modules/strchrnul (Maintainer): Likewise.
46022
46023 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46024
46025         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46026         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46027
46028         * modules/arpa_inet (arpa/inet.h): Use them.
46029
46030 2008-04-28  Eric Blake  <ebb9@byu.net>
46031
46032         Test getndelim2.
46033         * modules/getndelim2-tests: New file.
46034         * tests/test-getndelim2.c: Likewise.
46035         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46036         stream.
46037         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46038
46039         * MODULES.html.sh: Document new module.
46040
46041 2008-04-20  Bruno Haible  <bruno@clisp.org>
46042
46043         * lib/c-stack.c (die): Use raise.
46044         * modules/c-stack (Depends-on): Add raise.
46045
46046 2008-04-28  Bruno Haible  <bruno@clisp.org>
46047
46048         Expect rpmatch to be declared.
46049         * lib/yesno.c (rpmatch): Remove declaration.
46050
46051         Declare rpmatch.
46052         * lib/stdlib.in.h (rpmatch): New declaration.
46053         * lib/rpmatch.c: Include <stdlib.h> first.
46054         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46055         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46057         HAVE_RPMATCH.
46058         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46059         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46060         (Include): Set to <stdlib.h>.
46061         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46062         HAVE_RPMATCH.
46063         * NEWS: Document the change.
46064
46065 2008-04-28  Bruno Haible  <bruno@clisp.org>
46066
46067         Change rpmatch to use nl_langinfo when appropriate.
46068         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46069         (N_): New macro.
46070         (localized_pattern): New function/macro.
46071         (try): Remove match, nomatch arguments. Copy the pattern into safe
46072         memory before caching it.
46073         (rpmatch): Use localized_pattern. Add translator comments.
46074         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46075         Suggested by Eric Blake.
46076         * modules/rpmatch (Depends-on): Add stdbool.
46077
46078 2008-04-28  Eric Blake  <ebb9@byu.net>
46079
46080         Add rawmemchr module, matching glibc.
46081         * modules/string (Makefile.am): New indicator.
46082         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46083         * lib/string.in.h (rawmemchr): Declare when appropriate.
46084         * modules/rawmemchr: New file.
46085         * m4/rawmemchr.m4: Likewise.
46086         * lib/rawmemchr.c: Likewise.
46087         * modules/rawmemchr-tests: Likewise.
46088         * tests/test-rawmemchr.c: Likewise.
46089         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46090         module.
46091         * modules/strchrnul (Depends-on): Add rawmemchr.
46092         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46093
46094         Whitespace cleanup.
46095         * tests/test-strchrnul.c: Reindent.
46096         * lib/strchrnul.c: Likewise.
46097
46098         Optimize and test strchrnul.
46099         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46100         * modules/strchrnul-tests: New file.
46101         * tests/test-strchrnul.c: Likewise.
46102
46103         Remove intprops dependency.
46104         * modules/memchr (Depends-on): Remove intprops.
46105         * modules/memrchr (Depends-on): Likewise.
46106         * modules/memchr2 (Depends-on): Likewise.
46107         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46108         * lib/memrchr.c (__memrchr): Likewise.
46109         * lib/memrchr2.c (memchr2): Likewise.
46110         Reported by Simon Josefsson.
46111
46112 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46113
46114         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46115         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46116
46117 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46118
46119         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46120
46121         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46122
46123         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46124
46125         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46126         declarations.
46127         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46128
46129         * m4/inet_pton.m4: Don't check for header files.
46130
46131         * m4/inet_ntop.m4: Don't check for header files.
46132
46133 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46134
46135         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46136         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46137         trigger for cygwin).
46138         Reported by Bruno Haible  <bruno@clisp.org>.
46139
46140 2008-04-28  Bruno Haible  <bruno@clisp.org>
46141
46142         * doc/posix-functions/strdup.texi: Mention mingw problem.
46143
46144 2008-04-27  Bruno Haible  <bruno@clisp.org>
46145
46146         * modules/stat-time-tests (Depends-on): Add sleep.
46147         * tests/test-stat-time.c (force_unlink): New function.
46148         (cleanup): Use it.
46149         (test_mtime): Remove the ctime related tests.
46150         (test_ctime): New function, containing the ctime related tests.
46151         (main): Call test_ctime, except on native Windows platforms.
46152
46153 2008-04-27  Bruno Haible  <bruno@clisp.org>
46154
46155         * lib/rpmatch.c (rpmatch): Add some comments.
46156         Reported by James Youngman <jay@gnu.org>.
46157
46158 2008-04-27  Bruno Haible  <bruno@clisp.org>
46159
46160         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46161         quiet NaNs.
46162
46163 2008-04-27  Bruno Haible  <bruno@clisp.org>
46164
46165         Make test-yesno.sh work on mingw.
46166         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46167         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46168         (main): Set stdin to binary mode.
46169         * modules/yesno-tests (Depends-on): Add binary-io.
46170
46171 2008-04-27  Bruno Haible  <bruno@clisp.org>
46172
46173         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46174         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46175         argument that lie outside the IEEE 854 domain.
46176         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46177         (gl_ISFINITE): Use it.
46178         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46179
46180 2008-04-27  Bruno Haible  <bruno@clisp.org>
46181
46182         Allow local renaming in config.h.
46183         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46184
46185 2008-04-27  Bruno Haible  <bruno@clisp.org>
46186
46187         * lib/memchr.c (__memchr): Change type of 'i'.
46188         * lib/memchr2.c (memchr2): Likewise.
46189
46190 2008-04-26  Eric Blake  <ebb9@byu.net>
46191         and Bruno Haible  <bruno@clisp.org>
46192
46193         Optimize and test memrchr.
46194         * modules/memrchr (Depends-on): Add intprops.
46195         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46196         * modules/memrchr-tests: New file.
46197         * tests/test-memrchr.c: New file.
46198
46199 2008-04-26  Bruno Haible  <bruno@clisp.org>
46200
46201         Add tentative support for DragonFly BSD.
46202         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46203         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46204         fp.
46205         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46206         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46207         * lib/fpurge.c (fpurge): Likewise.
46208         * lib/freadable.c (freaadable): Likewise.
46209         * lib/freadahead.c (freadahead): Likewise.
46210         * lib/freading.c (freading): Likewise.
46211         * lib/freadptr.c (freadptr): Likewise.
46212         * lib/freadseek.c (freadptrinc): Likewise.
46213         * lib/fseeko.c (fseeko): Likewise.
46214         * lib/fseterr.c (fseterr): Likewise.
46215         * lib/fwritable.c (fwritable): Likewise.
46216         * lib/fwriting.c (fwriting): Likewise.
46217
46218 2008-04-26  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/stdio-impl.h: New file.
46221         * lib/fbufmode.c: Include stdio-impl.h.
46222         (fbufmode): Use fp_, remove redundant #defines.
46223         * lib/fflush.c: Include stdio-impl.h.
46224         (clear_ungetc_buffer): Remove redundant #defines.
46225         * lib/fpurge.c: Include stdio-impl.h.
46226         (fpurge): Remove redundant #defines.
46227         * lib/freadable.c: Include stdio-impl.h.
46228         (freadable): Remove redundant #defines.
46229         * lib/freadahead.c: Include stdio-impl.h.
46230         (freadahead): Remove redundant #defines.
46231         * lib/freading.c: Include stdio-impl.h.
46232         (freading): Remove redundant #defines.
46233         * lib/freadptr.c: Include stdio-impl.h.
46234         (freadptr): Remove redundant #defines.
46235         * lib/freadseek.c: Include stdio-impl.h.
46236         (freadptrinc): Remove redundant #defines.
46237         * lib/fseeko.c: Include stdio-impl.h.
46238         (rpl_fseeko): Remove redundant #defines.
46239         * lib/fseterr.c: Include stdio-impl.h.
46240         (fseterr): Remove redundant #defines.
46241         * lib/fwritable.c: Include stdio-impl.h.
46242         (fwritable: Remove redundant #defines.
46243         * lib/fwriting.c: Include stdio-impl.h.
46244         (fwriting): Remove redundant #defines.
46245         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46246         * modules/fflush (Files): Likewise.
46247         * modules/fpurge (Files): Likewise.
46248         * modules/freadable (Files): Likewise.
46249         * modules/freadahead (Files): Likewise.
46250         * modules/freading (Files): Likewise.
46251         * modules/freadptr (Files): Likewise.
46252         * modules/freadseek (Files): Likewise.
46253         * modules/fseeko (Files): Likewise.
46254         * modules/fseterr (Files): Likewise.
46255         * modules/fwritable (Files): Likewise.
46256         * modules/fwriting (Files): Likewise.
46257
46258 2008-04-26  Bruno Haible  <bruno@clisp.org>
46259
46260         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46261         restore_seek_optimization, update_fpos_cache): New functions, extracted
46262         from rpl_fflush.
46263         (rpl_fflush): Use them.
46264         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46265         (gl_REPLACE_FFLUSH): Use it.
46266
46267 2008-04-26  Bruno Haible  <bruno@clisp.org>
46268
46269         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46270         on Solaris.
46271         * tests/test-xstrtoimax.sh: Likewise.
46272         * tests/test-xstrtoumax.sh: Likewise.
46273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46274
46275 2008-04-26  Bruno Haible  <bruno@clisp.org>
46276
46277         * modules/memchr-tests: New file.
46278         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46279
46280 2008-04-26  Eric Blake  <ebb9@byu.net>
46281             Bruno Haible  <bruno@clisp.org>
46282
46283         * lib/memchr.c: Include intprops.h.
46284         (__memchr): Optimize parallel detection of matching bytes. Rename local
46285         variables. Add explanatory comments.
46286
46287 2008-04-26  Bruno Haible  <bruno@clisp.org>
46288
46289         Fix module 'memchr', broken since 2000-10-28.
46290         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46291
46292 2008-04-26  Bruno Haible  <bruno@clisp.org>
46293
46294         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46295         comments.
46296
46297 2008-04-25  Eric Blake  <ebb9@byu.net>
46298
46299         Use native fstatat on cygwin 1.7.0.
46300         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46301         first.
46302
46303 2008-04-23  Eric Blake  <ebb9@byu.net>
46304
46305         Improve memchr2 performance.
46306         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46307         NUL bytes.
46308         * modules/memchr2 (Depends-on): Use intprops.h.
46309
46310 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46311
46312         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46313         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46314         <blp@cs.stanford.edu>.
46315
46316 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46317
46318         * lib/arpa_inet.in.h: New file.
46319
46320         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46321         (Makefile.am): Sed in substitute header file.
46322
46323         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46324         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46325
46326         * modules/inet_ntop (configure.ac): Use
46327         gl_ARPA_INET_MODULE_INDICATOR.
46328
46329         * modules/inet_pton (configure.ac): Use
46330         gl_ARPA_INET_MODULE_INDICATOR.
46331
46332 2008-04-22  Jim Meyering  <meyering@redhat.com>
46333
46334         * modules/verify (License): Re-license as LGPLv2+.
46335
46336 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46337
46338         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46339         parameter to void* as per POSIX standard (MinGW uses char*).
46340
46341 2008-04-21  Bruno Haible  <bruno@clisp.org>
46342
46343         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46344         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46345         Define to replacements if REPLACE_ISWCNTRL is 1.
46346         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46347         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46348         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46349         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46350         what it fixes.
46351         * doc/posix-functions/iswalpha.texi: Likewise.
46352         * doc/posix-functions/iswblank.texi: Likewise.
46353         * doc/posix-functions/iswcntrl.texi: Likewise.
46354         * doc/posix-functions/iswdigit.texi: Likewise.
46355         * doc/posix-functions/iswgraph.texi: Likewise.
46356         * doc/posix-functions/iswlower.texi: Likewise.
46357         * doc/posix-functions/iswprint.texi: Likewise.
46358         * doc/posix-functions/iswpunct.texi: Likewise.
46359         * doc/posix-functions/iswspace.texi: Likewise.
46360         * doc/posix-functions/iswupper.texi: Likewise.
46361         * doc/posix-functions/iswxdigit.texi: Likewise.
46362         Reported by Alain Guibert.
46363
46364 2008-04-21  Bruno Haible  <bruno@clisp.org>
46365
46366         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46367         Patch by Alain Guibert.
46368
46369 2008-04-21  Bruno Haible  <bruno@clisp.org>
46370
46371         Fix test failures on mingw.
46372         * tests/test-xstrtol.c (print_no_progname): New function.
46373         (main): Install it in error_print_progname hook.
46374         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46375         * tests/test-xstrtoimax.sh: Likewise.
46376         * tests/test-xstrtoumax.sh: Likewise.
46377
46378 2008-04-21  Bruno Haible  <bruno@clisp.org>
46379
46380         Fix test failure on mingw.
46381         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46382
46383 2008-04-21  Bruno Haible  <bruno@clisp.org>
46384
46385         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46386         Actually assign a value.
46387
46388 2008-04-20  Bruno Haible  <bruno@clisp.org>
46389
46390         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46391         take 2.
46392         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46393         'canonicalize-lgpl' module is also used.
46394         * lib/canonicalize-lgpl.c: Undo last change.
46395         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46396
46397 2008-04-20  Bruno Haible  <bruno@clisp.org>
46398
46399         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46400         config.h. Provide _mkdir based fallback for mingw.
46401         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46402         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46403         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46404         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46405         rather than defining mkdir in config.h.
46406         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46407         (gl_SYS_STAT_H_DEFAULTS): New macro.
46408         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46409         HAVE_IO_H any more.
46410         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46411         HAVE_DECL_MKDIR and HAVE_IO_H.
46412
46413 2008-04-20  Bruno Haible  <bruno@clisp.org>
46414
46415         * lib/isapipe.c: Port to native Windows platforms.
46416
46417 2008-04-20  Bruno Haible  <bruno@clisp.org>
46418
46419         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46420
46421 2008-04-21  Eric Blake  <ebb9@byu.net>
46422
46423         Work around preprocessors that don't handle UINTMAX_MAX.
46424         * lib/memchr2.c (memchr2): Avoid embedded #if.
46425         Reported by Alain Guibert, fix suggested by Bruno Haible.
46426
46427 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46428
46429         * doc/posix-functions/strftime.texi (strftime): Explain better
46430         Windows incompatibility.  Suggested by Micah Cowan
46431         <micah@cowan.name>.
46432
46433 2008-04-20  Bruno Haible  <bruno@clisp.org>
46434
46435         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46436         unistr/u8-mblen.
46437
46438 2008-04-20  Bruno Haible  <bruno@clisp.org>
46439
46440         Fix test failure on platforms with non-GNU iconv.
46441         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46442         (U_TO_U8): Use it, rather than u16_to_u8.
46443         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46444         units at the end of the input string.
46445         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46446
46447 2008-04-20  Bruno Haible  <bruno@clisp.org>
46448
46449         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46450         when the resulting length is 0.
46451         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46452
46453 2008-04-20  Bruno Haible  <bruno@clisp.org>
46454
46455         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46456         works.
46457         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46458
46459 2008-04-20  Bruno Haible  <bruno@clisp.org>
46460
46461         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46462         * modules/tsearch-tests (configure.ac): Test for initstate function.
46463
46464 2008-04-20  Bruno Haible  <bruno@clisp.org>
46465
46466         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46467         for nlink_t if missing.
46468         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46469
46470 2008-04-19  Bruno Haible  <bruno@clisp.org>
46471
46472         Work around snprintf bug on Linux libc5.
46473         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46474         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46475         gl_SNPRINTF_SIZE1.
46476         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46477         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46478         that test failed.
46479         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46480         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46481         * modules/snprintf (Files): Add m4/printf.m4.
46482         * modules/vsnprintf (Files): Likewise.
46483         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46484         * doc/posix-functions/vsnprintf.texi: Likewise.
46485
46486 2008-04-19  Bruno Haible  <bruno@clisp.org>
46487
46488         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46489         from 0.0058 to less than 10^-7.
46490
46491 2008-04-19  Bruno Haible  <bruno@clisp.org>
46492
46493         Fix rounding when a precision is given.
46494         * lib/vasnprintf.c (is_borderline): New function.
46495         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46496         9...9x.
46497         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46498         %e, %g.
46499         * tests/test-vasprintf-posix.c (test_function): Likewise.
46500         * tests/test-snprintf-posix.h (test_function): Likewise.
46501         * tests/test-sprintf-posix.h (test_function): Likewise.
46502         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46503         * tests/test-printf-posix.h (test_function): Likewise.
46504         * tests/test-printf-posix.output: Update.
46505         Reported by John Darrington <john@darrington.wattle.id.au> via
46506         Ben Pfaff <blp@cs.stanford.edu>.
46507
46508 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46509
46510         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46511         Suggested by Bruno Haible <bruno@clisp.org>.
46512
46513 2008-04-17  Bruno Haible  <bruno@clisp.org>
46514
46515         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46516         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46517         implementation.
46518         Patch by Bruce Merry <bmerry@gmail.com>.
46519
46520 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46521
46522         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46523         doesn't work under Windows.
46524
46525 2008-04-16  Bruno Haible  <bruno@clisp.org>
46526
46527         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46528         New macros.
46529         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46530         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46531         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46532         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46533         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46534         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46535         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46536         macros.
46537         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46538         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46539         Northern Sotho, Uighur.
46540
46541 2008-04-16  Bruno Haible  <bruno@clisp.org>
46542
46543         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46544         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46545         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46546         Reported by Daniel Bergström <daniel@octocode.com>.
46547
46548 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46549             Bruno Haible  <bruno@clisp.org>
46550
46551         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46552         function.
46553         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46554         New functions, mostly extracted from gl_locale_name_default.
46555         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46556
46557 2008-04-16  Eric Blake  <ebb9@byu.net>
46558
46559         Adjust strtod detection to catch glibc 2.7 bug.
46560         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46561         Reported by John Gatewood Ham.
46562
46563 2008-04-16  Bruno Haible  <bruno@clisp.org>
46564
46565         Add tentative support for Linux libc5.
46566         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46567         * lib/fpurge.c (fpurge): Likewise.
46568         * lib/freadable.c (freadable): Likewise.
46569         * lib/freadahead.c (freadahead): Likewise.
46570         * lib/freading.c (freading): Likewise.
46571         * lib/freadptr.c (freadptr): Likewise.
46572         * lib/freadseek.c (freadptrinc): Likewise.
46573         * lib/fseeko.c (rpl_fseeko): Likewise.
46574         * lib/fseterr.c (fseterr): Likewise.
46575         * lib/fwritable.c (fwritable): Likewise.
46576         * lib/fwriting.c (fwriting): Likewise.
46577         Reported by Alain Guibert <alguibert+bts@free.fr>.
46578
46579 2008-04-15  Bruno Haible  <bruno@clisp.org>
46580
46581         * modules/mathl (configure.ac): Define module indicator.
46582
46583 2008-04-15  Bruno Haible  <bruno@clisp.org>
46584
46585         * lib/logl.c (logl): Remove unused variables.
46586
46587 2008-04-15  Bruno Haible  <bruno@clisp.org>
46588
46589         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46590         fails.
46591
46592 2008-04-15  Bruno Haible  <bruno@clisp.org>
46593
46594         * lib/trim.c (trim2): Fix argument of isspace() macro.
46595
46596 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46597
46598         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46599         to 0.
46600         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46601
46602 2008-04-14  Bruno Haible  <bruno@clisp.org>
46603
46604         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46605         AC_LANG_PROGRAM argument.
46606         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46607         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46609         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46610         * m4/math_h.m4 (gl_MATH_H): Likewise.
46611         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46612         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46613         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46614         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46615         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46616         * m4/regex.m4 (gl_REGEX): Likewise.
46617         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46618         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46620         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46621         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46622         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46623         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46625
46626 2008-04-14  Jim Meyering  <meyering@redhat.com>
46627
46628         test-strtod: fix typos: s/abs/fabs/
46629         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46630
46631 2008-04-13  Bruno Haible  <bruno@clisp.org>
46632
46633         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46634         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46635         module is also used and while not building the reloc-wrapper.
46636
46637 2008-04-13  Bruno Haible  <bruno@clisp.org>
46638
46639         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46640
46641 2008-04-13  Bruno Haible  <bruno@clisp.org>
46642
46643         Fix AIX compilation failure introduced on 2008-04-02.
46644         * tests/test-frexp.c (exp): Undefine before redefining.
46645         * tests/test-frexpl.c (exp): Likewise.
46646
46647 2008-04-13  Bruno Haible  <bruno@clisp.org>
46648
46649         Work around a HP-UX stdio bug.
46650         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46651         * tests/test-ftello.c (main): Likewise.
46652         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46653         * doc/posix-functions/ftello.texi: Likewise.
46654
46655 2008-04-13  Bruno Haible  <bruno@clisp.org>
46656
46657         Make test-signbit pass on HP-UX/hppa.
46658         * tests/test-signbit.c (minus_zerol): New variable.
46659         (test_signbitl): Use it.
46660
46661 2008-04-13  Bruno Haible  <bruno@clisp.org>
46662
46663         Make truncl work on OSF/1 4.0.
46664         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46665         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46666         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46668         HAVE_DECL_TRUNCL.
46669         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46670         HAVE_DECL_TRUNCL.
46671         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46672
46673 2008-04-13  Bruno Haible  <bruno@clisp.org>
46674
46675         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46676
46677 2008-04-13  Bruno Haible  <bruno@clisp.org>
46678
46679         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46680         expression, so as to avoid HP-UX 11 cc compiler bug.
46681
46682 2008-04-13  Bruno Haible  <bruno@clisp.org>
46683
46684         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46685
46686 2008-04-13  Bruno Haible  <bruno@clisp.org>
46687
46688         * lib/git-merge-changelog.c: Remove empty declaration outside of
46689         functions.
46690
46691 2008-04-13  Bruno Haible  <bruno@clisp.org>
46692
46693         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46694
46695 2008-04-13  Bruno Haible  <bruno@clisp.org>
46696
46697         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46698         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46699         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46700         also if it exists but lacks definitions of the SHUT_* macros.
46701         * modules/sys_socket (Description): Update.
46702         Reported by Elbert Pol <e.pol@chello.nl>.
46703
46704 2008-04-13  Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/localcharset.c (OS2): Don't redefine if already defined.
46707         Reported by Elbert Pol <e.pol@chello.nl>.
46708
46709 2008-04-13  Bruno Haible  <bruno@clisp.org>
46710
46711         * lib/binary-io.h [__EMX__]: Include <io.h>.
46712         Reported by Elbert Pol <e.pol@chello.nl>.
46713
46714 2008-04-12  Bruno Haible  <bruno@clisp.org>
46715
46716         * lib/fpucw.h: Enable the definitions also for x86_64.
46717         Needed for NetBSD/x86_64.
46718         Reported by Thomas Klausner <tk@giga.or.at>.
46719
46720 2008-04-12  Bruno Haible  <bruno@clisp.org>
46721
46722         * tests/test-strtod.c: Include isnand.h.
46723         (main): Use isnand instead of isnan.
46724         Reported by Jim Meyering.
46725
46726 2008-04-12  Bruno Haible  <bruno@clisp.org>
46727
46728         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46729         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46730
46731 2008-04-12  Jim Meyering  <meyering@redhat.com>
46732
46733         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46734
46735 2008-04-12  Bruno Haible  <bruno@clisp.org>
46736
46737         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46738         Reported by Elbert Pol <e.pol@chello.nl>.
46739
46740 2008-04-12  Eric Blake  <ebb9@byu.net>
46741
46742         Work around Solaris 10 math.h bug.
46743         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46744         (gl_MATH_H_DEFAULTS): Set up default.
46745         * modules/math (Makefile.am): Replace new indicators.
46746         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46747         * tests/test-math.c (main): Test this.
46748         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46749         * doc/posix-headers/math.texi (math.h): Mention bug.
46750         Reported by Nelson H. F. Beebe and Jim Meyering.
46751
46752 2008-04-11  Bruno Haible  <bruno@clisp.org>
46753
46754         Adapt to future versions of Apple GCC.
46755         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46756         Reported by Peter O'Gorman <peter@pogma.com>.
46757
46758 2008-04-11  Bruno Haible  <bruno@clisp.org>
46759
46760         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46761
46762 2008-04-11  Bruno Haible  <bruno@clisp.org>
46763
46764         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46765
46766         * modules/getaddrinfo-tests (Makefile.am): Define
46767         test_getaddrinfo_LDADD.
46768
46769 2008-04-11  Bruno Haible  <bruno@clisp.org>
46770
46771         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46772         (init): Fix syntax error.
46773         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46774         is declared.
46775
46776 2008-04-11  Bruno Haible  <bruno@clisp.org>
46777
46778         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46779         * modules/glob (Depends-on): Add stdbool.
46780
46781 2008-04-11  Bruno Haible  <bruno@clisp.org>
46782
46783         * lib/trim.c: Include <string.h>.
46784
46785 2008-04-11  Eric Blake  <ebb9@byu.net>
46786
46787         Avoid compile failure on OS/2.
46788         * lib/regex_internal.h (internal_function): Disable optimization
46789         on OS/2 (__EMX__), where it caused compiler error.
46790         Reported by Elbert Pol.
46791
46792 2008-04-11  Bruno Haible  <bruno@clisp.org>
46793
46794         Flush the standard error stream before aborting. Needed on mingw.
46795         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46796         * tests/test-array_list.c (ASSERT): Likewise.
46797         * tests/test-array_oset.c (ASSERT): Likewise.
46798         * tests/test-avltree_list.c (ASSERT): Likewise.
46799         * tests/test-avltree_oset.c (ASSERT): Likewise.
46800         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46801         * tests/test-binary-io.c (ASSERT): Likewise.
46802         * tests/test-byteswap.c (ASSERT): Likewise.
46803         * tests/test-c-ctype.c (ASSERT): Likewise.
46804         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46805         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46806         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46807         * tests/test-c-strstr.c (ASSERT): Likewise.
46808         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46809         * tests/test-canonicalize.c (ASSERT): Likewise.
46810         * tests/test-carray_list.c (ASSERT): Likewise.
46811         * tests/test-ceilf1.c (ASSERT): Likewise.
46812         * tests/test-ceilf2.c (ASSERT): Likewise.
46813         * tests/test-ceill.c (ASSERT): Likewise.
46814         * tests/test-count-one-bits.c (ASSERT): Likewise.
46815         * tests/test-fbufmode.c (ASSERT): Likewise.
46816         * tests/test-fflush2.c (ASSERT): Likewise.
46817         * tests/test-floorf1.c (ASSERT): Likewise.
46818         * tests/test-floorf2.c (ASSERT): Likewise.
46819         * tests/test-floorl.c (ASSERT): Likewise.
46820         * tests/test-fopen.c (ASSERT): Likewise.
46821         * tests/test-fpending.c (ASSERT): Likewise.
46822         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46823         * tests/test-fpurge.c (ASSERT): Likewise.
46824         * tests/test-freadable.c (ASSERT): Likewise.
46825         * tests/test-freadahead.c (ASSERT): Likewise.
46826         * tests/test-freading.c (ASSERT): Likewise.
46827         * tests/test-freadptr.c (ASSERT): Likewise.
46828         * tests/test-freadptr2.c (ASSERT): Likewise.
46829         * tests/test-freadseek.c (ASSERT): Likewise.
46830         * tests/test-freopen.c (ASSERT): Likewise.
46831         * tests/test-frexp.c (ASSERT): Likewise.
46832         * tests/test-frexpl.c (ASSERT): Likewise.
46833         * tests/test-fseek.c (ASSERT): Likewise.
46834         * tests/test-fseeko.c (ASSERT): Likewise.
46835         * tests/test-fstrcmp.c (ASSERT): Likewise.
46836         * tests/test-ftell.c (ASSERT): Likewise.
46837         * tests/test-ftello.c (ASSERT): Likewise.
46838         * tests/test-func.c (ASSERT): Likewise.
46839         * tests/test-fwritable.c (ASSERT): Likewise.
46840         * tests/test-fwriting.c (ASSERT): Likewise.
46841         * tests/test-getdelim.c (ASSERT): Likewise.
46842         * tests/test-getline.c (ASSERT): Likewise.
46843         * tests/test-i-ring.c (ASSERT): Likewise.
46844         * tests/test-iconv-utf.c (ASSERT): Likewise.
46845         * tests/test-iconv.c (ASSERT): Likewise.
46846         * tests/test-isfinite.c (ASSERT): Likewise.
46847         * tests/test-isnand.c (ASSERT): Likewise.
46848         * tests/test-isnanf.c (ASSERT): Likewise.
46849         * tests/test-isnanl.h (ASSERT): Likewise.
46850         * tests/test-ldexpl.c (ASSERT): Likewise.
46851         * tests/test-linked_list.c (ASSERT): Likewise.
46852         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46853         * tests/test-localename.c (ASSERT): Likewise.
46854         * tests/test-lseek.c (ASSERT): Likewise.
46855         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46856         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46857         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46858         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46859         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46860         * tests/test-mbschr.c (ASSERT): Likewise.
46861         * tests/test-mbscspn.c (ASSERT): Likewise.
46862         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46863         * tests/test-mbspbrk.c (ASSERT): Likewise.
46864         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46865         * tests/test-mbsrchr.c (ASSERT): Likewise.
46866         * tests/test-mbsspn.c (ASSERT): Likewise.
46867         * tests/test-mbsstr1.c (ASSERT): Likewise.
46868         * tests/test-mbsstr2.c (ASSERT): Likewise.
46869         * tests/test-mbsstr3.c (ASSERT): Likewise.
46870         * tests/test-memchr2.c (ASSERT): Likewise.
46871         * tests/test-memmem.c (ASSERT): Likewise.
46872         * tests/test-open.c (ASSERT): Likewise.
46873         * tests/test-printf-frexp.c (ASSERT): Likewise.
46874         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46875         * tests/test-printf-posix.c (ASSERT): Likewise.
46876         * tests/test-quotearg.c (ASSERT): Likewise.
46877         * tests/test-rbtree_list.c (ASSERT): Likewise.
46878         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46879         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46880         * tests/test-round1.c (ASSERT): Likewise.
46881         * tests/test-roundf1.c (ASSERT): Likewise.
46882         * tests/test-roundl.c (ASSERT): Likewise.
46883         * tests/test-signbit.c (ASSERT): Likewise.
46884         * tests/test-sleep.c (ASSERT): Likewise.
46885         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46886         * tests/test-snprintf.c (ASSERT): Likewise.
46887         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46888         * tests/test-stat-time.c (ASSERT): Likewise.
46889         * tests/test-strcasestr.c (ASSERT): Likewise.
46890         * tests/test-strerror.c (ASSERT): Likewise.
46891         * tests/test-striconv.c (ASSERT): Likewise.
46892         * tests/test-striconveh.c (ASSERT): Likewise.
46893         * tests/test-striconveha.c (ASSERT): Likewise.
46894         * tests/test-strsignal.c (ASSERT): Likewise.
46895         * tests/test-strstr.c (ASSERT): Likewise.
46896         * tests/test-strtod.c (ASSERT): Likewise.
46897         * tests/test-trunc1.c (ASSERT): Likewise.
46898         * tests/test-trunc2.c (ASSERT): Likewise.
46899         * tests/test-truncf1.c (ASSERT): Likewise.
46900         * tests/test-truncf2.c (ASSERT): Likewise.
46901         * tests/test-truncl.c (ASSERT): Likewise.
46902         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46903         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46904         * tests/test-vasnprintf.c (ASSERT): Likewise.
46905         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46906         * tests/test-vasprintf.c (ASSERT): Likewise.
46907         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46908         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46909         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46910         * tests/test-vsnprintf.c (ASSERT): Likewise.
46911         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46912         * tests/test-wcwidth.c (ASSERT): Likewise.
46913         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46914         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46915         * tests/test-xvasprintf.c (ASSERT): Likewise.
46916         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46917         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46918         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46919         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46920         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46921         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46922         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46923         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46924         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46925         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46926         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46927         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46928         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46929         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46930         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46931         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46932         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46933         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46934         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46935         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46936         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46937         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46938         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46939         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46940         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46941         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46942         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46943         * tests/unictype/test-combining.c (ASSERT): Likewise.
46944         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46945         * tests/unictype/test-digit.c (ASSERT): Likewise.
46946         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46947         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46948         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46949         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46950         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46951         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46952         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46953         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46954         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46955         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46956         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46957         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46958         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46959         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46960         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46961         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46962         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46963         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46964         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46965         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46966         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46967         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46968         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46969         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46970         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46971         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46972         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46973         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46974         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46975         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46976         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46977         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46978         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46979         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46980         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46981         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46982         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46983         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46984         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46985         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46986         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46987         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46988         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46989         Reported by Eric Blake.
46990
46991 2008-04-11  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/wchar.in.h: Tweak comment.
46994
46995 2008-04-11  Bruno Haible  <bruno@clisp.org>
46996
46997         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46998         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46999         gl_COMMON.
47000         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47001
47002 2008-04-11  Bruno Haible  <bruno@clisp.org>
47003
47004         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47005
47006 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47007
47008         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47009         of attempting to use non-existing /dev/*random.  Based on patch
47010         from Adam Strzelecki <ono@java.pl> in
47011         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47012
47013 2008-04-08  Bruno Haible  <bruno@clisp.org>
47014
47015         Add tentative support for emx+gcc.
47016         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47017         * lib/fpurge.c (fpurge): Likewise.
47018         * lib/freadable.c (freadable): Likewise.
47019         * lib/freadahead.c (freadahead): Likewise.
47020         * lib/freading.c (freading): Likewise.
47021         * lib/freadptr.c (freadptr): Likewise.
47022         * lib/freadseek.c (freadptrinc): Likewise.
47023         * lib/fseeko.c (rpl_fseeko): Likewise.
47024         * lib/fseterr.c (fseterr): Likewise.
47025         * lib/fwritable.c (fwritable): Likewise.
47026         * lib/fwriting.c (fwriting): Likewise.
47027         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47028
47029 2008-04-09  Eric Blake  <ebb9@byu.net>
47030
47031         Avoid some autoconf warnings.
47032         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47033         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47034         * m4/afs.m4 (gl_AFS): Likewise.
47035         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47036         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47037         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47038         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47039         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47040         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47041         (AC_CHECK_DECLS_ONCE): Likewise.
47042         Rename file...
47043         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47044         gnulib-tool requires autoconf 2.59 or better.
47045         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47046
47047 2008-04-08  Eric Blake  <ebb9@byu.net>
47048
47049         Use 'git describe --match' if present (added in git 1.5.5).
47050         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47051         if possible.
47052
47053 2008-04-08  Bruno Haible  <bruno@clisp.org>
47054
47055         Add tentative support for OpenServer.
47056         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47057         _ptr, _cnt.
47058         * lib/fpurge.c (fpurge): Likewise.
47059         * lib/freadable.c (freadable): Likewise.
47060         * lib/freadahead.c (freadahead): Likewise.
47061         * lib/freading.c (freading): Likewise.
47062         * lib/freadptr.c (freadptr): Likewise.
47063         * lib/freadseek.c (freadptrinc): Likewise.
47064         * lib/fseeko.c (rpl_fseeko): Likewise.
47065         * lib/fseterr.c (fseterr): Likewise.
47066         * lib/fwritable.c (fwritable): Likewise.
47067         * lib/fwriting.c (fwriting): Likewise.
47068         Reported by Roger Cornelius <rac@tenzing.org> and
47069         Brian K. White <brian@aljex.com>.
47070
47071 2008-04-06  Jim Meyering  <meyering@redhat.com>
47072
47073         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47074
47075 2008-04-06  Bruno Haible  <bruno@clisp.org>
47076
47077         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47078         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47079         * tests/test-printf-posix.sh: Likewise.
47080         * tests/test-vfprintf-posix.sh: Likewise.
47081         * tests/test-vprintf-posix.sh: Likewise.
47082         * tests/test-xprintf-posix.sh: Likewise.
47083
47084 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47085
47086         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47087         hide error from 'ls', needed on OS/2.
47088         Report by Elbert Pol <elbert.pol@gmail.com>.
47089
47090 2008-04-04  Eric Blake  <ebb9@byu.net>
47091
47092         Make test-fseeko.c failures meaningful.
47093         * tests/test-fseeko.c: Print line number on failure.
47094         * tests/test-fseek.c: Likewise.
47095         Reported by Nelson H. F. Beebe.
47096
47097         Improve strtod bug detection check.
47098         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47099         required for Solaris 10.
47100         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47101
47102 2008-04-04  Bruno Haible  <bruno@clisp.org>
47103
47104         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47105         by m4/setenv.m4.
47106
47107 2008-04-03  Eric Blake  <ebb9@byu.net>
47108
47109         Ensure sane .version contents.
47110         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47111         version string.
47112         * build-aux/git-version-gen: Improve documentation.
47113
47114         Make GNU make output nicer.
47115         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47116         MAKECMDGOALS to enforce message for all command line targets.  Set
47117         srcdir for use in maint.mk.
47118
47119         Another maintainer tweak.
47120         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47121         a target that regenerates version.
47122
47123 2008-04-03  Jim Meyering  <meyering@redhat.com>
47124
47125         vc-list-files: don't cause coreutils "make po-check" failure
47126         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47127
47128 2008-04-03  Eric Blake  <ebb9@byu.net>
47129
47130         Allow VPATH usage of vc-list-files.
47131         * build-aux/vc-list-files (scriptversion): Add timestamp.
47132         (options): Add --help, --version, -C.
47133         (CVS): Support installed cvsu.
47134
47135 2008-04-02  Bruno Haible  <bruno@clisp.org>
47136
47137         Avoid some "statement with no effect" warnings from gcc.
47138         * tests/test-wctype.c (main): Explicitly ignore unused values.
47139         Reported by Jim Meyering.
47140
47141 2008-04-02  Jim Meyering  <meyering@redhat.com>
47142
47143         Avoid some warnings from "gcc -Wshadow".
47144         * tests/test-frexp.c (exp): Define to a different identifier.
47145         * tests/test-frexpl.c (exp): Likewise.
47146
47147 2008-04-03  Jim Meyering  <meyering@redhat.com>
47148
47149         bootstrap: remove dangling *.[ch] symlinks from lib
47150         * build-aux/bootstrap [dangling symlink removal]: Move find's
47151         -depth option to precede all others, to avoid a warning.
47152         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47153
47154 2008-04-02  Bruno Haible  <bruno@clisp.org>
47155
47156         Avoid some warnings from "gcc -Wshadow".
47157         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47158         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47159         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47160         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47161         Reported by Jim Meyering.
47162
47163 2008-04-01  Bruno Haible  <bruno@clisp.org>
47164
47165         Fix test to work on IRIX 6.5 with cc.
47166         * tests/test-math.c (numeric_equal): New function.
47167         (main): Use it.
47168
47169 2008-04-01  Bruno Haible  <bruno@clisp.org>
47170
47171         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47172
47173 2008-04-01  Bruno Haible  <bruno@clisp.org>
47174
47175         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47176         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47177         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47178         (Depends-on): Remove math.
47179
47180         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47181         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47182         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47183         (Depends-on): Remove math.
47184
47185         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47186         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47187         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47188         (Depends-on): Remove math.
47189         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47190         (Depends-on): Remove math.
47191
47192         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47193         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47194         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47195         (Depends-on): Remove math.
47196         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47197         (Depends-on): Remove math.
47198
47199         * tests/test-round1.c: Include nan.h.
47200         (main): Use NaNd instead of NAN.
47201         * modules/round-tests (Files): Add tests/nan.h.
47202
47203         * tests/test-trunc1.c: Include nan.h.
47204         (main): Use NaNd instead of NAN.
47205         * modules/trunc-tests (Files): Add tests/nan.h.
47206
47207         * tests/test-roundf1.c: Include nan.h.
47208         (main): Use NaNf instead of NAN.
47209         * modules/roundf-tests (Files): Add tests/nan.h.
47210
47211         * tests/test-truncf1.c: Include nan.h.
47212         (main): Use NaNf instead of NAN.
47213         * modules/truncf-tests (Files): Add tests/nan.h.
47214
47215         * tests/test-ceilf1.c: Include nan.h.
47216         (main): Use NaNf instead of NAN.
47217         * modules/ceilf-tests (Files): Add tests/nan.h.
47218
47219         * tests/test-floorf1.c: Include nan.h.
47220         (main): Use NaNf instead of NAN.
47221         * modules/floorf-tests (Files): Add tests/nan.h.
47222
47223         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47224         (main): Use NaNf instead of NAN.
47225         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47226
47227         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47228         (main): Use NaNd instead of NAN.
47229         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47230
47231         * tests/test-frexp.c: Include nan.h.
47232         (main): Use NaNd instead of NAN.
47233         * modules/frexp-tests (Files): Add tests/nan.h.
47234
47235         * lib/isnan.c: Don't include <math.h>.
47236         (FUNC): Don't use NAN macro.
47237         * modules/isnand-nolibm (Depends-on): Remove math.
47238         * modules/isnanf-nolibm (Depends-on): Remove math.
47239         * modules/isnanl (Depends-on): Remove math.
47240         * modules/isnanl-nolibm (Depends-on): Remove math.
47241
47242         * tests/nan.h: New file.
47243
47244 2008-04-01  Eric Blake  <ebb9@byu.net>
47245
47246         Fix typos.
47247         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47248         values to be the right type.
47249
47250         For now, cater to gnulib strtod inaccuracies.
47251         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47252         fractional results.  While not as nice from a QoI perspective, it
47253         is a quicker patch than correctly implementing decimal to binary
47254         rounding.
47255
47256 2008-03-31  Eric Blake  <ebb9@byu.net>
47257
47258         Guarantee a definition of NAN.
47259         * lib/math.in.h (NAN): Define if missing.
47260         * tests/test-math.c (main): Test it.
47261         * doc/posix-headers/math.texi (math.h): Document this.
47262         * lib/isnan.c (rpl_isnand): Use it.
47263         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47264         * tests/test-floorf1.c (NaN): Likewise.
47265         * tests/test-frexp.c (NaN): Likewise.
47266         * tests/test-isnand.c (NaN): Likewise.
47267         * tests/test-isnanf.c (NaN): Likewise.
47268         * tests/test-round1.c (NaN): Likewise.
47269         * tests/test-roundf1.c (NaN): Likewise.
47270         * tests/test-snprintf-posix.h (NaN): Likewise.
47271         * tests/test-sprintf-posix.h (NaN): Likewise.
47272         * tests/test-trunc1.c (NaN): Likewise.
47273         * tests/test-truncf1.c (NaN): Likewise.
47274         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47275         * tests/test-vasprintf-posix.c (NaN): Likewise.
47276         * modules/isnand-nolibm (Depends-on): Add math.
47277         * modules/isnanf-nolibm (Depends-on): Likewise.
47278         * modules/isnanl (Depends-on): Likewise.
47279         * modules/isnanl-nolibm (Depends-on): Likewise.
47280         * modules/snprintf-posix-tests (Depends-on): Likewise.
47281         * modules/sprintf-posix-tests (Depends-on): Likewise.
47282         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47283         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47284         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47285         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47286
47287 2008-03-31  Bruno Haible  <bruno@clisp.org>
47288
47289         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47290         * doc/posix-functions/strtod.texi: Likewise.
47291
47292 2008-03-31  Bruno Haible  <bruno@clisp.org>
47293
47294         * tests/test-strtod.c (main): Don't use C99 syntax.
47295
47296 2008-03-31  Bruno Haible  <bruno@clisp.org>
47297
47298         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47299         Reported by Eric Blake.
47300
47301 2008-03-31  Jim Meyering  <meyering@redhat.com>
47302
47303         Don't compare actual signbit return values.
47304         * tests/test-strtod.c (main): Rather, compare only their
47305         zero/non-zero nature.
47306
47307 2008-03-31  Eric Blake  <ebb9@byu.net>
47308
47309         More strtod documentation.
47310         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47311         failures as distinct bugs.
47312
47313 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47314
47315         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47316         Problem reported by Erik Benada in
47317         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47318
47319 2008-03-30  Bruno Haible  <bruno@clisp.org>
47320
47321         * tests/test-strtod.c: Add comments about which assertion fails on which
47322         platform.
47323         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47324
47325 2008-03-30  Eric Blake  <ebb9@byu.net>
47326
47327         Test signbit behavior on zeros.
47328         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47329         (test_signbitd, test_signbitl): Likewise.
47330
47331         More strtod touchups.
47332         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47333         sign of negative underflow, for now.  Use .5, not .1.
47334         * doc/posix-functions/strtod.texi (strtod): Mention these
47335         limitations.
47336         Reported by Jim Meyering.
47337
47338 2008-03-30  Bruno Haible  <bruno@clisp.org>
47339
47340         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47341         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47342
47343 2008-03-30  Bruno Haible  <bruno@clisp.org>
47344
47345         Avoid failure when attempting to return empty iconv results on some
47346         platforms.
47347         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47348         allocation, don't report ENOMEM when the resulting string is empty.
47349
47350 2008-03-30  Bruno Haible  <bruno@clisp.org>
47351
47352         Fix buffer overrun.
47353         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47354         Don't consider the width for tmp_length. Check count against tmp_length
47355         before doing the padding. Ensure enough allocation during padding.
47356
47357 2008-03-30  Eric Blake  <ebb9@byu.net>
47358
47359         strtod touchups.
47360         * lib/strtod.c (strtod): Avoid compiler warnings.
47361         Reported by Jim Meyering.
47362
47363 2008-03-30  Bruno Haible  <bruno@clisp.org>
47364
47365         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47366         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47367         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47368         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47369         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47370         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47371         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47372         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47373
47374         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47375         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47376         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47377         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47378         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47379         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47380         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47381         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47382
47383         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47384         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47385         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47386         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47387         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47388         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47389         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47390         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47391
47392         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47393         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47394
47395         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47396         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47397
47398         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47399         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47400
47401         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47402         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47403         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47404
47405         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47406         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47407         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47408
47409         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47410         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47411         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47412
47413         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47414         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47415         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47416
47417         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47418         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47419         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47420         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47421         (Depends-on): Add EOVERFLOW.
47422         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47423         (Depends-on): Add EOVERFLOW.
47424         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47425         (Depends-on): Add EOVERFLOW.
47426         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47427         (Depends-on): Add EOVERFLOW.
47428         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47429         (Depends-on): Add EOVERFLOW.
47430         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47431         (Depends-on): Add EOVERFLOW.
47432         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47433         (Depends-on): Add EOVERFLOW.
47434         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47435         (Depends-on): Add EOVERFLOW.
47436
47437         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47438         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47439         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47440
47441         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47443         * modules/snprintf (Depends-on): Add EOVERFLOW.
47444
47445         * lib/poll.c (EOVERFLOW): Remove fallback.
47446         * modules/poll (Depends-on): Add EOVERFLOW.
47447
47448         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47449         * modules/getugroups (Depends-on): Add EOVERFLOW.
47450
47451         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47452         * modules/getdelim (Depends-on): Add EOVERFLOW.
47453
47454         * lib/ftell.c (EOVERFLOW): Remove fallback.
47455         * modules/ftell (Depends-on): Add EOVERFLOW.
47456
47457         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47459         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47460
47461         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47462
47463         * modules/EOVERFLOW-tests: New file.
47464         * tests/test-EOVERFLOW.c: New file.
47465
47466         * modules/EOVERFLOW: New file.
47467         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47468
47469 2008-03-30  Bruno Haible  <bruno@clisp.org>
47470
47471         Fix bug introduced on 2007-06-10.
47472         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47473         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47474
47475 2008-03-30  Bruno Haible  <bruno@clisp.org>
47476
47477         Improve freadseek's efficiency after ungetc.
47478         * lib/freadseek.c: Include freadahead.h.
47479         (freadptrinc): New function, extracted from freadseek.
47480         (freadseek): Use it in a loop. Use freadahead to determine the number
47481         of loop iterations.
47482         * modules/freadseek (Depends-on): Add freadahead.
47483         (configure.ac): Require AC_C_INLINE.
47484
47485 2008-03-30  Bruno Haible  <bruno@clisp.org>
47486
47487         * lib/freadseek.c (freadseek): Don't ignore the return value of
47488         freadptr.
47489
47490 2008-03-29  Eric Blake  <ebb9@byu.net>
47491
47492         Add hex float support.
47493         * modules/strtod (Depends-on): Add c-ctype.
47494         (Link): Mention POW_LIB.
47495         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47496         whitespace between 'e' and exponent.
47497         * tests/test-strtod.c (main): Enable hex float tests.
47498         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47499         now provides.
47500
47501         Document various strtod bugs, with some fixes.
47502         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47503         "-0x", "inf", "nan", and hex constants.
47504         * doc/posix-functions/atof.texi (atof): Likewise.
47505         * modules/stdlib (Makefile.am): Support strtod.
47506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47507         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47508         detect additional strtod bugs.
47509         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47510         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47511         bool where appropriate.  Parse 'inf' and 'nan'.
47512         * tests/test-strtod.c: New file.
47513         * modules/strtod (Depends-on): Add stdbool, stdlib.
47514         (configure.ac): Turn on module indicator.
47515         * modules/strtod-tests: New module.
47516
47517 2008-03-29  Eric Blake  <ebb9@byu.net>
47518
47519         Fix ftell on mingw.
47520         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47521         * modules/ftell-tests (Depends-on): Add binary-io.
47522         * modules/ftello-tests (Depends-on): Likewise.
47523         * tests/test-ftell.c (main): Enhance test to cover behavior after
47524         ungetc.  Enforce binary mode.
47525         * tests/test-ftello.c (main): Likewise.
47526
47527         Pass test-freadseek on cygwin.
47528         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47529         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47530         ungetc buffer.
47531
47532         * tests/test-fflush2.c (main): Fix typo.
47533
47534 2008-03-29  Bruno Haible  <bruno@clisp.org>
47535
47536         * tests/test-fflush2.c (main): Temporarily disable the contents of
47537         this test.
47538         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47539         Reported by Eric Blake.
47540
47541 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47542
47543         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47544         (GC_SHA224_DIGEST_SIZE): Add.
47545
47546         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47547         (gc_hash_digest_length): Likewise.
47548         (gc_hash_buffer): Likewise.
47549
47550 2008-03-25  Bruno Haible  <bruno@clisp.org>
47551
47552         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47553         detail which gettext release to use.
47554         Reported by Simon Josefsson.
47555
47556 2008-03-26  Jim Meyering  <meyering@redhat.com>
47557
47558         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47559         * modules/gnumakefile (clean-GNUmakefile): Also, use
47560         test ... && ... || : syntax rather than if-then ... fi.
47561
47562         gnumakefile: Don't double-quote-expand $(VPATH) value.
47563         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47564
47565 2008-03-24  Eric Blake  <ebb9@byu.net>
47566
47567         Alter GNUmakefile to install into top directory.
47568         * modules/maintainer-makefile: Split, and add dependency...
47569         * modules/gnumakefile: to this new module.
47570         * build-aux/GNUmakefile: Move...
47571         * top/GNUmakefile: ...here.
47572         * build-aux/maint.mk: Move...
47573         * top/maint.mk: ...here.
47574         * MODULES.html.sh (Support for maintaining...): Document new
47575         module.
47576
47577 2008-03-23  Bruno Haible  <bruno@clisp.org>
47578
47579         * gnulib-tool: New options --vc-files, --no-vc-files.
47580         (func_usage): Document them.
47581         (vc_files): New variable.
47582         (func_import): Consider vc_files.
47583         (func_create_testdir): Set vc_files to empty.
47584         Suggested by Jim Meyering and Karl Berry.
47585
47586 2008-03-23  Bruno Haible  <bruno@clisp.org>
47587
47588         Fix regex compilation error on HP-UX 11.
47589         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47590         * modules/regex (Files): Add m4/mbstate_t.m4.
47591         Reported by Ton Voon <ton.voon@altinity.com>.
47592
47593 2008-03-23  Bruno Haible  <bruno@clisp.org>
47594
47595         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47596
47597 2008-03-23  Eric Blake  <ebb9@byu.net>
47598             Bruno Haible  <bruno@clisp.org>
47599
47600         Install files from top/ in the destination directory.
47601         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47602         augmentation also for the files from top/.
47603         (func_import, func_create_testdir): Rewrite file names:
47604         top/filename -> filename.
47605
47606 2008-03-23  Bruno Haible  <bruno@clisp.org>
47607
47608         Tweak "gnulib --version" output.
47609         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47610
47611 2008-03-23  Bruno Haible  <bruno@clisp.org>
47612
47613         Tweak "gnulib --version" output.
47614         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47615         rather than contents of ChangeLog, when possible.
47616
47617 2008-03-21  Eric Blake  <ebb9@byu.net>
47618
47619         More --version tweaks.
47620         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47621         date of last ChangeLog entry.
47622
47623 2008-03-21  Jim Meyering  <meyering@redhat.com>
47624
47625         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47626
47627 2008-03-20  Eric Blake  <ebb9@byu.net>
47628
47629         VPATH fix.
47630         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47631
47632 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47633
47634         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47635         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47636
47637 2008-03-20  Eric Blake  <ebb9@byu.net>
47638
47639         Sync GNUmakefile with coreutils.
47640         * build-aux/GNUmakefile (have-Makefile): Rename...
47641         (_have-Makefile): ...to this, for namespace consideration.
47642         (GNUmakefile.cfg): Include, if present.
47643         (_autoreconf): Define a default.
47644         (_is-dist-target): New rule for rebuilds to pick up intra-release
47645         version.
47646         (maint-cfg.mk): Rename...
47647         (cfg.mk): ...to this.
47648
47649 2008-03-18  Jim Meyering  <meyering@redhat.com>
47650
47651         New script and module: mktempd
47652         * MODULES.html.sh (maint+release support): Add mktempd.
47653         * build-aux/mktempd: New file.
47654         * modules/mktempd: New file.
47655
47656 2008-03-15  Jim Meyering  <meyering@redhat.com>
47657
47658         Undo last change.
47659         * lib/sha1.c, lib/md5.c: 63 != ~63.
47660         Reported by Andreas Schwab.
47661
47662         sha1.c, md5.c: Hoist a redundant expression.
47663         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47664         "ctx->buflen" only once, before calling *_process_block.
47665         * lib/md5.c (md5_process_bytes): Likewise.
47666
47667 2008-03-14  Eric Blake  <ebb9@byu.net>
47668
47669         Bump copyright year in files generated by gnulib-tool.
47670         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47671         gnulib-tool, rather than hard-coding it.
47672
47673         Fix 'gnulib-tool --version' output to work with git.
47674         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47675         (startup): ...here.
47676         (func_version): Use it to invoke git-version-gen, rather than
47677         relying on CVS keyword expansion.  Modernize wording.
47678         (cvsdatestamp, last_checkin_date, version): Kill unused
47679         variables.
47680
47681 2008-03-12  Jim Meyering  <meyering@redhat.com>
47682
47683         Recognize optional cast of the argument to free.
47684         * build-aux/useless-if-before-free: Update regexps.
47685
47686         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47687
47688 2008-03-11  Bruno Haible  <bruno@clisp.org>
47689
47690         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47691         by a single package.
47692         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47693         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47694         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47695         Reported by Sam Steingold <sds@gnu.org>.
47696
47697 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47698
47699         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47700         repositories.
47701
47702 2008-03-11  Bruno Haible  <bruno@clisp.org>
47703
47704         Avoid conflicts between local macro definitions.
47705         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47706         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47707
47708 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47709             Bruno Haible  <bruno@clisp.org>
47710
47711         Make va_copy work with some version of xlc on AIX 5.1.
47712         * lib/stdarg.in.h: New file.
47713         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47714         On AIX, use a <stdarg.h> file substitute.
47715         * modules/stdarg (Files): Add lib/stdarg.in.h.
47716         (Depends-on): Add include_next.
47717         (Makefile.am): Build a stdarg.h substitute if requested.
47718         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47719
47720 2008-03-10  Bruno Haible  <bruno@clisp.org>
47721
47722         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47723         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47724         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47725
47726 2008-03-10  Bruno Haible  <bruno@clisp.org>
47727
47728         * modules/stdlib (Depends-on): Add include_next, remove
47729         absolute-header.
47730
47731 2008-03-09  Bruno Haible  <bruno@clisp.org>
47732
47733         * lib/freadahead.h (freadahead): Document more precisely.
47734         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47735         the sum of both buffer sizes.
47736         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47737         * NEWS: Document the change.
47738
47739 2008-03-09  Bruno Haible  <bruno@clisp.org>
47740
47741         Extend freadptr to return also the buffer size.
47742         * lib/freadptr.h (freadptr): Add sizep argument.
47743         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47744         (freadptr): Add sizep argument. Determine buffer size like freadahead
47745         does.
47746         * tests/test-freadptr.c: Don't include freadahead.h.
47747         (main): Adapt for new calling convention of freadptr.
47748         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47749         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47750         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47751         tests/test-freadptr2.sh.
47752         (Depends): Remove freadahead.
47753         (TESTS): Add test-freadptr2.sh.
47754         (check_PROGRAMS): Add test-freadptr2.
47755
47756 2008-03-09  Bruno Haible  <bruno@clisp.org>
47757
47758         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47759         Report and solution by Simon Josefsson.
47760
47761 2008-03-06  Bruno Haible  <bruno@clisp.org>
47762
47763         Make fflush after ungetc work on BSD platforms.
47764         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47765         * tests/test-fflush2.c: New file.
47766         * tests/test-fflush2.sh: New file.
47767         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47768         tests/test-fflush2.c.
47769         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47770         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47771
47772 2008-03-06  Eric Blake  <ebb9@byu.net>
47773
47774         Likewise for ftello.
47775         * modules/ftello (Dependencies): Add extensions.
47776         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47777
47778 2008-03-06  Bruno Haible  <bruno@clisp.org>
47779
47780         * modules/fseeko (Dependencies): Add extensions.
47781         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47782         Needed on glibc systems.
47783
47784 2008-03-06  Bruno Haible  <bruno@clisp.org>
47785
47786         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47787         email address.
47788         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47789
47790 2008-03-06  Bruno Haible  <bruno@clisp.org>
47791
47792         * users.txt: Add libgnupdf.
47793
47794 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47795
47796         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47797         (Header File Substitutes, Function Substitutes,
47798         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47799         (Build robot for gnulib): Fix typo.
47800
47801 2008-03-06  Bruno Haible  <bruno@clisp.org>
47802
47803         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47804         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47805
47806 2008-03-06  Bruno Haible  <bruno@clisp.org>
47807
47808         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47809         * doc/gnulib.texi: Include it.
47810
47811 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47812
47813         * modules/func (License): Change license to unlimited; there was
47814         no LGPL parts in the module anyway.
47815
47816 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47817
47818         * modules/__func__: Renamed to modules/func.
47819         * modules/__func__-tests: Renamed to modules/func-tests.
47820         * tests/test-__func__.c: Renamed to tests/test-func.c.
47821         * m4/__func__.m4: Renamed to m4/func.m4.
47822         * doc/gnulib.texi (__func__): Section renamed to func.
47823         Suggested by Eric Blake <ebb9@byu.net>.
47824
47825 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47826
47827         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47828         about __func__.  Make example self-contained.  Suggested by Eric
47829         Blake <ebb9@byu.net>.
47830
47831         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47832         Suggested by Eric Blake <ebb9@byu.net>.
47833
47834 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47835
47836         * modules/__func__: New file.
47837         * modules/__func__-tests: New file.
47838         * tests/test-__func__.c: New file.
47839         * m4/__func__.m4: New file.
47840         * doc/gnulib.texi (__func__): Document __func__ module.
47841
47842 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47843
47844         * modules/byteswap (License): Re-license as LGPLv2+.
47845
47846 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47847
47848         * doc/Makefile: Add pdf target.
47849
47850 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47851
47852         * modules/inline (License): Use 'unlimited', since there are only
47853         *.m4 files in this module.
47854
47855 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47856             Bruno Haible  <bruno@clisp.org>
47857
47858         Add support for HP C 7.1 on OpenVMS 8.3.
47859         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47860
47861 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47862
47863         Update VMS specifics.
47864         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47865
47866 2008-03-02  Jim Meyering  <meyering@redhat.com>
47867
47868         Remove the last dependency on the "free" module.
47869         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47870         Reported by Bob Proulx.
47871
47872         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47873
47874         Remove useless "if" tests before free.  Deprecate "free" module.
47875         * doc/posix-functions/free.texi: Mention that this
47876         module is no longer useful.
47877         * modules/free (Notice): Say this module is obsolete.
47878         * modules/readutmp (Depends-on): Remove free.
47879         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47880         * lib/putenv.c (putenv): Likewise.
47881         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47882         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47883         * tests/test-c-strcasestr.c (main): Likewise.
47884         * tests/test-c-strstr.c (main): Likewise.
47885         * tests/test-mbscasestr1.c (main): Likewise.
47886         * tests/test-mbscasestr2.c (main): Likewise.
47887         * tests/test-mbsstr1.c (main): Likewise.
47888         * tests/test-mbsstr2.c (main): Likewise.
47889         * tests/test-memmem.c (main): Likewise.
47890         * tests/test-strcasestr.c (main): Likewise.
47891         * tests/test-striconv.c (main): Likewise.
47892         * tests/test-striconveh.c (main): Likewise.
47893         * tests/test-striconveha.c (main): Likewise.
47894         * tests/test-strstr.c (main): Likewise.
47895
47896         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47897
47898         bootstrap: sync from coreutils again
47899         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47900
47901 2008-03-01  Jim Meyering  <meyering@redhat.com>
47902
47903         bootstrap: sync from coreutils
47904         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47905         also when the target doesn't exist.
47906
47907 2008-03-01  Eric Blake  <ebb9@byu.net>
47908
47909         Fix bugs in last patch.
47910         * lib/memchr2.c (memchr2): Fix typo.
47911         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47912         extension.
47913         Reported by Bruce Korb.
47914
47915         New module 'memchr2'.
47916         * modules/memchr2: New file.
47917         * modules/memchr2-tests: Likewise.
47918         * lib/memchr2.h: Likewise.
47919         * lib/memchr2.c: Likewise, based on memchr.c.
47920         * tests/test-memchr2.c: New test.
47921         * MODULES.html.sh (String handling): Add memchr2.
47922
47923 2008-02-29  Bruno Haible  <bruno@clisp.org>
47924
47925         * modules/freadseek-tests: New file.
47926         * tests/test-freadseek.sh: New file.
47927         * tests/test-freadseek.c: New file.
47928
47929         New module 'freadseek'.
47930         * modules/freadseek: New file.
47931         * lib/freadseek.h: New file.
47932         * lib/freadseek.c: New file.
47933         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47934
47935 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47936
47937         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47938         wydawca.
47939
47940         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47941         program_invocation_name and program_invocation_short_name are
47942         present.
47943
47944 2008-02-28  Bruno Haible  <bruno@clisp.org>
47945
47946         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47947         * tests/test-freadptr.sh: Also test non-seekable stdin.
47948
47949 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47950
47951         * build-aux/bootstrap (source_base, m4_base)
47952         (doc_base, tests_base): New variables.
47953         (gnulib_tool_options): Do not hardcode base directories, use
47954         the above variables instead.
47955
47956 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47957
47958         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47959
47960 2008-02-28  Bruno Haible  <bruno@clisp.org>
47961
47962         * modules/freadptr-tests: New file.
47963         * tests/test-freadptr.sh: New file.
47964         * tests/test-freadptr.c: New file.
47965
47966         New module 'freadptr'.
47967         * modules/freadptr: New file.
47968         * lib/freadptr.h: New file.
47969         * lib/freadptr.c: New file.
47970         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47971
47972 2008-02-26  Karl Berry  <karl@freefriends.org>
47973
47974         Sync from Libtool:
47975         * libltdl/argz.c (argz_add, argz_count): New functions.
47976         * libltdl/argz.in.h: Declare them.
47977         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47978
47979 2008-02-22  Bruno Haible  <bruno@clisp.org>
47980
47981         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47982         is a pointer type.  Needed for HP-UX 10.
47983         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47984         * doc/posix-functions/gmtime_r.texi: Likewise.
47985         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47986
47987 2008-02-24  Bruno Haible  <bruno@clisp.org>
47988
47989         * modules/environ-tests: New file.
47990         * tests/test-environ.c: New file.
47991
47992         New module 'environ'.
47993         * modules/environ: New file.
47994         * lib/unistd.in.h (environ): New declaration.
47995         * m4/environ.m4: New file.
47996         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47997         after use.
47998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47999         HAVE_DECL_ENVIRON.
48000         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48001         HAVE_DECL_ENVIRON.
48002         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48003         wrong claim that 'environ' is missing on some systems.
48004         * modules/execute (Depends-on): Add environ.
48005         * lib/execute.c (environ): Remove fallback declaration.
48006         * modules/pipe (Depends-on): Add environ.
48007         * lib/pipe.c (environ): Remove fallback declaration.
48008         * modules/setenv (Depends-on): Add environ.
48009         * lib/setenv.c (environ): Remove fallback declaration.
48010         * modules/unsetenv (Depends-on): Add environ.
48011         * lib/unsetenv.c (environ): Remove fallback declaration.
48012         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48013         m4/environ.m4.
48014         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48015         (gl_PREREQ_UNSETENV): Likewise.
48016
48017 2008-02-24  Bruno Haible  <bruno@clisp.org>
48018
48019         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48020
48021 2008-02-20  Bob Proulx  <bob@proulx.com>
48022
48023         Enable use of older two part flavor 'git describe'.
48024         * build-aux/git-version-gen: If using the older two part flavor of
48025         git version then recreate the third part now present in the
48026         newer three part flavor of git describe.
48027
48028 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48029
48030         * lib/fts.c (fts_build): Typo correction to comment.
48031
48032 2008-02-17  Bruno Haible  <bruno@clisp.org>
48033
48034         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48035         generating no-op conflicts.
48036
48037 2008-02-17  Bruno Haible  <bruno@clisp.org>
48038
48039         Speed up by 10%.
48040         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48041         result_entries, rather than an index-based loop.
48042
48043 2008-02-17  Bruno Haible  <bruno@clisp.org>
48044
48045         Speed up by 25%.
48046         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48047         'hashcode_cached'.
48048         (entry_create): New function.
48049         (entry_hashcode): Use the cached hashcode if possible.
48050         (read_changelog_file, try_split_merged_entry): Use entry_create.
48051
48052 2008-02-17  Bruno Haible  <bruno@clisp.org>
48053
48054         Speed up from O(n^2) to O(n) for long ChangeLog files.
48055         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48056         (read_changelog_file): Change implementation of entries_reversed list
48057         to rbtreehash.
48058         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48059
48060 2008-02-17  Bruno Haible  <bruno@clisp.org>
48061
48062         New option --split-merged-entry.
48063         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48064         (find_paragraph_end, try_split_merged_entry): New functions.
48065         (long_options): Add option --split-merged-entry.
48066         (usage): Document option --split-merged-entry.
48067         (main): Implement option --split-merged-entry.
48068         Reported by Eric Blake.
48069
48070 2008-02-17  Bruno Haible  <bruno@clisp.org>
48071
48072         * lib/git-merge-changelog.c: Include c-strstr.h.
48073         (main): Support the "git pull --rebase" situation.
48074         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48075         Reported by Eric Blake.
48076
48077 2008-02-16  Eric Blake  <ebb9@byu.net>
48078
48079         Avoid doubling \ in common case of "c-maybe" quoting style.
48080         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48081         eliding outer quotes.
48082         * lib/quotearg.h: Document this.
48083         * tests/test-quotearg.c (result_strings, inputs, results_g)
48084         (flag_results, locale_results): Test it by adding a new string to
48085         each test group.
48086         (compare_strings): Test new string.
48087
48088 2008-02-13  Eric Blake  <ebb9@byu.net>
48089
48090         Avoid trigraph quoting in default output.
48091         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48092         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48093         unless explicitly requested.
48094         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48095
48096 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48097
48098         Don't rely on signed integer overflowing to negative value.
48099         * lib/getugroups.c (getugroups): Include <limits.h>.
48100         Instead, compare against INT_MAX, and increment only if the test passes.
48101
48102 2008-02-13  Jim Meyering  <meyering@redhat.com>
48103         and Eric Blake  <ebb9@byu.net>
48104
48105         Avoid shadowing warning and compile errors on Linux.
48106         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48107         forwarding macros on Linux.
48108         (dcgettext): Define a stub, for Linux.
48109         (results_g, main): Avoid warnings.
48110
48111 2008-02-12  Eric Blake  <ebb9@byu.net>
48112
48113         Silence warning in last patch.
48114         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48115
48116         Quotearg part 4: add tests, fix c-maybe colon quoting.
48117         * lib/quotearg.h: Improve documentation.
48118         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48119         escapes when adding outer quotes.  When quoting trigraphs, use
48120         valid C notation.  When quoting NUL, omit extra characters if next
48121         character is not digit.  Alter prototype.
48122         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48123         callers.
48124         * modules/quotearg-tests: New module.
48125         * tests/test-quotearg.c: New test.
48126
48127 2008-02-07  Eric Blake  <ebb9@byu.net>
48128
48129         Quotearg part 3: add flag to control outer quote elision.
48130         * lib/quotearg.h (c_maybe_quoting_style): New style.
48131         (enum quoting_flags): Better documentation of flags.
48132         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48133         c-maybe style.
48134         (quotearg_buffer_restyled): Handle new flag to elide outer
48135         quotes.
48136
48137         Quotearg part 2: add flag that can control NUL elision.
48138         * lib/quotearg.h (set_quoting_flags): New prototype.
48139         * lib/quotearg.c (struct quoting_options): Add flag field.
48140         (set_quoting_flags): New function.
48141         (quotearg_buffer_restyled): Add flags parameter.
48142         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48143         (quotearg_n_options): Set the flag, since length cannot be
48144         returned.
48145         (quoting_options_from_style): Default flags correctly.
48146
48147         Quotearg part 1: more wrappers, restore quotearg_char state.
48148         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48149         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48150         (quotearg_colon_mem): New wrappers.
48151         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48152         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48153         functions.
48154         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48155         (quotearg_colon_mem): New functions.
48156
48157 2008-02-11  Bruno Haible  <bruno@clisp.org>
48158
48159         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48160         library in the current directory: it does not work with parallel make.
48161         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48162
48163 2008-02-11  Bruno Haible  <bruno@clisp.org>
48164
48165         * .gitattributes: New file.
48166
48167 2008-02-11  Jim Meyering  <meyering@redhat.com>
48168
48169         useless-if-before-free: Fix reversed exit values.
48170         * build-aux/useless-if-before-free: Use correct values
48171         for EXIT_MATCH and EXIT_NO_MATCH.
48172
48173         * build-aux/useless-if-before-free: Close stdout carefully.
48174
48175 2008-02-10  Bruno Haible  <bruno@clisp.org>
48176
48177         New module 'git-merge-changelog'.
48178         * modules/git-merge-changelog: New file.
48179         * lib/git-merge-changelog.c: New file.
48180
48181 2008-02-10  Jim Meyering  <meyering@redhat.com>
48182
48183         useless-if-before-free: New option: --list (-l).
48184
48185         useless-if-before-free: Don't exit immediately upon open failure.
48186         * build-aux/useless-if-before-free: Exit 2 for errors.
48187         Upon failure to open a file, don't exit immediately.
48188         Rather, just warn and continue with any remaining files.
48189
48190 2008-02-10  Bruno Haible  <bruno@clisp.org>
48191
48192         New abstract list operation 'node_set_value'.
48193         * lib/gl_list.h (gl_list_node_set_value): New function.
48194         (struct gl_list_implementation): New field node_set_value.
48195         * lib/gl_list.c (gl_list_node_set_value): New function.
48196         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48197         (gl_array_list_implementation): Update.
48198         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48199         (gl_carray_list_implementation): Update.
48200         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48201         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48202         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48203         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48204         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48205         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48206         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48207         Update.
48208         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48209         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48210         (gl_sublist_list_implementation): Update.
48211
48212 2008-02-10  Bruno Haible  <bruno@clisp.org>
48213
48214         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48215         Needed when ELEMENT is #defined to 'some_type *'.
48216
48217 2008-02-10  Jim Meyering  <meyering@redhat.com>
48218
48219         New script and module: useless-if-before-free
48220         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48221         * build-aux/useless-if-before-free: New file.
48222         * modules/useless-if-before-free: New file.
48223
48224         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48225
48226         xstrtol_error: Fix typo.
48227         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48228         s/exit_failure/exit_status/.
48229
48230 2008-02-09  Jim Meyering  <meyering@redhat.com>
48231
48232         New script and module: gitlog-to-changelog
48233         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48234         * modules/gitlog-to-changelog: New file.
48235         * build-aux/gitlog-to-changelog: New file.
48236
48237 2008-02-08  Jim Meyering  <meyering@redhat.com>
48238
48239         Avoid two "parameter unused" warnings.
48240         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48241         Mark "st" as used.
48242
48243         Use "git COMMAND", not "git-COMMAND".
48244         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48245         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48246         * build-aux/git-version-gen: Use "git status", not "git-status".
48247
48248 2008-02-07  Bruno Haible  <bruno@clisp.org>
48249
48250         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48251         Avoids a crash on Windows Vista.
48252         Reported by Adam Strzelecki <ono@java.pl> via
48253         Simon Josefsson <simon@josefsson.org>.
48254
48255 2008-02-06  Bruno Haible  <bruno@clisp.org>
48256
48257         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48258         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48259         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48261         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48262         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48263         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48264         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48265         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48266         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48267         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48268         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48269         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48270         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48271         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48272         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48273         left-adjust flag.
48274         * tests/test-snprintf-posix.h (test_function): Likewise.
48275         * tests/test-sprintf-posix.h (test_function): Likewise.
48276         * tests/test-vasprintf-posix.c (test_function): Likewise.
48277         * doc/posix-functions/fprintf.texi: Update.
48278         * doc/posix-functions/printf.texi: Update.
48279         * doc/posix-functions/snprintf.texi: Update.
48280         * doc/posix-functions/sprintf.texi: Update.
48281         * doc/posix-functions/vfprintf.texi: Update.
48282         * doc/posix-functions/vprintf.texi: Update.
48283         * doc/posix-functions/vsnprintf.texi: Update.
48284         * doc/posix-functions/vsprintf.texi: Update.
48285         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48286
48287 2008-02-06  Bruno Haible  <bruno@clisp.org>
48288
48289         Fix bug introduced on 2008-01-26.
48290         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48291
48292 2008-02-06  Bruno Haible  <bruno@clisp.org>
48293
48294         Fix bug introduced on 2007-06-10.
48295         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48296         !NEED_PRINTF_FLAG_ZERO.
48297
48298 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48299
48300         getloadavg: use libperfstat on AIX5
48301         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48302
48303 2008-02-03  Bruno Haible  <bruno@clisp.org>
48304
48305         * lib/diffseq.h: Add comments about required #includes.
48306         Reported by Michael Biggs <gnulib@doubleplum.net>.
48307
48308 2008-02-01  Bruno Haible  <bruno@clisp.org>
48309
48310         * users.txt: Add gnuit.
48311
48312 2008-01-31  Bruno Haible  <bruno@clisp.org>
48313
48314         * lib/md4.c (set_uint32): Mark as inline.
48315         * lib/md5.c (set_uint32): Likewise.
48316         * lib/sha1.c (set_uint32): Likewise.
48317         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48318         * m4/md5.m4 (gl_MD5): Likewise.
48319         * m4/sha1.m4 (gl_SHA1): Likewise.
48320
48321 2008-01-31  Jim Meyering  <meyering@redhat.com>
48322
48323         Use "sizeof VAR", rather than a literal "4".
48324         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48325         * lib/md4.c (md4_read_ctx): Likewise.
48326         * lib/sha1.c (sha1_read_ctx): Likewise.
48327
48328 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48329
48330         * tests/test-sha1.c: New file, based on test-md5.c.
48331
48332         * modules/crypto/sha1-tests: New file.
48333
48334 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48335
48336         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48337
48338 2008-01-31  Jim Meyering  <meyering@redhat.com>
48339
48340         Prefer "sizeof v" over the equivalent "4".
48341         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48342         * lib/md5.c (set_uint32): Likewise.
48343         * lib/sha1.c (set_uint32): Likewise.
48344
48345 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48346
48347         * lib/sha1.c (set_uint32): Mark function as static.
48348
48349 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48350
48351         md2: clarify comments to say that alignment is not required.
48352         * lib/md2.h: Remove warning about alignment in comment.
48353         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48354         never been required.
48355
48356 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48357
48358         md4: adapt alignment constraint fix from sha1.
48359         * lib/md4.c (set_uint32): New function, from sha1.c
48360         (md4_read_ctx): Use it.
48361         (md4_finish_ctx): Doc fix.
48362         * lib/md4.h: Doc fix.
48363
48364 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48365
48366         md5: adapt alignment constraint fix from sha1.
48367         * lib/md5.c (set_uint32): New function, from sha1.c
48368         (md5_read_ctx): Use it.
48369         (md5_finish_ctx): Doc fix.
48370         * lib/md5.h: Doc fix.
48371
48372 2008-01-30  Peter Palfrader  <weasel@debian.org>
48373
48374         sha1: remove the result buffer alignment constraint
48375         * lib/sha1.c (set_uint32): New function.
48376         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48377         constraint.
48378         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48379         * lib/sha1.h: Likewise.
48380
48381 2008-01-30  Andreas Schwab  <schwab@suse.de>
48382             Bruno Haible  <bruno@clisp.org>
48383
48384         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48385         correct definition of LDBL_MIN_EXP.
48386
48387 2008-01-30  Karl Berry  <karl@gnu.org>
48388
48389         * config/srclist-update: try to preserve x bit on updates.
48390         * config/srclistvars.sh: update for karl.
48391
48392 2008-01-29  Jim Meyering  <meyering@redhat.com>
48393
48394         vasnprintf.c: Avoid warning about unused label
48395         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48396         "overflow" label definition and associated code with the
48397         same cpp condition that guards the sole use of that label.
48398
48399 2008-01-26  Bruno Haible  <bruno@clisp.org>
48400
48401         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48402         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48403         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48404         * lib/isnanl-nolibm.h (isnanl): Likewise.
48405         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48406
48407 2008-01-26  Bruno Haible  <bruno@clisp.org>
48408
48409         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48410         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48411
48412 2008-01-26  Bruno Haible  <bruno@clisp.org>
48413
48414         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48415         GCC >= 4.0 built-in.
48416         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48417
48418 2008-01-26  Bruno Haible  <bruno@clisp.org>
48419
48420         Rename isnan, applicable to 'double' only, to isnand.
48421         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48422         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48423         (configure.ac): Update.
48424         (Include): Replace "isnan.h" with "isnand.h".
48425         * m4/isnand.m4: Renamed from m4/isnan.m4.
48426         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48427         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48428         instead of isnan.c.
48429         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48430         instead of HAVE_ISNAN_IN_LIBC.
48431         (isnand): Renamed from isnan.
48432         * lib/isnand.c: New file.
48433         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48434         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48435         (Makefile.am): Update.
48436         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48437         Include isnand.h instead of isnan.h.
48438         (main): Test isnand instead of isnan.
48439         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48440         isnan-nolibm.
48441         * modules/frexp (Depends-on): Likewise.
48442         * modules/frexp-tests (Depends-on): Likewise.
48443         * modules/frexp-nolibm (Depends-on): Likewise.
48444         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48445         * modules/isfinite (Depends-on): Likewise.
48446         * modules/round-tests (Depends-on): Likewise.
48447         * modules/signbit (Depends-on): Likewise.
48448         * modules/signbit-tests (Depends-on): Likewise.
48449         * modules/snprintf-posix (Depends-on): Likewise.
48450         * modules/sprintf-posix (Depends-on): Likewise.
48451         * modules/trunc-tests (Depends-on): Likewise.
48452         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48453         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48454         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48455         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48456         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48457         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48458         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48459         * modules/vasnprintf-posix (Depends-on): Likewise.
48460         * modules/vasprintf-posix (Depends-on): Likewise.
48461         * modules/vfprintf-posix (Depends-on): Likewise.
48462         * modules/vsnprintf-posix (Depends-on): Likewise.
48463         * modules/vsprintf-posix (Depends-on): Likewise.
48464         * lib/frexp.c: Include isnand.h instead of isnan.h.
48465         (ISNAN): Set to isnand instead of isnan.
48466         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48467         (gl_isfinited): Use isnand instead of isnan.
48468         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48469         (gl_signbitd): Use isnand instead of isnan.
48470         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48471         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48472         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48473         (main): Use isnand instead of isnan.
48474         * tests/test-round1.c: Include isnand.h.
48475         (main): Use isnand instead of isnan.
48476         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48477         (ISNAN): Set to isnand instead of isnan.
48478         * tests/test-trunc1.c: Include isnand.h.
48479         (main): Use isnand instead of isnan.
48480         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48481         (equal): Use isnand instead of isnan.
48482         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48483         isnand-nolibm.
48484         * NEWS: Mention the change.
48485
48486 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48487             Bruno Haible  <bruno@clisp.org>
48488
48489         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48490         the GCC builtins for signbits are present and set
48491         REPLACE_SIGNBIT_USING_GCC if so.
48492         * lib/math.in.h (signbit): Define using GCC builtins if
48493         REPLACE_SIGNBIT_USING_GCC is set.
48494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48495         REPLACE_SIGNBIT_USING_GCC.
48496         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48497
48498 2008-01-25  Jim Meyering  <meyering@redhat.com>
48499
48500         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48501         * lib/poll.c: Include <config.h>, not "config.h".
48502         * tests/test-getaddrinfo.c: Likewise.
48503
48504 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48505
48506         * modules/sockets-tests: New file.
48507
48508 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48509
48510         * modules/sockets: New module, can be used to call WSA_Startup and
48511         WSA_Cleanup when needed.
48512
48513         * lib/sockets.h, lib/sockets.c: New files.
48514
48515         * m4/sockets.m4: New file.
48516
48517         * tests/test-sockets.c: New file.
48518
48519 2008-01-19  Bruno Haible  <bruno@clisp.org>
48520
48521         * doc/posix-headers: Renamed from doc/headers.
48522         * doc/posix-functions: Renamed from doc/functions.
48523         * doc/gnulib.texi: Update.
48524
48525 2008-01-19  Bruno Haible  <bruno@clisp.org>
48526
48527         * doc/glibc-functions/strcasestr.texi: Include contents of
48528         doc/functions/strcasestr.texi, fixing the list of platforms.
48529         * doc/functions/strcasestr.texi: Remove file.
48530
48531 2008-01-19  Bruno Haible  <bruno@clisp.org>
48532
48533         * doc/glibc-functions/memmem.texi: Include contents of
48534         doc/functions/memmem.texi.
48535         * doc/functions/memmem.texi: Remove file.
48536
48537 2008-01-18  Bruno Haible  <bruno@clisp.org>
48538
48539         * doc/glibc-functions/*.texi: New files.
48540         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48541         to use the new files.
48542
48543 2008-01-17  Bruno Haible  <bruno@clisp.org>
48544
48545         * tests/test-gethostname.c (main): Fix printf statement.
48546
48547 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48548
48549         * modules/gethostname-tests: New file.
48550
48551         * tests/test-gethostname.c: New file.
48552
48553 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48554
48555         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48556         used by the UNAME case.  Reported by Bruno Haible
48557         <bruno@clisp.org>.
48558
48559 2008-01-17  Eric Blake  <ebb9@byu.net>
48560
48561         Convert c-strcasestr to be more efficient.
48562         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48563         (Depends-on): Add c-strcase, remove malloca, strnlen.
48564         * tests/test-c-strcasestr.c (main): Enhance test.
48565         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48566
48567 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48568
48569         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48570         Use it in creating po/Makevars.
48571
48572 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48573
48574         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48575         Applications that requires it should initialize libgcrypt
48576         manually.
48577
48578 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48579
48580         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48581
48582 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48583
48584         Fix problem with getdate on mingw32 reported by Simon Josefsson
48585         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48586         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48587         tzname", when deciding whether to declare tzname.
48588         * lib/strftime.c (tzname): Likewise.
48589
48590 2008-01-15  Bruno Haible  <bruno@clisp.org>
48591
48592         Work around a MacOS X 10.5 bug in frexpl().
48593         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48594         * doc/functions/frexpl.texi: Document the bug.
48595         Reported by Elias Pipping <pipping@gentoo.org>.
48596
48597 2008-01-14  Eric Blake  <ebb9@byu.net>
48598
48599         Touch up previous patch.
48600         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48601         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48602
48603         Convert strcasestr module to use Two-Way algorithm.
48604         * modules/strcasestr-simple: New module, based on the old
48605         strcasestr, but with Two-Way rather than KMP.
48606         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48607         * lib/string.in.h (rpl_strcasestr): Declare.
48608         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48609         performance.
48610         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48611         * modules/string (Makefile.am): Support strcasestr.
48612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48613         * modules/strcasestr-tests (Depends-on): Check for alarm.
48614         * tests/test-strcasestr.c: Augment test.
48615         * lib/str-two-way.h: Clean up stray macro.
48616         * NEWS: Document new module.
48617         * MODULES.html.sh (string handling): Likewise.
48618         * doc/functions/strcasestr.texi: New file.
48619         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48620         here, since it is not a POSIX function.
48621
48622 2008-01-14  Colin Watson  <cjwatson@debian.org>
48623             Bruno Haible  <bruno@clisp.org>
48624
48625         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48626         works fine; if not, set REPLACE_STRSIGNAL.
48627         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48629         REPLACE_STRSIGNAL.
48630         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48631         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48632         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48633
48634 2008-01-14  Bruno Haible  <bruno@clisp.org>
48635
48636         * modules/strsignal (Include): Change to <string.h>.
48637
48638 2008-01-14  Colin Watson  <cjwatson@debian.org>
48639
48640         * modules/argp (Notice): Add a notice recommending to change
48641         XGETTEXT_OPTIONS.
48642         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48643
48644 2008-01-13  Colin Watson  <cjwatson@debian.org>
48645
48646         * modules/strsignal-tests: New file.
48647         * tests/test-strsignal.c: New file.
48648
48649         * lib/strsignal.c: New file, from glibc with modifications.
48650         * lib/siglist.h: New file, from glibc with modifications.
48651         * lib/string.in.h (strsignal): New declaration.
48652         * m4/strsignal.m4: New file.
48653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48654         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48655         * modules/strsignal: New file.
48656         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48657         HAVE_DECL_STRSIGNAL.
48658
48659 2008-01-13  Bruno Haible  <bruno@clisp.org>
48660
48661         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48662         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48663         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48664         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48665
48666 2008-01-13  Bruno Haible  <bruno@clisp.org>
48667
48668         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48669         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48670         * lib/argp.h (__attribute__): Likewise.
48671         * lib/c-stack.c (__attribute__): Likewise.
48672         * lib/error.h (__attribute__): Likewise.
48673         * lib/fts.c (__attribute__): Likewise.
48674         * lib/openat.h (__attribute__): Likewise.
48675         * lib/stdio.in.h (__attribute__): Likewise.
48676         * lib/string.in.h (__attribute__): Likewise.
48677         * lib/utimens.c (__attribute__): Likewise.
48678         * lib/vasnprintf.h (__attribute__): Likewise.
48679         * lib/xalloc.h (__attribute__): Likewise.
48680         * lib/xprintf.h (__attribute__): Likewise.
48681         * lib/xstrtol.h (__attribute__): Likewise.
48682         * lib/xvasprintf.h (__attribute__): Likewise.
48683
48684 2008-01-12  Bruno Haible  <bruno@clisp.org>
48685
48686         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48687         * doc/glibc-headers/a.out.texi: New file.
48688         * doc/glibc-headers/aliases.texi: New file.
48689         * doc/glibc-headers/alloca.texi: New file.
48690         * doc/glibc-headers/ar.texi: New file.
48691         * doc/glibc-headers/argp.texi: New file.
48692         * doc/glibc-headers/argz.texi: New file.
48693         * doc/glibc-headers/byteswap.texi: New file.
48694         * doc/glibc-headers/crypt.texi: New file.
48695         * doc/glibc-headers/endian.texi: New file.
48696         * doc/glibc-headers/envz.texi: New file.
48697         * doc/glibc-headers/err.texi: New file.
48698         * doc/glibc-headers/error.texi: New file.
48699         * doc/glibc-headers/execinfo.texi: New file.
48700         * doc/glibc-headers/fpu_control.texi: New file.
48701         * doc/glibc-headers/fstab.texi: New file.
48702         * doc/glibc-headers/fts.texi: New file.
48703         * doc/glibc-headers/getopt.texi: New file.
48704         * doc/glibc-headers/ieee754.texi: New file.
48705         * doc/glibc-headers/ifaddrs.texi: New file.
48706         * doc/glibc-headers/libintl.texi: New file.
48707         * doc/glibc-headers/mcheck.texi: New file.
48708         * doc/glibc-headers/mntent.texi: New file.
48709         * doc/glibc-headers/obstack.texi: New file.
48710         * doc/glibc-headers/paths.texi: New file.
48711         * doc/glibc-headers/printf.texi: New file.
48712         * doc/glibc-headers/pty.texi: New file.
48713         * doc/glibc-headers/resolv.texi: New file.
48714         * doc/glibc-headers/shadow.texi: New file.
48715         * doc/glibc-headers/sysexits.texi: New file.
48716         * doc/glibc-headers/ttyent.texi: New file.
48717
48718 2008-01-12  Jim Meyering  <meyering@redhat.com>
48719
48720         announce-gen: emit Gnulib's git-based version string.
48721         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48722         New option --gnulib-version=V, where V is expected to be
48723         the output of running git describe in the gnulib directory.
48724         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48725         not useful, and plan to stop publishing an xdelta file with each
48726         coreutils release.
48727
48728         * build-aux/announce-gen: Also check for lzma-compressed files.
48729
48730 2008-01-11  Bruno Haible  <bruno@clisp.org>
48731
48732         * tests/test-memmem.c (main): Increase maximum allowed time.
48733         * tests/test-strstr.c (main): Likewise.
48734
48735 2008-01-11  Bruno Haible  <bruno@clisp.org>
48736
48737         * doc/functions/memmem.texi: Add more precisions about platforms.
48738         * doc/functions/strstr.texi: Likewise.
48739
48740 2008-01-10  Eric Blake  <ebb9@byu.net>
48741
48742         * m4/strstr.m4: Delete cruft from copy-n-paste.
48743         Reported by Bruno Haible.
48744
48745 2008-01-10  Bruno Haible  <bruno@clisp.org>
48746
48747         Make c-strstr rely on strstr.
48748         * lib/c-strstr.c: Don't include str-kmp.h.
48749         (c_strstr): Define in terms of strstr.
48750         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48751         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48752
48753 2008-01-10  Bruno Haible  <bruno@clisp.org>
48754
48755         * doc/gnulib.texi (String Functions in C Locale): New section.
48756         * doc/c-ctype.texi: New file.
48757         * doc/c-strcase.texi: New file.
48758         * doc/c-strcaseeq.texi: New file.
48759         * doc/c-strcasestr.texi: New file.
48760         * doc/c-strstr.texi: New file.
48761         * doc/c-strtod.texi: New file.
48762         * doc/c-strtold.texi: New file.
48763
48764 2008-01-10  Eric Blake  <ebb9@byu.net>
48765
48766         * lib/relocatable.h: Fix a comment.
48767
48768 2008-01-10  Eric Blake  <ebb9@byu.net>
48769
48770         Share two-way algorithm.
48771         * lib/str-two-way.h: New file, merged from...
48772         * lib/memmem.c: ...here...
48773         * lib/strstr.c: ...and here.
48774         * modules/memmem (Files): Use it.
48775         * modules/strstr (Files): Likewise.
48776
48777         Avoid quadratic strstr implementations.
48778         * lib/strstr.c: New file.
48779         * m4/strstr.m4: Likewise.
48780         * modules/strstr: Likewise.
48781         * modules/strstr-tests: Likewise.
48782         * tests/test-strstr.c: Likewise.
48783         * lib/string.in.h (rpl_strstr): Declare.
48784         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48785         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48786         * modules/string (Makefile.am): Likewise.
48787         * MODULES.html.sh (string handling): Mention new module.
48788         * doc/functions/strstr.texi (strstr): Document the bug.
48789
48790 2008-01-10  Bruno Haible  <bruno@clisp.org>
48791
48792         * lib/relocatable.h (relocate): State whether result is freshly
48793         allocated or not.
48794         * lib/relocatable.c (relocate): Return a freshly allocated string
48795         instead of a pointer to a privately held string.
48796         Reported by Sylvain Beucler <beuc@gnu.org>.
48797
48798 2008-01-10  Colin Watson  <cjwatson@debian.org>
48799
48800         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48801         s/S_ISNLK/S_ISLNK/.
48802
48803 2008-01-09  Bruno Haible  <bruno@clisp.org>
48804
48805         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48806         and other files.
48807         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48808         if it's only a guess.
48809         * modules/memmem: Simplify by depending on memmem-simple.
48810
48811 2008-01-09  Bruno Haible  <bruno@clisp.org>
48812
48813         Work around OpenBSD 4.0 tdelete() bug.
48814         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48815         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48816         macros and don't redefine the enum values.
48817         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48818         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48819         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48820
48821 2008-01-09  Bruno Haible  <bruno@clisp.org>
48822
48823         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48824         (main): Don't perform the tests if setlocale did not install a UTF-8
48825         locale. Needed on OpenBSD 4.0.
48826         * modules/wcwidth-tests (Depends-on): Add localcharset.
48827
48828 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48829
48830         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48831         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48832         * NEWS: announce this.
48833         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48834
48835 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48836         and Eric Blake  <ebb9@byu.net>
48837
48838         Add memmem-simple module.
48839         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48840         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48841         * modules/memmem-simple: New file.
48842         * modules/memmem (Description): Tweak.
48843         * MODULES.html.sh (string handling): Mention new module.
48844         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48845         addressed by memmem-simple.
48846         * NEWS: Document the difference.
48847
48848 2008-01-09  Eric Blake  <ebb9@byu.net>
48849
48850         Give gcc some memmem optimization hints.
48851         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48852         (strcasestr): Declare as pure.
48853         * modules/memmem (Maintainer): Claim my implementation.
48854
48855 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48856
48857         Support AIX 6.1 and higher.
48858         * build-aux/config.libpath: Likewise.
48859         * build-aux/config.rpath: Likewise.
48860
48861 2008-01-08  Jim Meyering  <meyering@redhat.com>
48862             Bruno Haible  <bruno@clisp.org>
48863
48864         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48865         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48866         Reported by Peter Fales in
48867         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48868
48869 2008-01-08  Bruno Haible  <bruno@clisp.org>
48870
48871         * modules/unictype/category-of (Depends-on): Add
48872         unictype/category-none.
48873         * modules/unictype/category-and-tests (Depends-on): Add
48874         unictype/category-{L,N,Lu,Nd}.
48875         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48876         * modules/unictype/category-or-tests (Depends-on): Add
48877         unictype/category-{L,N}.
48878         * modules/unictype/category-name-tests (Depends-on): Add
48879         unictype/category-{Z,Nl}.
48880         Reported by Simon Josefsson.
48881
48882 2008-01-08  Bruno Haible  <bruno@clisp.org>
48883
48884         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48885         convention better.
48886         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48887         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48888         Reported by Peter Miller <millerp@canb.auug.org.au>.
48889
48890 2008-01-08  Eric Blake  <ebb9@byu.net>
48891
48892         Rewrite memmem to guarantee linear complexity without malloc.
48893         * lib/memmem.c (memmem): Use Two-Way rather than
48894         Knuth-Morris-Pratt, to allow O(1) space usage.
48895         (critical_factorization, two_way_short_needle)
48896         (two_way_long_needle): New functions.
48897         (knuth_morris_pratt): Delete.
48898         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48899         Add stdint.
48900         * tests/test-memmem.c (main): Add tests for periodic needle and
48901         sublinear performance.
48902         * doc/functions/memmem.texi (memmem): Document other deficiencies
48903         in cygwin and older glibc.
48904
48905 2008-01-08  Bruno Haible  <bruno@clisp.org>
48906
48907         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48908         augmentation.
48909
48910 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48911
48912         Add a configure time option: --disable-acl.
48913         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48914         AC_ARG_ENABLE(acl).
48915
48916 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48917
48918         * tests/test-localename.c: Don't include obsolete "setenv.h".
48919
48920         * modules/localename-tests (Depends-on): Need unsetenv.
48921
48922 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48923
48924         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48925
48926 2008-01-06  Colin Watson  <cjwatson@debian.org>
48927
48928         * users.txt: Add man-db.
48929
48930 2008-01-07  Bruno Haible  <bruno@clisp.org>
48931
48932         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48933         previous section name.
48934
48935 2008-01-07  Bruno Haible  <bruno@clisp.org>
48936
48937         * lib/progname.c (set_program_name): Don't strip off a leading
48938         "lt-" prefix outside a .libs directory.
48939         Suggested by Paul Eggert.
48940
48941 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48942             Bruno Haible  <bruno@clisp.org>
48943
48944         Improve memory cleanup in 'relocatable' module.
48945         * lib/relocatable.h (compute_curr_prefix): Change return type to
48946         'char *'.
48947         * lib/relocatable.c (compute_curr_prefix): Change return type to
48948         'char *'. Free curr_installdir after use.
48949         (relocate): Free curr_prefix_better after use.
48950         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48951
48952 2008-01-01  Bruno Haible  <bruno@clisp.org>
48953
48954         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48955         failure on older glibc systems.
48956         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48957
48958 2008-01-05  Eric Blake  <ebb9@byu.net>
48959
48960         Avoid quadratic system memmem.
48961         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48962         Reported by Ralf Wildenhues.
48963
48964         Fix memmem test for mingw.
48965         * modules/memmem-tests (configure.ac): Check for alarm.
48966         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48967         it.
48968         * doc/functions/memmem.texi: New file.
48969         * doc/gnulib.texi (Function Substitutes): Add memmem.
48970         Reported by Bruno Haible.
48971
48972 2008-01-04  Bruno Haible  <bruno@clisp.org>
48973
48974         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48975         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48976         gl_HEADER_STRING_H_DEFAULTS.
48977
48978 2008-01-04  Eric Blake  <ebb9@byu.net>
48979
48980         Shorten duration of memmem test.
48981         * tests/test-memmem.c (main): Use alarm to declare failure if test
48982         is taking too long.
48983         Reported by Ralf Wildenhues.
48984
48985 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48986
48987         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48988         string, needed by strerror.
48989
48990 2008-01-03  Colin Watson  <cjwatson@debian.org>
48991             Bruno Haible  <bruno@clisp.org>
48992
48993         * doc/gnulib-tool.texi (Localization): New section.
48994
48995 2008-01-02  Bruno Haible  <bruno@clisp.org>
48996
48997         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48998         variables to 'unsigned char *' type.
48999         Reported by Paul Eggert.
49000
49001 2008-01-02  Jim Meyering  <jim@meyering.net>
49002
49003         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49004
49005 2007-12-31  Jim Meyering  <jim@meyering.net>
49006
49007         Avoid use of private FTS type name.
49008         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49009
49010 2007-12-30  Karl Berry  <karl@gnu.org>
49011
49012         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49013         work around defect in Texinfo and/or the standalone Info browser.
49014
49015 2007-12-30  Bruno Haible  <bruno@clisp.org>
49016
49017         Unify 5 copies of the KMP code.
49018         * lib/str-kmp.h: New file.
49019         * lib/c-strcasestr.c: Include str-kmp.h.
49020         (knuth_morris_pratt): Remove function.
49021         (c_strcasestr): Update.
49022         * lib/c-strstr.c: Include str-kmp.h.
49023         (knuth_morris_pratt): Remove function.
49024         (c_strcasestr): Update.
49025         * lib/mbscasestr.c: Include str-kmp.h.
49026         (knuth_morris_pratt_unibyte): Remove function.
49027         * lib/mbsstr.c: Include str-kmp.h.
49028         (knuth_morris_pratt_unibyte): Remove function.
49029         * lib/strcasestr.c: Include str-kmp.h.
49030         (knuth_morris_pratt): Remove function.
49031         (strcasestr): Update.
49032         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49033         * modules/c-strstr (Files): Likewise.
49034         * modules/mbscasestr (Files): Likewise.
49035         * modules/mbsstr (Files): Likewise.
49036         * modules/strcasestr (Files): Likewise.
49037         Suggested by Paul Eggert.
49038
49039 2007-12-30  Bruno Haible  <bruno@clisp.org>
49040
49041         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49042         defined.
49043
49044 2007-12-30  Bruno Haible  <bruno@clisp.org>
49045
49046         * lib/xmalloca.h: Include xalloc.h.
49047         (xnmalloca): New macro.
49048
49049 2007-12-30  Bruno Haible  <bruno@clisp.org>
49050
49051         * lib/malloca.h (nmalloca): New macro.
49052         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49053         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49054         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49055         knuth_morris_pratt_multibyte): Likewise.
49056         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49057         knuth_morris_pratt_multibyte): Likewise.
49058         * lib/memmem.c (knuth_morris_pratt): Likewise.
49059         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49060
49061 2007-12-25  Bruno Haible  <bruno@clisp.org>
49062
49063         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49064         * lib/glob.c: Don't include openat.h.
49065         (link_exists2_p): Add back the code that deals with the
49066         !GLOB_ALTDIRFUNC case.
49067         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49068         let it do the filename concatenation.
49069         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49070         * modules/glob (Depends-on): Remove openat.
49071
49072 2007-12-31  Bruno Haible  <bruno@clisp.org>
49073
49074         * modules/dirfd (License): Change to LGPLv2+.
49075         Approved by Jim Meyering.
49076
49077 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49078
49079         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49080         when multiplying M by sizeof (size_t).
49081
49082 2007-12-10  Martin Lambers  <marlam@marlam.de>
49083
49084         Override getpagesize on mingw.
49085         * lib/getpagesize.c: New file.
49086         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49087         * modules/getpagesize (Files): Add lib/getpagesize.c.
49088         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49090         REPLACE_GETPAGESIZE.
49091         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49092
49093 2007-12-25  Bruno Haible  <bruno@clisp.org>
49094
49095         * modules/localcharset (Notice): New field.
49096         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49097         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49098
49099 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49100             Bruno Haible  <bruno@clisp.org>
49101
49102         Avoid using the syntax symbol() in formatted documentation.
49103         * MODULES.html.sh (func_module): When replacing symbol() with a
49104         hyperlink, remove the parentheses. Show an error if some remain.
49105         Recognize and render the '...' syntax.
49106         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49107         Rework. Add paragraph about GCC's inlining.
49108         * doc/alloca.texi: Likewise.
49109         * doc/error.texi: Remove parentheses from symbol reference.
49110         * doc/gnulib-intro.texi: Likewise.
49111         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49112         * modules/fnmatch (Description): Reword to say "the ... function".
49113         * modules/full-read (Description): Likewise.
49114         * modules/full-write (Description): Likewise.
49115         * modules/safe-read (Description): Likewise.
49116         * modules/safe-write (Description): Likewise.
49117         * modules/strchrnul (Description): Likewise.
49118         * modules/trim (Description): Likewise.
49119         * modules/error (Description): Remove parentheses from symbol
49120         references.
49121         * modules/verror (Description): Likewise.
49122         Reported by Karl Berry.
49123
49124 2007-12-25  Bruno Haible  <bruno@clisp.org>
49125
49126         Fixup after 2007-10-16 commit.
49127         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49128
49129 2007-12-24  Bruno Haible  <bruno@clisp.org>
49130
49131         Make --enable-relocatable work with DESTDIR.
49132         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49133         to compute installdir from destprog.
49134         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49135         also set the RELOC_DESTDIR variable.
49136         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49137
49138 2007-12-24  Bruno Haible  <bruno@clisp.org>
49139
49140         Fix link error due to xalloc_die().
49141         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49142         of xreadlink.
49143         * lib/relocwrapper.c: Update comments.
49144         * build-aux/install-reloc: Remove xreadlink.c from file list.
49145         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49146         xreadlink.c.
49147         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49148
49149 2007-12-24  Bruno Haible  <bruno@clisp.org>
49150
49151         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49152         * lib/setenv.h: Remove file.
49153         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49154         lib/setenv.h.
49155         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49156         (Depends-on): Add stdlib.
49157         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49158         gl_FUNC_UNSETENV.
49159         (Include): Replace setenv.h with <stdlib.h>.
49160         * modules/unsetenv: New file.
49161         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49162         * lib/unsetenv.c: Include <stdlib.h> first.
49163         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49164         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49165         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49166         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49167         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49168         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49170         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49171         * doc/functions/unsetenv.texi: Update.
49172         * modules/xsetenv (Depends-on): Add unsetenv.
49173         * modules/getdate (Depends-on): Likewise.
49174         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49175         * lib/xsetenv.c: Don't include setenv.h.
49176         * lib/getdate.y: Likewise.
49177         * lib/relocwrapper.c: Likewise.
49178         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49179         (Depends-on): Add stdlib.
49180         * NEWS: Mention the changes.
49181         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49182
49183 2007-12-23  Bruno Haible  <bruno@clisp.org>
49184
49185         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49186         indentation.
49187
49188 2007-12-23  Bruno Haible  <bruno@clisp.org>
49189
49190         * lib/c-strcasestr.c: Add more comments.
49191         * lib/c-strstr.c: Likewise.
49192         * lib/mbscasestr.c: Likewise.
49193         * lib/mbsstr.c: Likewise.
49194         * lib/strcasestr.c: Likewise.
49195         * lib/memmem.c: Likewise.
49196
49197 2007-12-23  Bruno Haible  <bruno@clisp.org>
49198
49199         * tests/test-memmem.c: Include <string.h> first.
49200
49201 2007-12-22  Bruno Haible  <bruno@clisp.org>
49202
49203         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49204         the contents of $testsbase.
49205         Reported by Ralf Wildenhues.
49206
49207 2007-12-22  Bruno Haible  <bruno@clisp.org>
49208
49209         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49210         two variables local_ldadd_before, local_ldadd_last.
49211
49212 2007-12-20  Eric Blake  <ebb9@byu.net>
49213
49214         Work around circular library issue when cross-compiling.
49215         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49216         that progname.o does not need to pull in rpl_memcmp.
49217
49218 2007-12-19  Eric Blake  <ebb9@byu.net>
49219
49220         Fix memmem to avoid O(n^2) worst-case complexity.
49221         * lib/memmem.c (knuth_morris_pratt): New function.
49222         (memmem): Use it if first few naive iterations fail.
49223         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49224         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49225         * modules/memchr (License): Likewise.
49226         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49227         malloca.
49228         * tests/test-memmem.c: Rewrite, borrowing ideas from
49229         test-mbsstr1.c; the old version wouldn't even compile!
49230         * modules/memmem-tests: New file.
49231         * lib/string.in.h (rpl_memmem): Add declaration.
49232         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49234         REPLACE_MEMMEM.
49235
49236 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49237
49238         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49239         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49240         before any system include files, and undef after them all.  This
49241         should fix a problem on VMS reported by John E. Malmberg in
49242         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49243
49244 2007-12-17  Eric Blake  <ebb9@byu.net>
49245
49246         Revert addition of verify, for BSD/OS.
49247         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49248         can't handle large files, for the sake of obsolete platforms.
49249         * modules/fseeko (Depends-on): Remove verify.
49250         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49251         * doc/functions/ftello.texi (ftello): Likewise.
49252         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49253         Reported by Larry Jones.
49254
49255 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49256
49257         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49258         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49259
49260 2007-12-17  Jim Meyering  <meyering@redhat.com>
49261
49262         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49263         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49264         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49265         * modules/getcwd (Depends-on): Add openat.
49266         Reported by Petr Salinger.
49267
49268 2007-12-17  Bruno Haible  <bruno@clisp.org>
49269
49270         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49271         avoid a segmentation fault of the configure test on x86_64 systems.
49272
49273 2007-12-15  Jim Meyering  <meyering@redhat.com>
49274
49275         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49276
49277 2007-12-13  Eric Blake  <ebb9@byu.net>
49278
49279         Another fseek test.
49280         * tests/test-fseek.c (main): Also test ungetc handling.
49281         * tests/test-fseeko.c (main): Likewise.
49282         * modules/fseeko (Depends-on): Add verify.
49283         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49284         large.
49285         Reported by Larry Jones.
49286
49287         Fix fseeko on mingw.
49288         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49289         seek.
49290
49291         Beef up fseek tests.
49292         * tests/test-fseek.c (main): Also test eof handling.
49293         * tests/test-fseeko.c (main): Likewise.
49294         Reported by Larry Jones.
49295
49296 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49297
49298         Fix fseeko on BSD-based platforms.
49299         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49300         successful seek.
49301
49302 2007-12-12  Eric Blake  <ebb9@byu.net>
49303
49304         Allow circular dependency of separate libtests.a
49305         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49306         when use_libtests.
49307
49308 2007-12-11  Eric Blake  <ebb9@byu.net>
49309
49310         Fix bug with -0.0L in previous patch.
49311         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49312         * tests/test-isnan.c (main): Also test on zeroes.
49313         * tests/test-isnanf.c (main): Likewise.
49314         * tests/test-isnanl.h (main): Likewise.
49315
49316         Detect pseudo-denormals on x86 even when cross-compiling.
49317         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49318         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49319         invalid bit patterns that happen to satisfy ==.
49320
49321         Avoid link failures with separate libtests.a.
49322         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49323         last, to satisfy circular dependencies.
49324
49325 2007-12-11  Eric Blake  <ebb9@byu.net>
49326         and Bruno Haible  <bruno@clisp.org>
49327
49328         Fix OpenBSD 4.0 <float.h> handling of long double.
49329         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49330         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49331         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49332
49333 2007-12-11  Jim Meyering  <meyering@redhat.com>
49334
49335         * users.txt: Add libvirt.
49336
49337         Support versions of autoconf prior to 2.59c.
49338         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49339         if it is not already defined.
49340
49341 2007-12-09  Bruno Haible  <bruno@clisp.org>
49342
49343         Let 'gnulib-tool --import' collect sources needed for the tests in
49344         tests/ rather than in lib/.
49345         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49346         argument. If true, add rules to generate libtests.a, and put libtests.a
49347         into $(LDADD). Consider source files in subdirectories and set
49348         uses_subdirs.
49349         (func_emit_initmacro_start, func_emit_initmacro_end,
49350         func_emit_initmacro_done): Pass all arguments explicitly.
49351         (func_import): Determine two module lists main_modules,
49352         testsrelated_modules. Determine use_libtests. Determine two variables
49353         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49354         instead of just sed_transform_lib_file. Determine two variables
49355         main_files and testsrelated_files. Compute 'files' as the union of
49356         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49357         func_add_or_update. In the generated gnulib-comp.m4, collect the
49358         object files for tests/ in different variables than those for lib/.
49359         Substitute LIBTESTS_LIBDEPS.
49360         (func_create_testdir): Combine the uses_subdirs results from
49361         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49362
49363 2007-12-09  Bruno Haible  <bruno@clisp.org>
49364
49365         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49366         the build-aux directory.
49367
49368 2007-12-09  Bruno Haible  <bruno@clisp.org>
49369
49370         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49371         introduced on 2006-09-09.
49372
49373 2007-12-07  Jim Meyering  <meyering@redhat.com>
49374
49375         Let these macros work also with autoconf-2.59.
49376         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49377         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49378         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49379
49380 2007-12-06  Jim Meyering  <meyering@redhat.com>
49381
49382         Avoid a configure-time syntax error in gl_FUNC_ACL.
49383         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49384         function in each branch, before testing the cache variable.
49385
49386 2007-12-04  Eric Blake  <ebb9@byu.net>
49387
49388         Make scripts executable.
49389         * build-aux/config.guess: Add execute permissions.
49390         * build-aux/config.sub: Likewise.
49391         * build-aux/gendocs.sh: Likewise.
49392
49393         Fix frexp on mingw.
49394         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49395         cross-compiling.
49396         * doc/functions/frexp.texi (frexp): Document the bug.
49397
49398         Make cygwin fseeko check more reliable.
49399         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49400         version numbers, rather than unrelated feature check.
49401         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49402         * doc/functions/ftello.texi (ftello): Likewise.
49403         Reported by Bruno Haible.
49404
49405         * m4/strerror.m4: Bump version number.
49406
49407 2007-12-03  Bruno Haible  <bruno@clisp.org>
49408
49409         * doc/functions/mprotect.texi: Mention the mingw problem.
49410
49411 2007-12-03  Eric Blake  <ebb9@byu.net>
49412
49413         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49414         REPLACE_STRERROR is initialized before this macro.
49415
49416 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49417
49418         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49419         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49420         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49421         put -lsec in even for programs other than 'ls'.  This fixes a problem
49422         for gettext reported by Bruno Haible in
49423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49424         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49425         Add support for Solaris 10.  This isn't efficient, but should get the
49426         job done for now.
49427
49428 2007-12-03  James Youngman  <jay@gnu.org>
49429
49430         * doc/regexprops-generic.texi: change "an close-group" to "a
49431         close-group" and "illegal" to "not allowed".
49432
49433 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49434
49435         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49436         pr_byname.h. Needed for the rare case when the maintainer has done
49437         "make maintainer-clean" in the source directory and then attempts a
49438         build outside the source directory.
49439         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49440         scripts_byname.h.
49441
49442 2007-12-02  Martin Lambers <marlam@marlam.de>
49443             Bruno Haible  <bruno@clisp.org>
49444
49445         * lib/getpagesize.h: Remove file.
49446         * lib/unistd.in.h: Include declaration of getpagesize here.
49447         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49448         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49449         HAVE_SYS_PARAM_H.
49450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49451         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49452         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49453         (Depends-on): Add unistd.
49454         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49455         (Include): Use <unistd.h> instead of getpagesize.h.
49456         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49457         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49458         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49459         gl_GETPAGESIZE invocation, already handled by module dependency.
49460         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49461
49462 2007-12-02  Bruno Haible  <bruno@clisp.org>
49463
49464         * modules/strings-tests: New file.
49465         * tests/test-strings.c: New file.
49466
49467         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49468         * lib/strings.in.h: New file.
49469         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49470         * m4/strings_h.m4: New file.
49471         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49472         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49473         * modules/strings: New file.
49474         * modules/string (Makefile.am): Update.
49475         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49476         Reported by Karl Berry.
49477
49478 2007-12-01  Eric Blake  <ebb9@byu.net>
49479
49480         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49481         accomodate fix in cygwin 1.5.25.
49482
49483 2007-12-01  Jim Meyering  <meyering@redhat.com>
49484
49485         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49486         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49487         that would inhibit utf8-optimization of a regexp containing line-
49488         or buffer-anchors, e.g., `^', `$'.
49489
49490 2007-11-30  Bruno Haible  <bruno@clisp.org>
49491
49492         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49493         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49494         glthread_recursive_lock_init.
49495         * lib/lock.c (glthread_recursive_lock_init)
49496         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49497         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49498
49499 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49500
49501         New function qset_acl, like set_acl but with syscall semantics.
49502         * lib/acl.h (qset_acl): New decl.
49503         * lib/acl.c (qset_acl): New function.
49504         (set_acl): Use new function.  Use more-consistent diagnostics.
49505
49506 2007-11-28  Jim Meyering  <meyering@redhat.com>
49507
49508         * modules/physmem (License): Change from GPL to LGPLv2+.
49509
49510 2007-11-26  Bruno Haible  <bruno@clisp.org>
49511
49512         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49513         'long double' type has excess precision.
49514         Reported by Jim Meyering in
49515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49516
49517 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49518
49519         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49520         Sync from <http://gnu.org/licenses>.
49521         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49522         with license text from same location.
49523         * doc/maintain.texi, doc/standards.texi:  Sync from
49524         <http://savannah.gnu.org/projects/gnustandards>.
49525
49526 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49527         and Jim Meyering  <meyering@redhat.com>
49528
49529         Adjust getdate' grammar to accept a slightly more regular language.
49530         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49531         Before, the former was rejected.
49532         * lib/getdate.y (digits_to_date_time): New function, factored
49533         out of ...
49534         (number): ...here.  Just call digits_to_date_time.
49535         (hybrid): New non-terminal to handle an <unsigned number,
49536         signed relative offset> sequence consistently.
49537
49538 2007-11-18  Jim Meyering  <meyering@redhat.com>
49539
49540         Pull my changes from coreutils:
49541         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49542         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49543         use of $gnulib_tool_option_extras, so that it's separated from the
49544         preceding argument.
49545
49546         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49547         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49548         parent destination directories before copying a file into place.
49549
49550 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49551
49552         bootstrap: work also with 4-argument variant of AC_INIT
49553         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49554
49555 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49556
49557         Port test-getaddrinfo to Solaris.
49558         Problem reported by Bruno Haible in
49559         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49560         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49561         explanation of setting 'hints'.
49562         Don't reject an implementation merely because it returns EAI_SERVICE.
49563         (EAI_SERVICE): Define to 0 if not defined.
49564
49565 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49566
49567         The license of gnu-make and posix-shell is now "GPLed build tool".
49568         * modules/gnu-make (License): Likewise.
49569         * modules/posix-shell (License): Likewise.
49570
49571         New module posix-shell, for determining a POSIX shell
49572         or perhaps something that is close enough to a POSIX shell.
49573         * m4/posix-shell.m4: New file.
49574         * modules/posix-shell: New file.
49575
49576         * MODULES.html.sh: Mention new module.
49577
49578         New module gnu-make, for determining whether we're using GNU Make.
49579         * m4/gnu-make.m4: New file.
49580         * modules/gnu-make: New file.
49581         * MODULES.html.sh: Mention new module.
49582
49583 2007-11-14  Jim Meyering  <meyering@redhat.com>
49584
49585         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49586         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49587         use this macro to create a function _definition_.
49588         Remove useless "#undef ARGMATCH_DIE".
49589
49590 2007-11-14  Bruno Haible  <bruno@clisp.org>
49591
49592         * lib/config.charset: Update for OpenBSD 4.1.
49593         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49594
49595 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49596
49597         Document 64-bit #if problems in stdint.texi.
49598         * doc/headers/stdint.texi (stdint.h): Mention problems with
49599         64-bit-#if, and how to work around them.
49600
49601         Don't insist on 'long long int' support in the preprocessor.  It
49602         breaks too many things.  For example, PRIdMAX still uses a 'long
49603         long int' format with the latest Sun compiler, even though
49604         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49605         preprocessor problem.  This causes the latest coreutils to dump
49606         core on Solaris 10 sparc with the Sun C compiler.
49607         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49608         the troublesome expressions at configure-time, not at #if-time.
49609         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49610         preprocessor.
49611         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49612         compile-time C checks, done at 'configure'-time.
49613         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49614         * modules/inttypes (Makefile): Substitute the new symbols that
49615         gl_INTTYPES_H now generates.
49616         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49617
49618 2007-11-12  Bruno Haible  <bruno@clisp.org>
49619
49620         Tests for Unicode character classification functions.
49621
49622         * modules/unictype/bidicategory-byname-tests: New file.
49623         * modules/unictype/bidicategory-name-tests: New file.
49624         * modules/unictype/bidicategory-of-tests: New file.
49625         * modules/unictype/bidicategory-test-tests: New file.
49626         * modules/unictype/block-list-tests: New file.
49627         * modules/unictype/block-of-tests: New file.
49628         * modules/unictype/block-test-tests: New file.
49629         * modules/unictype/category-C-tests: New file.
49630         * modules/unictype/category-Cc-tests: New file.
49631         * modules/unictype/category-Cf-tests: New file.
49632         * modules/unictype/category-Cn-tests: New file.
49633         * modules/unictype/category-Co-tests: New file.
49634         * modules/unictype/category-Cs-tests: New file.
49635         * modules/unictype/category-L-tests: New file.
49636         * modules/unictype/category-Ll-tests: New file.
49637         * modules/unictype/category-Lm-tests: New file.
49638         * modules/unictype/category-Lo-tests: New file.
49639         * modules/unictype/category-Lt-tests: New file.
49640         * modules/unictype/category-Lu-tests: New file.
49641         * modules/unictype/category-M-tests: New file.
49642         * modules/unictype/category-Mc-tests: New file.
49643         * modules/unictype/category-Me-tests: New file.
49644         * modules/unictype/category-Mn-tests: New file.
49645         * modules/unictype/category-N-tests: New file.
49646         * modules/unictype/category-Nd-tests: New file.
49647         * modules/unictype/category-Nl-tests: New file.
49648         * modules/unictype/category-No-tests: New file.
49649         * modules/unictype/category-P-tests: New file.
49650         * modules/unictype/category-Pc-tests: New file.
49651         * modules/unictype/category-Pd-tests: New file.
49652         * modules/unictype/category-Pe-tests: New file.
49653         * modules/unictype/category-Pf-tests: New file.
49654         * modules/unictype/category-Pi-tests: New file.
49655         * modules/unictype/category-Po-tests: New file.
49656         * modules/unictype/category-Ps-tests: New file.
49657         * modules/unictype/category-S-tests: New file.
49658         * modules/unictype/category-Sc-tests: New file.
49659         * modules/unictype/category-Sk-tests: New file.
49660         * modules/unictype/category-Sm-tests: New file.
49661         * modules/unictype/category-So-tests: New file.
49662         * modules/unictype/category-Z-tests: New file.
49663         * modules/unictype/category-Zl-tests: New file.
49664         * modules/unictype/category-Zp-tests: New file.
49665         * modules/unictype/category-Zs-tests: New file.
49666         * modules/unictype/category-and-not-tests: New file.
49667         * modules/unictype/category-and-tests: New file.
49668         * modules/unictype/category-byname-tests: New file.
49669         * modules/unictype/category-name-tests: New file.
49670         * modules/unictype/category-none-tests: New file.
49671         * modules/unictype/category-of-tests: New file.
49672         * modules/unictype/category-or-tests: New file.
49673         * modules/unictype/category-test-withtable-tests: New file.
49674         * modules/unictype/combining-class-tests: New file.
49675         * modules/unictype/ctype-alnum-tests: New file.
49676         * modules/unictype/ctype-alpha-tests: New file.
49677         * modules/unictype/ctype-blank-tests: New file.
49678         * modules/unictype/ctype-cntrl-tests: New file.
49679         * modules/unictype/ctype-digit-tests: New file.
49680         * modules/unictype/ctype-graph-tests: New file.
49681         * modules/unictype/ctype-lower-tests: New file.
49682         * modules/unictype/ctype-print-tests: New file.
49683         * modules/unictype/ctype-punct-tests: New file.
49684         * modules/unictype/ctype-space-tests: New file.
49685         * modules/unictype/ctype-upper-tests: New file.
49686         * modules/unictype/ctype-xdigit-tests: New file.
49687         * modules/unictype/decimal-digit-tests: New file.
49688         * modules/unictype/digit-tests: New file.
49689         * modules/unictype/mirror-tests: New file.
49690         * modules/unictype/numeric-tests: New file.
49691         * modules/unictype/property-alphabetic-tests: New file.
49692         * modules/unictype/property-ascii-hex-digit-tests: New file.
49693         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49694         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49695         * modules/unictype/property-bidi-block-separator-tests: New file.
49696         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49697         * modules/unictype/property-bidi-common-separator-tests: New file.
49698         * modules/unictype/property-bidi-control-tests: New file.
49699         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49700         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49701         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49702         * modules/unictype/property-bidi-european-digit-tests: New file.
49703         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49704         * modules/unictype/property-bidi-left-to-right-tests: New file.
49705         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49706         * modules/unictype/property-bidi-other-neutral-tests: New file.
49707         * modules/unictype/property-bidi-pdf-tests: New file.
49708         * modules/unictype/property-bidi-segment-separator-tests: New file.
49709         * modules/unictype/property-bidi-whitespace-tests: New file.
49710         * modules/unictype/property-byname-tests: New file.
49711         * modules/unictype/property-combining-tests: New file.
49712         * modules/unictype/property-composite-tests: New file.
49713         * modules/unictype/property-currency-symbol-tests: New file.
49714         * modules/unictype/property-dash-tests: New file.
49715         * modules/unictype/property-decimal-digit-tests: New file.
49716         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49717         * modules/unictype/property-deprecated-tests: New file.
49718         * modules/unictype/property-diacritic-tests: New file.
49719         * modules/unictype/property-extender-tests: New file.
49720         * modules/unictype/property-format-control-tests: New file.
49721         * modules/unictype/property-grapheme-base-tests: New file.
49722         * modules/unictype/property-grapheme-extend-tests: New file.
49723         * modules/unictype/property-grapheme-link-tests: New file.
49724         * modules/unictype/property-hex-digit-tests: New file.
49725         * modules/unictype/property-hyphen-tests: New file.
49726         * modules/unictype/property-id-continue-tests: New file.
49727         * modules/unictype/property-id-start-tests: New file.
49728         * modules/unictype/property-ideographic-tests: New file.
49729         * modules/unictype/property-ids-binary-operator-tests: New file.
49730         * modules/unictype/property-ids-trinary-operator-tests: New file.
49731         * modules/unictype/property-ignorable-control-tests: New file.
49732         * modules/unictype/property-iso-control-tests: New file.
49733         * modules/unictype/property-join-control-tests: New file.
49734         * modules/unictype/property-left-of-pair-tests: New file.
49735         * modules/unictype/property-line-separator-tests: New file.
49736         * modules/unictype/property-logical-order-exception-tests: New file.
49737         * modules/unictype/property-lowercase-tests: New file.
49738         * modules/unictype/property-math-tests: New file.
49739         * modules/unictype/property-non-break-tests: New file.
49740         * modules/unictype/property-not-a-character-tests: New file.
49741         * modules/unictype/property-numeric-tests: New file.
49742         * modules/unictype/property-other-alphabetic-tests: New file.
49743         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49744         * modules/unictype/property-other-grapheme-extend-tests: New file.
49745         * modules/unictype/property-other-id-continue-tests: New file.
49746         * modules/unictype/property-other-id-start-tests: New file.
49747         * modules/unictype/property-other-lowercase-tests: New file.
49748         * modules/unictype/property-other-math-tests: New file.
49749         * modules/unictype/property-other-uppercase-tests: New file.
49750         * modules/unictype/property-paired-punctuation-tests: New file.
49751         * modules/unictype/property-paragraph-separator-tests: New file.
49752         * modules/unictype/property-pattern-syntax-tests: New file.
49753         * modules/unictype/property-pattern-white-space-tests: New file.
49754         * modules/unictype/property-private-use-tests: New file.
49755         * modules/unictype/property-punctuation-tests: New file.
49756         * modules/unictype/property-quotation-mark-tests: New file.
49757         * modules/unictype/property-radical-tests: New file.
49758         * modules/unictype/property-sentence-terminal-tests: New file.
49759         * modules/unictype/property-soft-dotted-tests: New file.
49760         * modules/unictype/property-space-tests: New file.
49761         * modules/unictype/property-terminal-punctuation-tests: New file.
49762         * modules/unictype/property-test-tests: New file.
49763         * modules/unictype/property-titlecase-tests: New file.
49764         * modules/unictype/property-unassigned-code-value-tests: New file.
49765         * modules/unictype/property-unified-ideograph-tests: New file.
49766         * modules/unictype/property-uppercase-tests: New file.
49767         * modules/unictype/property-variation-selector-tests: New file.
49768         * modules/unictype/property-white-space-tests: New file.
49769         * modules/unictype/property-xid-continue-tests: New file.
49770         * modules/unictype/property-xid-start-tests: New file.
49771         * modules/unictype/property-zero-width-tests: New file.
49772         * modules/unictype/scripts-tests: New file.
49773         * modules/unictype/syntax-c-ident-tests: New file.
49774         * modules/unictype/syntax-c-whitespace-tests: New file.
49775         * modules/unictype/syntax-java-ident-tests: New file.
49776         * modules/unictype/syntax-java-whitespace-tests: New file.
49777         * tests/unictype/test-bidi_byname.c: New file.
49778         * tests/unictype/test-bidi_name.c: New file.
49779         * tests/unictype/test-bidi_of.c: New file.
49780         * tests/unictype/test-bidi_test.c: New file.
49781         * tests/unictype/test-block_list.c: New file.
49782         * tests/unictype/test-block_of.c: New file.
49783         * tests/unictype/test-block_test.c: New file.
49784         * tests/unictype/test-categ_and.c: New file.
49785         * tests/unictype/test-categ_and_not.c: New file.
49786         * tests/unictype/test-categ_byname.c: New file.
49787         * tests/unictype/test-categ_name.c: New file.
49788         * tests/unictype/test-categ_none.c: New file.
49789         * tests/unictype/test-categ_of.c: New file.
49790         * tests/unictype/test-categ_or.c: New file.
49791         * tests/unictype/test-categ_test_withtable.c: New file.
49792         * tests/unictype/test-combining.c: New file.
49793         * tests/unictype/test-decdigit.c: New file.
49794         * tests/unictype/test-digit.c: New file.
49795         * tests/unictype/test-mirror.c: New file.
49796         * tests/unictype/test-numeric.c: New file.
49797         * tests/unictype/test-pr_byname.c: New file.
49798         * tests/unictype/test-pr_test.c: New file.
49799         * tests/unictype/test-predicate-part1.h: New file.
49800         * tests/unictype/test-predicate-part2.h: New file.
49801         * tests/unictype/test-scripts.c: New file.
49802         * tests/unictype/test-sy_c_ident.c: New file.
49803         * tests/unictype/test-sy_java_ident.c: New file.
49804
49805         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49806         for Unicode 5.0.0.
49807         * tests/unictype/test-categ_Cc.c: Likewise.
49808         * tests/unictype/test-categ_Cf.c: Likewise.
49809         * tests/unictype/test-categ_Cn.c: Likewise.
49810         * tests/unictype/test-categ_Co.c: Likewise.
49811         * tests/unictype/test-categ_Cs.c: Likewise.
49812         * tests/unictype/test-categ_L.c: Likewise.
49813         * tests/unictype/test-categ_Ll.c: Likewise.
49814         * tests/unictype/test-categ_Lm.c: Likewise.
49815         * tests/unictype/test-categ_Lo.c: Likewise.
49816         * tests/unictype/test-categ_Lt.c: Likewise.
49817         * tests/unictype/test-categ_Lu.c: Likewise.
49818         * tests/unictype/test-categ_M.c: Likewise.
49819         * tests/unictype/test-categ_Mc.c: Likewise.
49820         * tests/unictype/test-categ_Me.c: Likewise.
49821         * tests/unictype/test-categ_Mn.c: Likewise.
49822         * tests/unictype/test-categ_N.c: Likewise.
49823         * tests/unictype/test-categ_Nd.c: Likewise.
49824         * tests/unictype/test-categ_Nl.c: Likewise.
49825         * tests/unictype/test-categ_No.c: Likewise.
49826         * tests/unictype/test-categ_P.c: Likewise.
49827         * tests/unictype/test-categ_Pc.c: Likewise.
49828         * tests/unictype/test-categ_Pd.c: Likewise.
49829         * tests/unictype/test-categ_Pe.c: Likewise.
49830         * tests/unictype/test-categ_Pf.c: Likewise.
49831         * tests/unictype/test-categ_Pi.c: Likewise.
49832         * tests/unictype/test-categ_Po.c: Likewise.
49833         * tests/unictype/test-categ_Ps.c: Likewise.
49834         * tests/unictype/test-categ_S.c: Likewise.
49835         * tests/unictype/test-categ_Sc.c: Likewise.
49836         * tests/unictype/test-categ_Sk.c: Likewise.
49837         * tests/unictype/test-categ_Sm.c: Likewise.
49838         * tests/unictype/test-categ_So.c: Likewise.
49839         * tests/unictype/test-categ_Z.c: Likewise.
49840         * tests/unictype/test-categ_Zl.c: Likewise.
49841         * tests/unictype/test-categ_Zp.c: Likewise.
49842         * tests/unictype/test-categ_Zs.c: Likewise.
49843         * tests/unictype/test-ctype_alnum.c: Likewise.
49844         * tests/unictype/test-ctype_alpha.c: Likewise.
49845         * tests/unictype/test-ctype_blank.c: Likewise.
49846         * tests/unictype/test-ctype_cntrl.c: Likewise.
49847         * tests/unictype/test-ctype_digit.c: Likewise.
49848         * tests/unictype/test-ctype_graph.c: Likewise.
49849         * tests/unictype/test-ctype_lower.c: Likewise.
49850         * tests/unictype/test-ctype_print.c: Likewise.
49851         * tests/unictype/test-ctype_punct.c: Likewise.
49852         * tests/unictype/test-ctype_space.c: Likewise.
49853         * tests/unictype/test-ctype_upper.c: Likewise.
49854         * tests/unictype/test-ctype_xdigit.c: Likewise.
49855         * tests/unictype/test-decdigit.h: Likewise.
49856         * tests/unictype/test-digit.h: Likewise.
49857         * tests/unictype/test-numeric.h: Likewise.
49858         * tests/unictype/test-pr_alphabetic.c: Likewise.
49859         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49860         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49861         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49862         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49863         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49864         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49865         * tests/unictype/test-pr_bidi_control.c: Likewise.
49866         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49867         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49868         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49869         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49870         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49871         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49872         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49873         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49874         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49875         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49876         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49877         * tests/unictype/test-pr_combining.c: Likewise.
49878         * tests/unictype/test-pr_composite.c: Likewise.
49879         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49880         * tests/unictype/test-pr_dash.c: Likewise.
49881         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49882         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49883         * tests/unictype/test-pr_deprecated.c: Likewise.
49884         * tests/unictype/test-pr_diacritic.c: Likewise.
49885         * tests/unictype/test-pr_extender.c: Likewise.
49886         * tests/unictype/test-pr_format_control.c: Likewise.
49887         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49888         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49889         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49890         * tests/unictype/test-pr_hex_digit.c: Likewise.
49891         * tests/unictype/test-pr_hyphen.c: Likewise.
49892         * tests/unictype/test-pr_id_continue.c: Likewise.
49893         * tests/unictype/test-pr_id_start.c: Likewise.
49894         * tests/unictype/test-pr_ideographic.c: Likewise.
49895         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49896         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49897         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49898         * tests/unictype/test-pr_iso_control.c: Likewise.
49899         * tests/unictype/test-pr_join_control.c: Likewise.
49900         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49901         * tests/unictype/test-pr_line_separator.c: Likewise.
49902         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49903         * tests/unictype/test-pr_lowercase.c: Likewise.
49904         * tests/unictype/test-pr_math.c: Likewise.
49905         * tests/unictype/test-pr_non_break.c: Likewise.
49906         * tests/unictype/test-pr_not_a_character.c: Likewise.
49907         * tests/unictype/test-pr_numeric.c: Likewise.
49908         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49909         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49910         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49911         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49912         * tests/unictype/test-pr_other_id_start.c: Likewise.
49913         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49914         * tests/unictype/test-pr_other_math.c: Likewise.
49915         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49916         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49917         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49918         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49919         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49920         * tests/unictype/test-pr_private_use.c: Likewise.
49921         * tests/unictype/test-pr_punctuation.c: Likewise.
49922         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49923         * tests/unictype/test-pr_radical.c: Likewise.
49924         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49925         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49926         * tests/unictype/test-pr_space.c: Likewise.
49927         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49928         * tests/unictype/test-pr_titlecase.c: Likewise.
49929         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49930         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49931         * tests/unictype/test-pr_uppercase.c: Likewise.
49932         * tests/unictype/test-pr_variation_selector.c: Likewise.
49933         * tests/unictype/test-pr_white_space.c: Likewise.
49934         * tests/unictype/test-pr_xid_continue.c: Likewise.
49935         * tests/unictype/test-pr_xid_start.c: Likewise.
49936         * tests/unictype/test-pr_zero_width.c: Likewise.
49937         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49938         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49939
49940 2007-11-12  Bruno Haible  <bruno@clisp.org>
49941
49942         Unicode character classification functions.
49943         * lib/unictype.h: New file.
49944         * modules/unictype/base: New file.
49945         * modules/unictype/category-L: New file.
49946         * modules/unictype/category-Lu: New file.
49947         * modules/unictype/category-Ll: New file.
49948         * modules/unictype/category-Lt: New file.
49949         * modules/unictype/category-Lm: New file.
49950         * modules/unictype/category-Lo: New file.
49951         * modules/unictype/category-M: New file.
49952         * modules/unictype/category-Mn: New file.
49953         * modules/unictype/category-Mc: New file.
49954         * modules/unictype/category-Me: New file.
49955         * modules/unictype/category-N: New file.
49956         * modules/unictype/category-Nd: New file.
49957         * modules/unictype/category-Nl: New file.
49958         * modules/unictype/category-No: New file.
49959         * modules/unictype/category-P: New file.
49960         * modules/unictype/category-Pc: New file.
49961         * modules/unictype/category-Pd: New file.
49962         * modules/unictype/category-Ps: New file.
49963         * modules/unictype/category-Pe: New file.
49964         * modules/unictype/category-Pi: New file.
49965         * modules/unictype/category-Pf: New file.
49966         * modules/unictype/category-Po: New file.
49967         * modules/unictype/category-S: New file.
49968         * modules/unictype/category-Sm: New file.
49969         * modules/unictype/category-Sc: New file.
49970         * modules/unictype/category-Sk: New file.
49971         * modules/unictype/category-So: New file.
49972         * modules/unictype/category-Z: New file.
49973         * modules/unictype/category-Zs: New file.
49974         * modules/unictype/category-Zl: New file.
49975         * modules/unictype/category-Zp: New file.
49976         * modules/unictype/category-C: New file.
49977         * modules/unictype/category-Cc: New file.
49978         * modules/unictype/category-Cf: New file.
49979         * modules/unictype/category-Cs: New file.
49980         * modules/unictype/category-Co: New file.
49981         * modules/unictype/category-Cn: New file.
49982         * modules/unictype/category-or: New file.
49983         * modules/unictype/category-of: New file.
49984         * modules/unictype/category-test: New file.
49985         * modules/unictype/category-test-withtable: New file.
49986         * modules/unictype/category-byname: New file.
49987         * modules/unictype/category-none: New file.
49988         * modules/unictype/category-and: New file.
49989         * modules/unictype/category-and-not: New file.
49990         * modules/unictype/category-name: New file.
49991         * modules/unictype/combining-class: New file.
49992         * modules/unictype/category-all: New file.
49993         * modules/unictype/bidicategory-all: New file.
49994         * modules/unictype/bidicategory-byname: New file.
49995         * modules/unictype/bidicategory-name: New file.
49996         * modules/unictype/bidicategory-of: New file.
49997         * modules/unictype/bidicategory-test: New file.
49998         * modules/unictype/decimal-digit: New file.
49999         * modules/unictype/digit: New file.
50000         * modules/unictype/numeric: New file.
50001         * modules/unictype/mirror: New file.
50002         * modules/unictype/property-white-space: New file.
50003         * modules/unictype/property-alphabetic: New file.
50004         * modules/unictype/property-other-alphabetic: New file.
50005         * modules/unictype/property-not-a-character: New file.
50006         * modules/unictype/property-default-ignorable-code-point: New file.
50007         * modules/unictype/property-other-default-ignorable-code-point: New
50008         file.
50009         * modules/unictype/property-deprecated: New file.
50010         * modules/unictype/property-logical-order-exception: New file.
50011         * modules/unictype/property-variation-selector: New file.
50012         * modules/unictype/property-private-use: New file.
50013         * modules/unictype/property-unassigned-code-value: New file.
50014         * modules/unictype/property-uppercase: New file.
50015         * modules/unictype/property-other-uppercase: New file.
50016         * modules/unictype/property-lowercase: New file.
50017         * modules/unictype/property-other-lowercase: New file.
50018         * modules/unictype/property-titlecase: New file.
50019         * modules/unictype/property-soft-dotted: New file.
50020         * modules/unictype/property-id-start: New file.
50021         * modules/unictype/property-other-id-start: New file.
50022         * modules/unictype/property-id-continue: New file.
50023         * modules/unictype/property-other-id-continue: New file.
50024         * modules/unictype/property-xid-start: New file.
50025         * modules/unictype/property-xid-continue: New file.
50026         * modules/unictype/property-pattern-white-space: New file.
50027         * modules/unictype/property-pattern-syntax: New file.
50028         * modules/unictype/property-join-control: New file.
50029         * modules/unictype/property-grapheme-base: New file.
50030         * modules/unictype/property-grapheme-extend: New file.
50031         * modules/unictype/property-other-grapheme-extend: New file.
50032         * modules/unictype/property-grapheme-link: New file.
50033         * modules/unictype/property-bidi-control: New file.
50034         * modules/unictype/property-bidi-left-to-right: New file.
50035         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50036         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50037         * modules/unictype/property-bidi-european-digit: New file.
50038         * modules/unictype/property-bidi-eur-num-separator: New file.
50039         * modules/unictype/property-bidi-eur-num-terminator: New file.
50040         * modules/unictype/property-bidi-arabic-digit: New file.
50041         * modules/unictype/property-bidi-common-separator: New file.
50042         * modules/unictype/property-bidi-block-separator: New file.
50043         * modules/unictype/property-bidi-segment-separator: New file.
50044         * modules/unictype/property-bidi-whitespace: New file.
50045         * modules/unictype/property-bidi-non-spacing-mark: New file.
50046         * modules/unictype/property-bidi-boundary-neutral: New file.
50047         * modules/unictype/property-bidi-pdf: New file.
50048         * modules/unictype/property-bidi-embedding-or-override: New file.
50049         * modules/unictype/property-bidi-other-neutral: New file.
50050         * modules/unictype/property-hex-digit: New file.
50051         * modules/unictype/property-ascii-hex-digit: New file.
50052         * modules/unictype/property-ideographic: New file.
50053         * modules/unictype/property-unified-ideograph: New file.
50054         * modules/unictype/property-radical: New file.
50055         * modules/unictype/property-ids-binary-operator: New file.
50056         * modules/unictype/property-ids-trinary-operator: New file.
50057         * modules/unictype/property-zero-width: New file.
50058         * modules/unictype/property-space: New file.
50059         * modules/unictype/property-non-break: New file.
50060         * modules/unictype/property-iso-control: New file.
50061         * modules/unictype/property-format-control: New file.
50062         * modules/unictype/property-dash: New file.
50063         * modules/unictype/property-hyphen: New file.
50064         * modules/unictype/property-punctuation: New file.
50065         * modules/unictype/property-line-separator: New file.
50066         * modules/unictype/property-paragraph-separator: New file.
50067         * modules/unictype/property-quotation-mark: New file.
50068         * modules/unictype/property-sentence-terminal: New file.
50069         * modules/unictype/property-terminal-punctuation: New file.
50070         * modules/unictype/property-currency-symbol: New file.
50071         * modules/unictype/property-math: New file.
50072         * modules/unictype/property-other-math: New file.
50073         * modules/unictype/property-paired-punctuation: New file.
50074         * modules/unictype/property-left-of-pair: New file.
50075         * modules/unictype/property-combining: New file.
50076         * modules/unictype/property-composite: New file.
50077         * modules/unictype/property-decimal-digit: New file.
50078         * modules/unictype/property-numeric: New file.
50079         * modules/unictype/property-diacritic: New file.
50080         * modules/unictype/property-extender: New file.
50081         * modules/unictype/property-ignorable-control: New file.
50082         * modules/unictype/property-test: New file.
50083         * modules/unictype/property-byname: New file.
50084         * modules/unictype/property-all: New file.
50085         * modules/unictype/scripts: New file.
50086         * modules/unictype/scripts-all: New file.
50087         * modules/unictype/block-of: New file.
50088         * modules/unictype/block-test: New file.
50089         * modules/unictype/block-list: New file.
50090         * modules/unictype/block-all: New file.
50091         * modules/unictype/syntax-c-whitespace: New file.
50092         * modules/unictype/syntax-java-whitespace: New file.
50093         * modules/unictype/syntax-c-ident: New file.
50094         * modules/unictype/syntax-java-ident: New file.
50095         * modules/unictype/ctype-alnum: New file.
50096         * modules/unictype/ctype-alpha: New file.
50097         * modules/unictype/ctype-cntrl: New file.
50098         * modules/unictype/ctype-digit: New file.
50099         * modules/unictype/ctype-graph: New file.
50100         * modules/unictype/ctype-lower: New file.
50101         * modules/unictype/ctype-print: New file.
50102         * modules/unictype/ctype-punct: New file.
50103         * modules/unictype/ctype-space: New file.
50104         * modules/unictype/ctype-upper: New file.
50105         * modules/unictype/ctype-xdigit: New file.
50106         * modules/unictype/ctype-blank: New file.
50107         * lib/unictype/bidi_byname.c: New file.
50108         * lib/unictype/bidi_name.c: New file.
50109         * lib/unictype/bidi_of.c: New file.
50110         * lib/unictype/bidi_test.c: New file.
50111         * lib/unictype/bitmap.h: New file.
50112         * lib/unictype/block_test.c: New file.
50113         * lib/unictype/blocks.c: New file.
50114         * lib/unictype/categ_C.c: New file.
50115         * lib/unictype/categ_Cc.c: New file.
50116         * lib/unictype/categ_Cf.c: New file.
50117         * lib/unictype/categ_Cn.c: New file.
50118         * lib/unictype/categ_Co.c: New file.
50119         * lib/unictype/categ_Cs.c: New file.
50120         * lib/unictype/categ_L.c: New file.
50121         * lib/unictype/categ_Ll.c: New file.
50122         * lib/unictype/categ_Lm.c: New file.
50123         * lib/unictype/categ_Lo.c: New file.
50124         * lib/unictype/categ_Lt.c: New file.
50125         * lib/unictype/categ_Lu.c: New file.
50126         * lib/unictype/categ_M.c: New file.
50127         * lib/unictype/categ_Mc.c: New file.
50128         * lib/unictype/categ_Me.c: New file.
50129         * lib/unictype/categ_Mn.c: New file.
50130         * lib/unictype/categ_N.c: New file.
50131         * lib/unictype/categ_Nd.c: New file.
50132         * lib/unictype/categ_Nl.c: New file.
50133         * lib/unictype/categ_No.c: New file.
50134         * lib/unictype/categ_P.c: New file.
50135         * lib/unictype/categ_Pc.c: New file.
50136         * lib/unictype/categ_Pd.c: New file.
50137         * lib/unictype/categ_Pe.c: New file.
50138         * lib/unictype/categ_Pf.c: New file.
50139         * lib/unictype/categ_Pi.c: New file.
50140         * lib/unictype/categ_Po.c: New file.
50141         * lib/unictype/categ_Ps.c: New file.
50142         * lib/unictype/categ_S.c: New file.
50143         * lib/unictype/categ_Sc.c: New file.
50144         * lib/unictype/categ_Sk.c: New file.
50145         * lib/unictype/categ_Sm.c: New file.
50146         * lib/unictype/categ_So.c: New file.
50147         * lib/unictype/categ_Z.c: New file.
50148         * lib/unictype/categ_Zl.c: New file.
50149         * lib/unictype/categ_Zp.c: New file.
50150         * lib/unictype/categ_Zs.c: New file.
50151         * lib/unictype/categ_and.c: New file.
50152         * lib/unictype/categ_and_not.c: New file.
50153         * lib/unictype/categ_byname.c: New file.
50154         * lib/unictype/categ_name.c: New file.
50155         * lib/unictype/categ_none.c: New file.
50156         * lib/unictype/categ_of.c: New file.
50157         * lib/unictype/categ_or.c: New file.
50158         * lib/unictype/categ_test.c: New file.
50159         * lib/unictype/combining.c: New file.
50160         * lib/unictype/ctype_alnum.c: New file.
50161         * lib/unictype/ctype_alpha.c: New file.
50162         * lib/unictype/ctype_blank.c: New file.
50163         * lib/unictype/ctype_cntrl.c: New file.
50164         * lib/unictype/ctype_digit.c: New file.
50165         * lib/unictype/ctype_graph.c: New file.
50166         * lib/unictype/ctype_lower.c: New file.
50167         * lib/unictype/ctype_print.c: New file.
50168         * lib/unictype/ctype_punct.c: New file.
50169         * lib/unictype/ctype_space.c: New file.
50170         * lib/unictype/ctype_upper.c: New file.
50171         * lib/unictype/ctype_xdigit.c: New file.
50172         * lib/unictype/decdigit.c: New file.
50173         * lib/unictype/digit.c: New file.
50174         * lib/unictype/identsyntaxmap.h: New file.
50175         * lib/unictype/mirror.c: New file.
50176         * lib/unictype/numeric.c: New file.
50177         * lib/unictype/pr_alphabetic.c: New file.
50178         * lib/unictype/pr_ascii_hex_digit.c: New file.
50179         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50180         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50181         * lib/unictype/pr_bidi_block_separator.c: New file.
50182         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50183         * lib/unictype/pr_bidi_common_separator.c: New file.
50184         * lib/unictype/pr_bidi_control.c: New file.
50185         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50186         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50187         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50188         * lib/unictype/pr_bidi_european_digit.c: New file.
50189         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50190         * lib/unictype/pr_bidi_left_to_right.c: New file.
50191         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50192         * lib/unictype/pr_bidi_other_neutral.c: New file.
50193         * lib/unictype/pr_bidi_pdf.c: New file.
50194         * lib/unictype/pr_bidi_segment_separator.c: New file.
50195         * lib/unictype/pr_bidi_whitespace.c: New file.
50196         * lib/unictype/pr_byname.c: New file.
50197         * lib/unictype/pr_byname.gperf: New file.
50198         * lib/unictype/pr_combining.c: New file.
50199         * lib/unictype/pr_composite.c: New file.
50200         * lib/unictype/pr_currency_symbol.c: New file.
50201         * lib/unictype/pr_dash.c: New file.
50202         * lib/unictype/pr_decimal_digit.c: New file.
50203         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50204         * lib/unictype/pr_deprecated.c: New file.
50205         * lib/unictype/pr_diacritic.c: New file.
50206         * lib/unictype/pr_extender.c: New file.
50207         * lib/unictype/pr_format_control.c: New file.
50208         * lib/unictype/pr_grapheme_base.c: New file.
50209         * lib/unictype/pr_grapheme_extend.c: New file.
50210         * lib/unictype/pr_grapheme_link.c: New file.
50211         * lib/unictype/pr_hex_digit.c: New file.
50212         * lib/unictype/pr_hyphen.c: New file.
50213         * lib/unictype/pr_id_continue.c: New file.
50214         * lib/unictype/pr_id_start.c: New file.
50215         * lib/unictype/pr_ideographic.c: New file.
50216         * lib/unictype/pr_ids_binary_operator.c: New file.
50217         * lib/unictype/pr_ids_trinary_operator.c: New file.
50218         * lib/unictype/pr_ignorable_control.c: New file.
50219         * lib/unictype/pr_iso_control.c: New file.
50220         * lib/unictype/pr_join_control.c: New file.
50221         * lib/unictype/pr_left_of_pair.c: New file.
50222         * lib/unictype/pr_line_separator.c: New file.
50223         * lib/unictype/pr_logical_order_exception.c: New file.
50224         * lib/unictype/pr_lowercase.c: New file.
50225         * lib/unictype/pr_math.c: New file.
50226         * lib/unictype/pr_non_break.c: New file.
50227         * lib/unictype/pr_not_a_character.c: New file.
50228         * lib/unictype/pr_numeric.c: New file.
50229         * lib/unictype/pr_other_alphabetic.c: New file.
50230         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50231         * lib/unictype/pr_other_grapheme_extend.c: New file.
50232         * lib/unictype/pr_other_id_continue.c: New file.
50233         * lib/unictype/pr_other_id_start.c: New file.
50234         * lib/unictype/pr_other_lowercase.c: New file.
50235         * lib/unictype/pr_other_math.c: New file.
50236         * lib/unictype/pr_other_uppercase.c: New file.
50237         * lib/unictype/pr_paired_punctuation.c: New file.
50238         * lib/unictype/pr_paragraph_separator.c: New file.
50239         * lib/unictype/pr_pattern_syntax.c: New file.
50240         * lib/unictype/pr_pattern_white_space.c: New file.
50241         * lib/unictype/pr_private_use.c: New file.
50242         * lib/unictype/pr_punctuation.c: New file.
50243         * lib/unictype/pr_quotation_mark.c: New file.
50244         * lib/unictype/pr_radical.c: New file.
50245         * lib/unictype/pr_sentence_terminal.c: New file.
50246         * lib/unictype/pr_soft_dotted.c: New file.
50247         * lib/unictype/pr_space.c: New file.
50248         * lib/unictype/pr_terminal_punctuation.c: New file.
50249         * lib/unictype/pr_test.c: New file.
50250         * lib/unictype/pr_titlecase.c: New file.
50251         * lib/unictype/pr_unassigned_code_value.c: New file.
50252         * lib/unictype/pr_unified_ideograph.c: New file.
50253         * lib/unictype/pr_uppercase.c: New file.
50254         * lib/unictype/pr_variation_selector.c: New file.
50255         * lib/unictype/pr_white_space.c: New file.
50256         * lib/unictype/pr_xid_continue.c: New file.
50257         * lib/unictype/pr_xid_start.c: New file.
50258         * lib/unictype/pr_zero_width.c: New file.
50259         * lib/unictype/scripts.c: New file.
50260         * lib/unictype/sy_c_ident.c: New file.
50261         * lib/unictype/sy_c_whitespace.c: New file.
50262         * lib/unictype/sy_java_ident.c: New file.
50263         * lib/unictype/sy_java_whitespace.c: New file.
50264
50265         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50266         Unicode 5.0.0.
50267         * lib/unictype/blocks.h: Likewise.
50268         * lib/unictype/categ_C.h: Likewise.
50269         * lib/unictype/categ_Cc.h: Likewise.
50270         * lib/unictype/categ_Cf.h: Likewise.
50271         * lib/unictype/categ_Cn.h: Likewise.
50272         * lib/unictype/categ_Co.h: Likewise.
50273         * lib/unictype/categ_Cs.h: Likewise.
50274         * lib/unictype/categ_L.h: Likewise.
50275         * lib/unictype/categ_Ll.h: Likewise.
50276         * lib/unictype/categ_Lm.h: Likewise.
50277         * lib/unictype/categ_Lo.h: Likewise.
50278         * lib/unictype/categ_Lt.h: Likewise.
50279         * lib/unictype/categ_Lu.h: Likewise.
50280         * lib/unictype/categ_M.h: Likewise.
50281         * lib/unictype/categ_Mc.h: Likewise.
50282         * lib/unictype/categ_Me.h: Likewise.
50283         * lib/unictype/categ_Mn.h: Likewise.
50284         * lib/unictype/categ_N.h: Likewise.
50285         * lib/unictype/categ_Nd.h: Likewise.
50286         * lib/unictype/categ_Nl.h: Likewise.
50287         * lib/unictype/categ_No.h: Likewise.
50288         * lib/unictype/categ_P.h: Likewise.
50289         * lib/unictype/categ_Pc.h: Likewise.
50290         * lib/unictype/categ_Pd.h: Likewise.
50291         * lib/unictype/categ_Pe.h: Likewise.
50292         * lib/unictype/categ_Pf.h: Likewise.
50293         * lib/unictype/categ_Pi.h: Likewise.
50294         * lib/unictype/categ_Po.h: Likewise.
50295         * lib/unictype/categ_Ps.h: Likewise.
50296         * lib/unictype/categ_S.h: Likewise.
50297         * lib/unictype/categ_Sc.h: Likewise.
50298         * lib/unictype/categ_Sk.h: Likewise.
50299         * lib/unictype/categ_Sm.h: Likewise.
50300         * lib/unictype/categ_So.h: Likewise.
50301         * lib/unictype/categ_Z.h: Likewise.
50302         * lib/unictype/categ_Zl.h: Likewise.
50303         * lib/unictype/categ_Zp.h: Likewise.
50304         * lib/unictype/categ_Zs.h: Likewise.
50305         * lib/unictype/categ_of.h: Likewise.
50306         * lib/unictype/combining.h: Likewise.
50307         * lib/unictype/ctype_alnum.h: Likewise.
50308         * lib/unictype/ctype_alpha.h: Likewise.
50309         * lib/unictype/ctype_blank.h: Likewise.
50310         * lib/unictype/ctype_cntrl.h: Likewise.
50311         * lib/unictype/ctype_digit.h: Likewise.
50312         * lib/unictype/ctype_graph.h: Likewise.
50313         * lib/unictype/ctype_lower.h: Likewise.
50314         * lib/unictype/ctype_print.h: Likewise.
50315         * lib/unictype/ctype_punct.h: Likewise.
50316         * lib/unictype/ctype_space.h: Likewise.
50317         * lib/unictype/ctype_upper.h: Likewise.
50318         * lib/unictype/ctype_xdigit.h: Likewise.
50319         * lib/unictype/decdigit.h: Likewise.
50320         * lib/unictype/digit.h: Likewise.
50321         * lib/unictype/mirror.h: Likewise.
50322         * lib/unictype/numeric.h: Likewise.
50323         * lib/unictype/pr_alphabetic.h: Likewise.
50324         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50325         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50326         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50327         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50328         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50329         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50330         * lib/unictype/pr_bidi_control.h: Likewise.
50331         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50332         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50333         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50334         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50335         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50336         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50337         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50338         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50339         * lib/unictype/pr_bidi_pdf.h: Likewise.
50340         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50341         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50342         * lib/unictype/pr_combining.h: Likewise.
50343         * lib/unictype/pr_composite.h: Likewise.
50344         * lib/unictype/pr_currency_symbol.h: Likewise.
50345         * lib/unictype/pr_dash.h: Likewise.
50346         * lib/unictype/pr_decimal_digit.h: Likewise.
50347         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50348         * lib/unictype/pr_deprecated.h: Likewise.
50349         * lib/unictype/pr_diacritic.h: Likewise.
50350         * lib/unictype/pr_extender.h: Likewise.
50351         * lib/unictype/pr_format_control.h: Likewise.
50352         * lib/unictype/pr_grapheme_base.h: Likewise.
50353         * lib/unictype/pr_grapheme_extend.h: Likewise.
50354         * lib/unictype/pr_grapheme_link.h: Likewise.
50355         * lib/unictype/pr_hex_digit.h: Likewise.
50356         * lib/unictype/pr_hyphen.h: Likewise.
50357         * lib/unictype/pr_id_continue.h: Likewise.
50358         * lib/unictype/pr_id_start.h: Likewise.
50359         * lib/unictype/pr_ideographic.h: Likewise.
50360         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50361         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50362         * lib/unictype/pr_ignorable_control.h: Likewise.
50363         * lib/unictype/pr_iso_control.h: Likewise.
50364         * lib/unictype/pr_join_control.h: Likewise.
50365         * lib/unictype/pr_left_of_pair.h: Likewise.
50366         * lib/unictype/pr_line_separator.h: Likewise.
50367         * lib/unictype/pr_logical_order_exception.h: Likewise.
50368         * lib/unictype/pr_lowercase.h: Likewise.
50369         * lib/unictype/pr_math.h: Likewise.
50370         * lib/unictype/pr_non_break.h: Likewise.
50371         * lib/unictype/pr_not_a_character.h: Likewise.
50372         * lib/unictype/pr_numeric.h: Likewise.
50373         * lib/unictype/pr_other_alphabetic.h: Likewise.
50374         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50375         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50376         * lib/unictype/pr_other_id_continue.h: Likewise.
50377         * lib/unictype/pr_other_id_start.h: Likewise.
50378         * lib/unictype/pr_other_lowercase.h: Likewise.
50379         * lib/unictype/pr_other_math.h: Likewise.
50380         * lib/unictype/pr_other_uppercase.h: Likewise.
50381         * lib/unictype/pr_paired_punctuation.h: Likewise.
50382         * lib/unictype/pr_paragraph_separator.h: Likewise.
50383         * lib/unictype/pr_pattern_syntax.h: Likewise.
50384         * lib/unictype/pr_pattern_white_space.h: Likewise.
50385         * lib/unictype/pr_private_use.h: Likewise.
50386         * lib/unictype/pr_punctuation.h: Likewise.
50387         * lib/unictype/pr_quotation_mark.h: Likewise.
50388         * lib/unictype/pr_radical.h: Likewise.
50389         * lib/unictype/pr_sentence_terminal.h: Likewise.
50390         * lib/unictype/pr_soft_dotted.h: Likewise.
50391         * lib/unictype/pr_space.h: Likewise.
50392         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50393         * lib/unictype/pr_titlecase.h: Likewise.
50394         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50395         * lib/unictype/pr_unified_ideograph.h: Likewise.
50396         * lib/unictype/pr_uppercase.h: Likewise.
50397         * lib/unictype/pr_variation_selector.h: Likewise.
50398         * lib/unictype/pr_white_space.h: Likewise.
50399         * lib/unictype/pr_xid_continue.h: Likewise.
50400         * lib/unictype/pr_xid_start.h: Likewise.
50401         * lib/unictype/pr_zero_width.h: Likewise.
50402         * lib/unictype/scripts.h: Likewise.
50403         * lib/unictype/scripts_byname.gperf: Likewise.
50404         * lib/unictype/sy_c_ident.h: Likewise.
50405         * lib/unictype/sy_c_whitespace.h: Likewise.
50406         * lib/unictype/sy_java_ident.h: Likewise.
50407         * lib/unictype/sy_java_whitespace.h: Likewise.
50408
50409         * lib/unictype/Makefile: New file.
50410         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50411         glibc.
50412         * lib/unictype/3level.h: New file, copied from glibc.
50413         * lib/unictype/3levelbit.h: New file.
50414
50415 2007-11-11  Bruno Haible  <bruno@clisp.org>
50416
50417         * modules/gperf: New file.
50418         * modules/iconv_open (Depends-on): Add it.
50419         (Makefile.am): Remove the GPERF definition.
50420
50421 2007-11-11  Bruno Haible  <bruno@clisp.org>
50422
50423         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50424         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50425
50426 2007-11-11  Bruno Haible  <bruno@clisp.org>
50427
50428         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50429         (usage): Remove function.
50430
50431 2007-11-11  Bruno Haible  <bruno@clisp.org>
50432
50433         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50434         gl_FUNC_CEILF_LIBS.
50435         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50436         gl_FUNC_CEIL_LIBS.
50437         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50438         gl_FUNC_CEILL_LIBS.
50439         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50440         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50441         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50442
50443 2007-11-11  Bruno Haible  <bruno@clisp.org>
50444
50445         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50446         roundf were declared but do not exist on functions.
50447         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50448         roundl were declared but do not exist on functions.
50449         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50450         HAVE_FLOORL_AND_CEILL, respectively.
50451         Needed for Sun C on Solaris 10.
50452
50453 2007-11-11  Bruno Haible  <bruno@clisp.org>
50454
50455         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50456         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50457         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50458         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50459         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50460         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50461         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50462         HAVE_DECL_ROUNDF.
50463         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50464         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50466         of HAVE_DECL_ROUND*.
50467         * modules/math (Makefile.am): Update.
50468
50469 2007-11-10  Bruno Haible  <bruno@clisp.org>
50470
50471         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50472         ptrdiff_t as m4/intl.m4.
50473
50474 2007-11-10  Jim Meyering  <meyering@redhat.com>
50475
50476         Avoid link failure for the argmatch test.
50477         * tests/test-argmatch.c (usage): Define function to avoid a link
50478         failure: argmatch_die requires a usage function.
50479
50480 2007-11-09  Bruno Haible  <bruno@clisp.org>
50481
50482         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50483         * doc/functions/vsnprintf.texi: Likewise.
50484         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50485         with a size argument < 2.
50486
50487 2007-11-09  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50490         buffer. Fixes an inefficiency introduced on 2007-11-03.
50491
50492 2007-11-09  Bruno Haible  <bruno@clisp.org>
50493
50494         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50495         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50496
50497 2007-11-08  Jim Meyering  <meyering@redhat.com>
50498
50499         Change cache variable name prefix "jm_" to "gl_" everywhere.
50500         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50501         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50502         * m4/uptime.m4: s/gl_/jm_/
50503
50504 2007-11-07  Bruno Haible  <bruno@clisp.org>
50505
50506         Update to GNU gettext 0.17.
50507         * m4/intl.m4: Update to GNU gettext 0.17.
50508         * m4/po.m4: Likewise.
50509         * modules/gettext (Files): Remove m4/ulonglong.m4.
50510         (configure.ac): Require gettext infrastructure from version 0.17.
50511
50512 2007-11-06  Bruno Haible  <bruno@clisp.org>
50513
50514         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50515         symbolic values are not defined in a public header.
50516         * lib/freadable.c (freadable) [QNX]: Likewise.
50517         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50518         * lib/freading.c (freading) [QNX]: Likewise.
50519         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50520         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50521         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50522         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50523         Reported by Alain Magloire.
50524
50525         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50526
50527 2007-11-05  Bruno Haible  <bruno@clisp.org>
50528
50529         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50530         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50531         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50532         Reported by Eric Blake.
50533
50534 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50535             Bruno Haible  <bruno@clisp.org>
50536
50537         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50538         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50539         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50540         (malloc): Undefine also before including <stdlib.h>.
50541         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50542         Needed on OSF/1 4.0.
50543
50544 2007-11-05  Jim Meyering  <meyering@redhat.com>
50545
50546         git-version-gen: sync from coreutils.
50547         * build-aux/git-version-gen: Add comments.
50548         Change the first '-' to '.' in the snapshot version string,
50549         e.g., 6.9-377-08144 -> 6.9.377-08144
50550         Remove first parameter.
50551         Don't declare a version "-dirty" merely because a time
50552         stamp has changed.
50553
50554 2007-11-04  Bruno Haible  <bruno@clisp.org>
50555
50556         * lib/lock.h: Protect all macro definitions containing an 'if'
50557         statement through a "do { ... } while (0)".
50558         * lib/tls.h: Likewise.
50559
50560 2007-11-04  Bruno Haible  <bruno@clisp.org>
50561
50562         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50563
50564 2007-11-04  Bruno Haible  <bruno@clisp.org>
50565
50566         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50567         * modules/fprintf-posix (Depends-on): Add nocrash.
50568         * modules/snprintf-posix (Depends-on): Likewise.
50569         * modules/sprintf-posix (Depends-on): Likewise.
50570         * modules/vasnprintf-posix (Depends-on): Likewise.
50571         * modules/vasprintf-posix (Depends-on): Likewise.
50572         * modules/vfprintf-posix (Depends-on): Likewise.
50573         * modules/vsnprintf-posix (Depends-on): Likewise.
50574         * modules/vsprintf-posix (Depends-on): Likewise.
50575         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50576         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50577         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50578         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50579         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50580         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50581         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50582
50583 2007-11-04  Bruno Haible  <bruno@clisp.org>
50584
50585         * modules/nocrash: New file.
50586         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50587         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50588
50589 2007-11-04  Bruno Haible  <bruno@clisp.org>
50590
50591         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50592         precision handling.
50593         * tests/test-vasprintf-posix.c (test_function): Likewise.
50594         * tests/test-snprintf-posix.h (test_function): Likewise.
50595         * tests/test-sprintf-posix.h (test_function): Likewise.
50596
50597         Fix *printf behaviour for large precisions on mingw and BeOS.
50598         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50599         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50601         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50602         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50603         gl_PRINTF_PRECISION and test its result. Invoke
50604         gl_PREREQ_VASNPRINTF_PRECISION.
50605         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50606         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50607         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50608         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50609         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50610         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50611         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50612         * doc/functions/fprintf.texi: Update.
50613         * doc/functions/printf.texi: Update.
50614         * doc/functions/snprintf.texi: Update.
50615         * doc/functions/sprintf.texi: Update.
50616         * doc/functions/vfprintf.texi: Update.
50617         * doc/functions/vprintf.texi: Update.
50618         * doc/functions/vsnprintf.texi: Update.
50619         * doc/functions/vsprintf.texi: Update.
50620
50621 2007-11-04  Bruno Haible  <bruno@clisp.org>
50622
50623         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50624
50625 2007-11-04  Bruno Haible  <bruno@clisp.org>
50626
50627         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50628         Reported by Sylvain Beucler <beuc@gnu.org>.
50629
50630 2007-11-03  Bruno Haible  <bruno@clisp.org>
50631
50632         * tests/test-fprintf-posix2.sh: New file.
50633         * tests/test-fprintf-posix2.c: New file.
50634         * modules/fprintf-posix-tests (Files): Add them.
50635         (TESTS): Add test-fprintf-posix2.sh.
50636         (configure.ac): Check for getrlimit and setrlimit.
50637         (check_PROGRAMS): Add test-fprintf-posix2.
50638
50639         * tests/test-printf-posix2.sh: New file.
50640         * tests/test-printf-posix2.c: New file.
50641         * modules/printf-posix-tests (Files): Add them.
50642         (TESTS): Add test-printf-posix2.sh.
50643         (configure.ac): Check for getrlimit and setrlimit.
50644         (check_PROGRAMS): Add test-printf-posix2.
50645
50646         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50647         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50648         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50649         (decode_double): New function, copied from decode_long_double.
50650         (scale10_round_decimal_decoded): New function, extracted from
50651         scale10_round_decimal_long_double.
50652         (scale10_round_decimal_long_double): Use it.
50653         (scale10_round_decimal_double): New function.
50654         (floorlog10): New function.
50655         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50657         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50658         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50659         gl_PRINTF_ENOMEM and test its result. Invoke
50660         gl_PREREQ_VASNPRINTF_ENOMEM.
50661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50662         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50663         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50664         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50665         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50667         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50668         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50669         * modules/snprintf-posix (Depends-on): Likewise.
50670         * modules/sprintf-posix (Depends-on): Likewise.
50671         * modules/vasnprintf-posix (Depends-on): Likewise.
50672         * modules/vasprintf-posix (Depends-on): Likewise.
50673         * modules/vfprintf-posix (Depends-on): Likewise.
50674         * modules/vsnprintf-posix (Depends-on): Likewise.
50675         * modules/vsprintf-posix (Depends-on): Likewise.
50676         * doc/functions/fprintf.texi: Update.
50677         * doc/functions/printf.texi: Update.
50678         * doc/functions/snprintf.texi: Update.
50679         * doc/functions/sprintf.texi: Update.
50680         * doc/functions/vfprintf.texi: Update.
50681         * doc/functions/vprintf.texi: Update.
50682         * doc/functions/vsnprintf.texi: Update.
50683         * doc/functions/vsprintf.texi: Update.
50684
50685 2007-11-03  Bruno Haible  <bruno@clisp.org>
50686
50687         * modules/frexp-nolibm-tests: New file.
50688
50689         * modules/frexp-nolibm: New file.
50690         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50691
50692 2007-11-03  Bruno Haible  <bruno@clisp.org>
50693
50694         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50695         value is C99 compliant.
50696         Needed for OSF/1 5.1.
50697
50698 2007-11-03  Bruno Haible  <bruno@clisp.org>
50699
50700         Fix out-of-memory handling of vasnprintf.
50701         * lib/printf-parse.c: Include <errno.h>.
50702         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50703         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50704         is already set.
50705
50706 2007-11-02  Eric Blake  <ebb9@byu.net>
50707
50708         Fix tests on cygwin.
50709         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50710
50711 2007-11-01  Bruno Haible  <bruno@clisp.org>
50712
50713         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50714         warning.
50715         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50716         needed for POSIX compatibility.
50717
50718 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50719
50720         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50721         for compatibility with GNU.
50722
50723 2007-11-01  Bruno Haible  <bruno@clisp.org>
50724
50725         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50726         (putenv): Renamed from rpl_putenv. Change argument type from
50727         'const char *' to 'char *'.
50728         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50729         of defining putenv in config.h, just set REPLACE_PUTENV.
50730         * modules/putenv (Depends-on): Add stdlib.
50731         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50732         (Include): Use <stdlib.h>.
50733         * lib/stdlib.in.h (putenv): New declaration.
50734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50735         REPLACE_PUTENV.
50736         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50737         REPLACE_PUTENV.
50738         Needed for MacOS X 10.5.0.
50739         Reported by Peter O'Gorman <peter@pogma.com>.
50740
50741 2007-11-01  Jim Meyering  <meyering@redhat.com>
50742
50743         Treat an empty date string exactly like "0".
50744         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50745         if the remaining date string (to be parsed) is empty, use "0".
50746         Reported by Mischa Molhoek and discussed in this thread:
50747         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50748
50749 2007-10-31  Bruno Haible  <bruno@clisp.org>
50750
50751         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50752         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50753         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50754         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50755         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50756         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50757
50758 2007-10-31  Bruno Haible  <bruno@clisp.org>
50759
50760         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50761         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50762         (AC_TYPE_LONG_LONG_INT): Use it.
50763         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50764         it as well.
50765         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50766         to m4/longlong.m4.
50767         * modules/stdint (Files): Remove m4/ulonglong.m4.
50768         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50769         m4/ulonglong.m4.
50770         * modules/strtoumax (Files): Likewise.
50771
50772 2007-10-30  Bruno Haible  <bruno@clisp.org>
50773
50774         * modules/xvasprintf-posix: New file.
50775         Suggested by Eric Blake.
50776
50777 2007-10-30  Bruno Haible  <bruno@clisp.org>
50778
50779         * modules/xprintf-posix-tests: New file.
50780         * tests/test-xprintf-posix.sh: New file.
50781         * tests/test-xprintf-posix.c: New file.
50782         * tests/test-xfprintf-posix.c: New file.
50783
50784         * modules/xprintf-posix: New file.
50785
50786 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50787
50788         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50789         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50790         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50791
50792 2007-10-29  Bruno Haible  <bruno@clisp.org>
50793
50794         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50795         contain the special marker '_cv_'.
50796         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50797         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50798         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50799         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50800         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50801         Reported by Ralf Wildenhues.
50802
50803 2007-10-29  Bruno Haible  <bruno@clisp.org>
50804
50805         * gnulib-tool (func_import): When --lgpl is not specified, set
50806         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50807         GPLv3.
50808         Reported by Simon Josefsson.
50809
50810 2007-10-28  Bruno Haible  <bruno@clisp.org>
50811
50812         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50813         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50814         HAVE_DECL_ISFINITE.
50815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50816         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50817         HAVE_DECL_ISFINITE.
50818
50819 2007-10-28  Bruno Haible  <bruno@clisp.org>
50820
50821         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50822         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50823
50824 2007-10-28  Bruno Haible  <bruno@clisp.org>
50825
50826         Fix link errors with Sun C 5.0 on Solaris 10.
50827         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50828         function is declared but not present in the compiler's libm.
50829         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50830         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50831         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50832         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50833         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50834         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50835         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50837         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50838         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50839         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50840         HAVE_DECL_FLOORL.
50841
50842 2007-10-28  Bruno Haible  <bruno@clisp.org>
50843
50844         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50845         gl_FUNC_FLOORL. Cache the result.
50846         (gl_FUNC_FLOORL): Use it.
50847         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50848         gl_FUNC_CEILL. Cache the result.
50849         (gl_FUNC_CEILL): Use it.
50850
50851         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50852         gl_FUNC_FLOOR. Cache the result.
50853         (gl_FUNC_FLOOR): Use it.
50854         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50855         gl_FUNC_CEIL. Cache the result.
50856         (gl_FUNC_CEIL): Use it.
50857
50858         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50859         gl_FUNC_FLOORF. Cache the result.
50860         (gl_FUNC_FLOORF): Use it.
50861         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50862         gl_FUNC_CEILF. Cache the result.
50863         (gl_FUNC_CEILF): Use it.
50864
50865 2007-10-28  Bruno Haible  <bruno@clisp.org>
50866
50867         * gnulib-tool: Allow specifying the LGPL version number through
50868         --lgpl=2 or --lgpl=3.
50869         (func_usage): Document --lgpl with argument.
50870         Handle --lgpl=... arguments.
50871         (func_import): Recognize also gl_LGPL calls with an argument. When
50872         --lgpl=2 is used and the module's license is just LGPL, report an
50873         error. Set sed_transform_lib_file according to the lgpl variable. In
50874         the generated files, use --lgpl or gl_LGPL invocations with argument,
50875         if necessary.
50876         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50877         an LGPv2+ license.
50878         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50879         gl_LGPL macro.
50880
50881 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50882             Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50885         (u16_uctomb_aux): Likewise.
50886         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50887         !HAVE_INLINE.
50888         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50889
50890 2007-10-28  Bruno Haible  <bruno@clisp.org>
50891
50892         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50893         Invoke AM_GETTEXT_OPTION if it exists.
50894         * modules/vasprintf: Likewise.
50895         * modules/verror: Likewise.
50896         * modules/xprintf: Likewise.
50897         * modules/xvasprintf: Likewise.
50898
50899 2007-10-27  Ben Pfaff  <blp@gnu.org>
50900
50901         * lib/math.in.h: Define isfinite macro and prototypes for
50902         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50903         implementations.
50904         * m4/math_h.m4: New substitutions for isfinite module.
50905         * lib/isfinite.c: New file.
50906         * m4/isfinite.m4: New file.
50907         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50908         * modules/isfinite: New file.
50909         * modules/isfinite-tests: New file.
50910         * tests/tests-isfinite.c: New file.
50911         * doc/functions/isfinite.texi: Mention isfinite module.
50912         * MODULES.html.sh: Mention new module.
50913
50914 2007-10-27  Ben Pfaff  <blp@gnu.org>
50915
50916         Ralf Wildenhues reported that Tru64 4.0D declares the round
50917         functions but does not have definitions.
50918         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50919         cannot be found in any library, set the output variable to
50920         "missing" instead of "".
50921         * m4/round.m4: Also use our substitute if we cannot find round in
50922         any library, even if it is declared.
50923         * m4/roundf.m4: Likewise for roundf.
50924         * m4/roundl.m4: Likewise for roundl.
50925         * lib/math.in.h: Undefine roundf, round, roundl before defining
50926         their replacements, to allow for hypothetical systems where these
50927         may be defined as macros but not available in libraries.
50928
50929 2007-10-27  Bruno Haible  <bruno@clisp.org>
50930
50931         * doc/gnulib.texi: Invoke @firstparagraphindent.
50932         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50933         changes in gnulib.
50934         (Source changes): New section.
50935
50936 2007-10-26  Bruno Haible  <bruno@clisp.org>
50937
50938         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50939         borrowed from autoconf.
50940
50941 2007-10-26  Bruno Haible  <bruno@clisp.org>
50942
50943         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50944         strerror returned the empty string. Needed on HP-UX 11.00.
50945
50946 2007-10-24  Micah Cowan  <micah@cowan.name>
50947
50948         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50949         * build-aux/bootstrap: Remove support for now-unnecessary option,
50950         --cvs-user, and envvars CVS_USER, CVS_RSH.
50951
50952 2007-10-24  Jim Meyering  <meyering@redhat.com>
50953
50954         Avoid diagnostics from sha1sum when there is no cached checksum.
50955         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50956         if the po.s1 file hasn't been created yet.
50957
50958         * build-aux/bootstrap: Sync from coreutils:
50959         2007-10-24  Jim Meyering  <meyering@redhat.com>
50960         Get gnulib from the git repository, not from an obsolete cvs one.
50961         * build-aux/bootstrap: Suggestion from Micah Cowan.
50962         2007-10-04  Jim Meyering  <jim@meyering.net>
50963         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50964         (update_po_files): Work also when there are no .po files in po/.
50965
50966 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50967
50968         * README: Append ".git" to git and cg examples.
50969         Problem reported by Benoit Sigoure.
50970
50971 2007-10-23  Micah Cowan  <micah@cowan.name>
50972
50973         * users.txt: Add wget.
50974
50975 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50976
50977         Fix linking of some unistdio tests on FreeBSD.
50978         * modules/unistdio/u16-vsnprintf-tests
50979         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50980         * modules/unistdio/u16-vsprintf-tests
50981         (test_u16_vsnprintf1_LDADD): Likewise.
50982         * modules/unistdio/u32-vsnprintf-tests
50983         (test_u32_vsnprintf1_LDADD): Likewise.
50984         * modules/unistdio/u32-vsprintf-tests
50985         (test_u32_vsprintf1_LDADD): Likewise.
50986         * modules/unistdio/u8-vsnprintf-tests
50987         (test_u8_vsnprintf1_LDADD): Likewise.
50988         * modules/unistdio/u8-vsprintf-tests
50989         (test_u8_vsprintf1_LDADD): Likewise.
50990         * modules/unistdio/ulc-vsnprintf-tests
50991         (test_ulc_vsnprintf1_LDADD): Likewise.
50992         * modules/unistdio/ulc-vsprintf-tests
50993         (test_ulc_vsprintf1_LDADD): Likewise.
50994
50995         Fix linking of some uniconv tests on FreeBSD.
50996         * modules/uniconv/u16-conv-from-enc-tests
50997         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50998         * modules/uniconv/u16-conv-to-enc-tests
50999         (test_u16_conv_to_enc_LDADD): Likewise.
51000         * modules/uniconv/u16-strconv-from-enc-tests
51001         (test_u16_strconv_from_enc_LDADD): Likewise.
51002         * modules/uniconv/u16-strconv-to-enc-tests
51003         (test_u16_strconv_to_enc_LDADD): Likewise.
51004         * modules/uniconv/u32-conv-from-enc-tests
51005         (test_u32_conv_from_enc_LDADD): Likewise.
51006         * modules/uniconv/u32-conv-to-enc-tests
51007         (test_u32_conv_to_enc_LDADD): Likewise.
51008         * modules/uniconv/u32-strconv-from-enc-tests
51009         (test_u32_strconv_from_enc_LDADD): Likewise.
51010         * modules/uniconv/u32-strconv-to-enc-tests
51011         (test_u32_strconv_to_enc_LDADD): Likewise.
51012         * modules/uniconv/u8-conv-from-enc-tests
51013         (test_u8_conv_from_enc_LDADD): Likewise.
51014         * modules/uniconv/u8-conv-to-enc-tests
51015         (test_u8_conv_to_enc_LDADD): Likewise.
51016         * modules/uniconv/u8-strconv-from-enc-tests
51017         (test_u8_strconv_from_enc_LDADD): Likewise.
51018         * modules/uniconv/u8-strconv-to-enc-tests
51019         (test_u8_strconv_to_enc_LDADD): Likewise.
51020
51021 2007-10-22  Bruno Haible  <bruno@clisp.org>
51022
51023         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51024         size.
51025
51026 2007-10-22  Eric Blake  <ebb9@byu.net>
51027
51028         Tweak x*printf documentation.
51029         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51030         variable name and comments.
51031         Suggested by Bruno Haible.
51032
51033 2007-10-22  Bruno Haible  <bruno@clisp.org>
51034
51035         * lib/acl.c (copy_acl): Fix file name in comment.
51036
51037 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51038
51039         Fix Tru64 problem with stdbool.h.
51040         * lib/stdbool.in.h (false, true):
51041         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51042         Don't declare as an enum in this situation; it runs afoul of Tru64.
51043         Problem reported by Steven M. Schweda in
51044         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51045
51046 2007-10-22  Eric Blake  <ebb9@byu.net>
51047
51048         Also wrap vf?printf.
51049         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51050         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51051         (xvprintf, xvfprintf): New functions.
51052
51053 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51054
51055         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51056         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51057
51058         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51059         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51060
51061 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51062
51063         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51064         by Bruno Haible.
51065
51066 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51067
51068         * lib/getloadavg.c
51069         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51070         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51071
51072         * tests/test-i-ring.c: Work for C89.
51073
51074 2007-10-22  Bruno Haible  <bruno@clisp.org>
51075
51076         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51077         -1u, in preprocessor expression, so that we don't test for the bug
51078         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51079         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51080
51081 2007-10-22  Eric Blake  <ebb9@byu.net>
51082
51083         * tests/test-yesno.sh: Silence stderr during test.
51084
51085 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51086
51087         * modules/crypto/gc-camellia: New file.
51088
51089         * m4/gc-camellia.m4: New file.
51090
51091         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51092
51093         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51094
51095 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51096
51097         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51098         --help to stdout.  Reported by sms@antinode.org (Steven
51099         M. Schweda).
51100
51101 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51102
51103         * users.txt: Fix link to libksba.
51104
51105 2007-10-21  Ben Pfaff  <blp@gnu.org>
51106
51107         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51108         round.c roundf implementation that depends on floorf and ceilf to
51109         be tested unconditionally.
51110
51111 2007-10-21  Ben Pfaff  <blp@gnu.org>
51112
51113         * m4/check-libm-func.m4: Removed.
51114         * m4/check-math-lib.m4: New file.
51115         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51116         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51117         definition and lack of AC_LIBOBJ([roundf]).
51118         * m4/roundl.m4: Ditto, and similarly for roundl.
51119         * modules/round: Reference new m4 file.
51120         * modules/roundf: Ditto.
51121         * modules/roundl: Ditto.
51122         * tests/test-round2.c (main): Use ROUND instead of round.
51123         Bug report from Bruno Haible.
51124
51125 2007-10-21  Bruno Haible  <bruno@clisp.org>
51126
51127         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51128         context.
51129
51130 2007-10-21  Bruno Haible  <bruno@clisp.org>
51131
51132         * tests/test-wcwidth.c (main): Allow negative result for some control
51133         characters.
51134
51135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51136         Needed on OSF/1 5.1.
51137
51138 2007-10-21  Bruno Haible  <bruno@clisp.org>
51139
51140         * tests/test-floorf1.c: Include isnanf.h.
51141         (main): Use isnanf() instead of isnan().
51142         * tests/test-ceilf1.c: Include isnanf.h.
51143         (main): Use isnanf() instead of isnan().
51144         * tests/test-truncf1.c: Include isnanf.h.
51145         (main): Use isnanf() instead of isnan().
51146         * tests/test-roundf1.c: Include isnanf.h.
51147         (main): Use isnanf() instead of isnan().
51148
51149 2007-10-21  Eric Blake  <ebb9@byu.net>
51150
51151         * users.txt: Update URL for m4.
51152
51153 2007-10-21  Bruno Haible  <bruno@clisp.org>
51154
51155         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51156
51157 2007-10-21  Bruno Haible  <bruno@clisp.org>
51158
51159         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51160         Git's management files if the CVS files are not present.
51161
51162 2007-10-20  Bruno Haible  <bruno@clisp.org>
51163
51164         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51165         gcc-3.4.x.
51166
51167 2007-10-20  Ben Pfaff  <blp@gnu.org>
51168
51169         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51170         implementations.
51171         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51172         * lib/round.c: New file.
51173         * lib/roundf.c: New file.
51174         * lib/roundl.c: New file.
51175         * m4/round.m4: New file.
51176         * m4/roundf.m4: New file.
51177         * m4/roundl.m4: New file.
51178         * m4/check-libm-func-m4: New file.
51179         * modules/math: Replace round, roundf, roundl related @VARS@ in
51180         math.in.h.
51181         * modules/round: New file.
51182         * modules/round-tests: New file.
51183         * modules/roundf: New file.
51184         * modules/roundf-tests: New file.
51185         * modules/roundl: New file.
51186         * modules/roundl-tests: New file.
51187         * tests/test-round1.c: New file.
51188         * tests/test-round2.c: New file.
51189         * tests/test-roundf1.c: New file.
51190         * tests/test-roundf2.c: New file.
51191         * tests/test-roundl.c: New file.
51192         * doc/functions/round.texi: Mention round module.
51193         * doc/functions/roundf.texi: Mention roundf module.
51194         * doc/functions/roundl.texi: Mention roundl module.
51195         * MODULES.html.sh: Mention new modules.
51196         Thanks to Bruno Haible for suggestions.
51197
51198 2007-10-20  Jim Meyering  <meyering@redhat.com>
51199
51200         * lib/xprintf.c: Include <config.h> unconditionally.
51201
51202         Change xprintf's license to GPL.
51203         * modules/xprintf (License): s/LGPL/GPL/, since this module
51204         depends on modules (exit and exitfail) which are GPL.
51205         Suggestion from Bruno Haible.
51206
51207         xprintf fixes.
51208         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51209         Use a clearer diagnostic.
51210         Patch from Bruno Haible.
51211
51212 2007-10-20  Bruno Haible  <bruno@clisp.org>
51213
51214         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51215         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51216         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51217
51218 2007-10-20  Bruno Haible  <bruno@clisp.org>
51219
51220         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51221         precision in the comparison result > x - 1 or similar.
51222         * tests/test-ceilf2.c (correct_result_p): Likewise.
51223         * tests/test-truncf2.c (correct_result_p): Likewise.
51224         * tests/test-trunc2.c (correct_result_p): Likewise.
51225         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51226
51227 2007-10-20  Bruno Haible  <bruno@clisp.org>
51228
51229         * modules/ceil: New file.
51230         * m4/ceil.m4: New file.
51231         * doc/functions/ceil.texi: Mention the 'ceil' module.
51232
51233 2007-10-20  Bruno Haible  <bruno@clisp.org>
51234
51235         * modules/floor: New file.
51236         * m4/floor.m4: New file.
51237         * doc/functions/floor.texi: Mention the 'floor' module.
51238
51239 2007-10-20  Bruno Haible  <bruno@clisp.org>
51240
51241         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51242         of %a.
51243         * modules/floorf-tests (Depends-on): Likewise.
51244         * modules/truncf-tests (Depends-on): Likewise.
51245         * modules/trunc-tests (Depends-on): Likewise.
51246         Reported by Ben Pfaff.
51247
51248 2007-10-19  Jim Meyering  <meyering@redhat.com>
51249
51250         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51251         Don't bother testing specific errno values.  Just test ferror.
51252
51253         New module: xprintf
51254         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51255
51256 2007-10-19  Bruno Haible  <bruno@clisp.org>
51257
51258         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51259         syntax.
51260         * modules/javaexec (Makefile.am): Likewise.
51261         * modules/relocatable-prog (Makefile.am): Likewise.
51262         Suggested by Jim Meyering.
51263
51264 2007-10-18  Bruno Haible  <bruno@clisp.org>
51265
51266         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51267         Reported by Jim Meyering.
51268
51269 2007-10-18  Eric Blake  <ebb9@byu.net>
51270
51271         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51272
51273 2007-10-18  Bruno Haible  <bruno@clisp.org>
51274
51275         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51276         the format string into writable memory. Needed in Fortify conditions.
51277
51278 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51279             Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51282         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51283         * modules/trim (Depends-on): Add mbchar.
51284         (configure.ac): Add gl_FUNC_MBRTOWC.
51285         (Makefile.am): Augment lib_SOURCES.
51286
51287 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51288
51289         Modify glob.c to use fstatat and dirfd, to simplify it.
51290         Suggested by Eric Blake.
51291         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51292         Don't include <stdbool.h>; not used.
51293         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51294         (link_exists_p): Simplify implementation, since we can now assume
51295         dirfd and fstatat.
51296         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51297
51298 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51299
51300         * gnulib-tool (func_get_dependencies): Fix sed script to
51301         match only tests.
51302
51303 2007-10-17  Bruno Haible  <bruno@clisp.org>
51304
51305         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51306         allow locale names without encoding suffix.
51307         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51308         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51309
51310 2007-10-16  Bruno Haible  <bruno@clisp.org>
51311
51312         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51313         * lib/getgroups.c (getgroups): Likewise.
51314         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51315
51316 2007-10-16  Bruno Haible  <bruno@clisp.org>
51317
51318         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51319         * modules/malloc-posix (License): Likewise.
51320         * modules/realloc-posix (License): Likewise.
51321         * modules/calloc-posix (License): Likewise.
51322         * modules/intprops (License): Change from GPL to LGPL, with
51323         Paul Eggert's approval.
51324
51325 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51326
51327         Merge glibc changes into lib/glob.c.
51328
51329         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51330         2007-10-15 04:59:03 UTC.  Here are the changes:
51331
51332         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51333
51334         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51335
51336         * lib/glob.c: Add some branch prediction throughout.
51337
51338         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51339
51340         [BZ #5103]
51341         * lib/glob.c (glob): Recognize patterns starting \/.
51342
51343         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51344
51345         [BZ #3996]
51346         * lib/glob.c (attribute_hidden): Define if not defined.
51347         (glob): Unescape dirname, filename or username when needed and not
51348         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51349         is NULL.  Handle unescaped [ in pattern without closing ].
51350         Don't pass GLOB_CHECK down to recursive glob for directories.
51351         (__glob_pattern_type): New function.
51352         (__glob_pattern_p): Implement using __glob_pattern_type.
51353         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51354         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51355         Remove unreachable code.
51356
51357         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51358
51359         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51360         explain why there are no leaks.
51361
51362         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51363
51364         [BZ #3253]
51365         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51366         time, rather allocate increasingly bigger arrays of pointers, if
51367         possible with alloca, if too large with malloc.
51368
51369 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51370
51371         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51372         Problem reported by H.Merijn Brand in
51373         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51374         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51375         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51376
51377 2007-10-15  Bruno Haible  <bruno@clisp.org>
51378
51379         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51380         with explicit rpl_ prefix.
51381         * lib/fopen.c (fopen): Likewise.
51382         * lib/freopen.c (freopen): Likewise.
51383         * lib/iconv.c (iconv): Likewise.
51384         * lib/iconv_close.c (iconv_close): Likewise.
51385
51386 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51387
51388         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51389
51390 2007-10-15  Bruno Haible  <bruno@clisp.org>
51391
51392         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51393         <stddef.h> instead of <stdlib.h> since we only need NULL.
51394         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51395
51396 2007-10-15  Bruno Haible  <bruno@clisp.org>
51397
51398         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51399         Replace paragraph talking about LIBOBJS.
51400         Reported by Colin Watson <cjwatson@debian.org>.
51401
51402 2007-10-15  Bruno Haible  <bruno@clisp.org>
51403
51404         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51405         <stdlib.h> before using NULL.
51406
51407 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51408
51409         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51410         Reported by Albert Chin <china@thewrittenword.com>.
51411
51412 2007-10-14  Bruno Haible  <bruno@clisp.org>
51413
51414         * modules/iconv_open-utf-tests: New file.
51415         * tests/test-iconv-utf.c: New file.
51416
51417         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51418         * modules/iconv_open-utf: New file.
51419         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51420         (iconv, iconv_close): New declarations.
51421         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51422         be defined.
51423         (iconv_open): Add special handling of conversion between UTF-8 and
51424         UTF-{16,32}{BE,LE}.
51425         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51426         * lib/iconv_close.c: New file.
51427         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51428         gl_FUNC_ICONV_OPEN.
51429         (gl_FUNC_ICONV_OPEN): Use it.
51430         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51431         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51432         and REPLACE_ICONV_UTF.
51433         * modules/iconv_open (Depends-on): Add c-strcase.
51434         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51435         ICONV_CONST.
51436         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51437
51438 2007-10-13  Albert Chin  <china@thewrittenword.com>
51439             Bruno Haible  <bruno@clisp.org>
51440
51441         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51442         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51443
51444 2007-10-13  Bruno Haible  <bruno@clisp.org>
51445
51446         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51447         defined, use the ISO C99 inline semantics.
51448         * lib/argp.h (ARGP_EI): Likewise.
51449
51450 2007-10-13  Bruno Haible  <bruno@clisp.org>
51451
51452         Handle 'inline' change in gcc 4.3.0.
51453         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51454         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51455         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51456         argp_fmtstream_point): Disable 'extern' declaration if the function
51457         definition is going to be provided inline.
51458         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51459         semantics, not the ISO C99 inline semantics.
51460         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51461         'extern' declaration if the function definition is going to be provided
51462         inline.
51463         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51464         the GNU C inline semantics, not the ISO C99 inline semantics. With
51465         GCC 4.2, avoid a warning.
51466
51467 2007-10-13  Bruno Haible  <bruno@clisp.org>
51468
51469         * lib/freading.h (freading): Enable the use of __freading for
51470         glibc >= 2.7.
51471         * lib/freading.c (freading): Likewise.
51472
51473 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51474
51475         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51476         "warning: C99 inline functions are not supported; using GNU89".
51477
51478 2007-10-12  Bruno Haible  <bruno@clisp.org>
51479
51480         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51481         of 2.
51482         * tests/test-ceilf2.c: New file.
51483         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51484
51485         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51486         * modules/ceilf-tests: Update.
51487
51488 2007-10-12  Bruno Haible  <bruno@clisp.org>
51489
51490         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51491         of 2.
51492         * tests/test-floorf2.c: New file.
51493         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51494
51495         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51496         * modules/floorf-tests: Update.
51497
51498 2007-10-12  Bruno Haible  <bruno@clisp.org>
51499
51500         * tests/test-trunc2.c: New file.
51501         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51502
51503         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51504         * modules/trunc-tests: Update.
51505
51506 2007-10-12  Bruno Haible  <bruno@clisp.org>
51507
51508         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51509         of 2.
51510         * tests/test-truncf2.c: New file.
51511         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51512
51513         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51514         * modules/truncf-tests: Update.
51515
51516 2007-10-11  Eric Blake  <ebb9@byu.net>
51517
51518         Don't claim strerror is broken on Interix.
51519         * doc/functions/strerror.texi (strerror): Known broken systems are
51520         now Solaris 8, and not Interix.
51521         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51522         Interix on cross-compile.
51523         Reported by Martin Koeppe in
51524         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51525
51526 2007-10-11  Bruno Haible  <bruno@clisp.org>
51527
51528         * modules/i-ring-tests: New file.
51529         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51530         instead of assert.
51531
51532 2007-10-11  Bruno Haible  <bruno@clisp.org>
51533
51534         * modules/filenamecat-tests: New file.
51535         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51536         * lib/filenamecat.c: Remove test code.
51537
51538 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51539
51540         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51541
51542         * lib/strerror.c: Include <string.h> always, to test interface,
51543         and to remove the need for the dummy.
51544         Include intprops.h to compute width instead of doing it ourselves
51545         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51546         (strerror): Define it to return NULL if there's no system strerror.
51547         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51548         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51549         ancient pre-strerror Unix systems well any more.  Saying "unknown
51550         system error" is enough.
51551         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51552         simpler strerror.c implementation.
51553         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51554         Simplify the tests to reflect the simpler strerror implementation.
51555         * modules/strerror (Depends-on): Add intprops.
51556
51557 2007-10-09  Eric Blake  <ebb9@byu.net>
51558
51559         Silence test-fpending.
51560         * modules/fpending-tests (Files): Add wrapper script.
51561         * tests/test-fpending.sh: New file.
51562
51563 2007-10-09  Bruno Haible  <bruno@clisp.org>
51564
51565         * MODULES.html.sh (func_module): Don't create a hyperlink for
51566         function names like 'printf_frexp'.
51567         (Misc): Add crc, memxor.
51568         (Characteristics of floating types): New section.
51569         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51570         isnanf-nolibm, signbit, trunc, truncf, truncl.
51571         (Enhancements for ISO C 99 functions): New subsection Input/output.
51572         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51573         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51574         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51575         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51576         (Enhancements for POSIX:2001 functions): Add chdir-long.
51577         (File system functions): Add areadlink, chdir-safer, read-file.
51578         Remove cycle-check.
51579         (File system as inode set): New section.
51580         (Date and time): Add gethrxtime.
51581         (Multithreading): Add openmp.
51582         (Internationalization functions): Add localename.
51583         (Unicode string functions): Add unistr/u*-mbsnlen.
51584         (Support for maintaining and releasing projects): Add git-version-gen.
51585         (Lone files): Remove directories.
51586
51587 2007-10-08  Ben Pfaff  <blp@gnu.org>
51588
51589         * lib/xmalloca.h: Fix typo in comment.
51590
51591 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51592
51593         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51594         when avoiding problems with integer overflow.  Use a portable test
51595         instead.
51596
51597 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51598
51599         * modules/dummy (License): Change to LGPLv2+.
51600         * modules/float (License): Likewise
51601         * modules/realloc (License): Likewise
51602         * modules/stdlib (License): Likewise
51603
51604 2007-10-07  Bruno Haible  <bruno@clisp.org>
51605
51606         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51607         * floor.c (TWO_MANT_DIG): Likewise.
51608         * ceil.c (TWO_MANT_DIG): Likewise.
51609         Reported by Ben Pfaff.
51610
51611 2007-10-07  Bruno Haible  <bruno@clisp.org>
51612
51613         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51614         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51615         * lib/frexp.c (FUNC): Likewise.
51616         * lib/printf-frexp.h (printf_frexp): Likewise.
51617         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51618         * lib/printf-frexp.c (FUNC): Likewise.
51619         Suggested by Jim Meyering.
51620
51621 2007-10-07  Jim Meyering  <meyering@redhat.com>
51622
51623         Make xnanosleep's integer overflow test more robust.
51624         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51625         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51626
51627 2007-10-07  Bruno Haible  <bruno@clisp.org>
51628
51629         * NEWS: Mention the license change.
51630
51631         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51632         abbreviations in the modules files.
51633
51634         Change copyright notice from GPLv2+ to GPLv3+.
51635         * README: Change copyright notice.
51636         * MODULES.html.sh: Likewise.
51637         * build-aux/bootstrap.conf: Likewise.
51638         * build-aux/config.libpath: Likewise.
51639         * build-aux/csharpcomp.sh.in: Likewise.
51640         * build-aux/csharpexec.sh.in: Likewise.
51641         * build-aux/install-reloc: Likewise.
51642         * build-aux/javacomp.sh.in: Likewise.
51643         * build-aux/javaexec.sh.in: Likewise.
51644         * build-aux/ldd.sh.in: Likewise.
51645         * build-aux/reloc-ldflags: Likewise.
51646         * build-aux/relocatable.sh.in: Likewise.
51647         * build-aux/x-to-1.in: Likewise.
51648         * check-module: Likewise.
51649         * config/srclistvars.sh: Likewise.
51650         * gnulib-tool: Likewise.
51651         * lib/acl-internal.h: Likewise.
51652         * lib/acl.c: Likewise.
51653         * lib/acl.h: Likewise.
51654         * lib/acl_entries.c: Likewise.
51655         * lib/areadlink-with-size.c: Likewise.
51656         * lib/areadlink.c: Likewise.
51657         * lib/areadlink.h: Likewise.
51658         * lib/argmatch.c: Likewise.
51659         * lib/argmatch.h: Likewise.
51660         * lib/argp-ba.c: Likewise.
51661         * lib/argp-eexst.c: Likewise.
51662         * lib/argp-fmtstream.c: Likewise.
51663         * lib/argp-fmtstream.h: Likewise.
51664         * lib/argp-fs-xinl.c: Likewise.
51665         * lib/argp-help.c: Likewise.
51666         * lib/argp-namefrob.h: Likewise.
51667         * lib/argp-parse.c: Likewise.
51668         * lib/argp-pin.c: Likewise.
51669         * lib/argp-pv.c: Likewise.
51670         * lib/argp-pvh.c: Likewise.
51671         * lib/argp-xinl.c: Likewise.
51672         * lib/argp.h: Likewise.
51673         * lib/at-func.c: Likewise.
51674         * lib/atanl.c: Likewise.
51675         * lib/backupfile.c: Likewise.
51676         * lib/backupfile.h: Likewise.
51677         * lib/basename.c: Likewise.
51678         * lib/binary-io.h: Likewise.
51679         * lib/byteswap.in.h: Likewise.
51680         * lib/c-stack.c: Likewise.
51681         * lib/c-stack.h: Likewise.
51682         * lib/c-strcasestr.c: Likewise.
51683         * lib/c-strcasestr.h: Likewise.
51684         * lib/c-strstr.c: Likewise.
51685         * lib/c-strstr.h: Likewise.
51686         * lib/c-strtod.c: Likewise.
51687         * lib/calloc.c: Likewise.
51688         * lib/canon-host.c: Likewise.
51689         * lib/canon-host.h: Likewise.
51690         * lib/canonicalize-lgpl.c: Likewise.
51691         * lib/canonicalize.c: Likewise.
51692         * lib/canonicalize.h: Likewise.
51693         * lib/ceil.c: Likewise.
51694         * lib/ceilf.c: Likewise.
51695         * lib/ceill.c: Likewise.
51696         * lib/chdir-long.c: Likewise.
51697         * lib/chdir-long.h: Likewise.
51698         * lib/chdir-safer.c: Likewise.
51699         * lib/chdir-safer.h: Likewise.
51700         * lib/chown.c: Likewise.
51701         * lib/classpath.c: Likewise.
51702         * lib/classpath.h: Likewise.
51703         * lib/clean-temp.c: Likewise.
51704         * lib/clean-temp.h: Likewise.
51705         * lib/cloexec.c: Likewise.
51706         * lib/close-stream.c: Likewise.
51707         * lib/closein.c: Likewise.
51708         * lib/closein.h: Likewise.
51709         * lib/closeout.c: Likewise.
51710         * lib/closeout.h: Likewise.
51711         * lib/concat-filename.c: Likewise.
51712         * lib/copy-file.c: Likewise.
51713         * lib/copy-file.h: Likewise.
51714         * lib/count-one-bits.h: Likewise.
51715         * lib/crc.c: Likewise.
51716         * lib/crc.h: Likewise.
51717         * lib/creat-safer.c: Likewise.
51718         * lib/csharpcomp.c: Likewise.
51719         * lib/csharpcomp.h: Likewise.
51720         * lib/csharpexec.c: Likewise.
51721         * lib/csharpexec.h: Likewise.
51722         * lib/cycle-check.c: Likewise.
51723         * lib/cycle-check.h: Likewise.
51724         * lib/diacrit.c: Likewise.
51725         * lib/diacrit.h: Likewise.
51726         * lib/diffseq.h: Likewise.
51727         * lib/dirchownmod.c: Likewise.
51728         * lib/dirent.in.h: Likewise.
51729         * lib/dirfd.c: Likewise.
51730         * lib/dirfd.h: Likewise.
51731         * lib/dirname.c: Likewise.
51732         * lib/dirname.h: Likewise.
51733         * lib/dummy.c: Likewise.
51734         * lib/dup-safer.c: Likewise.
51735         * lib/dup2.c: Likewise.
51736         * lib/eealloc.h: Likewise.
51737         * lib/error.c: Likewise.
51738         * lib/error.h: Likewise.
51739         * lib/euidaccess.c: Likewise.
51740         * lib/exclude.c: Likewise.
51741         * lib/exclude.h: Likewise.
51742         * lib/execute.c: Likewise.
51743         * lib/execute.h: Likewise.
51744         * lib/exitfail.c: Likewise.
51745         * lib/exitfail.h: Likewise.
51746         * lib/expl.c: Likewise.
51747         * lib/fatal-signal.c: Likewise.
51748         * lib/fatal-signal.h: Likewise.
51749         * lib/fbufmode.c: Likewise.
51750         * lib/fbufmode.h: Likewise.
51751         * lib/fchdir.c: Likewise.
51752         * lib/fchmodat.c: Likewise.
51753         * lib/fchownat.c: Likewise.
51754         * lib/fcntl--.h: Likewise.
51755         * lib/fcntl-safer.h: Likewise.
51756         * lib/fcntl.in.h: Likewise.
51757         * lib/fd-safer.c: Likewise.
51758         * lib/fflush.c: Likewise.
51759         * lib/file-has-acl.c: Likewise.
51760         * lib/file-set.c: Likewise.
51761         * lib/file-type.c: Likewise.
51762         * lib/file-type.h: Likewise.
51763         * lib/fileblocks.c: Likewise.
51764         * lib/filemode.c: Likewise.
51765         * lib/filemode.h: Likewise.
51766         * lib/filename.h: Likewise.
51767         * lib/filenamecat.c: Likewise.
51768         * lib/filenamecat.h: Likewise.
51769         * lib/findprog.c: Likewise.
51770         * lib/findprog.h: Likewise.
51771         * lib/float.in.h: Likewise.
51772         * lib/floor.c: Likewise.
51773         * lib/floorf.c: Likewise.
51774         * lib/floorl.c: Likewise.
51775         * lib/fopen-safer.c: Likewise.
51776         * lib/fopen.c: Likewise.
51777         * lib/fpending.c: Likewise.
51778         * lib/fpending.h: Likewise.
51779         * lib/fprintf.c: Likewise.
51780         * lib/fprintftime.h: Likewise.
51781         * lib/fpucw.h: Likewise.
51782         * lib/fpurge.c: Likewise.
51783         * lib/fpurge.h: Likewise.
51784         * lib/freadable.c: Likewise.
51785         * lib/freadable.h: Likewise.
51786         * lib/freadahead.c: Likewise.
51787         * lib/freadahead.h: Likewise.
51788         * lib/freading.c: Likewise.
51789         * lib/freading.h: Likewise.
51790         * lib/free.c: Likewise.
51791         * lib/freopen.c: Likewise.
51792         * lib/frexp.c: Likewise.
51793         * lib/frexpl.c: Likewise.
51794         * lib/fseek.c: Likewise.
51795         * lib/fseterr.c: Likewise.
51796         * lib/fseterr.h: Likewise.
51797         * lib/fstatat.c: Likewise.
51798         * lib/fstrcmp.c: Likewise.
51799         * lib/fstrcmp.h: Likewise.
51800         * lib/fsusage.c: Likewise.
51801         * lib/fsusage.h: Likewise.
51802         * lib/ftell.c: Likewise.
51803         * lib/ftello.c: Likewise.
51804         * lib/fts-cycle.c: Likewise.
51805         * lib/fts.c: Likewise.
51806         * lib/fts_.h: Likewise.
51807         * lib/full-read.c: Likewise.
51808         * lib/full-read.h: Likewise.
51809         * lib/full-write.c: Likewise.
51810         * lib/full-write.h: Likewise.
51811         * lib/fwritable.c: Likewise.
51812         * lib/fwritable.h: Likewise.
51813         * lib/fwriteerror.c: Likewise.
51814         * lib/fwriteerror.h: Likewise.
51815         * lib/fwriting.c: Likewise.
51816         * lib/fwriting.h: Likewise.
51817         * lib/gcd.c: Likewise.
51818         * lib/gcd.h: Likewise.
51819         * lib/getcwd.c: Likewise.
51820         * lib/getdate.h: Likewise.
51821         * lib/getdate.y: Likewise.
51822         * lib/getdomainname.c: Likewise.
51823         * lib/getdomainname.h: Likewise.
51824         * lib/getgroups.c: Likewise.
51825         * lib/gethostname.c: Likewise.
51826         * lib/gethrxtime.c: Likewise.
51827         * lib/gethrxtime.h: Likewise.
51828         * lib/getloadavg.c: Likewise.
51829         * lib/getndelim2.c: Likewise.
51830         * lib/getndelim2.h: Likewise.
51831         * lib/getnline.c: Likewise.
51832         * lib/getnline.h: Likewise.
51833         * lib/getopt.c: Likewise.
51834         * lib/getopt.in.h: Likewise.
51835         * lib/getopt1.c: Likewise.
51836         * lib/getopt_int.h: Likewise.
51837         * lib/getpagesize.h: Likewise.
51838         * lib/getsubopt.c: Likewise.
51839         * lib/gettime.c: Likewise.
51840         * lib/getugroups.c: Likewise.
51841         * lib/getugroups.h: Likewise.
51842         * lib/getusershell.c: Likewise.
51843         * lib/gl_anyavltree_list1.h: Likewise.
51844         * lib/gl_anyavltree_list2.h: Likewise.
51845         * lib/gl_anyhash_list1.h: Likewise.
51846         * lib/gl_anyhash_list2.h: Likewise.
51847         * lib/gl_anylinked_list1.h: Likewise.
51848         * lib/gl_anylinked_list2.h: Likewise.
51849         * lib/gl_anyrbtree_list1.h: Likewise.
51850         * lib/gl_anyrbtree_list2.h: Likewise.
51851         * lib/gl_anytree_list1.h: Likewise.
51852         * lib/gl_anytree_list2.h: Likewise.
51853         * lib/gl_anytree_oset.h: Likewise.
51854         * lib/gl_anytreehash_list1.h: Likewise.
51855         * lib/gl_anytreehash_list2.h: Likewise.
51856         * lib/gl_array_list.c: Likewise.
51857         * lib/gl_array_list.h: Likewise.
51858         * lib/gl_array_oset.c: Likewise.
51859         * lib/gl_array_oset.h: Likewise.
51860         * lib/gl_avltree_list.c: Likewise.
51861         * lib/gl_avltree_list.h: Likewise.
51862         * lib/gl_avltree_oset.c: Likewise.
51863         * lib/gl_avltree_oset.h: Likewise.
51864         * lib/gl_avltreehash_list.c: Likewise.
51865         * lib/gl_avltreehash_list.h: Likewise.
51866         * lib/gl_carray_list.c: Likewise.
51867         * lib/gl_carray_list.h: Likewise.
51868         * lib/gl_linked_list.c: Likewise.
51869         * lib/gl_linked_list.h: Likewise.
51870         * lib/gl_linkedhash_list.c: Likewise.
51871         * lib/gl_linkedhash_list.h: Likewise.
51872         * lib/gl_list.c: Likewise.
51873         * lib/gl_list.h: Likewise.
51874         * lib/gl_oset.c: Likewise.
51875         * lib/gl_oset.h: Likewise.
51876         * lib/gl_rbtree_list.c: Likewise.
51877         * lib/gl_rbtree_list.h: Likewise.
51878         * lib/gl_rbtree_oset.c: Likewise.
51879         * lib/gl_rbtree_oset.h: Likewise.
51880         * lib/gl_rbtreehash_list.c: Likewise.
51881         * lib/gl_rbtreehash_list.h: Likewise.
51882         * lib/gl_sublist.c: Likewise.
51883         * lib/gl_sublist.h: Likewise.
51884         * lib/group-member.c: Likewise.
51885         * lib/group-member.h: Likewise.
51886         * lib/hard-locale.c: Likewise.
51887         * lib/hard-locale.h: Likewise.
51888         * lib/hash-pjw.c: Likewise.
51889         * lib/hash-pjw.h: Likewise.
51890         * lib/hash-triple.c: Likewise.
51891         * lib/hash.c: Likewise.
51892         * lib/hash.h: Likewise.
51893         * lib/human.c: Likewise.
51894         * lib/human.h: Likewise.
51895         * lib/i-ring.c: Likewise.
51896         * lib/i-ring.h: Likewise.
51897         * lib/idcache.c: Likewise.
51898         * lib/imaxabs.c: Likewise.
51899         * lib/imaxdiv.c: Likewise.
51900         * lib/inet_pton.c: Likewise.
51901         * lib/inet_pton.h: Likewise.
51902         * lib/intprops.h: Likewise.
51903         * lib/inttostr.c: Likewise.
51904         * lib/inttostr.h: Likewise.
51905         * lib/inttypes.in.h: Likewise.
51906         * lib/isapipe.c: Likewise.
51907         * lib/isdir.c: Likewise.
51908         * lib/isnan.c: Likewise.
51909         * lib/isnan.h: Likewise.
51910         * lib/isnanf.c: Likewise.
51911         * lib/isnanf.h: Likewise.
51912         * lib/isnanl-nolibm.h: Likewise.
51913         * lib/isnanl.c: Likewise.
51914         * lib/isnanl.h: Likewise.
51915         * lib/javacomp.c: Likewise.
51916         * lib/javacomp.h: Likewise.
51917         * lib/javaexec.c: Likewise.
51918         * lib/javaexec.h: Likewise.
51919         * lib/javaversion.c: Likewise.
51920         * lib/javaversion.h: Likewise.
51921         * lib/javaversion.java: Likewise.
51922         * lib/lbrkprop.h: Likewise.
51923         * lib/lchmod.h: Likewise.
51924         * lib/lchown.c: Likewise.
51925         * lib/ldexpl.c: Likewise.
51926         * lib/linebreak.c: Likewise.
51927         * lib/linebreak.h: Likewise.
51928         * lib/linebuffer.c: Likewise.
51929         * lib/linebuffer.h: Likewise.
51930         * lib/locale.in.h: Likewise.
51931         * lib/logl.c: Likewise.
51932         * lib/long-options.c: Likewise.
51933         * lib/long-options.h: Likewise.
51934         * lib/lstat.c: Likewise.
51935         * lib/lstat.h: Likewise.
51936         * lib/math.in.h: Likewise.
51937         * lib/mbchar.c: Likewise.
51938         * lib/mbchar.h: Likewise.
51939         * lib/mbfile.h: Likewise.
51940         * lib/mbiter.h: Likewise.
51941         * lib/mbscasecmp.c: Likewise.
51942         * lib/mbscasestr.c: Likewise.
51943         * lib/mbschr.c: Likewise.
51944         * lib/mbscspn.c: Likewise.
51945         * lib/mbslen.c: Likewise.
51946         * lib/mbsncasecmp.c: Likewise.
51947         * lib/mbsnlen.c: Likewise.
51948         * lib/mbspbrk.c: Likewise.
51949         * lib/mbspcasecmp.c: Likewise.
51950         * lib/mbsrchr.c: Likewise.
51951         * lib/mbssep.c: Likewise.
51952         * lib/mbsspn.c: Likewise.
51953         * lib/mbsstr.c: Likewise.
51954         * lib/mbstok_r.c: Likewise.
51955         * lib/mbswidth.c: Likewise.
51956         * lib/mbswidth.h: Likewise.
51957         * lib/mbuiter.h: Likewise.
51958         * lib/memcasecmp.c: Likewise.
51959         * lib/memcasecmp.h: Likewise.
51960         * lib/memchr.c: Likewise.
51961         * lib/memcmp.c: Likewise.
51962         * lib/memcoll.c: Likewise.
51963         * lib/memcoll.h: Likewise.
51964         * lib/memcpy.c: Likewise.
51965         * lib/memrchr.c: Likewise.
51966         * lib/mkancesdirs.c: Likewise.
51967         * lib/mkdir-p.c: Likewise.
51968         * lib/mkdir-p.h: Likewise.
51969         * lib/mkdir.c: Likewise.
51970         * lib/mkdirat.c: Likewise.
51971         * lib/mkdtemp.c: Likewise.
51972         * lib/mkstemp-safer.c: Likewise.
51973         * lib/mkstemp.c: Likewise.
51974         * lib/modechange.c: Likewise.
51975         * lib/modechange.h: Likewise.
51976         * lib/mountlist.c: Likewise.
51977         * lib/mountlist.h: Likewise.
51978         * lib/mpsort.c: Likewise.
51979         * lib/nanosleep.c: Likewise.
51980         * lib/obstack.c: Likewise.
51981         * lib/obstack.h: Likewise.
51982         * lib/open-safer.c: Likewise.
51983         * lib/open.c: Likewise.
51984         * lib/openat-die.c: Likewise.
51985         * lib/openat-priv.h: Likewise.
51986         * lib/openat-proc.c: Likewise.
51987         * lib/openat.c: Likewise.
51988         * lib/openat.h: Likewise.
51989         * lib/pagealign_alloc.c: Likewise.
51990         * lib/pagealign_alloc.h: Likewise.
51991         * lib/physmem.c: Likewise.
51992         * lib/physmem.h: Likewise.
51993         * lib/pipe-safer.c: Likewise.
51994         * lib/pipe.c: Likewise.
51995         * lib/pipe.h: Likewise.
51996         * lib/posixtm.c: Likewise.
51997         * lib/posixtm.h: Likewise.
51998         * lib/posixver.c: Likewise.
51999         * lib/printf-frexp.c: Likewise.
52000         * lib/printf-frexp.h: Likewise.
52001         * lib/printf-frexpl.c: Likewise.
52002         * lib/printf-frexpl.h: Likewise.
52003         * lib/printf.c: Likewise.
52004         * lib/progname.c: Likewise.
52005         * lib/progname.h: Likewise.
52006         * lib/progreloc.c: Likewise.
52007         * lib/putenv.c: Likewise.
52008         * lib/quote.c: Likewise.
52009         * lib/quote.h: Likewise.
52010         * lib/quotearg.c: Likewise.
52011         * lib/quotearg.h: Likewise.
52012         * lib/raise.c: Likewise.
52013         * lib/readline.c: Likewise.
52014         * lib/readline.h: Likewise.
52015         * lib/readlink.c: Likewise.
52016         * lib/readtokens.c: Likewise.
52017         * lib/readtokens.h: Likewise.
52018         * lib/readtokens0.c: Likewise.
52019         * lib/readtokens0.h: Likewise.
52020         * lib/readutmp.c: Likewise.
52021         * lib/readutmp.h: Likewise.
52022         * lib/realloc.c: Likewise.
52023         * lib/relocwrapper.c: Likewise.
52024         * lib/rename-dest-slash.c: Likewise.
52025         * lib/rename.c: Likewise.
52026         * lib/rmdir.c: Likewise.
52027         * lib/rpmatch.c: Likewise.
52028         * lib/safe-read.c: Likewise.
52029         * lib/safe-read.h: Likewise.
52030         * lib/safe-write.c: Likewise.
52031         * lib/safe-write.h: Likewise.
52032         * lib/same-inode.h: Likewise.
52033         * lib/same.c: Likewise.
52034         * lib/same.h: Likewise.
52035         * lib/save-cwd.c: Likewise.
52036         * lib/save-cwd.h: Likewise.
52037         * lib/savedir.c: Likewise.
52038         * lib/savedir.h: Likewise.
52039         * lib/savewd.c: Likewise.
52040         * lib/savewd.h: Likewise.
52041         * lib/search.in.h: Likewise.
52042         * lib/setenv.c: Likewise.
52043         * lib/setenv.h: Likewise.
52044         * lib/settime.c: Likewise.
52045         * lib/sh-quote.c: Likewise.
52046         * lib/sh-quote.h: Likewise.
52047         * lib/sig2str.c: Likewise.
52048         * lib/sig2str.h: Likewise.
52049         * lib/signal.in.h: Likewise.
52050         * lib/signbitd.c: Likewise.
52051         * lib/signbitf.c: Likewise.
52052         * lib/signbitl.c: Likewise.
52053         * lib/sigprocmask.c: Likewise.
52054         * lib/sincosl.c: Likewise.
52055         * lib/sleep.c: Likewise.
52056         * lib/sprintf.c: Likewise.
52057         * lib/sqrtl.c: Likewise.
52058         * lib/stat-time.h: Likewise.
52059         * lib/stdio--.h: Likewise.
52060         * lib/stdio-safer.h: Likewise.
52061         * lib/stdlib--.h: Likewise.
52062         * lib/stdlib-safer.h: Likewise.
52063         * lib/stdlib.in.h: Likewise.
52064         * lib/stpcpy.c: Likewise.
52065         * lib/stpncpy.c: Likewise.
52066         * lib/strchrnul.c: Likewise.
52067         * lib/strcspn.c: Likewise.
52068         * lib/strerror.c: Likewise.
52069         * lib/strftime.c: Likewise.
52070         * lib/strftime.h: Likewise.
52071         * lib/striconveh.c: Likewise.
52072         * lib/striconveh.h: Likewise.
52073         * lib/striconveha.c: Likewise.
52074         * lib/striconveha.h: Likewise.
52075         * lib/stripslash.c: Likewise.
52076         * lib/strnlen1.c: Likewise.
52077         * lib/strnlen1.h: Likewise.
52078         * lib/strtod.c: Likewise.
52079         * lib/strtoimax.c: Likewise.
52080         * lib/strtok_r.c: Likewise.
52081         * lib/strtol.c: Likewise.
52082         * lib/strtoll.c: Likewise.
52083         * lib/strtoul.c: Likewise.
52084         * lib/strtoull.c: Likewise.
52085         * lib/sysexits.in.h: Likewise.
52086         * lib/tempname.c: Likewise.
52087         * lib/tempname.h: Likewise.
52088         * lib/timespec.h: Likewise.
52089         * lib/tls.c: Likewise.
52090         * lib/tls.h: Likewise.
52091         * lib/tmpdir.c: Likewise.
52092         * lib/tmpdir.h: Likewise.
52093         * lib/tmpfile-safer.c: Likewise.
52094         * lib/tmpfile.c: Likewise.
52095         * lib/trigl.c: Likewise.
52096         * lib/trigl.h: Likewise.
52097         * lib/trim.c: Likewise.
52098         * lib/trim.h: Likewise.
52099         * lib/trunc.c: Likewise.
52100         * lib/truncf.c: Likewise.
52101         * lib/truncl.c: Likewise.
52102         * lib/tsearch.c: Likewise.
52103         * lib/unicodeio.c: Likewise.
52104         * lib/unicodeio.h: Likewise.
52105         * lib/unistd--.h: Likewise.
52106         * lib/unistd-safer.h: Likewise.
52107         * lib/unistdio/ulc-fprintf.c: Likewise.
52108         * lib/unistdio/ulc-vfprintf.c: Likewise.
52109         * lib/unlinkdir.c: Likewise.
52110         * lib/unlinkdir.h: Likewise.
52111         * lib/unlocked-io.h: Likewise.
52112         * lib/unsetenv.c: Likewise.
52113         * lib/userspec.c: Likewise.
52114         * lib/utime.c: Likewise.
52115         * lib/utimecmp.c: Likewise.
52116         * lib/utimecmp.h: Likewise.
52117         * lib/utimens.c: Likewise.
52118         * lib/verify.h: Likewise.
52119         * lib/verror.c: Likewise.
52120         * lib/verror.h: Likewise.
52121         * lib/version-etc-fsf.c: Likewise.
52122         * lib/version-etc.c: Likewise.
52123         * lib/version-etc.h: Likewise.
52124         * lib/vfprintf.c: Likewise.
52125         * lib/vprintf.c: Likewise.
52126         * lib/vsprintf.c: Likewise.
52127         * lib/w32spawn.h: Likewise.
52128         * lib/wait-process.c: Likewise.
52129         * lib/wait-process.h: Likewise.
52130         * lib/wcwidth.c: Likewise.
52131         * lib/write-any-file.c: Likewise.
52132         * lib/xalloc-die.c: Likewise.
52133         * lib/xalloc.h: Likewise.
52134         * lib/xasprintf.c: Likewise.
52135         * lib/xgetcwd.c: Likewise.
52136         * lib/xgetcwd.h: Likewise.
52137         * lib/xgetdomainname.c: Likewise.
52138         * lib/xgetdomainname.h: Likewise.
52139         * lib/xgethostname.c: Likewise.
52140         * lib/xmalloc.c: Likewise.
52141         * lib/xmalloca.c: Likewise.
52142         * lib/xmalloca.h: Likewise.
52143         * lib/xmemcoll.c: Likewise.
52144         * lib/xnanosleep.c: Likewise.
52145         * lib/xreadlink.c: Likewise.
52146         * lib/xreadlink.h: Likewise.
52147         * lib/xsetenv.c: Likewise.
52148         * lib/xsetenv.h: Likewise.
52149         * lib/xstriconv.c: Likewise.
52150         * lib/xstriconv.h: Likewise.
52151         * lib/xstrndup.c: Likewise.
52152         * lib/xstrndup.h: Likewise.
52153         * lib/xstrtod.c: Likewise.
52154         * lib/xstrtod.h: Likewise.
52155         * lib/xstrtol-error.c: Likewise.
52156         * lib/xstrtol.c: Likewise.
52157         * lib/xstrtol.h: Likewise.
52158         * lib/xtime.h: Likewise.
52159         * lib/xvasprintf.c: Likewise.
52160         * lib/xvasprintf.h: Likewise.
52161         * lib/yesno.c: Likewise.
52162         * lib/yesno.h: Likewise.
52163         * posix-modules: Likewise.
52164         * tests/test-alloca-opt.c: Likewise.
52165         * tests/test-arcfour.c: Likewise.
52166         * tests/test-arctwo.c: Likewise.
52167         * tests/test-argmatch.c: Likewise.
52168         * tests/test-argp-2.sh: Likewise.
52169         * tests/test-argp.c: Likewise.
52170         * tests/test-arpa_inet.c: Likewise.
52171         * tests/test-array_list.c: Likewise.
52172         * tests/test-array_oset.c: Likewise.
52173         * tests/test-atexit.c: Likewise.
52174         * tests/test-avltree_list.c: Likewise.
52175         * tests/test-avltree_oset.c: Likewise.
52176         * tests/test-avltreehash_list.c: Likewise.
52177         * tests/test-base64.c: Likewise.
52178         * tests/test-binary-io.c: Likewise.
52179         * tests/test-byteswap.c: Likewise.
52180         * tests/test-c-ctype.c: Likewise.
52181         * tests/test-c-strcasecmp.c: Likewise.
52182         * tests/test-c-strcasestr.c: Likewise.
52183         * tests/test-c-strncasecmp.c: Likewise.
52184         * tests/test-c-strstr.c: Likewise.
52185         * tests/test-canonicalize-lgpl.c: Likewise.
52186         * tests/test-canonicalize.c: Likewise.
52187         * tests/test-carray_list.c: Likewise.
52188         * tests/test-ceilf.c: Likewise.
52189         * tests/test-ceill.c: Likewise.
52190         * tests/test-count-one-bits.c: Likewise.
52191         * tests/test-crc.c: Likewise.
52192         * tests/test-dirname.c: Likewise.
52193         * tests/test-fbufmode.c: Likewise.
52194         * tests/test-fcntl.c: Likewise.
52195         * tests/test-fflush.c: Likewise.
52196         * tests/test-floorf.c: Likewise.
52197         * tests/test-floorl.c: Likewise.
52198         * tests/test-fopen.c: Likewise.
52199         * tests/test-fprintf-posix.c: Likewise.
52200         * tests/test-fprintf-posix.h: Likewise.
52201         * tests/test-fpurge.c: Likewise.
52202         * tests/test-freadable.c: Likewise.
52203         * tests/test-freadahead.c: Likewise.
52204         * tests/test-freading.c: Likewise.
52205         * tests/test-freopen.c: Likewise.
52206         * tests/test-frexp.c: Likewise.
52207         * tests/test-frexpl.c: Likewise.
52208         * tests/test-fseek.c: Likewise.
52209         * tests/test-fseeko.c: Likewise.
52210         * tests/test-fseterr.c: Likewise.
52211         * tests/test-fstrcmp.c: Likewise.
52212         * tests/test-ftell.c: Likewise.
52213         * tests/test-ftello.c: Likewise.
52214         * tests/test-fwritable.c: Likewise.
52215         * tests/test-fwriting.c: Likewise.
52216         * tests/test-getaddrinfo.c: Likewise.
52217         * tests/test-getpass.c: Likewise.
52218         * tests/test-gettimeofday.c: Likewise.
52219         * tests/test-hmac-md5.c: Likewise.
52220         * tests/test-hmac-sha1.c: Likewise.
52221         * tests/test-iconv.c: Likewise.
52222         * tests/test-iconvme.c: Likewise.
52223         * tests/test-inttypes.c: Likewise.
52224         * tests/test-isnan.c: Likewise.
52225         * tests/test-isnanf.c: Likewise.
52226         * tests/test-isnanl-nolibm.c: Likewise.
52227         * tests/test-isnanl.c: Likewise.
52228         * tests/test-isnanl.h: Likewise.
52229         * tests/test-ldexpl.c: Likewise.
52230         * tests/test-linked_list.c: Likewise.
52231         * tests/test-linkedhash_list.c: Likewise.
52232         * tests/test-locale.c: Likewise.
52233         * tests/test-localename.c: Likewise.
52234         * tests/test-lock.c: Likewise.
52235         * tests/test-lseek.c: Likewise.
52236         * tests/test-malloca.c: Likewise.
52237         * tests/test-math.c: Likewise.
52238         * tests/test-mbscasecmp.c: Likewise.
52239         * tests/test-mbscasestr1.c: Likewise.
52240         * tests/test-mbscasestr2.c: Likewise.
52241         * tests/test-mbscasestr3.c: Likewise.
52242         * tests/test-mbscasestr4.c: Likewise.
52243         * tests/test-mbschr.c: Likewise.
52244         * tests/test-mbscspn.c: Likewise.
52245         * tests/test-mbsncasecmp.c: Likewise.
52246         * tests/test-mbspbrk.c: Likewise.
52247         * tests/test-mbspcasecmp.c: Likewise.
52248         * tests/test-mbsrchr.c: Likewise.
52249         * tests/test-mbsspn.c: Likewise.
52250         * tests/test-mbsstr1.c: Likewise.
52251         * tests/test-mbsstr2.c: Likewise.
52252         * tests/test-mbsstr3.c: Likewise.
52253         * tests/test-md5.c: Likewise.
52254         * tests/test-memmem.c: Likewise.
52255         * tests/test-netinet_in.c: Likewise.
52256         * tests/test-open.c: Likewise.
52257         * tests/test-printf-frexp.c: Likewise.
52258         * tests/test-printf-frexpl.c: Likewise.
52259         * tests/test-printf-posix.c: Likewise.
52260         * tests/test-printf-posix.h: Likewise.
52261         * tests/test-rbtree_list.c: Likewise.
52262         * tests/test-rbtree_oset.c: Likewise.
52263         * tests/test-rbtreehash_list.c: Likewise.
52264         * tests/test-read-file.c: Likewise.
52265         * tests/test-rijndael.c: Likewise.
52266         * tests/test-search.c: Likewise.
52267         * tests/test-signbit.c: Likewise.
52268         * tests/test-sleep.c: Likewise.
52269         * tests/test-snprintf-posix.c: Likewise.
52270         * tests/test-snprintf-posix.h: Likewise.
52271         * tests/test-snprintf.c: Likewise.
52272         * tests/test-sprintf-posix.c: Likewise.
52273         * tests/test-sprintf-posix.h: Likewise.
52274         * tests/test-stat-time.c: Likewise.
52275         * tests/test-stdbool.c: Likewise.
52276         * tests/test-stdint.c: Likewise.
52277         * tests/test-stdio.c: Likewise.
52278         * tests/test-stdlib.c: Likewise.
52279         * tests/test-stpncpy.c: Likewise.
52280         * tests/test-strcasestr.c: Likewise.
52281         * tests/test-striconv.c: Likewise.
52282         * tests/test-striconveh.c: Likewise.
52283         * tests/test-striconveha.c: Likewise.
52284         * tests/test-string.c: Likewise.
52285         * tests/test-sys_select.c: Likewise.
52286         * tests/test-sys_socket.c: Likewise.
52287         * tests/test-sys_stat.c: Likewise.
52288         * tests/test-sys_time.c: Likewise.
52289         * tests/test-sysexits.c: Likewise.
52290         * tests/test-time.c: Likewise.
52291         * tests/test-tls.c: Likewise.
52292         * tests/test-trunc.c: Likewise.
52293         * tests/test-truncf.c: Likewise.
52294         * tests/test-truncl.c: Likewise.
52295         * tests/test-unistd.c: Likewise.
52296         * tests/test-vasnprintf-posix.c: Likewise.
52297         * tests/test-vasnprintf-posix2.c: Likewise.
52298         * tests/test-vasnprintf.c: Likewise.
52299         * tests/test-vasprintf-posix.c: Likewise.
52300         * tests/test-vasprintf.c: Likewise.
52301         * tests/test-verify.c: Likewise.
52302         * tests/test-vfprintf-posix.c: Likewise.
52303         * tests/test-vprintf-posix.c: Likewise.
52304         * tests/test-vsnprintf-posix.c: Likewise.
52305         * tests/test-vsnprintf.c: Likewise.
52306         * tests/test-vsprintf-posix.c: Likewise.
52307         * tests/test-wchar.c: Likewise.
52308         * tests/test-wctype.c: Likewise.
52309         * tests/test-wcwidth.c: Likewise.
52310         * tests/test-xstrtol.c: Likewise.
52311         * tests/test-xvasprintf.c: Likewise.
52312         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52313         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52314         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52315         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52316         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52317         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52318         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52319         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52320         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52321         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52322         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52323         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52324         * tests/uniname/test-uninames.c: Likewise.
52325         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52326         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52327         * tests/unistdio/test-u16-printf1.h: Likewise.
52328         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52329         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52330         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52331         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52332         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52333         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52334         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52335         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52336         * tests/unistdio/test-u32-printf1.h: Likewise.
52337         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52338         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52339         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52340         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52341         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52342         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52343         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52344         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52345         * tests/unistdio/test-u8-printf1.h: Likewise.
52346         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52347         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52348         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52349         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52350         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52351         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52352         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52353         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52354         * tests/unistdio/test-ulc-printf1.h: Likewise.
52355         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52356         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52357         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52358         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52359         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52360         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52361         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52362         * tests/uniwidth/test-u16-width.c: Likewise.
52363         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52364         * tests/uniwidth/test-u32-width.c: Likewise.
52365         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52366         * tests/uniwidth/test-u8-width.c: Likewise.
52367         * tests/uniwidth/test-uc_width.c: Likewise.
52368         * config/srclist-update: Likewise.
52369         (fixlicense): Update to GPLv3+.
52370
52371         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52372         * tests/test-tsearch.c: Change copyright notice.
52373
52374         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52375         * lib/c-strcaseeq.h: Change copyright notice.
52376         * lib/streq.h: Likewise.
52377         * lib/uniconv.h: Likewise.
52378         * lib/uniconv/u-conv-from-enc.h: Likewise.
52379         * lib/uniconv/u-conv-to-enc.h: Likewise.
52380         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52381         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52382         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52383         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52384         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52385         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52386         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52387         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52388         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52389         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52390         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52391         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52392         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52393         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52394         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52395         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52396         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52397         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52398         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52399         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52400         * lib/uniname.h: Likewise.
52401         * lib/uniname/uniname.c: Likewise.
52402         * lib/unistdio.h: Likewise.
52403         * lib/unistdio/u-asnprintf.h: Likewise.
52404         * lib/unistdio/u-asprintf.h: Likewise.
52405         * lib/unistdio/u-printf-args.c: Likewise.
52406         * lib/unistdio/u-printf-args.h: Likewise.
52407         * lib/unistdio/u-printf-parse.h: Likewise.
52408         * lib/unistdio/u-snprintf.h: Likewise.
52409         * lib/unistdio/u-sprintf.h: Likewise.
52410         * lib/unistdio/u-vasprintf.h: Likewise.
52411         * lib/unistdio/u-vsnprintf.h: Likewise.
52412         * lib/unistdio/u-vsprintf.h: Likewise.
52413         * lib/unistdio/u16-asnprintf.c: Likewise.
52414         * lib/unistdio/u16-asprintf.c: Likewise.
52415         * lib/unistdio/u16-printf-parse.c: Likewise.
52416         * lib/unistdio/u16-snprintf.c: Likewise.
52417         * lib/unistdio/u16-sprintf.c: Likewise.
52418         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52419         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52420         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52421         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52422         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52423         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52424         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52425         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52426         * lib/unistdio/u16-vasnprintf.c: Likewise.
52427         * lib/unistdio/u16-vasprintf.c: Likewise.
52428         * lib/unistdio/u16-vsnprintf.c: Likewise.
52429         * lib/unistdio/u16-vsprintf.c: Likewise.
52430         * lib/unistdio/u32-asnprintf.c: Likewise.
52431         * lib/unistdio/u32-asprintf.c: Likewise.
52432         * lib/unistdio/u32-printf-parse.c: Likewise.
52433         * lib/unistdio/u32-snprintf.c: Likewise.
52434         * lib/unistdio/u32-sprintf.c: Likewise.
52435         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52436         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52437         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52438         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52439         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52440         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52441         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52442         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52443         * lib/unistdio/u32-vasnprintf.c: Likewise.
52444         * lib/unistdio/u32-vasprintf.c: Likewise.
52445         * lib/unistdio/u32-vsnprintf.c: Likewise.
52446         * lib/unistdio/u32-vsprintf.c: Likewise.
52447         * lib/unistdio/u8-asnprintf.c: Likewise.
52448         * lib/unistdio/u8-asprintf.c: Likewise.
52449         * lib/unistdio/u8-printf-parse.c: Likewise.
52450         * lib/unistdio/u8-snprintf.c: Likewise.
52451         * lib/unistdio/u8-sprintf.c: Likewise.
52452         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52453         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52454         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52455         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52456         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52457         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52458         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52459         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52460         * lib/unistdio/u8-vasnprintf.c: Likewise.
52461         * lib/unistdio/u8-vasprintf.c: Likewise.
52462         * lib/unistdio/u8-vsnprintf.c: Likewise.
52463         * lib/unistdio/u8-vsprintf.c: Likewise.
52464         * lib/unistdio/ulc-asnprintf.c: Likewise.
52465         * lib/unistdio/ulc-asprintf.c: Likewise.
52466         * lib/unistdio/ulc-printf-parse.c: Likewise.
52467         * lib/unistdio/ulc-snprintf.c: Likewise.
52468         * lib/unistdio/ulc-sprintf.c: Likewise.
52469         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52470         * lib/unistdio/ulc-vasprintf.c: Likewise.
52471         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52472         * lib/unistdio/ulc-vsprintf.c: Likewise.
52473         * lib/unistr.h: Likewise.
52474         * lib/unistr/u-cpy-alloc.h: Likewise.
52475         * lib/unistr/u-cpy.h: Likewise.
52476         * lib/unistr/u-endswith.h: Likewise.
52477         * lib/unistr/u-move.h: Likewise.
52478         * lib/unistr/u-set.h: Likewise.
52479         * lib/unistr/u-startswith.h: Likewise.
52480         * lib/unistr/u-stpcpy.h: Likewise.
52481         * lib/unistr/u-stpncpy.h: Likewise.
52482         * lib/unistr/u-strcat.h: Likewise.
52483         * lib/unistr/u-strcpy.h: Likewise.
52484         * lib/unistr/u-strcspn.h: Likewise.
52485         * lib/unistr/u-strdup.h: Likewise.
52486         * lib/unistr/u-strlen.h: Likewise.
52487         * lib/unistr/u-strncat.h: Likewise.
52488         * lib/unistr/u-strncpy.h: Likewise.
52489         * lib/unistr/u-strnlen.h: Likewise.
52490         * lib/unistr/u-strpbrk.h: Likewise.
52491         * lib/unistr/u-strspn.h: Likewise.
52492         * lib/unistr/u-strstr.h: Likewise.
52493         * lib/unistr/u-strtok.h: Likewise.
52494         * lib/unistr/u16-check.c: Likewise.
52495         * lib/unistr/u16-chr.c: Likewise.
52496         * lib/unistr/u16-cmp.c: Likewise.
52497         * lib/unistr/u16-cpy-alloc.c: Likewise.
52498         * lib/unistr/u16-cpy.c: Likewise.
52499         * lib/unistr/u16-endswith.c: Likewise.
52500         * lib/unistr/u16-mblen.c: Likewise.
52501         * lib/unistr/u16-mbsnlen.c: Likewise.
52502         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52503         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52504         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52505         * lib/unistr/u16-mbtouc.c: Likewise.
52506         * lib/unistr/u16-mbtoucr.c: Likewise.
52507         * lib/unistr/u16-move.c: Likewise.
52508         * lib/unistr/u16-next.c: Likewise.
52509         * lib/unistr/u16-prev.c: Likewise.
52510         * lib/unistr/u16-set.c: Likewise.
52511         * lib/unistr/u16-startswith.c: Likewise.
52512         * lib/unistr/u16-stpcpy.c: Likewise.
52513         * lib/unistr/u16-stpncpy.c: Likewise.
52514         * lib/unistr/u16-strcat.c: Likewise.
52515         * lib/unistr/u16-strchr.c: Likewise.
52516         * lib/unistr/u16-strcmp.c: Likewise.
52517         * lib/unistr/u16-strcpy.c: Likewise.
52518         * lib/unistr/u16-strcspn.c: Likewise.
52519         * lib/unistr/u16-strdup.c: Likewise.
52520         * lib/unistr/u16-strlen.c: Likewise.
52521         * lib/unistr/u16-strmblen.c: Likewise.
52522         * lib/unistr/u16-strmbtouc.c: Likewise.
52523         * lib/unistr/u16-strncat.c: Likewise.
52524         * lib/unistr/u16-strncmp.c: Likewise.
52525         * lib/unistr/u16-strncpy.c: Likewise.
52526         * lib/unistr/u16-strnlen.c: Likewise.
52527         * lib/unistr/u16-strpbrk.c: Likewise.
52528         * lib/unistr/u16-strrchr.c: Likewise.
52529         * lib/unistr/u16-strspn.c: Likewise.
52530         * lib/unistr/u16-strstr.c: Likewise.
52531         * lib/unistr/u16-strtok.c: Likewise.
52532         * lib/unistr/u16-to-u32.c: Likewise.
52533         * lib/unistr/u16-to-u8.c: Likewise.
52534         * lib/unistr/u16-uctomb-aux.c: Likewise.
52535         * lib/unistr/u16-uctomb.c: Likewise.
52536         * lib/unistr/u32-check.c: Likewise.
52537         * lib/unistr/u32-chr.c: Likewise.
52538         * lib/unistr/u32-cmp.c: Likewise.
52539         * lib/unistr/u32-cpy-alloc.c: Likewise.
52540         * lib/unistr/u32-cpy.c: Likewise.
52541         * lib/unistr/u32-endswith.c: Likewise.
52542         * lib/unistr/u32-mblen.c: Likewise.
52543         * lib/unistr/u32-mbsnlen.c: Likewise.
52544         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52545         * lib/unistr/u32-mbtouc.c: Likewise.
52546         * lib/unistr/u32-mbtoucr.c: Likewise.
52547         * lib/unistr/u32-move.c: Likewise.
52548         * lib/unistr/u32-next.c: Likewise.
52549         * lib/unistr/u32-prev.c: Likewise.
52550         * lib/unistr/u32-set.c: Likewise.
52551         * lib/unistr/u32-startswith.c: Likewise.
52552         * lib/unistr/u32-stpcpy.c: Likewise.
52553         * lib/unistr/u32-stpncpy.c: Likewise.
52554         * lib/unistr/u32-strcat.c: Likewise.
52555         * lib/unistr/u32-strchr.c: Likewise.
52556         * lib/unistr/u32-strcmp.c: Likewise.
52557         * lib/unistr/u32-strcpy.c: Likewise.
52558         * lib/unistr/u32-strcspn.c: Likewise.
52559         * lib/unistr/u32-strdup.c: Likewise.
52560         * lib/unistr/u32-strlen.c: Likewise.
52561         * lib/unistr/u32-strmblen.c: Likewise.
52562         * lib/unistr/u32-strmbtouc.c: Likewise.
52563         * lib/unistr/u32-strncat.c: Likewise.
52564         * lib/unistr/u32-strncmp.c: Likewise.
52565         * lib/unistr/u32-strncpy.c: Likewise.
52566         * lib/unistr/u32-strnlen.c: Likewise.
52567         * lib/unistr/u32-strpbrk.c: Likewise.
52568         * lib/unistr/u32-strrchr.c: Likewise.
52569         * lib/unistr/u32-strspn.c: Likewise.
52570         * lib/unistr/u32-strstr.c: Likewise.
52571         * lib/unistr/u32-strtok.c: Likewise.
52572         * lib/unistr/u32-to-u16.c: Likewise.
52573         * lib/unistr/u32-to-u8.c: Likewise.
52574         * lib/unistr/u32-uctomb.c: Likewise.
52575         * lib/unistr/u8-check.c: Likewise.
52576         * lib/unistr/u8-chr.c: Likewise.
52577         * lib/unistr/u8-cmp.c: Likewise.
52578         * lib/unistr/u8-cpy-alloc.c: Likewise.
52579         * lib/unistr/u8-cpy.c: Likewise.
52580         * lib/unistr/u8-endswith.c: Likewise.
52581         * lib/unistr/u8-mblen.c: Likewise.
52582         * lib/unistr/u8-mbsnlen.c: Likewise.
52583         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52584         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52585         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52586         * lib/unistr/u8-mbtouc.c: Likewise.
52587         * lib/unistr/u8-mbtoucr.c: Likewise.
52588         * lib/unistr/u8-move.c: Likewise.
52589         * lib/unistr/u8-next.c: Likewise.
52590         * lib/unistr/u8-prev.c: Likewise.
52591         * lib/unistr/u8-set.c: Likewise.
52592         * lib/unistr/u8-startswith.c: Likewise.
52593         * lib/unistr/u8-stpcpy.c: Likewise.
52594         * lib/unistr/u8-stpncpy.c: Likewise.
52595         * lib/unistr/u8-strcat.c: Likewise.
52596         * lib/unistr/u8-strchr.c: Likewise.
52597         * lib/unistr/u8-strcmp.c: Likewise.
52598         * lib/unistr/u8-strcpy.c: Likewise.
52599         * lib/unistr/u8-strcspn.c: Likewise.
52600         * lib/unistr/u8-strdup.c: Likewise.
52601         * lib/unistr/u8-strlen.c: Likewise.
52602         * lib/unistr/u8-strmblen.c: Likewise.
52603         * lib/unistr/u8-strmbtouc.c: Likewise.
52604         * lib/unistr/u8-strncat.c: Likewise.
52605         * lib/unistr/u8-strncmp.c: Likewise.
52606         * lib/unistr/u8-strncpy.c: Likewise.
52607         * lib/unistr/u8-strnlen.c: Likewise.
52608         * lib/unistr/u8-strpbrk.c: Likewise.
52609         * lib/unistr/u8-strrchr.c: Likewise.
52610         * lib/unistr/u8-strspn.c: Likewise.
52611         * lib/unistr/u8-strstr.c: Likewise.
52612         * lib/unistr/u8-strtok.c: Likewise.
52613         * lib/unistr/u8-to-u16.c: Likewise.
52614         * lib/unistr/u8-to-u32.c: Likewise.
52615         * lib/unistr/u8-uctomb-aux.c: Likewise.
52616         * lib/unistr/u8-uctomb.c: Likewise.
52617         * lib/unitypes.h: Likewise.
52618         * lib/uniwidth.h: Likewise.
52619         * lib/uniwidth/cjk.h: Likewise.
52620         * lib/uniwidth/u16-strwidth.c: Likewise.
52621         * lib/uniwidth/u16-width.c: Likewise.
52622         * lib/uniwidth/u32-strwidth.c: Likewise.
52623         * lib/uniwidth/u32-width.c: Likewise.
52624         * lib/uniwidth/u8-strwidth.c: Likewise.
52625         * lib/uniwidth/u8-width.c: Likewise.
52626         * lib/uniwidth/width.c: Likewise.
52627
52628 2007-10-07  Bruno Haible  <bruno@clisp.org>
52629
52630         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52631         The file is still under LGPL (see modules/inttypes).
52632
52633 2007-10-06  Bruno Haible  <bruno@clisp.org>
52634
52635         * modules/trunc (Dependencies): Add 'extensions'.
52636         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52637         Reported by Ben Pfaff <blp@gnu.org>.
52638
52639 2007-10-06  Bruno Haible  <bruno@clisp.org>
52640
52641         * modules/freopen-tests: New file.
52642         * tests/test-freopen.c: New file.
52643
52644         * modules/fopen-tests: New file.
52645         * tests/test-fopen.c: New file.
52646
52647         * modules/fopen: New file.
52648         * lib/fopen.c: New file.
52649         * m4/fopen.m4: New file.
52650         * modules/freopen: New file.
52651         * lib/freopen.c: New file.
52652         * m4/freopen.m4: New file.
52653         * lib/stdio.in.h (fopen, freopen): New declarations.
52654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52655         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52656         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52657         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52658         * doc/functions/fopen.texi: Mention the 'fopen' module.
52659         * doc/functions/freopen.texi: Mention the 'freopen' module.
52660
52661 2007-10-06  Bruno Haible  <bruno@clisp.org>
52662
52663         * modules/open-tests: New file.
52664         * tests/test-open.c: New file.
52665
52666         * modules/open: New file.
52667         * lib/open.c: New file.
52668         * m4/open.m4: New file.
52669         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52670         lib/open.c does.
52671         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52672         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52673         macros.
52674         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52675         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52676         REPLACE_OPEN.
52677         * doc/functions/open.texi: Mention the 'open' module.
52678
52679 2007-10-04  Bruno Haible  <bruno@clisp.org>
52680
52681         * modules/ceill-tests: New file.
52682         * tests/test-ceill.c: New file.
52683
52684         * modules/ceill: New file.
52685         * lib/ceill.c: Replace entire file.
52686         * m4/ceill.m4: New file.
52687         * lib/math.in.h (ceill): Replace declaration.
52688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52689         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52690         * doc/functions/ceill.texi: Mention the 'ceill' module.
52691         * modules/mathl (Files): Remove lib/ceill.c.
52692         (Depends-on): Add ceill.
52693
52694 2007-10-04  Bruno Haible  <bruno@clisp.org>
52695
52696         * modules/ceilf-tests: New file.
52697         * tests/test-ceilf.c: New file.
52698
52699         * modules/ceilf: New file.
52700         * lib/ceil.c: New file.
52701         * lib/ceilf.c: New file.
52702         * m4/ceilf.m4: New file.
52703         * lib/math.in.h (ceilf): New declaration.
52704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52705         HAVE_DECL_CEILF.
52706         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52707         HAVE_DECL_CEILF.
52708         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52709
52710 2007-10-04  Bruno Haible  <bruno@clisp.org>
52711
52712         * modules/floorl-tests: New file.
52713         * tests/test-floorl.c: New file.
52714
52715         * modules/floorl: New file.
52716         * lib/floorl.c: Replace entire file.
52717         * m4/floorl.m4: New file.
52718         * lib/math.in.h (floorl): Replace declaration.
52719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52720         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52721         * doc/functions/floorl.texi: Mention the 'floorl' module.
52722         * modules/mathl (Files): Remove lib/floorl.c.
52723         (Depends-on): Add floorl.
52724
52725 2007-10-04  Bruno Haible  <bruno@clisp.org>
52726
52727         * modules/floorf-tests: New file.
52728         * tests/test-floorf.c: New file.
52729
52730         * modules/floorf: New file.
52731         * lib/floor.c: New file.
52732         * lib/floorf.c: New file.
52733         * m4/floorf.m4: New file.
52734         * lib/math.in.h (floorf): New declaration.
52735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52736         HAVE_DECL_FLOORF.
52737         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52738         HAVE_DECL_FLOORF.
52739         * doc/functions/floorf.texi: Mention the 'floorf' module.
52740
52741 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52742             Bruno Haible  <bruno@clisp.org>
52743
52744         Advertise for the Git server instead of the CVS server.
52745         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52746         repository instead of the CVS one.
52747         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52748         about all VCS systems generically.
52749         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52750
52751 2007-10-04  Bruno Haible  <bruno@clisp.org>
52752
52753         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52754         means.
52755         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52756
52757 2007-10-04  Bruno Haible  <bruno@clisp.org>
52758
52759         * modules/truncl-tests: New file.
52760         * tests/test-truncl.c: New file.
52761
52762         * modules/truncl: New file.
52763         * lib/truncl.c: New file.
52764         * m4/truncl.m4: New file.
52765         * lib/math.in.h (truncl): New declaration.
52766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52767         HAVE_DECL_TRUNCL.
52768         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52769         HAVE_DECL_TRUNCL.
52770         * doc/functions/truncl.texi: Mention the 'truncl' module.
52771
52772 2007-10-04  Bruno Haible  <bruno@clisp.org>
52773
52774         * modules/truncf-tests: New file.
52775         * tests/test-truncf.c: New file.
52776
52777         * modules/truncf: New file.
52778         * lib/trunc.c: Make paramerizable through USE_* macros.
52779         * lib/truncf.c: New file.
52780         * m4/truncf.m4: New file.
52781         * lib/math.in.h (truncf): New declaration.
52782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52783         HAVE_DECL_TRUNCF.
52784         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52785         HAVE_DECL_TRUNCF.
52786         * doc/functions/truncf.texi: Mention the 'truncf' module.
52787
52788 2007-10-03  Bruno Haible  <bruno@clisp.org>
52789
52790         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52791         augmentation also for tests modules.
52792         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52793         * modules/atexit-tests (Makefile.am): Likewise.
52794         * modules/binary-io-tests (Makefile.am): Likewise.
52795         * modules/c-strcase-tests (Makefile.am): Likewise.
52796         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52797         * modules/canonicalize-tests (Makefile.am): Likewise.
52798         * modules/closein-tests (Makefile.am): Likewise.
52799         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52800         * modules/freadahead-tests (Makefile.am): Likewise.
52801         * modules/fseek-tests (Makefile.am): Likewise.
52802         * modules/fseeko-tests (Makefile.am): Likewise.
52803         * modules/ftell-tests (Makefile.am): Likewise.
52804         * modules/ftello-tests (Makefile.am): Likewise.
52805         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52806         * modules/isnanl-tests (Makefile.am): Likewise.
52807         * modules/lseek-tests (Makefile.am): Likewise.
52808         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52809         * modules/mbscasestr-tests (Makefile.am): Likewise.
52810         * modules/mbschr-tests (Makefile.am): Likewise.
52811         * modules/mbscspn-tests (Makefile.am): Likewise.
52812         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52813         * modules/mbspbrk-tests (Makefile.am): Likewise.
52814         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52815         * modules/mbsrchr-tests (Makefile.am): Likewise.
52816         * modules/mbsspn-tests (Makefile.am): Likewise.
52817         * modules/mbsstr-tests (Makefile.am): Likewise.
52818         * modules/printf-posix-tests (Makefile.am): Likewise.
52819         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52820         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52821         * modules/tsearch-tests (Makefile.am): Likewise.
52822         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52823         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52824         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52825         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52826         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52827         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52828         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52829         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52830         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52831         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52832         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52833         * modules/xstrtol-tests (Makefile.am): Likewise.
52834         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52835         * modules/yesno-tests (Makefile.am): Likewise.
52836
52837 2007-10-03  Bruno Haible  <bruno@clisp.org>
52838
52839         * modules/trunc-tests: New file.
52840         * tests/test-trunc.c: New file.
52841
52842         * modules/trunc: New file.
52843         * lib/trunc.c: New file.
52844         * m4/trunc.m4: New file.
52845         * lib/math.in.h (trunc): New declaration.
52846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52847         HAVE_DECL_TRUNC.
52848         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52849         HAVE_DECL_TRUNC.
52850         * doc/functions/trunc.texi: Mention the 'trunc' module.
52851
52852 2007-10-03  Bruno Haible  <bruno@clisp.org>
52853
52854         * tests/test-fpending.c: New file, mostly copied
52855         from coreutils/lib/t-fpending.c.
52856         * modules/fpending-tests: New file.
52857
52858 2007-10-03  Bruno Haible  <bruno@clisp.org>
52859
52860         Port the stdio extensions to QNX (untested).
52861         * lib/fseterr.c (fseterr): Add support for QNX.
52862         * lib/fbufmode.c (fbufmode): Likewise.
52863         * lib/freadable.c (freadable): Likewise.
52864         * lib/fwritable.c (fwritable): Likewise.
52865         * lib/freading.c (freading): Likewise.
52866         * lib/fwriting.c (fwriting): Likewise.
52867         * lib/freadahead.c (freadahed): Likewise.
52868         * lib/fpurge.c (fpurge): Likewise.
52869         * lib/fseeko.c (rpl_fseeko): Likewise.
52870
52871 2007-10-03  Bruno Haible  <bruno@clisp.org>
52872             Jim Meyering  <jim@meyering.net>
52873             Eric Blake  <ebb9@byu.net>
52874
52875         * doc/relocatable.texi: Use @command instead of @program.
52876
52877 2007-10-02  Jim Meyering  <jim@meyering.net>
52878
52879         Perform one more "_.h" -> ".in.h" substitution.
52880         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52881         instead of unistd_.h here, too.
52882
52883 2007-10-01  Bruno Haible  <bruno@clisp.org>
52884
52885         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52886         Needed for the alloca-opt module.
52887
52888 2007-09-30  Bruno Haible  <bruno@clisp.org>
52889
52890         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52891         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52892         alloca_.h.
52893         * lib/argz.in.h: Renamed from lib/argz_.h.
52894         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52895         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52896         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52897         byteswap_.h.
52898         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52899         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52900         dirent_.h.
52901         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52902         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52903         fcntl_.h.
52904         * lib/float.in.h: Renamed from lib/float_.h.
52905         * modules/float (Files, Makefile.am): Use float.in.h instead of
52906         float_.h.
52907         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52908         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52909         fnmatch_.h.
52910         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52911         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52912         getopt_.h.
52913         * lib/glob.in.h: Renamed from lib/glob_.h.
52914         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52915         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52916         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52917         iconv_.h.
52918         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52919         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52920         inttypes_.h.
52921         * lib/locale.in.h: Renamed from lib/locale_.h.
52922         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52923         locale_.h.
52924         * lib/math.in.h: Renamed from lib/math_.h.
52925         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52926         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52927         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52928         of netinet_in_.h. Add dependency.
52929         * lib/poll.in.h: Renamed from lib/poll_.h.
52930         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52931         * lib/search.in.h: Renamed from lib/search_.h.
52932         * modules/search (Files, Makefile.am): Use search.in.h instead of
52933         search_.h.
52934         * lib/signal.in.h: Renamed from lib/signal_.h.
52935         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52936         _signal.h.
52937         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52938         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52939         stdbool_.h.
52940         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52941         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52942         stdint_.h.
52943         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52944         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52945         stdio_.h.
52946         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52947         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52948         stdlib_.h.
52949         * lib/string.in.h: Renamed from lib/string_.h.
52950         * modules/string (Files, Makefile.am): Use string.in.h instead of
52951         string_.h.
52952         * doc/gnulib-tool.texi (Initial import): Update.
52953         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52954         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52955         of sys_select_.h. Add dependency.
52956         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52957         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52958         of sys_socket_.h.
52959         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52960         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52961         sys_stat_.h.
52962         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52963         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52964         sys_time_.h.
52965         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52966         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52967         sysexits_.h.
52968         * lib/time.in.h: Renamed from lib/time_.h.
52969         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52970         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52971         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52972         unistd_.h.
52973         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52974         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52975         wchar_.h.
52976         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52977         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52978         wctype_.h.
52979         * build-aux/bootstrap (slurp): Update.
52980         * lib/.cppi-disable: Update.
52981
52982 2007-09-30  Bruno Haible  <bruno@clisp.org>
52983
52984         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52985         Needed on BeOS.
52986
52987 2007-09-30  Bruno Haible  <bruno@clisp.org>
52988
52989         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52990
52991 2007-09-29  Bruno Haible  <bruno@clisp.org>
52992
52993         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52994
52995 2007-09-29  Bruno Haible  <bruno@clisp.org>
52996
52997         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52998         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52999         * build-aux/install-reloc: Compile also areadlink.c.
53000         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53001
53002 2007-09-29  Bruno Haible  <bruno@clisp.org>
53003
53004         * gnulib-tool (func_emit_initmacro_done): Indentation.
53005
53006 2007-09-29  Bruno Haible  <bruno@clisp.org>
53007
53008         * README: Add CVS checkout update instructions.
53009         Info from Bob Proulx <bob@proulx.com>.
53010
53011 2007-09-28  Eric Blake  <ebb9@byu.net>
53012
53013         Provide move-if-change.
53014         * build-aux/move-if-change: New file, based on best practice
53015         rather than any canonical upstream location.
53016
53017 2007-09-28  Jim Meyering  <jim@meyering.net>
53018
53019         Fix canonicalize loop-detection corner case.
53020         Do not attempt to stat the symlink values stored via seen_triple.
53021         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53022         on linux-2.6.18, (but not 2.6.22).
53023         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53024         triple_compare.  The former compares dev,ino,filename, while the latter
53025         would actually stat dirname(filename) when dev and ino were equal.
53026         * lib/hash-triple.c: Install <string.h>.
53027         (STREQ): Define.
53028         (triple_compare_ino_str): New function.
53029         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53030
53031 2007-09-28  Eric Blake  <ebb9@byu.net>
53032
53033         Enforce that AC_REPLACE_FUNCS files exist.
53034         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53035         override check for typos.
53036
53037         Fix test-closein on Solaris 10.
53038         * tests/test-closein.c (main): Don't assume stdin can be inherited
53039         closed on all systems.
53040         * tests/test-closein.sh: Likewise.
53041         Reported by Piotr Tarnowski.
53042
53043 2007-09-28  Jim Meyering  <jim@meyering.net>
53044
53045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53046
53047 2007-09-27  Jim Meyering  <jim@meyering.net>
53048
53049         canonicalize: Avoid a false-positive cycle failure.
53050         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53051         Sort.  Remove cycle-check.
53052         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53053         not cycle-check.h.
53054         (seen_triple): New function.
53055         (canonicalize_filename_mode): Use it instead of cycle-check.
53056         * tests/test-canonicalize.c: Add a test for this bug.
53057         * tests/test-canonicalize.sh: Set up and run the test.
53058
53059         New module, file-set, from coreutils.
53060         * modules/file-set: Define it.
53061         * lib/file-set.c, lib/file-set.h: Implement.
53062
53063         New module, hash-triple, from coreutils.
53064         * modules/hash-triple: Define it.
53065         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53066
53067 2007-09-25  Eric Blake  <ebb9@byu.net>
53068
53069         Fix strerror on Interix.
53070         * lib/string_.h (strerror): Declare replacement.
53071         * doc/functions/strerror.texi (strerror): Document the Interix
53072         shortcoming.
53073         * modules/string (Makefile.am): Support new hooks.
53074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53075         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53076         gl_FUNC_STRERROR_SEPARATE.
53077         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53078         * lib/strerror.c (rpl_strerror): Provide replacement.
53079         * modules/strerror (Depends-on): Add string.
53080         (configure.ac): Detect use of module.
53081         * tests/test-strerror.c: New file.
53082         * modules/strerror-tests: New test module.
53083         * modules/argp (Depends-on): Add strerror.
53084         * modules/error (Depends-on): Likewise.
53085         Reported by Martin Koeppe.
53086
53087 2007-09-24  Bruno Haible  <bruno@clisp.org>
53088
53089         * README: Update git instructions.
53090
53091 2007-09-24  Eric Blake  <ebb9@byu.net>
53092
53093         Revert fpending breakage from 2007-09-08.
53094         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53095         __fpending.c.
53096
53097 2007-09-24  Jim Meyering  <jim@meyering.net>
53098
53099         filenamecat.c: Add a test.
53100         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53101         showing how the function works when DIR is the empty string.
53102
53103 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53104
53105         * tests/test-canonicalize.sh: Turn on executable bit.
53106
53107 2007-09-19  Eric Blake  <ebb9@byu.net>
53108
53109         * README: Update CVS instructions.
53110
53111 2007-09-18  Bruno Haible  <bruno@clisp.org>
53112
53113         * modules/areadlink: New file.
53114         * lib/areadlink.h (areadlink): New declaration.
53115         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53116
53117 2007-09-17  Jim Meyering  <jim@meyering.net>
53118
53119         * lib/savewd.c (ESTALE) [!defined]: Define.
53120         Reported to be required on Interix by Martin Koeppe.
53121
53122 2007-09-17  Bruno Haible  <bruno@clisp.org>
53123
53124         * gnulib-tool (func_version): Use $version.
53125
53126 2007-09-16  Bruno Haible  <bruno@clisp.org>
53127
53128         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53129         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53130         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53131         Reported by Greg Schafer <gschafer@zip.com.au>.
53132
53133 2007-09-15  Bruno Haible  <bruno@clisp.org>
53134
53135         * gnulib-tool (sed): Try a little harder to make bash understand the
53136         alias.
53137         Reported by Bruce Korb <bruce.korb@gmail.com>.
53138
53139 2007-09-13  Eric Blake  <ebb9@byu.net>
53140
53141         * ChangeLog: Remove conflict markers.
53142
53143 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53144
53145         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53146         Reported by Bruno Haible <bruno@clisp.org>.
53147
53148 2007-09-12  Bruno Haible  <bruno@clisp.org>
53149
53150         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53151         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53152         is not defined.
53153
53154 2007-09-12  Eric Blake  <ebb9@byu.net>
53155
53156         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53157         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53158         Autoconf definition.
53159         * modules/euidaccess (Depends-on): Add extensions, for
53160         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53161         * modules/fnmatch (Depends-on): Likewise.
53162         * modules/getaddrinfo (Depends-on): Likewise.
53163         * modules/getdelim (Depends-on): Likewise.
53164         * modules/getline (Depends-on): Likewise.
53165         * modules/getsubopt (Depends-on): Likewise.
53166         * modules/gettext (Depends-on): Likewise.
53167         * modules/group-member (Depends-on): Likewise.
53168         * modules/mbchar (Depends-on): Likewise.
53169         * modules/memmem (Depends-on): Likewise.
53170         * modules/mempcpy (Depends-on): Likewise.
53171         * modules/memrchr (Depends-on): Likewise.
53172         * modules/pagealign_alloc (Depends-on): Likewise.
53173         * modules/readutmp (Depends-on): Likewise.
53174         * modules/stpcpy (Depends-on): Likewise.
53175         * modules/stpncpy (Depends-on): Likewise.
53176         * modules/strchrnul (Depends-on): Likewise.
53177         * modules/strndup (Depends-on): Likewise.
53178         * modules/strsep (Depends-on): Likewise.
53179         * modules/strverscmp (Depends-on): Likewise.
53180         * modules/vasprintf (Depends-on): Likewise.
53181         * modules/wcwidth (Depends-on): Likewise.
53182         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53183         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53184         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53186         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53187         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53188         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53189         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53190         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53191         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53192         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53193         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53194         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53195         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53196         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53197         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53198         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53199         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53200         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53201         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53202         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53203         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53204         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53205         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53206         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53208         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53209         so that lock.m4 can be used in gettext without extensions module.
53210
53211 2007-09-11  Bruno Haible  <bruno@clisp.org>
53212
53213         * m4/isc-posix.m4: Remove file.
53214         Suggested by Eric Blake.
53215
53216 2007-09-11  Eric Blake  <ebb9@byu.net>
53217
53218         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53219
53220 2007-09-10  Bruno Haible  <bruno@clisp.org>
53221
53222         * posix-modules: Fix typo in error message.
53223         Reported by Matt <mkraai@beckman.com>.
53224
53225 2007-09-09  Bruno Haible  <bruno@clisp.org>
53226
53227         * doc/functions/getdelim.texi: Update list of platforms lacking the
53228         function.
53229         * doc/functions/getline.texi: Likewise.
53230
53231 2007-09-09  Jim Meyering  <jim@meyering.net>
53232
53233         * lib/hash.c (hash_initialize): Detect calloc failure.
53234         Reported by Bruno Haible.
53235
53236 2007-09-09  Bruno Haible  <bruno@clisp.org>
53237
53238         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53239         malloc or realloc fails.
53240
53241 2007-09-09  Bruno Haible  <bruno@clisp.org>
53242
53243         * modules/getcwd (Depends-on): Add malloc-posix.
53244         * modules/glob (Depends-on): Likewise.
53245         * modules/putenv (Depends-on): Likewise.
53246         * modules/strdup (Depends-on): Likewise.
53247         * modules/getdelim (Depends-on): Add realloc-posix.
53248         * modules/read-file (Depends-on): Likewise.
53249
53250 2007-09-09  Bruno Haible  <bruno@clisp.org>
53251
53252         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53253         (gl_FUNC_MALLOC_POSIX): Require it.
53254         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53255         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53256         * modules/realloc (Files): Add m4/malloc.m4.
53257         * modules/calloc (Files): Likewise.
53258
53259 2007-09-09  Bruno Haible  <bruno@clisp.org>
53260
53261         * modules/malloc-posix: New file.
53262         * modules/malloc (Depends-on): Add malloc-posix.
53263         * lib/malloc.c: Include errno.h.
53264         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53265         and a POSIX-compatible malloc into a single function. Set ENOMEM
53266         when returning NULL.
53267         * m4/malloc.m4: New file.
53268         * doc/functions/malloc.texi: Mention the malloc-posix module.
53269         * lib/stdlib_.h (malloc): New declaration.
53270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53271         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53272         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53273         and HAVE_MALLOC_POSIX.
53274
53275 2007-09-09  Bruno Haible  <bruno@clisp.org>
53276
53277         * modules/realloc-posix: New file.
53278         * modules/realloc (Depends-on): Add realloc-posix.
53279         * lib/realloc.c: Include errno.h.
53280         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53281         and a POSIX-compatible realloc into a single function. Set ENOMEM
53282         when returning NULL.
53283         * m4/realloc.m4: New file.
53284         * doc/functions/realloc.texi: Mention the realloc-posix module.
53285         * lib/stdlib_.h (realloc): New declaration.
53286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53287         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53288         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53289         and HAVE_REALLOC_POSIX.
53290
53291 2007-09-09  Bruno Haible  <bruno@clisp.org>
53292
53293         * modules/calloc-posix: New file.
53294         * modules/calloc (Depends-on): Add calloc-posix.
53295         * lib/calloc.c: Include errno.h.
53296         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53297         and a POSIX-compatible calloc into a single function. Set ENOMEM
53298         when returning NULL.
53299         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53300         * doc/functions/calloc.texi: Mention the calloc-posix module.
53301         * lib/stdlib_.h (calloc): New declaration.
53302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53303         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53304         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53305         and HAVE_CALLOC_POSIX.
53306
53307 2007-09-09  Bruno Haible  <bruno@clisp.org>
53308
53309         Allow for modules to show an arbitrary notice.
53310         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53311         * gnulib-tool: New option --extract-notice.
53312         (func_usage): Document it.
53313         (sed_extract_prog): Update.
53314         (func_get_notice): New function.
53315         (func_modules_notice): New function.
53316         (func_import, func_create_testdir): Invoke it.
53317         Suggested by Jim Meyering.
53318
53319 2007-09-09  Bruno Haible  <bruno@clisp.org>
53320
53321         * gnulib-tool: New options --verbose, --quiet.
53322         (func_usage): Document them.
53323         (verbose): New variable.
53324         (func_execute_command): New function.
53325         (func_import): Don't show the module list and the file list if
53326         $verbose < 0.
53327         (func_create_testdir): Likewise. Use func_execute_command.
53328         (func_create_megatestdir): Use func_execute_command.
53329
53330 2007-09-08  Bruno Haible  <bruno@clisp.org>
53331
53332         * gnulib-tool (func_import): Prefer rsync over wget when available,
53333         for fetching the PO files.
53334
53335 2007-09-08  Bruno Haible  <bruno@clisp.org>
53336
53337         * posix-modules: New file. Portions copied from gnulib-tool.
53338         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53339
53340 2007-09-08  Jim Meyering  <jim@meyering.net>
53341
53342         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53343         * lib/fpending.h: Rename from __fpending.h.
53344         * lib/fpending.c: Rename from __fpending.c.
53345         Include "fpending.h", not "__fpending.h".
53346         * lib/__fpending.h, lib/__fpending.c: Remove files.
53347         * modules/fpending (Files): Reflect new file names.
53348         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53349
53350 2007-09-08  Bruno Haible  <bruno@clisp.org>
53351
53352         * m4/inttypes-h.m4: Remove stub file.
53353
53354 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53355
53356         * doc/headers/stdint.texi: Discuss #include_next issue.
53357
53358 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53359
53360         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53361
53362 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53363
53364         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53365         in variable name.
53366
53367 2007-09-03  Jim Meyering  <jim@meyering.net>
53368
53369         New module: git-version-gen.
53370         * modules/git-version-gen: New file.
53371
53372         Import changes from coreutils for bootstrap script.
53373
53374         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53375
53376         bootstrap: uses rsync to download the .po files
53377         * build-aux/bootstrap (po_download_command_format): New global.
53378         (download_po_files): Use rsync.
53379         (update_po_files): Don't remove .po files after download,
53380         so future rsync runs can take advantage of the copies.
53381
53382         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53383
53384         Solve the unnecessary-.po-file-regeneration problem once and for all.
53385         * build-aux/bootstrap (download_po_files): New function, renamed from
53386         get_translations.  Now, downloads, but doesn't update LINGUAS.
53387         (update_po_files): New function.
53388
53389         bootstrap: Ignore more.
53390         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53391         uniwidth to e.g., lib/.gitignore.
53392         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53393
53394         * build-aux/bootstrap: New setting: vc_ignore.
53395         (insert_sorted_if_absent): Create $file if absent.
53396         Adapt to new, possibly empty, list: $vc_ignore.
53397
53398         bootstrap: generate more ignorable names
53399         * build-aux/bootstrap (slurp): When generating ignorable names,
53400         also map .sin to .sed, .gperf to .c, and .y to .c.
53401
53402 2007-09-03  Jim Meyering  <jim@meyering.net>
53403
53404         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53405         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53406
53407 2007-09-02  Bruno Haible  <bruno@clisp.org>
53408
53409         Fix mis-recognition of 'mcs' on QNX 6.
53410         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53411         output contains the string "Mono".
53412         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53413         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53414
53415 2007-09-01  Bruno Haible  <bruno@clisp.org>
53416
53417         Fix collision between uniwidth/* and linebreak modules.
53418         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53419         u32_width): Remove declarations.
53420         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53421         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53422         streq3, streq2, streq1, streq0): Remove functions.
53423         (STREQ): Remove macro.
53424         (is_cjk_encoding): Remove function.
53425         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53426         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53427         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53428         * NEWS: Document the change.
53429
53430 2007-09-01  Bruno Haible  <bruno@clisp.org>
53431
53432         * lib/streq.h: Add double-inclusion guard.
53433
53434 2007-09-01  Karl Berry  <karl@gnu.org>
53435
53436         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53437
53438 2007-08-28  Jim Meyering  <jim@meyering.net>
53439
53440         Rename mreadlink_with_size to areadlink_with_size.
53441         * NEWS: Document the change.
53442         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53443         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53444         * lib/mreadlink.h: Rename this to...
53445         * lib/areadlink.h: ...this.
53446         * modules/mreadlink-with-size: Rename this to...
53447         * modules/areadlink-with-size: ...this.
53448         * lib/canonicalize.c: Reflect the renaming.
53449         * modules/canonicalize: Likewise.
53450
53451 2007-08-26  Bruno Haible  <bruno@clisp.org>
53452
53453         * gnulib-tool (func_import): When deciding which files to remove,
53454         consider also dangling symbolic links.
53455         Reported by Eric Blake.
53456
53457 2007-08-26  Bruno Haible  <bruno@clisp.org>
53458
53459         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53460
53461 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53462
53463         * lib/readline.c: Don't include getline.h, the prototype is now
53464         found in stdio.h.
53465
53466 2007-08-23  Jim Meyering  <jim@meyering.net>
53467
53468         Getdelim touchup.
53469         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53470         around the funlockfile call, since funlockfile never sets errno.
53471         Don't set errno upon failed realloc.
53472
53473 2007-08-22  Eric Blake  <ebb9@byu.net>
53474
53475         Getline touchups.
53476         * lib/getdelim.c (getdelim): Revert regression that required *n to
53477         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53478         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53479         getdelim, rather than whether implementation is missing.
53480         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53481         * lib/stdio_.h (getline): Also declare if replacement is
53482         required.
53483         * doc/functions/getdelim.texi: New file.
53484         * doc/functions/getline.texi: Likewise.
53485         * doc/gnulib.texi (Function Substitutes): Add new files.
53486         Reported by Bruno Haible.
53487
53488 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53489
53490         * users.txt: Add Guile.
53491
53492 2007-08-22  Eric Blake  <ebb9@byu.net>
53493
53494         * tests/test-getdelim.c (main): Use remove, not unlink.
53495         * tests/test-getline.c (main): Likewise.
53496
53497         Move getline and getdelim into stdio.h, per POSIX 200x.
53498         * modules/getline (Files): Remove getline.h.
53499         (Depends-on): Add stdio.
53500         (configure.ac): Add module indicator.
53501         * modules/getdelim (Files): Remove getdelim.h.
53502         (Depends-on): Add stdio.
53503         (configure.ac): Add module indicator.
53504         * modules/stdio (Makefile.am): Work with new indicators.
53505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53506         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53507         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53508         * lib/getdelim.h: Delete.
53509         * lib/getline.h: Delete.
53510         * lib/stdio_.h (getdelim, getline): Declare.
53511         * modules/getdelim-tests: New module.
53512         * modules/getline-tests: Likewise.
53513         * tests/test-getdelim.c: New file.
53514         * tests/test-getline.c: Likewise.
53515         * NEWS: Document the change.
53516         * lib/getline.c: Update choice of header.
53517         * lib/csharpcomp.c: Likewise.
53518         * lib/getpass.c: Likewise.
53519         * lib/javacomp.c: Likewise.
53520         * lib/javaversion.c: Likewise.
53521         * lib/yesno.c: Likewise.
53522         * lib/getdelim.c: Likewise.
53523         (getdelim): Set errno on failure, and avoid memory leak.
53524
53525 2007-08-19  Bruno Haible  <bruno@clisp.org>
53526
53527         * modules/closein (Depends-on): Add freadahead.
53528         * lib/closein.c: Include freadahead.h.
53529         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53530         is zero.
53531
53532 2007-08-19  Bruno Haible  <bruno@clisp.org>
53533
53534         * modules/freadahead-tests: New file.
53535         * tests/test-freadahead.sh: New file.
53536         * tests/test-freadahead.c: New file.
53537
53538         * modules/freadahead: New file.
53539         * lib/freadahead.h: New file.
53540         * lib/freadahead.c: New file.
53541         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53542         fbufmode, fpurge, freadable, fwritable.
53543
53544 2007-08-19  Eric Blake  <ebb9@byu.net>
53545
53546         Test yesno in combination with closein.
53547         * lib/yesno.c (yesno): Document use of stdin.
53548         * modules/yesno-tests (Files): New module.
53549         * tests/test-yesno.c (main): New file.
53550         * tests/test-yesno.sh: Likewise.
53551
53552 2007-08-19  Bruno Haible  <bruno@clisp.org>
53553
53554         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53555         * lib/fseeko.c (rpl_fseeko): Likewise.
53556         * lib/fseterr.c (fseterr): Likewise.
53557
53558 2007-08-19  Bruno Haible  <bruno@clisp.org>
53559
53560         * tests/test-lseek.c (main): Disable a test for BeOS.
53561         * doc/functions/lseek.texi: Document the BeOS bug.
53562
53563 2007-08-19  Bruno Haible  <bruno@clisp.org>
53564             Eric Blake  <ebb9@byu.net>
53565
53566         * lib/lseek.c: Include <sys/stat.h>.
53567         (rpl_lseek): Add workaround code also for Unix platforms.
53568         Needed for BeOS.
53569         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53570         * doc/functions/lseek.texi: Document BeOS definiency.
53571
53572 2007-08-18  Bruno Haible  <bruno@clisp.org>
53573
53574         * modules/fstrcmp-tests: New file.
53575         * tests/test-fstrcmp.c: New file.
53576
53577 2007-08-18  Bruno Haible  <bruno@clisp.org>
53578
53579         * modules/fstrcmp: New file, from GNU gettext with modifications.
53580         * lib/fstrcmp.h: New file, from GNU gettext.
53581         * lib/fstrcmp.c: New file, from GNU gettext.
53582         * MODULES.html.sh (String handling): Add fstrcmp.
53583
53584 2007-08-18  Bruno Haible  <bruno@clisp.org>
53585
53586         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53587         'bool'.
53588         (diag, compareseq): Remove const from the ctxt argument.
53589         (USE_HEURISTIC): Undefine at the end.
53590
53591 2007-08-18  Jim Meyering  <jim@meyering.net>
53592
53593         New file: lib/idcache.h
53594         * NEWS: Mention the addition.
53595         * modules/idcache (Files): Add lib/idcache.h
53596         * lib/idcache.c: Include "idcache.h".
53597         Don't include <sys/types.h>.
53598         Add a FIXME comment.
53599         Move file-scoped "static" declarations to the top.
53600         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53601
53602 2007-08-17  Bruno Haible  <bruno@clisp.org>
53603         and Paul Eggert  <eggert@cs.ucla.edu>
53604
53605         * MODULES.html.sh: Add diffseq.
53606         * modules/diffseq: New file.
53607         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53608         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53609
53610 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53611
53612         Import changes from coreutils for bootstrap script.
53613
53614         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53615
53616         * build-aux/bootstrap (slurp): Work even in environments where
53617         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53618         current code does not slurp files whose names start with ".", and
53619         this looks like it might be a troublesome area.
53620
53621         2007-07-11  Jim Meyering  <jim@meyering.net>
53622
53623         If there's a GPL vN copyright comment, require that N == 3.
53624
53625         2007-07-08  Jim Meyering  <jim@meyering.net>
53626
53627         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53628         * build-aux/bootstrap (mam_template): Move definition out of loop.
53629
53630         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53631
53632         * build-aux/bootstrap (symlink_to_dir): Rename function from
53633         symlink_to_gnulib.  Add a directory parameter.  Update all
53634         callers.
53635         (cp_mark_as_generated): Also check for -- and link to -- files in
53636         gl/.
53637
53638         2007-07-08  Jim Meyering  <jim@meyering.net>
53639
53640         Adapt to deeper hierarchy in gnulib.
53641         * build-aux/bootstrap (symlink_to_dir): If the destination
53642         directory doesn't exist, create it. This is required at least for
53643         "lib/uniwidth/cjk.h".
53644
53645         2007-05-15  Jim Meyering  <jim@meyering.net>
53646
53647         * build-aux/bootstrap: Now that generated Makefile.am files
53648         are no longer under version control, they must be created at
53649         bootstrap time.
53650
53651 2007-08-14  Ben Pfaff  <blp@gnu.org>
53652
53653         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53654
53655 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53656
53657         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53658         given the changes below.
53659         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53660         even on hosts that have padding bits beyond the supported 64.
53661
53662 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53663
53664         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53665         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53666         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53667         depends on it.
53668         (xstrtol_error): Remove.
53669         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53670         but with a different signature.
53671         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53672         * lib/xstrtol-error.c: Include exitfail.h.
53673         (xstrtol_fatal): New function, with a different signature from the
53674         old xstrtol_error, so that the caller need not worry about passing
53675         in an exit status, or about storage management of the option argument.
53676         (xstrtol_error): Now a static function.  Redo signature to
53677         implement xstrtol_fatal.  Output the correct number of hyphens in
53678         front of the option so that the caller need not worry about
53679         storage management.
53680         (N_): New macro.
53681         (_): Remove; not used now.
53682         * modules/xstrtol: Depend on getopt.
53683         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53684         of old STRTOL_FATAL_ERROR macro.
53685         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53686         of test program.
53687         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53688         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53689
53690 2007-08-08  Eric Blake  <ebb9@byu.net>
53691
53692         * lib/xstrtol-error.c: Add missing include.
53693
53694         Move xstrtol messages into gnulib domain, when --pobase is used.
53695         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53696         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53697         * modules/xstrtol (Files): Distribute new file.
53698         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53699         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53700         * tests/test-xstrtol.c: ...into new file.
53701         * tests/test-xstrtoul.c: Also test xstrtoul.
53702         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53703         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53704         * tests/test-xstrtol.sh: Drive the tests.
53705         * tests/test-xstrtoimax.sh: Likewise.
53706         * tests/test-xstrtoumax.sh: Likewise.
53707         * modules/xstrtol-tests: New module.
53708         * modules/xstrtoimax-tests: Likewise.
53709         * modules/xstrtoumax-tests: Likewise.
53710
53711 2007-08-08  Jim Meyering  <jim@meyering.net>
53712
53713         New function: mfile_name_concat.
53714         * lib/filenamecat.c (mfile_name_concat): New function, just like
53715         file_name_concat, but return NULL upon failure rather than exiting
53716         with a diagnostic.
53717         * lib/filenamecat.h: Declare it.
53718
53719 2007-08-07  Bruno Haible  <bruno@clisp.org>
53720
53721         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53722         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53723         warning from gcc.
53724         Reported by Eric Blake.
53725
53726 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53727
53728         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53729         * modules/crypto/arcfour (License): Likewise.
53730         * modules/crypto/des-tests (License): Likewise.
53731         * modules/crypto/gc-arctwo-tests (License): Likewise.
53732         * modules/crypto/gc-des-tests (License): Likewise.
53733         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53734         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53735         * modules/crypto/gc-md2-tests (License): Likewise.
53736         * modules/crypto/gc-md4-tests (License): Likewise.
53737         * modules/crypto/gc-md5-tests (License): Likewise.
53738         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53739         * modules/crypto/gc-rijndael-tests (License): Likewise.
53740         * modules/crypto/gc-sha1-tests (License): Likewise.
53741         * modules/crypto/gc-tests (License): Likewise.
53742         * modules/crypto/hmac-md5 (License): Likewise.
53743         * modules/crypto/hmac-sha1 (License): Likewise.
53744         * modules/crypto/md2-tests (License): Likewise.
53745         * modules/crypto/md4-tests (License): Likewise.
53746         * modules/crypto/md5 (License): Likewise.
53747         * modules/crypto/rijndael (License): Likewise.
53748         * modules/crypto/sha1 (License): Likewise.
53749         * modules/memxor (License): Likewise.
53750
53751 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53752         and Bruno Haible  <bruno@clisp.org>
53753
53754         * NEWS: Describe interface changes to human, xstrtol.
53755         * lib/human.h: Include <xstrtol.h>.
53756         (human_options): Return enum strtol_error, not int.  Remove
53757         bool arg; take int * instead.
53758         * lib/human.c: Don't include "gettext.h".
53759         (_): Remove; no longer used.
53760         Don't include <xstrtol.h>, since human.h does it.
53761         (human_options): Adjust to abovementioned interface changes.
53762         Do not report error to stderr; that's now the caller's
53763         responsibility.
53764         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53765         interface change.
53766         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53767         Str, Argument_type_string.  All uses changed.  Put " argument"
53768         in diagnostics to make them clearer.  Change wording of suffix
53769         message for clarity.
53770         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53771         Argument_type_string.
53772         (STRTOL_FATAL_WARN): Remove; no longer used.
53773         * modules/human (Depends-on): Remove gettext-h.
53774
53775 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53776
53777         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53778
53779 2007-07-31  Bruno Haible  <bruno@clisp.org>
53780
53781         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53782         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53783         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53784
53785 2007-07-31  Bruno Haible  <bruno@clisp.org>
53786
53787         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53788         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53789
53790 2007-07-30  Bruno Haible  <bruno@clisp.org>
53791
53792         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53793         * modules/c-ctype (License): Likewise.
53794         * modules/c-strcase (License): Likewise.
53795         * modules/check-version (License): Likewise.
53796         * modules/iconv (License): Likewise.
53797         * modules/iconv_open (License): Likewise.
53798         * modules/read-file (License): Likewise.
53799         * modules/striconv (License): Likewise.
53800         * modules/strverscmp (License): Likewise.
53801         * modules/vasprintf (License): Likewise.
53802         * modules/crypto/des (License): Likewise.
53803         * modules/crypto/gc (License): Likewise.
53804         * modules/crypto/gc-arcfour (License): Likewise.
53805         * modules/crypto/gc-arctwo (License): Likewise.
53806         * modules/crypto/gc-des (License): Likewise.
53807         * modules/crypto/gc-hmac-md5 (License): Likewise.
53808         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53809         * modules/crypto/gc-md2 (License): Likewise.
53810         * modules/crypto/gc-md4 (License): Likewise.
53811         * modules/crypto/gc-md5 (License): Likewise.
53812         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53813         * modules/crypto/gc-random (License): Likewise.
53814         * modules/crypto/gc-rijndael (License): Likewise.
53815         * modules/crypto/gc-sha1 (License): Likewise.
53816         * modules/crypto/md2 (License): Likewise.
53817         * modules/crypto/md4 (License): Likewise.
53818
53819 2007-07-30  Jim Meyering  <jim@meyering.net>
53820
53821         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53822         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53823         it has valid stat data.  This bug would cause du not to count the
53824         sizes of inaccessible directories.
53825         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53826         in <http://bugzilla.redhat.com/250077>.
53827
53828 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53829             Bruno Haible  <bruno@clisp.org>
53830
53831         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53832         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53833         #include_next, gives a diagnostic about it, but reports no error in
53834         the exit code.
53835         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53836
53837 2007-07-24  Ben Pfaff  <blp@gnu.org>
53838
53839         Improve name: "count-one-bits" is better than "popcount".
53840         * MODULES.html.sh: Update name.
53841         * lib/popcount.h: Renamed lib/count-one-bits.h.
53842         (popcount): Renamed count_one_bits.
53843         (popcountl): Renamed count_one_bits_l.
53844         (popcountll): Renamed count_one_bits_ll.
53845         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53846         * modules/popcount: Renamed module/count-one-bits.
53847         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53848         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53849
53850 2007-07-23  Ben Pfaff  <blp@gnu.org>
53851
53852         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53853         better code generation, and add U to large constants to avoid
53854         warnings, in non-GCC case.
53855         Suggested by Bruno Haible.
53856
53857 2007-07-23  Ben Pfaff  <blp@gnu.org>
53858
53859         * lib/popcount.h: Use verify_true instead of if...abort.
53860         * modules/popcount: Depend on verify module.
53861         Suggested by Jim Meyering.
53862
53863 2007-07-23  Bruno Haible  <bruno@clisp.org>
53864
53865         * gnulib-tool (func_import): Create a .cvsignore file also when the
53866         directory is not yet in CVS but the toplevel directory is. When
53867         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53868         Reported by Karl Berry.
53869
53870 2007-07-22  Ben Pfaff  <blp@gnu.org>
53871
53872         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53873         case.
53874         Suggested by Eric Blake.
53875
53876 2007-07-22  Ben Pfaff  <blp@gnu.org>
53877
53878         New module: popcount.
53879         * MODULES.html.sh: Add popcount.
53880         * modules/popcount: New file.
53881         * modules/popcount-tests: New file.
53882         * tests/test-popcount.c: New file.
53883         * lib/popcount.h: New file.
53884         * m4/popcount.m4: New file.
53885
53886 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53887
53888         * build-aux/announce-gen: Update to GPLv3.
53889
53890         * build-aux/config.guess: Update from config.
53891
53892 2007-07-21  Bruno Haible  <bruno@clisp.org>
53893
53894         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53895         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53896
53897 2007-07-20  Jim Meyering  <jim@meyering.net>
53898
53899         * check-module: Diagnose a self-dependency.
53900
53901 2007-07-19  Bruno Haible  <bruno@clisp.org>
53902
53903         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53904         empty.
53905         Reported by Eric Blake.
53906
53907 2007-07-18  Bruno Haible  <bruno@clisp.org>
53908
53909         * gnulib-tool: New options --po-base, --po-domain.
53910         (func_usage): Document them.
53911         (pobase, po_domain): New variables.
53912         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53913         DEFAULT_TEXT_DOMAIN.
53914         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53915         (func_import): Consider pobase and po_domain. Create a po/ directory.
53916         (func_create_testdir): Set pobase and po_domain to empty.
53917         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53918         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53919
53920 2007-07-18  Bruno Haible  <bruno@clisp.org>
53921
53922         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53923         EXTRA_DIST augmentation for files in build-aux/.
53924
53925 2007-07-16  Bruno Haible  <bruno@clisp.org>
53926
53927         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53928         * modules/getdelim (License): Likewise.
53929
53930 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53931
53932         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53933         * modules/d-type (License): Likewise.
53934         * modules/extensions (License): Likewise.
53935         * modules/fnmatch (License): Likewise.
53936         * modules/fseeko (License): Likewise.
53937         * modules/getaddrinfo (License): Likewise.
53938         * modules/getline (License): Likewise.
53939         * modules/getlogin_r (License): Likewise.
53940         * modules/getpass (License): Likewise.
53941         * modules/gettimeofday (License): Likewise.
53942         * modules/glob (License): Likewise.
53943         * modules/inet_ntop (License): Likewise.
53944         * modules/malloc (License): Likewise.
53945         * modules/malloca (License): Likewise.
53946         * modules/memmem (License): Likewise.
53947         * modules/mempcpy (License): Likewise.
53948         * modules/memset (License): Likewise.
53949         * modules/minmax (License): Likewise.
53950         * modules/mktime (License): Likewise.
53951         * modules/netinet_in (License): Likewise.
53952         * modules/pathmax (License): Likewise.
53953         * modules/poll (License): Likewise.
53954         * modules/regex (License): Likewise.
53955         * modules/snprintf (License): Likewise.
53956         * modules/stdbool (License): Likewise.
53957         * modules/stdint (License): Likewise.
53958         * modules/stdio (License): Likewise.
53959         * modules/strcase (License): Likewise.
53960         * modules/strcasestr (License): Likewise.
53961         * modules/strdup (License): Likewise.
53962         * modules/string (License): Likewise.
53963         * modules/strndup (License): Likewise.
53964         * modules/strnlen (License): Likewise.
53965         * modules/strpbrk (License): Likewise.
53966         * modules/strptime (License): Likewise.
53967         * modules/strsep (License): Likewise.
53968         * modules/sys_select (License): Likewise.
53969         * modules/sys_socket (License): Likewise.
53970         * modules/sys_stat (License): Likewise.
53971         * modules/sys_time (License): Likewise.
53972         * modules/time (License): Likewise.
53973         * modules/time_r (License): Likewise.
53974         * modules/timegm (License): Likewise.
53975         * modules/unistd (License): Likewise.
53976         * modules/vsnprintf (License): Likewise.
53977         * modules/wctype (License): Likewise.
53978
53979 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53980
53981         * modules/argz (License): LGPLv2+.
53982
53983 2007-07-15  Karl Berry  <karl@gnu.org>
53984
53985         * doc/gnulib.texi: revise node structure per new fdl.texi.
53986
53987 2007-07-14  Bruno Haible  <bruno@clisp.org>
53988
53989         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53990         the output file.
53991         * lib/uniname/uninames.h: Regenerated.
53992
53993 2007-07-14  Karl Berry  <karl@gnu.org>
53994
53995         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53996         omitting sectioning and index commands.
53997
53998 2007-07-13  Bruno Haible  <bruno@clisp.org>
53999
54000         New gnulib-tool option --more-symlinks.
54001         * gnulib-tool (func_usage): Document --more-symlinks.
54002         (do_copyrights): New variable.
54003         Recognize option --more-symlinks.
54004         (func_import): Don't add a copyright notice transform to
54005         sed_transform_lib_file if do_copyrights is empty.
54006
54007 2007-07-13  Bruno Haible  <bruno@clisp.org>
54008
54009         * lib/vasnprintf.c (decimal_point_char): Define also if
54010         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54011         && !NEED_PRINTF_DIRECTIVE_A.
54012         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54013         Gary V. Vaughan <gary@gnu.org>.
54014
54015 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54016
54017         * lib/inttypes_.h: Undo previous change, since it was fixed
54018         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54019
54020 2007-07-13  Bruno Haible  <bruno@clisp.org>
54021
54022         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54023         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54024
54025 2007-07-13  Jim Meyering  <jim@meyering.net>
54026
54027         df: Don't fail for Tru64's "file-on-file mount".
54028         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54029         so we fall through and use statfs instead.  Details here:
54030         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54031         Reported by Albert Chin.
54032
54033 2007-07-13  Bruno Haible  <bruno@clisp.org>
54034
54035         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54036         * modules/configmake (License): Likewise.
54037         * modules/gettext (License): Likewise.
54038         * modules/gettext-h (License): Likewise.
54039         * modules/include_next (License): Likewise.
54040         * modules/link-warning (License): Likewise.
54041         * modules/localcharset (License): Likewise.
54042         * modules/localename (License): Likewise.
54043         * modules/lock (License): Likewise.
54044         * modules/relocatable-lib-lgpl (License): Likewise.
54045         * modules/size_max (License): Likewise.
54046         * modules/vasnprintf (License): Likewise.
54047         * modules/wchar (License): Likewise.
54048         * modules/xsize (License): Likewise.
54049
54050 2007-07-13  Bruno Haible  <bruno@clisp.org>
54051
54052         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54053         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54054
54055 2007-07-12  Bruno Haible  <bruno@clisp.org>
54056
54057         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54058         in the modules files.
54059
54060 2007-07-11  Karl Berry  <karl@gnu.org>
54061
54062         * MODULES.html.sh (func_module): use
54063          sed -e '\|^'"${includefile}"'$|d'
54064          instead of /.../d, to avoid errors on $includefile's containing /.
54065
54066 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54067
54068         * gnulib-tool (func_import): Avoid duplication of --avoid
54069         statements
54070         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54071         names to `_' in variable names.
54072
54073 2007-07-10  Eric Blake  <ebb9@byu.net>
54074
54075         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54076         * NEWS: Document this change.
54077
54078 2007-07-08  Bruno Haible  <bruno@clisp.org>
54079
54080         Update to Unicode 5.0.
54081         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54082         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54083         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54084         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54085         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54086         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54087         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54088         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54089         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54090         U+10A3F, U+1D242..U+1D244.
54091         (nonspacing_table_ind): Update.
54092         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54093         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54094
54095 2007-07-08  Bruno Haible  <bruno@clisp.org>
54096
54097         Update to Unicode 5.0.
54098         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54099         code transform. Extend the name index field of unicode_name_to_code and
54100         unicode_code_to_name from 16 to 24 bits.
54101         * lib/uniname/uniname.c (unicode_character_name,
54102         unicode_name_character): Add the range 0x12xxx to the code transform.
54103         * lib/uniname/uninames.h: Regenerated.
54104         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54105
54106 2007-07-07  Bruno Haible  <bruno@clisp.org>
54107
54108         * modules/wcwidth-tests: New file.
54109         * tests/test-wcwidth.c: New file.
54110
54111         Work around MacOS X wcwidth() bug.
54112         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54113         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54114         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54115         original wcwidth in non-UTF-8 locales.
54116         * modules/wcwidth (Depends-on): Add localcharset, streq,
54117         uniwidth/width.
54118         * doc/functions/wcwidth.texi: Update.
54119
54120 2007-07-07  Bruno Haible  <bruno@clisp.org>
54121
54122         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54123         (wcwidth): New declaration.
54124         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54125         macros.
54126         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54127         here. Prepare for creating <wchar.h> unconditionally.
54128         * modules/wchar (Depends-on): Add link-warning.
54129         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54130         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54131         * lib/wcwidth.h: Remove file.
54132         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54133         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54134         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54135         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54136         (Include): Replace wcwidth.h with <wchar.h>.
54137         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54138         * lib/mbchar.h: Don't include wcwidth.h.
54139         * lib/mbswidth.c: Likewise.
54140         * NEWS: Mention the change.
54141
54142 2007-07-07  Bruno Haible  <bruno@clisp.org>
54143
54144         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54145         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54146         definition with an external declaration.
54147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54148         defined as a function. Remove AC_C_INLINE requirement.
54149         * modules/wcwidth (Files): Add lib/wcwidth.c.
54150         (Makefile.am): Remove redundant statement.
54151
54152 2007-07-07  Bruno Haible  <bruno@clisp.org>
54153
54154         * MODULES.html.sh (Unicode string functions): Add the new modules.
54155
54156         * tests/uniwidth/test-u32-strwidth.c: New file.
54157         * modules/uniwidth/u32-strwidth-tests: New file.
54158
54159         * lib/uniwidth/u32-strwidth.c: New file.
54160         * modules/uniwidth/u32-strwidth: New file.
54161
54162         * tests/uniwidth/test-u16-strwidth.c: New file.
54163         * modules/uniwidth/u16-strwidth-tests: New file.
54164
54165         * lib/uniwidth/u16-strwidth.c: New file.
54166         * modules/uniwidth/u16-strwidth: New file.
54167
54168         * tests/uniwidth/test-u8-strwidth.c: New file.
54169         * modules/uniwidth/u8-strwidth-tests: New file.
54170
54171         * lib/uniwidth/u8-strwidth.c: New file.
54172         * modules/uniwidth/u8-strwidth: New file.
54173
54174         * tests/uniwidth/test-u32-width.c: New file.
54175         * modules/uniwidth/u32-width-tests: New file.
54176
54177         * lib/uniwidth/u32-width.c: New file.
54178         * modules/uniwidth/u32-width: New file.
54179
54180         * tests/uniwidth/test-u16-width.c: New file.
54181         * modules/uniwidth/u16-width-tests: New file.
54182
54183         * lib/uniwidth/u16-width.c: New file.
54184         * modules/uniwidth/u16-width: New file.
54185
54186         * tests/uniwidth/test-u8-width.c: New file.
54187         * modules/uniwidth/u8-width-tests: New file.
54188
54189         * lib/uniwidth/u8-width.c: New file.
54190         * modules/uniwidth/u8-width: New file.
54191
54192         * tests/uniwidth/test-uc_width.c: New file.
54193         * modules/uniwidth/width-tests: New file.
54194
54195         * lib/uniwidth/width.c: New file, from GNU libiconv.
54196         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54197         * modules/uniwidth/width: New file.
54198
54199         * lib/uniwidth.h: New file, from GNU libiconv.
54200         * modules/uniwidth/base: New file.
54201
54202 2007-07-07  Bruno Haible  <bruno@clisp.org>
54203
54204         * lib/uniname.h: New file, from GNU gettext.
54205         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54206         * lib/uniname/uninames.h: New file, from GNU gettext.
54207         * lib/uniname/uniname.c: New file, from GNU gettext.
54208         * tests/uniname/test-uninames.sh: New file.
54209         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54210         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54211         * modules/uniname/base: New file.
54212         * modules/uniname/uniname: New file.
54213         * modules/uniname/uniname-tests: New file.
54214         * MODULES.html.sh (Unicode string functions): Add the new modules.
54215
54216 2007-07-06  Bruno Haible  <bruno@clisp.org>
54217
54218         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54219
54220 2007-07-06  Bruno Haible  <bruno@clisp.org>
54221
54222         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54223         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54224         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54225         include <sys/time.h>.
54226         Reported by Eric Blake.
54227
54228 2007-07-06  Eric Blake  <ebb9@byu.net>
54229
54230         Fix testing canonicalize on cygwin.
54231         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54232         Revert patch from 2007-06-19.
54233         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54234         canonicalize module is also in use.
54235         * tests/test-canonicalize.c: New file.
54236         * tests/test-canonicalize.sh: Likewise.
54237         * modules/canonicalize-tests: Likewise.
54238
54239 2007-07-06  Jim Meyering  <jim@meyering.net>
54240
54241         * lib/getugroups.c (getugroups): Detect getgrent failure.
54242         Adjust comment to reflect reality: this function may return -1.
54243
54244 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54245
54246         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54247         the new TP address.
54248         (usage): Fix typo
54249         (gnulib_mk): New variable.
54250
54251 2007-07-05  Jim Meyering  <jim@meyering.net>
54252
54253         Don't let endgrent clobber errno, no matter how improbable.
54254         * lib/getugroups.c (getugroups): Save and restore errno around
54255         endgrent call.
54256
54257         Close the group DB even when failing with 2^31 or more members.
54258         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54259
54260 2007-07-04  Jim Meyering  <jim@meyering.net>
54261
54262         * lib/getugroups.h: New file.
54263         * lib/getugroups.c: Include "getugroups.h".
54264         Remove uses of "register" keyword.
54265         Move local variable, "cp", down into scope where used.
54266         Give "username" parameter the "const" attribute.
54267         * modules/getugroups (Files): Add lib/getugroups.h
54268
54269 2007-07-04  Karl Berry  <karl@gnu.org>
54270
54271         * MODULES.html.sh (func_all_modules): Complete rename of
54272         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54273
54274 2007-07-02  Bruno Haible  <bruno@clisp.org>
54275
54276         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54277         mode, when inttypes.h comes from gnulib.
54278         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54279
54280 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54281
54282         * NEWS: Mention lgpl module name change.
54283
54284         * modules/lgpl-2.1: Renamed from lgpl.
54285
54286         * NEWS: Mention gpl module name change.
54287
54288         * modules/gpl-3.0: New file, based on gpl-2.0.
54289
54290         * modules/gpl-2.0: Renamed from gpl.
54291
54292         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54293         doc/gpl-2.0.texi.
54294
54295 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54296
54297         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54298         #define __STDC_LIMIT_MACROS temporarily while including
54299         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54300         Problem reported by Joel E. Denny in
54301         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54302
54303 2007-07-01  Bruno Haible  <bruno@clisp.org>
54304
54305         * lib/unistdio.h: New file.
54306         * lib/unistdio/u-asnprintf.h: New file.
54307         * lib/unistdio/u-asprintf.h: New file.
54308         * lib/unistdio/u-printf-args.c: New file.
54309         * lib/unistdio/u-printf-args.h: New file.
54310         * lib/unistdio/u-printf-parse.h: New file.
54311         * lib/unistdio/u-snprintf.h: New file.
54312         * lib/unistdio/u-sprintf.h: New file.
54313         * lib/unistdio/u-vasprintf.h: New file.
54314         * lib/unistdio/u-vsnprintf.h: New file.
54315         * lib/unistdio/u-vsprintf.h: New file.
54316         * lib/unistdio/ulc-asnprintf.c: New file.
54317         * lib/unistdio/ulc-asprintf.c: New file.
54318         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54319         * lib/unistdio/ulc-printf-parse.c: New file.
54320         * lib/unistdio/ulc-snprintf.c: New file.
54321         * lib/unistdio/ulc-sprintf.c: New file.
54322         * lib/unistdio/ulc-vasnprintf.c: New file.
54323         * lib/unistdio/ulc-vasprintf.c: New file.
54324         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54325         * lib/unistdio/ulc-vsnprintf.c: New file.
54326         * lib/unistdio/ulc-vsprintf.c: New file.
54327         * lib/unistdio/u8-asnprintf.c: New file.
54328         * lib/unistdio/u8-asprintf.c: New file.
54329         * lib/unistdio/u8-printf-parse.c: New file.
54330         * lib/unistdio/u8-snprintf.c: New file.
54331         * lib/unistdio/u8-sprintf.c: New file.
54332         * lib/unistdio/u8-vasnprintf.c: New file.
54333         * lib/unistdio/u8-vasprintf.c: New file.
54334         * lib/unistdio/u8-vsnprintf.c: New file.
54335         * lib/unistdio/u8-vsprintf.c: New file.
54336         * lib/unistdio/u8-u8-asnprintf.c: New file.
54337         * lib/unistdio/u8-u8-asprintf.c: New file.
54338         * lib/unistdio/u8-u8-snprintf.c: New file.
54339         * lib/unistdio/u8-u8-sprintf.c: New file.
54340         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54341         * lib/unistdio/u8-u8-vasprintf.c: New file.
54342         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54343         * lib/unistdio/u8-u8-vsprintf.c: New file.
54344         * lib/unistdio/u16-asnprintf.c: New file.
54345         * lib/unistdio/u16-asprintf.c: New file.
54346         * lib/unistdio/u16-printf-parse.c: New file.
54347         * lib/unistdio/u16-snprintf.c: New file.
54348         * lib/unistdio/u16-sprintf.c: New file.
54349         * lib/unistdio/u16-vasnprintf.c: New file.
54350         * lib/unistdio/u16-vasprintf.c: New file.
54351         * lib/unistdio/u16-vsnprintf.c: New file.
54352         * lib/unistdio/u16-vsprintf.c: New file.
54353         * lib/unistdio/u16-u16-asnprintf.c: New file.
54354         * lib/unistdio/u16-u16-asprintf.c: New file.
54355         * lib/unistdio/u16-u16-snprintf.c: New file.
54356         * lib/unistdio/u16-u16-sprintf.c: New file.
54357         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54358         * lib/unistdio/u16-u16-vasprintf.c: New file.
54359         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54360         * lib/unistdio/u16-u16-vsprintf.c: New file.
54361         * lib/unistdio/u32-asnprintf.c: New file.
54362         * lib/unistdio/u32-asprintf.c: New file.
54363         * lib/unistdio/u32-printf-parse.c: New file.
54364         * lib/unistdio/u32-snprintf.c: New file.
54365         * lib/unistdio/u32-sprintf.c: New file.
54366         * lib/unistdio/u32-vasnprintf.c: New file.
54367         * lib/unistdio/u32-vasprintf.c: New file.
54368         * lib/unistdio/u32-vsnprintf.c: New file.
54369         * lib/unistdio/u32-vsprintf.c: New file.
54370         * lib/unistdio/u32-u32-asnprintf.c: New file.
54371         * lib/unistdio/u32-u32-asprintf.c: New file.
54372         * lib/unistdio/u32-u32-snprintf.c: New file.
54373         * lib/unistdio/u32-u32-sprintf.c: New file.
54374         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54375         * lib/unistdio/u32-u32-vasprintf.c: New file.
54376         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54377         * lib/unistdio/u32-u32-vsprintf.c: New file.
54378         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54379         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54380         * tests/unistdio/test-ulc-printf1.h: New file.
54381         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54382         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54383         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54384         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54385         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54386         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54387         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54388         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54389         * tests/unistdio/test-u8-asnprintf1.c: New file.
54390         * tests/unistdio/test-u8-asnprintf1.h: New file.
54391         * tests/unistdio/test-u8-printf1.h: New file.
54392         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54393         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54394         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54395         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54396         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54397         * tests/unistdio/test-u8-vasprintf1.c: New file.
54398         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54399         * tests/unistdio/test-u8-vsprintf1.c: New file.
54400         * tests/unistdio/test-u16-asnprintf1.c: New file.
54401         * tests/unistdio/test-u16-asnprintf1.h: New file.
54402         * tests/unistdio/test-u16-printf1.h: New file.
54403         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54404         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54405         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54406         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54407         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54408         * tests/unistdio/test-u16-vasprintf1.c: New file.
54409         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54410         * tests/unistdio/test-u16-vsprintf1.c: New file.
54411         * tests/unistdio/test-u32-asnprintf1.c: New file.
54412         * tests/unistdio/test-u32-asnprintf1.h: New file.
54413         * tests/unistdio/test-u32-printf1.h: New file.
54414         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54415         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54416         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54417         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54418         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54419         * tests/unistdio/test-u32-vasprintf1.c: New file.
54420         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54421         * tests/unistdio/test-u32-vsprintf1.c: New file.
54422         * modules/unistdio/base: New file.
54423         * modules/unistdio/u-printf-args: New file.
54424         * modules/unistdio/ulc-asnprintf: New file.
54425         * modules/unistdio/ulc-asprintf: New file.
54426         * modules/unistdio/ulc-fprintf: New file.
54427         * modules/unistdio/ulc-printf-parse: New file.
54428         * modules/unistdio/ulc-snprintf: New file.
54429         * modules/unistdio/ulc-sprintf: New file.
54430         * modules/unistdio/ulc-vasnprintf: New file.
54431         * modules/unistdio/ulc-vasprintf: New file.
54432         * modules/unistdio/ulc-vfprintf: New file.
54433         * modules/unistdio/ulc-vsnprintf: New file.
54434         * modules/unistdio/ulc-vsprintf: New file.
54435         * modules/unistdio/u8-asnprintf: New file.
54436         * modules/unistdio/u8-asprintf: New file.
54437         * modules/unistdio/u8-printf-parse: New file.
54438         * modules/unistdio/u8-snprintf: New file.
54439         * modules/unistdio/u8-sprintf: New file.
54440         * modules/unistdio/u8-vasnprintf: New file.
54441         * modules/unistdio/u8-vasprintf: New file.
54442         * modules/unistdio/u8-vsnprintf: New file.
54443         * modules/unistdio/u8-vsprintf: New file.
54444         * modules/unistdio/u8-u8-asnprintf: New file.
54445         * modules/unistdio/u8-u8-asprintf: New file.
54446         * modules/unistdio/u8-u8-snprintf: New file.
54447         * modules/unistdio/u8-u8-sprintf: New file.
54448         * modules/unistdio/u8-u8-vasnprintf: New file.
54449         * modules/unistdio/u8-u8-vasprintf: New file.
54450         * modules/unistdio/u8-u8-vsnprintf: New file.
54451         * modules/unistdio/u8-u8-vsprintf: New file.
54452         * modules/unistdio/u16-asnprintf: New file.
54453         * modules/unistdio/u16-asprintf: New file.
54454         * modules/unistdio/u16-printf-parse: New file.
54455         * modules/unistdio/u16-snprintf: New file.
54456         * modules/unistdio/u16-sprintf: New file.
54457         * modules/unistdio/u16-vasnprintf: New file.
54458         * modules/unistdio/u16-vasprintf: New file.
54459         * modules/unistdio/u16-vsnprintf: New file.
54460         * modules/unistdio/u16-vsprintf: New file.
54461         * modules/unistdio/u16-u16-asnprintf: New file.
54462         * modules/unistdio/u16-u16-asprintf: New file.
54463         * modules/unistdio/u16-u16-snprintf: New file.
54464         * modules/unistdio/u16-u16-sprintf: New file.
54465         * modules/unistdio/u16-u16-vasnprintf: New file.
54466         * modules/unistdio/u16-u16-vasprintf: New file.
54467         * modules/unistdio/u16-u16-vsnprintf: New file.
54468         * modules/unistdio/u16-u16-vsprintf: New file.
54469         * modules/unistdio/u32-asnprintf: New file.
54470         * modules/unistdio/u32-asprintf: New file.
54471         * modules/unistdio/u32-printf-parse: New file.
54472         * modules/unistdio/u32-snprintf: New file.
54473         * modules/unistdio/u32-sprintf: New file.
54474         * modules/unistdio/u32-vasnprintf: New file.
54475         * modules/unistdio/u32-vasprintf: New file.
54476         * modules/unistdio/u32-vsnprintf: New file.
54477         * modules/unistdio/u32-vsprintf: New file.
54478         * modules/unistdio/u32-u32-asnprintf: New file.
54479         * modules/unistdio/u32-u32-asprintf: New file.
54480         * modules/unistdio/u32-u32-snprintf: New file.
54481         * modules/unistdio/u32-u32-sprintf: New file.
54482         * modules/unistdio/u32-u32-vasnprintf: New file.
54483         * modules/unistdio/u32-u32-vasprintf: New file.
54484         * modules/unistdio/u32-u32-vsnprintf: New file.
54485         * modules/unistdio/u32-u32-vsprintf: New file.
54486         * modules/unistdio/ulc-asnprintf-tests: New file.
54487         * modules/unistdio/ulc-vasnprintf-tests: New file.
54488         * modules/unistdio/ulc-vasprintf-tests: New file.
54489         * modules/unistdio/ulc-vsnprintf-tests: New file.
54490         * modules/unistdio/ulc-vsprintf-tests: New file.
54491         * modules/unistdio/u8-asnprintf-tests: New file.
54492         * modules/unistdio/u8-vasnprintf-tests: New file.
54493         * modules/unistdio/u8-vasprintf-tests: New file.
54494         * modules/unistdio/u8-vsnprintf-tests: New file.
54495         * modules/unistdio/u8-vsprintf-tests: New file.
54496         * modules/unistdio/u16-asnprintf-tests: New file.
54497         * modules/unistdio/u16-vasnprintf-tests: New file.
54498         * modules/unistdio/u16-vasprintf-tests: New file.
54499         * modules/unistdio/u16-vsnprintf-tests: New file.
54500         * modules/unistdio/u16-vsprintf-tests: New file.
54501         * modules/unistdio/u32-asnprintf-tests: New file.
54502         * modules/unistdio/u32-vasnprintf-tests: New file.
54503         * modules/unistdio/u32-vasprintf-tests: New file.
54504         * modules/unistdio/u32-vsnprintf-tests: New file.
54505         * modules/unistdio/u32-vsprintf-tests: New file.
54506         * MODULES.html.sh (Unicode string functions): Add the new modules.
54507
54508 2007-07-01  Bruno Haible  <bruno@clisp.org>
54509
54510         * lib/sprintf.c (sprintf): Limit the available length estimation,
54511         to avoid address wraparound.
54512         * lib/vsprintf.c (vsprintf): Likewise.
54513         * modules/sprintf-posix (Dependencies): Add stdint.
54514         * modules/vsprintf-posix (Dependencies): Likewise.
54515
54516 2007-07-01  Bruno Haible  <bruno@clisp.org>
54517
54518         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54519         Windows PATH as well. Conservative double-quoting. Comments.
54520
54521 2007-07-01  Bruno Haible  <bruno@clisp.org>
54522             Eric Blake  <ebb9@byu.net>
54523             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54524
54525         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54526         empty components in $PATH, denoting '.'.
54527
54528 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54529
54530         * gnulib-tool: Fix indentation.
54531         (func_create_megatestdir): Likewise.
54532         Report by Bruno Haible.
54533
54534 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54535
54536         Sync from Automake.
54537         * build-aux/gnupload: Fix shell portability issues with for loops.
54538         Report by Karl Berry.
54539
54540 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54541
54542         * build-aux/maint.mk (POURL): Use translationproject.org.
54543
54544 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54545             Bruno Haible  <bruno@clisp.org>
54546
54547         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54548         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54549         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54550         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54551         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54552
54553 2007-06-27  Bruno Haible  <bruno@clisp.org>
54554
54555         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54556         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54557
54558 2007-06-26  Karl Berry  <karl@gnu.org>
54559
54560         * MODULES.html.sh: remove xreadlink-with-size.
54561
54562 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54563
54564         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54565         method that I hope also handles the double-include problem noted
54566         by Bruno Haible in
54567         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54568
54569 2007-06-23  Bruno Haible  <bruno@clisp.org>
54570
54571         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54572         Don't let the 'mostlyclean' target fail if the last subdirectory could
54573         not be removed.
54574         Reported by Karl Berry.
54575
54576 2007-06-23  Bruno Haible  <bruno@clisp.org>
54577
54578         * gnulib-tool (echo): Add a speedier workaround for ksh.
54579         * tests/test-echo.sh: Likewise.
54580
54581 2007-06-23  Bruno Haible  <bruno@clisp.org>
54582
54583         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54584         * tests/test-echo.sh: Likewise.
54585
54586 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54587
54588         * gnulib-tool (IFS): Initialize early, so we don't set it to
54589         empty later.
54590         (self_abspathname): Rewrite algorithm to set it, reindent.
54591         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54592         (func_create_megatestdir): Merge some sed scripts.
54593
54594 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54595
54596         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54597         exposed by Sun Studio 11 cc on Solaris 8.
54598
54599 2007-06-22  Bruno Haible  <bruno@clisp.org>
54600
54601         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54602         backslashes.
54603         * tests/test-echo.sh: New file.
54604
54605 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54606
54607         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54608         simplify `sed_replace_build_aux' scripts, they are portable but
54609         echoing them with `echo' is not.
54610         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54611
54612 2007-06-21  Karl Berry  <karl@gnu.org>
54613
54614         * config/srclist.txt: guess we can't handle the licenses via
54615         srclist at the moment.
54616
54617 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54618
54619         * MODULES.html.sh: Add include_next.
54620         * modules/include_next: New file.
54621
54622 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54623
54624         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54625         INCLUDE_NEXT.
54626         (gl_CHECK_NEXT_HEADERS): New macro.
54627         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54628         the obsolescent gl_ABSOLUTE_HEADER.
54629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54630         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54631         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54632         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54633         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54634         * m4/math_h.m4 (gl_MATH_H): Likewise.
54635         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54636         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54637         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54638         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54639         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54640         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54641         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54643         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54644         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54645         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54646         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54647         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54648         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54649         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54650         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54651         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54652         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54653         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54654         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54655         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54656         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54657         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54658         * lib/float_.h: Likewise.
54659         * lib/inttypes_.h: Likewise.
54660         * lib/math_.h: Likewise.
54661         * lib/search_.h: Likewise.
54662         * lib/signal_.h: Likewise.
54663         * lib/stdint_.h: Likewise.
54664         * lib/stdio_.h: Likewise.
54665         * lib/stdlib_.h: Likewise.
54666         * lib/string_.h: Likewise.
54667         * lib/sys_stat_.h: Likewise.
54668         * lib/sys_time_.h: Likewise.
54669         * lib/time_.h: Likewise.
54670         * lib/unistd_.h: Likewise.
54671         * lib/wchar_.h: Likewise.
54672         * lib/wctype_.h: Likewise.
54673         * lib/dirent_.h: Likewise.
54674         * lib/iconv_.h: Likewise.
54675         * lib/locale_.h: Likewise.
54676         * lib/netinet_in_.h: Likewise.
54677         * lib/sys_select_.h: Likewise.
54678         * lib/sys_socket_.h: Likewise.
54679         * lib/sysexits_.h: Likewise.
54680         * modules/fcntl (Depends-on): Depend on include_next, not
54681         absolute_header.
54682         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54683         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54684         * modules/fchdir: Likewise.
54685         * modules/float: Likewise.
54686         * modules/iconv_open: Likewise.
54687         * modules/inttypes: Likewise.
54688         * modules/locale: Likewise.
54689         * modules/math: Likewise.
54690         * modules/netinet_in: Likewise.
54691         * modules/search: Likewise.
54692         * modules/signal: Likewise.
54693         * modules/stdint: Likewise.
54694         * modules/stdio: Likewise.
54695         * modules/stdlib: Likewise.
54696         * modules/string: Likewise.
54697         * modules/sys_select: Likewise.
54698         * modules/sys_socket: Likewise.
54699         * modules/sys_stat: Likewise.
54700         * modules/sys_time: Likewise.
54701         * modules/sysexits: Likewise.
54702         * modules/time: Likewise.
54703         * modules/unistd: Likewise.
54704         * modules/wchar: Likewise.
54705         * modules/wctype: Likewise.
54706         * modules/sys_stat: Change maintainer to "all".
54707         * modules/unistd: Likewise.
54708
54709 2007-06-20  Karl Berry  <karl@gnu.org>
54710
54711         * config/srclist.txt: track www changes in license files.
54712
54713 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54714
54715         * build-aux/bootstrap: Remove stray dot.
54716         Make sure build_aux settings are honored when linking
54717         gnulib_extra_files.
54718
54719 2007-06-19  Eric Blake  <ebb9@byu.net>
54720
54721         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54722         Allow compilation on cygwin.
54723
54724 2007-06-19  Jim Meyering  <jim@meyering.net>
54725
54726         xreadlink-with-size: Remove module.  No longer used.
54727         Ex-callers now use xreadlink or mreadlink-with-size.
54728         * modules/xreadlink-with-size: Remove module.
54729         * lib/xreadlink-with-size.c: Remove file.
54730         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54731         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54732         just before the function definition *is* accurate.
54733
54734         Eliminate one way canonicalize_filename_mode could exit.
54735         * lib/canonicalize.c (canonicalize_filename_mode):
54736         Use mreadlink_with_size, not xreadlink_with_size.
54737
54738 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54739
54740         Detect porting problems to FreeBSD/arm, which has time_t wider than
54741         long int.  Original problem reported for GNU diff by Xin Li in
54742         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54743         * modules/getdate (Depends-on): Add intprops, verify.
54744         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54745         is an integer type no wider than long int.
54746
54747 2007-06-18  Jim Meyering  <jim@meyering.net>
54748
54749         New module: mreadlink-with-size.
54750         * MODULES.html.sh: Add mreadlink-with-size.
54751         * modules/mreadlink-with-size: New module
54752         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54753         not xreadlink-with-size.
54754         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54755
54756 2007-06-16  Bruno Haible  <bruno@clisp.org>
54757
54758         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54759         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54760         Reported by Gary V. Vaughan <gary@gnu.org>.
54761
54762 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54763
54764         Revamp lchown so that it lives in unistd.h where it belongs.
54765         * lib/lchown.h: Remove.
54766         * lib/dirchownmod.c: Don't include lib/lchown.h.
54767         * lib/fchownat.c: Likewise.
54768         * lib/openat.c: Likewise.
54769         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54770         does not follow symlinks.
54771         (EOPNOTSUPP): Define if not defined.
54772         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54773         is defined to 0.
54774         (lchown): New decl.
54775         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54776         Do not check for lchown decl.
54777         Set REPLACE_LCHOWN.
54778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54779         REPLACE_LCHOWN.
54780         * modules/chown: Make it clear it follows symlinks.
54781         * modules/lchown: Make it clear it doesn't follow symlinks.
54782         (Files): Remove lib/lchown.h
54783         (Depends-on): Add unistd.
54784         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54785         (Include): Include <unistd.h>, not "lchown.h".
54786         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54787         REPLACE_LCHOWN.
54788
54789 2007-06-15  Jim Meyering  <jim@meyering.net>
54790
54791         Change license (GPL to LGPL) of fsusage and dependents.
54792         * modules/fsusage (License): Change to LGPL.
54793         * modules/full-read (License): Likewise.
54794         * modules/full-write (License): Likewise.
54795         * modules/safe-read (License): Likewise.
54796         * modules/safe-write (License): Likewise.
54797
54798 2007-06-14  Ben Pfaff  <blp@gnu.org>
54799
54800         Missing part of allocsa -> malloca transition.
54801         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54802         gl_MALLOCA.
54803
54804 2007-06-12  Bruno Haible  <bruno@clisp.org>
54805
54806         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54807         to ia64, x86_64, i386.
54808         Reported by Eric Blake.
54809
54810 2007-06-12  Bruno Haible  <bruno@clisp.org>
54811
54812         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54813         cross-compiling to x86_64.
54814
54815 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54816
54817         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54818         glitch reported by Ralf Wildenhues in
54819         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54820
54821         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54822         Vin Shelton.
54823
54824 2007-06-11  Bruno Haible  <bruno@clisp.org>
54825
54826         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54827         replacement string.
54828         Reported by Eric Blake.
54829
54830 2007-06-10  Bruno Haible  <bruno@clisp.org>
54831
54832         Prepare vasnprintf code for use with Unicode strings.
54833         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54834         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54835         TYPE_U32_STRING.
54836         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54837         a_u32_string variants.
54838         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54839         * lib/printf-args.c: Don't include config.h and the specification
54840         header if PRINTF_FETCHARGS is already defined.
54841         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54842         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54843         TYPE_U16_STRING, TYPE_U32_STRING.
54844         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54845         u16_directive, u16_directives, u32_directive, u32_directives): New
54846         types.
54847         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54848         New declarations.
54849         * lib/printf-parse.c: Don't include config.h and the specification
54850         header if PRINTF_PARSE is already defined. Eliminate the set of
54851         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54852         them now. Include c-ctype.h.
54853         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54854         directive and CHAR_T_ONLY_ASCII.
54855         * lib/vasnprintf.c: Don't include config.h and the specification header
54856         if VASNPRINTF is already defined.
54857         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54858         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54859         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54860         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54861         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54862         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54863         code accordingly.
54864         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54865         pad_ourselves also in this case, with the 'c' and 's' directives, and
54866         with a different notion of "width".
54867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54868
54869 2007-06-10  Bruno Haible  <bruno@clisp.org>
54870
54871         * modules/unistr/u32-mbsnlen: New file.
54872         * lib/unistr/u32-mbsnlen.c: New file.
54873
54874         * modules/unistr/u16-mbsnlen: New file.
54875         * lib/unistr/u16-mbsnlen.c: New file.
54876
54877         * modules/unistr/u8-mbsnlen: New file.
54878         * lib/unistr/u8-mbsnlen.c: New file.
54879
54880         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54881         declarations.
54882
54883 2007-06-10  Bruno Haible  <bruno@clisp.org>
54884
54885         * lib/string_.h (mbsnlen): New declaration.
54886         * lib/mbsnlen.c: New file.
54887         * m4/mbsnlen.m4: New file.
54888         * modules/mbsnlen: New file.
54889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54890         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54891         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54892
54893 2007-06-10  Bruno Haible  <bruno@clisp.org>
54894
54895         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54896
54897 2007-06-10  Bruno Haible  <bruno@clisp.org>
54898
54899         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54900         * lib/mbuiter.h: Likewise.
54901
54902 2007-06-10  Bruno Haible  <bruno@clisp.org>
54903
54904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54905         declaration.
54906
54907 2007-06-10  Karl Berry  <karl@gnu.org>
54908
54909         * config/srclist.txt: remove gettext entries, Bruno prefers
54910         to update individually.
54911
54912 2007-06-10  Bruno Haible  <bruno@clisp.org>
54913
54914         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54915         'maxlen'. Ensure only length + width bytes are allocated, not
54916         length + 1 + width.
54917
54918 2007-06-09  Bruno Haible  <bruno@clisp.org>
54919
54920         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54921         (CHAR_T): Remove macro.
54922         (VASNPRINTF): Update.
54923
54924 2007-06-09  Bruno Haible  <bruno@clisp.org>
54925
54926         * MODULES.html.sh (Unicode string functions): Add the new modules.
54927
54928         * modules/uniconv/u32-conv-to-enc: New file.
54929         * lib/uniconv/u32-conv-to-enc.c: New file.
54930         * modules/uniconv/u32-conv-to-enc-tests: New file.
54931         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54932
54933         * modules/uniconv/u16-conv-to-enc: New file.
54934         * lib/uniconv/u16-conv-to-enc.c: New file.
54935         * lib/uniconv/u-conv-to-enc.h: New file.
54936         * modules/uniconv/u16-conv-to-enc-tests: New file.
54937         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54938
54939         * modules/uniconv/u8-conv-to-enc: New file.
54940         * lib/uniconv/u8-conv-to-enc.c: New file.
54941         * modules/uniconv/u8-conv-to-enc-tests: New file.
54942         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54943
54944         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54945         u32_conv_to_encoding): New declarations.
54946
54947 2007-06-09  Bruno Haible  <bruno@clisp.org>
54948
54949         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54950
54951 2007-06-09  Bruno Haible  <bruno@clisp.org>
54952
54953         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54954         * modules/malloca: Renamed from modules/allocsa, updated.
54955         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54956         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54957         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54958         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54959         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54960         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54961         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54962         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54963         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54964         * modules/c-strcasestr (Depends-on): Update.
54965         * lib/c-strcasestr.c: Update.
54966         * modules/c-strstr (Depends-on): Update.
54967         * lib/c-strstr.c: Update.
54968         * modules/canonicalize-lgpl (Depends-on): Update.
54969         * lib/canonicalize-lgpl.c: Update.
54970         * modules/clean-temp (Depends-on): Update.
54971         * lib/clean-temp.c: Update.
54972         * modules/csharpcomp (Depends-on): Update.
54973         * lib/csharpcomp.c: Update.
54974         * modules/csharpexec (Depends-on): Update.
54975         * lib/csharpexec.c: Update.
54976         * modules/javacomp (Depends-on): Update.
54977         * lib/javacomp.c: Update.
54978         * modules/javaexec (Depends-on): Update.
54979         * lib/javaexec.c: Update.
54980         * modules/mbscasestr (Depends-on): Update.
54981         * lib/mbscasestr.c: Update.
54982         * modules/mbsstr (Depends-on): Update.
54983         * lib/mbsstr.c: Update.
54984         * modules/setenv (Depends-on): Update.
54985         * lib/setenv.c: Update.
54986         * modules/strcasestr (Depends-on): Update.
54987         * lib/strcasestr.c: Update.
54988         * modules/striconveha (Depends-on): Update.
54989         * lib/striconveha.c: Update.
54990         * modules/relocatable-prog-wrapper (Files): Update.
54991         * lib/relocwrapper.c: Update.
54992         * build-aux/install-reloc: Update.
54993         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54994
54995 2007-06-08  Bruno Haible  <bruno@clisp.org>
54996
54997         Port to uClibc.
54998         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54999         * lib/fpurge.c (fpurge): Likewise.
55000         * lib/freading.c (freading): Likewise.
55001         * lib/fseeko.c (rpl_fseeko): Likewise.
55002         * lib/fseterr.c (fseterr): Likewise.
55003         * lib/fwriting.c (fwriting): Likewise.
55004         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55005
55006 2007-06-08  Bruno Haible  <bruno@clisp.org>
55007
55008         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55009         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55010         * modules/gettext (Files): Add m4/intlmacosx.m4.
55011
55012 2007-06-07  Bruno Haible  <bruno@clisp.org>
55013
55014         * modules/localename-tests: New file.
55015         * tests/test-localename.c: New file.
55016
55017         New module 'localename'.
55018         * lib/localename.h: New file.
55019         * lib/localename.c: New file, from GNU gettext.
55020         * m4/localename.m4: New file.
55021         * modules/localename: New file.
55022
55023 2007-06-07  Bruno Haible  <bruno@clisp.org>
55024
55025         Work around the lack of <wchar.h> on some builds of uClibc.
55026         * doc/headers/wchar.texi: Update.
55027         * lib/wchar_.h: Include <wchar.h> only if it exists.
55028         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55029         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55030         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55031         doesn't exist.
55032         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55033         * modules/mbfile (Depends-on): Add wchar.
55034         * modules/mbiter (Depends-on): Likewise.
55035         * modules/mbuiter (Depends-on): Likewise.
55036         Reported by Simon Josefsson.
55037
55038 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55039
55040         Work around problem reported by Steven M. Schweda in
55041         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55042         Tru64 5.1B with the Compaq compiler environment installed declares
55043         an 'isblank' function but does not define it in the C library.
55044         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55045         * lib/regex_internal.h (isblank): Likewise.
55046         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55047         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55048
55049 2007-06-05  Bruno Haible  <bruno@clisp.org>
55050
55051         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55052         ia64.
55053         * modules/printf-safe: New file.
55054         * modules/fprintf-posix (Depends-on): Add printf-safe.
55055         * modules/printf-posix (Depends-on): Likewise.
55056         * modules/snprintf-posix (Depends-on): Likewise.
55057         * modules/sprintf-posix (Depends-on): Likewise.
55058         * modules/vasnprintf-posix (Depends-on): Likewise.
55059         * modules/vasprintf-posix (Depends-on): Likewise.
55060         * modules/vfprintf-posix (Depends-on): Likewise.
55061         * modules/vprintf-posix (Depends-on): Likewise.
55062         * modules/vsnprintf-posix (Depends-on): Likewise.
55063         * modules/vsprintf-posix (Depends-on): Likewise.
55064         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55065         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55066         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55067         "no" on i386, x86_64, ia64.
55068         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55069         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55070         on i386, x86_64, ia64.
55071         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55072         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55073         on i386, x86_64, ia64.
55074         * tests/test-vasnprintf-posix.c: Include float.h.
55075         (LDBL80_WORDS): New macro.
55076         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55077         on i386, x86_64, ia64.
55078         * tests/test-vasprintf-posix.c: Include float.h.
55079         (LDBL80_WORDS): New macro.
55080         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55081         on i386, x86_64, ia64.
55082         * tests/test-snprintf-posix.c: Include float.h.
55083         * tests/test-sprintf-posix.c: Likewise.
55084         * tests/test-vsnprintf-posix.c: Likewise.
55085         * tests/test-vsprintf-posix.c: Likewise.
55086
55087 2007-06-05  Bruno Haible  <bruno@clisp.org>
55088
55089         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55090         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55091         non-IEEE numbers on i386, x86_64, ia64.
55092         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55093         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55094         * tests/test-isnanl.h: Include float.h.
55095         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55096
55097 2007-06-05  Bruno Haible  <bruno@clisp.org>
55098
55099         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55100         also the %a / %A. Handle the %a / %A code before this extra handling.
55101
55102 2007-06-05  Bruno Haible  <bruno@clisp.org>
55103
55104         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55105         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55106
55107 2007-06-05  Bruno Haible  <bruno@clisp.org>
55108
55109         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55110         typo in variable name.
55111
55112 2007-06-05  Eric Blake  <ebb9@byu.net>
55113
55114         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55115         Reported by Simon Josefsson.
55116
55117 2007-06-04  Bruno Haible  <bruno@clisp.org>
55118
55119         Avoid test failures on some PowerPC platforms.
55120         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55121         Define differently for PowerPC.
55122         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55123         Reported by Gary V. Vaughan <gary@gnu.org>.
55124
55125 2007-06-02  Bruno Haible  <bruno@clisp.org>
55126
55127         Fix test-stdint failure on FreeBSD/ia64.
55128         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55129         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55130         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55131         * doc/headers/stdint.texi: Update.
55132
55133 2007-06-01  Bruno Haible  <bruno@clisp.org>
55134
55135         * tests/test-binary-io.c (main): Pass a third argument to open().
55136         Reported by Gary V. Vaughan <gary@gnu.org>.
55137
55138 2007-06-01  Bruno Haible  <bruno@clisp.org>
55139
55140         * doc/functions/frexpl.texi: Update for mingw.
55141
55142 2007-06-01  Bruno Haible  <bruno@clisp.org>
55143
55144         * tests/test-lseek.c (main): Disable test of errno for invalid third
55145         argument.
55146         * doc/functions/lseek.texi: Update.
55147         Reported by Gary V. Vaughan <gary@gnu.org>.
55148
55149 2007-05-28  Bruno Haible  <bruno@clisp.org>
55150
55151         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55152
55153 2007-05-31  Eric Blake  <ebb9@byu.net>
55154
55155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55156         cross compiling.
55157
55158 2007-05-30  Eric Blake  <ebb9@byu.net>
55159         and Bruno Haible  <bruno@clisp.org>
55160
55161         Work around mingw test failures exposed by m4-1.4.9b.
55162         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55163         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55164         moment.
55165
55166 2007-05-30  Bruno Haible  <bruno@clisp.org>
55167
55168         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55169         assuming that they are closed. Needed on HP-UX 11.
55170
55171 2007-05-29  Bruno Haible  <bruno@clisp.org>
55172
55173         Fix a problem with #include_next.
55174         * lib/dirent_.h: Split the double-inclusion guard.
55175         * lib/fcntl_.h: Likewise.
55176         * lib/float_.h: Likewise.
55177         * lib/iconv_.h: Likewise.
55178         * lib/inttypes_.h: Likewise.
55179         * lib/locale_.h: Likewise.
55180         * lib/math_.h: Likewise.
55181         * lib/netinet_in_.h: Likewise.
55182         * lib/search_.h: Likewise.
55183         * lib/signal_.h: Likewise.
55184         * lib/stdint_.h: Likewise.
55185         * lib/stdio_.h: Likewise.
55186         * lib/stdlib_.h: Likewise.
55187         * lib/string_.h: Likewise.
55188         * lib/sys_select_.h: Likewise.
55189         * lib/sys_socket_.h: Likewise.
55190         * lib/sys_stat_.h: Likewise.
55191         * lib/sys_time_.h: Likewise.
55192         * lib/sysexits_.h: Likewise.
55193         * lib/time_.h: Likewise.
55194         * lib/unistd_.h: Likewise.
55195         * lib/wchar_.h: Likewise.
55196         * lib/wctype_.h: Likewise.
55197
55198 2007-05-29  Bruno Haible  <bruno@clisp.org>
55199
55200         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55201         for the moment.
55202
55203 2007-05-29  Bruno Haible  <bruno@clisp.org>
55204
55205         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55206         invocation.
55207         Reported by Eric Blake.
55208
55209 2007-05-29  Bruno Haible  <bruno@clisp.org>
55210
55211         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55212         compiling case.
55213
55214 2007-05-29  Eric Blake  <ebb9@byu.net>
55215             Bruno Haible  <bruno@clisp.org>
55216
55217         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55218         cross compiles.
55219
55220 2007-05-28  Eric Blake  <ebb9@byu.net>
55221
55222         * modules/closein-tests (test_closein_LDADD): Support test on
55223         cygwin with libtool.
55224
55225 2007-05-28  Bruno Haible  <bruno@clisp.org>
55226
55227         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55228         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55229         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55230         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55231         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55232         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55233         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55234         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55235         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55236
55237 2007-05-28  Eric Blake  <ebb9@byu.net>
55238
55239         Unconditionally include <config.h> in unit tests.
55240         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55241         * tests/test-allocsa.c, tests/test-arcfour.c,
55242         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55243         tests/test-array_list.c, tests/test-array_oset.c,
55244         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55245         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55246         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55247         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55248         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55249         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55250         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55251         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55252         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55253         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55254         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55255         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55256         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55257         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55258         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55259         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55260         test-md5.c, test-memmem.c, test-printf-posix.c,
55261         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55262         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55263         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55264         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55265         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55266         test-vasnprintf-posix2.c, test-vasnprintf.c,
55267         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55268         test-vfprintf-posix.c, test-vprintf-posix.c,
55269         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55270         test-xvasprintf.c: Likewise.
55271
55272 2007-05-28  Bruno Haible  <bruno@clisp.org>
55273
55274         * gnulib-tool (func_import): Remember the --with-tests command-line
55275         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55276         Reported by Eric Blake.
55277
55278 2007-05-28  Bruno Haible  <bruno@clisp.org>
55279
55280         * modules/ftell-tests: New file.
55281         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55282         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55283
55284         * lib/ftell.c: New file.
55285         * modules/ftell: New file.
55286         * m4/ftell.m4: New file.
55287         * doc/functions/ftell.texi: Update.
55288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55289         REPLACE_FTELL.
55290         * lib/stdio_.h (rpl_ftell): New declaration.
55291         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55292         REPLACE_FTELL.
55293
55294 2007-05-28  Eric Blake  <ebb9@byu.net>
55295
55296         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55297
55298 2007-05-28  Bruno Haible  <bruno@clisp.org>
55299
55300         * modules/fseek-tests: New file.
55301         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55302         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55303
55304         * lib/fseek.c: New file.
55305         * modules/fseek: New file.
55306         * m4/fseek.m4: New file.
55307         * doc/functions/fseek.texi: Update.
55308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55309         REPLACE_FSEEK.
55310         * lib/stdio_.h (rpl_fseek): New declaration.
55311         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55312         REPLACE_FSEEK.
55313
55314 2007-05-28  Bruno Haible  <bruno@clisp.org>
55315
55316         * lib/stdio_.h (fflush): More comments.
55317
55318 2007-05-28  Bruno Haible  <bruno@clisp.org>
55319
55320         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55321         runtime test.
55322
55323 2007-05-28  Eric Blake  <ebb9@byu.net>
55324
55325         Improve lseek module.
55326         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55327         * lib/unistd_.h (lseek): Scale back link warning message.
55328         * tests/test-lseek.c: Beef up test.
55329         * tests/test-lseek.sh: Exercise more facets of lseek.
55330         Reported by Bruno Haible.
55331
55332 2007-05-28  Bruno Haible  <bruno@clisp.org>
55333
55334         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55335         to define.
55336
55337 2007-05-27  Bruno Haible  <bruno@clisp.org>
55338
55339         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55340
55341 2007-05-27  Bruno Haible  <bruno@clisp.org>
55342
55343         * modules/openmp: New file.
55344         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55345         Noah Misch.
55346
55347 2007-05-26  Bruno Haible  <bruno@clisp.org>
55348
55349         * modules/chdir-long (Depends-on): Add fchdir.
55350         * modules/chdir-safer (Depends-on): Likewise.
55351         * modules/fts (Depends-on): Likewise.
55352         * modules/fts-lgpl (Depends-on): Likewise.
55353         * modules/openat (Depends-on): Likewise.
55354         * modules/savewd (Depends-on): Likewise.
55355
55356 2007-05-24  Eric Blake  <ebb9@byu.net>
55357
55358         Fix lseek on mingw.
55359         * modules/lseek: New module.
55360         * m4/lseek.m4: New file.
55361         * lib/lseek.c: New file.
55362         * modules/lseek-tests: New file.
55363         * tests/test-lseek.c: New file.
55364         * tests/test-lseek.sh: New file.
55365         * MODULES.html.sh: Document lseek module.
55366         * modules/fflush (Depends-on): Add lseek, fseeko.
55367         * modules/fseeko (Depends-on): Likewise.
55368         * modules/ftello (Depends-on): Likewise.
55369         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55370         broken.
55371         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55372         broken.
55373         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55374         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55375         * lib/ftello.c (rpl_ftello): Likewise.
55376         * tests/test-fseeko.c (main): Test this.
55377         * tests/test-fseeko.sh: Likewise.
55378         * tests/test-ftello.c (main): Likewise.
55379         * tests/test-ftello.sh: Likewise.
55380         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55381         implies replacing fseek.
55382         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55383         HAVE_FTELLO.
55384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55385         * modules/unistd (Makefile.am): Likewise.
55386         * lib/unistd_.h (lseek): Declare a replacement.
55387         * doc/functions/lseek.texi (lseek): Document this fix.
55388         * doc/functions/fseek.texi (fseek): Likewise.
55389         * doc/functions/ftell.texi (ftell): Likewise.
55390
55391 2007-05-24  Bruno Haible  <bruno@clisp.org>
55392
55393         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55394         in the printed representation of a NaN.
55395         * tests/test-vasprintf-posix.c (test_function): Likewise.
55396         * tests/test-snprintf-posix.h (test_function): Likewise.
55397         * tests/test-sprintf-posix.h (test_function): Likewise.
55398         Reported by Eric Blake.
55399
55400 2007-05-23  Eric Blake  <ebb9@byu.net>
55401
55402         Fix fseeko/ftello on cygwin 1.5.24.
55403         * doc/functions/fseeko.texi (fseeko): Document the fix.
55404         * doc/functions/ftello.texi (ftello): Document the fix.
55405         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55406         * doc/functions/stdout.text (stdout): New file.
55407         * doc/functions/stderr.text (stderr): New file.
55408         * doc/gnulib.texi (Function Substitutes): Use new files.
55409         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55410         prior to 1.7.0.
55411         * tests/test-ftello.c (main): Likewise for ftello.
55412         * tests/test-fseeko.sh: New file.
55413         * tests/test-ftello.sh: New file.
55414         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55415         with seekable stdin.
55416         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55417         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55418         (gl_REPLACE_FSEEKO): New macro.
55419         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55420         * modules/fseeko (Files): Distribute fseeko.c.
55421         * modules/ftello (Files): Distribute ftello.c.
55422         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55423         mode.
55424         * lib/ftello.c (rpl_ftello): New file.
55425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55426         fseeko, ftello.
55427         (gl_STDIN_LARGE_OFFSET): New macro.
55428         * modules/stdio (Makefile.am): Perform the replacement.
55429         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55430
55431 2007-05-23  Bruno Haible  <bruno@clisp.org>
55432
55433         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55434         GNULIB_POSIXCHECK is defined.
55435
55436 2007-05-21  Bruno Haible  <bruno@clisp.org>
55437
55438         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55439         Check also the output for NaN arguments. When cross-compiling, guess
55440         no on IRIX.
55441         * lib/vasnprintf.c: Update comments.
55442         * tests/test-vasnprintf-posix.c (strisnan): New function.
55443         (test_function): Use it.
55444         * tests/test-vasprintf-posix.c (strisnan): New function.
55445         (test_function): Use it.
55446         * tests/test-snprintf-posix.h (strisnan): New function.
55447         (test_function): Use it.
55448         * tests/test-sprintf-posix.h (strisnan): New function.
55449         (test_function): Use it.
55450         Reported by Eric Blake.
55451
55452 2007-05-20  Bruno Haible  <bruno@clisp.org>
55453
55454         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55455         numbers that fails on BeOS.
55456         * doc/functions/frexpl.texi: Update.
55457
55458 2007-05-20  Jim Meyering  <jim@meyering.net>
55459
55460         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55461         forced upon us by glibc-2.6.
55462
55463 2007-05-20  Bruno Haible  <bruno@clisp.org>
55464
55465         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55466         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55467         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55468         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55469         NEED_PRINTF_INFINITE.
55470         (is_infinitel): New function.
55471         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55472         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55473         gl_PREREQ_VASNPRINTF_INFINITE.
55474         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55475         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55476         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55477         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55478         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55479         gl_PREREQ_VASNPRINTF_INFINITE.
55480         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55481         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55482         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55483         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55484         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55485         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55486         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55487         * doc/functions/fprintf.texi: Update.
55488         * doc/functions/printf.texi: Update.
55489         * doc/functions/snprintf.texi: Update.
55490         * doc/functions/sprintf.texi: Update.
55491         * doc/functions/vfprintf.texi: Update.
55492         * doc/functions/vprintf.texi: Update.
55493         * doc/functions/vsnprintf.texi: Update.
55494         * doc/functions/vsprintf.texi: Update.
55495
55496 2007-05-20  Bruno Haible  <bruno@clisp.org>
55497
55498         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55499         was not found in libc.
55500         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55501
55502 2007-05-20  Bruno Haible  <bruno@clisp.org>
55503
55504         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55505         printed as "-nan" instead of "nan".
55506         * tests/test-vasprintf-posix.c (test_function): Likewise.
55507         * tests/test-snprintf-posix.h (test_function): Likewise.
55508         * tests/test-sprintf-posix.h (test_function): Likewise.
55509         Needed for HP-UX 11.
55510
55511 2007-05-20  Jim Meyering  <jim@meyering.net>
55512
55513         Fix buggy test for the fchownat-deref bug.
55514         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55515         symlink required for the run-test.  Without it, this test would
55516         always declare that fchownat doesn't work, and client code would
55517         unnecessarily use the replacement function with fixed libc.
55518         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55519         Reported by Greg Schafer.
55520
55521 2007-05-19  Bruno Haible  <bruno@clisp.org>
55522
55523         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55524         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55525         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55526         Needed for IRIX 6.5 and Solaris 2.5.1.
55527
55528 2007-05-19  Bruno Haible  <bruno@clisp.org>
55529
55530         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55531         (test_function): Skip tests involving -0.0 on platforms where
55532         -0.0 = 0.0.
55533         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55534         (test_function): Skip tests involving -0.0 on platforms where
55535         -0.0 = 0.0.
55536         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55537         (test_function): Skip tests involving -0.0 on platforms where
55538         -0.0 = 0.0.
55539         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55540         (test_function): Skip tests involving -0.0 on platforms where
55541         -0.0 = 0.0.
55542         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55543         tests.
55544         * tests/test-printf-posix.h (test_function): Likewise.
55545         * tests/test-printf-posix.output: Remove all -0.0 related results.
55546         Needed for IRIX 6.5.
55547
55548 2007-05-19  Bruno Haible  <bruno@clisp.org>
55549
55550         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55551         printed as "nan0x7fffffff" instead of "nan".
55552         * tests/test-vasprintf-posix.c (test_function): Likewise.
55553         * tests/test-snprintf-posix.h (test_function): Likewise.
55554         * tests/test-sprintf-posix.h (test_function): Likewise.
55555         * tests/test-fprintf-posix.h (NaN): Remove macro.
55556         (test_function): Remove all NaN related tests.
55557         * tests/test-printf-posix.h (NaN): Remove macro.
55558         (test_function): Remove all NaN related tests.
55559         * tests/test-printf-posix.output: Remove all NaN related results.
55560         Needed for IRIX 6.5.
55561
55562 2007-05-19  Bruno Haible  <bruno@clisp.org>
55563
55564         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55565         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55566
55567 2007-05-19  Bruno Haible  <bruno@clisp.org>
55568
55569         * lib/float_.h: New file.
55570         * m4/float_h.m4: New file.
55571         * modules/float: New file.
55572         * modules/isnanl (Dependencies): Add float.
55573         * modules/isnanl-nolibm (Dependencies): Likewise.
55574         * modules/mathl (Dependencies): Likewise.
55575         * modules/printf-frexpl (Dependencies): Likewise.
55576         * modules/signbit (Dependencies): Likewise.
55577         * modules/vasnprintf (Dependencies): Likewise.
55578         * doc/headers/float.texi: Update.
55579
55580 2007-05-19  Jim Meyering  <jim@meyering.net>
55581
55582         * lib/utimens.c (gl_futimens): Rename from futimens,
55583         now that glibc-2.6 declares futimens.
55584         * lib/utimens.h: Likewise.
55585
55586 2007-05-19  Bruno Haible  <bruno@clisp.org>
55587
55588         Avoid test failures on mingw.
55589         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55590         * tests/test-printf-posix.sh: Likewise.
55591         * tests/test-vfprintf-posix.sh: Likewise.
55592         * tests/test-vprintf-posix.sh: Likewise.
55593
55594 2007-05-19  Bruno Haible  <bruno@clisp.org>
55595
55596         Fix *printf result for NaN, Inf, -0.0 on mingw.
55597         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55598         * lib/vasnprintf.c: Include math.h and isnan.h.
55599         (is_infinite_or_zero): New function.
55600         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55601         values in the %f, %F, %e, %E, %g, %G directives.
55602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55603         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55604         gl_PRINTF_INFINITE and test its result. Invoke
55605         gl_PREREQ_VASNPRINTF_INFINITE.
55606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55607         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55608         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55610         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55613         * doc/functions/fprintf.texi: Update.
55614         * doc/functions/printf.texi: Update.
55615         * doc/functions/snprintf.texi: Update.
55616         * doc/functions/sprintf.texi: Update.
55617         * doc/functions/vfprintf.texi: Update.
55618         * doc/functions/vprintf.texi: Update.
55619         * doc/functions/vsnprintf.texi: Update.
55620         * doc/functions/vsprintf.texi: Update.
55621
55622 2007-05-19  Bruno Haible  <bruno@clisp.org>
55623
55624         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55625         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55626         Instead of multiplying with 10^k, set extra_zeroes to k.
55627         (scale10_round_long_double): Remove function.
55628
55629 2007-05-18  Bruno Haible  <bruno@clisp.org>
55630
55631         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55632         introduced on 2007-05-06.
55633
55634 2007-05-18  Bruno Haible  <bruno@clisp.org>
55635
55636         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55637         %g directives.
55638         * tests/test-vasprintf-posix.c (test_function): Likewise.
55639         * tests/test-snprintf-posix.h (test_function): Likewise.
55640         * tests/test-sprintf-posix.h (test_function): Likewise.
55641
55642 2007-05-18  Bruno Haible  <bruno@clisp.org>
55643
55644         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55645         (strmatch): New function.
55646         (test_function): Test the %f directive on numbers of various exponents.
55647         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55648         (strmatch): New function.
55649         (test_function): Test the %f directive on numbers of various exponents.
55650         * tests/test-snprintf-posix.h (strmatch): New function.
55651         (test_function): Test the %f directive on numbers of various exponents.
55652         * tests/test-sprintf-posix.h (strmatch): New function.
55653         (test_function): Test the %f directive on numbers of various exponents.
55654         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55655         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55656         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55657         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55658
55659 2007-05-18  Bruno Haible  <bruno@clisp.org>
55660
55661         Add support for 'long double' number output.
55662         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55663         * lib/vasnprintf.c: Include math.h and float+.h.
55664         (mp_limb_t): New type.
55665         (GMP_LIMB_BITS): New macro.
55666         (mp_twolimb_t): New type.
55667         (GMP_TWOLIMB_BITS): New macro.
55668         (mpn_t): New type.
55669         (multiply, divide, convert_to_decimal, decode_long_double,
55670         scale10_round_long_double, scale10_round_decimal_long_double,
55671         floorlog10l): New functions.
55672         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55673         for the %f, %F, %e, %E, %g, %G directives.
55674         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55675         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55676         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55677         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55678         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55679         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55680         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55681         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55682         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55683         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55684         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55685         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55686         * modules/snprintf-posix (Depends-on): Likewise.
55687         * modules/sprintf-posix (Depends-on): Likewise.
55688         * modules/vasnprintf-posix (Depends-on): Likewise.
55689         * modules/vasprintf-posix (Depends-on): Likewise.
55690         * modules/vfprintf-posix (Depends-on): Likewise.
55691         * modules/vsnprintf-posix (Depends-on): Likewise.
55692         * modules/vsprintf-posix (Depends-on): Likewise.
55693         * modules/vasnprintf (Files): Add lib/float+.h.
55694         * doc/functions/fprintf.texi: Update.
55695         * doc/functions/printf.texi: Update.
55696         * doc/functions/snprintf.texi: Update.
55697         * doc/functions/sprintf.texi: Update.
55698         * doc/functions/vfprintf.texi: Update.
55699         * doc/functions/vprintf.texi: Update.
55700         * doc/functions/vsnprintf.texi: Update.
55701         * doc/functions/vsprintf.texi: Update.
55702
55703 2007-05-18  Bruno Haible  <bruno@clisp.org>
55704
55705         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55706
55707 2007-05-18  Bruno Haible  <bruno@clisp.org>
55708
55709         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55710         for printing 64-bit integers. Needed for mingw.
55711
55712 2007-05-18  Bruno Haible  <bruno@clisp.org>
55713
55714         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55715         gl_FUNC_FREXPL_WORKS.
55716         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55717
55718 2007-05-18  Bruno Haible  <bruno@clisp.org>
55719
55720         * modules/frexpl-nolibm-tests: New file.
55721
55722         * modules/frexpl-nolibm: New file.
55723         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55724
55725 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55726
55727         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55728         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55729         GCC 4.2, which otherwise issues a lot of warnings.
55730         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55731         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55732         Likewise.
55733         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55734         * modules/iconv_open (iconv.h): Likewise.
55735         * modules/locale (locale.h): Likewise.
55736         * modules/netinet_in (netinet/in.h): Likewise.
55737         * modules/sys_select (sys_select.h): Likewise.
55738         * modules/sys_socket (sys/socket.h): Likewise.
55739         * modules/sys_stat (sys/stat.h): Likewise.
55740         * modules/sysexits (sysexits.h): Likewise.
55741         * modules/unistd (unistd.h): Likewise.
55742
55743 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55744
55745         * modules/closein-tests (Makefile.am): Distribute
55746         `test-closein.sh'.
55747
55748 2007-05-17  Bruno Haible  <bruno@clisp.org>
55749
55750         * tests/test-printf-posix.output: Renamed from
55751         tests/test-fprintf-posix.out.
55752         * modules/fprintf-posix-tests: Update.
55753         * modules/printf-posix-tests: Update.
55754         * modules/vfprintf-posix-tests: Update.
55755         * modules/vprintf-posix-tests: Update.
55756         * tests/test-fprintf-posix.sh: Update.
55757         * tests/test-printf-posix.sh: Update.
55758         * tests/test-vfprintf-posix.sh: Update.
55759         * tests/test-vprintf-posix.sh: Update.
55760         Reported by Ralf Wildenhues.
55761
55762 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55763
55764         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55765         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55766         GCC 4.2, which otherwise issues a lot of warnings.
55767         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55768         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55769         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55770         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55771         it should no longer be needed.
55772         * lib/string_.h: Likewise.
55773         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55774         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55775         * modules/inttypes (inttypes.h): Likewise.
55776         * modules/math (math.h): Likewise.
55777         * modules/search (search.h): Likewise.
55778         * modules/signal (signal.h): Likewise.
55779         * modules/stdint (stdint.h): Likewise.
55780         * modules/stdio (stdio.h): Likewise.
55781         * modules/stdlib (stdlib.h): Likewise.
55782         * modules/string (string.h): Likewise.
55783         * modules/sys_time (sys/time.h): Likewise.
55784         * modules/time (time.h): Likewise.
55785         * modules/wchar (wchar.h): Likewise.
55786         * modules/wctype (wtype.h): Likewise.
55787
55788 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55789
55790         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55791
55792 2007-05-13  Bruno Haible  <bruno@clisp.org>
55793
55794         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55795         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55796         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55797         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55798         (gl_PREREQ_STRTOK_R): Don't require it here.
55799
55800 2007-05-13  Bruno Haible  <bruno@clisp.org>
55801
55802         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55803         when used in C++ mode.
55804
55805 2007-05-12  Bruno Haible  <bruno@clisp.org>
55806
55807         * lib/linebuffer.h: Tweak doc.
55808         * lib/linebuffer.c: Likewise.
55809
55810 2007-05-12  James Youngman  <jay@gnu.org>
55811
55812         * lib/linebuffer.c (readlinebuffer_delim): New function,
55813         like readlinebuffer, but use a caller-specified delimiter.
55814         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55815         as the delimiter.
55816         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55817
55818 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55819
55820         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55821         * modules/openat (Files): Remove openat-die.c.
55822         (Depends-on): Add openat-die.
55823         * modules/openat-die: New module.
55824
55825 2007-05-06  Bruno Haible  <bruno@clisp.org>
55826
55827         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55828         Update with info about Cygwin.
55829         * doc/functions/fprintf.texi: Update.
55830         * doc/functions/printf.texi: Update.
55831         * doc/functions/snprintf.texi: Update.
55832         * doc/functions/sprintf.texi: Update.
55833         * doc/functions/vfprintf.texi: Update.
55834         * doc/functions/vprintf.texi: Update.
55835         * doc/functions/vsnprintf.texi: Update.
55836         * doc/functions/vsprintf.texi: Update.
55837         Reported by Eric Blake.
55838
55839 2007-05-06  Bruno Haible  <bruno@clisp.org>
55840
55841         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55842         padding ourselves for the floating-point directives.
55843         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55846         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55847         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55848         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55849         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55851         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55852         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55854         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55855         * tests/test-snprintf-posix.h (test_function): Also check the width
55856         and some flags in the %f directive.
55857         * tests/test-sprintf-posix.h (test_function): Likewise.
55858         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55859         * tests/test-vasprintf-posix.c (test_function): Likewise.
55860         * doc/functions/fprintf.texi: Update.
55861         * doc/functions/printf.texi: Update.
55862         * doc/functions/snprintf.texi: Update.
55863         * doc/functions/sprintf.texi: Update.
55864         * doc/functions/vfprintf.texi: Update.
55865         * doc/functions/vprintf.texi: Update.
55866         * doc/functions/vsnprintf.texi: Update.
55867         * doc/functions/vsprintf.texi: Update.
55868
55869 2007-05-06  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55872         pass the ' flag character to sprintf or snprintf.
55873         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55875         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55876         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55877         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55878         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55879         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55880         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55881         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55882         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55883         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55884         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55885         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55886         flag.
55887         * tests/test-sprintf-posix.h (test_function): Likewise.
55888         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55889         * tests/test-vasprintf-posix.c (test_function): Likewise.
55890         * doc/functions/fprintf.texi: Update.
55891         * doc/functions/printf.texi: Update.
55892         * doc/functions/snprintf.texi: Update.
55893         * doc/functions/sprintf.texi: Update.
55894         * doc/functions/vfprintf.texi: Update.
55895         * doc/functions/vprintf.texi: Update.
55896         * doc/functions/vsnprintf.texi: Update.
55897         * doc/functions/vsprintf.texi: Update.
55898
55899 2007-05-01  Bruno Haible  <bruno@clisp.org>
55900
55901         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55902
55903 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55904
55905         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55906         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55907
55908 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55909
55910         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55911         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55913
55914 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55915
55916         * lib/argp-help.c (struct hol_entry): New member `ord'.
55917         (HOL_ENTRY_PTRCMP): Use ord for comparison
55918         (hol_sort): Initialize ord.
55919
55920 2007-05-01  Bruno Haible  <bruno@clisp.org>
55921
55922         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55923         Reported by Eric Blake.
55924         * doc/gnulib.texi (Function Substitutes): Update.
55925
55926 2007-05-01  Bruno Haible  <bruno@clisp.org>
55927
55928         * doc/functions.texi: Remove file, now redundant through
55929         doc/functions/*.texi.
55930
55931 2007-05-01  Bruno Haible  <bruno@clisp.org>
55932
55933         * modules/argp (Depends-on): Add sleep.
55934
55935 2007-05-01  Bruno Haible  <bruno@clisp.org>
55936
55937         * modules/sleep-tests: New file.
55938         * tests/test-sleep.c: New file.
55939
55940         * modules/sleep: New file.
55941         * lib/sleep.c: New file.
55942         * m4/sleep.m4: New file.
55943         * lib/unistd_.h (sleep): New declaration.
55944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55945         HAVE_SLEEP.
55946         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55947         * doc/functions/sleep.texi: Document the sleep module.
55948
55949 2007-05-01  Bruno Haible  <bruno@clisp.org>
55950
55951         * lib/sigprocmask.h: Remove file.
55952         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55953         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55954         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55955         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55956         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55957         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55958         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55959         HAVE_SIGSET_T as a shell variable.
55960         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55961         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55962         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55963         (Depends-on): Add signal. Remove verify.
55964         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55965         (Include): Mention <signal.h> instead of sigprocmask.h.
55966         * NEWS: Mention the change.
55967         * lib/fatal-signal.c: Don't include sigprocmask.h.
55968
55969 2007-05-01  Bruno Haible  <bruno@clisp.org>
55970
55971         * modules/signal: New file.
55972         * lib/signal_.h: New file.
55973         * m4/signal_h.m4: New file.
55974
55975 2007-05-01  Bruno Haible  <bruno@clisp.org>
55976
55977         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55978         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55979         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55980         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55981
55982 2007-05-01  Bruno Haible  <bruno@clisp.org>
55983
55984         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55985         configure time.
55986         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55987         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55988         * modules/sys_stat (Makefile.am): Substitute their values into
55989         sys/stat.h.
55990
55991 2007-05-01  Bruno Haible  <bruno@clisp.org>
55992
55993         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55994         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55995         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55996
55997 2007-05-01  Bruno Haible  <bruno@clisp.org>
55998
55999         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56000         'assert' module here.
56001
56002 2007-05-01  Bruno Haible  <bruno@clisp.org>
56003
56004         * doc/functions/*.texi: New files.
56005         * doc/functions/google-ranking.txt: New file.
56006         * doc/gnulib.texi (Function Substitutes): New chapter.
56007         (ctime, inet_ntoa): Remove sections.
56008         * doc/ctime.texi: Remove file.
56009         * doc/inet_ntoa.texi: Remove file.
56010         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56011         dependencies.
56012         (%.info): New rule, specifying a --reference-limit.
56013
56014 2007-05-01  Bruno Haible  <bruno@clisp.org>
56015
56016         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56017
56018 2007-05-01  Bruno Haible  <bruno@clisp.org>
56019
56020         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56021         the portability of 'mkdir' to mingw systems.
56022
56023 2007-05-01  Bruno Haible  <bruno@clisp.org>
56024
56025         * doc/headers/google-ranking.txt: New file.
56026
56027 2007-04-30  Eric Blake  <ebb9@byu.net>
56028
56029         Prefer fseeko to fseek.
56030         * modules/getpass (Depends-on): Add fseeko.
56031         * lib/getpass.c (getpass): Use fseeko, not fseek.
56032
56033 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56034
56035         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56036         assumes the sorting is stable, while most qsort implementations
56037         are not.  Use argument addresses to ensure they never compare as
56038         equal.
56039
56040         * tests/test-argp-2.sh (usage-indent test): Fix output
56041         (func_compare): Restore diff options
56042         * tests/test-argp.c: Restore #include "progname.h"
56043
56044 2007-04-29  Bruno Haible  <bruno@clisp.org>
56045
56046         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56047         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56048         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56049         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56050         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56051         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56052         (TESTS, check_PROGRAMS): Add test-snprintf.
56053         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56054         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56055         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56056         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56057         assertions that fail on HP-UX, OSF/1, or IRIX.
56058         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56059
56060 2007-04-29  Bruno Haible  <bruno@clisp.org>
56061
56062         * MODULES.html.sh (posix_functions): Remove 'contents'.
56063
56064 2007-04-29  Karl Berry  <karl@gnu.org>
56065
56066         * config/srclist.txt (gendocs_template_min): new entry.
56067
56068 2007-04-29  Bruno Haible  <bruno@clisp.org>
56069
56070         Work around fpurge bug on BSD systems.
56071         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56072         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56073         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56074         fpurge to rpl_fpurge if the system already has this function.
56075         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56076         the case where the system already has this function. Correct invariants
56077         on BSD systems.
56078         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56079         BSD systems.
56080
56081 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56082
56083         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56084         proposed by Sven Verdoolaege.
56085
56086         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56087         options.
56088         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56089         (usage and help tests): Update
56090
56091 2007-04-29  Bruno Haible  <bruno@clisp.org>
56092
56093         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56094         Print more information in case of failure. Disable a test on BeOS.
56095
56096 2007-04-29  Bruno Haible  <bruno@clisp.org>
56097
56098         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56099         This helps debugging on systems on which no gdb is available.
56100
56101 2007-04-29  Bruno Haible  <bruno@clisp.org>
56102
56103         * lib/freading.h: Improve comments.
56104         * lib/fwriting.h: Likewise.
56105         * tests/test-freading.c (main): Don't check freading immediately after
56106         repositioning. Needed for glibc.
56107
56108 2007-04-29  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/freading.c (freading): Trivial simplification.
56111
56112 2007-04-28  Bruno Haible  <bruno@clisp.org>
56113
56114         * tests/test-fwriting.c (main): Also test the interaction between
56115         fflush and fwriting.
56116         * modules/fwriting-tests (Depends-on): Add fflush.
56117
56118         * tests/test-freading.c (main): Also test the interaction between
56119         fflush and freading.
56120         * modules/freading-tests (Depends-on): Add fflush.
56121
56122 2007-04-28  Bruno Haible  <bruno@clisp.org>
56123
56124         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56125         fseeko and ftello.
56126         Suggested by Eric Blake.
56127
56128 2007-04-28  Jim Meyering  <jim@meyering.net>
56129
56130         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56131         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56132         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56133
56134 2007-04-27  Eric Blake  <ebb9@byu.net>
56135
56136         * doc/headers/assert.texi (assert.h): Document assert module use.
56137
56138 2007-04-27  Bruno Haible  <bruno@clisp.org>
56139
56140         * doc/headers/*.texi: New files.
56141         * doc/gnulib.texi (Header File Substitutes): New chapter.
56142         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56143         dependencies.
56144         (standards.info ,standards.html, standards.dvi): Update dependencies.
56145         (mostlyclean, clean): New targets.
56146
56147 2007-04-27  Bruno Haible  <bruno@clisp.org>
56148
56149         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56150         * modules/sysexits (Files, Makefile.am): Update.
56151
56152         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56153         * modules/sys_socket (Files, Makefile.am): Update.
56154
56155         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56156         * modules/sys_stat (Files, Makefile.am): Update.
56157
56158 2007-04-27  Eric Blake  <ebb9@byu.net>
56159
56160         * lib/freading.h: Improve comments.
56161         * lib/fwriting.h: Likewise.
56162         * lib/fflush.c: Likewise.
56163
56164         Fix closein for mingw.
56165         * modules/closein-tests: Add tests for closein.
56166         * tests/test-closein.c: New file.
56167         * tests/test-closein.sh: Likewise.
56168         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56169         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56170
56171 2007-04-27  Bruno Haible  <bruno@clisp.org>
56172
56173         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56174         version is < 6.
56175         * lib/math_.h [__DECC]: Likewise.
56176         * lib/stdio_.h [__DECC]: Likewise.
56177         * lib/stdlib_.h [__DECC]: Likewise.
56178         * lib/string_.h [__DECC]: Likewise.
56179         * lib/time_.h [__DECC]: Likewise.
56180         * lib/wchar_.h [__DECC]: Likewise.
56181         * lib/wctype_.h [__DECC]: Likewise.
56182
56183 2007-04-27  Bruno Haible  <bruno@clisp.org>
56184
56185         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56186
56187 2007-04-27  Bruno Haible  <bruno@clisp.org>
56188
56189         * lib/fflush.c: Add comments.
56190         * modules/fpurge-tests (Depends-on): Add fflush.
56191         * modules/freadable-tests (Depends-on): Likewise.
56192         * modules/fwritable-tests (Depends-on): Likewise.
56193
56194 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56195
56196         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56197         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56198         Report by Bruno Haible <bruno@clisp.org>.
56199
56200 2007-04-26  Eric Blake  <ebb9@byu.net>
56201
56202         Fix fflush on mingw.
56203         * modules/fflush (Depends-on): Add freading.
56204         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56205         but unread data.
56206
56207 2007-04-26  Eric Blake  <ebb9@byu.net>
56208         and Bruno Haible  <bruno@clisp.org>
56209
56210         Implement freading and fwriting.
56211         * lib/freading.c: New file.
56212         * lib/freading.h: Likewise.
56213         * m4/freading.m4: Likewise.
56214         * modules/freading: Likewise.
56215         * modules/freading-tests: Likewise.
56216         * tests/test-freading.c: Likewise.
56217         * lib/fwriting.c: New file.
56218         * lib/fwriting.h: Likewise.
56219         * m4/fwriting.m4: Likewise.
56220         * modules/fwriting: Likewise.
56221         * modules/fwriting-tests: Likewise.
56222         * tests/test-fwriting.c: Likewise.
56223         * MODULES.html.sh (File stream based Input/Output): Mention them.
56224
56225 2007-04-26  Bruno Haible  <bruno@clisp.org>
56226
56227         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56228         'long' when we assume it.
56229         Suggested by Eric Blake.
56230
56231 2007-04-26  Bruno Haible  <bruno@clisp.org>
56232
56233         Ensure fseeko, ftello are declared on glibc systems.
56234         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56235         * modules/fseeko (configure.ac-early): Likewise.
56236         * modules/ftello (configure.ac-early): Likewise.
56237         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56238         AC_FUNC_FSEEKO for this.
56239         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56240         (gl_CHECK_FSEEKO): Remove macro.
56241
56242 2007-04-26  Bruno Haible  <bruno@clisp.org>
56243
56244         * tests/test-fflush.c (main): Also check the ftell result after
56245         fflush and fseek/fseeko.
56246         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56247         file descriptor position cache in the stream.
56248         * lib/fseeko.c (rpl_fseeko): Likewise.
56249
56250 2007-04-26  Bruno Haible  <bruno@clisp.org>
56251
56252         * modules/fflush-tests (Depends-on): Add fseeko.
56253
56254 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56255             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56256
56257         * lib/argz_.h: ensure error_t definition is obtained in same
56258         mechanism system argz.h would have.
56259         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56260         argz facilities are known bad.  Err on the side of caution if
56261         cross-compiling.
56262
56263 2007-04-25  Eric Blake  <ebb9@byu.net>
56264
56265         * lib/fpurge.c (includes): Use stdlib.h for free.
56266         * tests/test-fflush.c (main): Also test fflush-fseeko.
56267
56268 2007-04-25  Bruno Haible  <bruno@clisp.org>
56269
56270         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56271         * lib/fseeko.c: New file.
56272         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56273         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56274         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56275         gl_FUNC_FSEEKO.
56276         (gl_FUNC_FSEEKO): Invoke it.
56277         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56278         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56279         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56280
56281 2007-04-25  Bruno Haible  <bruno@clisp.org>
56282
56283         * modules/fflush (Depends-on): Add ftello.
56284
56285 2007-04-25  Bruno Haible  <bruno@clisp.org>
56286
56287         * modules/ftello-tests: New file.
56288         * tests/test-ftello.c: New file.
56289
56290         * modules/ftello: New file.
56291         * m4/ftello.m4: New file.
56292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56293         HAVE_FTELLO.
56294         * lib/stdio_.h (ftello): New declaration.
56295         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56296         HAVE_FTELLO.
56297
56298 2007-04-25  Bruno Haible  <bruno@clisp.org>
56299
56300         * modules/fseeko-tests: New file.
56301         * tests/test-fseeko.c: New file.
56302
56303         * modules/fseeko: New file.
56304         * m4/fseeko.m4: New file.
56305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56306         HAVE_FSEEKO.
56307         * lib/stdio_.h (fseeko): New declaration.
56308         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56309         HAVE_FSEEKO.
56310
56311 2007-04-25  Bruno Haible  <bruno@clisp.org>
56312
56313         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56314
56315 2007-04-25  Bruno Haible  <bruno@clisp.org>
56316
56317         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56318         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56319         * tests/test-unistd.c: Likewise.
56320         * tests/test-fcntl.c: Likewise.
56321
56322 2007-04-23  Eric Blake  <ebb9@byu.net>
56323
56324         * lib/fflush.c: Fix missing include.
56325         Reported by Bruno Haible.
56326
56327 2007-04-23  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56330         Reported by Eric Blake.
56331
56332 2007-04-23  Bruno Haible  <bruno@clisp.org>
56333
56334         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56335
56336 2007-04-23  Bruno Haible  <bruno@clisp.org>
56337
56338         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56339
56340 2007-04-23  Bruno Haible  <bruno@clisp.org>
56341
56342         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56343         Needed on HP-UX 11.
56344
56345 2007-04-16  Eric Blake  <ebb9@byu.net>
56346
56347         Make fflush rely on fpurge.
56348         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56349         open coding all variants.
56350         * modules/fflush (Depends-on): Add fpurge and unistd.
56351         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56352         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56353
56354         Fix --with-tests compilation on cygwin.
56355         * modules/argmatch-tests (Makefile.am): List gnulib library first
56356         in LDADD.
56357         * modules/argp-tests (Makefile.am): Likewise.
56358         * modules/array-list-tests (Makefile.am): Likewise.
56359         * modules/array-oset-tests (Makefile.am): Likewise.
56360         * modules/avltree-list-tests (Makefile.am): Likewise.
56361         * modules/avltree-oset-tests (Makefile.am): Likewise.
56362         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56363         * modules/carray-list-tests (Makefile.am): Likewise.
56364         * modules/dirname-tests (Makefile.am): Likewise.
56365         * modules/frexp-tests (Makefile.am): Likewise.
56366         * modules/isnanl-tests (Makefile.am): Likewise.
56367         * modules/linked-list-tests (Makefile.am): Likewise.
56368         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56369         * modules/lock-tests (Makefile.am): Likewise.
56370         * modules/rbtree-list-tests (Makefile.am): Likewise.
56371         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56372         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56373         * modules/tls-tests (Makefile.am): Likewise.
56374         * modules/tsearch-tests (Makefile.am): Likewise.
56375         * modules/xvasprintf-tests (Makefile.am): Likewise.
56376
56377         Fix fpurge for cygwin.
56378         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56379         value.
56380         * modules/fpurge-tests (Depends-on): Clean up trash.
56381
56382 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56383
56384         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56385
56386         * m4/autobuild.m4: Re-indent.
56387
56388 2007-04-13  Bruno Haible  <bruno@clisp.org>
56389
56390         * modules/fpurge-tests: New file.
56391         * tests/test-fpurge.c: New file.
56392
56393         * modules/fpurge: New file.
56394         * lib/fpurge.h: New file.
56395         * lib/fpurge.c: New file.
56396         * m4/fpurge.m4: New file.
56397
56398 2007-04-13  Bruno Haible  <bruno@clisp.org>
56399
56400         * modules/fbufmode-tests: New file.
56401         * tests/test-fbufmode.c: New file.
56402
56403         * modules/fbufmode: New file.
56404         * lib/fbufmode.h: New file.
56405         * lib/fbufmode.c: New file.
56406         * m4/fbufmode.m4: New file.
56407
56408 2007-04-13  Bruno Haible  <bruno@clisp.org>
56409
56410         * modules/fwritable-tests: New file.
56411         * tests/test-fwritable.c: New file.
56412
56413         * modules/fwritable: New file.
56414         * lib/fwritable.h: New file.
56415         * lib/fwritable.c: New file.
56416         * m4/fwritable.m4: New file.
56417
56418 2007-04-13  Bruno Haible  <bruno@clisp.org>
56419
56420         * modules/freadable-tests: New file.
56421         * tests/test-freadable.c: New file.
56422
56423         * modules/freadable: New file.
56424         * lib/freadable.h: New file.
56425         * lib/freadable.c: New file.
56426         * m4/freadable.m4: New file.
56427
56428 2007-04-13  Bruno Haible  <bruno@clisp.org>
56429
56430         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56431         MOSTLYCLEANFILES.
56432
56433 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56434
56435         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56436         gzip bootstrap.conf to avoid dragging in i18n machinery.
56437         (gnulib_tool_option): Use it.
56438
56439 2007-04-13  Bruno Haible  <bruno@clisp.org>
56440
56441         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56442         %F directives.
56443         * tests/test-vasprintf-posix.c (test_function): Likewise.
56444         * tests/test-snprintf-posix.h (test_function): Likewise.
56445         * tests/test-sprintf-posix.h (test_function): Likewise.
56446         * tests/test-fprintf-posix.h (test_function): Likewise.
56447         * tests/test-printf-posix.h (test_function): Likewise.
56448         * tests/test-fprintf-posix.out: Likewise.
56449
56450 2007-04-13  Bruno Haible  <bruno@clisp.org>
56451
56452         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56453         * modules/tls-tests (configure.ac): Likewise.
56454         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56455
56456 2007-04-13  Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/tls.c (glthread_tls_get): Fix return type.
56459         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56460
56461 2007-04-12  Eric Blake  <ebb9@byu.net>
56462
56463         * modules/gettime (Depends-on): Remove gettime.
56464         Reported by Dmitry V. Levin.
56465
56466 2007-04-12  Bruno Haible  <bruno@clisp.org>
56467
56468         * modules/fflush (Include): Mention <stdio.h>.
56469         * modules/strtoimax (Include): Mention <inttypes.h>.
56470         * modules/strtoumax (Include): Likewise.
56471
56472 2007-04-12  Eric Blake  <ebb9@byu.net>
56473
56474         * .cvsignore: New file.
56475         * .gitignore: Likewise.
56476
56477 2007-04-12  Bruno Haible  <bruno@clisp.org>
56478
56479         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56480         not before, since $(LDADD) often contains libgnu.a.
56481         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56482         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56483         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56484         Needed on Cygwin.
56485
56486 2007-04-12  Eric Blake  <ebb9@byu.net>
56487
56488         Work around glibc's failure to flush stdin on fclose.
56489         * lib/closein.c (close_stdin): Flush stdin before closing.
56490
56491         Work around glibc's failure to reset seekable stdin on exit.
56492         * modules/closein: New module.
56493         * lib/closein.c: New file.
56494         * lib/closein.h: Likewise.
56495         * m4/closein.m4: Likewise.
56496         * MODULES.html.sh (File stream based Input/Output): Document it.
56497
56498 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56499
56500         * gnulib-tool: Rename generated 'autobuild' script to
56501         'do-autobuild' in --create-megatestdir output.
56502
56503         * doc/gnulib.texi (Build robot for gnulib): Fix.
56504
56505 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56506
56507         * modules/sysexits (Depends-on): Add absolute-header.
56508
56509 2007-04-12  Eric Blake  <ebb9@byu.net>
56510
56511         No need to preserve errno on success.
56512         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56513         Reported by Bruno Haible.
56514
56515 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56516
56517         * MODULES.html.sh (Support for maintaining and releasing
56518         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56519
56520 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56521
56522         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56523
56524 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56525
56526         * modules/autobuild: New module.
56527
56528         * m4/autobuild.m4: New file.
56529
56530 2007-04-11  Bruno Haible  <bruno@clisp.org>
56531
56532         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56533         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56534         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56536         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56537         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56538         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56539         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56540         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56541         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56543         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56544         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56545         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56546         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56547         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56549         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56550         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56551         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56552         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56553         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56554         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56555         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56556         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56557         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56558         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56559         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56560         Reported by Eric Blake.
56561
56562 2007-04-11  Bruno Haible  <bruno@clisp.org>
56563
56564         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56565
56566 2007-04-10  Bruno Haible  <bruno@clisp.org>
56567
56568         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56569         for NaN and Infinity. Needed on FreeBSD 6.1.
56570         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56571         regarding results for "%010a" of Infinity and NaN.
56572         * tests/test-vasprintf-posix.c (test_function): Likewise.
56573         * tests/test-snprintf-posix.h (test_function): Likewise.
56574         * tests/test-sprintf-posix.h (test_function): Likewise.
56575         * tests/test-fprintf-posix.h (test_function): Likewise.
56576         * tests/test-printf-posix.h (test_function): Likewise.
56577         * tests/test-fprintf-posix.out: Likewise.
56578
56579 2007-04-10  Bruno Haible  <bruno@clisp.org>
56580
56581         * modules/locale-tests: New file.
56582         * tests/test-locale.c: New file.
56583
56584         * modules/locale: New file.
56585         * lib/locale_.h: New file.
56586         * m4/locale_h.m4: New file.
56587
56588 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56589             Bruno Haible  <bruno@clisp.org>
56590
56591         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56592         be determined, test for availability of the copysignf, copysign,
56593         copysignl functions.
56594         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56595         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56596         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56597
56598 2007-04-09  Eric Blake  <ebb9@byu.net>
56599
56600         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56601         * modules/stdio (Makefile.am): Support fflush.
56602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56603         * modules/fflush: New file.
56604         * lib/fflush.c: Likewise.
56605         * m4/fflush.m4: Likewise.
56606         * modules/fflush-tests: New test.
56607         * tests/test-fflush.c: Likewise.
56608         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56609
56610 2007-04-06  Bruno Haible  <bruno@clisp.org>
56611
56612         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56613         (VASNPRINTF): Use signbit for faster determination whether to print a
56614         minus sign.
56615         * modules/vasnprintf (Files): Remove lib/float+.h.
56616         * modules/fprintf-posix (Depends-on): Add signbit.
56617         * modules/snprintf-posix (Depends-on): Likewise.
56618         * modules/sprintf-posix (Depends-on): Likewise.
56619         * modules/vasnprintf-posix (Depends-on): Likewise.
56620         * modules/vasprintf-posix (Depends-on): Likewise.
56621         * modules/vfprintf-posix (Depends-on): Likewise.
56622         * modules/vsnprintf-posix (Depends-on): Likewise.
56623         * modules/vsprintf-posix (Depends-on): Likewise.
56624
56625 2007-04-06  Bruno Haible  <bruno@clisp.org>
56626
56627         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56628         * tests/test-frexpl.c (main): Likewise.
56629         * tests/test-ldexpl.c (main): Likewise.
56630         * modules/frexp-tests (Depends-on): Add signbit.
56631         * modules/frexpl-tests (Depdends-on): Likewise.
56632         * modules/ldexpl-tests (Depdends-on): Likewise.
56633
56634 2007-04-06  Bruno Haible  <bruno@clisp.org>
56635
56636         * modules/signbit-tests: New file.
56637         * tests/test-signbit.c: New file.
56638
56639         * modules/signbit: New file.
56640         * lib/signbitf.c: New file.
56641         * lib/signbitd.c: New file.
56642         * lib/signbitl.c: New file.
56643         * m4/signbit.m4: New file.
56644         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56645         (signbit): New macro.
56646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56647         REPLACE_SIGNBIT.
56648         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56649         REPLACE_FREXPL into math.h.
56650
56651 2007-04-06  Bruno Haible  <bruno@clisp.org>
56652
56653         * modules/isnanf-nolibm-tests: New file.
56654         * tests/test-isnanf.c: New file.
56655
56656         * modules/isnanf-nolibm: New file.
56657         * lib/isnanf.h: New file.
56658         * lib/isnanf.c: New file.
56659         * lib/isnan.c: Consider the USE_FLOAT macro.
56660         * m4/isnanf.m4: New file.
56661
56662 2007-04-06  Bruno Haible  <bruno@clisp.org>
56663
56664         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56665         (Link): New section.
56666
56667         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56668
56669 2007-04-06  Bruno Haible  <bruno@clisp.org>
56670
56671         Assume the 'long double' type.
56672         * m4/longdouble.m4: Remove file.
56673         * config/srclist.txt: Don't mention longdouble.m4.
56674         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56675         * lib/float+.h: Likewise.
56676         * lib/frexp.c: Likewise.
56677         * lib/printf-args.h: Likewise.
56678         * lib/printf-args.c: Likewise.
56679         * lib/printf-frexp.c: Likewise.
56680         * lib/printf-parse.c: Likewise.
56681         * lib/vasnprintf.c: Likewise.
56682         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56683         * m4/intl.m4: Likewise.
56684         * m4/isnanl.m4: Likewise.
56685         * m4/printf.m4: Likewise.
56686         * m4/printf-frexpl.m4: Likewise.
56687         * m4/vasnprintf.m4: Likewise.
56688         * modules/allocsa (Files): Remove m4/longdouble.m4.
56689         * modules/gettext (Files): Likewise.
56690         * modules/relocatable-prog-wrapper (Files): Likewise.
56691         * modules/vasnprintf (Files): Likewise.
56692         * modules/isnanl (Files): Likewise.
56693         (Include): Simplify.
56694         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56695         (Include): Simplify.
56696         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56697         (Include): Simplify.
56698         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56699         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56700         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56701         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56702         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56703         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56704         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56705         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56706         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56707         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56708         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56709         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56710         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56711         * tests/test-isnanl.c: Likewise.
56712         * tests/test-snprintf-posix.h: Likewise.
56713         * tests/test-sprintf-posix.h: Likewise.
56714         * tests/test-vasnprintf-posix.c: Likewise.
56715         * tests/test-vasnprintf-posix2.c: Likewise.
56716         * tests/test-vasprintf-posix.c: Likewise.
56717
56718 2007-04-06  Bruno Haible  <bruno@clisp.org>
56719
56720         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56721         * lib/math_.h [__DECC]: Include the overridden include file through
56722         #include_next, outside the double-inclusion guard.
56723         * lib/stdio_.h [__DECC]: Likewise.
56724         * lib/stdlib_.h [__DECC]: Likewise.
56725         * lib/string_.h [__DECC]: Likewise.
56726         * lib/time_.h [__DECC]: Likewise.
56727         * lib/wchar_.h [__DECC]: Likewise.
56728         * lib/wctype_.h [__DECC]: Likewise.
56729         * lib/inttypes_.h [__DECC]: Likewise.
56730         Reported by Albert Chin <china@thewrittenword.com> in
56731         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56732
56733 2007-04-04  Eric Blake  <ebb9@byu.net>
56734
56735         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56736         1.5.x.
56737
56738 2007-04-04  Bruno Haible  <bruno@clisp.org>
56739
56740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56741         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56742
56743 2007-04-04  Bruno Haible  <bruno@clisp.org>
56744
56745         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56746         results for "%010a" of Infinity and NaN.
56747         * tests/test-vasprintf-posix.c (test_function): Likewise.
56748         * tests/test-snprintf-posix.h (test_function): Likewise.
56749         * tests/test-sprintf-posix.h (test_function): Likewise.
56750         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56751         * tests/test-printf-posix.h (test_function): Likewise.
56752         * tests/test-fprintf-posix.out: Update.
56753         Needed for FreeBSD 6.1.
56754
56755 2007-04-04  Bruno Haible  <bruno@clisp.org>
56756
56757         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56758         directly used by the gnulib modules nor by gnulib-tool.
56759
56760 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56761
56762         * DEPENDENCIES: Give overall description of version dependency
56763         desirability.  Use more-typical names for apps.
56764         Add shell, coreutils, diffutils, grep, tar, gzip.
56765
56766 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56767
56768         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56769
56770 2007-04-04  Karl Berry  <karl@gnu.org>
56771
56772         * MODULES.html.sh (func_module): missing '.
56773
56774 2007-04-03  Bruno Haible  <bruno@clisp.org>
56775
56776         * modules/argmatch-tests (Makefile.am): New variable
56777         test_argmatch_LDADD.
56778         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56779         * modules/array-list-tests (Makefile.am): New variable
56780         test_array_list_LDADD.
56781         * modules/array-oset-tests (Makefile.am): New variable
56782         test_array_oset_LDADD.
56783         * modules/avltree-list-tests (Makefile.am): New variable
56784         test_avltree_list_LDADD.
56785         * modules/avltree-oset-tests (Makefile.am): New variable
56786         test_avltree_oset_LDADD.
56787         * modules/avltreehash-list-tests (Makefile.am): New variable
56788         test_avltreehash_list_LDADD.
56789         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56790         test_canonicalize_lgpl_LDADD.
56791         * modules/carray-list-tests (Makefile.am): New variable
56792         test_carray_list_LDADD.
56793         * modules/dirname-tests (Makefile.am): New variable
56794         test_dirname_LDADD.
56795         * modules/linked-list-tests (Makefile.am): New variable
56796         test_linked_list_LDADD.
56797         * modules/linkedhash-list-tests (Makefile.am): New variable
56798         test_linkedhash_list_LDADD.
56799         * modules/rbtree-list-tests (Makefile.am): New variable
56800         test_rbtree_list_LDADD.
56801         * modules/rbtree-oset-tests (Makefile.am): New variable
56802         test_rbtree_oset_LDADD.
56803         * modules/rbtreehash-list-tests (Makefile.am): New variable
56804         test_rbtreehash_list_LDADD.
56805         * modules/xvasprintf-tests (Makefile.am): New variable
56806         test_xvasprintf_LDADD.
56807         Reported by Eric Blake.
56808
56809 2007-04-03  Eric Blake  <ebb9@byu.net>
56810
56811         * DEPENDENCIES: Weaken m4 requirements.
56812
56813 2007-04-03  Bruno Haible  <bruno@clisp.org>
56814
56815         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56816         * modules/isnanl-tests (configure.ac): Likewise.
56817
56818 2007-04-03  Ben Pfaff  <blp@gnu.org>
56819
56820         * modules/iconv_open: Add $(srcdir)/ to source directory
56821         references in Makefile fragments that call gperf, to fix VPATH
56822         builds.
56823
56824 2007-04-03  Bruno Haible  <bruno@clisp.org>
56825
56826         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56827         * lib/ldexpl.c: Undo last change.
56828
56829 2007-04-03  Bruno Haible  <bruno@clisp.org>
56830
56831         * modules/printf-frexpl (Depends-on): Undo last change.
56832         (Files): Add m4/ldexpl.m4.
56833
56834 2007-04-03  Bruno Haible  <bruno@clisp.org>
56835
56836         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56837         * modules/isnanl (Link): New section.
56838
56839         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56840         * modules/frexp (Link): New section.
56841
56842         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56843         * modules/frexpl (Link): New section.
56844
56845         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56846         * modules/ldexpl (Link): New section.
56847
56848 2007-04-03  Bruno Haible  <bruno@clisp.org>
56849
56850         * modules/TEMPLATE-EXTENDED: New file.
56851         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56852
56853 2007-04-03  Bruno Haible  <bruno@clisp.org>
56854
56855         * DEPENDENCIES: New file.
56856         Suggested by Simon Josefsson.
56857
56858 2007-04-03  Bruno Haible  <bruno@clisp.org>
56859
56860         * doc/gnulib.texi: Escape @.
56861
56862 2007-04-03  James Youngman  <jay@gnu.org>
56863         and Paul Eggert  <eggert@cs.ucla.edu>
56864
56865         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56866         birthtime on all systems that have birthtime, not just those which
56867         use st_birthtimensec rather than st_birthtim.  Putting zero in
56868         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56869         that the birth time is not available for files on an NFS mount.
56870
56871 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56872
56873         * modules/memxor: Move back from crypto/, suggested by Bruno.
56874         * modules/crypto/hmac-sha1: Fix memxor dependency.
56875
56876         * modules/crypto/gc: Moved from ../.
56877
56878 2007-04-02  Eric Blake  <ebb9@byu.net>
56879
56880         * lib/ldexpl.c (includes): Avoid libm.
56881
56882         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56883
56884 2007-04-02  Bruno Haible  <bruno@clisp.org>
56885
56886         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56887         on IRIX.
56888
56889 2007-04-02  Bruno Haible  <bruno@clisp.org>
56890
56891         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56892         x86 or x86_64 platforms running MacOS X.
56893         Reported by Ryan Schmidt <@ryandesign.com>.
56894
56895 2007-04-02  Bruno Haible  <bruno@clisp.org>
56896
56897         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56898         i386.
56899
56900 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56901
56902         * modules/crypto/arcfour: Moved from ../.
56903         * modules/crypto/arcfour-tests: Moved from ../.
56904         * modules/crypto/arctwo: Moved from ../.
56905         * modules/crypto/arctwo-tests: Moved from ../.
56906         * modules/crypto/des: Moved from ../.
56907         * modules/crypto/des-tests: Moved from ../.
56908         * modules/crypto/gc-arcfour: Moved from ../.
56909         * modules/crypto/gc-arcfour-tests: Moved from ../.
56910         * modules/crypto/gc-arctwo: Moved from ../.
56911         * modules/crypto/gc-arctwo-tests: Moved from ../.
56912         * modules/crypto/gc-des: Moved from ../.
56913         * modules/crypto/gc-des-tests: Moved from ../.
56914         * modules/crypto/gc-hmac-md5: Moved from ../.
56915         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56916         * modules/crypto/gc-hmac-sha1: Moved from ../.
56917         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56918         * modules/crypto/gc-md2: Moved from ../.
56919         * modules/crypto/gc-md2-tests: Moved from ../.
56920         * modules/crypto/gc-md4: Moved from ../.
56921         * modules/crypto/gc-md4-tests: Moved from ../.
56922         * modules/crypto/gc-md5: Moved from ../.
56923         * modules/crypto/gc-md5-tests: Moved from ../.
56924         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56925         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56926         * modules/crypto/gc-random: Moved from ../.
56927         * modules/crypto/gc-rijndael: Moved from ../.
56928         * modules/crypto/gc-rijndael-tests: Moved from ../.
56929         * modules/crypto/gc-sha1: Moved from ../.
56930         * modules/crypto/gc-sha1-tests: Moved from ../.
56931         * modules/crypto/gc-tests: Moved from ../.
56932         * modules/crypto/hmac-md5: Moved from ../.
56933         * modules/crypto/hmac-md5-tests: Moved from ../.
56934         * modules/crypto/hmac-sha1: Moved from ../.
56935         * modules/crypto/hmac-sha1-tests: Moved from ../.
56936         * modules/crypto/md2: Moved from ../.
56937         * modules/crypto/md2-tests: Moved from ../.
56938         * modules/crypto/md4: Moved from ../.
56939         * modules/crypto/md4-tests: Moved from ../.
56940         * modules/crypto/md5: Moved from ../.
56941         * modules/crypto/md5-tests: Moved from ../.
56942         * modules/crypto/memxor: Moved from ../.
56943         * modules/crypto/rijndael: Moved from ../.
56944         * modules/crypto/rijndael-tests: Moved from ../.
56945         * modules/crypto/sha1: Moved from ../.
56946
56947 2007-03-30  James Youngman  <jay@gnu.org>
56948
56949         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56950         rename() to change the ctime of a file (because ctime is unaffected
56951         by rename on jfs2 on AIX 5.1).
56952         (main): Start by doing cleanup, in case a previous run failed leaving
56953         test files behind.
56954
56955 2007-03-31  Bruno Haible  <bruno@clisp.org>
56956
56957         Support old proprietary implementations of iconv.
56958         * modules/iconv_open: New file.
56959         * lib/iconv_.h: New file.
56960         * m4/iconv_h.m4: New file.
56961         * lib/iconv_open.c: New file.
56962         * lib/iconv_open-aix.gperf: New file.
56963         * lib/iconv_open-hpux.gperf: New file.
56964         * lib/iconv_open-irix.gperf: New file.
56965         * lib/iconv_open-osf.gperf: New file.
56966         * m4/iconv_open.m4: New file.
56967         * modules/linebreak (Depends-on): Add iconv_open.
56968         * modules/striconv (Depends-on): Likewise.
56969         * modules/striconveh (Depends-on): Likewise.
56970         * modules/unicodeio (Depends-on): Likewise.
56971         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56972         (iconv_t)(-1).
56973         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56974         conversion if cd is (iconv_t)(-1).
56975         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56976         is not possible.
56977
56978 2007-03-31  Bruno Haible  <bruno@clisp.org>
56979
56980         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56981         work on Solaris either. Protect also second use of "autodetect_jp".
56982
56983 2007-03-31  Bruno Haible  <bruno@clisp.org>
56984
56985         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56986         the function is not present.
56987
56988 2007-03-31  Bruno Haible  <bruno@clisp.org>
56989
56990         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56991         the function is not present.
56992
56993 2007-03-31  Bruno Haible  <bruno@clisp.org>
56994
56995         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56996         a bug in HP-UX iconv_open().
56997
56998 2007-03-31  Bruno Haible  <bruno@clisp.org>
56999
57000         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57001         (Mathematics <math.h>): New section, add fpieee.
57002         (Input/output <stdio.h>): Add fseterr.
57003         (Mathematics <math.h>): New section, add printf-frexp.
57004         (Container data structures): Add sublist.
57005         (Core language properties): Add fpucw, inline.
57006         (Functions for greatest-width integer types <inttypes.h>): Add
57007         imaxabs, imaxdiv, inttypes.
57008         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57009         isnanl-nolibm, ldexp.
57010         (Mathematics <math.h>): New section, add printf-frexpl.
57011         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57012         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57013         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57014         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57015         (Unicode string functions): Add unistr/u*-mbtoucr.
57016         (Java): Add javacomp-script, javaexec-script.
57017         (C#): Add csharpcomp-script, csharpexec-script.
57018         (Support for building libraries and executables): Add havelib,
57019         relocatable-*.
57020         (Support for maintaining and releasing projects): Renamed from
57021         'Support for maintaining and release projects'. Add announce-gen.
57022
57023 2007-03-31  Bruno Haible  <bruno@clisp.org>
57024
57025         * README: Talk primarily about git.
57026         (git and CVS): Renamed from CVS.
57027         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57028         gnulib is available through git.
57029         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57030
57031 2007-03-30  Bruno Haible  <bruno@clisp.org>
57032
57033         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57034         * lib/poll_.h: Likewise.
57035         * lib/stat_.h: Likewise.
57036         * lib/sys_time_.h: Likewise.
57037         * lib/sysexit_.h: Likewise.
57038         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57039         * lib/stdbool_.h: Likewise.
57040         * lib/byteswap_.h: Add double-inclusion guard.
57041
57042 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57043
57044         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57045
57046 2007-03-30  Karl Berry  <karl@gnu.org>
57047
57048         * config/srclist-update: double space after USA in the license
57049         substitution, since that's how it's usually (?) written.
57050
57051 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57052
57053         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57054         reported by Bruno Haible.
57055
57056 2007-03-29  Bruno Haible  <bruno@clisp.org>
57057
57058         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57059         a bug in AIX iconv().
57060
57061 2007-03-29  Bruno Haible  <bruno@clisp.org>
57062
57063         * modules/ldexpl-tests: New file.
57064         * tests/test-ldexpl.c: New file.
57065
57066 2007-03-29  Bruno Haible  <bruno@clisp.org>
57067
57068         * lib/ldexpl.c: Include fpucw.h.
57069         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57070         multiplication.
57071         * modules/ldexpl (Depends-on): Add fpucw.
57072
57073 2007-03-29  Bruno Haible  <bruno@clisp.org>
57074
57075         * modules/ldexpl: New file.
57076         * m4/ldexpl.m4: New file.
57077         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57078         set.
57079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57080         REPLACE_LDEXPL.
57081         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57082         REPLACE_LDEXPL.
57083         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57084         gl_FUNC_LDEXPL_WORKS.
57085         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57086         * modules/mathl (Files): Remove lib/ldexpl.c.
57087         (Depends-on): Add ldexpl.
57088
57089 2007-03-29  Bruno Haible  <bruno@clisp.org>
57090
57091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57092
57093 2007-03-29  Bruno Haible  <bruno@clisp.org>
57094
57095         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57096         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57097         and possibly also HP-UX.
57098         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57099         work on AIX, IRIX, HP-UX, OSF/1.
57100         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57101         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57102         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57103         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57104         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57105         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57106
57107 2007-03-29  Bruno Haible  <bruno@clisp.org>
57108
57109         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57110
57111 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57112
57113         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57114         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57115
57116 2007-03-29  Eric Blake  <ebb9@byu.net>
57117
57118         * lib/acl-internal.h: Remove redundant include.
57119         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57120         Cygwin when a file is locked.
57121
57122 2007-03-29  Bruno Haible  <bruno@clisp.org>
57123
57124         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57125         file.
57126         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57127
57128 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57129
57130         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57131         try to remove a parent directory if the child couldn't be removed
57132         (except for the first rmdir, which could fail because the child
57133         doesn't exist).  Problem reported by Jeff Blaine in
57134         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57135
57136 2007-03-28  Bruno Haible  <bruno@clisp.org>
57137
57138         * lib/striconveh.c (utf8conv_carefully): New function.
57139         (mem_cd_iconveh_internal): Invoke it.
57140
57141 2007-03-28  Bruno Haible  <bruno@clisp.org>
57142
57143         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57144         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57145         input.
57146         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57147         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57148         unistr/u8-uctomb.
57149
57150 2007-03-28  Bruno Haible  <bruno@clisp.org>
57151
57152         * modules/unistr/u8-mbtoucr: New file.
57153         * lib/unistr/u8-mbtoucr.c: New file.
57154         * modules/unistr/u16-mbtoucr: New file.
57155         * lib/unistr/u16-mbtoucr.c: New file.
57156         * modules/unistr/u16-mbtoucr: New file.
57157         * lib/unistr/u16-mbtoucr.c: New file.
57158         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57159
57160 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57161             Bruno Haible  <bruno@clisp.org>
57162
57163         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57164         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57165         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57166
57167         * m4/stdio_h.m4: Add stubs for vasprintf too.
57168
57169         * modules/stdio: Support vasprintf in sed command.
57170
57171         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57172         vasprintf.h.  Add stdio module indicator.
57173
57174         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57175         vasprintf.h.
57176
57177         * lib/vasprintf.h: File removed.
57178
57179         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57180         * lib/vasprintf.c: Ditto.
57181         * lib/xvasprintf.c: Ditto.
57182         * tests/test-vasprintf-posix.c: Ditto.
57183         * tests/test-vasprintf.c: Ditto.
57184
57185 2007-03-27  Bruno Haible  <bruno@clisp.org>
57186
57187         Make vasnprintf multithread-safe.
57188         * lib/vasnprintf.c (decimal_point_char): New function.
57189         (VASNPRINTF): Use it.
57190         Suggested by Simon Josefsson.
57191
57192 2007-03-27  Eric Blake  <ebb9@byu.net>
57193
57194         Support sub-second birthtime on cygwin.
57195         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57196         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57197         (get_stat_birthtime): Also work with st_birthtim.
57198
57199 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57200
57201         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57202         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57203         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57204         (get_stat_birthtime_ns): Simplify compile-time tests.
57205         (get_stat_birthtime): Change the API to look like
57206         get_stat_mtime etc., except return a negative tv_nsec on error.
57207         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57208         Don't check for "spare" fields.
57209         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57210         or for struct stat.st_birthtime, as these tests aren't used.
57211         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57212
57213 2007-03-27  Bruno Haible  <bruno@clisp.org>
57214
57215         * lib/stat-time.h: Include <sys/stat.h>.
57216
57217 2007-03-27  James Youngman  <jay@gnu.org>
57218
57219         * lib/stat-time.h (get_stat_birthtime): New function for
57220           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57221         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57222           and its variants.
57223         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57224         * modules/stat-time-test: New file.
57225         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57226
57227 2007-03-26  Bruno Haible  <bruno@clisp.org>
57228
57229         Better support of signalling NaNs.
57230         * lib/atanl.c: Include isnanl.h.
57231         (atanl): Perform test for NaN at the beginning of the function and
57232         through a call to isnanl.
57233         * lib/cosl.c: Include isnanl.h.
57234         (cosl): Perform test for NaN at the beginning of the function and
57235         through a call to isnanl.
57236         * lib/ldexpl.c: Include isnanl.h.
57237         (ldexpl): Perform test for NaN through a call to isnanl.
57238         * lib/logl.c: Include isnanl.h.
57239         (logl): Perform test for NaN at the beginning of the function and
57240         through a call to isnanl.
57241         * lib/sinl.c: Include isnanl.h.
57242         (sinl): Perform test for NaN at the beginning of the function and
57243         through a call to isnanl.
57244         * lib/sqrtl.c: Include isnanl.h.
57245         (sqrtl): Perform test for NaN at the beginning of the function and
57246         through a call to isnanl.
57247         * lib/tanl.c: Include isnanl.h.
57248         (tanl): Perform test for NaN at the beginning of the function and
57249         through a call to isnanl.
57250         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57251         * modules/mathl (Depends-on): Add isnanl.
57252
57253 2007-03-26  Eric Blake  <ebb9@byu.net>
57254
57255         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57256         regression in logic sense of previous patch.
57257
57258 2007-03-26  Bruno Haible  <bruno@clisp.org>
57259
57260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57261         unportable shell command "if ! ...".
57262         Reported by Ralf Wildenhues.
57263
57264 2007-03-25  Bruno Haible  <bruno@clisp.org>
57265
57266         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57267         <sysexits.h> file, and only add EX_CONFIG.
57268         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57269         absolute file name and whether it is sufficient. Substitute also
57270         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57271         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57272         ABSOLUTE_SYSEXITS_H into sysexits.h.
57273
57274 2007-03-25  Bruno Haible  <bruno@clisp.org>
57275
57276         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57277         hints is NULL.
57278
57279 2007-03-25  Bruno Haible  <bruno@clisp.org>
57280
57281         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57282         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57283
57284 2007-03-25  Bruno Haible  <bruno@clisp.org>
57285
57286         * lib/vasnprintf.c: Include langinfo.h.
57287         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57288         multithread-safe.
57289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57290         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57291         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57292         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57293         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57294         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57295         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57296         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57297         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57298         Reported by Simon Josefsson.
57299
57300 2007-03-25  Bruno Haible  <bruno@clisp.org>
57301
57302         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57303         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57304         * modules/vasnprintf (Depends-on): Add stdint.
57305
57306 2007-03-25  Bruno Haible  <bruno@clisp.org>
57307
57308         * modules/fpieee: New file.
57309         * m4/fpieee.m4: New file.
57310         * modules/isnan-nolibm (Depends-on): Add fpieee.
57311         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57312         * modules/isnanl (Depends-on): Add fpieee.
57313
57314 2007-03-25  Bruno Haible  <bruno@clisp.org>
57315
57316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57317
57318 2007-03-25  Bruno Haible  <bruno@clisp.org>
57319
57320         Avoid test failures on IRIX 6.5.
57321         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57322         (main): Use it.
57323         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57324         macros.
57325         (main): Use them.
57326
57327 2007-03-25  Bruno Haible  <bruno@clisp.org>
57328
57329         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57330         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57331         exists but doesn't work.
57332         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57333         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57335         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57336         math.h.
57337
57338 2007-03-25  Bruno Haible  <bruno@clisp.org>
57339
57340         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57341         returns inf. Needed on IRIX 6.5.
57342
57343 2007-03-25  Bruno Haible  <bruno@clisp.org>
57344
57345         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57346         (main): Use isnanl instead of x != x idiom.
57347         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57348
57349         * tests/test-frexp.c: Include isnan.h.
57350         (main): Use isnan instead of x != x idiom.
57351         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57352
57353 2007-03-25  Bruno Haible  <bruno@clisp.org>
57354
57355         * tests/test-frexp.c (NaN): New function/macro.
57356         (main): Use it instead of 0.0 / 0.0.
57357         * tests/test-isnan.c (NaN): New function/macro.
57358         (main): Use it instead of 0.0 / 0.0.
57359         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57360         (test_function): Use it instead of 0.0 / 0.0.
57361         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57362         (test_function): Use it instead of 0.0 / 0.0.
57363         * tests/test-snprintf-posix.h (NaN): New function/macro.
57364         (test_function): Use it instead of 0.0 / 0.0.
57365         * tests/test-sprintf-posix.h (NaN): New function/macro.
57366         (test_function): Use it instead of 0.0 / 0.0.
57367         * tests/test-fprintf-posix.h (NaN): New function/macro.
57368         (test_function): Use it instead of 0.0 / 0.0.
57369         * tests/test-printf-posix.h (NaN): New function/macro.
57370         (test_function): Use it instead of 0.0 / 0.0.
57371
57372         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57373
57374 2007-03-25  Bruno Haible  <bruno@clisp.org>
57375
57376         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57377
57378 2007-03-25  Bruno Haible  <bruno@clisp.org>
57379
57380         * lib/regexec.c (merge_state_with_log): Make static.
57381
57382 2007-03-25  Bruno Haible  <bruno@clisp.org>
57383
57384         * lib/trigl.c (kernel_rem_pio2): Make static.
57385
57386 2007-03-25  Bruno Haible  <bruno@clisp.org>
57387
57388         * lib/sincosl.c (sincosl_table): Make static.
57389
57390 2007-03-25  Bruno Haible  <bruno@clisp.org>
57391
57392         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57393         if the compiler does not support C99.
57394
57395 2007-03-25  Bruno Haible  <bruno@clisp.org>
57396
57397         * modules/time (Makefile.am): Ensure all rule action lines start with a
57398         tab.
57399
57400 2007-03-24  Bruno Haible  <bruno@clisp.org>
57401
57402         * modules/tsearch-tests: New file.
57403         * tests/test-tsearch.sh: New file.
57404         * tests/test-tsearch.c: New file, mostly copied from glibc.
57405
57406         * modules/search-tests: New file.
57407         * tests/test-search.c: New file.
57408
57409         * modules/search: New file.
57410         * lib/search_.h: New file, incorporating lib/tsearch.h.
57411         * m4/search_h.m4: New file.
57412         * lib/tsearch.h: Remove file.
57413         * lib/tsearch.c: Include search.h instead of tsearch.h.
57414         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57415         HAVE_TSEARCH.
57416         * modules/tsearch (Files): Remove lib/tsearch.h.
57417         (Depends-on): Add search.
57418         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57419         (Include): Change tsearch.h into search.h.
57420
57421 2007-03-24  Bruno Haible  <bruno@clisp.org>
57422
57423         * modules/fpucw: New file.
57424         * lib/fpucw.h: New file.
57425         * lib/frexp.c: Include fpucw.h.
57426         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57427         (FUNC): Use them.
57428         * lib/printf-frexp.c: Include fpucw.h.
57429         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57430         (FUNC): Use them.
57431         * lib/vasnprintf.c: Include fpucw.h.
57432         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57433         'long double' calculations.
57434         * tests/test-frexpl.c: Include fpucw.h.
57435         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57436         * tests/test-printf-frexpl.c: Include fpucw.h.
57437         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57438         * modules/frexpl (Depends-on): Add fpucw.
57439         * modules/printf-frexpl (Depends-on): Likewise.
57440         * modules/fprintf-posix (Depends-on): Likewise.
57441         * modules/snprintf-posix (Depends-on): Likewise.
57442         * modules/sprintf-posix (Depends-on): Likewise.
57443         * modules/vasnprintf-posix (Depends-on): Likewise.
57444         * modules/vasprintf-posix (Depends-on): Likewise.
57445         * modules/vfprintf-posix (Depends-on): Likewise.
57446         * modules/vsnprintf-posix (Depends-on): Likewise.
57447         * modules/vsprintf-posix (Depends-on): Likewise.
57448         * modules/frexpl-tests (Depends-on): Likewise.
57449         * modules/printf-frexpl-tests (Depends-on): Likewise.
57450
57451 2007-03-24  Bruno Haible  <bruno@clisp.org>
57452
57453         * lib/float+.h: New file.
57454         * lib/isnan.c: Include float+.h.
57455         (SIZE): New macro.
57456         (FUNC): Compare only SIZE bytes of the value.
57457         * lib/vasnprintf.c: Include float+.h.
57458         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57459         SIZEOF_LDBL or SIZEOF_DBL bytes.
57460         * modules/isnan-nolibm (Files): Add lib/float+.h.
57461         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57462         * modules/isnanl (Files): Add lib/float+.h.
57463         * modules/vasnprintf (Files): Add lib/float+.h.
57464
57465 2007-03-24  Bruno Haible  <bruno@clisp.org>
57466
57467         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57468         include isnanl-nolibm.h.
57469
57470 2007-03-24  Bruno Haible  <bruno@clisp.org>
57471
57472         * tests/test-read-file.c (main): Don't produce spurious output for
57473         expected situations. Make the test fail if it encountered unexpected
57474         results.
57475
57476 2007-03-24  Bruno Haible  <bruno@clisp.org>
57477
57478         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57479         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57480
57481 2007-03-24  Bruno Haible  <bruno@clisp.org>
57482
57483         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57484
57485 2007-03-24  Bruno Haible  <bruno@clisp.org>
57486
57487         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57488         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57489
57490         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57491         * modules/utf8-ucs4: Turn into a symbolic link to module
57492         unistr/u8-mbtouc.
57493
57494         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57495         utf8-ucs4-unsafe.
57496         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57497         unistr/u8-mbtouc-unsafe.
57498
57499         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57500         * modules/utf16-ucs4: Turn into a symbolic link to module
57501         unistr/u16-mbtouc.
57502
57503         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57504         utf16-ucs4-unsafe.
57505         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57506         unistr/u16-mbtouc-unsafe.
57507
57508         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57509         * modules/ucs4-utf8: Turn into a symbolic link to module
57510         unistr/u8-ubtomb.
57511
57512         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57513         * modules/ucs4-utf16: Turn into a symbolic link to module
57514         unistr/u16-ubtomb.
57515
57516 2007-03-24  Bruno Haible  <bruno@clisp.org>
57517
57518         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57519         Enable the function only if HAVE_INLINE.
57520         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57521         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57522         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57523         Enable the function only if HAVE_INLINE.
57524         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57525         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57526         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57527         Enable the function only if HAVE_INLINE.
57528         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57529         Enable the function only if HAVE_INLINE.
57530         * modules/utf8-ucs4: Update.
57531         * modules/utf8-ucs4-unsafe: Update.
57532         * modules/utf16-ucs4: Update.
57533         * modules/utf16-ucs4-unsafe: Update.
57534         * modules/ucs4-utf8: Update.
57535         * modules/ucs4-utf16: Update.
57536
57537 2007-03-24  Bruno Haible  <bruno@clisp.org>
57538
57539         * lib/utf8-ucs4.h: Remove file.
57540         * lib/utf8-ucs4-unsafe.h: Remove file.
57541         * lib/utf16-ucs4.h: Remove file.
57542         * lib/utf16-ucs4-unsafe.h: Remove file.
57543         * lib/ucs4-utf8.h: Remove file.
57544         * lib/ucs4-utf16.h: Remove file.
57545         * lib/unistr.h: Include their previous contents.
57546         * m4/utf-ucs4.m4: Remove file.
57547         * m4/ucs4-utf.m4: Remove file.
57548         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57549         (Depends-on): Add unistr/base.
57550         (configure.ac): Remove gl_UTF_UCS4.
57551         (Makefile.am): Update.
57552         (Include): Change to unistr.h.
57553         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57554         (Depends-on): Add unistr/base.
57555         (configure.ac): Remove gl_UTF_UCS4.
57556         (Makefile.am): Update.
57557         (Include): Change to unistr.h.
57558         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57559         (Depends-on): Add unistr/base.
57560         (configure.ac): Remove gl_UTF_UCS4.
57561         (Makefile.am): Update.
57562         (Include): Change to unistr.h.
57563         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57564         (Depends-on): Add unistr/base.
57565         (configure.ac): Remove gl_UTF_UCS4.
57566         (Makefile.am): Update.
57567         (Include): Change to unistr.h.
57568         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57569         (Depends-on): Add unistr/base.
57570         (configure.ac): Remove gl_UCS4_UTF.
57571         (Makefile.am): Update.
57572         (Include): Change to unistr.h.
57573         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57574         (Depends-on): Add unistr/base.
57575         (configure.ac): Remove gl_UCS4_UTF.
57576         (Makefile.am): Update.
57577         (Include): Change to unistr.h.
57578         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57579         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57580         utf8-ucs4-unsafe.h.
57581         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57582         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57583         utf16-ucs4-unsafe.h.
57584         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57585         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57586         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57587         * lib/unistr/u8-strchr.c: Likewise.
57588         * lib/unistr/u8-strrchr.c: Likewise.
57589         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57590         * lib/unistr/u16-strchr.c: Likewise.
57591         * lib/unistr/u16-strrchr.c: Likewise.
57592         * lib/striconveh.c: Update.
57593         * lib/linebreak.c: Update.
57594
57595 2007-03-24  Bruno Haible  <bruno@clisp.org>
57596
57597         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57598         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57599
57600 2007-03-22  Bruno Haible  <bruno@clisp.org>
57601
57602         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57603
57604 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57605
57606         * MODULES.html.sh (File system functions): New module write-any-file.
57607         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57608         * m4/write-any-file.m4: New files.
57609
57610 2007-03-23  Eric Blake  <ebb9@byu.net>
57611
57612         * gnulib-tool: Rearrange space-tab sequences, since some editors
57613         like to eat them.
57614
57615 2007-03-23  Eric Blake  <ebb9@byu.net>
57616
57617         * lib/version-etc.c (version_etc_va): Update license wording to
57618         be more concise.  Recommended by Richard Stallman.
57619
57620 2007-03-22  Bruno Haible  <bruno@clisp.org>
57621
57622         * lib/poll.c (MSG_PEEK): New fallback definition.
57623
57624 2007-03-22  Bruno Haible  <bruno@clisp.org>
57625
57626         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57627         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57628         (main): Update.
57629         Fixes a compilation error on BeOS.
57630
57631 2007-03-22  Bruno Haible  <bruno@clisp.org>
57632
57633         * modules/frexpl-tests: New file.
57634         * tests/test-frexpl.c: New file.
57635
57636         * modules/frexpl: New file.
57637         * m4/frexpl.m4: New file.
57638         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57639         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57641         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57642         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57643         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57644
57645 2007-03-22  Bruno Haible  <bruno@clisp.org>
57646
57647         * lib/frexpl.c: Share code with lib/frexp.c.
57648         * modules/mathl (Files): Add lib/frexp.c.
57649         (Depends-on): Add isnanl-nolibm.
57650
57651 2007-03-22  Bruno Haible  <bruno@clisp.org>
57652
57653         * modules/printf-frexp (Files): Add m4/frexp.m4.
57654         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57655         only if the found frexp function actually works.
57656
57657 2007-03-22  Bruno Haible  <bruno@clisp.org>
57658
57659         * lib/frexp.c: Remove older implementation that uses divisions.
57660
57661 2007-03-21  Bruno Haible  <bruno@clisp.org>
57662
57663         * modules/frexp-tests: New file.
57664         * tests/test-frexp.c: New file.
57665
57666         * modules/frexp: New file.
57667         * lib/frexp.c: New file.
57668         * m4/frexp.m4: New file.
57669         * lib/math_.h (frexp): New declaration.
57670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57671         REPLACE_FREXP.
57672         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57673
57674 2007-03-21  Bruno Haible  <bruno@clisp.org>
57675
57676         * modules/isnanl-tests: New file.
57677         * tests/test-isnanl.c: New file.
57678
57679         * modules/isnanl: New file.
57680         * lib/isnanl.h: New file.
57681         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57682         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57683         gl_FUNC_ISNANL_WORKS.
57684         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57685         New macros.
57686
57687 2007-03-21  Bruno Haible  <bruno@clisp.org>
57688
57689         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57690         lib/isnanl.h.
57691         (Include): Update.
57692         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57693         * lib/vasnprintf.c: Update.
57694         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57695         tests/test-isnanl.h, remove tests/test-isnanl.c.
57696         (Makefile.am): Update.
57697         * tests/test-isnanl-nolibm.c: New file.
57698         * tests/test-isnanl.h: New file.
57699         * tests/test-isnanl.c: Remove file.
57700
57701 2007-03-21  Jim Meyering  <jim@meyering.net>
57702
57703         When trying to open ".", treat ESTALE like EACCES.
57704         * lib/savewd.c (savewd_save): Resort to forking not just upon
57705         failure with EACCES, but also when errno is ESTALE.
57706
57707 2007-03-20  Bruno Haible  <bruno@clisp.org>
57708
57709         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57710         Needed on AIX 5.1. Reported by Matthew Woehlke.
57711
57712 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57713
57714         Suggestions by Bruno Haible:
57715         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57716         our own.
57717         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57718         * modules/acl (Depends-on): Add gettext.
57719
57720 2007-03-19  Bruno Haible  <bruno@clisp.org>
57721
57722         * modules/iconvme: Remove file.
57723         * lib/iconvme.h: Remove file.
57724         * lib/iconvme.c: Remove file.
57725         * m4/iconvme.m4: Remove file.
57726
57727 2007-03-19  Bruno Haible  <bruno@clisp.org>
57728
57729         * doc/relocatable-maint.texi: Break long shell script line.
57730         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57731
57732 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57733
57734         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57735         handle file_has_acl.
57736         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57737         * lib/acl.c: Move header inclusions and related macro defns into
57738         lib/acl-internal.h.
57739         (S_ISLNK): Remove defn, since that's now done for us.
57740         (file_has_acl): Move to lib/file-has-acl.c.
57741         Call acl_trivial if available.  This is the crucial part of the fix.
57742         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57743         shared within the library.  Rewrite a bit, partly to make it compatible
57744         with the GNU coding style.
57745         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57746         Remove unnecessary double-quotes.
57747         Don't test for acl_to_text; the build will catch that.
57748         Replace acl_entries if it doesn't exist and it is needed.
57749         Check for -lsec and acl_trivial (as used on Solaris 10).
57750         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57751         lib/file-has-acl.c.
57752         (Depends-on): Add sys_stat, for S_ISLNK.
57753
57754 2007-03-19  Ben Pfaff  <blp@gnu.org>
57755
57756         * doc/gnulib.texi: Fix typos.
57757         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57758
57759 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57760
57761         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57762         If size is zero here, buf must be zero.
57763
57764 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57765
57766         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57767         <bruno@clisp.org>.
57768
57769 2007-03-18  Bruno Haible  <bruno@clisp.org>
57770
57771         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57772         Suggested by Eric Blake.
57773
57774 2007-03-18  Ben Pfaff  <blp@gnu.org>
57775
57776         * doc/relocatable.texi: Recommend using as prefix a directory
57777         that does not exist and will never be created.  Based on
57778         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57779         and others.
57780
57781 2007-03-17  Bruno Haible  <bruno@clisp.org>
57782
57783         * lib/fchownat.c: Include lchown.h.
57784
57785 2007-03-17  Bruno Haible  <bruno@clisp.org>
57786
57787         Fix endless loop when the given allocated size was > INT_MAX.
57788         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57789         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57790         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57791         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57792         * lib/sprintf.c (sprintf): Likewise.
57793
57794 2007-03-17  Bruno Haible  <bruno@clisp.org>
57795
57796         * tests/test-argp-2.sh (func_compare): Output a context diff.
57797
57798 2007-03-17  Bruno Haible  <bruno@clisp.org>
57799
57800         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57801         locale's decimal-point character.
57802
57803 2007-03-17  Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57806         before comparing it. Needed because on some platforms (e.g. x86) a
57807         'long double' occupies less bytes than sizeof (long double).
57808
57809 2007-03-17  Bruno Haible  <bruno@clisp.org>
57810
57811         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57812         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57813         * tests/test-getaddrinfo.c (simple): Likewise.
57814         * tests/test-read-file.c (main): Likewise.
57815
57816 2007-03-17  Bruno Haible  <bruno@clisp.org>
57817
57818         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57819
57820 2007-03-17  Bruno Haible  <bruno@clisp.org>
57821
57822         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57823         unused variable.
57824
57825 2007-03-17  Bruno Haible  <bruno@clisp.org>
57826
57827         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57828         * tests/test-c-strncasecmp.c: Likewise.
57829
57830 2007-03-17  Bruno Haible  <bruno@clisp.org>
57831
57832         * modules/stdlib (Depends-on): Add unistd.
57833         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57834         Needed for MacOS X 10.3.
57835
57836 2007-03-17  Bruno Haible  <bruno@clisp.org>
57837
57838         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57839
57840 2007-03-17  Bruno Haible  <bruno@clisp.org>
57841
57842         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57843
57844 2007-03-17  Bruno Haible  <bruno@clisp.org>
57845
57846         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57847         to reflect files copied from gnulib (with or without modifications).
57848         Suggested by Jim Meyering.
57849
57850 2007-03-17  Eric Blake  <ebb9@byu.net>
57851
57852         * NEWS: Document stdlib change from 2007-02-18.
57853
57854 2007-03-17  Jim Meyering  <jim@meyering.net>
57855
57856         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57857         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57858         someone uses a name containing shell meta-characters.
57859         Reported by Alfred M. Szmidt.
57860
57861         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57862
57863 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57864
57865         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57866         and copy gettext configuration files only if configure.ac contains
57867         a use of AM_GNU_GETTEXT_VERSION.
57868
57869 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57870
57871         * build-aux/bootstrap (gnulib_name): New variable.
57872         (gnulib_tool_options): Use it.
57873
57874 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57875
57876         * tests/test-des.c: Use new namespace.
57877
57878 2007-03-15  Bruno Haible  <bruno@clisp.org>
57879
57880         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57881         Reported by James Youngman <jay@gnu.org>.
57882
57883 2007-03-15  Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57886         declared prototype. Needed with cc on OSF/1 5.1.
57887
57888 2007-03-15  Bruno Haible  <bruno@clisp.org>
57889
57890         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57891         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57892         (struct gl_list_implementation): Add dispose_fn argument to the
57893         'create_empty', 'create' methods.
57894         (struct gl_list_impl_base): Add field 'dispose_fn'.
57895         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57896         argument.
57897         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57898         dispose_fn argument.
57899         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57900         dispose_fn on the dropped values.
57901         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57902         dispose_fn argument.
57903         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57904         dropped values.
57905         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57906         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57907         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57908         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57909         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57910         argument.
57911         (gl_tree_list_free): Call dispose_fn on the dropped values.
57912         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57913         the dropped values.
57914         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57915         Add dispose_fn argument.
57916         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57917         Call dispose_fn on the dropped values.
57918         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57919         Add dispose_fn argument.
57920         (gl_sublist_create): Initialize the 'dispose_fn' field.
57921         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57922         * tests/test-array_list.c (main): Update.
57923         * tests/test-carray_list.c (main): Update.
57924         * tests/test-avltree_list.c (main): Update.
57925         * tests/test-rbtree_list.c (main): Update.
57926         * tests/test-avltreehash_list.c (main): Update.
57927         * tests/test-rbtreehash_list.c (main): Update.
57928         * tests/test-linked_list.c (main): Update.
57929         * tests/test-linkedhash_list.c (main): Update.
57930         * tests/test-array_oset.c (main): Update.
57931
57932 2007-03-15  Bruno Haible  <bruno@clisp.org>
57933
57934         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57935         (gl_oset_create_empty): Add dispose_fn argument.
57936         (struct gl_oset_implementation): Add dispose_fn argument to
57937         'create_empty' method.
57938         (struct gl_oset_impl_base): Add dispose_fn field.
57939         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57940         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57941         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57942         values.
57943         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57944         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57945         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57946         dropped value.
57947         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57948         dropped value.
57949         * tests/test-array_oset.c (main): Update.
57950         * tests/test-avltree_oset.c (main): Update.
57951         * tests/test-rbtree_oset.c (main): Update.
57952         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57953
57954 2007-03-13  Bruno Haible  <bruno@clisp.org>
57955
57956         * tests/test-stdbool.c (i): Update after last patch.
57957
57958 2007-03-12  Bruno Haible  <bruno@clisp.org>
57959
57960         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57961         the iswprint macro. Needed on Solaris 2.5.1.
57962
57963 2007-03-12  Bruno Haible  <bruno@clisp.org>
57964
57965         * tests/test-printf-frexp.c (main): Declare x as volatile.
57966
57967 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57968
57969         * doc/gnulib.texi (Build robot for gnulib): New section.
57970
57971 2007-03-12  Jim Meyering  <jim@meyering.net>
57972
57973         * build-aux/bootstrap: New file.
57974         * build-aux/bootstrap.conf: New file, from coreutils.
57975
57976 2007-03-11  Bruno Haible  <bruno@clisp.org>
57977
57978         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57979
57980 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57981
57982         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57983         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57984         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57985
57986 2007-03-11  Bruno Haible  <bruno@clisp.org>
57987
57988         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57989         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57990
57991 2007-03-11  Bruno Haible  <bruno@clisp.org>
57992
57993         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57994         formula. Needed for SunPRO C 5.0.
57995
57996 2007-03-11  Bruno Haible  <bruno@clisp.org>
57997
57998         * modules/long-options (Depends-on): Add getopt.
57999
58000 2007-03-11  Bruno Haible  <bruno@clisp.org>
58001
58002         * modules/modechange (Depends-on): Add stdbool.
58003
58004 2007-03-11  Bruno Haible  <bruno@clisp.org>
58005
58006         * modules/i-ring (Depends-on): Add stdbool.
58007
58008 2007-03-11  Bruno Haible  <bruno@clisp.org>
58009
58010         * modules/gc-des (Depends-on): Add stdbool.
58011
58012 2007-03-11  Bruno Haible  <bruno@clisp.org>
58013
58014         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58015
58016 2007-03-11  Bruno Haible  <bruno@clisp.org>
58017
58018         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58019
58020 2007-03-11  Bruno Haible  <bruno@clisp.org>
58021
58022         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58023
58024 2007-03-11  Bruno Haible  <bruno@clisp.org>
58025
58026         * lib/vasnprintf.c (sprintf): Undefine.
58027
58028 2007-03-11  Bruno Haible  <bruno@clisp.org>
58029
58030         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58031         initializers in SunPRO C and Compaq C compilers.
58032
58033 2007-03-11  Bruno Haible  <bruno@clisp.org>
58034
58035         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58036         decrementing code ANSI C compliant.
58037
58038 2007-03-11  Bruno Haible  <bruno@clisp.org>
58039
58040         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58041         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58042
58043 2007-03-11  Bruno Haible  <bruno@clisp.org>
58044
58045         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58046         <stdbool.h> substitute doesn't pass.
58047
58048 2007-03-11  Bruno Haible  <bruno@clisp.org>
58049
58050         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58051
58052 2007-03-11  Bruno Haible  <bruno@clisp.org>
58053
58054         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58055         script, for submission to autobuild.josefsson.org.
58056
58057 2007-03-10  Bruno Haible  <bruno@clisp.org>
58058
58059         * modules/canonicalize-lgpl-tests: New file.
58060         * tests/test-canonicalize-lgpl.sh: New file.
58061         * tests/test-canonicalize-lgpl.c: New file.
58062
58063         * modules/c-strcase-tests: New file.
58064         * tests/test-c-strcase.sh: New file.
58065         * tests/test-c-strcasecmp.c: New file.
58066         * tests/test-c-strncasecmp.c: New file.
58067
58068         * modules/atexit-tests: New file.
58069         * tests/test-atexit.sh: New file.
58070         * tests/test-atexit.c: New file.
58071
58072 2007-03-10  Bruno Haible  <bruno@clisp.org>
58073
58074         * tests/test-binary-io.sh: Use temporary filenames that are not so
58075         likely to clash with those of other tests (in a parallel make).
58076         * tests/test-binary-io.c: Likewise.
58077
58078 2007-03-10  Bruno Haible  <bruno@clisp.org>
58079
58080         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58081         fallback; use #error instead.
58082         Suggested by Simon Josefsson.
58083
58084 2007-03-10  Bruno Haible  <bruno@clisp.org>
58085
58086         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58087         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58088         first and the last.
58089
58090 2007-03-10  Bruno Haible  <bruno@clisp.org>
58091
58092         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58093
58094 2007-03-10  Bruno Haible  <bruno@clisp.org>
58095
58096         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58097         "make distcheck".
58098         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58099         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58100         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58101
58102 2007-03-10  Bruno Haible  <bruno@clisp.org>
58103
58104         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58105         variable.
58106         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58107         variable.
58108
58109 2007-03-09  Eric Blake  <ebb9@byu.net>
58110         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58111
58112         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58113         types are not being provided by gnulib.
58114         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58115         types are supported.
58116
58117 2007-03-10  Bruno Haible  <bruno@clisp.org>
58118
58119         * lib/stdio_.h (__attribute__): New macro.
58120         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58121         vsprintf): Specify __attribute__ __format__ for GCC.
58122         Suggested by Eric Blake.
58123
58124 2007-03-09  Bruno Haible  <bruno@clisp.org>
58125
58126         * modules/printf-posix-tests: New file.
58127         * tests/test-printf-posix.sh: New file.
58128         * tests/test-printf-posix.c: New file.
58129
58130         * modules/printf-posix: New file.
58131         * lib/printf.c: New file.
58132         * m4/printf-posix-rpl.m4: New file.
58133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58134         REPLACE_PRINTF.
58135         * lib/stdio_.h (printf): New declaration.
58136         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58137         ____strfmon____): New macros.
58138         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58139         REPLACE_PRINTF.
58140
58141 2007-03-09  Bruno Haible  <bruno@clisp.org>
58142
58143         * tests/test-vasnprintf-posix2.sh: New file.
58144         * tests/test-vasnprintf-posix2.c: New file.
58145         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58146         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58147         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58148
58149         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58150         a locale dependent decimal point, rather than always '.'.
58151
58152 2007-03-09  Eric Blake  <ebb9@byu.net>
58153
58154         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58155         spite of platforms like Tandem/NSK that define it to -1.
58156
58157 2007-03-08  Bruno Haible  <bruno@clisp.org>
58158
58159         * modules/vprintf-posix-tests: New file.
58160         * tests/test-vprintf-posix.sh: New file.
58161         * tests/test-vprintf-posix.c: New file.
58162         * tests/test-printf-posix.h: New file.
58163
58164         * modules/vprintf-posix: New file.
58165         * lib/vprintf.c: New file.
58166         * m4/vprintf-posix.m4: New file.
58167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58168         REPLACE_VPRINTF.
58169         * lib/stdio_.h (vprintf): New declaration.
58170         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58171         REPLACE_VPRINTF.
58172
58173 2007-03-08  Bruno Haible  <bruno@clisp.org>
58174
58175         * modules/fprintf-posix-tests: New file.
58176         * tests/test-fprintf-posix.sh: New file.
58177         * tests/test-fprintf-posix.c: New file.
58178
58179         * modules/fprintf-posix: New file.
58180         * lib/fprintf.c: New file.
58181         * m4/fprintf-posix.m4: New file.
58182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58183         REPLACE_FPRINTF.
58184         * lib/stdio_.h (fprintf): New declaration.
58185         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58186         REPLACE_FPRINTF.
58187
58188 2007-03-08  Bruno Haible  <bruno@clisp.org>
58189
58190         * modules/vfprintf-posix-tests: New file.
58191         * tests/test-vfprintf-posix.sh: New file.
58192         * tests/test-vfprintf-posix.c: New file.
58193         * tests/test-fprintf-posix.h: New file.
58194         * tests/test-fprintf-posix.out: New file.
58195
58196         * modules/vfprintf-posix: New file.
58197         * lib/vfprintf.c: New file.
58198         * m4/vfprintf-posix.m4: New file.
58199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58200         REPLACE_VFPRINTF.
58201         * lib/stdio_.h (vfprintf): New declaration.
58202         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58203         REPLACE_VFPRINTF.
58204
58205 2007-03-08  Bruno Haible  <bruno@clisp.org>
58206
58207         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58208
58209 2007-03-08  Bruno Haible  <bruno@clisp.org>
58210
58211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58212         instead of 'expr' invocations.
58213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58218         Suggested by Paul Eggert.
58219
58220 2007-03-08  Bruno Haible  <bruno@clisp.org>
58221
58222         * modules/fseterr-tests: New file.
58223         * tests/test-fseterr.c: New file.
58224
58225         * modules/fseterr: New file.
58226         * lib/fseterr.h: New file.
58227         * lib/fseterr.c: New file.
58228
58229 2007-03-08  Bruno Haible  <bruno@clisp.org>
58230
58231         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58232         * lib/getopt_.h: Likewise.
58233         * lib/mbswidth.h: Likewise.
58234         * lib/setenv.h: Likewise.
58235         * lib/vasnprintf.h: Likewise.
58236         * lib/vasprintf.h: Likewise.
58237         * lib/verror.h: Likewise.
58238         * lib/xsetenv.h: Likewise.
58239         * lib/xvasprintf.h: Likewise.
58240
58241 2007-03-08  Jim Meyering  <jim@meyering.net>
58242
58243         * users.txt: Add parted.
58244
58245         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58246
58247 2007-03-07  Bruno Haible  <bruno@clisp.org>
58248
58249         * m4/printf.m4: Make the shell script snippets copy&pastable.
58250
58251 2007-03-02  Bruno Haible  <bruno@clisp.org>
58252
58253         * lib/netinet_in_.h: New file.
58254         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58255         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58256         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58257         (Depends-on): Add absolute-header.
58258         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58259         into netinet/in.h.
58260
58261 2007-03-03  Bruno Haible  <bruno@clisp.org>
58262
58263         * lib/sys_select_.h: New file.
58264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58265         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58266         * modules/sys_select (Files): Add lib/sys_select_.h.
58267         (Depends-on): Add absolute-header.
58268         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58269         into sys/select.h.
58270
58271 2007-03-02  Bruno Haible  <bruno@clisp.org>
58272
58273         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58274         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58275         values.
58276         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58277         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58278         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58279         * modules/sys_socket (Depends-on): Add absolute-header.
58280         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58281         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58282         (Include): Remove requirement of inclusion of <sys/types.h>.
58283
58284 2007-03-02  Bruno Haible  <bruno@clisp.org>
58285
58286         * lib/byteswap_.h (bswap_32): Fix formula.
58287
58288 2007-03-06  Bruno Haible  <bruno@clisp.org>
58289
58290         * modules/sprintf-posix-tests: New file.
58291         * tests/test-sprintf-posix.c: New file.
58292
58293         * modules/sprintf-posix: New file.
58294         * lib/sprintf.c: New file.
58295         * m4/sprintf-posix.m4: New file.
58296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58297         REPLACE_SPRINTF.
58298         * lib/stdio_.h (sprintf): New declaration.
58299         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58300         REPLACE_SPRINTF.
58301
58302 2007-03-06  Bruno Haible  <bruno@clisp.org>
58303
58304         * modules/vsprintf-posix-tests: New file.
58305         * tests/test-vsprintf-posix.c: New file.
58306         * tests/test-sprintf-posix.h: New file.
58307
58308         * modules/vsprintf-posix: New file.
58309         * lib/vsprintf.c: New file.
58310         * m4/vsprintf-posix.m4: New file.
58311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58312         REPLACE_VSPRINTF.
58313         * lib/stdio_.h (vsprintf): New declaration.
58314         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58315         REPLACE_VSPRINTF.
58316
58317 2007-03-06  Bruno Haible  <bruno@clisp.org>
58318
58319         * modules/vsnprintf (Depend-on): Remove minmax.
58320
58321 2007-03-06  Bruno Haible  <bruno@clisp.org>
58322
58323         * modules/snprintf-posix-tests: New file.
58324         * tests/test-snprintf-posix.c: New file.
58325
58326         * modules/snprintf-posix: New file.
58327         * m4/snprintf-posix.m4: New file.
58328         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58329         gl_FUNC_SNPRINTF.
58330         (gl_FUNC_SNPRINTF): Invoke it.
58331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58332         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58333         is set.
58334         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58335
58336 2007-03-06  Bruno Haible  <bruno@clisp.org>
58337
58338         * modules/vsnprintf-posix-tests: New file.
58339         * tests/test-vsnprintf-posix.c: New file.
58340         * tests/test-snprintf-posix.h: New file.
58341
58342         * modules/vsnprintf-posix: New file.
58343         * m4/vsnprintf-posix.m4: New file.
58344         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58345         gl_FUNC_VSNPRINTF.
58346         (gl_FUNC_VSNPRINTF): Invoke it.
58347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58348         * lib/stdio_.h (vsnprintf): Define as a replacement if
58349         REPLACE_VSNPRINTF is set.
58350         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58351
58352 2007-03-06  Bruno Haible  <bruno@clisp.org>
58353
58354         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58355         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58356
58357 2007-03-06  Bruno Haible  <bruno@clisp.org>
58358
58359         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58360         (asinl): Declare also if HAVE_DECL_ASINL is set.
58361         (atanl): Declare also if HAVE_DECL_ATANL is set.
58362         (ceill): Declare also if HAVE_DECL_CEILL is set.
58363         (cosl): Declare also if HAVE_DECL_COSL is set.
58364         (expl): Declare also if HAVE_DECL_EXPL is set.
58365         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58366         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58367         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58368         (logl): Declare also if HAVE_DECL_LOGL is set.
58369         (sinl): Declare also if HAVE_DECL_SINL is set.
58370         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58371         (tanl): Declare also if HAVE_DECL_TANL is set.
58372         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58374         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58375         declaration of frexpl, ldexpl.
58376         * modules/printf-frexpl (Depends-on): Add math.
58377         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58378
58379 2007-03-05  Bruno Haible  <bruno@clisp.org>
58380
58381         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58382         frexpl and ldexpl are declared.
58383         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58384
58385 2007-03-05  Bruno Haible  <bruno@clisp.org>
58386
58387         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58388         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58389
58390 2007-03-05  Bruno Haible  <bruno@clisp.org>
58391
58392         * lib/stdio_.h: Include <stddef.h>.
58393
58394 2007-03-05  Bruno Haible  <bruno@clisp.org>
58395
58396         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58397
58398 2007-03-05  Bruno Haible  <bruno@clisp.org>
58399
58400         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58401         NetBSD 4, from Ralf Wildenhues.
58402
58403 2007-03-04  Bruno Haible  <bruno@clisp.org>
58404
58405         * lib/vasprintf.h: Update #if logic for the case when the functions
58406         exist but are overridden.
58407
58408 2007-03-04  Bruno Haible  <bruno@clisp.org>
58409
58410         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58411         implementations: glibc-2.4 and MacOS X 10.3.
58412         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58413         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58414         * tests/test-vasprintf-posix.c (test_function): Likewise.
58415
58416 2007-03-04  Bruno Haible  <bruno@clisp.org>
58417
58418         * modules/vasprintf-posix-tests: New file.
58419         * tests/test-vasprintf-posix.c: New file.
58420
58421         * modules/vasprintf-posix: New file.
58422         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58423         defined.
58424         * m4/vasprintf-posix.m4: New file.
58425         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58426         gl_FUNC_VASPRINTF.
58427         (gl_FUNC_VASPRINTF): Invoke it.
58428         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58429         here.
58430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58431
58432 2007-03-04  Bruno Haible  <bruno@clisp.org>
58433
58434         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58435         REPLACE_GETTIMEOFDAY.
58436         * modules/sys_time (Makefile.am): Likewise.
58437         * m4/sys_time_h.m4: Likewise.
58438         * m4/gettimeofday.m4: Likewise.
58439
58440 2007-03-04  Bruno Haible  <bruno@clisp.org>
58441
58442         * modules/vasnprintf-posix-tests: New file.
58443         * tests/test-vasnprintf-posix.c: New file.
58444
58445         * modules/vasnprintf-posix: New file.
58446         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58447         printf-frexpl.h.
58448         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58449         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58450         REPLACE_VASNPRINTF is defined.
58451         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58452         gl_FUNC_VASNPRINTF.
58453         (gl_FUNC_VASNPRINTF): Invoke it.
58454         * m4/vasnprintf-posix.m4: New file.
58455         * m4/printf.m4: New file.
58456
58457 2007-03-04  Bruno Haible  <bruno@clisp.org>
58458
58459         Compile progreloc.c only if --enable-relocatable is specified.
58460         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58461         if --enable-relocatable was specified.
58462         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58463         lib_SOURCES.
58464
58465 2007-03-04  Jim Meyering  <jim@meyering.net>
58466
58467         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58468         Use it consistently, rather than enumerating errno constants.
58469
58470 2007-03-04  Bruno Haible  <bruno@clisp.org>
58471
58472         * modules/xvasprintf-tests: New file.
58473         * tests/test-xvasprintf.c: New file.
58474
58475         * modules/vasprintf-tests: New file.
58476         * tests/test-vasprintf.c: New file.
58477
58478         * modules/vasnprintf-tests: New file.
58479         * tests/test-vasnprintf.c: New file.
58480
58481         * modules/vsnprintf-tests: New file.
58482         * tests/test-vsnprintf.c: New file.
58483
58484         * modules/snprintf-tests: New file.
58485         * tests/test-snprintf.c: New file.
58486
58487 2007-03-04  Bruno Haible  <bruno@clisp.org>
58488
58489         Compile relocatable.c only if --enable-relocatable is specified.
58490         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58491         gl_RELOCATABLE_LIBRARY.
58492         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58493         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58494         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58495         gl_RELOCATABLE_LIBRARY.
58496         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58497         (Makefile.am): Remove lib_SOURCES.
58498         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58499         gl_RELOCATABLE_LIBRARY.
58500         (Makefile.am): Remove lib_SOURCES.
58501         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58502         always.
58503         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58504         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58505
58506 2007-03-04  Bruno Haible  <bruno@clisp.org>
58507
58508         * modules/argmatch-tests: New file.
58509         * tests/test-argmatch.c: New file.
58510
58511         * tests/test-allocsa.c (main): Halve the number of loop runs.
58512
58513         * modules/alloca-opt-tests: New file.
58514         * tests/test-alloca-opt.c: New file.
58515
58516 2007-03-04  Jim Meyering  <jim@meyering.net>
58517
58518         Work around difference between Linux ACLs and Solaris 10 ZFS.
58519         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58520         for EINVAL.
58521
58522 2007-03-03  Bruno Haible  <bruno@clisp.org>
58523
58524         * modules/relocatable-prog (Depends-on): Add back progreloc's
58525         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58526
58527 2007-03-03  Bruno Haible  <bruno@clisp.org>
58528
58529         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58530         * modules/relocatable-lib: New file.
58531
58532 2007-03-03  Bruno Haible  <bruno@clisp.org>
58533
58534         * modules/relocatable-prog: Renamed from modules/relocatable.
58535         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58536
58537 2007-03-03  Bruno Haible  <bruno@clisp.org>
58538
58539         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58540         m4/relocatable-lib.m4.
58541         (Depends-on): Remove 'relocatable'.
58542         (configure.ac): Add gl_RELOCATABLE_NOP.
58543
58544 2007-03-03  Bruno Haible  <bruno@clisp.org>
58545
58546         * modules/relocatable-prog-wrapper: New file.
58547         * modules/relocatable (Depends-on): Add it. Remove all other
58548         dependencies except progname.
58549         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58550
58551         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58552         (gl_FUNC_STRERROR): Nop.
58553         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58554
58555         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58556         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58557
58558         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58559         (gl_FUNC_READLINK): Update.
58560
58561         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58562
58563 2007-03-03  Bruno Haible  <bruno@clisp.org>
58564
58565         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58566         * modules/xreadlink (Depends-on): Add unistd.
58567         * modules/xreadlink-with-size (Depends-on): Likewise.
58568
58569 2007-03-03  Bruno Haible  <bruno@clisp.org>
58570
58571         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58572         extracted from gt_FUNC_SETENV.
58573         (gt_FUNC_SETENV): Remove macro.
58574         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58575         remove gt_FUNC_SETENV.
58576
58577 2007-03-03  Bruno Haible  <bruno@clisp.org>
58578
58579         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58580         ENABLE_RELOCATABLE here.
58581         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58582
58583 2007-03-03  Bruno Haible  <bruno@clisp.org>
58584
58585         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58586         * tests/test-rbtreehash_list.c: Include progname.h.
58587         (main): Call set_program_name.
58588
58589         * modules/rbtree-oset-tests (Depends-on): Add progname.
58590         * tests/test-rbtree_oset.c: Include progname.h.
58591         (main): Call set_program_name.
58592
58593         * modules/rbtree-list-tests (Depends-on): Add progname.
58594         * tests/test-rbtree_list.c: Include progname.h.
58595         (main): Call set_program_name.
58596
58597         * modules/linked-list-tests (Depends-on): Add progname.
58598         * tests/test-linked_list.c: Include progname.h.
58599         (main): Call set_program_name.
58600
58601 2007-03-03  Bruno Haible  <bruno@clisp.org>
58602
58603         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58604         All uses of __restrict changed to _Restrict_.
58605         * lib/glob_.h (__restrict): Remove macro.
58606
58607 2007-03-02  Bruno Haible  <bruno@clisp.org>
58608
58609         * modules/gettext (configure.ac): Require gettext infrastructure
58610         from version 0.16.1.
58611
58612 2007-03-02  Bruno Haible  <bruno@clisp.org>
58613
58614         * modules/linkedhash-list-tests (Depends-on): Add progname.
58615         * tests/test-linkedhash_list.c: Include progname.h.
58616         (main): Call set_program_name.
58617
58618         * modules/carray-list-tests (Depends-on): Add progname.
58619         * tests/test-carray_list.c: Include progname.h.
58620         (main): Call set_program_name.
58621
58622         * modules/avltreehash-list-tests (Depends-on): Add progname.
58623         * tests/test-avltreehash_list.c: Include progname.h.
58624         (main): Call set_program_name.
58625
58626         * modules/avltree-oset-tests (Depends-on): Add progname.
58627         * tests/test-avltree_oset.c: Include progname.h.
58628         (main): Call set_program_name.
58629
58630         * modules/avltree-list-tests (Depends-on): Add progname.
58631         * tests/test-avltree_list.c: Include progname.h.
58632         (main): Call set_program_name.
58633
58634         * modules/array-oset-tests (Depends-on): Add progname.
58635         * tests/test-array_oset.c: Include progname.h.
58636         (main): Call set_program_name.
58637
58638         * modules/array-list-tests (Depends-on): Add progname.
58639         * tests/test-array_list.c: Include progname.h.
58640         (main): Call set_program_name.
58641
58642         * modules/argp-tests (Depends-on): Add progname.
58643         * tests/test-argp.c: Include argp.h first. Include progname.h.
58644         (main): Call set_program_name.
58645
58646 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58647
58648         * doc/gnulib-tool.texi (Initial import): Reword description of
58649         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58650         limited effect even if defined after the first system include.
58651
58652 2007-03-01  Bruno Haible  <bruno@clisp.org>
58653
58654         * build-aux/config.libpath: Update to libtool-1.5.22.
58655         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58656
58657 2007-03-01  Bruno Haible  <bruno@clisp.org>
58658
58659         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58660         foo_CFLAGS.
58661         Reported by Ralf Wildenhues.
58662
58663 2007-03-01  Bruno Haible  <bruno@clisp.org>
58664
58665         * build-aux/install-reloc: Remove object files left over by some
58666         compilers.
58667         Reported by Ralf Wildenhues.
58668
58669 2007-03-01  Bruno Haible  <bruno@clisp.org>
58670
58671         * build-aux/install-reloc: Break long lines.
58672
58673 2007-03-01  Bruno Haible  <bruno@clisp.org>
58674
58675         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58676         Reported by Ralf Wildenhues.
58677
58678 2007-03-01  Bruno Haible  <bruno@clisp.org>
58679
58680         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58681         include ordering constraints.
58682
58683 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58684
58685         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58687         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58688         as another example.
58689         * lib/time_.h: Fix misspelling.
58690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58691         Require gl_HEADER_TIME_H_DEFAULTS.
58692         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58693         * m4/time_r.m4 (gl_TIME_R): Likewise.
58694         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58695
58696 2007-03-01  Bruno Haible  <bruno@clisp.org>
58697
58698         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58699         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58700
58701 2007-03-01  Jim Meyering  <jim@meyering.net>
58702
58703         * modules/xreadlink (Maintainer): Add my name.
58704         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58705
58706 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58707             Bruno Haible  <bruno@clisp.org>
58708
58709         * build-aux/install-reloc: Compile also c-ctype.c.
58710         * build-aux/relocatable.sh.in: New file.
58711         * doc/relocatable.texi: New file.
58712         * doc/relocatable-maint.texi: New file.
58713         * doc/gnulib.texi: Include relocatable-maint.texi.
58714         * lib/progreloc.c: Include unistd.h unconditionally.
58715         * lib/relocwrapper.c: Include unistd.h unconditionally.
58716         Include c-ctype.h.
58717         (add_dotbin): Use c_tolower.
58718         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58719         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58720         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58721         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58722         to m4/relocatable-lib.m4.
58723         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58724         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58725         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58726         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58727         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58728         * modules/relocatable: New file.
58729         * modules/relocatable-lib: New file.
58730         * modules/relocatable-script: New file.
58731
58732 2007-02-28  Bruno Haible  <bruno@clisp.org>
58733
58734         Import --enable-relocatable infrastructure.
58735         * build-aux/config.libpath: New file, from GNU gettext.
58736         * build-aux/install-reloc: New file, from GNU gettext.
58737         * build-aux/reloc-ldflags: New file, from GNU gettext.
58738         * lib/relocatable.h: New file, from GNU gettext.
58739         * lib/relocatable.c: New file, from GNU gettext.
58740         * lib/relocwrapper.c: New file, from GNU gettext.
58741         * m4/relocatable.m4: New file, from GNU gettext.
58742
58743 2007-02-28  Bruno Haible  <bruno@clisp.org>
58744
58745         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58746
58747         * modules/xreadlink: New file, from GNU gettext with modifications.
58748         * lib/xreadlink.c: New file, from GNU gettext.
58749         * lib/xreadlink.h: Add comments.
58750         (xreadlink): New declaration.
58751
58752         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58753         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58754         lib/xreadlink-with-size.c.
58755         (configure.ac): Remove gl_XREADLINK invocation.
58756         (Makefile.am): Augment lib_SOURCES.
58757         * m4/xreadlink.m4: Remove file.
58758         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58759         (xreadlink_with_size): Renamed from xreadink.
58760         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58761         * modules/canonicalize (Depends-on): Replace xreadlink with
58762         xreadlink-with-size.
58763         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58764
58765 2007-02-25  Jim Meyering  <jim@meyering.net>
58766
58767         * build-aux/announce-gen: When complaining about excess arguments,
58768         list them.
58769
58770 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58771
58772         * README: Document signed integer overflow situation more
58773         accurately.
58774
58775 2007-02-25  Bruno Haible  <bruno@clisp.org>
58776
58777         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58778         'a' or 'A' conversion.
58779
58780 2007-02-25  Bruno Haible  <bruno@clisp.org>
58781
58782         * modules/filename: Renamed from modules/pathname.
58783         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58784         lib/concatpath.c with lib/concat-filename.c.
58785         (Makefile.am): Update.
58786         (Include): Replace pathname.h with filename.h.
58787         * lib/filename.h: Renamed from lib/pathname.h.
58788         (concatenated_filename): Renamed from concatenated_pathname.
58789         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58790         (concatenated_filename): Renamed from concatenated_pathname.
58791         * lib/findprog.c: Include filename.h instead of pathname.h.
58792         (find_in_path): Update.
58793         * lib/javacomp.c: Include filename.h instead of pathname.h.
58794         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58795         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58796         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58797         is_oldgcj_14_13_usable, is_javac_usable): Update.
58798         * lib/javaexec.c: Include filename.h instead of pathname.h.
58799         (execute_java_class): Update.
58800         * modules/findprog: Update.
58801         * modules/javacomp: Update.
58802         * modules/javaexec: Update.
58803         * MODULES.html.sh (File system functions): Add 'filename', remove
58804         'pathname'.
58805
58806 2007-02-25  Bruno Haible  <bruno@clisp.org>
58807
58808         * modules/printf-frexpl-tests: New file.
58809         * tests/test-printf-frexpl.c: New file.
58810
58811         * modules/printf-frexpl: New file.
58812         * lib/printf-frexpl.h: New file.
58813         * lib/printf-frexpl.c: New file.
58814         * m4/printf-frexpl.m4: New file.
58815
58816 2007-02-25  Bruno Haible  <bruno@clisp.org>
58817
58818         * modules/printf-frexp-tests: New file.
58819         * tests/test-printf-frexp.c: New file.
58820
58821         * modules/printf-frexp: New file.
58822         * lib/printf-frexp.h: New file.
58823         * lib/printf-frexp.c: New file.
58824         * m4/printf-frexp.m4: New file.
58825
58826 2007-02-25  Bruno Haible  <bruno@clisp.org>
58827
58828         Assume automake >= 1.10 for the tests.
58829         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58830         * modules/arctwo-tests: Likewise.
58831         * modules/argp-tests: Likewise.
58832         * modules/avltree-list-tests: Likewise.
58833         * modules/avltree-oset-tests: Likewise.
58834         * modules/avltreehash-list-tests: Likewise.
58835         * modules/carray-list-tests: Likewise.
58836         * modules/crc-tests: Likewise.
58837         * modules/des-tests: Likewise.
58838         * modules/gc-arcfour-tests: Likewise.
58839         * modules/gc-arctwo-tests: Likewise.
58840         * modules/gc-des-tests: Likewise.
58841         * modules/gc-hmac-md5-tests: Likewise.
58842         * modules/gc-hmac-sha1-tests: Likewise.
58843         * modules/gc-md2-tests: Likewise.
58844         * modules/gc-md4-tests: Likewise.
58845         * modules/gc-md5-tests: Likewise.
58846         * modules/gc-pbkdf2-sha1-tests: Likewise.
58847         * modules/gc-rijndael-tests: Likewise.
58848         * modules/gc-sha1-tests: Likewise.
58849         * modules/gc-tests: Likewise.
58850         * modules/getaddrinfo-tests: Likewise.
58851         * modules/hmac-md5-tests: Likewise.
58852         * modules/hmac-sha1-tests: Likewise.
58853         * modules/linked-list-tests: Likewise.
58854         * modules/linkedhash-list-tests: Likewise.
58855         * modules/lock-tests: Likewise.
58856         * modules/md2-tests: Likewise.
58857         * modules/md4-tests: Likewise.
58858         * modules/md5-tests: Likewise.
58859         * modules/rbtree-list-tests: Likewise.
58860         * modules/rbtree-oset-tests: Likewise.
58861         * modules/rbtreehash-list-tests: Likewise.
58862         * modules/read-file-tests: Likewise.
58863         * modules/rijndael-tests: Likewise.
58864         * modules/stdint-tests: Likewise.
58865         * modules/tls-tests: Likewise.
58866
58867 2007-02-24  Bruno Haible  <bruno@clisp.org>
58868
58869         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58870         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58871         function; instead check whether isnan with a double argument links.
58872         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58873         function; instead check whether isnan with a 'long double' argument
58874         links.
58875         Reported by Eric Blake <ebb9@byu.net>.
58876
58877 2007-02-24  Bruno Haible  <bruno@clisp.org>
58878
58879         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58880         defined.
58881         * lib/isnanl.c: Remove all code. Just include isnan.c.
58882         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58883
58884 2007-02-25  Jim Meyering  <jim@meyering.net>
58885
58886         Avoid conflicting types for 'unsetenv' on FreeBSD.
58887         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58888         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58889         in stdlib.h.
58890
58891 2007-02-24  Bruno Haible  <bruno@clisp.org>
58892
58893         * modules/isnanl-nolibm-tests: New file.
58894         * tests/test-isnanl.c: New file.
58895
58896         * modules/isnanl-nolibm: New file.
58897         * lib/isnanl.h: New file.
58898         * lib/isnanl.c: New file.
58899         * m4/isnanl.m4: New file.
58900
58901 2007-02-24  Bruno Haible  <bruno@clisp.org>
58902
58903         * modules/isnan-nolibm-tests: New file.
58904         * tests/test-isnan.c: New file.
58905
58906         * modules/isnan-nolibm: New file.
58907         * lib/isnan.h: New file.
58908         * lib/isnan.c: New file.
58909         * m4/isnan.m4: New file.
58910
58911 2007-02-24  Bruno Haible  <bruno@clisp.org>
58912
58913         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58914         assume that an exponent fits in 20 bits.
58915
58916 2007-02-24  Jim Meyering  <jim@meyering.net>
58917
58918         * m4/regex.m4: Update the description of the configure-time option,
58919         --without-included-regex, to state accurately what the defaults are,
58920         and perhaps to give people an idea why using this option is risky.
58921
58922 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58923
58924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58925         loops on small arguments.  This attempts to avoid the problem
58926         Bruno Haible reported for AIX 4.3.2 in
58927         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58928
58929 2007-02-23  Bruno Haible  <bruno@clisp.org>
58930
58931         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58932         Needed for help2man.
58933
58934 2007-02-23  Karl Berry  <karl@gnu.org>
58935
58936         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58937         exists, foo.h should be cvs-ignored, not committed.
58938
58939 2007-02-23  Eric Blake  <ebb9@byu.net>
58940
58941         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58942         * lib/stat-time.h (includes): Likewise.
58943         * lib/utimecmp.c (includes): Likewise.
58944         * lib/utimens.h (includes): Likewise.
58945         * lib/getdate.y (includes): Also include "timespec.h" for use
58946         internal to the module.
58947         * modules/utimens (Depends-on): Revert yesterday's patch.
58948         * modules/nanosleep (Depends-on): Add missing dependency.
58949
58950 2007-02-22  Bruno Haible  <bruno@clisp.org>
58951
58952         * lib/glob.c: Don't include getlogin_r.h.
58953
58954 2007-02-22  Jim Meyering  <jim@meyering.net>
58955
58956         * modules/utimens (Depends-on): Add timespec, required for
58957         utimens.h's inclusion of timespec.h.
58958
58959 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58960
58961         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58962         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58963         Schwab in
58964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58965         I'll try to think of a better way to fix the Solaris problem.
58966
58967         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58968         like glibc; on Solaris 10, it fails with errno == EINVAL.
58969         POSIX says the behavior is unspecified if the first argument is NULL,
58970         so play it safe and never pass NULL to the system getcwd.
58971
58972 2007-02-21  Jim Meyering  <jim@meyering.net>
58973
58974         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58975         of gettimeofday.  It would conflict with the one now always
58976         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58977         an IRIX 6.5 build failure.
58978
58979 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58980
58981         Minor fixups to port to Solaris 10 with Sun C 5.8.
58982         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58983         * modules/getcwd (Depends-on): Add dirfd.
58984         * lib/putenv.c (putenv): #undef it.
58985         (rpl_putenv): New decl.
58986         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58987
58988 2007-02-20  Bruno Haible  <bruno@clisp.org>
58989
58990         * modules/stdio-tests: New file.
58991         * tests/test-stdio.c: New file.
58992
58993         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58994         (Depends-on): Add stdio.
58995         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58996         (Include): Use <stdio.h> instead of vsnprintf.h.
58997         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58998         HAVE_DECL_VSNPRINTF.
58999         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59000
59001         * modules/snprintf (Files): Remove lib/snprintf.h.
59002         (Depends-on): Add stdio.
59003         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59004         (Include): Use <stdio.h> instead of snprintf.h.
59005         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59006         HAVE_DECL_SNPRINTF.
59007         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59008         * lib/getaddrinfo.c: Likewise.
59009
59010         * modules/stdio: New file.
59011         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59012         * lib/snprintf.h: Remove file.
59013         * lib/vsnprintf.h: Remove file.
59014         * lib/.cppi-disable: Remove snprintf.h.
59015         * m4/stdio_h.m4: New file.
59016         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59017
59018 2007-02-20  Jim Meyering  <jim@meyering.net>
59019
59020         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59021         used by e.g., mingw.  From Bruno Haible.
59022
59023 2007-02-19  Bruno Haible  <bruno@clisp.org>
59024
59025         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59026         warnings.
59027         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59028
59029 2007-02-19  Bruno Haible  <bruno@clisp.org>
59030
59031         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59032         from mingw users.
59033
59034 2007-02-19  Bruno Haible  <bruno@clisp.org>
59035
59036         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59037         warnings.
59038         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59039
59040 2007-02-19  Jim Meyering  <jim@meyering.net>
59041
59042         Don't use FD after a successful "fdopendir (fd)".
59043         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59044         Reset it by calling dirfd on the just-obtained DIR*.
59045
59046         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59047         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59048
59049 2007-02-18  Bruno Haible  <bruno@clisp.org>
59050
59051         * lib/readlink.c: Include <unistd.h>.
59052         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59053         HAVE_READLINK.
59054         * modules/readlink (Depends-on): Add unistd.
59055         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59056         (Include): Add <unistd.h>.
59057
59058         * lib/getlogin_r.h: Remove file.
59059         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59060         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59061         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59062         HAVE_DECL_GETLOGIN_R.
59063         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59064         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59065         (Include): Use <unistd.h> instead of getlogin_r.h.
59066
59067         * lib/getcwd.h: Remove file.
59068         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59069         * lib/xgetcwd.c: Likewise.
59070         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59071         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59072         * modules/getcwd (Files): Remove lib/getcwd.h.
59073         (Depends-on): Add unistd.
59074         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59075         (Include): Use <unistd.h> instad of getcwd.h.
59076
59077         * lib/ftruncate.c: Include <unistd.h> first.
59078         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59079         Set HAVE_FTRUNCATE.
59080         * modules/ftruncate (Depends-on): Add unistd.
59081         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59082
59083         * lib/fchdir.c: Include <unistd.h> first.
59084         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59086         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59087         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59088         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59089
59090         * lib/dup2.c: Include <unistd.h> first.
59091         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59092         HAVE_DUP2.
59093         * modules/dup2 (Depends-on): Add unistd.
59094         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59095
59096         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59097         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59098         REPLACE_CHOWN. Don't define chown as a macro here.
59099         * modules/chown (Depends-on): Add unistd.
59100         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59101
59102         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59103         Add definition for GL_LINK_WARNING.
59104         (chown, dup2): New declarations.
59105         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59106         link warning.
59107         (ftruncate): New declaration.
59108         (getcwd): New declaration, taken from old getcwd.h.
59109         (getlogin_r): New declaration, taken from old getlogin_r.h.
59110         (readlink): New declaration.
59111         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59112         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59113         (gl_PREREQ_UNISTD): Remove macro.
59114         (gl_UNISTD_MODULE_INDICATOR): New macro.
59115         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59116         many new variables. Don't set UNISTD_H.
59117         * modules/unistd (Description): Change.
59118         (Depends-on): Add link-warning.
59119         (configure.ac): Update.
59120         (Makefile.am): Create unistd.h always. Substitute many new variables
59121         into it.
59122
59123 2007-02-18  Bruno Haible  <bruno@clisp.org>
59124
59125         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59126         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59127         HAVE_GETSUBOPT.
59128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59129         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59130         * lib/getsubopt.h: Remove file.
59131         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59132         (Depends-on): Add stdlib.
59133         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59134         (Includes): Use <stdlib.h> instead of getsubopt.h.
59135         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59136         Set HAVE_GETSUBOPT.
59137         * lib/getsubopt.c: Don't include getsubopt.h.
59138
59139 2007-02-18  Bruno Haible  <bruno@clisp.org>
59140
59141         * modules/fchdir (Depends-on): Add dup2.
59142
59143 2007-02-18  Bruno Haible  <bruno@clisp.org>
59144
59145         * lib/stdlib_.h: Handle glibc's special invocation convention
59146         specially.
59147
59148 2007-02-18  Bruno Haible  <bruno@clisp.org>
59149
59150         * modules/stdlib-tests: New file.
59151         * tests/test-stdlib.c: New file.
59152
59153         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59154         (Depends-on): Add stdlib.
59155         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59156         (Includes): Use <stdlib.h> instead of mkstemp.h.
59157         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59158         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59159         * lib/mkstemp.c: Don't include mkstemp.h.
59160         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59161         * lib/stdlib--.h: Don't include mkstemp.h.
59162
59163         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59164         (Depends-on): Add stdlib.
59165         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59166         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59167         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59168         HAVE_MKDTEMP.
59169         * lib/mkdtemp.c: Don't include mkdtemp.h.
59170         * lib/clean-temp.c: Don't include mkdtemp.h.
59171
59172         * modules/exit (Files): Remove lib/exit.h.
59173         (Depends-on): Add stdlib.
59174         (Makefile.am): Remove lib_SOURCES.
59175         (Include): Use <stdlib.h> instead of exit.h.
59176         * lib/argmatch.c: Don't include exit.h.
59177         * lib/execute.c: Likewise.
59178         * lib/pagealign_alloc.c: Likewise.
59179         * lib/pipe.c: Likewise.
59180         * lib/wait-process.c: Likewise.
59181         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59182         * lib/exitfail.c: Likewise.
59183         * lib/savewd.c: Likewise.
59184         * lib/xsetenv.c: Likewise.
59185
59186         * modules/stdlib: New file.
59187         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59188         and extra comments about mkstemp().
59189         * lib/exit.h: Remove file.
59190         * lib/mkdtemp.h: Remove file.
59191         * lib/mkstemp.h: Remove file.
59192         * m4/stdlib_h.m4: New file.
59193         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59194
59195 2007-02-18  Bruno Haible  <bruno@clisp.org>
59196
59197         * modules/math-tests: New file.
59198         * tests/test-math.c: New file.
59199
59200         * modules/math: New file.
59201         * modules/mathl (Files): Remove lib/mathl.h.
59202         (Depends-on): Add math.
59203         (Makefile.am): Don't mention mathl.h.
59204         (Include): Use <math.h> instead of mathl.h.
59205         * lib/math_.h: New file.
59206         * lib/mathl.h: Remove file.
59207         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59208         mathl.h.
59209         * lib/asinl.c: Likewise.
59210         * lib/atanl.c: Likewise.
59211         * lib/ceill.c: Likewise.
59212         * lib/cosl.c: Likewise.
59213         * lib/expl.c: Likewise.
59214         * lib/floorl.c: Likewise.
59215         * lib/frexpl.c: Likewise.
59216         * lib/ldexpl.c: Likewise.
59217         * lib/logl.c: Likewise.
59218         * lib/sincosl.c: Likewise.
59219         * lib/sinl.c: Likewise.
59220         * lib/sqrtl.c: Likewise.
59221         * lib/tanl.c: Likewise.
59222         * lib/trigl.c: Likewise.
59223         * m4/math_h.m4: New file.
59224         * MODULES.html.sh (Mathematics): Add math.
59225
59226 2007-02-17  Bruno Haible  <bruno@clisp.org>
59227
59228         * modules/wctype-tests: New file.
59229         * tests/test-wctype.c: New file.
59230
59231         * modules/wchar-tests: New file.
59232         * tests/test-wchar.c: New file.
59233
59234         * modules/unistd-tests: New file.
59235         * tests/test-unistd.c: New file.
59236
59237         * modules/time-tests: New file.
59238         * tests/test-time.c: New file.
59239
59240         * modules/sysexits-tests: New file.
59241         * tests/test-sysexits.c: New file.
59242
59243         * modules/sys_time-tests: New file.
59244         * tests/test-sys_time.c: New file.
59245
59246         * modules/sys_stat-tests: New file.
59247         * tests/test-sys_stat.c: New file.
59248
59249         * modules/sys_socket-tests: New file.
59250         * tests/test-sys_socket.c: New file.
59251
59252         * modules/sys_select-tests: New file.
59253         * tests/test-sys_select.c: New file.
59254
59255         * modules/string-tests: New file.
59256         * tests/test-string.c: New file.
59257
59258         * modules/stdbool-tests: New file.
59259         * tests/test-stdbool.c: New file.
59260
59261         * modules/netinet_in-tests: New file.
59262         * tests/test-netinet_in.c: New file.
59263
59264         * modules/inttypes-tests: New file.
59265         * tests/test-inttypes.c: New file.
59266
59267         * modules/fcntl-tests: New file.
59268         * tests/test-fcntl.c: New file.
59269
59270         * modules/byteswap-tests: New file.
59271         * tests/test-byteswap.c: New file.
59272
59273         * modules/arpa_inet-tests: New file.
59274         * tests/test-arpa_inet.c: New file.
59275
59276 2007-02-17  Bruno Haible  <bruno@clisp.org>
59277
59278         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59279         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59280         if the corresponding module is not enabled. Emit link warnings if
59281         the function is used nevertheless.
59282         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59283         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59284         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59285         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59286         * modules/inttypes (Depends-on): Add link-warning.
59287         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59288         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59289         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59290         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59291         * modules/imaxdiv (configure.ac): Likewise.
59292         * modules/strtoimax (configure.ac): Likewise.
59293         * modules/strtoumax (configure.ac): Likewise.
59294
59295 2007-02-17  Bruno Haible  <bruno@clisp.org>
59296
59297         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59298         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59299         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59300         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59301
59302 2007-02-17  Bruno Haible  <bruno@clisp.org>
59303
59304         * modules/link-warning: New file.
59305         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59306         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59307         * modules/string (Depends-on): Add link-warning.
59308         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59309         string.h.
59310         * MODULES.html.sh (Support for building libraries and executables): Add
59311         link-warning.
59312
59313 2007-02-17  Bruno Haible  <bruno@clisp.org>
59314
59315         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59316         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59317         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59318         long lines.
59319
59320 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59321             Bruno Haible  <bruno@clisp.org>
59322
59323         * modules/tmpfile: New file.
59324         * lib/tmpfile.c: New file.
59325         * m4/tmpfile.m4: New file.
59326         * MODULES.html.sh (func_all_modules): New section "Input/output".
59327
59328 2007-02-15  Bruno Haible  <bruno@clisp.org>
59329
59330         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59331         (supports_delete_on_close): New function.
59332         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59333
59334 2007-02-14  Bruno Haible  <bruno@clisp.org>
59335
59336         * modules/mbspcasecmp-tests: New file.
59337         * tests/test-mbspcasecmp.sh: New file.
59338         * tests/test-mbspcasecmp.c: New file.
59339
59340         New module mbspcasecmp.
59341         * modules/mbspcasecmp: New file.
59342         * lib/mbspcasecmp.c: New file.
59343         * lib/string_.h (strncasecmp): Change warning message.
59344         (mbspcasecmp): New declaration.
59345         * m4/mbspcasecmp.m4: New file.
59346         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59347         GNULIB_MBSPCASECMP.
59348         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59349         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59350
59351 2007-02-14  Bruno Haible  <bruno@clisp.org>
59352
59353         * modules/mbsncasecmp-tests: New file.
59354         * tests/test-mbsncasecmp.sh: New file.
59355         * tests/test-mbsncasecmp.c: New file.
59356
59357         New module mbsncasecmp.
59358         * modules/mbsncasecmp: New file.
59359         * lib/mbsncasecmp.c: New file.
59360         * lib/string_.h (mbsncasecmp): New declaration.
59361         * m4/mbsncasecmp.m4: New file.
59362         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59363         GNULIB_MBSNCASECMP.
59364         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59365         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59366
59367 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59368
59369         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59370         Verify that it doesn't overlap with our flags.
59371         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59372         do not have the desired effect in multibyte locales; instead, use
59373         mbscasecmp.
59374         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59375         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59376         we don't require GNU fnmatch ourselves (if our users require it, they
59377         should do so explicitly).
59378
59379         Fix regex code so it doesn't rely on strcasecmp.
59380         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59381         Otherwise, include gnulib's langinfo.h.
59382         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59383         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59384         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59385         * modules/regex (FILES): Remove m4/codeset.m4.
59386         (Depends-on): Add localcharset.  Remove strcase.
59387
59388 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59389
59390         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59391         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59392
59393 2007-02-13  Bruno Haible  <bruno@clisp.org>
59394
59395         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59396         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59397
59398 2007-02-12  Bruno Haible  <bruno@clisp.org>
59399
59400         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59401         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59402         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59403         time warning rather than a link error.
59404
59405 2007-02-12  Bruno Haible  <bruno@clisp.org>
59406
59407         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59408         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59409         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59410
59411 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59412
59413         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59414         args, not 2.
59415
59416 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59417
59418         New module 'time', so that apps can include <time.h> as per
59419         POSIX and GNU instead of separate include files like time_r.h
59420         and timegm.h.  This implementation tries out a simpler approach
59421         for replacing decls in standard include files (as compared to
59422         the string module), somewhat as an experiment.
59423
59424         * config/srclist.txt: Comment out mktime.c for now.
59425         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59426         since it doesn't apply any more.  Use generic wording instead.
59427         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59428         'time'.
59429         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59430         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59431         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59432         Don't include <sys/types.h>; no longer needed since we assume C89.
59433         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59434         * lib/strftime.c: Likewise.
59435         * lib/time_r.c: Likewise.
59436         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59437         * lib/nanosleep.c: Include <time.h> first, to check interface.
59438         * lib/strptime.c: Likewise.
59439         * lib/time_r.c: Likewise.
59440         * lib/timegm.c: Likewise.
59441         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59442         needed.
59443         * lib/timegm.c: Don't include timegm.h; no longer needed.
59444         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59445         time.h now handles any problems in that area.
59446         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59447         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59448         that time.h defines struct timespec.
59449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59450         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59451         handles that.
59452         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59453         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59454         needed.  Set REPLACE_LOCALTIME.
59455         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59456         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59457         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59458         nanosleep; time_h.m4 now does that.  Don't require
59459         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59460         module handles this now.
59461         * modules/getdate (Depends-on): Remove timespec.  Add time.
59462         * modules/nanosleep (Depends-on): Likewise.
59463         * modules/stat-time (Depends-on): Likewise.
59464         * modules/nanosleep (Include): Include time.h, not timespec.h.
59465         * modules/strptime (Files): Remove lib/strptime.h.
59466         (Depends-on): Add extensions, time.
59467         (Include): Include time.h, not strptime.h.
59468         * modules/time_r (Files): Remove lib/time_r.h.
59469         (Depends-on): Add time.
59470         (Include): Include time.h, not time_r.h.
59471         * modules/timegm: Likewise.
59472         * modules/timespec (Description): Now does timespec-related decls
59473         of our own, instead of struct timespec itself.
59474         (Depends-on): Add time; remove extensions.
59475         (Maintainer): Add self.
59476         * modules/utimecmp (Depends-on): Add time; remove timespec.
59477         * modules/utimens (Depends-on): Likewise.
59478         * modules/xnanosleep (Depends-on): Likewise.
59479
59480 2007-02-11  Bruno Haible  <bruno@clisp.org>
59481
59482         * lib/c-strstr.c: Include allocsa.h.
59483         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59484         * lib/c-strcasestr.c: Include allocsa.h.
59485         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59486         * lib/strcasestr.c: Include allocsa.h.
59487         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59488         * lib/mbsstr.c: Include allocsa.h.
59489         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59490         allocsa/freesa instead of malloc/free.
59491         * lib/mbscasestr.c: Include allocsa.h.
59492         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59493         allocsa/freesa instead of malloc/free.
59494         * modules/c-strstr (Depends-on): Add allocsa.
59495         * modules/c-strcasestr (Depends-on): Likewise.
59496         * modules/strcasestr (Depends-on): Likewise.
59497         * modules/mbsstr (Depends-on): Likewise.
59498         * modules/mbscasestr (Depends-on): Likewise.
59499
59500 2007-02-11  Bruno Haible  <bruno@clisp.org>
59501
59502         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59503
59504         * modules/mbsspn-tests: New file.
59505         * tests/test-mbsspn.sh: New file.
59506         * tests/test-mbsspn.c: New file.
59507
59508 2007-02-11  Bruno Haible  <bruno@clisp.org>
59509
59510         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59511
59512         * modules/mbspbrk-tests: New file.
59513         * tests/test-mbspbrk.sh: New file.
59514         * tests/test-mbspbrk.c: New file.
59515
59516 2007-02-11  Bruno Haible  <bruno@clisp.org>
59517
59518         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59519         unneeded cast.
59520
59521         * modules/mbscspn-tests: New file.
59522         * tests/test-mbscspn.sh: New file.
59523         * tests/test-mbscspn.c: New file.
59524
59525 2007-02-11  Bruno Haible  <bruno@clisp.org>
59526
59527         * modules/mbscasecmp-tests: New file.
59528         * tests/test-mbscasecmp.sh: New file.
59529         * tests/test-mbscasecmp.c: New file.
59530
59531 2007-02-11  Bruno Haible  <bruno@clisp.org>
59532
59533         Ensure O(n) worst-case complexity of mbscasestr.
59534         * lib/mbscasestr.c: Include stdbool.h.
59535         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59536         functions.
59537         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59538         the bookkeeping indicates that it's worth it.
59539         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59540
59541         * modules/mbscasestr-tests: New file.
59542         * tests/test-mbscasestr1.c: New file.
59543         * tests/test-mbscasestr2.sh: New file.
59544         * tests/test-mbscasestr2.c: New file.
59545         * tests/test-mbscasestr3.sh: New file.
59546         * tests/test-mbscasestr3.c: New file.
59547         * tests/test-mbscasestr4.sh: New file.
59548         * tests/test-mbscasestr4.c: New file.
59549         * m4/locale-tr.m4: New file.
59550
59551 2007-02-11  Bruno Haible  <bruno@clisp.org>
59552
59553         Ensure O(n) worst-case complexity of mbsstr.
59554         * lib/mbsstr.c: Include stdbool.h.
59555         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59556         functions.
59557         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59558         bookkeeping indicates that it's worth it.
59559         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59560
59561         * modules/mbsstr-tests: New file.
59562         * tests/test-mbsstr1.c: New file.
59563         * tests/test-mbsstr2.sh: New file.
59564         * tests/test-mbsstr2.c: New file.
59565         * tests/test-mbsstr3.sh: New file.
59566         * tests/test-mbsstr3.c: New file.
59567         * m4/locale-fr.m4: New file.
59568
59569 2007-02-11  Bruno Haible  <bruno@clisp.org>
59570
59571         * lib/mbsrchr.c (mbsrchr): Fix bug.
59572
59573         * modules/mbsrchr-tests: New file.
59574         * tests/test-mbsrchr.sh: New file.
59575         * tests/test-mbsrchr.c: New file.
59576
59577 2007-02-11  Bruno Haible  <bruno@clisp.org>
59578
59579         * lib/mbschr.c (mbschr): Fix bug.
59580
59581         * modules/mbschr-tests: New file.
59582         * tests/test-mbschr.sh: New file.
59583         * tests/test-mbschr.c: New file.
59584         * m4/locale-zh.m4: New file.
59585
59586 2007-02-11  Bruno Haible  <bruno@clisp.org>
59587
59588         Support for copying multibyte string iterators.
59589         * lib/mbiter.h: Include <string.h>.
59590         (mbiter_multi_copy): New function.
59591         (mbi_copy): New macro.
59592         * lib/mbuiter.h: Include <string.h>.
59593         (mbuiter_multi_copy): New function.
59594         (mbui_copy): New macro.
59595
59596 2007-02-11  Bruno Haible  <bruno@clisp.org>
59597
59598         New module mbslen.
59599         * modules/mbslen: New file.
59600         * lib/mbslen.c: New file.
59601         * lib/string_.h (mbslen): New declaration.
59602         * m4/mbslen.m4: New file.
59603         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59604         GNULIB_MBSLEN.
59605         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59606         * MODULES.html.sh (Internationalization functions): Add mbslen.
59607
59608 2007-02-11  Bruno Haible  <bruno@clisp.org>
59609
59610         Ensure O(n) worst-case complexity of strcasestr substitute.
59611         * lib/strcasestr.c: Include stdbool.h.
59612         (knuth_morris_pratt): New function.
59613         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59614         bookkeeping indicates that it's worth it.
59615         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59616
59617         * modules/strcasestr-tests: New file.
59618         * tests/test-strcasestr.c: New file.
59619
59620 2007-02-11  Bruno Haible  <bruno@clisp.org>
59621
59622         Ensure O(n) worst-case complexity of c_strcasestr.
59623         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59624         (knuth_morris_pratt): New function.
59625         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59626         the bookkeeping indicates that it's worth it.
59627         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59628
59629         * modules/c-strcasestr-tests: New file.
59630         * tests/test-c-strcasestr.c: New file.
59631
59632 2007-02-11  Bruno Haible  <bruno@clisp.org>
59633
59634         Ensure O(n) worst-case complexity of c_strstr.
59635         * lib/c-strstr.c: Include stdbool.h, string.h.
59636         (knuth_morris_pratt): New function.
59637         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59638         bookkeeping indicates that it's worth it.
59639         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59640
59641         * lib/c-strstr.c: Complete rewrite for maintainability.
59642
59643         * modules/c-strstr-tests: New file.
59644         * tests/test-c-strstr.c: New file.
59645
59646 2007-02-11  Bruno Haible  <bruno@clisp.org>
59647
59648         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59649         5.2.1 and earlier, whereby \055 was treated just like the range
59650         delimiter '-'.
59651         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59652
59653 2007-02-08  Bruno Haible  <bruno@clisp.org>
59654
59655         * modules/regex (Depends-on): Add stdbool.
59656         Reported by Dalibor Topic <robilad@kaffe.org>.
59657
59658 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59661         Prefer returning from main to exiting from it.
59662         Remove unnecessary parens after sizeof.
59663
59664 2007-02-05  Bruno Haible  <bruno@clisp.org>
59665
59666         New module mbssep.
59667         * modules/mbssep: New file.
59668         * lib/mbssep.c: New file.
59669         * lib/string_.h (strsep): Add a conditional link warning.
59670         (mbssep): New declaration.
59671         * m4/mbssep.m4: New file.
59672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59673         GNULIB_MBSSEP.
59674         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59675         * MODULES.html.sh (Internationalization functions): Add mbssep.
59676
59677 2007-02-05  Bruno Haible  <bruno@clisp.org>
59678
59679         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59680         Optimize search in case of 1 delimiter.
59681
59682 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59683
59684         * lib/acl.h: Include sys/types.h before sys/acl.h.
59685
59686 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59687
59688         Merge upstream fix for glibc bugzilla #3957:
59689
59690         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59691
59692         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59693         bit for RE_HAT_LISTS_NOT_NEWLINE.
59694         (build_charclass_op): Remove bogus comment.
59695
59696 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59697
59698         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59699
59700 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59701
59702         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59703         * lib/memmem.c [!defined _LIBC]: Include config.h.
59704
59705 2007-02-04  Bruno Haible  <bruno@clisp.org>
59706
59707         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59708         warning message.
59709
59710 2007-02-04  Bruno Haible  <bruno@clisp.org>
59711
59712         New module mbstok_r.
59713         * modules/mbstok_r: New file.
59714         * lib/mbstok_r.c: New file.
59715         * lib/string_.h (strtok_r): Change argument names to match the
59716         comments. Add a conditional link warning.
59717         (mbstok_r): New declaration.
59718         * m4/mbstok_r.m4: New file.
59719         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59720         GNULIB_MBSTOK_R.
59721         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59722         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59723
59724 2007-02-04  Bruno Haible  <bruno@clisp.org>
59725
59726         New module mbsspn.
59727         * modules/mbsspn: New file.
59728         * lib/mbsspn.c: New file.
59729         * lib/string_.h (strspn): Add a conditional link warning.
59730         (mbsspn): New declaration.
59731         * m4/mbsspn.m4: New file.
59732         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59733         GNULIB_MBSSPN.
59734         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59735         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59736
59737 2007-02-04  Bruno Haible  <bruno@clisp.org>
59738
59739         New module mbspbrk.
59740         * modules/mbspbrk: New file.
59741         * lib/mbspbrk.c: New file.
59742         * lib/string_.h (strpbrk): Add a conditional link warning.
59743         (mbspbrk): New declaration.
59744         * m4/mbspbrk.m4: New file.
59745         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59746         GNULIB_MBSPBRK.
59747         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59748         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59749
59750 2007-02-04  Bruno Haible  <bruno@clisp.org>
59751
59752         New module mbscspn.
59753         * modules/mbscspn: New file.
59754         * lib/mbscspn.c: New file.
59755         * lib/string_.h (strcspn): Add a conditional link warning.
59756         (mbscspn): New declaration.
59757         * m4/mbscspn.m4: New file.
59758         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59759         GNULIB_MBSCSPN.
59760         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59761         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59762
59763 2007-02-04  Bruno Haible  <bruno@clisp.org>
59764
59765         New module mbscasestr, reduced goal of strcasestr.
59766         * modules/mbscasestr: New file.
59767         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59768         (mbscasestr): Renamed from strcasestr.
59769         * lib/strcasestr.c: Don't include mbuiter.h.
59770         (strcasestr): Remove support for multibyte locales.
59771         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59772         Change the conditional link warning.
59773         (mbscasestr): New declaration.
59774         * m4/mbscasestr.m4: New file.
59775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59776         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59777         REPLACE_STRCASESTR.
59778         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59780         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59781         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59782         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59783         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59784         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59785         (Depends-on): Remove mbuiter.
59786         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59787
59788 2007-02-04  Bruno Haible  <bruno@clisp.org>
59789
59790         Simplify handling of strncasecmp.
59791         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59792         the conditional link warning.
59793         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59794         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59795         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59796         * modules/strcase (configure.ac): Don't invoke
59797         gl_STRING_MODULE_INDICATOR.
59798         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59799
59800 2007-02-04  Bruno Haible  <bruno@clisp.org>
59801
59802         New module mbscasecmp, reduced goal of strcasecmp.
59803         * modules/mbscasecmp: New file.
59804         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59805         (mbscasecmp): Renamed from strcasecmp.
59806         * lib/strcasecmp.c: Don't include mbuiter.h.
59807         (strcasecmp): Remove support for multibyte locales.
59808         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59809         Change the conditional link warning.
59810         (mbscasecmp): New declaration.
59811         * m4/mbscasecmp.m4: New file.
59812         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59813         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59814         REPLACE_STRCASECMP.
59815         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59817         GNULIB_MBSCASECMP.
59818         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59819         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59820         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59821         (Depends-on): Remove mbuiter.
59822         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59823
59824 2007-02-04  Bruno Haible  <bruno@clisp.org>
59825
59826         New module mbsstr. Remove module strstr.
59827         * modules/mbsstr: New file.
59828         * modules/strstr: Remove file.
59829         * lib/mbsstr.c: Renamed from lib/strstr.c.
59830         (mbsstr): Renamed from strstr.
59831         * lib/string_.h (strstr): Remove declaration. Change the conditional
59832         link warning.
59833         (mbsstr): New declaration.
59834         * m4/mbsstr.m4: New file.
59835         * m4/strstr.m4: Remove file.
59836         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59837         REPLACE_STRSTR.
59838         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59839         Don't initialize GNULIB_STRSTR.
59840         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59841         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59842         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59843         (Support for systems lacking ANSI C 89): Remove strstr.
59844
59845 2007-02-04  Bruno Haible  <bruno@clisp.org>
59846
59847         New module mbsrchr.
59848         * modules/mbsrchr: New file.
59849         * lib/mbsrchr.c: New file.
59850         * lib/string_.h (strrchr): Add a conditional link warning.
59851         (mbsrchr): New declaration.
59852         * m4/mbsrchr.m4: New file.
59853         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59854         GNULIB_MBSRCHR.
59855         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59856         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59857
59858 2007-02-04  Bruno Haible  <bruno@clisp.org>
59859
59860         New module mbschr.
59861         * modules/mbschr: New file.
59862         * lib/mbschr.c: New file.
59863         * lib/string_.h (strchr): Add a conditional link warning.
59864         (mbschr): New declaration.
59865         * m4/mbschr.m4: New file.
59866         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59867         GNULIB_MBSCHR.
59868         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59869         * MODULES.html.sh (Internationalization functions): Add mbschr.
59870
59871 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59872
59873         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59874
59875         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59876
59877 2007-02-04  Bruno Haible  <bruno@clisp.org>
59878
59879         New module description section 'configure.ac-early'.
59880         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59881         (func_get_autoconf_early_snippet): New function.
59882         (func_import, func_create_testdir): Use it. Remove special cases for
59883         modules 'extensions' and 'lock'.
59884         * modules/extensions (configure.ac-early): Require
59885         gl_USE_SYSTEM_EXTENSIONS.
59886         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59887
59888 2007-02-04  Bruno Haible  <bruno@clisp.org>
59889
59890         Make use of gcj-4.3's -fsource and -ftarget option.
59891         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59892         and if so try the options -fsource and -ftarget.
59893         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59894         source_version, ftarget_option, target_version arguments.
59895         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59896         (is_envjavac_oldgcj_14_14_usable): Renamed from
59897         is_envjavac_gcj_14_14_usable.
59898         (is_envjavac_oldgcj_14_13_usable): Renamed from
59899         is_envjavac_gcj_14_13_usable.
59900         (is_gcj_present): Update.
59901         (is_gcj_43, is_gcj43_usable): New functions.
59902         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59903         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59904         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59905         try the options -fsource and -ftarget.
59906
59907 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59908
59909         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59910         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59911         larger value.
59912
59913 2007-02-03  Jim Meyering  <jim@meyering.net>
59914
59915         Give tools a better chance to allocate space for very large buffers.
59916         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59917
59918         Make pwd and readlink work also when run with an unreadable parent dir
59919         on systems with openat support.
59920         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59921         provided getcwd function, even when we have openat support.
59922         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59923
59924 2007-02-02  Bruno Haible  <bruno@clisp.org>
59925
59926         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59927         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59928         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59929         portability problems if one of these functions is only used on specific
59930         platforms.
59931         Reported by Paul Eggert.
59932
59933 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59934
59935         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59936         is causing more trouble than it's curing.
59937         * lib/regex_internal.h (__mempcpy): Remove.
59938         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59939         (and make the code a tad smaller to boot).
59940         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59941
59942 2007-02-02  Jim Meyering  <jim@meyering.net>
59943
59944         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59945         section, not in the Makefile.am: one.
59946
59947 2007-02-02  Eric Blake  <ebb9@byu.net>
59948
59949         * lib/strchrnul.c: Always include config.h first.
59950
59951         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59952         gnulib strstr is not necessary here.
59953
59954 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59955
59956         * m4/socklen.m4: Fix typo.
59957
59958 2007-02-02  Eric Blake  <ebb9@byu.net>
59959
59960         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59961         * modules/netinet_in (Makefile.am): Likewise.
59962
59963 2007-02-01  Bruno Haible  <bruno@clisp.org>
59964
59965         * lib/string_.h (GL_LINK_WARNING): New macro.
59966         (strcasecmp, strstr, strcasestr): If provided by the system,
59967         conditionally define as a macro that leads to a warning instead of to
59968         an error.
59969         (strncasecmp): Conditionally define as a macro that leads to a warning.
59970
59971 2007-02-01  Karl Berry  <karl@gnu.org>
59972
59973         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59974
59975 2007-02-01  Bruno Haible  <bruno@clisp.org>
59976
59977         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59978         renamings.
59979
59980 2007-02-01  Eric Blake  <ebb9@byu.net>
59981
59982         * modules/regex (Depends-on): Revert dependence on mempcpy.
59983         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59984         module's definition of mempcpy.
59985         Reported by Paul Eggert.
59986
59987 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59988
59989         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59990         the symbol XYZ before redefining it.  This fixes a problem with
59991         programs that don't use XYZ, when compiled on systems that define
59992         XYZ to something else.
59993
59994 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59995
59996         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59997         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59998         writeable to group or other and (2) is intended to have a special
59999         mode bit that is set or cleared.  In such a case, the directory
60000         should be neither group- nor other-writeable until the special
60001         mode bits are right.
60002
60003 2007-01-31  Eric Blake  <ebb9@byu.net>
60004
60005         * modules/mountlist (Depends-on): Add strstr.
60006
60007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60008         bug.
60009         * modules/string (Makefile.am): Remove redundant replacement.
60010         * modules/regex (Depends-on): Add mempcpy.
60011
60012 2007-01-31  Bruno Haible  <bruno@clisp.org>
60013
60014         New module description field 'Link'.
60015         * gnulib-tool (func_usage): Document --extract-link-directive.
60016         (sed_extract_prog): Recognize 'Link' directive.
60017         (func_get_link_directive): New function.
60018         (func_import): Show summary of link directives.
60019         Handle --extract-link-directive option.
60020         * modules/acl (Link): New section.
60021         * modules/clock-time (Link): New section.
60022         * modules/euidaccess (Link): New section.
60023         * modules/gettext (Link): New section.
60024         * modules/iconv (Link): New section.
60025         * modules/lock (Link): New section.
60026         * modules/nanosleep (Link): New section.
60027         * modules/readline (Link): New section.
60028
60029 2007-01-27  Bruno Haible  <bruno@clisp.org>
60030
60031         Enforce the use of gnulib modules for unportable <string.h> functions.
60032         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60033         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60034         (gl_HEADER_STRING_H_BODY): Require it.
60035         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60036         the symbol XYZ to one that gives a link error.
60037         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60038         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60039         * modules/mempcpy (configure.ac): Likewise.
60040         * modules/memrchr (configure.ac): Likewise.
60041         * modules/stpcpy (configure.ac): Likewise.
60042         * modules/stpncpy (configure.ac): Likewise.
60043         * modules/strcase (configure.ac): Likewise.
60044         * modules/strcasestr (configure.ac): Likewise.
60045         * modules/strchrnul (configure.ac): Likewise.
60046         * modules/strdup (configure.ac): Likewise.
60047         * modules/strndup (configure.ac): Likewise.
60048         * modules/strnlen (configure.ac): Likewise.
60049         * modules/strpbrk (configure.ac): Likewise.
60050         * modules/strsep (configure.ac): Likewise.
60051         * modules/strstr (configure.ac): Likewise.
60052         * modules/strtok_r (configure.ac): Likewise.
60053
60054 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60055
60056         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60057
60058 2007-01-30  Jim Meyering  <jim@meyering.net>
60059
60060         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60061
60062 2007-01-29  Bruno Haible  <bruno@clisp.org>
60063
60064         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60065         * lib/execute.c: Likewise.
60066         * lib/pipe.c: Likewise.
60067         * lib/printf-args.h: Likewise.
60068         * lib/printf-args.c: Likewise.
60069         * lib/printf-parse.c: Likewise.
60070         * lib/vasnprintf.c: Likewise.
60071
60072 2007-01-29  Eric Blake  <ebb9@byu.net>
60073
60074         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60075         declaration.
60076
60077 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60078
60079         * lib/strptime.h (strptime): Use 'restrict' for args where
60080         POSIX requires this.
60081         * lib/strptime.c (strptime): Likewise.
60082         Change license notice from LGPL to GPL, since gnulib-tool will
60083         change this as needed.
60084         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60085         defined.
60086         Include "strptime.h" first, to check interface.
60087         Do not #undef _LIBC and _NL_CURRENT.
60088         Do not include <stdlib.h>; no longer needed.
60089         Include "time_r.h" and declare ptime_locale_status
60090         only if _LIBC is not defined.
60091         (__P): Remove unused macro.
60092         (match_string): Bring back glibc version, but use it only if _LIBC
60093         is defined.
60094         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60095         Remove unnecessary assertion and abort() call.
60096         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60097         * m4/strptime.m4: Fix serial number comment.
60098         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60099         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60100         (Depends-on): Add time_r.
60101
60102 2007-01-29  Bruno Haible  <bruno@clisp.org>
60103
60104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60105         strptime.
60106         * modules/strptime (Depends-on): Add stdbool.
60107         * lib/strptime.h: Include <time.h> always. Add comments.
60108
60109 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60110
60111         * modules/strptime: New file.
60112         * lib/strptime.h: New file.
60113         * lib/strptime.c: New file.
60114         * m4/strptime.m4: New file.
60115
60116 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60117
60118         * MODULES.html.sh: New module mpsort.
60119         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60120
60121         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60122         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60123         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60124         All uses changed.
60125         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60126         All uses changed.
60127         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60128         to _Restrict_.
60129         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60130         the parameter matches the prototype.
60131
60132 2007-01-28  Jim Meyering  <jim@meyering.net>
60133
60134         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60135         sys/time.h here, reverting that part of the previous patch:
60136         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60137
60138 2007-01-28  Bruno Haible  <bruno@clisp.org>
60139
60140         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60141         value of $(SYS_TIME_H).
60142         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60143         remove it conditionally, too. [added by Jim Meyering]
60144         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60145         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60146         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60147         GETTIMEOFDAY_REPLACEMENT to 1.
60148
60149 2007-01-28  Bruno Haible  <bruno@clisp.org>
60150
60151         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60152         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60154         Set UNISTD_H instead of UNISTD_H2.
60155         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60156
60157 2007-01-28  Bruno Haible  <bruno@clisp.org>
60158
60159         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60160         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60161
60162 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60163
60164         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60165         (func_create_testdir): Ensure C locale for `grep' and `tr'
60166         character ranges.
60167         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60168         ACLOCAL_AMFLAGS parsing state machine.
60169
60170 2007-01-27  Bruno Haible  <bruno@clisp.org>
60171
60172         * modules/unistr/base: Update.
60173
60174 2007-01-27  Bruno Haible  <bruno@clisp.org>
60175
60176         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60177         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60178         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60179         modules/unistr/u32-mbtouc.
60180         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60181         * lib/unistr.h: Update.
60182         * lib/linebreak.c: Update.
60183         * modules/unistr/u32-mbtouc: Renamed from
60184         modules/unistr/u32-mbtouc-safe.
60185         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60186         * lib/unistr.h: Update.
60187         * lib/unistr/u32-to-u8.c: Update.
60188         * lib/unistr/u32-to-u16.c: Update.
60189
60190 2007-01-27  Bruno Haible  <bruno@clisp.org>
60191
60192         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60193         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60194         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60195         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60196         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60197         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60198         modules/unistr/u16-mbtouc.
60199         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60200         * lib/unistr.h: Update.
60201         * lib/linebreak.c: Update.
60202         * modules/linebreak: Update.
60203         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60204         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60205         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60206         * modules/unistr/u16-mbtouc: Renamed from
60207         modules/unistr/u16-mbtouc-safe.
60208         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60209         * lib/unistr.h: Update.
60210         * lib/unistr/u16-to-u8.c: Update.
60211         * modules/unistr/u16-to-u8: Update.
60212         * lib/unistr/u16-to-u32.c: Update.
60213         * modules/unistr/u16-to-u32: Update.
60214
60215 2007-01-27  Bruno Haible  <bruno@clisp.org>
60216
60217         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60218         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60219         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60220         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60221         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60222         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60223         modules/unistr/u8-mbtouc.
60224         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60225         * lib/unistr.h: Update.
60226         * lib/striconveh.c: Update.
60227         * modules/striconveh: Update.
60228         * lib/linebreak.c: Update.
60229         * modules/linebreak: Update.
60230         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60231         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60232         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60233         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60234         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60235         * lib/unistr.h: Update.
60236         * lib/striconveh.c: Update.
60237         * modules/striconveh: Update.
60238         * lib/unistr/u8-to-u16.c: Update.
60239         * modules/unistr/u8-to-u16: Update.
60240         * lib/unistr/u8-to-u32.c: Update.
60241         * modules/unistr/u8-to-u32: Update.
60242
60243 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60244
60245         Sync from Libtool.
60246         * lib/argz.c: Do not include strings.h nor memory.h, include
60247         string.h unconditionally.  Patch by Simon Josefsson.
60248
60249 2007-01-27  Bruno Haible  <bruno@clisp.org>
60250
60251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60252         from gl_HEADER_STRING_H_BODY.
60253         (gl_HEADER_STRING_H_BODY): Require it.
60254         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60255         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60256         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60257         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60258         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60259         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60260         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60261         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60262         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60263         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60264         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60265         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60266         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60267         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60268         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60269
60270 2007-01-27  Bruno Haible  <bruno@clisp.org>
60271
60272         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60273         check_PROGRAMS into noinst_PROGRAMS.
60274         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60275         check_PROGRAMS in this case.
60276         (func_import): Set for_test to false.
60277         (func_create_testdir): Set for_test to true.
60278
60279 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60280             Bruno Haible  <bruno@clisp.org>
60281
60282         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60283         (Depends-on): Add string.
60284         (Includes): Use <string.h> instead of strcasestr.h.
60285         * modules/string (Makefile.am): Also substitute the value of
60286         REPLACE_STRCASESTR.
60287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60288         assume strcasestr is declared in <string.h> not <strings.h>. Also
60289         set REPLACE_STRCASESTR.
60290         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60291         REPLACE_STRCASESTR.
60292         * lib/strcasestr.h: Remove file.
60293         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60294         * lib/string_.h (strcasestr): New declaration.
60295
60296 2007-01-27  Bruno Haible  <bruno@clisp.org>
60297
60298         * lib/string_.h: Use 'extern'.
60299
60300 2007-01-27  Jim Meyering  <jim@meyering.net>
60301
60302         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60303         of set-but-not-used local, "q".
60304
60305         * lib/mempcpy.c: Include <config.h> before <string.h>.
60306         This fixes a compilation error on HP-UX, due to the system's
60307         "restrict"-using mempcpy prototype.
60308
60309 2007-01-26  Bruno Haible  <bruno@clisp.org>
60310
60311         Small optimization.
60312         * lib/javacomp.c: Include c-strstr.h.
60313          (is_envjavac_gcj): Use c_strstr instead of strstr.
60314         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60315
60316 2007-01-26  Bruno Haible  <bruno@clisp.org>
60317
60318         * MODULES.html.sh (Unicode string functions): Add the new modules.
60319
60320         * modules/uniconv/u32-strconv-to-locale: New file.
60321         * lib/uniconv/u32-strconv-to-locale.c: New file.
60322
60323         * modules/uniconv/u16-strconv-to-locale: New file.
60324         * lib/uniconv/u16-strconv-to-locale.c: New file.
60325
60326         * modules/uniconv/u8-strconv-to-locale: New file.
60327         * lib/uniconv/u8-strconv-to-locale.c: New file.
60328
60329         * modules/uniconv/u32-strconv-from-locale: New file.
60330         * lib/uniconv/u32-strconv-from-locale.c: New file.
60331
60332         * modules/uniconv/u16-strconv-from-locale: New file.
60333         * lib/uniconv/u16-strconv-from-locale.c: New file.
60334
60335         * modules/uniconv/u8-strconv-from-locale: New file.
60336         * lib/uniconv/u8-strconv-from-locale.c: New file.
60337
60338         * modules/uniconv/u32-strconv-to-enc: New file.
60339         * lib/uniconv/u32-strconv-to-enc.c: New file.
60340         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60341         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60342
60343         * modules/uniconv/u16-strconv-to-enc: New file.
60344         * lib/uniconv/u16-strconv-to-enc.c: New file.
60345         * lib/uniconv/u-strconv-to-enc.h: New file.
60346         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60347         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60348
60349         * modules/uniconv/u8-strconv-to-enc: New file.
60350         * lib/uniconv/u8-strconv-to-enc.c: New file.
60351         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60352         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60353
60354         * modules/uniconv/u32-strconv-from-enc: New file.
60355         * lib/uniconv/u32-strconv-from-enc.c: New file.
60356         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60357         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60358
60359         * modules/uniconv/u16-strconv-from-enc: New file.
60360         * lib/uniconv/u16-strconv-from-enc.c: New file.
60361         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60362         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60363
60364         * modules/uniconv/u8-strconv-from-enc: New file.
60365         * lib/uniconv/u8-strconv-from-enc.c: New file.
60366         * lib/uniconv/u-strconv-from-enc.h: New file.
60367         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60368         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60369
60370         * modules/uniconv/u32-conv-from-enc: New file.
60371         * lib/uniconv/u32-conv-from-enc.c: New file.
60372         * modules/uniconv/u32-conv-from-enc-tests: New file.
60373         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60374
60375         * modules/uniconv/u16-conv-from-enc: New file.
60376         * lib/uniconv/u16-conv-from-enc.c: New file.
60377         * lib/uniconv/u-conv-from-enc.h: New file.
60378         * modules/uniconv/u16-conv-from-enc-tests: New file.
60379         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60380
60381         * modules/uniconv/u8-conv-from-enc: New file.
60382         * lib/uniconv/u8-conv-from-enc.c: New file.
60383         * modules/uniconv/u8-conv-from-enc-tests: New file.
60384         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60385
60386         * modules/uniconv/base: New file.
60387         * lib/uniconv.h: New file.
60388
60389 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60390
60391         * doc/gnulib-tool.texi (Initial import): Update to match current
60392         behavior with strdup module.
60393         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60394         * lib/memmem.h: Remove; all uses removed.  This is now done
60395         by <string.h>.
60396         * lib/mempcpy.h: Likewise.
60397         * lib/memrchr.h: Likewise.
60398         * lib/stpcpy.h: Likewise.
60399         * lib/stpncpy.h: Likewise.
60400         * lib/strcase.h: Likewise.
60401         * lib/strchrnul.h: Likewise.
60402         * lib/strdup.h: Likewise.
60403         * lib/strndup.h: Likewise.
60404         * lib/strnlen.h: Likewise.
60405         * lib/strpbrk.h: Likewise.
60406         * lib/strsep.h: Likewise.
60407         * lib/strstr.h: Likewise.
60408         * lib/strtok_r.h: Likewise.
60409         * lib/string_.h: New file.
60410         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60411         Rely on <string.h> instead.
60412         * lib/canon-host.c: Likewise.
60413         * lib/chdir-long.c: Likewise.
60414         * lib/concatpath.c: Likewise.
60415         * lib/exclude.c: Likewise.
60416         * lib/fchdir.c: Likewise.
60417         * lib/getaddrinfo.c: Likewise.
60418         * lib/getcwd.c: Likewise.
60419         * lib/getsubopt.c: Likewise.
60420         * lib/glob.c: Likewise.
60421         * lib/hard-locale.c: Likewise.
60422         * lib/iconvme.c: Likewise.
60423         * lib/javacomp.c: Likewise.
60424         * lib/mempcpy.c: Likewise.
60425         * lib/memrchr.c: Likewise.
60426         * lib/regex_internal.h: Likewise.
60427         * lib/stpncpy.c: Likewise.
60428         * lib/strcasecmp.c: Likewise.
60429         * lib/strchrnul.c: Likewise.
60430         * lib/strdup.c: Likewise.
60431         * lib/striconv.c: Likewise.
60432         * lib/striconveh.c: Likewise.
60433         * lib/striconveha.c: Likewise.
60434         * lib/strncasecmp.c: Likewise.
60435         * lib/strndup.c: Likewise.
60436         * lib/strnlen.c: Likewise.
60437         * lib/strsep.c: Likewise.
60438         * lib/strstr.c: Likewise.
60439         * lib/strtok_r.c: Likewise.
60440         * lib/userspec.c: Likewise.
60441         * lib/w32spawn.h: Likewise.
60442         * lib/xstrndup.c: Likewise.
60443         * lib/mountlist.c (strstr): Remove decl.
60444         * m4/string_h.m4: New file.
60445         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60446         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60447         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60448         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60449         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60450         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60451         Set REPLACE_STRCASECMP if necessary.
60452         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60453         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60454         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60455         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60456         HAVE_DECL_STRDUP if necessary.
60457         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60458         since gl_FUNC_STRNDUP does that now.
60459         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60460         Check for decl here...
60461         (gl_PREREQ_STRNLEN): ... not here.
60462         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60463         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60464         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60465         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60466         necessary.
60467         * modules/string: New file.
60468         * modules/memmem (Files): Remove special-purpose include file.
60469         (Depends-on): Add string.
60470         (Include): Include <string.h>, not the removed file.
60471         * modules/mempcpy: Likewise.
60472         * modules/memrchr: Likewise.
60473         * modules/stpcpy: Likewise.
60474         * modules/stpncpy: Likewise.
60475         * modules/strcase: Likewise.
60476         * modules/strchrnul: Likewise.
60477         * modules/strdup: Likewise.
60478         * modules/strndup: Likewise.
60479         * modules/strnlen: Likewise.
60480         * modules/strpbrk: Likewise.
60481         * modules/strsep: Likewise.
60482         * modules/strstr: Likewise.
60483         * modules/strtok_r: Likewise.
60484         * tests/test-dirname.c: Don't include "strdup.h", since
60485         <string.h> now suffices.
60486         * tests/test-memmem.c: Don't include "memmem.h", since
60487         <string.h> now suffices.
60488
60489 2007-01-25  Bruno Haible  <bruno@clisp.org>
60490
60491         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60492         *resultp is 0.
60493
60494         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60495         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60496         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60497         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60498
60499         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60500         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60501         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60502         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60503         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60504         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60505
60506 2007-01-24  Bruno Haible  <bruno@clisp.org>
60507
60508         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60509         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60510         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60511         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60512         gl_FUNC_FTS_CORE.
60513         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60514         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60515         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60516         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60517         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60518         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60519         gl_FUNC_FCHOWNAT.
60520         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60521         gl_FUNC_STRFTIME.
60522         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60523         Reported by Ralf Wildenhues.
60524
60525 2007-01-24  Bruno Haible  <bruno@clisp.org>
60526
60527         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60528         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60529         gl_GETADDRINFO.
60530         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60531         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60532         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60533
60534 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60535
60536         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60537         Don't use 'exit'; just return from 'main'.
60538         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60539
60540         * lib/fnmatch_.h: Readjust white space and comments to match
60541         glibc, to avoid spurious diffs.
60542
60543 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60544
60545         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60546         2004-12-01 change by Jakub Jelinek, since this code won't compile
60547         if !LIBC.  Problem reported by Bob Proulx.
60548
60549 2007-01-23  Bruno Haible  <bruno@clisp.org>
60550
60551         * lib/striconveh.c: Include c-strcaseeq.h.
60552         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60553         * modules/striconveh (Depends-on): Add c-strcaseeq.
60554
60555 2007-01-23  Bruno Haible  <bruno@clisp.org>
60556
60557         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60558
60559         * modules/c-strcaseeq: New file.
60560         * lib/c-strcaseeq.h: New file.
60561
60562         * modules/streq: New file.
60563         * lib/streq.h: New file.
60564
60565 2007-01-23  Bruno Haible  <bruno@clisp.org>
60566
60567         * modules/striconveha-tests: New file.
60568         * tests/test-striconveha.c: New file.
60569
60570         * lib/striconveha.h: Include <stdbool.h>.
60571         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60572         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60573         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60574         (mem_iconveha): New function.
60575         (str_iconveha_notranslit): Renamed from str_iconveha.
60576         (str_iconveha): New function.
60577         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60578         c-strcase.
60579
60580 2007-01-23  Bruno Haible  <bruno@clisp.org>
60581
60582         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60583         encodings without forgiving before trying any encoding with handler.
60584         (str_iconveha): Try all encodings without forgiving before trying any
60585         encoding with handler.
60586
60587 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60588
60589         Import the following changes from libc.
60590
60591         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60592
60593         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60594
60595         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60596
60597         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60598         normal_bracket label.
60599
60600         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60601
60602         [BZ #361]
60603         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60604         to normal_bracket after fetching the next character.
60605
60606 2007-01-22  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60609         argument.
60610         * lib/striconveh.c (iconv_carefully_1): New function.
60611         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60612         argument.
60613         (str_cd_iconveh): Update.
60614         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60615         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60616         * tests/test-striconveh.c (MAGIC): New macro.
60617         (new_offsets): New function.
60618         (main): Test call with and without offsets.
60619
60620 2007-01-22  Bruno Haible  <bruno@clisp.org>
60621
60622         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60623         * modules/sys_select (Makefile.am): Likewise.
60624         * modules/sys_socket (Makefile.am): Likewise.
60625         * modules/sys_time (Makefile.am): Likewise.
60626
60627 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60628
60629         * modules/gettimeofday (License): Change from GPL to LGPL, since
60630         gettimeofday is a library function.
60631
60632 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60633
60634         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60635
60636 2007-01-21  Bruno Haible  <bruno@clisp.org>
60637
60638         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60639
60640 2007-01-21  Bruno Haible  <bruno@clisp.org>
60641
60642         * modules/striconveha: New file.
60643         * lib/striconveha.h: New file.
60644         * lib/striconveha.c: New file.
60645         * MODULES.html.sh (Internationalization functions): Add striconveha.
60646         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60647         string.
60648         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60649
60650 2007-01-21  Bruno Haible  <bruno@clisp.org>
60651
60652         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60653         * lib/striconveh.c (str_iconveh): Likewise.
60654
60655 2007-01-21  Bruno Haible  <bruno@clisp.org>
60656
60657         * lib/striconveh.h (mem_iconveh): New declaration.
60658         * lib/striconveh.c (mem_iconveh): New function.
60659         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60660
60661 2007-01-21  Bruno Haible  <bruno@clisp.org>
60662
60663         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60664
60665         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60666         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60667         original result buffer.
60668         (str_cd_iconveh): Update.
60669         * tests/test-striconveh.c (main): Update.
60670
60671         * lib/striconv.h (mem_cd_iconv): Change specification.
60672         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60673         result buffer.
60674         (str_cd_iconv): Update.
60675         * tests/test-striconv.c (main): Update.
60676
60677 2007-01-21  Bruno Haible  <bruno@clisp.org>
60678
60679         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60680
60681 2007-01-20  Jim Meyering  <jim@meyering.net>
60682
60683         * lib/userspec.c (parse_with_separator): If a user or group string
60684         starts with "+", skip the corresponding name-to-ID look-up, since
60685         such a look-up must fail: user and group names may not include "+".
60686
60687 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60688
60689         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60690         since we now assume the sys_time module.
60691         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60692         check for sys/time.h; no longer needed.
60693         * modules/poll (Depends-on): Depend on sys_time.
60694
60695 2007-01-18  Bruno Haible  <bruno@clisp.org>
60696
60697         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60698         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60699
60700         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60701         gettimeofday.
60702
60703         * tests/test-gettimeofday.c: Include <time.h>.
60704         (dummy): Remove variable.
60705
60706         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60707         gl_HEADER_SYS_TIME_H.
60708         (gl_HEADER_SYS_TIME_H): New macro.
60709
60710         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60711         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60712         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60713         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60714         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60715         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60716         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60717         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60718         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60719         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60720         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60721
60722         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60723         last change; it caused a compilation error when cross-compiling to
60724         Cygwin.
60725
60726 2007-01-18  Jim Meyering  <jim@meyering.net>
60727
60728         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60729         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60730         than the race-prone "test -d sys || mkdir sys".
60731         (configure.ac): Use AC_PROG_MKDIR_P.
60732         * modules/sys_select: Likewise.
60733         * modules/sys_socket: Likewise.
60734         * modules/sys_time: Likewise.
60735
60736 2007-01-18  Eric Blake  <ebb9@byu.net>
60737
60738         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60739         replace gettimeofday.
60740         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60741         name, to avoid infinite recursion.
60742
60743 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60744
60745         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60746         module sys_time.
60747         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60748         assume timespec.h defines struct timeval.
60749         * lib/settime.c: Likewise.
60750         * lib/utimens.c: Likewise.
60751         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60752         since we now assume the gettimeofday module.
60753         * lib/tempname.c (__gen_tempname): Likewise.
60754         * lib/gettimeofday.h: Remove.
60755         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60756         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60757         Include <time.h>, for 'time()'.
60758         (localtime_buffer_addr): Also use this workaround if
60759         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60760         to simplify the uses.  All uses changed.
60761         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60762         that #undef is inside {}, and 'const' follows type name consistently.
60763         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60764         (gettimeofday): Do not use the maximum possible value for
60765         tv->tv_usec, since that might break usages other than ls.c.
60766         Instead, we'll leave ls.c alone.  This undoes today's patch
60767         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60768         we've never observed the problem but might as well keep the
60769         canary.
60770         * lib/nanosleep.c: Include timespec.h first, for interface check.
60771         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60772         now assume the sys_time module.
60773         * lib/tempname.c: Likewise.
60774         * lib/timespec.h: Likewise.
60775         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60776         needed.
60777         * lib/strftime.c: Likewise.
60778         * lib/timespec.h: Likewise.
60779         * lib/posixtm.c: Include posixtm.h first, for interface check.
60780         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60781         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60782         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60783         * lib/sys_time_.h: New file.
60784         * lib/timespec.h (struct timespec): Use long int, not long.
60785         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60786         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60787         Remove obsolescent call to AC_HEADER_TIME.
60788         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60790         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60791         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60792         Likewise.
60793         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60794         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60795         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60796         into the sys_time module.  Check for gettimeofday just once.
60797         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60798         for gettimeofday signature to just check the signature.  Merely
60799         compile it, since linking doesn't test signature.  Improve test for
60800         whether gettimeofday.o is actually needed.
60801         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60802         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60803         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60804         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60805         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60806         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60807         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60808         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60809         than worrying about sys/time.h.
60810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60811         Don't bother worrying about TIME_WITH_SYS_TIME.
60812         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60813         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60814         * m4/sys_time_h.m4: New file.
60815         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60816         Don't include sys/time.h.  Return from main rather than exiting.
60817         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60818         all uses changed.
60819         * modules/gethrxtime (Depends-on): Add sys_time.
60820         * modules/gettime (Depends-on): Likewise.
60821         * modules/gettimeofday (Depends-on): Likewise.
60822         * modules/nanosleep (Depends-on): Likewise.
60823         * modules/settime (Depends-on): Likewise.
60824         * modules/tempname (Depends-on): Likewise.
60825         * modules/utimens (Depends-on): Likewise.
60826         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60827         (Include): Change back to <sys/time.h>.
60828         (Maintainer): Add self.
60829         * modules/sys_time: New file.
60830         * modules/tempname (Depends-on): Add gettimeofday.
60831         * tests/test-gettimeofday.c: Include <sys/time.h>
60832         rather than gettimeofday.h.
60833
60834 2007-01-17  Bruno Haible  <bruno@clisp.org>
60835
60836         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60837         the license default to GPL.
60838         (func_create_testdir): Don't complain if a module is LGPL and its
60839         tests module depends on GPLed modules.
60840
60841 2007-01-17  Bruno Haible  <bruno@clisp.org>
60842
60843         * lib/gettimeofday.c (gettimeofday): Add code for the case
60844         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60845         maximum possible value for tv->tv_usec, rather than the minimum one.
60846
60847 2005-10-08  Martin Lambers  <marlam@marlam.de>
60848 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60849 2007-01-16  Bruno Haible  <bruno@clisp.org>
60850
60851         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60852         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60853         gl_FUNC_GETTIMEOFDAY.
60854         (Include): Add gettimeofday.h.
60855         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60856         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60857         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60858         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60859         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60860         * lib/gettimeofday.h: New file.
60861         * lib/gettimeofday.c: Include <sys/timeb.h>.
60862         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60863         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60864         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60865         fall back on time().
60866
60867         * tests/test-gettimeofday.c: New file.
60868         * modules/gettimeofday-tests: New file.
60869
60870 2007-01-16  Eric Blake  <ebb9@byu.net>
60871
60872         * modules/fnmatch (Depends-on): Depend on wchar.
60873         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60874         * m4/fnmatch.m4: Likewise.
60875         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60876         * m4/mbchar.m4: Likewise.
60877         * modules/mbswidth (Depends-on): Depend on wchar.
60878         * lib/mbswidth.c: Assume <wchar.h>.
60879         * m4/mbswidth.m4: Likewise.
60880         * modules/quotearg (Depends-on): Depend on wchar.
60881         * lib/quotearg.c: Assume <wchar.h>.
60882         * m4/quotearg.m4: Likewise.
60883         * modules/regex (Depends-on): Depend on wchar.
60884         * lib/regex_internal.h: Assume <wchar.h>.
60885         * m4/regex.m4: Likewise.
60886         * modules/stdint (Depends-on): Depend on wchar.
60887         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60888         * m4/stdint.m4: Likewise.
60889         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60890         * modules/strftime (Depends-on): Depend on wchar.
60891         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60892         * modules/strtol (Depends-on): Depend on wchar.
60893         * lib/strtol.c: Assume <wchar.h>.
60894         * modules/wcwidth (Depends-on): Depend on wchar.
60895         * lib/wcwidth.h: Assume <wchar.h>.
60896         * m4/wcwidth.m4: Likewise.
60897
60898 2007-01-16  Bruno Haible  <bruno@clisp.org>
60899
60900         * modules/csharpexec-script: New, created from...
60901         * modules/csharpexec: ... this.
60902
60903 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60904
60905         * modules/javaexec-script: New, created from...
60906         * modules/javaexec: ... this.
60907
60908 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60909
60910         * modules/poll (Dependencies): Add sys_select.
60911
60912 2007-01-15  Jim Meyering  <jim@meyering.net>
60913
60914         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60915         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60916         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60917         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60918
60919 2007-01-15  Bruno Haible  <bruno@clisp.org>
60920
60921         * modules/striconveh: New file.
60922         * lib/striconveh.h: New file.
60923         * lib/striconveh.c: New file.
60924         * MODULES.html.sh (Internationalization functions): Add striconveh.
60925
60926         * modules/striconveh-tests: New file.
60927         * tests/test-striconveh.c: New file.
60928
60929 2007-01-15  Bruno Haible  <bruno@clisp.org>
60930
60931         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60932         not from GNU libiconv or GNU libc.
60933
60934 2007-01-15  Bruno Haible  <bruno@clisp.org>
60935
60936         * doc/gnulib-intro.texi (Copyright): Explain the different license
60937         terms for module descriptions, autoconf macros, tests, documentation.
60938
60939 2007-01-14  Bruno Haible  <bruno@clisp.org>
60940
60941         * modules/striconv-tests: New file.
60942         * tests/test-striconv.c: New file.
60943
60944 2007-01-14  Bruno Haible  <bruno@clisp.org>
60945
60946         * modules/iconv-tests: New file.
60947         * tests/test-iconv.c: New file.
60948
60949 2007-01-14  Bruno Haible  <bruno@clisp.org>
60950
60951         * gnulib-tool (func_get_license): For test modules, use the license of
60952         the main module.
60953
60954 2007-01-14  Bruno Haible  <bruno@clisp.org>
60955
60956         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60957         if iconv is found to exist.
60958
60959 2007-01-14  Bruno Haible  <bruno@clisp.org>
60960
60961         * modules/c-ctype-tests: New file.
60962         * tests/test-c-ctype.c: New file.
60963
60964 2007-01-14  Bruno Haible  <bruno@clisp.org>
60965
60966         * modules/binary-io-tests: New file.
60967         * tests/test-binary-io.sh: New file.
60968         * tests/test-binary-io.c: New file.
60969
60970 2007-01-14  Bruno Haible  <bruno@clisp.org>
60971
60972         * modules/array-oset-tests: New file.
60973         * tests/test-array_oset.c: New file.
60974
60975 2007-01-14  Bruno Haible  <bruno@clisp.org>
60976
60977         * modules/array-list-tests: New file.
60978         * tests/test-array_list.c: New file.
60979
60980 2007-01-14  Bruno Haible  <bruno@clisp.org>
60981
60982         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60983         and make.
60984         Reported by Simon Josefsson in
60985         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60986
60987 2007-01-14  Bruno Haible  <bruno@clisp.org>
60988
60989         * modules/allocsa-tests: New file.
60990         * tests/test-allocsa.c: New file.
60991
60992 2007-01-14  Bruno Haible  <bruno@clisp.org>
60993
60994         * modules/fchdir (Depends-on): Add absolute-header.
60995         * modules/unistd (Depends-on): Likewise.
60996
60997 2006-12-30  Bruno Haible  <bruno@clisp.org>
60998
60999         * modules/fchdir: New file.
61000         * modules/unistd (Files): Add lib/unistd_.h.
61001         (Makefile.am): Generate unistd.h from unistd_.h.
61002         * lib/fchdir.c: New file.
61003         * lib/dirent_.h: New file.
61004         * lib/unistd_.h: New file.
61005         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61006         * m4/fchdir.m4: New file.
61007         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61008         (gl_HEADER_UNISTD): Invoke it.
61009         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61010         function.
61011         * lib/backupfile.c (opendir, closedir): Undefine.
61012         * lib/chown.c (open, close): Undefine.
61013         * lib/clean-temp.c (open, close): Undefine.
61014         * lib/copy-file.c (open, close): Undefine.
61015         * lib/execute.c (open, close): Undefine.
61016         * lib/fsusage.c (open, close): Undefine.
61017         * lib/gc-gnulib.c (open, close): Undefine.
61018         * lib/getcwd.c (opendir, closedir): Undefine.
61019         * lib/glob.c (opendir, closedir): Undefine.
61020         * lib/javacomp.c (open, close): Undefine.
61021         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61022         * lib/openat-proc.c (open, close): Undefine.
61023         * lib/pagealign_alloc.c (open, close): Undefine.
61024         * lib/pipe.c (open, close): Undefine.
61025         * lib/progreloc.c (open, close): Undefine.
61026         * lib/savedir.c (opendir, closedir): Undefine.
61027         * lib/utime.c (open, close): Undefine.
61028         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61029
61030 2007-01-10  Bruno Haible  <bruno@clisp.org>
61031
61032         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61033
61034 2007-01-12  Eric Blake  <ebb9@byu.net>
61035
61036         Provide a robust <wchar.h>.  Further simplifications are now
61037         possible in other modules, but not included here.
61038         * modules/wchar: New module.
61039         * m4/wchar.m4: New file.
61040         * lib/wchar_.h: Likewise.
61041         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61042         of the new module.
61043         * MODULES.html.sh (Extended multibyte and wide character utilities):
61044         New section.
61045
61046 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61047
61048         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61049         to a reasonable default for memory allocation.
61050         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61051         file system that reports garbage st_size values for symlinks.
61052         Problem reported by Liyang Hu.
61053
61054 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61055
61056         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61057         Emacs .#* auto-save files).
61058
61059 2007-01-11  Bruno Haible  <bruno@clisp.org>
61060
61061         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61062         directory.
61063
61064 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61065
61066         Use @...@ consistently in lib/wctype_.h.
61067         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61068         on it being set to 1 or 0.
61069         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61070         go back to AC_SUBSTing it.
61071         * modules/wctype (Makefile.am): Undo previous change.
61072
61073 2007-01-10  Eric Blake  <ebb9@byu.net>
61074
61075         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61076         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61077         * modules/wctype (Makefile.am): Likewise.
61078         Reported by Chris McGuire.
61079
61080 2007-01-10  Jim Meyering  <jim@meyering.net>
61081
61082         fts.c: a small readability/maintainability improvement
61083         * lib/fts.c (fts_read): Make this code slightly more readable and
61084         maintainable by hoisting the "sp->fts_cur = p" assignments to
61085         immediately follow the statements that set P.  Derived from
61086         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61087
61088 2007-01-10  Eric Blake  <ebb9@byu.net>
61089
61090         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61091         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61093         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61094         Reported by Chris McGuire.
61095
61096 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61097
61098         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61099         in sed script.
61100
61101 2007-01-09  Bruno Haible  <bruno@clisp.org>
61102
61103         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61104         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61105         variables.
61106         (func_module): Use them.
61107
61108 2007-01-09  Bruno Haible  <bruno@clisp.org>
61109
61110         * modules/unistr/base: New file.
61111         * lib/unistr.h: New file.
61112
61113         * modules/unistr/u8-to-u16: New file.
61114         * lib/unistr/u8-to-u16.c: New file.
61115
61116         * modules/unistr/u8-to-u32: New file.
61117         * lib/unistr/u8-to-u32.c: New file.
61118
61119         * modules/unistr/u16-to-u8: New file.
61120         * lib/unistr/u16-to-u8.c: New file.
61121
61122         * modules/unistr/u16-to-u32: New file.
61123         * lib/unistr/u16-to-u32.c: New file.
61124
61125         * modules/unistr/u32-to-u8: New file.
61126         * lib/unistr/u32-to-u8.c: New file.
61127
61128         * modules/unistr/u32-to-u16: New file.
61129         * lib/unistr/u32-to-u16.c: New file.
61130
61131         * modules/unistr/u8-check: New file.
61132         * modules/unistr/u16-check: New file.
61133         * modules/unistr/u32-check: New file.
61134         * lib/unistr/u8-check.c: New file.
61135         * lib/unistr/u16-check.c: New file.
61136         * lib/unistr/u32-check.c: New file.
61137
61138         * modules/unistr/u8-chr: New file.
61139         * modules/unistr/u16-chr: New file.
61140         * modules/unistr/u32-chr: New file.
61141         * lib/unistr/u8-chr.c: New file.
61142         * lib/unistr/u16-chr.c: New file.
61143         * lib/unistr/u32-chr.c: New file.
61144
61145         * modules/unistr/u8-cmp: New file.
61146         * modules/unistr/u16-cmp: New file.
61147         * modules/unistr/u32-cmp: New file.
61148         * lib/unistr/u8-cmp.c: New file.
61149         * lib/unistr/u16-cmp.c: New file.
61150         * lib/unistr/u32-cmp.c: New file.
61151
61152         * modules/unistr/u8-cpy: New file.
61153         * modules/unistr/u16-cpy: New file.
61154         * modules/unistr/u32-cpy: New file.
61155         * lib/unistr/u8-cpy.c: New file.
61156         * lib/unistr/u16-cpy.c: New file.
61157         * lib/unistr/u32-cpy.c: New file.
61158         * lib/unistr/u-cpy.h: New file.
61159
61160         * modules/unistr/u8-cpy-alloc: New file.
61161         * modules/unistr/u16-cpy-alloc: New file.
61162         * modules/unistr/u32-cpy-alloc: New file.
61163         * lib/unistr/u8-cpy-alloc.c: New file.
61164         * lib/unistr/u16-cpy-alloc.c: New file.
61165         * lib/unistr/u32-cpy-alloc.c: New file.
61166         * lib/unistr/u-cpy-alloc.h: New file.
61167
61168         * modules/unistr/u8-endswith: New file.
61169         * modules/unistr/u16-endswith: New file.
61170         * modules/unistr/u32-endswith: New file.
61171         * lib/unistr/u8-endswith.c: New file.
61172         * lib/unistr/u16-endswith.c: New file.
61173         * lib/unistr/u32-endswith.c: New file.
61174         * lib/unistr/u-endswith.h: New file.
61175
61176         * modules/unistr/u8-mblen: New file.
61177         * modules/unistr/u16-mblen: New file.
61178         * modules/unistr/u32-mblen: New file.
61179         * lib/unistr/u8-mblen.c: New file.
61180         * lib/unistr/u16-mblen.c: New file.
61181         * lib/unistr/u32-mblen.c: New file.
61182
61183         * modules/unistr/u8-mbtouc: New file.
61184         * modules/unistr/u16-mbtouc: New file.
61185         * modules/unistr/u32-mbtouc: New file.
61186         * lib/unistr/u8-mbtouc.c: New file.
61187         * lib/unistr/u16-mbtouc.c: New file.
61188         * lib/unistr/u32-mbtouc.c: New file.
61189
61190         * modules/unistr/u8-mbtouc-safe: New file.
61191         * modules/unistr/u16-mbtouc-safe: New file.
61192         * modules/unistr/u32-mbtouc-safe: New file.
61193         * lib/unistr/u8-mbtouc-safe.c: New file.
61194         * lib/unistr/u16-mbtouc-safe.c: New file.
61195         * lib/unistr/u32-mbtouc-safe.c: New file.
61196
61197         * modules/unistr/u8-move: New file.
61198         * modules/unistr/u16-move: New file.
61199         * modules/unistr/u32-move: New file.
61200         * lib/unistr/u8-move.c: New file.
61201         * lib/unistr/u16-move.c: New file.
61202         * lib/unistr/u32-move.c: New file.
61203         * lib/unistr/u-move.h: New file.
61204
61205         * modules/unistr/u8-next: New file.
61206         * modules/unistr/u16-next: New file.
61207         * modules/unistr/u32-next: New file.
61208         * lib/unistr/u8-next.c: New file.
61209         * lib/unistr/u16-next.c: New file.
61210         * lib/unistr/u32-next.c: New file.
61211
61212         * modules/unistr/u8-prev: New file.
61213         * modules/unistr/u16-prev: New file.
61214         * modules/unistr/u32-prev: New file.
61215         * lib/unistr/u8-prev.c: New file.
61216         * lib/unistr/u16-prev.c: New file.
61217         * lib/unistr/u32-prev.c: New file.
61218
61219         * modules/unistr/u8-set: New file.
61220         * modules/unistr/u16-set: New file.
61221         * modules/unistr/u32-set: New file.
61222         * lib/unistr/u8-set.c: New file.
61223         * lib/unistr/u16-set.c: New file.
61224         * lib/unistr/u32-set.c: New file.
61225         * lib/unistr/u-set.h: New file.
61226
61227         * modules/unistr/u8-startswith: New file.
61228         * modules/unistr/u16-startswith: New file.
61229         * modules/unistr/u32-startswith: New file.
61230         * lib/unistr/u8-startswith.c: New file.
61231         * lib/unistr/u16-startswith.c: New file.
61232         * lib/unistr/u32-startswith.c: New file.
61233         * lib/unistr/u-startswith.h: New file.
61234
61235         * modules/unistr/u8-stpcpy: New file.
61236         * modules/unistr/u16-stpcpy: New file.
61237         * modules/unistr/u32-stpcpy: New file.
61238         * lib/unistr/u8-stpcpy.c: New file.
61239         * lib/unistr/u16-stpcpy.c: New file.
61240         * lib/unistr/u32-stpcpy.c: New file.
61241         * lib/unistr/u-stpcpy.h: New file.
61242
61243         * modules/unistr/u8-stpncpy: New file.
61244         * modules/unistr/u16-stpncpy: New file.
61245         * modules/unistr/u32-stpncpy: New file.
61246         * lib/unistr/u8-stpncpy.c: New file.
61247         * lib/unistr/u16-stpncpy.c: New file.
61248         * lib/unistr/u32-stpncpy.c: New file.
61249         * lib/unistr/u-stpncpy.h: New file.
61250
61251         * modules/unistr/u8-strcat: New file.
61252         * modules/unistr/u16-strcat: New file.
61253         * modules/unistr/u32-strcat: New file.
61254         * lib/unistr/u8-strcat.c: New file.
61255         * lib/unistr/u16-strcat.c: New file.
61256         * lib/unistr/u32-strcat.c: New file.
61257         * lib/unistr/u-strcat.h: New file.
61258
61259         * modules/unistr/u8-strchr: New file.
61260         * modules/unistr/u16-strchr: New file.
61261         * modules/unistr/u32-strchr: New file.
61262         * lib/unistr/u8-strchr.c: New file.
61263         * lib/unistr/u16-strchr.c: New file.
61264         * lib/unistr/u32-strchr.c: New file.
61265
61266         * modules/unistr/u8-strcmp: New file.
61267         * modules/unistr/u16-strcmp: New file.
61268         * modules/unistr/u32-strcmp: New file.
61269         * lib/unistr/u8-strcmp.c: New file.
61270         * lib/unistr/u16-strcmp.c: New file.
61271         * lib/unistr/u32-strcmp.c: New file.
61272
61273         * modules/unistr/u8-strcpy: New file.
61274         * modules/unistr/u16-strcpy: New file.
61275         * modules/unistr/u32-strcpy: New file.
61276         * lib/unistr/u8-strcpy.c: New file.
61277         * lib/unistr/u16-strcpy.c: New file.
61278         * lib/unistr/u32-strcpy.c: New file.
61279         * lib/unistr/u-strcpy.h: New file.
61280
61281         * modules/unistr/u8-strcspn: New file.
61282         * modules/unistr/u16-strcspn: New file.
61283         * modules/unistr/u32-strcspn: New file.
61284         * lib/unistr/u8-strcspn.c: New file.
61285         * lib/unistr/u16-strcspn.c: New file.
61286         * lib/unistr/u32-strcspn.c: New file.
61287         * lib/unistr/u-strcspn.h: New file.
61288
61289         * modules/unistr/u8-strdup: New file.
61290         * modules/unistr/u16-strdup: New file.
61291         * modules/unistr/u32-strdup: New file.
61292         * lib/unistr/u8-strdup.c: New file.
61293         * lib/unistr/u16-strdup.c: New file.
61294         * lib/unistr/u32-strdup.c: New file.
61295         * lib/unistr/u-strdup.h: New file.
61296
61297         * modules/unistr/u8-strlen: New file.
61298         * modules/unistr/u16-strlen: New file.
61299         * modules/unistr/u32-strlen: New file.
61300         * lib/unistr/u8-strlen.c: New file.
61301         * lib/unistr/u16-strlen.c: New file.
61302         * lib/unistr/u32-strlen.c: New file.
61303         * lib/unistr/u-strlen.h: New file.
61304
61305         * modules/unistr/u8-strmblen: New file.
61306         * modules/unistr/u16-strmblen: New file.
61307         * modules/unistr/u32-strmblen: New file.
61308         * lib/unistr/u8-strmblen.c: New file.
61309         * lib/unistr/u16-strmblen.c: New file.
61310         * lib/unistr/u32-strmblen.c: New file.
61311
61312         * modules/unistr/u8-strmbtouc: New file.
61313         * modules/unistr/u16-strmbtouc: New file.
61314         * modules/unistr/u32-strmbtouc: New file.
61315         * lib/unistr/u8-strmbtouc.c: New file.
61316         * lib/unistr/u16-strmbtouc.c: New file.
61317         * lib/unistr/u32-strmbtouc.c: New file.
61318
61319         * modules/unistr/u8-strncat: New file.
61320         * modules/unistr/u16-strncat: New file.
61321         * modules/unistr/u32-strncat: New file.
61322         * lib/unistr/u8-strncat.c: New file.
61323         * lib/unistr/u16-strncat.c: New file.
61324         * lib/unistr/u32-strncat.c: New file.
61325         * lib/unistr/u-strncat.h: New file.
61326
61327         * modules/unistr/u8-strncmp: New file.
61328         * modules/unistr/u16-strncmp: New file.
61329         * modules/unistr/u32-strncmp: New file.
61330         * lib/unistr/u8-strncmp.c: New file.
61331         * lib/unistr/u16-strncmp.c: New file.
61332         * lib/unistr/u32-strncmp.c: New file.
61333
61334         * modules/unistr/u8-strncpy: New file.
61335         * modules/unistr/u16-strncpy: New file.
61336         * modules/unistr/u32-strncpy: New file.
61337         * lib/unistr/u8-strncpy.c: New file.
61338         * lib/unistr/u16-strncpy.c: New file.
61339         * lib/unistr/u32-strncpy.c: New file.
61340         * lib/unistr/u-strncpy.h: New file.
61341
61342         * modules/unistr/u8-strnlen: New file.
61343         * modules/unistr/u16-strnlen: New file.
61344         * modules/unistr/u32-strnlen: New file.
61345         * lib/unistr/u8-strnlen.c: New file.
61346         * lib/unistr/u16-strnlen.c: New file.
61347         * lib/unistr/u32-strnlen.c: New file.
61348         * lib/unistr/u-strnlen.h: New file.
61349
61350         * modules/unistr/u8-strpbrk: New file.
61351         * modules/unistr/u16-strpbrk: New file.
61352         * modules/unistr/u32-strpbrk: New file.
61353         * lib/unistr/u8-strpbrk.c: New file.
61354         * lib/unistr/u16-strpbrk.c: New file.
61355         * lib/unistr/u32-strpbrk.c: New file.
61356         * lib/unistr/u-strpbrk.h: New file.
61357
61358         * modules/unistr/u8-strrchr: New file.
61359         * modules/unistr/u16-strrchr: New file.
61360         * modules/unistr/u32-strrchr: New file.
61361         * lib/unistr/u8-strrchr.c: New file.
61362         * lib/unistr/u16-strrchr.c: New file.
61363         * lib/unistr/u32-strrchr.c: New file.
61364
61365         * modules/unistr/u8-strspn: New file.
61366         * modules/unistr/u16-strspn: New file.
61367         * modules/unistr/u32-strspn: New file.
61368         * lib/unistr/u8-strspn.c: New file.
61369         * lib/unistr/u16-strspn.c: New file.
61370         * lib/unistr/u32-strspn.c: New file.
61371         * lib/unistr/u-strspn.h: New file.
61372
61373         * modules/unistr/u8-strstr: New file.
61374         * modules/unistr/u16-strstr: New file.
61375         * modules/unistr/u32-strstr: New file.
61376         * lib/unistr/u8-strstr.c: New file.
61377         * lib/unistr/u16-strstr.c: New file.
61378         * lib/unistr/u32-strstr.c: New file.
61379         * lib/unistr/u-strstr.h: New file.
61380
61381         * modules/unistr/u8-strtok: New file.
61382         * modules/unistr/u16-strtok: New file.
61383         * modules/unistr/u32-strtok: New file.
61384         * lib/unistr/u8-strtok.c: New file.
61385         * lib/unistr/u16-strtok.c: New file.
61386         * lib/unistr/u32-strtok.c: New file.
61387         * lib/unistr/u-strtok.h: New file.
61388
61389         * modules/unistr/u8-uctomb: New file.
61390         * modules/unistr/u16-uctomb: New file.
61391         * modules/unistr/u32-uctomb: New file.
61392         * lib/unistr/u8-uctomb.c: New file.
61393         * lib/unistr/u16-uctomb.c: New file.
61394         * lib/unistr/u32-uctomb.c: New file.
61395
61396         * MODULES.html.sh (Unicode string functions): Add the new modules.
61397
61398 2007-01-08  Bruno Haible  <bruno@clisp.org>
61399
61400         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61401         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61402         subdirectories.
61403
61404 2007-01-08  Karl Berry  <karl@gnu.org>
61405
61406         * doc/error.texi: mention that main() fns must set program_name
61407         when progname is used.
61408
61409 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61410
61411         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61412         WCTYPE_H is empty, for the benefit of builds from non-distclean
61413         directories.  Problem reported by Eric Blake in
61414         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61415
61416 2007-01-08  Bruno Haible  <bruno@clisp.org>
61417
61418         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61419         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61420         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61421         PROVIDE_CANONICALIZE_FILENAME_MODE.
61422         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61423
61424 2007-01-08  Bruno Haible  <bruno@clisp.org>
61425
61426         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61427         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61428         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61429         * lib/fts.c: Likewise.
61430         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61431
61432 2006-12-25  Bruno Haible  <bruno@clisp.org>
61433
61434         * modules/utf8-ucs4-safe: New file.
61435         * lib/utf8-ucs4-safe.h: New file.
61436         * lib/unistr/utf8-ucs4-safe.c: New file.
61437
61438         * modules/utf16-ucs4-safe: New file.
61439         * lib/utf16-ucs4-safe.h: New file.
61440         * lib/unistr/utf16-ucs4-safe.c: New file.
61441
61442         * MODULES.html.sh (Unicode string functions): Add the new modules.
61443
61444 2007-01-08  Bruno Haible  <bruno@clisp.org>
61445
61446         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61447         (Depends-on): Add unitypes.
61448         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61449         (u8_mbtouc_aux): Move out to separate file.
61450         (u8_mbtouc): Use ucs4_t, uint8_t types.
61451         * lib/unistr/utf8-ucs4.c: New file.
61452
61453         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61454         (Depends-on): Add unitypes.
61455         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61456         (u16_mbtouc_aux): Move out to separate file.
61457         (u16_mbtouc): Use ucs4_t, uint16_t types.
61458         * lib/unistr/utf16-ucs4.c: New file.
61459
61460         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61461         (Depends-on): Add unitypes.
61462         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61463         (u8_uctomb_aux): Move out to separate file.
61464         (u8_uctomb): Use ucs4_t, uint8_t types.
61465         * lib/unistr/ucs4-utf8.c: New file.
61466
61467         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61468         (Depends-on): Add unitypes.
61469         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61470         (u16_uctomb_aux): Move out to separate file.
61471         (u16_uctomb): Use ucs4_t, uint16_t types.
61472         * lib/unistr/ucs4-utf16.c: New file.
61473
61474 2006-12-25  Bruno Haible  <bruno@clisp.org>
61475
61476         * modules/unitypes: New file.
61477         * lib/unitypes.h: New file.
61478         * MODULES.html.sh (func_all_modules): New section "Unicode string
61479         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61480         this section. Add unitypes.
61481
61482 2007-01-08  Bruno Haible  <bruno@clisp.org>
61483
61484         Avoid variable names that conflict with those from libtool.
61485         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61486         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61487         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61488         library_names_spec to acl_library_names_spec, hardcode_* to
61489         acl_hardcode_*.
61490         Reported by Ralf Wildenhues.
61491
61492 2007-01-08  Bruno Haible  <bruno@clisp.org>
61493
61494         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61495         definition.
61496         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61497         definition.
61498         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61499         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61500         definition.
61501         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61502         definition.
61503         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61504         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61505         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61506         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61507         definition.
61508         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61509         definition.
61510         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61511         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61512         GC_USE_<algorithm>.
61513         * lib/gc-libgcrypt.c: Likewise.
61514         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61515         * modules/gc-arctwo (configure.ac): Likewise.
61516         * modules/gc-des (configure.ac): Likewise.
61517         * modules/gc-hmac-md5 (configure.ac): Likewise.
61518         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61519         * modules/gc-md2 (configure.ac): Likewise.
61520         * modules/gc-md4 (configure.ac): Likewise.
61521         * modules/gc-md5 (configure.ac): Likewise.
61522         * modules/gc-random (configure.ac): Likewise.
61523         * modules/gc-rijndael (configure.ac): Likewise.
61524         * modules/gc-sha1 (configure.ac): Likewise.
61525
61526 2007-01-08  Bruno Haible  <bruno@clisp.org>
61527
61528         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61529         macro definition.
61530         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61531         definition.
61532         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61533         definition.
61534         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61535         * modules/fcntl-safer (configure.ac): Likewise.
61536         * modules/fopen-safer (configure.ac): Likewise.
61537         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61538         GNULIB_FWRITEERROR macro definition.
61539
61540 2007-01-08  Bruno Haible  <bruno@clisp.org>
61541
61542         * m4/gnulib-common.m4: New file.
61543         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61544         (func_get_filelist): Add m4/gnulib-common.m4.
61545
61546 2007-01-08  Bruno Haible  <bruno@clisp.org>
61547
61548         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61549         command.
61550
61551 2007-01-08  Jim Meyering  <jim@meyering.net>
61552
61553         Use a more robust test for a "can't happen" condition.
61554         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61555         narrowed the st_size value.  Presuming the "can't happen" condition
61556         is true, that narrowing could conceivably convert an invalid st_size
61557         value into a valid one.  Instead, use a change based on Matthew
61558         Woehlke's original patch.
61559
61560         Slight readability improvement: use an assert-like macro
61561         in place of literal "abort ()" uses.
61562         * lib/fts.c (fts_assert): Define.
61563         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61564         Use this macro instead of a bare 'abort'.
61565
61566 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61567
61568         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61569         simply work around them.
61570         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61571         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61572         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61573         declaring.
61574         Don't bother to define as macros, since the standard doesn't require it.
61575         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61576         longer worry about IRIX 5.3.
61577         (HAVE_WCTYPE_CTMP_BUG): Remove.
61578
61579 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61580
61581         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61582         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61583         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61584         Problems reported by Georg Schwarz for IRIX 5.3.
61585
61586         * gnulib-tool (autoconf_minversion): Take the maximum version number
61587         found, not the minimum.  Problem reported by James Youngman.
61588
61589 2007-01-03  Karl Berry  <karl@gnu.org>
61590
61591         * doc/error.texi: new file, explaining interaction with progname.
61592         * doc/gnulib.texi: include it.  Update copyright.
61593
61594 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61595
61596         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61597         AC_CANONICAL_HOST, to improve autobuild outputs.
61598
61599 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61600             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61601
61602         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61603         sockets, server sockets, and other file descriptors.  Count errors
61604         to compute the return value.  Reorder the code a bit to be easier
61605         to follow.  Don't set event bits that were not requested (except
61606         POLLERR and POLLHUP).
61607
61608 2007-01-01  Bruno Haible  <bruno@clisp.org>
61609
61610         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61611
61612 2007-01-03  Jim Meyering  <jim@meyering.net>
61613
61614         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61615
61616 2007-01-02  Bruno Haible  <bruno@clisp.org>
61617
61618         * modules/settime (Include): Require timespec.h.
61619         * modules/nanosleep (Include): Likewise.
61620
61621 2007-01-01  Bruno Haible  <bruno@clisp.org>
61622
61623         * gnulib-tool (func_emit_copyright_notice): Bump year.
61624         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61625
61626 2007-01-01  Bruno Haible  <bruno@clisp.org>
61627
61628         Improve support for OpenBSD.
61629         * build-aux/config.rpath (libname_spec): Export.
61630         (library_names_spec): New variable. Export.
61631         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61632         library_names_spec from the config.rpath output. Locate shared library
61633         through the name pattern in library_names_spec.
61634
61635 2007-01-01  Eric Blake  <ebb9@byu.net>
61636
61637         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61638
61639 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61640
61641         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61642         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61643         assume the C locale, and avoid an "eval" that could cause trouble.
61644         Problem with SORT reported by Bob Proulx.
61645
61646         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61647         Define.  Trivial patch from Henning Nielsen Lund, originally
61648         sent to bug-grep@gnu.org today.
61649
61650 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61651
61652         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61653         struct stat.  Problem reported by Henning Nielsen Lund.
61654         * lib/acl.c: Include acl.h first, to check interface.  Don't
61655         bother to include sys/types.h and sys/stat.h again.
61656
61657 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61658
61659         Import the following change from libc; problem reported by
61660         Sven Verdoolaege.
61661
61662         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61663
61664         [BZ #1373]
61665         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61666
61667 2006-12-28  Jim Meyering  <jim@meyering.net>
61668
61669         * build-aux/announce-gen: Do not assume that the package
61670         builds any of tar.gz, tar.bz2, and .xdelta files.
61671         Suggestion from Simon Josefsson.
61672
61673 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61674
61675         * modules/announce-gen: New file.
61676
61677 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61678
61679         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61680         handles its gotchas now.
61681         * lib/mbswidth.c: Likewise.
61682         * lib/wcwidth.h: Likewise.
61683         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61684         and iswcntrl; the wctype module does this stuff now.
61685         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61687         * modules/mbchar (Depends-on): Add wctype.
61688         * modules/mbswidth (Depends-on): Likewise.
61689         * modules/wcwidth (Depends-on): Likewise.
61690
61691 2006-12-27  Eric Blake  <ebb9@byu.net>
61692
61693         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61694         module uses more than what <wctype.h> is required to provide.
61695
61696 2006-12-26  Eric Blake  <ebb9@byu.net>
61697
61698         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61699
61700 2006-12-26  Eric Blake  <ebb9@byu.net>
61701
61702         * modules/absolute-header: New module.
61703         * modules/fcntl (Depends-on): Depend on it.
61704         * modules/inttypes (Depends-on): Likewise.
61705         * modules/stdint (Depends-on): Likewise.
61706         * modules/sys_stat (Depends-on): Likewise.
61707         * modules/wctype (Depends-on): Likewise.
61708         * MODULES.html.sh (Support for building libraries and
61709         executables): Document it.
61710
61711 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61712
61713         * gnulib-tool (SED): Remove, undoing previous change.
61714         The problem was that it broke coreutils on Solaris, because
61715         "sed --posix" leaked into a makefile.
61716         (sed): New alias, if 'alias' and GNU sed.
61717
61718 2006-12-24  Jim Meyering  <jim@meyering.net>
61719
61720         Work around an fchownat bug in glibc-2.4:
61721         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61722         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61723         in spite of the -P option.
61724         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61725         New macros.
61726         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61727         * modules/openat (Files): Add lib/fchownat.c.
61728         * lib/openat.c (fchownat): Don't define here.  Move to...
61729         * lib/fchownat.c: ...this new file.
61730
61731 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61732
61733         Fix bug reported by Bruno Haible in
61734         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61735         where quotearg.c didn't compile on Mac OS X 10.2 because it
61736         lacks <wchar.h> and wint_t.
61737         * lib/wctype_.h (__wctype_wint_t): New type.
61738         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61739         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61740         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61741         Arg is now of type __wctype_wint_t, not wint_t.
61742         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61743         substitute HAVE_WINT_T.
61744         * modules/wctype (Files): Add m4/wint_t.m4.
61745         (wctype.h): Substitute HAVE_WINT_T.
61746
61747 2006-12-23  Bruno Haible  <bruno@clisp.org>
61748
61749         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61750
61751 2006-12-23  Bruno Haible  <bruno@clisp.org>
61752
61753         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61754         S_ISLNK.
61755         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61756         mingw.
61757
61758 2006-12-22  Bruno Haible  <bruno@clisp.org>
61759
61760         * lib/copy-file.c: Include acl.h.
61761         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61762         Close the file descriptors only after being done with copy_acl.
61763         * modules/copy-file (Depends-on): Add acl.
61764
61765 2006-12-22  Bruno Haible  <bruno@clisp.org>
61766
61767         * gnulib-tool (SED): New variable.
61768         Use $SED instead of sed everywhere.
61769
61770 2006-12-22  Bruno Haible  <bruno@clisp.org>
61771
61772         * modules/no-c++: New file.
61773         * m4/no-c++.m4: New file.
61774         * MODULES.html.sh (Support for building libraries and executables):
61775         Add no-c++.
61776
61777 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61778
61779         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61780         Include <limits.h>, and use its INT_MAX to rewrite the
61781         j loop so that it does not overflow 'int'.  Problem reported by
61782         Ralf Wildenhues in
61783         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61784         Play it safe by shifting left by 1 rather than multiplying by 2,
61785         as GCC is less likely to optimize this away when the value
61786         is signed (when it assumes overflow leads to undefined behavior).
61787         Also, don't assume time_t uses two's complement.
61788
61789 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61790
61791         * MODULES.html.sh: New module wctype.
61792         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61793         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61794         <wctype.h>, since the new wctype module should fix this.
61795         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61796         the wctype module should arrange for it.
61797         * lib/regex_internal.h: Likewise.
61798         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61799         since the wctype module should handle this now.
61800         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61801         * modules/fnmatch (Depends-on): Add wctype.
61802         * modules/quotearg (Depends-on): Likewise.
61803         * modules/regex (Depends-on): Likewise.
61804
61805 2006-12-19  Bruno Haible  <bruno@clisp.org>
61806
61807         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61808         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61809
61810 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61811
61812         * modules/savewd (Depends-on): Fix dependency on fcntl.
61813
61814 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61815
61816         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61817         conforms to C99, rather than relying on the user's environment
61818         setting of STDINT_H.
61819
61820 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61821         and Eric Blake  <ebb9@byu.net>
61822
61823         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61824         This is more consistent with the other defines here.
61825         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61826         Port to z/OS.  Problem reported by Paul Gilmartin.
61827         Change local vars to use gl_ prefix rather than ac_.
61828         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61829         with other defines.
61830         * modules/double-slash-root: New module.
61831         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61832         (Depends-on): Add double-slash-root.
61833         * MODULES.html.sh (File system functions): Mention new module.
61834
61835 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61836
61837         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61838         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61839         This is for the benefit of gzip, which doesn't do i18n.
61840
61841 2006-12-12  Jim Meyering  <jim@meyering.net>
61842
61843         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61844         Reported by Andreas Schwab <schwab@suse.de>.
61845
61846 2006-12-12  Bruno Haible  <bruno@clisp.org>
61847
61848         Merge these changes.
61849         2006-09-05  Bruno Haible  <bruno@clisp.org>
61850         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61851         iconv_alloc succeeded.
61852         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61853         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61854         test for " && dest " at the end - dest is always != NULL there. Call
61855         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61856         with 2xNULL arguments, also to flush the state storage. Handle the
61857         IRIX iconv behaviour. Realloc the final result, to throw away unused
61858         memory.
61859
61860 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61861
61862         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61863         and fchmodat unconditionally, since glibc 2.4 has them.
61864         Problem reported by Arkadiusz Miskiewicz.
61865
61866 2006-12-10  Bruno Haible  <bruno@clisp.org>
61867
61868         * gnulib-tool (func_import): Show the include files only for those
61869         modules that are copied and specified.
61870         Reported by Karl Berry.
61871
61872 2006-12-08  Jim Meyering  <jim@meyering.net>
61873
61874         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61875         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61876
61877         * build-aux/announce-gen: Add two new options, both optional:
61878         --bootstrap-tools=TOOL_LIST
61879               a comma-separated list of tools, e.g.,
61880               autoconf,automake,bison,gnulib
61881         --gnulib-snapshot-date=DATE
61882               if gnulib is in the bootstrap tool list,
61883               then report this as the snapshot date.
61884               If not specified, use the current date/time.
61885               If you specify a date here, be sure it's UTC.
61886
61887 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61888
61889         * tests/test-argp-2.sh: Fix test to match actual output.
61890         (func_compare): Fix sed script to be portable.
61891
61892 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61893
61894         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61895         workaround for this case.  It is not autoconfigured now; offhand
61896         it's hard to see how to autoconfigure it.
61897
61898 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61899
61900         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61901         a directory that is about to be chowned.  Such a directory's
61902         initial file permissions should permit the owner only and this
61903         should not be changed until after the chown, since the group and
61904         other bits would be incorrect if they granted permission before
61905         the chown.
61906
61907         Fix porting problem for iswctype reported by Georg Schwarz in:
61908         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61909         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61910         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61911         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61912         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61913
61914 2006-12-03  Jim Meyering  <jim@meyering.net>
61915
61916         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61917         p->fts_statp may not yet be defined.
61918         (fts_read): Instead, set it in the caller, once p->fts_statp is
61919         sure to be defined, and corresponds to a top-level directory.
61920         This bug made du -x fail.  Here's the coreutils test case:
61921         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61922         Reported by Mike Frysinger.
61923
61924 2006-12-01  Jim Meyering  <jim@meyering.net>
61925
61926         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61927         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61928         Reported by Simon Josefsson.
61929
61930 2006-11-30  Jim Meyering  <jim@meyering.net>
61931
61932         * m4/warning.m4: Use the all-permissive copyright notice
61933         recommended by RMS (rather than LGPL).
61934         * m4/vararrays.m4: Likewise.
61935         * m4/flexmember.m4: Likewise.
61936
61937 2006-11-29  Bruno Haible  <bruno@clisp.org>
61938
61939         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61940         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61941         using +=.
61942         Reported by Simon Josefsson <simon@josefsson.org>.
61943
61944 2006-11-28  James Youngman <jay@gnu.org>
61945
61946         * README: Advise users that they might find the bug-gnulib@gnu.org
61947         and autotools-announce@gnu.org mailing lists useful.
61948
61949 2006-11-28  Bruno Haible  <bruno@clisp.org>
61950
61951         * m4/ptrdiff_max.m4: Remove file.
61952
61953 2006-11-21  Bruno Haible  <bruno@clisp.org>
61954
61955         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61956         _AC_COMPUTE_INT.
61957         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61958         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61959         _AC_COMPUTE_INT.
61960         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61961         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61962         _AC_COMPUTE_INT.
61963         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61964
61965 2006-11-28  Jim Meyering  <jim@meyering.net>
61966
61967         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61968         warning from "gcc -Wshadow" about shadowing the builtin.
61969
61970 2006-11-27  Bruno Haible  <bruno@clisp.org>
61971
61972         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61973         _AC_COMPUTE_INT.
61974         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61975
61976 2006-11-27  Bruno Haible  <bruno@clisp.org>
61977             Paul Eggert  <eggert@cs.ucla.edu>
61978
61979         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61980
61981 2006-11-26  Bruno Haible  <bruno@clisp.org>
61982
61983         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61984         noinst_LTLIBRARIES.
61985
61986 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61987             Bruno Haible  <bruno@clisp.org>
61988
61989         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61990         if compiling with "gcc -ansi".
61991
61992 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61993
61994         Fix some incompatibilities with gcc -ansi -pedantic.
61995         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61996         if compiling pedantically with GCC, unless it's C99 or later.
61997         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61998         it mishandles gcc -ansi -pedantic as well.
61999         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62000         if gcc -pedantic.
62001         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62002         initializers for struct if -pedantic, unless it's C99 or later.
62003
62004 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62005
62006         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62007         Don't close an fd more than once. Identical atimes indicate
62008         success, not failure.
62009
62010 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62011
62012         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62013
62014 2006-11-23  Jim Meyering  <jim@meyering.net>
62015
62016         * build-aux/announce-gen: New file.  From coreutils.
62017
62018 2006-11-22  Jim Meyering  <jim@meyering.net>
62019
62020         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62021         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62022         (fts_read): Use a temporary to narrow the overused st_size member
62023         before using it in a switch statement.  Reported by Matthew Woehlke.
62024
62025         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62026         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62027
62028 2006-11-20  Bruno Haible  <bruno@clisp.org>
62029
62030         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62031         changequote instead of pairs of brackets.
62032         Reported by Andreas Schwab <schwab@suse.de>.
62033
62034 2006-11-21  Jim Meyering  <jim@meyering.net>
62035
62036         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62037         so as to remain compatible with older compilers.
62038         Patch from Michael Deutschmann.
62039
62040 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62041
62042         * MODULES.html.sh (File system functions): Add openat.
62043
62044         * lib/openat.h (rpl_fstatat): New macro, if
62045         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62046         (fstatat): Define to rpl_fstatat under the same conditions,
62047         unless COMPILING_FSTATAT.
62048         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62049         seems to have the bug.
62050         * lib/fstatat.c: New file.
62051         * modules/openat (Files): Add it.
62052
62053 2006-11-20  Bruno Haible  <bruno@clisp.org>
62054
62055         * Makefile: New file.
62056
62057 2006-11-20  Jim Meyering  <jim@meyering.net>
62058
62059         The beginnings of syntax-related checks for gnulib.
62060         * lib/Makefile: New file.
62061         * lib/t-idcache: New script.  Ensure that the two halves of
62062         idcache.c stay in sync.
62063
62064         * lib/idcache.c: Adjust comments in user- and group- portions to
62065         be more accurate, and to be consistent with one another.
62066
62067 2006-11-20  Jim Meyering  <jim@meyering.net>
62068
62069         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62070         continue using the flexible array member (thus, this module performs
62071         half as many malloc calls), with the addition that...
62072         (getgroup, getuser): Consistently record a non-match via an empty
62073         "name" string, and map an empty string match to a NULL return value.
62074         * modules/idcache (Depends-on): Re-add flexmember.
62075
62076         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62077         (getuidbyname, getgroup, getgidbyname): Likewise.
62078
62079         Use cleaner syntax: NULL rather than 0.
62080         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62081
62082 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62083
62084         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62085         It mishandled the case where the group was missing.
62086         Problem reported by Greg Schafer.
62087         * modules/idcache: Likewise.
62088
62089 2006-11-18  Jim Meyering  <jim@meyering.net>
62090
62091         * check-module (%exempt_header): Add exception for some
62092         conditionally-included headers.
62093
62094         * modules/i-ring (Depends-on): Add verify.
62095         (License): Change to LGPL.
62096
62097 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62098
62099         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62100         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62101         and inttostr.h.  Use snprintf rather than uinttostr, so that
62102         LGPLed code doesn't depend on GPLed.
62103
62104 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62105
62106         * modules/inline (License): Change from GPL to LGPL.
62107
62108 2006-11-17  Jim Meyering  <jim@meyering.net>
62109
62110         * modules/d-type (License): Switch to LGPL.
62111
62112 2006-11-15  Bruno Haible  <bruno@clisp.org>
62113
62114         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62115
62116 2006-11-15  Eric Blake  <ebb9@byu.net>
62117
62118         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62119         the module dependency.
62120
62121 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62122             Bruno Haible  <bruno@clisp.org>
62123
62124         * gnulib-tool (func_create_testdir): Add license consistency check.
62125
62126 2006-11-15  Eric Blake  <ebb9@byu.net>
62127
62128         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62129         random "(cached)" in configure output.
62130
62131 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62132
62133         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62134         test for conforming inttypes.h is both announced and cached.
62135
62136         * MODULES.html.sh (seen_modules, seen_files): New variables.
62137         (func_module): Rewrite to use a few less gnulib-tool and sed
62138         invocations.  Avoid a couple of quadratic algorithms for ...
62139         (missed_modules, missed_files): ... these, with ...
62140         (func_append, func_tmpdir): ... these new functions, from
62141         gnulib-tool.  Analogously, install traps for cleanup.
62142
62143         * tests/test-gc.c (main): Remove unused variables.
62144         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62145
62146 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62147
62148         * modules/inttostr (License): Change to LGPL.
62149
62150 2006-11-14  Eric Blake  <ebb9@byu.net>
62151
62152         * modules/tempname (License): Change to LGPL.
62153
62154 2006-11-14  Eric Blake  <ebb9@byu.net>
62155
62156         * doc/functions.texi (Function Portability): *printf functions on
62157         Cygwin now understand all POSIX size specifiers.
62158
62159 2006-11-14  Bruno Haible  <bruno@clisp.org>
62160
62161         * modules/c-ctype (License): Change to LGPL.
62162
62163 2006-11-12  Bruno Haible  <bruno@clisp.org>
62164
62165         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62166         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62167         for GNOME libraries, for which the include files are installed in
62168         subdirectories of $prefix/include.
62169
62170 2006-11-12  Bruno Haible  <bruno@clisp.org>
62171
62172         * m4/lib-link.m4: Require at least autoconf-2.54.
62173         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62174         name to underscores for the --with option.
62175
62176 2006-11-13  Bruno Haible  <bruno@clisp.org>
62177
62178         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62179         the tests directory.
62180         Reported by Ralf Wildenhues.
62181
62182 2006-11-13  Bruno Haible  <bruno@clisp.org>
62183
62184         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62185         (func_emit_initmacro_end): Undo the override here.
62186         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62187         Works around the famous automake error in coreutils.
62188
62189 2006-11-13  Eric Blake  <ebb9@byu.net>
62190
62191         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62192         element, not its node.
62193
62194 2006-11-12  Bruno Haible  <bruno@clisp.org>
62195
62196         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62197         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62198
62199 2006-11-12  Bruno Haible  <bruno@clisp.org>
62200
62201         * gnulib-tool: New option --local-symlink.
62202         (func_usage): Document it.
62203         (lsymbolic): New variable.
62204         (func_import, func_create_testdir): If --symlink was not specified,
62205         test whether --local-symlink was specified and the file comes from
62206         the local_gnulib_dir.
62207
62208 2006-11-12  Bruno Haible  <bruno@clisp.org>
62209
62210         * gnulib-tool (func_ln): New function.
62211         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62212
62213 2006-11-12  Bruno Haible  <bruno@clisp.org>
62214
62215         Finish support for source files in subdirectories.
62216         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62217         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62218         AUTOMAKE_OPTIONS.
62219         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62220
62221 2006-11-12  Bruno Haible  <bruno@clisp.org>
62222
62223         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62224         EXTRA_lib_SOURCES augmentation.
62225         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62226
62227 2006-11-12  Jim Meyering  <jim@meyering.net>
62228
62229         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62230         file descriptors.  This also averts a failure on systems with
62231         native openat support when a traversed directory lacks "x" access.
62232         * lib/fts_.h: Include "i-ring.h"
62233         (struct FTS) [fts_fd_ring]: New member.
62234         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62235         (FCHDIR): Add parentheses.
62236         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62237         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62238         When descending, rather than simply closing the previous
62239         fts_cwd_fd value, push that file descriptor onto the ring.
62240         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62241         (fts_open): Initialize the new fd_ring member.
62242         (fts_close): Clear the ring.
62243         (fts_safe_changedir): When possible, use our new fd_ring to skip
62244         the diropen and fstat and dev/ino comparison that would normally
62245         accompany a virtual `chdir ("..")'.
62246
62247         * modules/fts (Depends-on): Add i-ring.
62248         * modules/i-ring: New module.
62249         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62250         * m4/i-ring.m4: New file.
62251
62252 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62253
62254         * gnulib-tool (func_create_testdir): Fix replacement of
62255         `build-aux' in configure.ac.  Run autotools in gltests
62256         subdirectory.
62257         (func_create_testdir, func_create_megatestdir, test): There is
62258         no need for '--force' in most autotool invocations in a new
62259         tree.  Actually fail the whole test if any of the tools, or the
62260         configure or make stages fail.
62261
62262         Sync from Automake.
62263         * build-aux/gnupload: Revert last change.  Add pointer to upload
62264         instructions of the GNU Maintenance Instructions.
62265         Suggestion by Karl Berry.
62266
62267 2006-11-10  Jim Meyering  <jim@meyering.net>
62268
62269         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62270
62271 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62272
62273         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62274         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62275         (bind_textdomain_codeset) [! ENABLE_NLS]:
62276         Evaluate all the arguments.  That way, callers get compatible behavior
62277         if the arguments have side effects.  Also, it avoids some GCC
62278         diagnostics in some cases; Joel E. Denny reported problems when Bison
62279         was configured with --enable-gcc-warnigs.
62280
62281 2006-11-10  Jim Meyering  <jim@meyering.net>
62282
62283         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62284         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62285         account.
62286
62287 2006-11-10  Jim Meyering  <jim@meyering.net>
62288
62289         * modules/inline: New file/module.
62290         * modules/xalloc (Files): Remove m4/inline.m4.
62291         (Depends-on): Add inline, instead.
62292         * modules/oset: Likewise.
62293         * modules/list: Likewise.
62294
62295 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62296
62297         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62298         Problem reported by Matthew Woehlke.
62299
62300 2006-11-09  Bruno Haible  <bruno@clisp.org>
62301
62302         * lib/tempname.c (gen_tempname): Remove variant that invokes
62303         __gen_tempname.
62304         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62305         __gen_tempname.
62306
62307 2006-11-08  Bruno Haible  <bruno@clisp.org>
62308
62309         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62310         to 'yes' instead of 'cross-compiling'.
62311
62312 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62313
62314         * lib/quotearg.h (quotearg_free): New decl.
62315         * lib/quotearg.c (quotearg_free): New function.
62316         (slot0, nslots, slotvec0, slotvec):
62317         Now file-scope so that quotearg_free can get at them.
62318
62319 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62320
62321         Sync from Automake.
62322         * build-aux/gnupload: Add missing 'gnu' to example URL.
62323         Report by Karl Berry.
62324
62325 2006-11-08  Bruno Haible  <bruno@clisp.org>
62326
62327         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62328         Suggested by Paul Eggert.
62329
62330 2006-11-08  Jim Meyering  <jim@meyering.net>
62331
62332         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62333         It's already included if !_LIBC.
62334         (fts_safe_changedir): Add a comment.
62335
62336 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62339         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62340         Matthew Woehlke.
62341
62342         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62343         definitions up, to avoid colliding with change below.
62344         (static_inline) [HAVE_INLINE]: New macro.
62345         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62346         Provide extern decls when !HAVE_INLINE.  Do not define unless
62347         static_inline is defined, either by us or by xmalloc.c.  Use
62348         static_inline rather than static inline.
62349         (XCALLOC): Optimize sizeof(T) = 1 case.
62350         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62351
62352 2006-11-07  Bruno Haible  <bruno@clisp.org>
62353
62354         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62355         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62356         AC_C_INLINE.
62357         * modules/xalloc (Files): Add m4/inline.m4.
62358
62359 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62360
62361         * README: Fix typo.
62362         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62363         (Miscellanous Notes): ...from this.
62364
62365 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62366
62367         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62368         Mention that offsetof should be used instead of sizeof.
62369         From Bruno Haible.
62370
62371 2006-11-07  Bruno Haible  <bruno@clisp.org>
62372
62373         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62374
62375 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62376
62377         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62378         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62379         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62380         (gl_tree_add_before, gl_tree_add_after):
62381         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62382         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62383         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62384         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62385         (gl_linked_add_after, gl_linked_add_at): Likewise.
62386         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62387         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62388         (gl_tree_add_before, gl_tree_add_after): Likewise.
62389         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62390         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62391         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62392
62393 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62394
62395         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62396
62397 2006-11-06  Bruno Haible  <bruno@clisp.org>
62398
62399         * m4/inline.m4: New file.
62400         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62401         * modules/list (Files): Add m4/inline.m4.
62402         * modules/oset (Files): Likewise.
62403
62404 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62405
62406         * lib/idcache.c: Include <stddef.h>, for offsetof.
62407         (struct userid.name): Change from char * to a flexible array member.
62408         All uses changed.
62409         * modules/idcache (Depends-on): Add flexmember.
62410
62411         * MODULES.html.sh (Core language properties): New module flexmember.
62412         * modules/flexmember, m4/flexmember.m4: New files.
62413
62414         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62415         inline functions that are identical with the old xnmalloc_inline,
62416         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62417         that we can avoid some unnecessary integer multiplications and
62418         divisions in the common case where the element size is known at
62419         compile time.
62420         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62421         needed.
62422         (xnboundedmalloc): Remove.
62423         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62424         arguments, for consistency with rest of this header.
62425         (xcharalloc): Rewrite using XNMALLOC.
62426         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62427         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62428         versions have been moved to lib/xalloc.h and renamed to be the
62429         non-*_inline versions.
62430         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62431         and xnrealloc functions, since those functions are now inline and
62432         now call us.
62433         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62434         renaming described above.
62435         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62436         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62437         captures the dependency in AC_C_INLINE.
62438
62439         New module canonicalize-lgpl, proposed by Charles Wilson in
62440         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62441         with a few small changes afterwards.
62442         * MODULES.html.sh (File system functions): New module
62443         canonicalize-lgpl.
62444         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62445         and canonicalize_file_name.
62446         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62447         * modules/canonicalize-lgpl: New files.
62448
62449 2006-11-05  Bruno Haible  <bruno@clisp.org>
62450
62451         * gnulib-tool (func_import, func_create_testdir): Create directories
62452         also for files in subdirectories of lib/.
62453
62454 2006-11-05  Bruno Haible  <bruno@clisp.org>
62455
62456         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62457         ANSI C compliant.
62458
62459 2006-11-03  Bruno Haible  <bruno@clisp.org>
62460
62461         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62462         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62463         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62464         (xnboundedmalloc): New inline function.
62465         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62466         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62467         xmalloc.
62468         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62469         xmalloc.
62470         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62471         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62472         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62473         xmalloc.
62474         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62475         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62476         xmalloc.
62477         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62478         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62479         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62480         xmalloc.
62481         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62482         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62483         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62484         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62485         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62486         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62487         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62488
62489 2006-11-03  Bruno Haible  <bruno@clisp.org>
62490
62491         * lib/c-ctype.h [C++]: Define functions without name mangling.
62492         * lib/fwriteerror.h [C++]: Likewise.
62493         * lib/gcd.h [C++]: Likewise.
62494         * lib/linebreak.h [C++]: Likewise.
62495
62496 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62497
62498         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62499         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62500         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62501         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62502         Check for functions and headers just once.
62503         Check for declaration of canonicalize_file_name.
62504         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62505
62506 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62507
62508         * gnulib-tool (func_import): Fix typo in actioncmd.
62509
62510 2006-11-02  Bruno Haible  <bruno@clisp.org>
62511
62512         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62513         newline sequence in the Makefile.am snippet as a space, like "make"
62514         does.
62515         Reported by Roger Persson <perrog@gmail.com>.
62516
62517 2006-11-01  Bruno Haible  <bruno@clisp.org>
62518
62519         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62520         already declared in <string.h>.
62521         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62522
62523 2006-11-01  Bruno Haible  <bruno@clisp.org>
62524
62525         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62526         * lib/strcase.h: Include <string.h>.
62527         (strcasecmp): Define to rpl_strcasecmp here.
62528
62529 2006-11-01  Bruno Haible  <bruno@clisp.org>
62530
62531         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62532
62533 2006-11-01  Eric Blake  <ebb9@byu.net>
62534
62535         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62536
62537         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62538
62539 2006-10-29  Bruno Haible  <bruno@clisp.org>
62540
62541         Make it compile in C++ mode.
62542         * lib/full-write.c (full_rw): Add a cast.
62543
62544 2006-11-01  Bruno Haible  <bruno@clisp.org>
62545
62546         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62547         be POSIX compliant.
62548         Reported by Roger Persson <perrog@gmail.com>.
62549
62550 2006-11-01  Eric Blake  <ebb9@byu.net>
62551
62552         * lib/getopt_.h: Fix comments.
62553
62554 2006-10-31  Eric Blake  <ebb9@byu.net>
62555
62556         * modules/tmpdir (Depends-on): Add sys_stat.
62557         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62558         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62559         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62560         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62561         tempname.
62562
62563 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62564
62565         Avoid some C++ diagnostics reported by Bruno Haible.
62566         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62567         xmalloc.
62568         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62569         (struct slotvec): Move to top level.
62570         (quotearg_n_options): Rewrite to avoid xmalloc.
62571         * lib/xalloc.h (xcharalloc): New function.
62572         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62573         [defined __cplusplus]: Add function template that provides result
62574         type propagation.  This part of the change is from Bruno Haible.
62575
62576 2006-10-29  Bruno Haible  <bruno@clisp.org>
62577
62578         Make it compile in C++ mode.
62579         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62580         * lib/strnlen1.c (strnlen1): Cast memchr result.
62581         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62582         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62583         (create_temp_dir): Rename local variable 'template'.
62584         (compile_csharp_using_sscli): Add cast.
62585         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62586         * lib/findprog.c (find_in_path): Likewise.
62587         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62588         * lib/wait-process.c (register_slave_subprocess): Likewise.
62589
62590 2006-10-22  Bruno Haible  <bruno@clisp.org>
62591
62592         * modules/tsearch: New file.
62593         * lib/tsearch.h: New file.
62594         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62595         * m4/tsearch.m4: New file.
62596         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62597
62598 2006-10-29  Eric Blake  <ebb9@byu.net>
62599
62600         * lib/arcfour.c: Assume config.h.
62601         * lib/arctwo.c: Likewise.
62602         * lib/base64.c: Likewise.
62603         * lib/check-version.c: Likewise.
62604         * lib/crc.c: Likewise.
62605         * lib/des.c: Likewise.
62606         * lib/gc-gnulib.c: Likewise.
62607         * lib/gc-libgcrypt.c: Likewise.
62608         * lib/gc-pbkdf2-sha1.c: Likewise.
62609         * lib/getaddrinfo.c: Likewise.
62610         * lib/getdelim.c: Likewise.
62611         * lib/getline.c: Likewise.
62612         * lib/hmac-md5.c: Likewise.
62613         * lib/hmac-sha1.c: Likewise.
62614         * lib/iconvme.c: Likewise.
62615         * lib/md2.c: Likewise.
62616         * lib/md4.c: Likewise.
62617         * lib/memxor.c: Likewise.
62618         * lib/read-file.c: Likewise.
62619         * lib/readline.c: Likewise.
62620         * lib/rijndael-alg-fst.c: Likewise.
62621         * lib/rijndael-api-fst.c: Likewise.
62622         * lib/xgetdomainname.c: Likewise.
62623
62624 2006-10-28  Eric Blake  <ebb9@byu.net>
62625
62626         * lib/xstrndup.c: Assume config.h.
62627
62628 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62629
62630         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62631         stat-macros.h is now for our own macros, whereas stat_h is for
62632         macros in the <sys/stat.h> name space.
62633         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62634         (STAT_MACROS_H): Remove.
62635         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62636         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62637         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62638         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62639         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62640         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62641         Move these macros to ...
62642         * lib/stat_.h: here.  Don't include stat-macros.h.
62643         * lib/canonicalize.c: Don't include stat-macros.h.
62644         * lib/chown.c: Likewise.
62645         * lib/euidaccess.c: Likewise.
62646         * lib/file-type.c: Likewise.
62647         * lib/filemode.c: Likewise.
62648         * lib/glob.c: Likewise.
62649         * lib/isapipe.c: Likewise.
62650         * lib/lchown.c: Likewise.
62651         * lib/lstat.c: Likewise.
62652         * lib/mkdir-p.c: Likewise.
62653         * lib/rmdir.c: Likewise.
62654         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62656         unless mkdir isn't declared, to speed up 'configure'.
62657         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62658         would define all the S_* symbols.
62659         * modules/canonicalize (Depends-on):
62660         Depend on sys_stat, not stat-macros.
62661         * modules/chown: Likewise.
62662         * modules/euidaccess: Likewise.
62663         * modules/filemode: Likewise.
62664         * modules/file-type: Likewise.
62665         * modules/glob: Likewise.
62666         * modules/isapipe: Likewise.
62667         * modules/lchown: Likewise.
62668         * modules/lstat: Likewise.
62669         * modules/mkancesdirs: Likewise.
62670         * modules/rmdir: Likewise.
62671         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62672         * modules/modechange: Likewise.
62673         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62674         (configure.ac): Remove gl_STAT_MACROS.
62675         * modules/sys_stat (Depends-on): Remove stat-macros.
62676
62677 2006-10-27  Bruno Haible  <bruno@clisp.org>
62678
62679         * m4/signed.m4: Remove file.
62680         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62681         invocation.
62682         * modules/vasnprintf (Files): Remove m4/signed.m4.
62683
62684 2006-10-27  Bruno Haible  <bruno@clisp.org>
62685
62686         Update to GNU gettext 0.16.
62687         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62688         m4/inttypes-h.m4, m4/signed.m4.
62689         * m4/gettext.m4: Update to GNU gettext 0.16.
62690         * m4/intl.m4: New file, from GNU gettext.
62691         * m4/intldir.m4: New file, from GNU gettext.
62692         * config/srclist.txt: Update
62693
62694 2006-10-27  Eric Blake  <ebb9@byu.net>
62695
62696         * MODULES.html.sh: Document tempname.
62697         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62698         dependencies.
62699         (Files): Move lib/tempname.c...
62700         * modules/tempname: ...to this new module.
62701         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62702         (gl_PREREQ_TEMPNAME): Move...
62703         * m4/tempname.m4: ...to this new file.
62704         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62705         * modules/sys_stat (Depends-on): Add stat-macros.
62706         * lib/stat_.h (includes): Pick up stat macros.
62707         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62708         if stat macros are broken.
62709         * lib/tempname.c (includes): No need to include "stat-macros.h".
62710         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62711         (direxists, __path_search) [!_LIBC]: Don't compile these in
62712         gnulib; the tmpdir module covers that.
62713         * lib/tempname.h: New file.
62714
62715 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62716
62717         * COPYING: Explain how gnulib-tool converts licence headers.
62718         Almost all wording by Eric Blake.
62719
62720 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62721
62722         * lib/mbchar.h (is_basic_table): Make read-only.
62723         * lib/mbchar.c (is_basic_table): Likewise.
62724         Reported by John Darrington.
62725
62726 2006-10-25  Bruno Haible  <bruno@clisp.org>
62727
62728         * lib/progname.h (set_program_name): Undefine before defining.
62729
62730 2006-10-25  Bruno Haible  <bruno@clisp.org>
62731
62732         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62733         false for non-gcc C++ compilers.
62734         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62735
62736 2006-10-24  Bruno Haible  <bruno@clisp.org>
62737
62738         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62739         iconv implementations like Irix iconv.
62740
62741 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62742
62743         * modules/vararrays: New file.
62744         * m4/vararrays.m4: New file, taken from diffutils.
62745         * MODULES.html.sh: New module vararrays.
62746
62747 2006-10-24  Karl Berry  <karl@gnu.org>
62748
62749         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62750         Don't call GNU Unix.
62751
62752 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62753
62754         * users.txt: Add Libtool.
62755
62756         Sync from Libtool:
62757
62758         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62759
62760         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62761         to gnulib's policy of including config.h unconditionally.
62762
62763 2006-10-24  Bruno Haible  <bruno@clisp.org>
62764
62765         * modules/wcwidth (Files): Add m4/wint_t.m4.
62766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62767         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62768
62769 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62770
62771         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62772         to pacify GCC with some -W flags enabled.  Problem reported by
62773         Bruno Haible.
62774
62775 2006-10-24  Jim Meyering  <jim@meyering.net>
62776
62777         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62778         Reported by Karl Berry.
62779
62780 2006-10-23  Bruno Haible  <bruno@clisp.org>
62781
62782         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62783
62784 2006-10-24  Bruno Haible  <bruno@clisp.org>
62785
62786         * lib/gl_list.h: Use C comment style, not C++ comment style.
62787
62788 2006-10-23  Eric Blake  <ebb9@byu.net>
62789
62790         * lib/getaddrinfo.c (includes): Add missing include.
62791
62792 2006-10-23  Bruno Haible  <bruno@clisp.org>
62793             Paul Eggert  <eggert@cs.ucla.edu>
62794
62795         Ability to rename obstack_free.
62796         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62797         obstack_free.
62798         (obstack_free): Invoke the __obstack_free macro.
62799         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62800
62801 2006-10-23  Bruno Haible  <bruno@clisp.org>
62802             Paul Eggert  <eggert@cs.ucla.edu>
62803
62804         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62805         __argc, __argv from the declaration. (They are defined as macros on
62806         mingw.)
62807
62808 2006-10-22  Bruno Haible  <bruno@clisp.org>
62809
62810         * doc/gnulib-intro.texi: New file.
62811         * doc/gnulib.texi: Include it.
62812
62813 2006-10-21  Bruno Haible  <bruno@clisp.org>
62814
62815         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62816         "Introduction", "Miscellanous Notes", "Particular Modules".
62817
62818 2006-10-21  Bruno Haible  <bruno@clisp.org>
62819
62820         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62821         Change mostlyclean-local rule to avoid sh syntax error from bash
62822         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62823
62824 2006-10-23  Jim Meyering  <jim@meyering.net>
62825
62826         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62827         in place of snprintf.
62828
62829         * modules/inttostr (Files): Add lib/uinttostr.c.
62830         * lib/uinttostr.c (inttostr): New file/function.
62831         * lib/inttostr.h (uinttostr): Declare.
62832         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62833         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62834         Add uinttostr.
62835         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62836
62837 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62838
62839         * lib/canonicalize.c (ELOOP): Define if not already defined.
62840         Problem reported by Bruno Haible in
62841         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62842
62843 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62846         Problem reported by Perry Smith and Ville Laurikari.
62847
62848         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62849         uses.
62850
62851 2006-10-19  Bruno Haible  <bruno@clisp.org>
62852
62853         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62854         for mingw.
62855
62856 2006-10-19  Bruno Haible  <bruno@clisp.org>
62857
62858         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62859         Needed for mingw.
62860
62861 2006-10-19  Bruno Haible  <bruno@clisp.org>
62862
62863         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62864
62865 2006-10-19  Bruno Haible  <bruno@clisp.org>
62866
62867         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62868         it.
62869
62870 2006-10-19  Bruno Haible  <bruno@clisp.org>
62871
62872         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62873         invocation.
62874
62875 2006-10-19  Bruno Haible  <bruno@clisp.org>
62876
62877         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62878         mountlist by default.
62879
62880 2006-10-16  Bruno Haible  <bruno@clisp.org>
62881
62882         * lib/c-strstr.c: Include c-strstr.h.
62883
62884 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62885
62886         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62887         in a slash.
62888
62889 2006-10-18  Bruno Haible  <bruno@clisp.org>
62890
62891         * lib/lock.h [C++]: Wrap definitions in extern "C".
62892
62893 2006-10-18  Bruno Haible  <bruno@clisp.org>
62894
62895         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62896         gl_LIBOBJS list.
62897
62898 2006-10-18  Bruno Haible  <bruno@clisp.org>
62899
62900         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62901
62902 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62903
62904         * lib/xstrtol.h: Include gettext.h.
62905         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62906         Problem reported by Eric Blake.
62907         * modules/xstrtol (Depends-on): Add gettext-h.
62908
62909 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62910
62911         * lib/strftime.c (advance): New macro.
62912         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62913         incomplete type, so you can't add 0 to it.  Problem and patch
62914         reported by Eelco Dolstra for dietlibc.
62915
62916 2006-10-18  Jim Meyering  <jim@meyering.net>
62917
62918         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62919         type for a local, and rename it: s/up/user_proc/.
62920
62921 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62922
62923         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62924         READ_UTMP_USER_PROCESS.
62925         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62926
62927 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62928
62929         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62930         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62931
62932 2006-10-17  Eric Blake  <ebb9@byu.net>
62933
62934         * lib/sigprocmask.c (sigprocmask): Fix typo.
62935
62936         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62937
62938         * modules/clean-temp (Makefile.am): Don't add to make output...
62939         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62940         config.h.
62941
62942 2006-10-17  Bruno Haible  <bruno@clisp.org>
62943
62944         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62945         differently if DEFAULT_TEXT_DOMAIN is set.
62946
62947 2006-10-16  Bruno Haible  <bruno@clisp.org>
62948
62949         * lib/clean-temp.c: Include fwriteerror.h.
62950
62951 2006-10-16  Bruno Haible  <bruno@clisp.org>
62952
62953         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62954
62955 2006-10-16  Bruno Haible  <bruno@clisp.org>
62956
62957         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62958         * lib/sigprocmask.h: Include <sys/types.h>.
62959         (sigset_t): Use the system's definition if present.
62960
62961 2006-10-17  Eric Blake  <ebb9@byu.net>
62962
62963         * lib/xvasprintf.c (includes): Assume config.h.
62964         * lib/xasprintf.c (includes): Likewise.
62965
62966 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62967
62968         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62969         at least as wide as intmax_t.
62970
62971 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62972
62973         (Imported from Automake.)
62974         * build-aux/gnupload: Update to version 1.1 of directive file.
62975
62976 2006-10-16  Eric Blake  <ebb9@byu.net>
62977
62978         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62979         match Automake 1.10a.
62980
62981 2006-10-14  Bruno Haible  <bruno@clisp.org>
62982
62983         * modules/sigprocmask: New file.
62984         * lib/sigprocmask.h: New file.
62985         * lib/sigprocmask.c: New file.
62986         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62987         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62988         request sigprocmask.o.
62989         (gl_PREREQ_SIGPROCMASK): New macro.
62990         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62991         (Depends-on): Add sigprocmask.
62992         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62993         gt_SIGNALBLOCKING. Test for 'raise' only once.
62994         * lib/fatal-signal.c: Include sigprocmask.h.
62995         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62996         unblock_fatal_signals): Define always.
62997         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62998         sigprocmask.
62999
63000 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63001
63002         Sync from Automake.
63003         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63004         which incorrectly sets the mode of an existing destination
63005         directory.  In some cases the unpatched install-sh could do the
63006         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63007         system.  We hope this is rare in practice, but it's clearly worth
63008         fixing.  Problem reported by Alex Unleashed in
63009         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63010         Also, don't bother to check for -m bugs unless we're using -m;
63011         suggested by Stepan Kasal.
63012
63013 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63014
63015         Sync from Automake.
63016         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63017         `-c' flag, so they appear at the same position as in %FASTDEP%
63018         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63019         which ignores unknown options only after the first non-option.
63020         Bug report against M4 by Nelson H. F. Beebe.
63021
63022 2006-10-13  Jim Meyering  <jim@meyering.net>
63023
63024         Fix a bug in yesterday's change.
63025         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63026         p->fts_statp->st_dev would be used uninitialized.
63027         Ensures that we always call fts_stat on the very first entry.
63028         Miklos Szeredi reported that find -xdev stopped working.
63029
63030 2006-10-12  Bruno Haible  <bruno@clisp.org>
63031
63032         * gnulib-tool (func_get_automake_snippet): Append an automatically
63033         computed EXTRA_DIST augmentation.
63034         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63035         * modules/alloca-opt (Makefile.am): Likewise.
63036         * modules/allocsa (Makefile.am): Likewise.
63037         * modules/arcfour (Makefile.am): Likewise.
63038         * modules/arctwo (Makefile.am): Likewise.
63039         * modules/argmatch (Makefile.am): Likewise.
63040         * modules/argz (Makefile.am): Likewise.
63041         * modules/atexit (Makefile.am): Likewise.
63042         * modules/backupfile (Makefile.am): Likewise.
63043         * modules/byteswap (Makefile.am): Likewise.
63044         * modules/c-strtod (Makefile.am): Likewise.
63045         * modules/c-strtold (Makefile.am): Likewise.
63046         * modules/calloc (Makefile.am): Likewise.
63047         * modules/canon-host (Makefile.am): Likewise.
63048         * modules/canonicalize (Makefile.am): Likewise.
63049         * modules/chdir-long (Makefile.am): Likewise.
63050         * modules/chdir-safer (Makefile.am): Likewise.
63051         * modules/check-version (Makefile.am): Likewise.
63052         * modules/chown (Makefile.am): Likewise.
63053         * modules/cloexec (Makefile.am): Likewise.
63054         * modules/close-stream (Makefile.am): Likewise.
63055         * modules/closeout (Makefile.am): Likewise.
63056         * modules/crc (Makefile.am): Likewise.
63057         * modules/csharpexec (Makefile.am): Likewise.
63058         * modules/cycle-check (Makefile.am): Likewise.
63059         * modules/des (Makefile.am): Likewise.
63060         * modules/dev-ino (Makefile.am): Likewise.
63061         * modules/dirfd (Makefile.am): Likewise.
63062         * modules/dirname (Makefile.am): Likewise.
63063         * modules/dup2 (Makefile.am): Likewise.
63064         * modules/eealloc (Makefile.am): Likewise.
63065         * modules/error (Makefile.am): Likewise.
63066         * modules/euidaccess (Makefile.am): Likewise.
63067         * modules/exclude (Makefile.am): Likewise.
63068         * modules/exitfail (Makefile.am): Likewise.
63069         * modules/fcntl-safer (Makefile.am): Likewise.
63070         * modules/fcntl (Makefile.am): Likewise.
63071         * modules/file-type (Makefile.am): Likewise.
63072         * modules/fileblocks (Makefile.am): Likewise.
63073         * modules/filemode (Makefile.am): Likewise.
63074         * modules/filenamecat (Makefile.am): Likewise.
63075         * modules/fnmatch (Makefile.am): Likewise.
63076         * modules/fopen-safer (Makefile.am): Likewise.
63077         * modules/fpending (Makefile.am): Likewise.
63078         * modules/fprintftime (Makefile.am): Likewise.
63079         * modules/free (Makefile.am): Likewise.
63080         * modules/fsusage (Makefile.am): Likewise.
63081         * modules/ftruncate (Makefile.am): Likewise.
63082         * modules/fts (Makefile.am): Likewise.
63083         * modules/gc-arcfour (Makefile.am): Likewise.
63084         * modules/gc-des (Makefile.am): Likewise.
63085         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63086         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63087         * modules/gc-md4 (Makefile.am): Likewise.
63088         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63089         * modules/gc-sha1 (Makefile.am): Likewise.
63090         * modules/gc (Makefile.am): Likewise.
63091         * modules/getaddrinfo (Makefile.am): Likewise.
63092         * modules/getcwd (Makefile.am): Likewise.
63093         * modules/getdelim (Makefile.am): Likewise.
63094         * modules/getdomainname (Makefile.am): Likewise.
63095         * modules/getgroups (Makefile.am): Likewise.
63096         * modules/gethostname (Makefile.am): Likewise.
63097         * modules/gethrxtime (Makefile.am): Likewise.
63098         * modules/getline (Makefile.am): Likewise.
63099         * modules/getloadavg (Makefile.am): Likewise.
63100         * modules/getlogin_r (Makefile.am): Likewise.
63101         * modules/getndelim2 (Makefile.am): Likewise.
63102         * modules/getopt (Makefile.am): Likewise.
63103         * modules/getpagesize (Makefile.am): Likewise.
63104         * modules/getpass-gnu (Makefile.am): Likewise.
63105         * modules/getpass (Makefile.am): Likewise.
63106         * modules/getsubopt (Makefile.am): Likewise.
63107         * modules/gettime (Makefile.am): Likewise.
63108         * modules/gettimeofday (Makefile.am): Likewise.
63109         * modules/getugroups (Makefile.am): Likewise.
63110         * modules/getusershell (Makefile.am): Likewise.
63111         * modules/glob (Makefile.am): Likewise.
63112         * modules/group-member (Makefile.am): Likewise.
63113         * modules/hard-locale (Makefile.am): Likewise.
63114         * modules/hash (Makefile.am): Likewise.
63115         * modules/hmac-md5 (Makefile.am): Likewise.
63116         * modules/hmac-sha1 (Makefile.am): Likewise.
63117         * modules/human (Makefile.am): Likewise.
63118         * modules/idcache (Makefile.am): Likewise.
63119         * modules/imaxabs (Makefile.am): Likewise.
63120         * modules/imaxdiv (Makefile.am): Likewise.
63121         * modules/inet_ntop (Makefile.am): Likewise.
63122         * modules/inet_pton (Makefile.am): Likewise.
63123         * modules/intprops (Makefile.am): Likewise.
63124         * modules/inttostr (Makefile.am): Likewise.
63125         * modules/inttypes (Makefile.am): Likewise.
63126         * modules/isapipe (Makefile.am): Likewise.
63127         * modules/javaversion (Makefile.am): Likewise.
63128         * modules/lchmod (Makefile.am): Likewise.
63129         * modules/lchown (Makefile.am): Likewise.
63130         * modules/localcharset (Makefile.am): Likewise.
63131         * modules/long-options (Makefile.am): Likewise.
63132         * modules/lstat (Makefile.am): Likewise.
63133         * modules/malloc (Makefile.am): Likewise.
63134         * modules/mathl (Makefile.am): Likewise.
63135         * modules/mbchar (Makefile.am): Likewise.
63136         * modules/md2 (Makefile.am): Likewise.
63137         * modules/md4 (Makefile.am): Likewise.
63138         * modules/md5 (Makefile.am): Likewise.
63139         * modules/memcasecmp (Makefile.am): Likewise.
63140         * modules/memchr (Makefile.am): Likewise.
63141         * modules/memcmp (Makefile.am): Likewise.
63142         * modules/memcoll (Makefile.am): Likewise.
63143         * modules/memcpy (Makefile.am): Likewise.
63144         * modules/memmem (Makefile.am): Likewise.
63145         * modules/memmove (Makefile.am): Likewise.
63146         * modules/mempcpy (Makefile.am): Likewise.
63147         * modules/memrchr (Makefile.am): Likewise.
63148         * modules/memset (Makefile.am): Likewise.
63149         * modules/memxor (Makefile.am): Likewise.
63150         * modules/mkancesdirs (Makefile.am): Likewise.
63151         * modules/mkdir-p (Makefile.am): Likewise.
63152         * modules/mkdir (Makefile.am): Likewise.
63153         * modules/mkdtemp (Makefile.am): Likewise.
63154         * modules/mkstemp (Makefile.am): Likewise.
63155         * modules/mktime (Makefile.am): Likewise.
63156         * modules/modechange (Makefile.am): Likewise.
63157         * modules/mountlist (Makefile.am): Likewise.
63158         * modules/nanosleep (Makefile.am): Likewise.
63159         * modules/obstack (Makefile.am): Likewise.
63160         * modules/openat (Makefile.am): Likewise.
63161         * modules/pagealign_alloc (Makefile.am): Likewise.
63162         * modules/pathmax (Makefile.am): Likewise.
63163         * modules/physmem (Makefile.am): Likewise.
63164         * modules/poll (Makefile.am): Likewise.
63165         * modules/posixtm (Makefile.am): Likewise.
63166         * modules/posixver (Makefile.am): Likewise.
63167         * modules/putenv (Makefile.am): Likewise.
63168         * modules/quote (Makefile.am): Likewise.
63169         * modules/quotearg (Makefile.am): Likewise.
63170         * modules/raise (Makefile.am): Likewise.
63171         * modules/read-file (Makefile.am): Likewise.
63172         * modules/readline (Makefile.am): Likewise.
63173         * modules/readlink (Makefile.am): Likewise.
63174         * modules/readtokens (Makefile.am): Likewise.
63175         * modules/readutmp (Makefile.am): Likewise.
63176         * modules/realloc (Makefile.am): Likewise.
63177         * modules/regex (Makefile.am): Likewise.
63178         * modules/rename-dest-slash (Makefile.am): Likewise.
63179         * modules/rename (Makefile.am): Likewise.
63180         * modules/rijndael (Makefile.am): Likewise.
63181         * modules/rmdir (Makefile.am): Likewise.
63182         * modules/rpmatch (Makefile.am): Likewise.
63183         * modules/safe-read (Makefile.am): Likewise.
63184         * modules/safe-write (Makefile.am): Likewise.
63185         * modules/same-inode (Makefile.am): Likewise.
63186         * modules/same (Makefile.am): Likewise.
63187         * modules/save-cwd (Makefile.am): Likewise.
63188         * modules/savedir (Makefile.am): Likewise.
63189         * modules/setenv (Makefile.am): Likewise.
63190         * modules/settime (Makefile.am): Likewise.
63191         * modules/sha1 (Makefile.am): Likewise.
63192         * modules/sig2str (Makefile.am): Likewise.
63193         * modules/snprintf (Makefile.am): Likewise.
63194         * modules/stat-macros (Makefile.am): Likewise.
63195         * modules/stat-time (Makefile.am): Likewise.
63196         * modules/stdbool (Makefile.am): Likewise.
63197         * modules/stdint (Makefile.am): Likewise.
63198         * modules/stdlib-safer (Makefile.am): Likewise.
63199         * modules/stpcpy (Makefile.am): Likewise.
63200         * modules/stpncpy (Makefile.am): Likewise.
63201         * modules/strcase (Makefile.am): Likewise.
63202         * modules/strcasestr (Makefile.am): Likewise.
63203         * modules/strchrnul (Makefile.am): Likewise.
63204         * modules/strcspn (Makefile.am): Likewise.
63205         * modules/strdup (Makefile.am): Likewise.
63206         * modules/strerror (Makefile.am): Likewise.
63207         * modules/strftime (Makefile.am): Likewise.
63208         * modules/strndup (Makefile.am): Likewise.
63209         * modules/strnlen (Makefile.am): Likewise.
63210         * modules/strpbrk (Makefile.am): Likewise.
63211         * modules/strsep (Makefile.am): Likewise.
63212         * modules/strstr (Makefile.am): Likewise.
63213         * modules/strtod (Makefile.am): Likewise.
63214         * modules/strtoimax (Makefile.am): Likewise.
63215         * modules/strtok_r (Makefile.am): Likewise.
63216         * modules/strtol (Makefile.am): Likewise.
63217         * modules/strtoll (Makefile.am): Likewise.
63218         * modules/strtoul (Makefile.am): Likewise.
63219         * modules/strtoull (Makefile.am): Likewise.
63220         * modules/strtoumax (Makefile.am): Likewise.
63221         * modules/strverscmp (Makefile.am): Likewise.
63222         * modules/sys_socket (Makefile.am): Likewise.
63223         * modules/sys_stat (Makefile.am): Likewise.
63224         * modules/sysexits (Makefile.am): Likewise.
63225         * modules/time_r (Makefile.am): Likewise.
63226         * modules/timegm (Makefile.am): Likewise.
63227         * modules/timespec (Makefile.am): Likewise.
63228         * modules/tmpfile-safer (Makefile.am): Likewise.
63229         * modules/trim (Makefile.am): Likewise.
63230         * modules/unistd-safer (Makefile.am): Likewise.
63231         * modules/unlinkdir (Makefile.am): Likewise.
63232         * modules/unlocked-io (Makefile.am): Likewise.
63233         * modules/userspec (Makefile.am): Likewise.
63234         * modules/utime (Makefile.am): Likewise.
63235         * modules/utimecmp (Makefile.am): Likewise.
63236         * modules/utimens (Makefile.am): Likewise.
63237         * modules/vasnprintf (Makefile.am): Likewise.
63238         * modules/vasprintf (Makefile.am): Likewise.
63239         * modules/vsnprintf (Makefile.am): Likewise.
63240         * modules/xalloc (Makefile.am): Likewise.
63241         * modules/xgetcwd (Makefile.am): Likewise.
63242         * modules/xnanosleep (Makefile.am): Likewise.
63243         * modules/xreadlink (Makefile.am): Likewise.
63244         * modules/xstrtod (Makefile.am): Likewise.
63245         * modules/xstrtol (Makefile.am): Likewise.
63246         * modules/xstrtold (Makefile.am): Likewise.
63247         * modules/yesno (Makefile.am): Likewise.
63248         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63249
63250 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         * modules/error (Makefile.am): Distribute files through
63253         EXTRA_DIST, not lib_SOURCES.
63254
63255 2006-10-12  Eric Blake  <ebb9@byu.net>
63256
63257         * modules/error (Makefile.am): Distribute files in /lib.
63258         * modules/obstack (Makefile.am): Likewise.
63259
63260 2006-10-12  Bruno Haible  <bruno@clisp.org>
63261
63262         * modules/acl (Makefile.am): Distribute all files in lib/ through
63263         EXTRA_DIST.
63264         * modules/arcfour (Makefile.am): Likewise.
63265         * modules/arctwo (Makefile.am): Likewise.
63266         * modules/argmatch (Makefile.am): Likewise.
63267         * modules/argz (Makefile.am): Likewise.
63268         * modules/atexit (Makefile.am): Likewise.
63269         * modules/backupfile (Makefile.am): Likewise.
63270         * modules/c-strtod (Makefile.am): Likewise.
63271         * modules/c-strtold (Makefile.am): Likewise.
63272         * modules/calloc (Makefile.am): Likewise.
63273         * modules/canon-host (Makefile.am): Likewise.
63274         * modules/canonicalize (Makefile.am): Likewise.
63275         * modules/chdir-long (Makefile.am): Likewise.
63276         * modules/chdir-safer (Makefile.am): Likewise.
63277         * modules/check-version (Makefile.am): Likewise.
63278         * modules/chown (Makefile.am): Likewise.
63279         * modules/cloexec (Makefile.am): Likewise.
63280         * modules/close-stream (Makefile.am): Likewise.
63281         * modules/closeout (Makefile.am): Likewise.
63282         * modules/crc (Makefile.am): Likewise.
63283         * modules/cycle-check (Makefile.am): Likewise.
63284         * modules/des (Makefile.am): Likewise.
63285         * modules/dirfd (Makefile.am): Likewise.
63286         * modules/dirname (Makefile.am): Likewise.
63287         * modules/dup2 (Makefile.am): Likewise.
63288         * modules/euidaccess (Makefile.am): Likewise.
63289         * modules/exclude (Makefile.am): Likewise.
63290         * modules/exitfail (Makefile.am): Likewise.
63291         * modules/fcntl-safer (Makefile.am): Likewise.
63292         * modules/file-type (Makefile.am): Likewise.
63293         * modules/fileblocks (Makefile.am): Likewise.
63294         * modules/filemode (Makefile.am): Likewise.
63295         * modules/filenamecat (Makefile.am): Likewise.
63296         * modules/fnmatch (Makefile.am): Likewise.
63297         * modules/fopen-safer (Makefile.am): Likewise.
63298         * modules/fpending (Makefile.am): Likewise.
63299         * modules/fprintftime (Makefile.am): Likewise.
63300         * modules/free (Makefile.am): Likewise.
63301         * modules/fsusage (Makefile.am): Likewise.
63302         * modules/ftruncate (Makefile.am): Likewise.
63303         * modules/fts (Makefile.am): Likewise.
63304         * modules/gc (Makefile.am): Likewise.
63305         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63306         * modules/getaddrinfo (Makefile.am): Likewise.
63307         * modules/getcwd (Makefile.am): Likewise.
63308         * modules/getdelim (Makefile.am): Likewise.
63309         * modules/getdomainname (Makefile.am): Likewise.
63310         * modules/getgroups (Makefile.am): Likewise.
63311         * modules/gethostname (Makefile.am): Likewise.
63312         * modules/gethrxtime (Makefile.am): Likewise.
63313         * modules/getline (Makefile.am): Likewise.
63314         * modules/getloadavg (Makefile.am): Likewise.
63315         * modules/getlogin_r (Makefile.am): Likewise.
63316         * modules/getopt (Makefile.am): Likewise.
63317         * modules/getpass (Makefile.am): Likewise.
63318         * modules/getpass-gnu (Makefile.am): Likewise.
63319         * modules/getsubopt (Makefile.am): Likewise.
63320         * modules/gettime (Makefile.am): Likewise.
63321         * modules/gettimeofday (Makefile.am): Likewise.
63322         * modules/getugroups (Makefile.am): Likewise.
63323         * modules/getusershell (Makefile.am): Likewise.
63324         * modules/glob (Makefile.am): Likewise.
63325         * modules/group-member (Makefile.am): Likewise.
63326         * modules/hard-locale (Makefile.am): Likewise.
63327         * modules/hash (Makefile.am): Likewise.
63328         * modules/hmac-md5 (Makefile.am): Likewise.
63329         * modules/hmac-sha1 (Makefile.am): Likewise.
63330         * modules/human (Makefile.am): Likewise.
63331         * modules/idcache (Makefile.am): Likewise.
63332         * modules/imaxabs (Makefile.am): Likewise.
63333         * modules/imaxdiv (Makefile.am): Likewise.
63334         * modules/inet_ntop (Makefile.am): Likewise.
63335         * modules/inet_pton (Makefile.am): Likewise.
63336         * modules/inttostr (Makefile.am): Likewise.
63337         * modules/isapipe (Makefile.am): Likewise.
63338         * modules/lchown (Makefile.am): Likewise.
63339         * modules/long-options (Makefile.am): Likewise.
63340         * modules/lstat (Makefile.am): Likewise.
63341         * modules/malloc (Makefile.am): Likewise.
63342         * modules/mathl (Makefile.am): Likewise.
63343         * modules/mbchar (Makefile.am): Likewise.
63344         * modules/md2 (Makefile.am): Likewise.
63345         * modules/md4 (Makefile.am): Likewise.
63346         * modules/md5 (Makefile.am): Likewise.
63347         * modules/memcasecmp (Makefile.am): Likewise.
63348         * modules/memchr (Makefile.am): Likewise.
63349         * modules/memcmp (Makefile.am): Likewise.
63350         * modules/memcoll (Makefile.am): Likewise.
63351         * modules/memcpy (Makefile.am): Likewise.
63352         * modules/memmem (Makefile.am): Likewise.
63353         * modules/memmove (Makefile.am): Likewise.
63354         * modules/mempcpy (Makefile.am): Likewise.
63355         * modules/memrchr (Makefile.am): Likewise.
63356         * modules/memset (Makefile.am): Likewise.
63357         * modules/memxor (Makefile.am): Likewise.
63358         * modules/mkancesdirs (Makefile.am): Likewise.
63359         * modules/mkdir (Makefile.am): Likewise.
63360         * modules/mkdir-p (Makefile.am): Likewise.
63361         * modules/mkdtemp (Makefile.am): Likewise.
63362         * modules/mkstemp (Makefile.am): Likewise.
63363         * modules/mktime (Makefile.am): Likewise.
63364         * modules/modechange (Makefile.am): Likewise.
63365         * modules/mountlist (Makefile.am): Likewise.
63366         * modules/nanosleep (Makefile.am): Likewise.
63367         * modules/openat (Makefile.am): Likewise.
63368         * modules/pagealign_alloc (Makefile.am): Likewise.
63369         * modules/physmem (Makefile.am): Likewise.
63370         * modules/poll (Makefile.am): Likewise.
63371         * modules/posixtm (Makefile.am): Likewise.
63372         * modules/posixver (Makefile.am): Likewise.
63373         * modules/putenv (Makefile.am): Likewise.
63374         * modules/quote (Makefile.am): Likewise.
63375         * modules/quotearg (Makefile.am): Likewise.
63376         * modules/raise (Makefile.am): Likewise.
63377         * modules/read-file (Makefile.am): Likewise.
63378         * modules/readline (Makefile.am): Likewise.
63379         * modules/readlink (Makefile.am): Likewise.
63380         * modules/readtokens (Makefile.am): Likewise.
63381         * modules/readutmp (Makefile.am): Likewise.
63382         * modules/realloc (Makefile.am): Likewise.
63383         * modules/regex (Makefile.am): Likewise.
63384         * modules/rename (Makefile.am): Likewise.
63385         * modules/rename-dest-slash (Makefile.am): Likewise.
63386         * modules/rijndael (Makefile.am): Likewise.
63387         * modules/rmdir (Makefile.am): Likewise.
63388         * modules/rpmatch (Makefile.am): Likewise.
63389         * modules/safe-read (Makefile.am): Likewise.
63390         * modules/safe-write (Makefile.am): Likewise.
63391         * modules/same (Makefile.am): Likewise.
63392         * modules/save-cwd (Makefile.am): Likewise.
63393         * modules/savedir (Makefile.am): Likewise.
63394         * modules/setenv (Makefile.am): Likewise.
63395         * modules/settime (Makefile.am): Likewise.
63396         * modules/sha1 (Makefile.am): Likewise.
63397         * modules/sig2str (Makefile.am): Likewise.
63398         * modules/snprintf (Makefile.am): Likewise.
63399         * modules/stdlib-safer (Makefile.am): Likewise.
63400         * modules/stpcpy (Makefile.am): Likewise.
63401         * modules/stpncpy (Makefile.am): Likewise.
63402         * modules/strcase (Makefile.am): Likewise.
63403         * modules/strcasestr (Makefile.am): Likewise.
63404         * modules/strchrnul (Makefile.am): Likewise.
63405         * modules/strcspn (Makefile.am): Likewise.
63406         * modules/strdup (Makefile.am): Likewise.
63407         * modules/strerror (Makefile.am): Likewise.
63408         * modules/strftime (Makefile.am): Likewise.
63409         * modules/strndup (Makefile.am): Likewise.
63410         * modules/strnlen (Makefile.am): Likewise.
63411         * modules/strpbrk (Makefile.am): Likewise.
63412         * modules/strsep (Makefile.am): Likewise.
63413         * modules/strstr (Makefile.am): Likewise.
63414         * modules/strtod (Makefile.am): Likewise.
63415         * modules/strtoimax (Makefile.am): Likewise.
63416         * modules/strtok_r (Makefile.am): Likewise.
63417         * modules/strtol (Makefile.am): Likewise.
63418         * modules/strtoll (Makefile.am): Likewise.
63419         * modules/strtoul (Makefile.am): Likewise.
63420         * modules/strtoull (Makefile.am): Likewise.
63421         * modules/strtoumax (Makefile.am): Likewise.
63422         * modules/strverscmp (Makefile.am): Likewise.
63423         * modules/time_r (Makefile.am): Likewise.
63424         * modules/timegm (Makefile.am): Likewise.
63425         * modules/tmpfile-safer (Makefile.am): Likewise.
63426         * modules/unistd-safer (Makefile.am): Likewise.
63427         * modules/unlinkdir (Makefile.am): Likewise.
63428         * modules/userspec (Makefile.am): Likewise.
63429         * modules/utime (Makefile.am): Likewise.
63430         * modules/utimecmp (Makefile.am): Likewise.
63431         * modules/utimens (Makefile.am): Likewise.
63432         * modules/vasnprintf (Makefile.am): Likewise.
63433         * modules/vasprintf (Makefile.am): Likewise.
63434         * modules/vsnprintf (Makefile.am): Likewise.
63435         * modules/xalloc (Makefile.am): Likewise.
63436         * modules/xgetcwd (Makefile.am): Likewise.
63437         * modules/xnanosleep (Makefile.am): Likewise.
63438         * modules/xreadlink (Makefile.am): Likewise.
63439         * modules/xstrtod (Makefile.am): Likewise.
63440         * modules/xstrtol (Makefile.am): Likewise.
63441         * modules/xstrtold (Makefile.am): Likewise.
63442         * modules/yesno (Makefile.am): Likewise.
63443
63444 2006-10-12  Jim Meyering  <jim@meyering.net>
63445
63446         * m4/getloadavg.m4: Revert the change below.
63447
63448         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63449         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63450         fail with a symlink, which is what coreutils' ./bootstrap now
63451         creates by default.
63452
63453 2006-10-12  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63456         mingw.
63457         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63458         MSVC and mingw explicitly.
63459
63460 2006-10-11  Simon Josefsson  <jas@extundo.com>
63461             Bruno Haible  <bruno@clisp.org>
63462
63463         Add support for multiple gnulib-tool invocations in the scope of a
63464         single configure.ac file.
63465         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63466         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63467         with the same contents as the _LIBADD variable.
63468         (func_emit_initmacro_start, func_emit_initmacro_end,
63469         func_emit_initmacro_done): New functions.
63470         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63471         gl_LIBOBJS and gl_LTLIBOBJS.
63472
63473 2006-10-11  Bruno Haible  <bruno@clisp.org>
63474
63475         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63476         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63477         autoreconf. Instead, invoke autopoint explicitly but move back the
63478         *.m4 files from gnulib.
63479
63480 2006-10-11  Bruno Haible  <bruno@clisp.org>
63481
63482         * gnulib-tool (func_usage): Make module names after --create-testdir
63483         optional.
63484         (func_create_testdir): If no module was specified, use nearly all
63485         modules.
63486
63487 2006-10-12  Jim Meyering  <jim@meyering.net>
63488
63489         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63490         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63491         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63492         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63493         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63494         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63495         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63496         (fts_set_stat_required): New function.
63497         (fts_open): Defer the calls to fts_stat, if possible or requested.
63498         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63499         into fts_stat itself.
63500         (fts_read): Perform any required (deferred) fts_stat call.
63501         (fts_build): Likewise, for the directory we're about to open and read.
63502         In the readdir loop, carefully decide whether each entry will require
63503         an eventual call to fts_stat, using dirent.d_type info if available.
63504         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63505         a command line argument into this function.  Update all callers.
63506         Map a return value of FTS_DOT to FTS_D for a command line argument.
63507         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63508         Thanks to Miklos Szeredi for his tenacity and for the initial
63509         bug report about "find" failing on a FUSE-based file system.
63510
63511         * lib/fts.c (fts_open): Use consistent indentation.
63512
63513 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63514
63515         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63516         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63517         reported by Jim Meyering.  All uses of cache variables renamed
63518         to match Autoconf's.
63519         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63520         the other one.
63521
63522         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63523         Fix misspelling in diagnostic.
63524
63525 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63526
63527         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63528         defined.  Problem reported by Matthew Woehlke.
63529
63530         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63531         Add support for Tandem NonStop R series.
63532         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63533         Use new macro.
63534
63535         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63536         (has_trailing_slash): Omit size arg; all callers changed.
63537         Omit 'inline', since it doesn't help performance and we'd
63538         need to configure it.
63539         Don't count //, ///, etc. as having a trailing slash.
63540         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63541         (rpl_rename_dest_slash): On failure, use rename's errno rather
63542         than (in some cases) an incorrect or junk errno.
63543         Simplify code by removing need to compute length; this does
63544         cause it to make two passes instead of one over the file name,
63545         but it's worth it.
63546
63547         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63548         change, since Autoconf's version may no longer be appropriate now
63549         that we are using CVS Autoconf's version.  Add support for Tandem.
63550
63551 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63552             Bruno Haible  <bruno@clisp.org>
63553
63554         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63555         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63556         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63557         gl_AC_TYPE_LONG_LONG.
63558
63559         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63560         instead of HAVE_LONG_LONG.
63561         * lib/printf-args.c (printf_fetchargs): Likewise.
63562         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63563         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63564         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63565         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63566         gl_AC_TYPE_LONG_LONG.
63567
63568 2006-10-11  Bruno Haible  <bruno@clisp.org>
63569
63570         * m4/longlong.m4: Add comments.
63571         * m4/ulonglong.m4: Likewise.
63572
63573 2006-10-10  Bruno Haible  <bruno@clisp.org>
63574
63575         Make it possible to #define stpcpy, strdup to aliases.
63576         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63577         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63578
63579 2006-10-10  Bruno Haible  <bruno@clisp.org>
63580
63581         Make it possible to #define gcd to an alias.
63582         * lib/gcd.c: Include config.h.
63583
63584 2006-10-10  Bruno Haible  <bruno@clisp.org>
63585
63586         Make it possible to #define c_isascii to an alias.
63587         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63588         defined. Undefine the macros before defining them, to avoid gcc
63589         warnings.
63590         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63591         define NO_C_CTYPE_MACROS early.
63592
63593 2006-10-10  Bruno Haible  <bruno@clisp.org>
63594
63595         Make it possible to #define set_program_name to an alias.
63596         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63597         ENABLE_RELOCATABLE early.
63598
63599 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63602         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63603         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63604         More generally, don't assume that 64-bit signed int is available
63605         if unsigned int is, and vice versa.
63606         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63607         unsigned symbols, not on their signed counterparts.
63608         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63609         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63610         (UINT64_C, UINTMAX_C):
63611         Likewise.
63612         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63613         unsigned counterparts.
63614         (Have_long_long, Unsigned): New macros.
63615         (Int): Renamed from INT.
63616         (strtoimax): Use the new macros.
63617         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63618         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63619         * modules/inttypes (inttypes.h): Substitute
63620         HAVE_UNSIGNED_LONG_LONG_INT.
63621         * modules/stdint (stdint.h): Likewise.
63622         (Files): Add m4/ulonglong.m4.
63623
63624 2006-10-10  Bruno Haible  <bruno@clisp.org>
63625
63626         Fix a gcc -Wshadow warning.
63627         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63628         to 'bucket'.
63629         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63630         gl_linked_indexof_from_to): Likewise.
63631         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63632         Likewise.
63633         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63634         Likewise.
63635         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63636         Reported by Eric Blake.
63637
63638 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63639
63640         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63641         for NetBSD.  Problem reported by Bruno Haible.
63642
63643 2006-10-09  Jim Meyering  <jim@meyering.net>
63644
63645         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63646         Patch from Bruno Haible.
63647
63648 2006-10-09  Jim Meyering  <jim@meyering.net>
63649
63650         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63651         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63652         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63653
63654 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63655
63656         Don't include <config.h> twice; this doesn't work in some cases,
63657         e.g., when config.h has "#define intmax_t long long int" and
63658         we include <config.h>, <inttypes.h>, <config.h> in that order.
63659         Problem reported by Matthew Woehlke in:
63660         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63661         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63662         * lib/fts-cycle.c: Don't include config.h.
63663         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63664         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63665         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63666         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63667         inttypes.h.
63668         * lib/xstrtoumax.c: Likewise.
63669         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63670         __strtol and the like, so that this module is more like its siblings.
63671         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63672         Remove; no longer needed now that we assume gnulib inttypes.h.
63673
63674 2006-10-08  Bruno Haible  <bruno@clisp.org>
63675
63676         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63677         option.
63678
63679 2006-10-07  Jim Meyering  <jim@meyering.net>
63680
63681         * modules/inttypes (inttypes.h): Revert what seems to have been
63682         an inadvertent part of today's change: use "|", not "/" in the
63683         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63684
63685 2006-10-07  Bruno Haible  <bruno@clisp.org>
63686
63687         * modules/sublist: New file.
63688
63689 2006-10-07  Bruno Haible  <bruno@clisp.org>
63690
63691         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63692         * modules/argz (argz.h): Likewise.
63693         * modules/arpa_inet (arpa/inet.h): Likewise.
63694         * modules/byteswap (byteswap.h): Likewise.
63695         * modules/configmake (configmake.h): Likewise.
63696         * modules/fcntl (fcntl.h): Likewise.
63697         * modules/fnmatch (fnmatch.h): Likewise.
63698         * modules/getopt (getopt.h): Likewise.
63699         * modules/glob (glob.h): Likewise.
63700         * modules/inttypes (inttypes.h): Likewise.
63701         * modules/netinet_in (netinet/in.h): Likewise.
63702         * modules/poll (poll.h): Likewise.
63703         * modules/stdbool (stdbool.h): Likewise.
63704         * modules/stdint (stdint.h): Likewise.
63705         * modules/sys_select (sys/select.h): Likewise.
63706         * modules/sys_socket (sys/socket.h): Likewise.
63707         * modules/sys_stat (sys/stat.h): Likewise.
63708         * modules/sysexits (sysexits.h): Likewise.
63709         * modules/unistd (unistd.h): Likewise.
63710         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63711         Add a "DO NOT EDIT" comment to the generated file.
63712         (func_import): Likewise for gnulib-comp.m4.
63713
63714 2006-10-07  Bruno Haible  <bruno@clisp.org>
63715
63716         * lib/gl_sublist.h: New file.
63717         * lib/gl_sublist.c: New file.
63718
63719 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63720
63721         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63722         name (relative to the original working directory) and the file
63723         name component (relative to the temporary working directory).  All
63724         callers changed.
63725         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63726         * lib/mkdir-p.c (make_dir_parents): Likewise.
63727         * lib/mkdir-p.h (make_dir_parents): Likewise.
63728
63729 2006-10-06  Eric Blake  <ebb9@byu.net>
63730
63731         Define several macros for use by the clean-temp module.
63732         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63733         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63734         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63735
63736         * lib/clean-temp.h (close_stream_temp): New declaration.
63737         * lib/clean-temp.c (includes): Pull in headers according to what
63738         other modules are in use.
63739         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63740
63741 2006-10-06  Bruno Haible  <bruno@clisp.org>
63742
63743         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63744         instead of fopen, fwriteerror.
63745
63746 2006-10-06  Bruno Haible  <bruno@clisp.org>
63747
63748         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63749         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63750         int.
63751         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63752         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63753         Return an error indicator.
63754         Suggested by Eric Blake.
63755
63756 2006-10-06  Bruno Haible  <bruno@clisp.org>
63757
63758         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63759         Reported by Eric Blake.
63760
63761 2006-10-06  Bruno Haible  <bruno@clisp.org>
63762
63763         * modules/closeout (Description): Mention stderr too.
63764
63765 2006-10-06  Bruno Haible  <bruno@clisp.org>
63766         and Paul Eggert  <eggert@cs.ucla.edu>
63767
63768         * lib/closeout.c (close_stdout): Also close stderr.
63769         * lib/closeout.h: Update comment.
63770
63771 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63772
63773         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63774         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63775         * lib/dirchownmod.c: Include lchown.h.
63776         * lib/lchown.c: Don't include files that lchown.h now includes.
63777         Don't declare chown, since lchown.h now does that.
63778         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63779         (lchown): Define to rpl_chown if lchown is declared but
63780         does not exist.  Declare using a prototype if lchown is not
63781         declared.  Add a copyright notice.
63782         * lib/mkstemp.h: Include <unistd.h>.
63783         * lib/openat.c: Include lchown.h.
63784
63785         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63786         we now test for that separately.
63787         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63788         rather than O_NOFOLLOW, when testing whether it's possible to
63789         avoid a race condition reliably.
63790         * lib/savewd.c (savewd_chdir): Likewise.
63791
63792         Remove macros that are no longer needed now that stdint.h is
63793         reliable.
63794         * lib/fsusage.c (UINTMAX_MAX): Remove.
63795         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63796         * lib/utimecmp.c (SIZE_MAX): Remove.
63797
63798         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63799
63800         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63801         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63802         O_NOATIME works.
63803
63804 2006-10-05  Bruno Haible  <bruno@clisp.org>
63805
63806         * lib/gl_list.h (gl_sortedlist_search_from_to,
63807         gl_sortedlist_indexof_from_to): New declarations.
63808         (gl_list_implementation): New fields sortedlist_search_from_to,
63809         sortedlist_indexof_from_to.
63810         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63811         inline functions.
63812         * lib/gl_list.c (gl_sortedlist_search_from_to,
63813         gl_sortedlist_indexof_from_to): New functions.
63814         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63815         function.
63816         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63817         (gl_array_sortedlist_search_from_to): New function.
63818         (gl_array_list_implementation): Update.
63819         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63820         function.
63821         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63822         (gl_carray_sortedlist_search_from_to): New function.
63823         (gl_carray_list_implementation): Update.
63824         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63825         gl_linked_sortedlist_indexof_from_to): New functions.
63826         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63827         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63828         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63829         gl_tree_sortedlist_indexof_from_to): New functions.
63830         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63831         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63832         Update.
63833         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63834         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63835         Update.
63836
63837 2006-10-05  Bruno Haible  <bruno@clisp.org>
63838
63839         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63840         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63841         (struct gl_list_implementation): Add fields search_from_to,
63842         indexof_from_to. Remove fields search, indexof.
63843         (gl_list_search): Use the search_from_to method.
63844         (gl_list_search_from, gl_list_search_from_to): New functions.
63845         (gl_list_indexof): Use the indexof_from_to method.
63846         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63847         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63848         (gl_list_search_from, gl_list_search_from_to): New functions.
63849         (gl_list_indexof): Use the indexof_from_to method.
63850         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63851         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63852         gl_array_indexof. Add start_index, end_index arguments.
63853         (gl_array_search_from_to): Renamed from gl_array_search. Add
63854         start_index, end_index arguments.
63855         (gl_array_remove, gl_array_list_implementation): Update.
63856         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63857         gl_carray_indexof. Add start_index, end_index arguments.
63858         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63859         start_index, end_index arguments.
63860         (gl_carray_remove, gl_carray_list_implementation): Update.
63861         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63862         gl_linked_search. Add start_index, end_index arguments.
63863         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63864         start_index, end_index arguments.
63865         (gl_linked_remove): Update.
63866         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63867         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63868         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63869         field to 'size_t'.
63870         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63871         gl_tree_search. Add start_index, end_index arguments.
63872         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63873         start_index, end_index arguments.
63874         (gl_tree_remove): Update.
63875         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63876         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63877         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63878         function.
63879         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63880         gl_tree_search. Add start_index, end_index arguments.
63881         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63882         start_index, end_index arguments.
63883         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63884         Update.
63885         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63886
63887 2006-10-05  Bruno Haible  <bruno@clisp.org>
63888
63889         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63890
63891         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63892         fwriteerror_temp): New declarations.
63893         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63894         (descriptors): New variable.
63895         (cleanup): First, close the descriptors.
63896         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63897         fclose_temp, fwriteerror_temp): New functions.
63898
63899 2006-10-04  Jim Meyering  <jim@meyering.net>
63900
63901         * lib/fts.c (fts_open): Tiny comment change.
63902
63903 2006-10-04  Bruno Haible  <bruno@clisp.org>
63904
63905         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63906         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63907         gl_LOCK_BODY.
63908         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63909         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63910         gl_LOCK_EARLY_BODY.
63911         (gl_LOCK): Require gl_LOCK_BODY.
63912
63913 2006-10-04  Bruno Haible  <bruno@clisp.org>
63914
63915         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63916         (gl_oset_search_atleast): New declaration.
63917         (struct gl_oset_implementation): Add field 'search_atleast'.
63918         (gl_oset_search_atleast): New inline function.
63919         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63920         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63921         (gl_array_oset_implementation): Update.
63922         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63923         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63924         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63925
63926 2006-10-04  Bruno Haible  <bruno@clisp.org>
63927
63928         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63929
63930 2006-10-03  Bruno Haible  <bruno@clisp.org>
63931
63932         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63933         from gl_avltreehash_list_implementation.
63934
63935 2006-10-03  Bruno Haible  <bruno@clisp.org>
63936
63937         * lib/gl_oset.c (gl_oset_add): Fix return type.
63938
63939 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63940
63941         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63942
63943 2006-10-02  Eric Blake  <ebb9@byu.net>
63944
63945         * modules/strnlen (Depends-on): Add extensions.
63946
63947 2006-10-02  Eric Blake  <ebb9@byu.net>
63948
63949         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63950         definition in 2.60+.
63951
63952 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63953
63954         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63955         checks.
63956
63957 2006-10-02  Bruno Haible  <bruno@clisp.org>
63958
63959         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63960         to the AUTOMAKE_OPTIONS.
63961         Reported by Jim Meyering.
63962
63963 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63964
63965         Work around bug in Solaris 10 /proc file system:
63966         /proc/self/fd/NNN/.. isn't the parent directory of
63967         the directory whose file descriptor is NNN.  This needs to
63968         be worked around at run time, not compile time, since a
63969         program might be built on Solaris 8, where things work, and
63970         run on Solaris 10.
63971         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63972         to use the following interface instead:
63973         (OPENAT_BUFFER_SIZE): New macro.
63974         (openat_proc_name): New function.
63975         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63976         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63977         Likewise.
63978         * lib/openat-proc.c: New file.
63979         * modules/openat (Files): Add lib/openat-proc.c.
63980         (Depends-on): Add same-inode, stdbool.
63981         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63982
63983 2006-09-29  Bruno Haible  <bruno@clisp.org>
63984
63985         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63986         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63987         argument. Set stdout_closed before testing for ferror, not after.
63988         (fwriteerror, fwriteerror_no_ebadf): New functions.
63989
63990 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63991
63992         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63993
63994 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63995
63996         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63997         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63998
63999 2006-09-28  Jim Meyering  <jim@meyering.net>
64000
64001         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64002         Include <unistd.h>.
64003
64004 2006-09-28  Bruno Haible  <bruno@clisp.org>
64005
64006         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64007         * modules/linkedhash-list (Depends-on): Likewise.
64008         * modules/rbtreehash-list (Depends-on): Likewise.
64009
64010 2006-09-28  Bruno Haible  <bruno@clisp.org>
64011
64012         * lib/strndup.h: Simplify the redefinition of strndup.
64013         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64014         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64015
64016 2006-09-28  Bruno Haible  <bruno@clisp.org>
64017
64018         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64019         * lib/gl_linkedhash_list.c: Likewise.
64020         * lib/gl_rbtreehash_list.c: Likewise.
64021
64022 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64023
64024         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64025         getaddrinfo.
64026
64027         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64028         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64029         it causes <stdio_ext.h> to cause a compile-time error.
64030         Problem reported by Nelson H. F. Beebe.
64031         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64032         of HAVE_DECL___PENDING.
64033
64034         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64035         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64036         declaration.
64037
64038 2006-09-27  Jim Meyering  <jim@meyering.net>
64039
64040         This file could end up with a definition for a function
64041         named __strndup, rather than rpl_strndup on a system with
64042         incomplete weak_alias support.
64043         * lib/strndup.c (strndup): Rename from __strndup.
64044         Remove #defines that used to map __strndup to strndup.
64045         Don't use K&R prototypes.
64046         Remove LIBC-related code, since this file is not sync'd with glibc.
64047         * lib/strndup.h: Revamp, accordingly.
64048         * m4/strndup.m4: Modernize.
64049
64050 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * modules/savewd (Depends-on): Add 'raise'.
64053         * lib/savewd.c: Include <signal.h>, for 'raise'.
64054
64055 2006-09-26  Jim Meyering  <jim@meyering.net>
64056
64057         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64058         when we detect Darwin 8.7.0's acl_get_file bug.
64059         Rearrange to perform the new (below) run-test while $LIBS
64060         contains any acl-related library.  Set USE_ACL at the end.
64061         (gl_ACL_GET_FILE): New function.
64062
64063 2006-09-26  Eric Blake  <ebb9@byu.net>
64064
64065         * lib/verror.c: Include <config.h> unconditionally.
64066
64067 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         * modules/clock-time (Maintainer): Add self.
64070         * modules/getlogin_r (Depends-on): Add extensions.
64071
64072 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64073
64074         * modules/clock-time: New module.
64075         * modules/nanosleep (Depends-on): Add clock-time.
64076         * modules/gethrxtime (Depends-on): Likewise.
64077         * modules/gettime (Depends-on): Likewise.
64078         * modules/settime (Depends-on): Likewise.
64079
64080         * modules/fts-lgpl: Depend on openat.
64081         * modules/mkancesdirs: Depend on savewd.
64082         * modules/mkdir-p: Likewise.
64083
64084 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64085
64086         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64087
64088         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64089         `gl_have_arbitrary_file_name_length_limit' to
64090         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64091         actually works between configure runs.
64092
64093 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64094             Bruno Haible  <bruno@clisp.org>
64095
64096         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64097
64098 2006-09-25  Jim Meyering  <jim@meyering.net>
64099
64100         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64101         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64102
64103 2006-09-25  Eric Blake  <ebb9@byu.net>
64104
64105         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64106         exec's in 2006-09-18 patch when shuffling fds.
64107
64108 2006-09-25  Bruno Haible  <bruno@clisp.org>
64109
64110         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64111         Reported by Jim Meyering.
64112
64113 2006-09-24  Jim Meyering  <jim@meyering.net>
64114
64115         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64116         compare a pointer against a literal "0".  That caused failures with
64117         at least HP-UX's hpcc.
64118
64119 2006-09-22  Simon Josefsson  <jas@extundo.com>
64120
64121         * modules/gc-sha1:
64122         * modules/gc-md4:
64123         * modules/gc-hmac-sha1:
64124         * modules/gc-hmac-md5:
64125         * modules/gc-des:
64126         * modules/gc-arcfour: Distribute more files.
64127
64128 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64129
64130         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64131         (gl_linked_iterator_from_to): Initialize struct completely.
64132         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64133         (gl_tree_iterator_from_to): Likewise
64134         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64135         * lib/gl_array_list.c [lint] (gl_array_iterator)
64136         (gl_array_iterator_from_to): Likewise.
64137         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64138         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64139         (gl_carray_iterator_from_to): Likewise.
64140
64141         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64142         * lib/md4.c (md4_process_block): Remove unused variable.
64143         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64144         parentheses for clarity.
64145
64146 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64147
64148         * modules/bison-i18n (Depends-on): Add gettext.
64149
64150 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64151
64152         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64153         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64154         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64155         also add missing comma that caused broken test.
64156         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64157         stdlib.h, for `abort'.
64158         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64159         variables.
64160         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64161         include unistd.h if present, for `rmdir'.
64162         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64163         variables.
64164         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64165         in the process include standard headers for prototypes.
64166         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64167         gets declared on GNU/Linux.
64168         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64169         unistd.h, for `rmdir'.
64170         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64171
64172         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64173         always true.
64174         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64175
64176         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64177
64178 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64179
64180         * gnulib-tool (func_version): Create output all at once.  This
64181         may help avoid triggering unnecessary SIGPIPEs, and at any
64182         rate it doesn't hurt.
64183
64184 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64185             Bruno Haible  <bruno@clisp.org>
64186
64187         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64188         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64189         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64190
64191         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64192         (gl_FUNC_VASPRINTF): Invoke it.
64193
64194 2006-09-22  Bruno Haible  <bruno@clisp.org>
64195
64196         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64197         getloadavg.c as first argument.
64198
64199 2006-09-22  Bruno Haible  <bruno@clisp.org>
64200
64201         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64202         at the beginning of the gl_INIT macro.
64203         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64204         gl_GETLOADAVG.
64205
64206 2006-09-22  Bruno Haible  <bruno@clisp.org>
64207
64208         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64209         module.
64210         Suggested by Ralf Wildenhues.
64211
64212 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64213
64214         Import this patch from libc:
64215
64216         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64217
64218         * lib/regex_internal.c (re_string_reconstruct): Handle
64219         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64220         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64221         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64222         re_string_context_at.
64223
64224         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64225         now requires it.
64226         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64227         gl_REGEX now does it for us.
64228         (gl_REGEX): Add test taken from
64229         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64230
64231         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64232         Check that large offsets work.  Modernize Autoconf usages.
64233         Prefer "yes" to mean a good thing rather than a bad.
64234         Don't put "#define mkstemp" in config.h, as this might interfere
64235         with standard system headers that "#define mkstemp mkstemp64".
64236
64237         * modules/mkstemp (Depends-on): Add extensions, so that
64238         mkstemp is visible on some platforms.
64239         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64240         (Include): Change to "mkstemp.h" from <stdlib.h>.
64241         (Files): Add mkstemp.h.
64242
64243         * lib/mkstemp.h: New file, since some standard headers
64244         #define mkstemp.
64245         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64246         Include "mkstemp.h".
64247         Make the _LIBC code resemble glibc original more,
64248         e.g., use K&R style.
64249         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64250         (mkstemp): Remove, since mkstemp.h does this for us.
64251         * lib/stdlib--.h: Include mkstemp.h.
64252
64253         Import this patch from libc:
64254
64255         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64256
64257         * lib/tempname.c (__gen_tempname): Change attempts_min
64258         into a macro.  Use preprocessor to decide how to initialize
64259         attempts [Coverity CID 67].
64260
64261 2006-09-20  Bruno Haible  <bruno@clisp.org>
64262
64263         * lib/mkdtemp.c: Import from libc.
64264         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64265                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64266                 attempts_min into a macro.  Use preprocessor to decide how to
64267                 initialize attempts [Coverity CID 67].
64268         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64269                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64270                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64271
64272 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64273
64274         * gnulib-tool (func_exit): New function, to allow to pass the
64275         exit status portably through the trap.  Use everywhere.
64276         (--help, --version): Signal a write error.
64277         (trap): catch SIGPIPE, for write errors.
64278         Exit at the end of the trap, with the correct exit status.
64279
64280 2006-09-19  Karl Berry  <karl@gnu.org>
64281
64282         * doc/gnulib.texi: note about the license texinfo files.
64283
64284 2006-09-19  Eric Blake  <ebb9@byu.net>
64285
64286         * gnulib-tool: Avoid space-tab.
64287
64288 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64289
64290         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64291         that prevented coreutils 6.1 from building.  Problem reported
64292         by Petter Reinholdtsen.
64293
64294 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         * gnulib-tool (avoidlist): Fix typo that broke options like
64297         --avoid=lock that are used by coreutils bootstrap.
64298
64299 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64300
64301         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64302         more systematically.
64303
64304 2006-09-18  Jim Meyering  <jim@meyering.net>
64305
64306         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64307
64308 2006-09-18  Bruno Haible  <bruno@clisp.org>
64309
64310         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64311
64312 2006-09-18  Bruno Haible  <bruno@clisp.org>
64313
64314         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64315         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64316         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64317         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64318         * m4/gettext.m4: Require autoconf >= 2.52.
64319         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64320         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64321         of gl_cv_header_inttypes_h.
64322
64323 2006-09-18  Bruno Haible  <bruno@clisp.org>
64324
64325         * lib/javaversion.c: Include configmake.h.
64326
64327 2006-09-18  Bruno Haible  <bruno@clisp.org>
64328
64329         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64330         avoid that the while loops be executed in a subshell.
64331
64332 2006-09-18  Bruno Haible  <bruno@clisp.org>
64333
64334         * MODULES.html.sh (func_module): Break long lines.
64335         Suggested by Bruce Korb <bkorb@gnu.org>.
64336
64337 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64338
64339         Speed up by a factor of 1.12.
64340         * gnulib-tool (nl): New variable.
64341         (func_import): Rewrite include directive extraction to only read each
64342         directive once.
64343
64344 2006-09-17  Bruno Haible  <bruno@clisp.org>
64345
64346         * modules/javaversion (Makefile.am): Remove DEFS setting.
64347         (Depends-on): Add configmake, for PKGDATADIR definition.
64348
64349 2006-09-17  Bruno Haible  <bruno@clisp.org>
64350
64351         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64352
64353 2006-09-17  Bruno Haible  <bruno@clisp.org>
64354
64355         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64356         (func_modules_transitive_closure, func_modules_add_dummy,
64357         func_modules_to_filelist, func_import, func_create_testdir,
64358         func_create_megatestdir, ...): Use it wherever possible.
64359         Suggested by Ralf Wildenhues.
64360
64361 2006-09-16  Karl Berry  <karl@gnu.org>
64362
64363         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64364         to avoid sectioning errors.
64365         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64366         [ifinfo]: blank line after @center-ed titles.
64367         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64368         Spell FSF address consistently with others.
64369         (These changes approved by rms.)
64370
64371 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64372
64373         Speed up by a factor of 1.61.
64374         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64375         already checked module names again.
64376
64377 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64378
64379         Speed up by a factor of 1.13.
64380         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64381         for new_files, and the input to func_add_or_update.
64382
64383 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64384
64385         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64386         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64387
64388 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64389
64390         * modules/mkancesdirs (Depends-on): Add fcntl.
64391         * modules/savewd: New file.
64392         * MODULES.html.sh (File system functions): Add savewd.
64393
64394         * modules/configmake (Makefile.am): Add support for the
64395         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64396
64397 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64398
64399         * m4/savewd.m4: New file.
64400
64401 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64402
64403         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64404         (dirchownmod): New arg FD.  All callers changed.
64405         Use FD rather than opening the directory ourself, as opening is
64406         now the caller's responsibility.
64407         * lib/dirchownmod.h: Likewise.
64408         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64409         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64410         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64411         (test_dir): Remove.
64412         (mkancesdirs): Return length of prefix of FILE that has already
64413         been made, or -2 if there is a child doing the work.  Redo
64414         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64415         ".", and treat ".." specially since it might stray back into
64416         already-created areas.  Use a subprocess if necessary.  New arg
64417         WD; all users changed.  MAKE_DIR function should now return 1
64418         if it creates a directory that is not readable.  Return -2 if
64419         a child process is spun off.
64420         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64421         Adjust signature to match code.
64422         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64423         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64424         all users changed.
64425         * lib/savewd.c, lib/savewd.h: New files.
64426
64427 2006-09-15  Jim Meyering  <jim@meyering.net>
64428
64429         * modules/rename-dest-slash: New module.
64430         * MODULES.html.sh (posix_compat): Add it here.
64431
64432         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64433
64434 2006-09-15  Jim Meyering  <jim@meyering.net>
64435
64436         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64437         file.
64438
64439         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64440
64441 2006-09-15  Jim Meyering  <jim@meyering.net>
64442
64443         * lib/rename-dest-slash.c (has_trailing_slash): Use
64444         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64445         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64446         test before testing whether SRC is a directory.
64447         Suggestions from Bruno Haible.
64448
64449         Avoid a warning about an unused variable.
64450         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64451         into the #ifdef block where it's used.
64452
64453         * lib/rename-dest-slash.c: New file.
64454
64455 2006-09-14  Bruno Haible  <bruno@clisp.org>
64456
64457         * lib/allocsa.c: Include <config.h> unconditionally.
64458         * lib/asnprintf.c: Likewise.
64459         * lib/asprintf.c: Likewise.
64460         * lib/c-strcasecmp.c: Likewise.
64461         * lib/c-strcasestr.c: Likewise.
64462         * lib/c-strncasecmp.c: Likewise.
64463         * lib/c-strstr.c: Likewise.
64464         * lib/classpath.c: Likewise.
64465         * lib/clean-temp.c: Likewise.
64466         * lib/concatpath.c: Likewise.
64467         * lib/copy-file.c: Likewise.
64468         * lib/csharpcomp.c: Likewise.
64469         * lib/csharpexec.c: Likewise.
64470         * lib/execute.c: Likewise.
64471         * lib/fatal-signal.c: Likewise.
64472         * lib/findprog.c: Likewise.
64473         * lib/fwriteerror.c: Likewise.
64474         * lib/gl_array_list.c: Likewise.
64475         * lib/gl_array_oset.c: Likewise.
64476         * lib/gl_avltree_list.c: Likewise.
64477         * lib/gl_avltree_oset.c: Likewise.
64478         * lib/gl_avltreehash_list.c: Likewise.
64479         * lib/gl_carray_list.c: Likewise.
64480         * lib/gl_linked_list.c: Likewise.
64481         * lib/gl_linkedhash_list.c: Likewise.
64482         * lib/gl_list.c: Likewise.
64483         * lib/gl_oset.c: Likewise.
64484         * lib/gl_rbtree_list.c: Likewise.
64485         * lib/gl_rbtree_oset.c: Likewise.
64486         * lib/gl_rbtreehash_list.c: Likewise.
64487         * lib/imaxabs.c: Likewise.
64488         * lib/imaxdiv.c: Likewise.
64489         * lib/javacomp.c: Likewise.
64490         * lib/javaexec.c: Likewise.
64491         * lib/javaversion.c: Likewise.
64492         * lib/linebreak.c: Likewise.
64493         * lib/localcharset.c: Likewise.
64494         * lib/lock.c: Likewise.
64495         * lib/mbchar.c: Likewise.
64496         * lib/mbswidth.c: Likewise.
64497         * lib/mkdtemp.c: Likewise.
64498         * lib/pipe.c: Likewise.
64499         * lib/printf-args.c: Likewise.
64500         * lib/printf-parse.c: Likewise.
64501         * lib/progname.c: Likewise.
64502         * lib/progreloc.c: Likewise.
64503         * lib/readlink.c: Likewise.
64504         * lib/sh-quote.c: Likewise.
64505         * lib/stpcpy.c: Likewise.
64506         * lib/stpncpy.c: Likewise.
64507         * lib/strcasecmp.c: Likewise.
64508         * lib/strcasestr.c: Likewise.
64509         * lib/strcspn.c: Likewise.
64510         * lib/striconv.c: Likewise.
64511         * lib/strncasecmp.c: Likewise.
64512         * lib/strnlen1.c: Likewise.
64513         * lib/strstr.c: Likewise.
64514         * lib/strtok_r.c: Likewise.
64515         * lib/tls.c: Likewise.
64516         * lib/tmpdir.c: Likewise.
64517         * lib/unicodeio.c: Likewise.
64518         * lib/unsetenv.c: Likewise.
64519         * lib/vasnprintf.c: Likewise.
64520         * lib/vasprintf.c: Likewise.
64521         * lib/wait-process.c: Likewise.
64522         * lib/xallocsa.c: Likewise.
64523         * lib/xsetenv.c: Likewise.
64524         * lib/xstriconv.c: Likewise.
64525
64526 2006-09-13  Simon Josefsson  <jas@extundo.com>
64527
64528         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64529         that internally, suggested by Ralf Wildenhues
64530         <Ralf.Wildenhues@gmx.de>.
64531
64532 2006-09-13  Simon Josefsson  <jas@extundo.com>
64533
64534         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64535         @LIBOBJS@.
64536         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64537
64538 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64539
64540         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64541         longer worry about uses that don't define HAVE_CONFIG_H.
64542         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64543         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64544         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64545         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64546         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64547         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64548         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64549         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64550         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64551         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64552         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64553         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64554         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64555         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64556         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64557         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64558         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64559         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64560         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64561         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64562         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64563         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64564         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64565         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64566         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64567         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64568         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64569         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64570         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64571         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64572         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64573         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64574         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64575         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64576         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64577         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64578         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64579         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64580         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64581         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64582         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64583         Likewise.
64584
64585 2006-09-13  Eric Blake  <ebb9@byu.net>
64586
64587         * lib/getopt.c: Fix typo in last commit.
64588
64589 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64590
64591         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64592         dgettext.
64593
64594 2006-09-12  Jim Meyering  <jim@meyering.net>
64595
64596         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64597         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64598         Reported by Nelson H. F. Beebe.
64599
64600 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64601
64602         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64603         program_invocation_name and program_invocation_short_name are
64604         initialized.
64605         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64606         and program_invocation_short_name to argp.h, so they are visible
64607         to user programs.
64608         * lib/argp.h: Likewise
64609
64610 2006-09-10  Bruno Haible  <bruno@clisp.org>
64611
64612         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64613         m4/inttypes_h.m4, m4/uintmax_t.m4.
64614
64615 2006-09-10  Bruno Haible  <bruno@clisp.org>
64616
64617         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64618         gl_AC_TYPE_UINTMAX_T.
64619
64620 2006-09-10  Bruno Haible  <bruno@clisp.org>
64621
64622         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64623
64624 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64625
64626         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64627         convention.  Text proposed by Bruno Haible.
64628         (struct argp_option): Document the use of N_() wrappers.
64629
64630         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64631         '\v', and translate the two parts separately, instead of feeding
64632         the whole string to gettext.  This allows to exclude
64633         '\v' from the strings visible to the translator by writing doc
64634         strings as N_("..") "\v" N_("..").
64635
64636 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64637
64638         * config/srclist.txt: Undo latest change; the bug was fixed.
64639
64640 2006-09-09  Bruno Haible  <bruno@clisp.org>
64641
64642         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64643         assignments if building a library without libtool.
64644         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64645         in func_emit_lib_Makefile_am.
64646         (func_import): When building a static library libfoo.a, arrange to
64647         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64648         (func_create_testdir): Likewise.
64649         * modules/gc (configure.ac, Makefile.am): If building statically,
64650         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64651         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64652         * modules/striconv (configure.ac, Makefile.am): Likewise.
64653         Based on a suggestion by Ralf Wildenhues.
64654
64655 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64656
64657         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64658         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64659         Also:
64660
64661         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64662         Add year_2050_test to catch glibc bug 2821
64663         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64664
64665         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64666         Prefer #ifdef to #if.
64667
64668         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64669         Return from 'main' instead of calling 'exit'.
64670
64671 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64672
64673         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64674         returned the maximum time_t value rather than (time_t) -1.
64675         Problem originally reported by William Bardwell
64676         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64677
64678         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64679         Moved to here ...
64680         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64681         ... from here.
64682
64683 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64684
64685         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64686         2821 is fixed.
64687
64688 2006-09-08  Jim Meyering  <jim@meyering.net>
64689
64690         Don't make generated files read-only.  That would bother too many
64691         people.  However, do retain the ability to work when targets are
64692         read-only: remove the destination and temporary files before writing
64693         them (when generated via sed or echo), or by using the -f option for
64694         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64695         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64696         * modules/byteswap, modules/configmake, modules/fcntl:
64697         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64698         * modules/localcharset, modules/netinet_in, modules/poll:
64699         * modules/stdbool, modules/stdint, modules/sys_select:
64700         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64701
64702 2006-09-08  Jim Meyering  <jim@meyering.net>
64703
64704         Avoid new build failure on FreeBSD 6.0.
64705         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64706         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64707         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64708
64709 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64710
64711         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64712
64713 2006-09-07  Jim Meyering  <jim@meyering.net>
64714
64715         Fix global typo in last change: use chmod u-w, not chmod u-x.
64716         Spotted by Paul Eggert and Bruce Korb.
64717         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64718         * modules/byteswap, modules/configmake, modules/fcntl:
64719         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64720         * modules/localcharset, modules/netinet_in, modules/poll:
64721         * modules/stdbool, modules/stdint, modules/sys_select:
64722         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64723
64724 2006-09-06  Jim Meyering  <jim@meyering.net>
64725
64726         Make generated files be read-only.
64727         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64728         Ensure that each generated file is now read-only.
64729         * modules/argz: Likewise.
64730         * modules/arpa_inet: Likewise.
64731         * modules/byteswap: Likewise.
64732         * modules/configmake: Likewise.
64733         * modules/fcntl: Likewise.
64734         * modules/fnmatch: Likewise.
64735         * modules/getopt: Likewise.
64736         * modules/glob: Likewise.
64737         * modules/inttypes: Likewise.
64738         * modules/netinet_in: Likewise.
64739         * modules/poll: Likewise.
64740         * modules/stdbool: Likewise.
64741         * modules/stdint: Likewise.
64742         * modules/sys_select: Likewise.
64743         * modules/sys_socket: Likewise.
64744         * modules/sys_stat: Likewise.
64745         * modules/sysexits: Likewise.
64746         * modules/localcharset: Same as above, but continue using temporary
64747         file named "t-$@" (why different?) rather than the "$@-t" used
64748         everywhere else.
64749
64750         * modules/sysexits (Makefile.am): Replace literal occurrences
64751         of "sysexit.h" more readable, and more consistent, "$@".
64752
64753 2006-09-06  Bruno Haible  <bruno@clisp.org>
64754
64755         * modules/striconv: New file.
64756         * modules/xstriconv: New file.
64757         * MODULES.html.sh (Internationalization functions): Add striconv,
64758         xstriconv.
64759
64760 2006-09-06  Bruno Haible  <bruno@clisp.org>
64761
64762         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64763         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64764         not using libtool correctly.
64765
64766 2006-09-06  Bruno Haible  <bruno@clisp.org>
64767
64768         * lib/striconv.h: New file.
64769         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64770         iconvstring.c.
64771         * lib/xstriconv.h: New file.
64772         * lib/xstriconv.c: New file.
64773
64774 2006-09-06  Bruno Haible  <bruno@clisp.org>
64775
64776         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64777         lib_..._LDFLAGS.
64778
64779 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64780
64781         * lib/argz_.h: Sync from Libtool.
64782
64783         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64784                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64785
64786         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64787
64788 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64789
64790         * modules/trim: New file.
64791
64792 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64793
64794         * lib/trim.h: New file.
64795         * lib/trim.c: New file.
64796
64797 2006-09-05  Bruno Haible  <bruno@clisp.org>
64798
64799         * MODULES.html.sh (String handling): Add trim.
64800
64801 2006-09-04  Karl Berry  <karl@gnu.org>
64802
64803         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64804         until next release.
64805
64806 2006-09-03  Bruno Haible  <bruno@clisp.org>
64807
64808         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64809         correctly.
64810
64811 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64812
64813         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64814         not gl_GETLOADAVG.  Omit unneeded semicolons.
64815         Problems reported by Ralf Wildenhues in
64816         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64817         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64818         at the end, which is the usual gnulib style.
64819
64820         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64821         of doing all the work ourselves.
64822         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64823         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64824
64825 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64826
64827         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64828         Problem reported by Ralf Wildenhues in
64829         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64830
64831         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64832         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64833
64834 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64835
64836         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64837         yesterday's patch by changing test -n to test -z.
64838
64839 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64840
64841         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64842         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64843         the former is now obsolescent.
64844
64845         * modules/chdir-long (Depends-on): Add fcntl.
64846
64847 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64848
64849         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64850         obsolescent, and programs should use gnulib instead.
64851         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64852         but with prefixes changed.
64853
64854 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64855
64856         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64857         or stdbool.h, because they might not exist while configuring.
64858
64859         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64860         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64861         does that for us.
64862         (O_DIRECTORY): Remove.
64863
64864 2006-08-31  Eric Blake  <ebb9@byu.net>
64865
64866         * gnulib-tool: Don't let emacs change spaces to TAB.
64867
64868 2006-08-31  Bruno Haible  <bruno@clisp.org>
64869
64870         * gnulib-tool: When calling func_import more than once, do it in a
64871         subshell.
64872         Reported by Eric Blake <ebb9@byu.net>.
64873
64874 2006-08-31  Bruno Haible  <bruno@clisp.org>
64875
64876         * gnulib-tool (nl): Remove variable.
64877         (sed_transform_lib_file): Use more robust test for config-h module.
64878         (func_import): Fix typo in 2006-08-25 patch.
64879
64880 2006-08-31  Bruno Haible  <bruno@clisp.org>
64881
64882         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64883         specified, augment Makefile.am variables instead of assigning them.
64884
64885 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         Work around a bug in both the Linux and SunOS 64-bit kernels:
64888         nanosleep mishandles sleeps for longer than 2**31 seconds.
64889         Problem reported by Frank v Waveren in
64890         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64891         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64892         Check for nanosleep bug.
64893         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64894
64895 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64896
64897         Work around a bug in both the Linux and SunOS 64-bit kernels:
64898         nanosleep mishandles sleeps for longer than 2**31 seconds.
64899         Problem reported by Frank v Waveren in
64900         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64901         * lib/nanosleep.c (BILLION): New constant.
64902         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64903         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64904         implementation.
64905
64906 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64907
64908         * modules/nanosleep (Depends-on): Add gettime.
64909
64910 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64911         and Simon Josefsson  <jas@extundo.com>
64912         and Oskar Liljeblad  <oskar@osk.mine.nu>
64913
64914         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64915         * gnulib-tool (func_import): New license type 'unmodifiable license
64916         text'.
64917         * modules/fdl: Use it.  Longer description.
64918         * module/gpl, module/lgpl: New files.
64919
64920 2006-08-30  Jim Meyering  <jim@meyering.net>
64921
64922         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64923         shadowing the parameter.
64924
64925 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64926
64927         Sync from Libtool:
64928
64929         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64930
64931         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64932         sharing with gnulib.  Report by Eric Blake.
64933
64934 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64935
64936         * modules/isapipe: New file.
64937         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64938
64939 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64940
64941         * modules/configmake (Makefile.am): Add a comment, and omit
64942         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64943         by Bruno Haible.
64944
64945 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64946
64947         * m4/isapipe.m4: New file.
64948
64949 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64950
64951         * lib/isapipe.c, lib/isapipe.h: New files.
64952
64953 2006-08-29  Jim Meyering  <jim@meyering.net>
64954
64955         * modules/configmake (Makefile.am): Make configmake.h depend on
64956         Makefile.  Otherwise, a stale configmake.h could hang around.
64957
64958 2006-08-29  Eric Blake  <ebb9@byu.net>
64959
64960         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64961         resolution of upstream bug 3044.
64962
64963 2006-08-29  Bruno Haible  <bruno@clisp.org>
64964
64965         * modules/localcharset (Depends-on): Add configmake.
64966         (Makefile.am): Remove setting of LIBDIR through DEFS.
64967
64968 2006-08-29  Bruno Haible  <bruno@clisp.org>
64969
64970         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64971         defined.
64972
64973 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * modules/fcntl: New file.
64976         * modules/chdir-safer (Depends-on): Add fcntl.
64977         * modules/fts: Likewise.
64978         * modules/mkdir-p: Likewise.
64979
64980         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64981         This undoes the most recent change, since we're now addressing the
64982         problem in a different way.
64983
64984         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64985         into output, since the output might be called Makefile.am even
64986         if $makefile_name is something different.
64987         (func_import): Use $makefile_am rather than
64988         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64989         empty.
64990
64991         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64992
64993 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64994
64995         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64996         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64997         recent change to stdint.m4, since we're now addressing the problem in a
64998         different way.
64999
65000 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65001
65002         * m4/fcntl_h.m4: New file.
65003
65004 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65005
65006         * lib/fcntl_.h: New file.
65007         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65008         the fcntl module.
65009         * lib/dirchownmod.c: Likewise.
65010         * lib/fts.c: Likewise.
65011
65012         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65013         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65014         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65015         just before including <inttypes.h>, to avoid circular inclusion.
65016
65017 2006-08-28  Jim Meyering  <jim@meyering.net>
65018
65019         * doc/visibility.texi: Actually read and correct the grammar of the
65020         sentence affected by yesterday's change.
65021
65022 2006-08-28  Eric Blake  <ebb9@byu.net>
65023
65024         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65025         needs wrapper.
65026
65027 2006-08-28  Eric Blake  <ebb9@byu.net>
65028
65029         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65030
65031 2006-08-28  Eric Blake  <ebb9@byu.net>
65032
65033         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65034
65035 2006-08-28  Bruno Haible  <bruno@clisp.org>
65036
65037         * modules/c-strstr: New file, from GNU gettext.
65038         * MODULES.html.sh (String handling): Add c-strstr.
65039
65040 2006-08-28  Bruno Haible  <bruno@clisp.org>
65041
65042         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65043         macros.
65044         Reported by Eric Blake.
65045
65046 2006-08-28  Bruno Haible  <bruno@clisp.org>
65047
65048         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65049         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65050         * lib/vasprintf.c: Include errno.h, limits.h.
65051         (EOVERFLOW): New fallback definition.
65052         (vasprintf): Test here whether the string length is > INT_MAX.
65053         * lib/vsnprintf.c: Include errno.h, limits.h.
65054         (EOVERFLOW): New fallback definition.
65055         (vsnprintf): Fix bug when generated string was too long for the buffer.
65056         Test here whether the string length is > INT_MAX.
65057
65058 2006-08-28  Bruno Haible  <bruno@clisp.org>
65059
65060         * lib/inttypes_.h (SCNX*): Remove definitions.
65061         Reported by Eric Blake.
65062
65063 2006-08-28  Bruno Haible  <bruno@clisp.org>
65064
65065         * lib/c-strstr.h: New file, from GNU gettext.
65066         * lib/c-strstr.c: New file, from GNU gettext.
65067
65068 2006-08-28  Bruno Haible  <bruno@clisp.org>
65069
65070         * gnulib-tool: Reorder some statements.
65071
65072 2006-08-28  Bruno Haible  <bruno@clisp.org>
65073
65074         * gnulib-tool: New option --makefile-name.
65075         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65076         $makefile_name.
65077         (func_import): Write $makefile_name to the cache file, and read it from
65078         there unless explicitly specified. Use $makefile_name as file name
65079         instead of Makefile.am. Adjust the recommendations accordingly.
65080
65081 2006-08-28  Bruno Haible  <bruno@clisp.org>
65082
65083         * gnulib-tool (func_verify_module): Check against misapplying patch.
65084
65085 2006-08-28  Bruno Haible  <bruno@clisp.org>
65086
65087         * gnulib-tool (func_relativize, func_relconcat): New functions.
65088         Give an error if --local-dir is given with --update.
65089         Remove trailing slashes from $local_gnulib_dir.
65090         (func_import): Store the relativized $local_gnulib_dir in
65091         gnulib-cache.m4, and read it from there if not specified explicitly.
65092
65093 2006-08-28  Bruno Haible  <bruno@clisp.org>
65094
65095         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65096         is the current directory. Respect also $local_gnulib_dir.
65097
65098 2006-08-28  Bruno Haible  <bruno@clisp.org>
65099             Simon Josefsson  <jas@extundo.com>
65100
65101         BeOS portability.
65102         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65103
65104 2006-08-27  Jim Meyering  <jim@meyering.net>
65105
65106         * doc/visibility.texi: Remove duplicate word: "pointer".
65107
65108 2006-08-26  Bruno Haible  <bruno@clisp.org>
65109
65110         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65111         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65112         (Makefile.am): Create inttypes.h from inttypes_.h.
65113         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65114
65115         * modules/imaxabs: New file.
65116
65117         * modules/imaxdiv: New file.
65118
65119 2006-08-26  Bruno Haible  <bruno@clisp.org>
65120
65121         * m4/inttypes.m4: New file.
65122         * m4/_inttypes_h.m4: Remove file.
65123         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65124         PRI_MACROS_BROKEN.
65125         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65126
65127         * m4/imaxabs.m4: New file.
65128
65129         * m4/imaxdiv.m4: New file.
65130
65131 2006-08-26  Bruno Haible  <bruno@clisp.org>
65132
65133         * lib/inttypes_.h: New file.
65134         * lib/inttypes.h: Remove file.
65135         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65136
65137         * lib/imaxabs.c: New file.
65138
65139         * lib/imaxdiv.c: New file.
65140
65141 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65142
65143         New config-h module, so that "make" output needn't be cluttered
65144         by -DHAVE_CONFIG_H.
65145         * MODULES.html.sh (Support for building libraries and executables):
65146         Add config-h.
65147         * modules/config-h: New file.
65148         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65149         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65150         the config-h module is used.
65151
65152         New configmake module, so that "make" output needn't be cluttered
65153         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65154         * MODULES.html.sh (Support for building libraries and executables):
65155         Add configmake.
65156         * modules/configmake: New file.
65157
65158 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65159
65160         * m4/config-h.m4: New file.
65161
65162 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65163
65164         * config/srclist.txt: Add elisp-comp.
65165
65166 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65167
65168         * MODULES.html.sh (Support for building libraries and executables):
65169         Add elisp-comp.
65170         * build-aux/elisp-comp: New file.
65171         * modules/elisp-comp: New file.
65172
65173 2006-08-24  Bruno Haible  <bruno@clisp.org>
65174
65175         * gnulib-tool (func_create_testdir): Use non-default values of
65176         sourcebase and m4base.
65177
65178 2006-08-24  Bruno Haible  <bruno@clisp.org>
65179
65180         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65181         HTML structure.
65182
65183 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65184
65185         * modules/openat (Depends-on): Add lchown.
65186
65187 2006-08-23  Bruno Haible  <bruno@clisp.org>
65188
65189         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65190         of gl_LOCK_EARLY instead of gl_LOCK.
65191
65192 2006-08-23  Bruno Haible  <bruno@clisp.org>
65193
65194         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65195         on OSF/1 to no.
65196         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65197
65198 2006-08-23  Bruno Haible  <bruno@clisp.org>
65199
65200         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65201         as unusable.
65202
65203         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65204         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65205         (gl_LOCK): New macro.
65206
65207 2006-08-22  Simon Josefsson  <jas@extundo.com>
65208
65209         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65210         to md5 module.
65211
65212 2006-08-22  Simon Josefsson  <jas@extundo.com>
65213
65214         * MODULES.html.sh: Add "Support for maintaining and release
65215         projects".
65216
65217         * build-aux/gnupload: New file, from coreutils.
65218
65219 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65220
65221         Avoid the need for AC_LIBSOURCES in m4 macros.
65222         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65223         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65224         * modules/check-version (EXTRA_DIST): Add check-version.h.
65225         * modules/crc (EXTRA_DIST): Add crc.h.
65226         * modules/des (EXTRA_DIST): Add des.h.
65227         * modules/gc (EXTRA_DIST): Add gc.h.
65228         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65229         * modules/getline (EXTRA_DIST): Add getline.h.
65230         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65231         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65232         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65233         * modules/md2 (EXTRA_DIST): Add md2.h.
65234         * modules/md4 (EXTRA_DIST): Add md4.h.
65235         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65236         * modules/read-file (EXTRA_DIST): Add read-file.h.
65237         * modules/readline (EXTRA_DIST): Add readline.h.
65238         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65239         rijndael-api-fst.h.
65240
65241 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65242
65243         * m4/rijndael.m4 (gl_ARCFOUR):
65244         * m4/arctwo.m4 (gl_ARCTWO):
65245         * m4/check-version.m4 (gl_CHECK_VERSION):
65246         * m4/crc.m4 (gl_CRC):
65247         * m4/des.m4 (gl_DES):
65248         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65249         * m4/gc.m4 (gl_GC):
65250         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65251         * m4/getline.m4 (gl_FUNC_GETLINE):
65252         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65253         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65254         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65255         * m4/md2.m4 (gl_MD2):
65256         * m4/md4.m4 (gl_MD4):
65257         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65258         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65259         * m4/readline.m4 (gl_FUNC_READLINE):
65260         * m4/rijndael.m4 (gl_RIJNDAEL):
65261         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65262         to get the necessary .h files and whatnot.
65263
65264 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65265
65266         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65267         gnulib rather than the other way around.
65268         * config/srclistvars.sh (COREUTILS): Remove.
65269
65270 2006-08-22  Jim Meyering  <jim@meyering.net>
65271
65272         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65273
65274         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65275
65276 2006-08-22  Eric Blake  <ebb9@byu.net>
65277
65278         * modules/regexprops-generic: New file.
65279         * MODULES.html.sh (Support for building documentation): List it.
65280
65281 2006-08-22  Eric Blake  <ebb9@byu.net>
65282
65283         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65284         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65285         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65286         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65287
65288 2006-08-22  Bruno Haible  <bruno@clisp.org>
65289
65290         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65291         and lib_LTLIBRARIES like the other lib_* variables.
65292
65293 2006-08-22  Bruno Haible  <bruno@clisp.org>
65294
65295         * build-aux/x-to-1.in: New file, from GNU gettext.
65296
65297 2006-08-22  Bruno Haible  <bruno@clisp.org>
65298
65299         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65300         <utmpx.h> exists.
65301
65302 2006-08-22  Bruno Haible  <bruno@clisp.org>
65303
65304         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65305         <utmpx.h> exists.
65306
65307 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65308
65309         BeOS portability.
65310         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65311         exist.
65312         Problem reported by Bruno Haible.
65313
65314 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         Avoid the need for AC_LIBSOURCES in m4 macros.
65317         * modules/acl (EXTRA_DIST): Add acl.h.
65318         * modules/argmatch (Files): Add m4/argmatch.m4.
65319         (configure.ac): Add gl_ARGMATCH.
65320         (EXTRA_DIST): Renamed from lib_SOURCES, for
65321         consistency with the other modules.  Remove argmatch.c.
65322         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65323         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65324         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65325         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65326         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65327         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65328         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65329         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65330         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65331         * modules/closeout (EXTRA_DIST): Add closeout.h.
65332         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65333         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65334         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65335         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65336         dirname.h; remove basename.c and stripslash.c.
65337         * modules/exclude (EXTRA_DIST): Add exclude.h.
65338         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65339         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65340         * modules/file-type (EXTRA_DIST): Add file-type.h.
65341         * modules/filemode (EXTRA_DIST): Add filemode.h.
65342         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65343         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65344         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65345         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65346         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65347         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65348         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65349         * modules/getdate (EXTRA_DIST): Add getdate.c.
65350         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65351         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65352         * modules/getpass (EXTRA_DIST): Add getpass.h.
65353         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65354         * modules/group-member (EXTRA_DIST): Add group-member.h.
65355         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65356         * modules/hash (EXTRA_DIST): Add hash.h.
65357         * modules/human (EXTRA_DIST): Add human.h.
65358         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65359         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65360         * modules/lchown (EXTRA_DIST): Add lchown.h.
65361         * modules/long-options (EXTRA_DIST): Add long-options.h.
65362         * modules/lstat (EXTRA_DIST): Add lstat.h.
65363         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65364         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65365         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65366         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65367         * modules/memxor (EXTRA_DIST): Add memxor.h.
65368         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65369         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65370         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65371         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65372         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65373         * modules/physmem (EXTRA_DIST): Add physmem.h.
65374         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65375         * modules/posixver (EXTRA_DIST): Add posixver.h.
65376         * modules/quote (EXTRA_DIST): Add quote.h.
65377         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65378         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65379         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65380         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65381         regex_internal.h regexec.c.
65382         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65383         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65384         * modules/same (EXTRA_DIST): Add same.h.
65385         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65386         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65387         * modules/savedir (EXTRA_DIST): Add savedir.h.
65388         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65389         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65390         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65391         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65392         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65393         * modules/strdup (EXTRA_DIST): Add strdup.h.
65394         * modules/strftime (EXTRA_DIST): Add strftime.h.
65395         * modules/strndup (EXTRA_DIST): Add strndup.h.
65396         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65397         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65398         * modules/time_r (EXTRA_DIST): Add time_r.h.
65399         * modules/timespec (EXTRA_DIST): Add timespec.h.
65400         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65401         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65402         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65403         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65404         * modules/userspec (EXTRA_DIST): Add userspec.h.
65405         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65406         * modules/utimens (EXTRA_DIST): Add utimens.h.
65407         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65408         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65409         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65410         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65411         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65412         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65413         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65414         * modules/yesno (EXTRA_DIST): Add yesno.h.
65415
65416 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65417
65418         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65419
65420         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65421         * m4/dev-ino.m4, same-inode.m4: Remove.
65422
65423         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65424         * m4/acl.m4 (AC_FUNC_ACL):
65425         * m4/backupfile.m4 (gl_BACKUPFILE):
65426         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65427         * m4/canon-host.m4 (gl_CANON_HOST):
65428         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65429         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65430         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65431         * m4/cloexec.m4 (gl_CLOEXEC):
65432         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65433         * m4/closeout.m4 (gl_CLOSEOUT):
65434         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65435         * m4/dirname.m4 (gl_DIRNAME):
65436         * m4/exclude.m4 (gl_EXCLUDE):
65437         * m4/exitfail.m4 (gl_EXITFAIL):
65438         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65439         * m4/file-type.m4 (gl_FILE_TYPE):
65440         * m4/filemode.m4 (gl_FILEMODE):
65441         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65442         * m4/fpending.m4 (gl_FUNC_FPENDING):
65443         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65444         * m4/fts.m4 (gl_FUNC_FTS):
65445         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65446         * m4/getdate.m4 (gl_GETDATE):
65447         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65448         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65449         * m4/getpass.m4 (gl_FUNC_GETPASS):
65450         * m4/gettime.m4 (gl_GETTIME):
65451         * m4/getugroups.m4 (gl_GETUGROUPS):
65452         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65453         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65454         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65455         * m4/hash.m4 (gl_HASH):
65456         * m4/idcache.m4 (gl_IDCACHE):
65457         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65458         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65459         * m4/long-options.m4 (gl_LONG_OPTIONS):
65460         * m4/lstat.m4 (gl_FUNC_LSTAT):
65461         * m4/md5.m4 (gl_MD5):
65462         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65463         * m4/memcoll.m4 (gl_MEMCOLL):
65464         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65465         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65466         * m4/memxor.m4 (gl_MEMXOR):
65467         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65468         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65469         * m4/modechange.m4 (gl_MODECHANGE):
65470         * m4/mountlist.m4 (gl_MOUNTLIST):
65471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65472         * m4/openat.m4 (gl_FUNC_OPENAT):
65473         * m4/pathmax.m4 (gl_PATHMAX):
65474         * m4/physmem.m4 (gl_PHYSMEM):
65475         * m4/posixtm.m4 (gl_POSIXTM):
65476         * m4/posixver.m4 (gl_POSIXVER):
65477         * m4/quote.m4 (gl_QUOTE):
65478         * m4/quotearg.m4 (gl_QUOTEARG):
65479         * m4/readtokens.m4 (gl_READTOKENS):
65480         * m4/readutmp.m4 (gl_READUTMP):
65481         * m4/regex.m4 (gl_REGEX):
65482         * m4/safe-read.m4 (gl_SAFE_READ):
65483         * m4/safe-write.m4 (gl_SAFE_WRITE):
65484         * m4/same.m4 (gl_SAME):
65485         * m4/save-cwd.m4 (gl_SAVE_CWD):
65486         * m4/savedir.m4 (gl_SAVEDIR):
65487         * m4/settime.m4 (gl_SETTIME):
65488         * m4/sha1.m4 (gl_SHA1):
65489         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65490         * m4/stat-macros.m4 (gl_STAT_MACROS):
65491         * m4/stat-time.m4 (gl_STAT_TIME):
65492         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65493         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65494         * m4/strdup.m4 (gl_FUNC_STRDUP):
65495         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65496         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65497         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65498         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65499         * m4/time_r.m4 (gl_TIME_R):
65500         * m4/timespec.m4 (gl_TIMESPEC):
65501         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65502         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65503         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65504         * m4/userspec.m4 (gl_USERSPEC):
65505         * m4/utimecmp.m4 (gl_UTIMECMP):
65506         * m4/utimens.m4 (gl_UTIMENS):
65507         * m4/xalloc.m4 (gl_XALLOC):
65508         * m4/xgetcwd.m4 (gl_XGETCWD):
65509         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65510         * m4/xreadlink.m4 (gl_XREADLINK):
65511         * m4/xstrtod.m4 (gl_XSTRTOD):
65512         * m4/yesno.m4 (gl_YESNO):
65513         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65514         to get the necessary .h files and whatnot.
65515
65516 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65517             Bruno Haible  <bruno@clisp.org>
65518
65519         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65520         /bin/sh understanding of '!' conditional negation.
65521
65522 2006-08-21  Jim Meyering  <jim@meyering.net>
65523
65524         * modules/openat (Depends-on): Really alphabetize.
65525
65526         * modules/acl (Depends-on): Add error and quote.
65527
65528         * check-module (find_included_lib_files): Add at-func.c to the
65529         ok-to-include-more-than-once white list.
65530
65531         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65532
65533 2006-08-21  Bruno Haible  <bruno@clisp.org>
65534
65535         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65536         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65537         Reported by Martin Lambers <marlam@marlam.de>.
65538
65539 2006-08-21  Bruno Haible  <bruno@clisp.org>
65540
65541         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65542         specify an installation location, don't emit a noinst_LIBRARIES or
65543         noinst_LTLIBRARIES assignment.
65544
65545 2006-08-21  Bruno Haible  <bruno@clisp.org>
65546
65547         BeOS portability.
65548         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65549         BeOS has mbrtowc() but no <wctype.h>.
65550
65551 2006-08-21  Bruno Haible  <bruno@clisp.org>
65552
65553         BeOS portability.
65554         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65555         exist.
65556
65557 2006-08-21  Bruno Haible  <bruno@clisp.org>
65558
65559         BeOS portability.
65560         * lib/mbchar.h: Include <wctype.h> only if it exists.
65561
65562 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65563
65564         Remove files that are no longer needed by their respective modules.
65565         * m4/obstack.m4: Remove.
65566         * m4/strerror_r.m4: Remove.
65567         * m4/uint32_t.m4: Remove.
65568         * m4/uintptr_t.m4: Remove.
65569         * m4/ullong_max.m4: Remove.
65570         * m4/xstrtoimax.m4: Remove.
65571         * m4/xstrtoumax.m4: Remove.
65572
65573         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65574         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65575         dependencies now capture this.
65576
65577         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65578         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65579         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65580         * m4/human.m4 (gl_HUMAN): Likewise.
65581         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65582         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65583
65584         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65585
65586         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65587         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65588         stdint.
65589         * m4/human.m4 (gl_HUMAN): Likewise.
65590         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65591         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65592         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65593         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65594         * m4/xstrtol (gl_XSTRTOL): Likewise.
65595
65596         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65597         AC_TYPE_LONG_LONG_INT.
65598         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65599         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65600         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65601         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65602
65603         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65604         on stdbool.
65605
65606         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65607         (gl_PREREQ_XSTRTOUL): Remove.
65608
65609         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65610
65611         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65612         mode.
65613
65614 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65615
65616         Add and change modules to make it easier for coreutils to use
65617         gnulib-tool.
65618         * modules/backupfile (Files): Remove m4/d-ino.m4.
65619         (Depends-on): Add d-ino.
65620         * modules/cycle-check (Depends-on): Add stdint.
65621         (lib_SOURCES): Add cycle-check.h.
65622         * modules/d-ino: New module.
65623         * modules/d-type: New module.
65624         * modules/error (Files): Remove m4/strerror_r.m4.
65625         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65626         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65627         m4/inttypes_h.m4, m4/uintmax_t.m4.
65628         (Depends-on): Add stdint.
65629         (lib_SOURCES): Add fsusage.h.
65630         * modules/getcwd (Files): Remove d-ino.m4.
65631         (Depends-on): Add d-ino.
65632         * modules/getndelim2 (Depends-on): Add stdint.
65633         * modules/glob (Files): Remove m4/d-type.m4.
65634         (Depends-on): Add d-type.
65635         * modules/host-os: New module.
65636         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65637         m4/inttypes_h.m4, m4/uintmax_t.m4.
65638         * Depends-on: Add stdint.
65639         (lib_SOURCES): Add human.h.
65640         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65641         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65642         m4/uintmax_t.m4, m4/ulonglong.m4.
65643         (Depends-on): Add stdint.
65644         (EXTRA_DIST): Add inttostr.h.
65645         * modules/lchmod: New module.
65646         * modules/link-follow: New module.
65647         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65648         (Depends-on): Add lchmod.
65649         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65650         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65651         (Depends-on): Add stdint.
65652         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65653         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65654         (Depends-on): Add stdint.
65655         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65656         * modules/perl: New module.
65657         * modules/regex (Depends-on): Add stdint.
65658         * modules/rmdir-errno: New module.
65659         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65660         m4/intmax_t.m4.
65661         (Depends-on): Add stdint.
65662         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65663         m4/uintmax_t.m4.
65664         (Depends-on): Add stdint.
65665         * modules/unlink-busy: New module.
65666         * modules/utimecmp (Depends-on): Add stdint.
65667         * modules/uptime: New module.
65668         * modules/winsz-ioctl: New module.
65669         * modules/winsz-termios: New module.
65670         * modules/xnanosleep (Depends-on): Add nanosleep.
65671         * modules/ullong_max: Remove.
65672         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65673         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65674         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65675         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65676         (Depends-on): Add inttypes.
65677         (lib_SOURCES): Add xstrtol.h.
65678         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65679         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65680         * MODULES.html.sh: Move 'assert' into the assert section.
65681         Move 'dummy' into the linking section.
65682         Remove ullong_max.
65683         Add section for compatibility checks for POSIX:2001 functions,
65684         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65685         winsz-ioctl, and winsz-termios into it.
65686         Add lchmod.
65687         Add top-level Misc section and put host-os, perl, and uptime
65688         into it.
65689
65690 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65691
65692         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65693         now assume the stdint module.  Do not include inttypes.h.
65694         * lib/fsusage.h: Likewise.
65695         * lib/getndelim2.c: Likewise.
65696         * lib/human.h: Likewise.
65697         * lib/inttostr.h: Likewise.
65698         * lib/obstack.c: Likewise.
65699         * lib/regex_internal.h: Likewise.
65700         * lib/tempname.c: Likewise.
65701         * lib/utimecmp.c: Likewise.
65702         * lib/xstrtol.h: Likewise.
65703
65704         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65705
65706         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65707         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65708         * lib/xtime.h: Likewise.
65709
65710 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65711
65712         * modules/openat (Files): Add lib/fchmodat.c.
65713         Fixes problem reported by Jay Youngman.
65714
65715 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65718         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65719
65720 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65721             Bruno Haible  <bruno@clisp.org>
65722
65723         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65724         and is a script that invokes bison. Tighten the code. Add comments.
65725
65726 2006-08-18  Jim Meyering  <jim@meyering.net>
65727
65728         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65729         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65730         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65731         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65732
65733 2006-08-18  Bruno Haible  <bruno@clisp.org>
65734
65735         * modules/bison-i18n: New file.
65736         * MODULES.html.sh (Internationalization functions): Add it.
65737
65738 2006-08-18  Bruno Haible  <bruno@clisp.org>
65739
65740         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65741         sys/statvfs.h. When getmntinfo was found, check its declaration and
65742         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65743
65744 2006-08-18  Bruno Haible  <bruno@clisp.org>
65745
65746         * m4/bison-i18n.m4: New file, from bison.
65747
65748 2006-08-18  Bruno Haible  <bruno@clisp.org>
65749
65750         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65751         (ME_DUMMY): Treat "kernfs" as a dummy.
65752         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65753
65754 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65755
65756         Update from coreutils.
65757
65758         2006-08-15  Jim Meyering  <jim@meyering.net>
65759
65760         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65761
65762         2006-01-17  Jim Meyering  <jim@meyering.net>
65763
65764         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65765
65766         2006-01-11  Jim Meyering  <jim@meyering.net>
65767
65768         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65769         Check for the lchmod function.
65770
65771 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         Update from coreutils.
65774
65775         * lib/__fpending.h: Add copyright notice.
65776         * lib/fprintftime.h: Likewise.
65777         * lib/savedir.c: Use (C) in copyright notice.
65778         * lib/savedir.h: Likewise.
65779
65780         2006-08-15  Jim Meyering  <jim@meyering.net>
65781
65782         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65783         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65784         in support of the EXPECTED_ERRNO macro.
65785         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65786         definitions.  Instead, define the appropriate symbols and include
65787         "at-func.c".
65788         * lib/mkdirat.c (mkdirat): Likewise.
65789         * lib/fchmodat.c (fchmodat): Likewise.
65790         (ENOSYS): Remove definition.
65791         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65792         it.  Don't include "unistd--.h" -- it wasn't ever used.
65793
65794         2006-01-17  Jim Meyering  <jim@meyering.net>
65795
65796         Rewrite fts.c not to change the current working directory,
65797         by using openat, fstatat, fdopendir, etc..
65798
65799         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65800         (HAVE_OPENAT_SUPPORT): Define.
65801         [_LIBC] (fchdir): Don't undef or define; no longer used.
65802         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65803         Now, this `function' always succeeds, and consumes its file descriptor
65804         parameter -- so callers must not close such FDs.  Update callers.
65805         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65806         (diropen): Add parameter, SP.  Adjust all callers.
65807         Implement using diropen_fd, rather than open.
65808         (fts_open): Initialize new member, fts_cwd_fd.
65809         Remove fts_rft-setting code.
65810         (fts_close): Close fts_cwd_fd, if necessary.
65811         (__opendir2): Define in terms of opendir or opendirat,
65812         depending on whether the FST_NOCHDIR flag is set.
65813         (fts_build): Since fts_safe_changedir consumes its FD, and since
65814         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65815         and close the dup'd file descriptor upon failure.
65816         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65817         (fts_safe_changedir): Tweak semantics to reflect that this function
65818         now calls cwd_advance_fd and hence consumes its FD argument.
65819         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65820         [struct FTS] (fts_rft): Remove now-unused member.
65821         [struct FTS] (fts_cycle.state): Improve comment.
65822
65823         * lib/openat.c (openat_needs_fchdir): New function.
65824         * lib/openat.h (openat_needs_fchdir): Declare it.
65825
65826 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65827
65828         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65829         Problem and fix reported by Pádraig Brady in
65830         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65831
65832 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65833
65834         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65835
65836 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65837
65838         * lib/memcoll.c (memcoll): Optimize for the common case where the
65839         arguments are bytewise equal.
65840
65841 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65842
65843         * doc/regexprops-generic.texi: Add a copyright notice.
65844
65845 2006-08-15  Bruno Haible  <bruno@clisp.org>
65846
65847         * modules/tmpdir (License): Change to LGPL.
65848
65849 2006-08-15  Bruno Haible  <bruno@clisp.org>
65850
65851         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65852         module.
65853
65854 2006-08-14  Simon Josefsson  <jas@extundo.com>
65855
65856         * config/srclist.txt: Add gnupload.
65857
65858 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65859
65860         Change copyright notice from LGPL 2 to GPL 2, since that's the
65861         standard form used in the gnulib repository.
65862         * tests/test-lock.c: Likewise.
65863         * tests/test-stdint.c: Likewise.
65864         * tests/test-tls.c: Likewise.
65865
65866         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65867         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65868         Add copyright notice.
65869
65870         * check-module: Add copyright notice.  Output a copyright
65871         notice if "--version" is specified.
65872         * modules/COPYING: New file.
65873         * tests/test-getaddrinfo.c: Add copyright notice.
65874         * tests/test-verify.c: Likewise.
65875
65876 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65877
65878         Change copyright notice from LGPL 2 to GPL 2, since that's the
65879         standard form used in the gnulib repository.
65880         * lib/lock.c: LGPL -> GPL.
65881         * lib/lock.h: Likewise.
65882         * lib/strnlen1.c: Likewise.
65883         * lib/strnlen1.h: Likewise.
65884         * lib/tls.c: Likewise.
65885         * lib/tls.h: Likewise.
65886         * lib/tmpdir.c: Likewise.
65887
65888         * lib/TODO: Remove; this belongs only in coreutils.
65889
65890 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65891
65892         Add copyright notices to long-enough files that lack them, since
65893         otherwise the files aren't clearly free.  Use the same notice that
65894         getdate.texi already uses.
65895         * doc/alloca-opt.texi: Add copyright notice.
65896         * doc/alloca.texi: Likewise.
65897         * doc/ctime.texi: Likewise.
65898         * doc/functions.texi: Likewise.
65899         * doc/gcd.texi: Likewise.
65900         * doc/gnulib-tool.texi: Likewise.
65901         * doc/inet_ntoa.texi: Likewise.
65902         * doc/visibility.texi: Likewise.
65903
65904         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65905         * doc/quote.texi: Add copyright notice.
65906
65907         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65908         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65909         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65910         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65911         is now obsolete, and give a pointer to the Sun list.
65912         Add copyright notice.
65913
65914 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * config/srclistvars.sh: Add copyright notice.
65917
65918 2006-08-14  Eric Blake  <ebb9@byu.net>
65919
65920         Import the following change from libc:
65921
65922         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65923
65924         Upstream bug 2997.
65925         * lib/misc/error.c: Add space between program name and message if file
65926         name is missing.
65927
65928 2006-08-12  Karl Berry  <karl@gnu.org>
65929
65930         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65931         remove, these originate in gnulib now.
65932
65933 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65934
65935         * doc/Makefile (standards.info standards.html standards.dvi):
65936         Also depend on make-stds.texi.
65937
65938 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65939
65940         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65941         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65942
65943         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65944         in wchar_t.  Problem reported by Eric Blake.
65945
65946         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65947         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65948         Also, help the compiler to keep LEN in a register.
65949
65950 2006-08-11  Eric Blake  <ebb9@byu.net>
65951
65952         * users.txt: Sort.  Add tar.
65953
65954 2006-08-11  Bruno Haible  <bruno@clisp.org>
65955
65956         * users.txt: New file.
65957
65958 2006-08-11  Bruno Haible  <bruno@clisp.org>
65959
65960         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65961         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65962
65963 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65964
65965         * modules/snprintf (Depends-on): Remove minmax.
65966         (Maintainer): Add self and Bruno.
65967
65968 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65969
65970         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65971         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65972         (EOVERFLOW): Define if the system does not.
65973         Do not include "minmax.h"; it wasn't used.
65974         (snprintf): Don't assume size_t promotes to an unsigned type.
65975         Fix bug when generated string was too long for the buffer: the
65976         buffer's contents are supposed to be the initial prefix of the
65977         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65978         exceeds INT_MAX; do the check ourselves.
65979
65980         Import the following changes from libc:
65981
65982         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65983
65984         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65985         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65986         set wc to the byte which couldn't be converted.
65987         (re_string_reconstruct): Don't clear valid_raw_len before calling
65988         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65989         tip_context using re_string_context_at.
65990
65991         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65992
65993         * lib/posix/regex.h: g++ still cannot handled [restrict].
65994
65995         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65996
65997         * lib/posix/regex.h: Remove special handling for VMS.
65998
65999 2006-08-10  Jim Meyering  <jim@meyering.net>
66000
66001         * modules/same-inode: New module.
66002         * modules/dev-ino: New module.
66003         * modules/cycle-check: Depend on these modules, rather than simply
66004         including their .h files.
66005         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66006         required via m4/cycle-check.m4.
66007         * modules/same: Depend on new same-inode module, rather than
66008         including same-inode.h.
66009         * modules/chdir-safer: New file.
66010
66011         * modules/chown (Depends-on): Add stat-macros.
66012
66013 2006-08-10  Jim Meyering  <jim@meyering.net>
66014
66015         * m4/cycle-check.m4: New file.
66016         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66017         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66018
66019 2006-08-10  Eric Blake  <ebb9@byu.net>
66020
66021         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66022         in from original proposal.
66023
66024 2006-08-10  Eric Blake  <ebb9@byu.net>
66025         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66026
66027         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66028         namespace.
66029
66030 2006-08-10  Bruno Haible  <bruno@clisp.org>
66031
66032         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66033         as well.
66034
66035 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66036
66037         Sync from coreutils.
66038
66039         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66040
66041         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66042         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66043
66044 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66045
66046         * modules/restrict: Remove; no longer needed now that we assume
66047         Autoconf 2.59 or later.
66048         * MODULES.html.sh: Remove 'restrict'.
66049         * modules/argp (Depends-on): Remove 'restrict'.
66050         * modules/base64 (Depends-on): Likewise.
66051         * modules/gc (Depends-on): Likewise.
66052         * modules/getaddrinfo (Depends-on): Likewise.
66053         * modules/glob (Depends-on): Likewise.
66054         * modules/inet_ntop (Depends-on): Likewise.
66055         * modules/inet_pton (Depends-on): Likewise.
66056         * modules/memxor (Depends-on): Likewise.
66057         * modules/regex (Depends-on): Likewise.
66058         * modules/strtok_r (Depends-on): Likewise.
66059         * modules/time_r (Depends-on): Likewise.
66060
66061 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66064         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66065         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66066         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66067         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66068         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66069         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66070         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66071
66072         Merge from coreutils.
66073         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66074         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66075         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66076         * m4/time_r.m4 (gl_TIME_R): Likewise.
66077
66078 2006-08-09  Karl Berry  <karl@gnu.org>
66079
66080         * config/srclist.txt: no more gettext-tools, per Bruno.
66081
66082 2006-08-08  Eric Blake  <ebb9@byu.net>
66083
66084         * modules/verror: New module.
66085         * MODULES.html.sh: Document it.
66086
66087 2006-08-08  Eric Blake  <ebb9@byu.net>
66088
66089         * lib/verror.h, lib/verror.c: New files.
66090
66091 2006-08-08  Eric Blake  <ebb9@byu.net>
66092
66093         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66094         verror_at_line output complies with GNU Coding Standards even when
66095         file is NULL.
66096
66097 2006-08-07  Bruno Haible  <bruno@clisp.org>
66098
66099         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66100         versions of AIX.
66101         Reported by Ralf Wildenhues.
66102
66103 2006-08-07  Bruno Haible  <bruno@clisp.org>
66104
66105         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66106         in an AC_DEFUN. Needed so that the autoconf snippets can use
66107         AC_REQUIRE.
66108
66109 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66110
66111         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66112         Initialize pkgdata_DATA.
66113         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66114         overriding it.
66115
66116 2006-08-06  Eric Blake  <ebb9@byu.net>
66117
66118         * lib/error.h: Fold in some upstream changes from glibc.
66119         * lib/error.c: Likewise.
66120
66121 2006-08-04  Bruno Haible  <bruno@clisp.org>
66122
66123         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66124         Make the mostlyclean-local rule depend on mostlyclean-generic.
66125         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66126
66127 2006-07-31  Bruno Haible  <bruno@clisp.org>
66128
66129         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66130         <stdlib.h>, <string.h>.
66131
66132 2006-07-30  Bruno Haible  <bruno@clisp.org>
66133
66134         * modules/readlink (License): Change to LGPL.
66135
66136 2006-07-30  Bruno Haible  <bruno@clisp.org>
66137
66138         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66139         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66140         set PKGDATADIR to point to it.
66141
66142 2006-07-30  Bruno Haible  <bruno@clisp.org>
66143
66144         * modules/csharpexec (configure.ac): Comment out macro invocation.
66145         * modules/javaexec (configure.ac): Likewise.
66146         * modules/javacomp-script (configure.ac): Likewise.
66147
66148         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66149
66150 2006-07-30  Bruno Haible  <bruno@clisp.org>
66151
66152         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66153         linked-list.
66154
66155 2006-07-30  Bruno Haible  <bruno@clisp.org>
66156
66157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66158
66159 2006-07-30  Bruno Haible  <bruno@clisp.org>
66160
66161         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66162         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66163         get removed.
66164
66165 2006-07-29  Bruno Haible  <bruno@clisp.org>
66166
66167         Make it possible for gnulib-tool to work with locally modified or
66168         augmented gnulib repositories.
66169         * gnulib-tool (func_usage): Document --local-dir option.
66170         (local_gnulib_dir): New variable.
66171         Handle --local-dir option.
66172         (func_lookup_file): New function.
66173         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66174         (func_get_description, func_get_filelist, func_get_description,
66175         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66176         func_get_automake_snippet, func_get_include_directive,
66177         func_get_license, func_get_maintainer): Use func_lookup_file.
66178         (func_import, func_create_testdir): Use func_lookup_file.
66179
66180 2006-07-29  Bruno Haible  <bruno@clisp.org>
66181
66182         * modules/setenv (Depends-on): Add unistd.
66183
66184 2006-07-29  Bruno Haible  <bruno@clisp.org>
66185
66186         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66187
66188 2006-07-29  Bruno Haible  <bruno@clisp.org>
66189
66190         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66191
66192 2006-07-29  Bruno Haible  <bruno@clisp.org>
66193
66194         * gnulib-tool (import, update): If there is no Makefile.am, look at
66195         aclocal.m4, instead of bailing out.
66196
66197 2006-07-29  Bruno Haible  <bruno@clisp.org>
66198
66199         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66200         Categorize the options by when they are useful.
66201
66202 2006-07-29  Bruno Haible  <bruno@clisp.org>
66203
66204         * gnulib-tool (func_usage): Document option --no-libtool.
66205         Handle option --no-libtool.
66206         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66207         for changed semantics of $libtool variable.
66208         (func_import): Likewise. If libtool is not used, show this through
66209         an option --no-libtool.
66210         (func_create_testdir): Update.
66211
66212 2006-07-29  Bruno Haible  <bruno@clisp.org>
66213
66214         * gnulib-tool (func_import): Extend error message about missing
66215         --doc-base.
66216
66217 2006-07-29  Bruno Haible  <bruno@clisp.org>
66218
66219         * gnulib-tool (func_import): Don't create the $docbase directory if
66220         there is no file to store there.
66221
66222 2006-07-29  Bruno Haible  <bruno@clisp.org>
66223
66224         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66225         relevant, look for configure.ac there, not in the current directory.
66226         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66227
66228 2006-07-29  Bruno Haible  <bruno@clisp.org>
66229
66230         * gnulib-tool (SORT): New variable.
66231         (func_usage): Undocument --assume-autoconf option.
66232         Remove --assume-autoconf option handling.
66233         (autoconf_minversion): Determine from the contents of configure.ac.
66234         (func_import): Remove autoconf_minversion handling.
66235         Suggested by Eric Blake.
66236
66237 2006-07-29  Bruno Haible  <bruno@clisp.org>
66238
66239         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66240
66241 2006-07-29  Bruno Haible  <bruno@clisp.org>
66242
66243         * config/srclist.txt (*setenv.[ch]): Remove rules.
66244
66245 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66246
66247         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66248
66249 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66250
66251         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66252         arpa/inet.h.
66253
66254 2006-07-28  Simon Josefsson  <jas@extundo.com>
66255
66256         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66257         * modules/inet_pton (Depends-on): Likewise.
66258
66259 2006-07-28  Simon Josefsson  <jas@extundo.com>
66260
66261         * m4/netinet_in_h.m4: New file.
66262
66263 2006-07-28  Simon Josefsson  <jas@extundo.com>
66264
66265         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66266         #include's.
66267
66268 2006-07-28  Simon Josefsson  <jas@extundo.com>
66269
66270         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66271         #include's.
66272
66273 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66274
66275         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66276         setgid on directories only if they set these bits.
66277         * lib/modechange.h: Remove obsolete comment about masks.
66278
66279 2006-07-28  Eric Blake  <ebb9@byu.net>
66280
66281         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66282         macro expansion.
66283
66284 2006-07-28  Bruno Haible  <bruno@clisp.org>
66285
66286         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66287
66288 2006-07-28  Bruno Haible  <bruno@clisp.org>
66289
66290         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66291
66292 2006-07-28  Bruno Haible  <bruno@clisp.org>
66293
66294         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66295         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66296         Define fallbacks.
66297         Avoids link error on FreeBSD 4.x.
66298         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66299
66300         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66301         encoding.
66302         * lib/mbswidth.c (iswcntrl): Likewise.
66303
66304 2006-07-27  Bruno Haible  <bruno@clisp.org>
66305
66306         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66307         test.
66308
66309 2006-07-27  Bruno Haible  <bruno@clisp.org>
66310
66311         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66312         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66313         defined.
66314
66315 2006-07-26  Eric Blake  <ebb9@byu.net>
66316
66317         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66318
66319 2006-07-26  Eric Blake  <ebb9@byu.net>
66320
66321         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66322         like mingw that lack mkstemp.
66323         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66324         avoid compilation warning on mingw.
66325
66326 2006-07-26  Bruno Haible  <bruno@clisp.org>
66327
66328         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66329         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66330         INT_FAST*_MIN, INTPTR_MIN.
66331
66332 2006-07-25  Bruno Haible  <bruno@clisp.org>
66333
66334         * modules/version-etc (Depends-on): Add stdarg.
66335
66336 2006-07-25  Bruno Haible  <bruno@clisp.org>
66337
66338         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66339         complex commands.
66340
66341 2006-07-25  Bruno Haible  <bruno@clisp.org>
66342
66343         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66344         defined in <stdarg.h> or config.h.
66345
66346 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66347
66348         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66349         (gl_STDIO_SAFER): Remove.
66350
66351 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66352
66353         * MODULES.html.sh (File stream based Input/Output):
66354         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66355         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66356         * modules/fopen-safer, modules/tmpfile-safer: New files.
66357         * modules/stdio-safer: Remove.
66358
66359 2006-07-24  Bruno Haible  <bruno@clisp.org>
66360
66361         * modules/tmpdir: New file.
66362         * MODULES.html.sh (File system functions): Add it.
66363
66364 2006-07-24  Bruno Haible  <bruno@clisp.org>
66365
66366         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66367         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66368
66369 2006-07-24  Bruno Haible  <bruno@clisp.org>
66370
66371         * modules/clean-temp: New file.
66372
66373 2006-07-24  Bruno Haible  <bruno@clisp.org>
66374
66375         * m4/tmpdir.m4: New file, from GNU gettext.
66376
66377 2006-07-24  Bruno Haible  <bruno@clisp.org>
66378
66379         * lib/tmpdir.h: New file, from GNU gettext.
66380         * lib/tmpdir.c: New file, from GNU gettext.
66381
66382 2006-07-24  Bruno Haible  <bruno@clisp.org>
66383
66384         * lib/clean-temp.h: New file, from GNU gettext.
66385         * lib/clean-temp.c: New file, from GNU gettext.
66386
66387 2006-07-23  Eric Blake  <ebb9@byu.net>
66388
66389         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66390         (Depends-on): Add binary-io.
66391
66392 2006-07-23  Eric Blake  <ebb9@byu.net>
66393
66394         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66395
66396 2006-07-23  Eric Blake  <ebb9@byu.net>
66397
66398         * lib/tmpfile-safer.c: New file.
66399         * lib/stdio-safer.h (fopen_safer): Add prototype.
66400         * lib/stdio--.h (tmpfile): Make safer.
66401
66402 2006-07-23  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66405         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66406         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66407         gl_linked_remove_at): Use it.
66408
66409 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66410         and Simon Josefsson <jas@extundo.com>
66411
66412         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66413
66414         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66415
66416 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * modules/close-stream: New file.
66419         * modules/closeout (Description): Make it clear that it exits
66420         with a diagnostic on error.
66421         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66422         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66423
66424 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66425
66426         * m4/close-stream.m4: New file.
66427
66428 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66429
66430         * lib/close-stream.c, lib/close-stream.h: New files.
66431
66432 2006-07-22  Bruno Haible  <bruno@clisp.org>
66433
66434         Merge from GNU gettext 0.15.
66435
66436         2006-05-01  Bruno Haible  <bruno@clisp.org>
66437
66438                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66439
66440         2006-07-22  Bruno Haible  <bruno@clisp.org>
66441
66442                 * modules/javaversion: New file.
66443                 * MODULES.html.sh (Java): Add javaversion.
66444
66445         2006-03-12  Bruno Haible  <bruno@clisp.org>
66446
66447                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66448
66449         2005-12-04  Bruno Haible  <bruno@clisp.org>
66450
66451                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66452                 (untested).
66453
66454         2006-06-21  Bruno Haible  <bruno@clisp.org>
66455
66456                 Avoid warnings from recent versions of mcs.
66457                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66458                 -o, -L, -r any more. Use options documented since mcs-1.0
66459                 instead. Similarly for -g.
66460
66461         2005-12-04  Bruno Haible  <bruno@clisp.org>
66462
66463                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66464                 .resources, not .resource.
66465
66466         2005-07-09  Bruno Haible  <bruno@clisp.org>
66467
66468                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66469                 add a .dll suffix.
66470                 Reported by Mark Junker <mjscod@gmx.de>.
66471
66472         2006-07-22  Bruno Haible  <bruno@clisp.org>
66473
66474                 * modules/gettext: Upgrade to gettext-0.15.
66475                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66476                 m4/visibility.m4.
66477                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66478
66479 2006-07-22  Bruno Haible  <bruno@clisp.org>
66480
66481         Merge from GNU gettext 0.15.
66482
66483         2006-03-25  Bruno Haible  <bruno@clisp.org>
66484
66485                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66486
66487         2006-07-21  Bruno Haible  <bruno@clisp.org>
66488
66489                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66490                 "1.1".
66491
66492         2006-05-09  Bruno Haible  <bruno@clisp.org>
66493
66494                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66495                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66496                 for the conftestver execution.
66497
66498         2006-05-01  Bruno Haible  <bruno@clisp.org>
66499
66500                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66501                 optional target-version argument. Verify that the compiler
66502                 groks source of the specified source-version, or add -source
66503                 option as necessary. Verify that the compiler produces
66504                 bytecode in the specified target-version, or add -target and
66505                 -source options as necessary. Make the result of the test
66506                 available as variable CONF_JAVAC. Also log error output in
66507                 config.log.
66508
66509         2006-03-11  Bruno Haible  <bruno@clisp.org>
66510
66511                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66512
66513         2006-05-09  Bruno Haible  <bruno@clisp.org>
66514
66515                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66516                 CLASSPATH_SEPARATOR to a semicolon.
66517
66518         2006-03-12  Bruno Haible  <bruno@clisp.org>
66519
66520                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66521                 available as variable CONF_JAVA, for subsequent autoconf
66522                 tests. Also log error output in config.log.
66523
66524         2006-07-19  Bruno Haible  <bruno@clisp.org>
66525
66526                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66527                 that getline works on glibc2 systems. Needed to avoid trouble
66528                 in relocatable.c.
66529                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66530
66531         2005-12-04  Bruno Haible  <bruno@clisp.org>
66532
66533                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66534                 launcher (untested).
66535
66536         2005-12-04  Bruno Haible  <bruno@clisp.org>
66537
66538                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66539
66540         2006-07-22  Bruno Haible  <bruno@clisp.org>
66541
66542                 * gettext.m4: Update from GNU gettext-0.15.
66543                 * nls.m4: Likewise.
66544                 * po.m4: Likewise.
66545                 * inttypes-pri.m4: Likewise.
66546                 * inttypes-h.m4: Renamed from inttypes.m4.
66547                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66548
66549 2006-07-22  Bruno Haible  <bruno@clisp.org>
66550
66551         Merge from GNU gettext 0.15.
66552
66553         2005-07-05  Bruno Haible  <bruno@clisp.org>
66554
66555                 * printf-args.c (printf_fetchargs): Work around broken
66556                 definition of wint_t on mingw.
66557
66558         2005-02-12  Bruno Haible  <bruno@clisp.org>
66559
66560                 * xallocsa.h: Add extern "C" for C++.
66561
66562         2006-05-17  Bruno Haible  <bruno@clisp.org>
66563
66564                 Cygwin portability.
66565                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66566
66567         2006-04-30  Bruno Haible  <bruno@clisp.org>
66568
66569                 * progreloc.c: Include <mach-o/dyld.h> if available.
66570                 (find_executable): Use _NSGetExecutablePath when possible.
66571
66572         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66573
66574                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66575                 function.
66576
66577         2005-12-29  Bruno Haible  <bruno@clisp.org>
66578
66579                 * progreloc.c (set_program_name_and_installdir): Fix
66580                 compilation error.
66581
66582         2005-12-04  Bruno Haible  <bruno@clisp.org>
66583
66584                 Cygwin portability.
66585                 * progreloc.c: Include <windows.h> also on Cygwin.
66586                 (find_executable): Add support for Cygwin.
66587                 (set_program_name_and_installdir): Handle also platforms with
66588                 nonempty EXEEXT.
66589
66590         2006-07-11  Bruno Haible  <bruno@clisp.org>
66591
66592                 * javacomp.c: Fix a comment.
66593                 Reported by Jim Meyering.
66594
66595         2006-04-30  Bruno Haible  <bruno@clisp.org>
66596
66597                 * javacomp.h (compile_java_class): Add source_version,
66598                 target_version arguments.
66599                 * javacomp.c: Rewritten to choose only a compiler that
66600                 respects the specified source_version and target_version.
66601
66602         2006-06-27  Bruno Haible  <bruno@clisp.org>
66603
66604                 Assume correct S_ISDIR macro.
66605                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66606
66607         2006-07-22  Bruno Haible  <bruno@clisp.org>
66608
66609                 * javaversion.h: New file, from GNU gettext.
66610                 * javaversion.c: New file, from GNU gettext.
66611                 * javaversion.java: New file, from GNU gettext.
66612                 * javaversion.class: New file, from GNU gettext.
66613
66614         2006-05-17  Bruno Haible  <bruno@clisp.org>
66615
66616                 Cygwin portability.
66617                 * javaexec.c (execute_java_class): Test for jview program
66618                 also on Cygwin.
66619
66620         2006-04-09  Bruno Haible  <bruno@clisp.org>
66621
66622                 * fatal-signal.c: Don't include string.h.
66623                 (at_fatal_signal): Use a copying loop instead of memcpy.
66624
66625         2005-12-04  Bruno Haible  <bruno@clisp.org>
66626
66627                 * csharpexec.c: Add support for 'clix' launcher (untested).
66628                 (execute_csharp_using_sscli): New function.
66629                 (execute_csharp_program): Call it.
66630
66631         2006-06-21  Bruno Haible  <bruno@clisp.org>
66632
66633                 Avoid warnings from recent versions of mcs.
66634                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66635                 -o, -L, -r any more. Use options documented since mcs-1.0
66636                 instead. Similarly for -g.
66637
66638         2005-07-09  Bruno Haible  <bruno@clisp.org>
66639
66640                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66641                 add a .dll suffix.
66642                 Reported by Mark Junker <mjscod@gmx.de>.
66643
66644         2006-06-17  Bruno Haible  <bruno@clisp.org>
66645
66646                 * config.charset: Update for NetBSD 3.0.
66647
66648         2006-05-17  Bruno Haible  <bruno@clisp.org>
66649
66650                 Cygwin portability.
66651                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66652
66653         2006-05-16  Bruno Haible  <bruno@clisp.org>
66654
66655                 * localcharset.c [CYGWIN]: Include <windows.h>.
66656                 (get_charset_aliases): For Cygwin, return the same CPxxx
66657                 aliases list as under WIN32.
66658                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66659                 the environment variables. Fall back to GetACP().
66660
66661         2006-04-05  Bruno Haible  <bruno@clisp.org>
66662
66663                 * config.charset: Update Juan Manuel Guerrero's address.
66664
66665         2005-02-12  Bruno Haible  <bruno@clisp.org>
66666
66667                 * allocsa.h: Add extern "C" for C++.
66668
66669         2005-02-10  Bruno Haible  <bruno@clisp.org>
66670
66671                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66672                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66673
66674         2006-07-22  Bruno Haible  <bruno@clisp.org>
66675
66676                 * gettext.h: Update to GNU gettext-0.15.
66677
66678 2006-07-22  Bruno Haible  <bruno@clisp.org>
66679
66680         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66681         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66682         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66683
66684 2006-07-21  Eric Blake  <ebb9@byu.net>
66685
66686         * modules/stdlib-safer: New file.
66687         * MODULES.html.sh (File stream based Input/Output): Add
66688         stdlib-safer.
66689
66690 2006-07-21  Eric Blake  <ebb9@byu.net>
66691
66692         * lib/stdlib-safer.h: New file from coreutils, required by
66693         stdlib--.h.
66694
66695 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66696
66697         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66698
66699 2006-07-20  Bruno Haible  <bruno@clisp.org>
66700
66701         * gnulib-tool: Recognize new option --assume-autoconf.
66702         (autoconf_minversion): New variable.
66703         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66704
66705 2006-07-20  Bruno Haible  <bruno@clisp.org>
66706
66707         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66708
66709 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66710
66711         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66712         Reindent and repaginate.
66713
66714 2006-07-19  Derek Price  <derek@ximbiot.com>
66715
66716         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66717         Correct grammar.
66718
66719 2006-07-17  Bruno Haible  <bruno@clisp.org>
66720
66721         * modules/list: New file.
66722         * modules/array-list: New file.
66723         * modules/carray-list, modules/carray-list-tests: New files.
66724         * modules/linked-list, modules/linked-list-tests: New files.
66725         * modules/avltree-list, modules/avltree-list-tests: New files.
66726         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66727         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66728         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66729         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66730         * modules/oset: New file.
66731         * modules/array-oset: New file.
66732         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66733         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66734         * tests/test-carray_list.c: New file.
66735         * tests/test-linked_list.c: New file.
66736         * tests/test-avltree_list.c: New file.
66737         * tests/test-rbtree_list.c: New file.
66738         * tests/test-linkedhash_list.c: New file.
66739         * tests/test-avltreehash_list.c: New file.
66740         * tests/test-rbtreehash_list.c: New file.
66741         * tests/test-avltree_oset.c: New file.
66742         * tests/test-rbtree_oset.c: New file.
66743         * MODULES.html.sh (Container data structures): New section.
66744
66745 2006-07-17  Bruno Haible  <bruno@clisp.org>
66746
66747         * m4/gl_list.m4: New file.
66748
66749 2006-07-17  Bruno Haible  <bruno@clisp.org>
66750
66751         * lib/gl_list.h: New file.
66752         * lib/gl_list.c: New file.
66753         * lib/gl_array_list.h: New file.
66754         * lib/gl_array_list.c: New file.
66755         * lib/gl_carray_list.h: New file.
66756         * lib/gl_carray_list.c: New file.
66757         * lib/gl_linked_list.h: New file.
66758         * lib/gl_linked_list.c: New file.
66759         * lib/gl_anylinked_list1.h: New file.
66760         * lib/gl_anylinked_list2.h: New file.
66761         * lib/gl_avltree_list.h: New file.
66762         * lib/gl_avltree_list.c: New file.
66763         * lib/gl_anyavltree_list1.h: New file.
66764         * lib/gl_anyavltree_list2.h: New file.
66765         * lib/gl_rbtree_list.h: New file.
66766         * lib/gl_rbtree_list.c: New file.
66767         * lib/gl_anyrbtree_list1.h: New file.
66768         * lib/gl_anyrbtree_list2.h: New file.
66769         * lib/gl_anytree_list1.h: New file.
66770         * lib/gl_anytree_list2.h: New file.
66771         * lib/gl_linkedhash_list.h: New file.
66772         * lib/gl_linkedhash_list.c: New file.
66773         * lib/gl_anyhash_list1.h: New file.
66774         * lib/gl_anyhash_list2.h: New file.
66775         * lib/gl_avltreehash_list.h: New file.
66776         * lib/gl_avltreehash_list.c: New file.
66777         * lib/gl_rbtreehash_list.h: New file.
66778         * lib/gl_rbtreehash_list.c: New file.
66779         * lib/gl_anytreehash_list1.h: New file.
66780         * lib/gl_anytreehash_list2.h: New file.
66781
66782         * lib/gl_oset.h: New file.
66783         * lib/gl_oset.c: New file.
66784         * lib/gl_array_oset.h: New file.
66785         * lib/gl_array_oset.c: New file.
66786         * lib/gl_avltree_oset.h: New file.
66787         * lib/gl_avltree_oset.c: New file.
66788         * lib/gl_rbtree_oset.h: New file.
66789         * lib/gl_rbtree_oset.c: New file.
66790         * lib/gl_anytree_oset.h: New file.
66791
66792 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66793
66794         * m4/mkancesdirs.m4: New file.
66795         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66796         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66797         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66798         it.
66799
66800 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66801
66802         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66803         * lib/mkancesdirs.h: New files.
66804         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66805         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66806         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66807         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66808         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66809         callers changed.  Revamp internals significantly, by not
66810         attempting to create directories that are temporarily more
66811         permissive than the final results.  Do not attempt to use
66812         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66813         This removes some race conditions, fixes some bugs, and simplifies
66814         things.  Use new dirchownmod function to do owner and mode changes.
66815         * lib/mkdir-p.h: Likewise.
66816         * lib/modechange.c (octal_to_mode): New function.
66817         (struct mode_change): New member mentioned.
66818         (make_node_op_equals): New arg mentioned.  All callers changed.
66819         (mode_compile): Keep track of which mode bits the user has explicitly
66820         mentioned.
66821         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66822         New arg PMODE_BITS, to keep track of which mode bits the user
66823         mentioned; it treats S_ISUID and S_ISGID speciall.
66824         All callers changed.
66825         * lib/modechange.h: Likewise.
66826
66827 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66828
66829         * MODULES.html.sh: Add mkancestors.
66830         * modules/mkancesdirs: New module.
66831         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66832         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66833         The chdir-safer and afs files are now orphans; I'll remove them
66834         unless someone speaks up.
66835         Add lib/dirchownmod.c, lib/dirchownmod.h.
66836         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66837         Add lchown, mkancesdirs.
66838         (Maintainer): Add self.
66839
66840 2006-07-15  Karl Berry  <karl@gnu.org>
66841
66842         * gnulib-tool: help message wording/arrangement.
66843
66844 2006-07-14  Simon Josefsson  <jas@extundo.com>
66845
66846         * doc/gnulib.texi (Libtool and Windows): New section.
66847
66848 2006-07-12  Simon Josefsson  <jas@extundo.com>
66849
66850         * modules/gendocs (License): Fix license, approved by Karl.
66851
66852 2006-07-12  Eric Blake  <ebb9@byu.net>
66853
66854         * MODULES.html.sh: Add gendocs.
66855
66856 2006-07-11  Eric Blake  <ebb9@byu.net>
66857
66858         * modules/fdl: New module, to install doc/fdl.texi.
66859         * MODULES.html.sh: Add new section for documentation modules.
66860         * gnulib-tool: Avoid space-tab.
66861         (--doc-base): New option, to manage files from doc.
66862
66863 2006-07-11  Eric Blake  <ebb9@byu.net>
66864
66865         * m4/absolute-header.m4: Fix comments to match recent change.
66866
66867 2006-07-11  Eric Blake  <ebb9@byu.net>
66868
66869         * gnulib-tool: List --doc-base before --tests-base.
66870
66871 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66872
66873         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66874
66875 2006-07-11  Bruno Haible  <bruno@clisp.org>
66876
66877         * README: Mention where to put documentation.
66878
66879 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66880
66881         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66882
66883 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66884
66885         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66886         to stdint.m4.
66887
66888 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66889
66890         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66891         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66892         "no/such/file/stdint.h" when there is no such file, so that
66893         the resulting C code can be parsed by dodgy compilers.
66894         Problems reported by Bob Proulx.
66895
66896 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66897
66898         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66899         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66900         macros into the GNU _D_EXACT_NAMLEN.
66901         * lib/savedir.c:  Likewise.
66902         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66903
66904 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66905         and Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66908         * m4/savedir.m4:
66909         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66910         macros into the GNU _D_EXACT_NAMLEN.
66911
66912 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66913
66914         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66915         around the absolute name, to work around a problem with the HP-UX
66916         11.23 native C compiler, reported by Bob Proulx.
66917
66918 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66919
66920         * doc/maintain.texi, make-stds.texi: Sync from
66921         <http://savannah.gnu.org/projects/gnustandards>.
66922
66923 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66924
66925         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66926
66927 2006-07-09  Jim Meyering  <jim@meyering.net>
66928
66929         * m4/glob.m4: Remove a doubled word in a comment.
66930
66931 2006-07-09  Jim Meyering  <jim@meyering.net>
66932
66933         * lib/argp-pv.c: Remove a doubled word in a comment.
66934         * lib/check-version.c (check_version): Likewise.
66935         * lib/javacomp.c (compile_java_class): Likewise.
66936
66937 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66938
66939         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66940         for the benefit of people using Autoconf 2.60.  If you want to
66941         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66942         (or m4/onceonly.m4, if pre-2.57) manually.
66943
66944 2006-07-08  Jim Meyering  <jim@meyering.net>
66945
66946         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66947         comment.
66948         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66949         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66950         comment.
66951
66952 2006-07-08  Jim Meyering  <jim@meyering.net>
66953
66954         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66955
66956 2006-07-07  Simon Josefsson  <jas@extundo.com>
66957
66958         * tests/test-crc.c: Change expected crc value, the test vector
66959         were probably computed using the old broken crc.c?
66960
66961 2006-07-06  Simon Josefsson  <jas@extundo.com>
66962
66963         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66964         now the canonical place for the M4 file).
66965
66966         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66967         from the sys_socket dependency now.
66968
66969         * modules/inet_pton (Files): Ditto.
66970
66971         * modules/inet_ntop (Files): Ditto.
66972
66973 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66974
66975         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66976         not gl_PREREQ_GETUSERSHELL.
66977
66978 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66979
66980         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66981         with only one argument, for Autoconf 2.60.
66982         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66983         expand to nothing, so add a shell command to avoid syntax error.
66984         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66985
66986 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66987
66988         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66989
66990 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66991
66992         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66993         no longer needed.  Check for isblank decl.
66994         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66995         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66996         of existence.
66997
66998 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66999
67000         * lib/getloadavg.c: Use __VMS, not VMS.
67001         * lib/getopt.c: Likewise.
67002         * lib/getpagesize.h: Likewise.
67003         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67004         and probably does not work.
67005
67006 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67007
67008         * lib/.cppi-disable: Add wcwidth.
67009         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67010         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67011         (ISGRAPH): Remove.  All uses changed to isgraph.
67012         (FOLD) [!defined _LIBC]: Remove special case.
67013         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67014         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67015         HAVE_ISBLANK.
67016         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67017         case.
67018
67019 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67020
67021         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67022         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67023         brackets.  Other minor changes to suppress some compiler
67024         warnings.
67025
67026 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67027         and Paul Eggert  <eggert@cs.ucla.edu>
67028
67029         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67030         of invoking obsolescent AC_HEADER_DIRENT macro.
67031         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67032         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67033         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67034         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67035         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67036         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67037         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67038         * m4/readdir.m4: Remove; no longer needed.
67039
67040 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67041         and Paul Eggert  <eggert@cs.ucla.edu>
67042
67043         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67044         Don't worry about this obsolete case any more.
67045         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67046         directories.
67047         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67048         worry about this obsolete case any more.
67049         * lib/fts.c: Likewise.
67050         * lib/getcwd.c: Likewise.
67051         * lib/glob.h: Likewise.
67052         * lib/savedir.c: Likewise.
67053
67054 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67055
67056         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67057         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67058         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67059         needed.
67060         All uses removed.
67061         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67062         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67063         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67064         needed.
67065         * m4/getdate.m4 (gl_GETDATE): Likewise.
67066         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67067         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67068         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67069         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67070         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67071         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67072         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67073         needed.
67074
67075 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67076
67077         * lib/memcasecmp.c: Include <limits.h>.
67078         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67079         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67080         Don't assume isdigit succeeds only on '0' through '9'.
67081
67082 2006-07-05  Eric Blake  <ebb9@byu.net>
67083
67084         * modules/getaddrinfo (Depends-on): Add snprintf.
67085
67086 2006-07-05  Eric Blake  <ebb9@byu.net>
67087
67088         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67089         to avoid 'header present but could not be compiled' on cygwin.
67090
67091 2006-07-05  Eric Blake  <ebb9@byu.net>
67092
67093         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67094         missing from netdb.h.
67095         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67096
67097 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67098
67099         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67100         no longer needed.
67101         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67102         * m4/getdate.m4 (gl_GETDATE): Likewise.
67103         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67104         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67105         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67106         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67107         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67108
67109 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67110
67111         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67112         All uses of is_space replaced by isspace.
67113         * lib/exit.h: Don't talk about STDC_HEADERS.
67114         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67115         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67116         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67117         replaced by isprint etc.
67118         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67119         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67120         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67121         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67122         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67123         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67124
67125 2006-07-05  Bruno Haible  <bruno@clisp.org>
67126
67127         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67128         the function exists, before testing against AIX.
67129         Reported by Martin Lambers <marlam@marlam.de>.
67130
67131 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67132
67133         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67134         From Mark D. Baushke.
67135
67136 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67139         to the absolute name, not just one, to bypass Sun C 5.8's
67140         "warning: #include of /usr/include/... may be non-portable".
67141
67142 2006-07-04  Eric Blake  <ebb9@byu.net>
67143
67144         * modules/dirname-tests: New test module.
67145         * tests/test-dirname.c: New file, replacing dirname.c
67146         TEST_DIRNAME section that was recently deleted.
67147
67148 2006-07-04  Bruno Haible  <bruno@clisp.org>
67149
67150         Assume ANSI C header files and <ctype.h> functions.
67151         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67152         (mbsnwidth): Use isprint, iscntrl instead.
67153
67154 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67155
67156         Merge from coreutils.
67157         * MODULES.html.sh: Add xstrtold.
67158         * modules/xstrtold: New file.
67159         * modules/cycle-check (Files): Add lib/same-inode.h.
67160         * modules/dirname (Files): Add m4/double-slash-root.m4.
67161         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67162         * modules/mkdir-p (Files): Add lib/same-inode.h.
67163         * modules/same (Files): Add lib/same-inode.h.
67164
67165 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67168         This is to keep the terminology clean; POSIX talks about
67169         "absolute pathnames", not "full pathnames", but the GNU
67170         Coding Standards say to use "path" for something else;
67171         so use "absolute" to keep both sides happy.
67172         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67173         Set gl_absolute_header, not gl_full_header_path.
67174         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67175         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67176         All uses changed.
67177
67178         Merge from coreutils.
67179
67180         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67181
67182         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67183         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67184         want to require the building of c-strtod.o.
67185         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67186         needs -lm directly.
67187         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67188
67189         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67190
67191         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67192         --as-needed option if available.  Problem reported by Albert Chin in
67193         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67194         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67195         cc merely issues a bunch of annoying warnings for --as-needed
67196         (this problem was reported by Bob Proulx).  Also, try linking with
67197         -lm to detect a bug in binutils 2.16 (this problem was reported
67198         by Ralf Wildenhues).
67199
67200         2006-06-18  Jim Meyering  <jim@meyering.net>
67201
67202         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67203         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67204         macro.
67205         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67206         also check for glibc-2.4's abort-inducing bug.
67207
67208         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67209         Low-probability clean-up should be to use rmdir to get rid of
67210         the just-created directory, not unlink.
67211
67212         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67213         configure fail, and request a bug report to inform us about it.
67214         Add a comment that, barring reports to the contrary, in 2007 we'll
67215         assume ftruncate is universally available.
67216
67217         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67218
67219         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67220
67221         2006-03-12  Jim Meyering  <jim@meyering.net>
67222
67223         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67224         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67225         * m4/same.m4 (gl_SAME): Likewise.
67226         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67227
67228         2006-03-11  Eric Blake  <ebb9@byu.net>
67229
67230         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67231         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67232         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67233         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67234
67235 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67236
67237         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67238         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67239         reported by Mark D. Baushke, one in
67240         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67241
67242         Merge from coreutils.
67243
67244         * lib/.cppi-disable: Add stdint_.h.
67245         * lib/.cvsignore: Add stdint.h.
67246
67247         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67248
67249         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67250         both double and long double versions.
67251         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67252         * lib/xstrtold.c: New file.
67253         * lib/xstrtod.h (xstrtold): New decl.
67254
67255         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67256
67257         * lib/filemode.c (setst): Remove.
67258         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67259         (arguably) clearer, and the generated code is a bit smaller on my
67260         Debian GNU/Linux stable x86 host.
67261
67262         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67263
67264         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67265         Assume that filemode.h includes sys/types.h and sys/stat.h.
67266         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67267         (ftypelet): Reorder to put common cases first, for efficiency.
67268         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67269         to do 'M'.
67270         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67271         of 10, for compatibility with FreeBSD.  All callers changed.
67272         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67273         types that can't be deduced solely from st_mode.  First arg is now a
67274         const pointer.
67275         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67276         (strmode): Renamed from mode_string.
67277         (filemodestring): New decl.
67278         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67279         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67280         needed.
67281         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67282
67283         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67284
67285         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67286         fsusage.h now does that.  Include fsusage.h first, to test interface.
67287         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67288         at most one method (the old code could have generated decls that
67289         didn't conform to C89, not that this was ever exercised).
67290         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67291
67292         2006-03-19  Jim Meyering  <jim@meyering.net>
67293
67294         Work even in a chroot where d_ino values for entries in "/"
67295         don't match the stat.st_ino values for the same names.
67296         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67297         number, iterate through all entries again, using lstat instead.
67298         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67299         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67300
67301         * lib/getcwd.c (__getcwd): Clarify a comment.
67302         Use memcpy in place of a call to strcpy.
67303
67304         2006-03-12  Jim Meyering  <jim@meyering.net>
67305
67306         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67307         matches that of the current directory (which we're about to chdir ".."
67308         out of), then save the dev-ino of the parent, instead.
67309
67310         * lib/same-inode.h (SAME_INODE): New file/macro.
67311         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67312         Include "same-inode.h", instead.
67313         * lib/same.c: Likewise.
67314         * lib/cycle-check.h: Include "same-inode.h".
67315         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67316         * lib/cycle-check.c (SAME_INODE): Remove definition.
67317         * lib/root-dev-ino.h: Include "same-inode.h".
67318
67319         2006-03-11  Eric Blake  <ebb9@byu.net>
67320
67321         * lib/same.c (same_name): s/base_name/last_component/
67322         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67323         * lib/filenamecat.c (file_name_concat): Likewise.
67324
67325         2006-03-11  Eric Blake  <ebb9@byu.net>,
67326                     Paul Eggert  <eggert@cs.ucla.edu>
67327
67328         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67329         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67330         drive prefix.
67331         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67332         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67333         (last_component): New method.
67334         * lib/dirname.c (dir_len): Determine when drive letters need a
67335         subsequent slash.  Preserve // when it is special.
67336         (dir_name): Don't append dot when drive letter is absolute.
67337         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67338         * lib/basename.c (base_name): New semantics - malloc the result.
67339         Preserve // when it is special.  Preserve relative files that look
67340         like drive letters.
67341         (base_len): Preserve // when it is special.
67342         (last_component): New method, similar to old base_name semantics.
67343         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67344         base_name.  Strip redundant slashes from ///.
67345
67346 2006-07-03  Jim Meyering  <jim@meyering.net>
67347
67348         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67349         macro is used before the first cycle_check call.
67350
67351 2006-07-03  Eric Blake  <ebb9@byu.net>
67352
67353         * modules/dirname (Depends-on): Add xstrndup.
67354
67355 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67356
67357         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67358         test cases, so that config.log is a bit easier to follow.
67359
67360 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67361
67362         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67363         both are 64 bits, since this seems to be the tradition, and this
67364         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67365         we ever run into a host that prefers long long to long in this
67366         case, we'll need another configure-time test.  Problem reported by
67367         Jim Meyering.
67368
67369 2006-07-02  Eric Blake  <ebb9@byu.net>
67370
67371         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67372
67373 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67374
67375         * modules/inttypes (Depends-on): No longer depends on stdint.
67376         * modules/stdint (Description): Say more about assumptions.
67377         Say that the fast types might differ.  Say macros are used.
67378         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67379         (Makefile.am): Revise list of substituted symbols to match
67380         new stdint.m4.
67381         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67382         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67383         * tests/test-stdint.c (verify_same_types)
67384         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67385         the code conforms to C99/C89.
67386         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67387         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67388
67389 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67390
67391         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67392         but fix a bug, by requiring at least 64 bits.
67393         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67394         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67395         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67396         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67397
67398         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67399         changes.  Make 2.59 a prerequisite.  Check and substitute for
67400         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67401         inttypes.h.  Do not use special include files; just use the
67402         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67403         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67404         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67405         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67406         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67407         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67408         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67409         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67410         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67411         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67412         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67413         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67414         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67415         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67416         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67417         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67418         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67419         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67420         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67421         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67422         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67423         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67424         not check for things that C99 does not require, e.g., int8_t.  If
67425         a test isn't needed unless <stdint.h> isn't working, and is
67426         unlikely to be needed for any other reason, then don't do it
67427         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67428         size_t, since we assume C89 freestanding at least.  Do not check
67429         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67430         the right thing even if the types are not defined.  Instead use:
67431         (gl_STDINT_TYPE_PROPERTIES): New macro.
67432         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67433         testing whether <sys/types.h> clashes, as Autoconf does this for
67434         us now.  All uses removed.
67435         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67436         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67437         (gl_CHECK_TYPE_SAME):
67438         Remove; no longer needed.
67439         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67440         exists, since we'll return 0 anyway in that case.
67441         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67442
67443 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67444
67445         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67446         possible collision with system files.
67447         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67448         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67449         WCHAR_MIN and WCHAR_MAX in this case.
67450         (<stddef.h>): Do not include; no longer needed.
67451         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67452         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67453         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67454         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67455         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67456         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67457         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67458         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67459         !defined(__c99))]: Include in this case too, since it's harmless
67460         now.
67461         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67462         dangerous to do so.
67463         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67464         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67465         (_STDINT_MIN, _STDINT_MAX): New macros.
67466         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67467         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67468         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67469         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67470         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67471         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67472         macros, not typedefs; this simplifies things quite a bit.
67473         Use long int for all types narrower than int64_t.
67474         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67475         Define in terms of long long int or int64_t or long int,
67476         not int64_t or int32_t.  This saves some compile-time testing.
67477         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67478         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67479         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67480         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67481         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67482         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67483         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67484         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67485         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67486         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67487         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67488         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67489         undef any previous version and define our own version, for
67490         simplicity and consistency with the new macros for types.
67491         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67492         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67493         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67494         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67495         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67496         @WINT_T_SUFFIX@ to keep things simple here.
67497         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67498         Simplify by assuming typical 8/16/32/64 host, since we're
67499         already doing that elsewhere anyway.
67500         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67501         and assume long long int is 64 bits if available.  This
67502         speeds up 'configure'.
67503
67504 2006-07-01  Eric Blake  <ebb9@byu.net>
67505
67506         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67507         Reported by Andreas Buening.
67508
67509 2006-07-01  Eric Blake  <ebb9@byu.net>
67510
67511         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67512
67513 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67514
67515         * lib/getaddrinfo.c: fixed typo
67516
67517 2006-06-29  Jim Meyering  <jim@meyering.net>
67518
67519         * modules/strftime (Maintainer): Add my name, since with the
67520         FPRINTFTIME changes strftime.c has forked from glibc.
67521
67522 2006-06-29  Eric Blake  <ebb9@byu.net>
67523
67524         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67525
67526 2006-06-29  Eric Blake  <ebb9@byu.net>
67527
67528         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67529
67530 2006-06-29  Eric Blake  <ebb9@byu.net>
67531
67532         * lib/stat_.h: New file.
67533
67534 2006-06-29  Eric Blake  <ebb9@byu.net>
67535
67536         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67537         unused static function.
67538
67539 2006-06-29  Eric Blake  <ebb9@byu.net>
67540
67541         * doc/functions.texi (Function Portability): Document missing lstat
67542         on mingw.
67543
67544 2006-06-29  Eric Blake  <ebb9@byu.net>
67545
67546         * MODULES.html.sh: Add sys_stat.
67547         * modules/sys_stat: New module.
67548         * modules/mkstemp (Depends-on): Add sys_stat.
67549
67550 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67551
67552         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67553
67554 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67555
67556         * m4/c-bs-a.m4: Removed.
67557
67558 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67559
67560         * lib/strftime.c: Assume strftime() exists.
67561
67562 2006-06-29  Derek Price  <derek@ximbiot.com>
67563
67564         * modules/c-bs-a: Removed - \a is C89.
67565         * MODULES.html.sh: Remove c-bs-a.
67566
67567 2006-06-29  Bruno Haible  <bruno@clisp.org>
67568
67569         * modules/wcwidth (License): Change to LGPL.
67570
67571 2006-06-28  Simon Josefsson  <jas@extundo.com>
67572
67573         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67574         on _WIN32.
67575
67576         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67577         getnameinfo.
67578
67579 2006-06-28  Simon Josefsson  <jas@extundo.com>
67580
67581         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67582
67583 2006-06-28  Simon Josefsson  <jas@extundo.com>
67584
67585         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67586         functions there.  It will succeed on Windows XP, but on Windows
67587         2000 and (presumably) earlier, it will fail, and use the internal
67588         re-implementation.
67589         (use_win32_p): New function.
67590         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67591         Support AI_NUMERICSERV to disable getservbyname.
67592         (getnameinfo): New function, only supports
67593         NI_NUMERICHOST|NI_NUMERICSERV for now.
67594
67595         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67596         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67597         getnameinfo.
67598
67599 2006-06-28  Eric Blake  <ebb9@byu.net>
67600
67601         * modules/wcwidth: New file.
67602         * modules/mbchar (Depends-on): Add wcwidth.
67603         * modules/mbswidth (Depends-on): Add wcwidth.
67604         * MODULES.html.sh: Add wcwidth.
67605
67606 2006-06-28  Eric Blake  <ebb9@byu.net>
67607
67608         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67609         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67610
67611 2006-06-28  Eric Blake  <ebb9@byu.net>
67612
67613         * lib/xvasprintf.h: Fix comments.
67614
67615 2006-06-28  Eric Blake  <ebb9@byu.net>
67616
67617         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67618         * lib/mbswidth.c (wcwidth): Move from here...
67619         * lib/wcwidth.h: ...to this new file.
67620
67621 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67622
67623         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67624
67625         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67626         it's obsolete.
67627         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67628
67629 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67630
67631         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67632         Autoconf 2.60 says this stuff was obsolete.
67633
67634 2006-06-28  Bruno Haible  <bruno@clisp.org>
67635
67636         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67637
67638 2006-06-28  Bruno Haible  <bruno@clisp.org>
67639
67640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67641         gt_TYPE_WCHAR_T.
67642
67643 2006-06-28  Bruno Haible  <bruno@clisp.org>
67644
67645         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67646         declaration for wcwidth.
67647         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67648
67649 2006-06-28  Bruno Haible  <bruno@clisp.org>
67650
67651         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67652         (mkdir): Define using _mkdir.
67653
67654 2006-06-28  Bruno Haible  <bruno@clisp.org>
67655
67656         * lib/getaddrinfo.h: Fix POSIX URL.
67657         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67658         _WIN32.
67659         (use_win32_p): Make static.
67660         (getaddrinfo): Reject service name if it is empty or does not consist
67661         solely of decimal digits, or if its value is > 65535.
67662         (getnameinfo): Remove useless casts.
67663
67664 2006-06-27  Simon Josefsson  <jas@extundo.com>
67665
67666         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67667         Eggert and Martin Lambers.
67668
67669 2006-06-27  Simon Josefsson  <jas@extundo.com>
67670
67671         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67672         Eggert and Martin Lambers.
67673
67674 2006-06-27  Bruno Haible  <bruno@clisp.org>
67675
67676         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67677         result to 0, not to empty.
67678         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67679
67680 2006-06-27  Bruno Haible  <bruno@clisp.org>
67681
67682         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67683
67684 2006-06-26  Simon Josefsson  <jas@extundo.com>
67685
67686         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67687         present.
67688
67689 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67690
67691         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67692         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67693         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67694
67695 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67696
67697         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67698
67699 2006-06-26  Bruno Haible  <bruno@clisp.org>
67700
67701         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67702
67703 2006-06-26  Bruno Haible  <bruno@clisp.org>
67704
67705         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67706
67707 2006-06-26  Bruno Haible  <bruno@clisp.org>
67708
67709         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67710         SGI C compiler in pre-C99 mode.
67711         Suggested by Mark D. Baushke and Larry Jones.
67712
67713 2006-06-26  Bruno Haible  <bruno@clisp.org>
67714
67715         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67716         WCHAR_MAX.
67717         Reported by Mark D. Baushke and Larry Jones.
67718
67719 2006-06-26  Bruno Haible  <bruno@clisp.org>
67720
67721         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67722         in pre-C99 mode.
67723         Suggested by Mark D. Baushke and Larry Jones.
67724
67725 2006-06-23  Simon Josefsson  <jas@extundo.com>
67726             Bruno Haible  <bruno@clisp.org>
67727
67728         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67729         Emit mostlyclean-local rule.
67730         (func_emit_tests_Makefile_am): Likewise.
67731         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67732
67733 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67734
67735         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67736
67737 2006-06-23  Bruno Haible  <bruno@clisp.org>
67738
67739         * tests/test-stdint.c: Update to match ISO C 99 Technical
67740         Corrigendum 1.
67741
67742 2006-06-23  Bruno Haible  <bruno@clisp.org>
67743
67744         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67745
67746 2006-06-23  Bruno Haible  <bruno@clisp.org>
67747
67748         * lib/stdint_.h: Treat IRIX like OpenBSD.
67749
67750 2006-06-23  Bruno Haible  <bruno@clisp.org>
67751
67752         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67753         ISO C 99 Technical Corrigendum 1.
67754
67755 2006-06-22  Simon Josefsson  <jas@extundo.com>
67756
67757         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67758         MinGW.
67759
67760 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67761
67762         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67763         needed.  Some compiler complained about some of them.  Problem reported
67764         by Larry Jones in
67765         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67766
67767 2006-06-21  Simon Josefsson  <jas@extundo.com>
67768
67769         * tests/test-getaddrinfo.c: New file.
67770
67771         * modules/getaddrinfo-tests: New file.
67772
67773         * MODULES.html.sh: Add inet_pton.
67774
67775         * modules/inet_pton: New file.
67776
67777 2006-06-21  Simon Josefsson  <jas@extundo.com>
67778
67779         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67780         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67781         of using the (limited) gnulib implementation on Windows XP.
67782
67783         * m4/inet_pton.m4: New file.
67784
67785 2006-06-21  Simon Josefsson  <jas@extundo.com>
67786
67787         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67788         variable.
67789
67790         * lib/socket_.h: Don't define WINVER.
67791
67792         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67793         slightly modified to work in gnulib.
67794
67795 2006-06-21  Simon Josefsson  <jas@extundo.com>
67796
67797         * doc/gnulib.texi (Windows sockets): Add.
67798
67799 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67800
67801         * lib/read-file.c (fread_file): Start with buffer allocation of
67802         0 bytes rather than 1 byte; this simplifies the code.
67803         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67804         code to free buffer and save/restore errno.
67805         (internal_read_file): Remove unused local.
67806
67807 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67808
67809         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67810         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67811         Problem reported by Denis Excoffier in
67812         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67813
67814 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67815
67816         * modules/sys_socket, modules/socklen: Include sys/types since
67817         FreeBSD 4.x's sys/socket.h needs it.
67818
67819 2006-06-19  Simon Josefsson  <jas@extundo.com>
67820
67821         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67822
67823 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67824
67825         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67826
67827 2006-06-19  Bruno Haible  <bruno@clisp.org>
67828
67829         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67830         and FULL_PATH_INTTYPES_H in angle brackets.
67831         Reported by Mark D. Baushke <mdb@gnu.org>.
67832
67833 2006-06-17  Eric Blake  <ebb9@byu.net>
67834
67835         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67836         errno.
67837
67838 2006-06-17  Bruno Haible  <bruno@clisp.org>
67839
67840         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67841         <sys/inttypes.h>.
67842
67843 2006-06-17  Bruno Haible  <bruno@clisp.org>
67844
67845         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67846         whether errno is declared. Assume <errno.h> declares errno.
67847
67848 2006-06-17  Bruno Haible  <bruno@clisp.org>
67849
67850         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67851
67852 2006-06-17  Bruno Haible  <bruno@clisp.org>
67853
67854         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67855         problem on Solaris 2.5.1.
67856
67857 2006-06-16  Eric Blake  <ebb9@byu.net>
67858
67859         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67860         * lib/unicodeio.c [!defined errno]: Likewise.
67861         * lib/strtol.c [!defined errno]: Likewise.
67862         * lib/strtod.c [!defined errno]: Likewise.
67863
67864 2006-06-15  Eric Blake  <ebb9@byu.net>
67865
67866         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67867
67868 2006-06-15  Eric Blake  <ebb9@byu.net>
67869
67870         * config/srclist.txt (ssize_t.m4): Lose sync.
67871
67872 2006-06-15  Bruno Haible  <bruno@clisp.org>
67873
67874         * modules/stdint (Files): Include m4/full-header-path.m4,
67875         m4/size_max.m4, m4/wchar_t.m4.
67876         (Makefile.am): Many more substitutions.
67877         * modules/stdint-tests: New file.
67878         * tests/test-stdint.c: New file.
67879
67880 2006-06-15  Bruno Haible  <bruno@clisp.org>
67881
67882         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67883         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67884         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67885         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67886         gl_CHECK_TYPE_SAME): New macros.
67887
67888 2006-06-15  Bruno Haible  <bruno@clisp.org>
67889
67890         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67891
67892 2006-06-15  Bruno Haible  <bruno@clisp.org>
67893
67894         * lib/stdint_.h: Rewritten to be fully auto-configured.
67895         Fixes bug on HP-UX/IA64.
67896
67897 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67898
67899         * lib/getdate.y (__attribute__): Don't define if already defined.
67900         Problem reported by Larry Jones.
67901         * lib/utimens.c (__attribute__): Likewise.
67902
67903 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67906         reported by Andreas Schwab.
67907
67908 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67909             Bruno Haible  <bruno@clisp.org>
67910
67911         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67912         check for the declaration of strnlen and a run test that exposes the
67913         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67914         rpl_strndup.
67915
67916 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67917             Bruno Haible  <bruno@clisp.org>
67918
67919         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67920
67921 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67922
67923         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67924         compile test, for Tru64 4.0D.
67925
67926 2006-05-28  Karl Berry  <karl@gnu.org>
67927
67928         * config/srclist.txt (printf-args.c): lose sync.
67929
67930 2006-05-26  Martin Lambers  <marlam@marlam.de>
67931
67932         * lib/getpass.c: Updates the test for the native W32 API, and adds
67933         missing includes, thus fixing compilation warnings.
67934
67935 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67936
67937         * lib/exclude.c (exclude_fnmatch): New function.
67938         (excluded_file_name): Call exclude_fnmatch.
67939         * lib/exclude.h (excluded_file_name): New prototype
67940
67941 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67942
67943         * lib/tempname.c (small_open, large_open): New macros.
67944         (__open, __open64) [!_LIBC]: Remove.
67945         (__gen_tempname): Use small_open and large_open instead of __open
67946         and __open64.  This fixes a portability bug on HP-UX 11.11i
67947         reported by Simon Wing-Tang in
67948         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67949
67950 2006-05-24  Bruno Haible  <bruno@clisp.org>
67951
67952         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67953         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67954         Reported by Thorsten Maerz <torte@netztorte.de> via
67955         Aaron Stone <aaron@serendipity.cx>.
67956
67957 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67958
67959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67960         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67961         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67962         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67963         not really conditional on the cache.
67964         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67965
67966 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67967
67968         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67969         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67970         (my_usleep): Don't mishandle maximum value.
67971
67972 2006-05-19  Jim Meyering  <jim@meyering.net>
67973
67974         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67975
67976 2006-05-17  Bruno Haible  <bruno@clisp.org>
67977
67978         Cygwin portability.
67979         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67980
67981 2006-05-17  Bruno Haible  <bruno@clisp.org>
67982
67983         * lib/stdint_.h: Fix recognition of Cygwin.
67984
67985 2006-05-15  Bruno Haible  <bruno@clisp.org>
67986
67987         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67988         on libtool patch by Ralf Wildenhues.
67989
67990 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67991
67992         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67993         test for C99 conformance; (bool) 0.5 is an integer constant
67994         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67995         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67996
67997 2006-05-11  Simon Josefsson  <jas@extundo.com>
67998
67999         * m4/xvasprintf.m4: Fix obvious typo.
68000
68001 2006-05-11  Jim Meyering  <jim@meyering.net>
68002
68003         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68004         James Lemley.
68005
68006 2006-05-10  Simon Josefsson  <jas@extundo.com>
68007
68008         * lib/md4.c: Typo fix, update copyright years.
68009         (K1, K2): Don't use L because it turn computations into 64-bit on
68010         64-bit platforms.
68011
68012 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68013
68014         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68015         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68016         unwanted sign propagation, e.g., on hosts with 64-bit int.
68017         There still are some problems with reeelly weird theoretical hosts
68018         (e.g., 33-bit int) but it's not worth worrying about now.
68019         * lib/sha1.c (rol): Likewise.
68020         (K1, K2, K3, K4): Remove unnecessary L suffix.
68021
68022 2006-05-10  Bruno Haible  <bruno@clisp.org>
68023
68024         * lib/des.c: Cast to avoid warnings.
68025
68026 2006-05-09  Bruno Haible  <bruno@clisp.org>
68027
68028         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68029         (Depends-on): Depend also on xsize, stdarg.
68030         (configure.ac): Add gl_XVASPRINTF.
68031
68032 2006-05-09  Bruno Haible  <bruno@clisp.org>
68033
68034         * m4/xvasprintf.m4: New file.
68035
68036 2006-05-09  Bruno Haible  <bruno@clisp.org>
68037
68038         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68039         (EOVERFLOW): Define fallback value.
68040         (xstrcat): New function.
68041         (xvasprintf): Recognize the special case of a string concatenation.
68042
68043 2006-05-08  Eric Blake  <ebb9@byu.net>
68044
68045         * gnulib-tool (func_version): Base copyright year on CVS date.
68046         (func_emit_copyright_notice): New function.
68047         (func_emit_lib_Makefile_am): Use it.
68048         (func_emit_tests_Makefile_am): Likewise.
68049         (func_import): Likewise.
68050
68051 2006-05-08  Bruno Haible  <bruno@clisp.org>
68052
68053         * modules/stdarg: New file.
68054         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68055
68056 2006-05-08  Bruno Haible  <bruno@clisp.org>
68057
68058         * m4/stdarg.m4: New file, from GNU gettext.
68059
68060 2006-05-08  Bruno Haible  <bruno@clisp.org>
68061
68062         * config/srclist.txt (build-aux/config.rpath): different from latest
68063         release.
68064
68065 2006-05-08  Bruno Haible  <bruno@clisp.org>
68066
68067         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68068
68069 2006-05-05  Jim Meyering  <jim@meyering.net>
68070
68071         * m4/warning.m4: New file, derived from bison's file by the same name.
68072
68073 2006-05-03  Bruno Haible  <bruno@clisp.org>
68074
68075         * lib/stdint_.h: Shorter URL.
68076         * lib/inttypes.h: Likewise.
68077
68078 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68079
68080         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68081
68082 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68083
68084         * lib/verify.h: Document the internals better.  Most of this change
68085         was written by Bruno Haible.
68086
68087 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68088
68089         * doc/verify.texi: New file, partly based on a proposal by
68090         Bruno Haible.
68091
68092 2006-05-02  Bruno Haible  <bruno@clisp.org>
68093
68094         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68095         test from here...
68096         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68097
68098 2006-04-29  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68101         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68102
68103 2006-04-29  Bruno Haible  <bruno@clisp.org>
68104
68105         * gnulib-tool: Make --update option actually work.
68106
68107 2006-04-29  Bruno Haible  <bruno@clisp.org>
68108
68109         * doc/gcd.texi: New file.
68110         * doc/gnulib.texi: Include it.
68111
68112 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68113
68114         * lib/getdate.y (get_date): When adding relative date, start with the
68115         initial time, not with the result of the first mktime call.
68116
68117 2006-04-25  Bruno Haible  <bruno@clisp.org>
68118
68119         * gnulib-tool (func_import): Output the include directives in three
68120         blocks, sorted separately.
68121         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68122
68123 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68124
68125         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68126         to define main with arguments, for C++.  Reported by Eric Blake.
68127         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68128         Prefer 'int main ()' to 'int main (void)', for C++.
68129         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68130         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68131         for 'main', for C99 and C++.
68132
68133 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68136         Don't assume that exit status -1 is valid.
68137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68138         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68139         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68140         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68141         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68142         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68143         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68144         functions can be used without declaring them, or that you can
68145         exit with status -1.
68146         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68147
68148 2006-04-24  Karl Berry  <karl@gnu.org>
68149
68150         * config/srclist.txt (longdouble.m4): sync lost.
68151
68152 2006-04-24  Eric Blake  <ebb9@byu.net>
68153
68154         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68155
68156 2006-04-24  Bruno Haible  <bruno@clisp.org>
68157
68158         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68159         poll() implementation in AIX.
68160         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68161
68162 2006-04-24  Bruno Haible  <bruno@clisp.org>
68163
68164         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68165         assigned exactly once.
68166
68167 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68168             Bruno Haible  <bruno@clisp.org>
68169
68170         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68171         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68172         for AM_CPPFLAGS.
68173
68174 2006-04-23  Bruno Haible  <bruno@clisp.org>
68175
68176         * modules/copy-file: Depend on unistd.
68177         * modules/execute: Likewise.
68178         * modules/fatal-signal: Likewise.
68179         * modules/findprog: Likewise.
68180         * modules/mkdtemp : Likewise.
68181         * modules/pipe: Likewise.
68182         * modules/wait-process: Likewise.
68183
68184 2006-04-23  Bruno Haible  <bruno@clisp.org>
68185
68186         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68187         condition was already detected.
68188         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68189
68190 2006-04-23  Bruno Haible  <bruno@clisp.org>
68191
68192         * lib/copy-file.c: Include <unistd.h> unconditionally.
68193         * lib/execute.c: Likewise.
68194         * lib/fatal-signal.c: Likewise.
68195         * lib/findprog.c: Likewise.
68196         * lib/mkdtemp.c: Likewise.
68197         * lib/pipe.h: Likewise.
68198         * lib/pipe.c: Likewise.
68199         * lib/wait-process.h: Likewise.
68200
68201 2006-04-23  Bruno Haible  <bruno@clisp.org>
68202
68203         * gnulib-tool (func_usage): Fix --import description. Document
68204         --update.
68205         (func_import): Create temporary file in a temporary directory, if
68206         --dry-run is specified. Silence errors from 'grep' when there are no
68207         m4 files in $m4dir.
68208         (func_create_testdir): Silence errors from 'grep' when there are no
68209         m4 files in $m4dir.
68210         Reported by Karl Berry <karl@freefriends.org>.
68211
68212 2006-04-20  Bruno Haible  <bruno@clisp.org>
68213
68214         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68215         one argument, so that the code will be portable to Autoconf 2.60.
68216         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68217         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68218         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68219
68220 2006-04-19  Derek Price  <derek@ximbiot.com>
68221             Eric Blake  <ebb9@byu.net>
68222
68223         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68224         rather than "/full/path.h".  Update comment to match.  Shorten &
68225         generalize m4_translit call via AS_TR_CPP.
68226
68227 2006-04-19  Derek Price  <derek@ximbiot.com>
68228             Eric Blake  <ebb9@byu.net>
68229
68230         * lib/inttypes.h: Correct grammar in comment.
68231
68232 2006-04-18  Derek Price  <derek@ximbiot.com>
68233             Paul Eggert  <eggert@cs.ucla.edu>
68234
68235         * modules/inttypes: New file.
68236         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68237
68238 2006-04-18  Derek Price  <derek@ximbiot.com>
68239             Paul Eggert  <eggert@cs.ucla.edu>
68240
68241         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68242         New files.
68243
68244 2006-04-18  Derek Price  <derek@ximbiot.com>
68245             Paul Eggert  <eggert@cs.ucla.edu>
68246
68247         * lib/inttypes.h: New file.
68248         * lib/strtoimax.c: Assume <inttypes.h>.
68249
68250 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68251
68252         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68253         isn't mounted.  Problem reported by Kir Kolyshkin.
68254
68255 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68256
68257         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68258         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68259         Derek R. Price.
68260         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68261         implementation.
68262
68263 2006-04-12  Eric Blake  <ebb9@byu.net>
68264
68265         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68266         is now done automatically by the corresponding Autoconf macro.
68267
68268 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68269
68270         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68271         time_r.h.
68272
68273 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68274
68275         Merge regex changes from libc, removing some of our
68276         POSIX-conformance changes that were rejected and redoing them in a
68277         less-intrusive way.
68278
68279         * lib/regcomp.c (re_compile_internal, init_dfa):
68280         Length arg is now size_t, not Idx.  All uses changed.
68281         (peek_token): Forward decl now says internal_function.
68282         (__re_error_msgid, __re_error_msgid_idx):
68283         Now static rather than extern with attribute_hidden.
68284         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68285         For some reason libc prefers K&R style defns for external functions.
68286         (regerror) [!defined _LIBC]: Likewise.
68287         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68288         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68289         (build_range_exp, build_collating_symbol):
68290         Use K&R-style defn.
68291         (re_compile_fastmap): Use '\0' to memset, not 0.
68292         (utf8_sb_map): Make the calculations more obvious.
68293         (init_dfa, parse_bracket_exp, build_charclass_op):
68294         Call calloc and cast result, as glibc does.
68295         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68296         (build_range_exp, build_collating_symbol):
68297         Now internal functions.
68298
68299         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68300
68301         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68302         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68303         Don't depend on VMS; depend on __VMS instead, for POSIX
68304         namespace cleanness.
68305         (regoff_t): Define to ssize_t, not long int.
68306
68307         Remove the REG_ macros named below.  Instead, make the old names
68308         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68309         __USE_GNU_REGEX.
68310         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68311         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68312         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68313         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68314         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68315         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68316         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68317         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68318         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68319         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68320         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68321         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68322         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68323         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68324         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68325         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68326         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68327         (REG_NREGS):
68328         Remove.  All uses replaced by the old RE_* names.
68329         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68330         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68331         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68332         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68333         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68334         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68335         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68336         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68337         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68338         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68339         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68340         Don't bother having these macros be independent of each others'
68341         values, since they no longer exist in the POSIX name space.
68342
68343         Rename the following member names back to their old names,
68344         unless !__USE_GNU_REGEX.  All uses changed back.
68345         (buffer): Renamed from re_buffer.
68346         (allocated): Renamed from re_allocated.
68347         (used): Renamed from re_used.
68348         (syntax): Renamed from re_syntax.
68349         (fastmap): Renamed from re_fastmap.
68350         (translate): Renamed from re_translate.
68351         (can_be_null): Renamed from re_can_be_null.
68352         (regs_allocated): Renamed from re_regs_allocated.
68353         (fastmap_accurate): Renamed from re_fastmap_accurate.
68354         (no_sub): Renamed from re_no_sub.
68355         (not_bol): Renamed from re_not_bol.
68356         (not_eol): Renamed from re_not_eol.
68357         (newline_anchor): Renamed from re_newline_anchor.
68358         (num_regs): Renamed from rm_num_regs.
68359         (start): Renamed from rm_start.
68360         (end): Renamed from rm_end.
68361
68362         (free_state): Move up a bit.
68363
68364         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68365         #define to be empty.
68366         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68367         when that is what is intended.
68368         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68369         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68370         (MAX): New macro.
68371         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68372         All uses changed back to re_malloc, etc.  It's now the caller's
68373         responsibility to check for overflow; all callers changed.
68374         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68375         (re_x2nrealloc): Remove.
68376         (free_state): Remove decl.
68377
68378         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68379         (re_set_registers, re_exec):
68380         Use K&R-style defn.
68381
68382         2006-01-31  Roland McGrath  <roland@redhat.com>
68383
68384         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68385         Reported by Mike Frysinger <vapier@gentoo.org>.
68386
68387         2006-01-15  Andreas Jaeger  <aj@suse.de>
68388
68389         [BZ #1950]
68390         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68391         build_wcs_upper_buffer change.
68392         (build_wcs_upper_buffer): Change return type.
68393
68394         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68395
68396         * lib/regex_internal.h: Include <stdint.h> if available.
68397
68398         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68399
68400         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68401
68402         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68403
68404         * lib/regcomp.c: Adjust for changed secondary hash function.
68405
68406         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68407
68408         * lib/regex.h: Pretty printing.
68409         Clean up namespace a bit.
68410
68411         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68412
68413         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68414         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68415
68416         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68417                     Ulrich Drepper  <drepper@redhat.com>
68418
68419         [BZ #1302]
68420         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68421         changed.
68422         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68423
68424         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68425
68426         [BZ #281]
68427         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68428         * lib/regcomp.c: Remove unnecessary uses of
68429         unsigned RE_TRANSLATE_TYPE.
68430         * lib/regex_internal.h: Likewise.
68431         * lib/regex_internal.c: Likewise.
68432         * lib/regexec.c: Likewise.
68433         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68434
68435         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68436
68437         * lib/regexec.c (find_recover_state): Remove unnecessary
68438         initialization.
68439         (transit_state_bkref): Make DFA a const pointer.
68440         (get_subexp): Likewise.
68441         (check_arrival): Likewise.
68442         (update_cur_sifted_state): Likewise.
68443         (re_search_internal): Likewise.
68444         (prune_impossible_nodes): Likewise.
68445         (acquire_init_state_context): Likewise.
68446         (proceed_next_node): Likewise.
68447         (set_regs): Likewise.
68448         (free_fail_stack_return): Likewise.
68449         (check_arrival_expand_ecl): Mark DFA parameter as const.
68450         (check_arrival_expand_ecl_sub): Likewise.
68451         (check_subexp_limits): Likewise.
68452         (sub_epsilon_src_nodes):  Likewise.
68453         (add_epsilon_src_nodes):  Likewise.
68454         (merge_state_array): Likewise.
68455         (update_regs): Likewise.
68456         (build_trtable): Likewise.
68457         (sift_states_backward): Mark MCTX parameter as const.
68458         (build_sifted_states): Likewise.
68459         (update_cur_sifted_state): Likewise.
68460         (sift_states_mkref): Likewise.
68461         (check_arrival_expand_ecl): Mark eclosure as const.
68462         (check_dst_limits_calc_pos_1): Likewise.
68463         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68464         pointer.
68465
68466         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68467
68468         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68469         (transit_state_sb): Likewise.
68470         (transit_state_mb): Likewise.
68471         (sift_states_iter_mb): Likewise.
68472         (check_arrival_add_next_nodes): Likewise.
68473         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68474         [_LIBC] (re_search_2_stub): Use mempcpy.
68475
68476         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68477         mbrtowc for very simple UTF-8 case.
68478
68479         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68480         a pointer-to-const.
68481         (re_acquire_state_context): Likewise.
68482         * lib/regex_internal.h: Adjust prototypes.
68483
68484         * lib/regex.c: Prevent using C++ compilers.
68485
68486         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68487         (re_acquire_state_context): Likewise.
68488
68489 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         * modules/regex (Depends-on): Add ssize_t.
68492
68493 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68494
68495         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68496         translation table.
68497
68498 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68501
68502 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68503             Bruno Haible  <bruno@clisp.org>
68504
68505         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68506         <sys/types.h> and <inttypes.h>.
68507
68508 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68509
68510         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68511         `__error_t_defined', so argp.h will not typedef the former.
68512
68513 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68514
68515         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68516         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68517         glibc names.  Even if glibc is changed to conform to POSIX, the
68518         traditional names will be available anyway, since regex depends on
68519         the extensions module.  Also, fix a longstanding typo in the
68520         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68521         reported by Emanuele Giaquinta.  Also, change sense of cached
68522         variable, so that the message makes sense.
68523
68524 2006-03-24  Simon Josefsson  <jas@extundo.com>
68525
68526         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68527         including some doc fixes.
68528         (base64_encode_alloc): Fix +1 bug on allocation failures.
68529
68530 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68531
68532         * lib/base64.c (base64_encode): Do not read past end of array with
68533         unsanitized input on systems with CHAR_BIT > 8.
68534
68535 2006-03-24  Eric Blake  <ebb9@byu.net>
68536
68537         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68538
68539 2006-03-22  Karl Berry  <karl@gnu.org>
68540
68541         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68542         * config/srclistvars.sh (COREUTILS): new var.
68543
68544 2006-03-17  Jim Meyering  <jim@meyering.net>
68545
68546         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68547         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68548
68549 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68550
68551         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68552         no longer needs it.  Instead, check that regoff_t is as least
68553         as wide as ptrdiff_t.
68554
68555         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68556         so that our regex.h stays compatible with the installed regex.
68557         This is helpful for installers who configure --without-included-regex.
68558         Problem reported by Emanuele Giaquinta.
68559
68560 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68561
68562         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68563         Typedef to long int, not to off_, as POSIX will likely change
68564         in that direction.
68565
68566 2006-03-15  Eric Blake  <ebb9@byu.net>
68567
68568         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68569
68570 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68571
68572         * lib/argp-help.c (validate_uparams): Fix typo
68573         * lib/argp-parse.c (argp_default_options): Consistently begin help
68574         messages with a lowercase letter.
68575
68576 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68579         overrun buffers and shouldn't be used (much as gets shouldn't be
68580         used).
68581         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68582
68583 2006-03-08  Simon Josefsson  <jas@extundo.com>
68584
68585         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68586         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68587
68588 2006-03-08  Simon Josefsson  <jas@extundo.com>
68589
68590         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68591         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68592
68593 2006-03-08  Simon Josefsson  <jas@extundo.com>
68594
68595         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68596         signal that configure disabled the device.
68597
68598 2006-03-08  Simon Josefsson  <jas@extundo.com>
68599
68600         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68601         languages.
68602
68603 2006-03-07  Simon Josefsson  <jas@extundo.com>
68604
68605         * modules/getopt (Depends-on): Add unistd.
68606
68607         * modules/unistd: New file.
68608
68609 2006-03-07  Simon Josefsson  <jas@extundo.com>
68610
68611         * modules/gc-random: New file.
68612
68613 2006-03-07  Simon Josefsson  <jas@extundo.com>
68614
68615         * m4/unistd_h.m4: New file.
68616
68617 2006-03-07  Simon Josefsson  <jas@extundo.com>
68618
68619         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68620         test to be side-effect free by storing the result in the cache
68621         variable gl_cv_lib_readline, and moving the assignment of
68622         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68623         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68624
68625 2006-03-07  Simon Josefsson  <jas@extundo.com>
68626
68627         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68628         error on missing devices (the functions will return an error).
68629
68630         * m4/gc.m4: Move random stuff to gc-random.m4
68631
68632 2006-03-07  Simon Josefsson  <jas@extundo.com>
68633
68634         * lib/unistd_.h: New file.
68635
68636 2006-03-07  Simon Josefsson  <jas@extundo.com>
68637
68638         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68639
68640 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68641
68642         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68643         Problem reported by Juan Manuel Guerrero.
68644
68645 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68648         the unistd module.
68649         * lib/getlogin_r.c: Likewise.
68650         * lib/getlogin_r.h: Likewise.
68651         * lib/glob.c: Likewise.
68652         * lib/pagealign_alloc.c: Likewise.
68653         * lib/unistd_.h: Remove; no longer needed.
68654
68655 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68656
68657         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68658         Add unistd.
68659         * modules/c-stack (Depends-on): Add unistd.
68660         * modules/getlogin_r: Likewise.
68661         * modules/glob: Likewise.
68662         * modules/pagealign_alloc: Likewise.
68663         * modules/unistd (Files): Remove lib/unistd_.h.
68664         (EXTRA_DIST): Remove.
68665         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68666         need unistd_.h.
68667         (MOSTLYCLEANFILES): Remove unistd.h-t.
68668
68669 2006-03-03  Simon Josefsson  <jas@extundo.com>
68670
68671         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68672
68673 2006-03-03  Simon Josefsson  <jas@extundo.com>
68674
68675         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68676         libidn and bison.
68677
68678 2006-03-03  Simon Josefsson  <jas@extundo.com>
68679
68680         * build-aux/maint.mk: Add indent target.
68681
68682 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68683
68684         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68685         our replacement poll.h in any case, to avoid a differing
68686         declaration from a system header.  Seen on AIX.
68687
68688 2006-03-01  Simon Josefsson  <jas@extundo.com>
68689
68690         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68691         <kasal@ucw.cz>.
68692
68693 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68694
68695         * modules/gettime (Depends-on): Add extensions module.
68696         * modules/nanosleep (Depends-on): Likewise.
68697         * modules/settime (Depends-on): Likewise.
68698
68699 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68700
68701         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68702         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68703         pedantically.
68704         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68705         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68706
68707         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68708         not "==".  Reported by Ralf Wildenhues.
68709
68710 2006-03-01  Karl Berry  <karl@gnu.org>
68711
68712         * doc/Copyright/request-*: new files, synced from gnuorg.
68713
68714 2006-03-01  Karl Berry  <karl@gnu.org>
68715
68716         * config/srclist.txt (Copyright/*): new entries.
68717
68718 2006-02-28  Simon Josefsson  <jas@extundo.com>
68719
68720         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68721
68722 2006-02-27  Simon Josefsson  <jas@extundo.com>
68723
68724         * lib/base64.h: Indent #define's.  From Jim Meyering
68725         <jim@meyering.net>.
68726
68727 2006-02-27  Jim Meyering  <jim@meyering.net>
68728
68729         Revert the change of 2006-02-24, so these files can continue
68730         to be sync'd from gettext.
68731         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68732         of `config.h'.
68733
68734 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         * modules/intprops: New file.
68737         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68738         Add intprops.
68739         * modules/getloadavg (Files): Remove lib/intprops.h.
68740         (Depends-on): Add intprops.
68741         * modules/human: Likewise.
68742         * modules/inttostr: Likewise.
68743         * modules/openat: Likewise.
68744         * modules/sig2str: Likewise.
68745         * modules/userspec: Likewise.
68746         * modules/utimecmp: Likewise.
68747         * modules/xnanosleep: Likewise.
68748         * modules/xstrtol: Likewise.
68749
68750 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68751
68752         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68753         * modules/lock-tests (TESTS): Use $(EXEEXT).
68754         * modules/tls-tests: Likewise.
68755         * modules/argp-tests: Likewise.
68756         (check_PROGRAMS): New var, replacing...
68757         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68758
68759 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68760
68761         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68762         `config.h'.
68763
68764 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68765
68766         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68767
68768 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68769
68770         Sync from coreutils.
68771         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68772         gl_CHDIR_SAFER.
68773
68774 2006-02-22  Jim Meyering  <jim@meyering.net>
68775
68776         Sync from coreutils.
68777         * m4/chdir-safer.m4: New file.
68778
68779 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68780
68781         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68782         AT_FDCWD exceeds INT_MAX.
68783         * lib/openat.h (AT_FDCWD): Likewise.
68784
68785 2006-02-17  Eric Blake  <address@hidden>
68786
68787         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68788
68789 2006-02-16  Simon Josefsson  <jas@extundo.com>
68790
68791         * modules/getaddrinfo (Depends-on): Add sys_socket.
68792
68793 2006-02-15  Simon Josefsson  <jas@extundo.com>
68794
68795         * build-aux/maint.mk: Add dsyntax-check rule.
68796
68797 2006-02-15  Eric Blake  <ebb9@byu.net>
68798
68799         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68800         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68801         'present but cannot compile' warnings on cygwin.
68802         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68803         use ws2tcpip.h if sys/socket.h works.
68804         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68805         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68806
68807 2006-02-14  Simon Josefsson  <jas@extundo.com>
68808
68809         * modules/maintainer-makefile (Files): Rename.
68810
68811         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68812         and (the local) Makefile.cfg to maint-cfg.mk.
68813
68814         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68815         to the latter.
68816
68817         * modules/maintainer-makefile: New module.
68818
68819         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68820         severaly stripped to make it possible to build it up from scratch
68821         with reliable tests.
68822
68823         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68824         fixes to permit overriding the default actions when configure and
68825         makefile are not available.
68826
68827 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68828
68829         Sync from coreutils.
68830         * modules/lstat (Depends-on): Don't depend on xalloc.
68831         (License): Change from GPL to LGPL, since this is now simply a
68832         replacement for a libc function.
68833
68834 2006-02-14  Jim Meyering  <jim@meyering.net>
68835
68836         Sync from coreutils.
68837
68838         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68839         failure on deficient systems, and simplify gnulib lgpl dependencies.
68840         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68841         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68842
68843         * lib/xalloc-die.c: Remove unused definition of N_.
68844
68845 2006-02-14  Jim Meyering  <jim@meyering.net>
68846
68847         Sync from coreutils.
68848         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68849         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68850         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68851         double-quote uses of that variable, to accommodate the rare case in
68852         which getmntent is available in none of the libraries checked.  This
68853         happens at least on FreeBSD 5.0.
68854
68855 2006-02-13  Simon Josefsson  <jas@extundo.com>
68856
68857         * gnulib-tool (Usage): Fix --import, from
68858         karl@freefriends.org (Karl Berry).
68859
68860 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68861
68862         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68863
68864 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68865
68866         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68867         "autoupdate" on 2005-12-12.
68868
68869 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68870
68871         * modules/closeout (Depends-on): Remove atexit.
68872
68873 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68876         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68877
68878 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68879
68880         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68881         __EXTENSIONS__ if this causes compilation to fail.  Problem
68882         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68883         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68884
68885 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68886
68887         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68888         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68889         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68890         All uses changed.
68891
68892 2006-01-26  Simon Josefsson  <jas@extundo.com>
68893
68894         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68895         prototype is visible on mingw32.
68896
68897         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68898         for mingw32.
68899
68900         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68901         mingw32).
68902
68903 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68904
68905         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68906         attempt to open for write; this always fails, at least on POSIX
68907         hosts.  This reinstates the 2006-01-09 change, which was
68908         inadvertently removed.
68909
68910 2006-01-26  Bruno Haible  <bruno@clisp.org>
68911
68912         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68913         Reported by Paul Eggert.
68914
68915 2006-01-26  Bruno Haible  <bruno@clisp.org>
68916             Paul Eggert  <eggert@cs.ucla.edu>
68917
68918         * lib/stdbool_.h (_Bool)
68919         [(! (defined __cplusplus || defined __BEOS__)
68920           && !defined __GNUC__
68921           && !(defined __HP_cc || defined __xlc__
68922                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68923                || defined __sgi))]:
68924         #define to signed char in these cases too; this simplifies
68925         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68926         etc., separately) and makes it more conservative.
68927
68928 2006-01-25  Simon Josefsson  <jas@extundo.com>
68929
68930         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68931         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68932         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68933
68934 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68935
68936         * lib/argp-namefrob.h: Bugfix. Remove stray #
68937
68938 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68939
68940         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68941         so that we test the test.
68942         Check for yet another HP-UX cc bug involving *bool |= bool.
68943
68944 2006-01-25  Karl Berry  <karl@gnu.org>
68945
68946         * config/srclist.txt (vasnprintf.c): sync lost.
68947
68948 2006-01-25  Jim Meyering  <jim@meyering.net>
68949
68950         Sync from the stable (b5) branch of coreutils:
68951
68952         * lib/fts.c (fts_children): Don't let close() clobber errno from
68953         failed fchdir().
68954
68955         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68956         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68957         a dangling symlink.  That can also happen at least for ELOOP.
68958         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68959         FYI, this bug predates the inclusion of fts.c in coreutils.
68960
68961         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68962         in their own block, so pre-c99 compilers don't object.
68963
68964         Avoid the double-free (first in fts_read, second in fts_close) that
68965         would occur when an `active' directory is made inaccessible (e.g.,
68966         via chmod a-x) during a traversal.
68967         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68968         before returning.  Reproduce this failure by
68969         mkdir -p a/b; cd a; chmod a-x . b
68970         Reported by Stavros Passas.
68971
68972 2006-01-25  Jim Meyering  <jim@meyering.net>
68973
68974         * lib/fileblocks.c: Remove more useless parentheses.
68975         * lib/readutmp.h: Likewise.
68976
68977 2006-01-25  Bruno Haible  <bruno@clisp.org>
68978
68979         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68980         warnings.
68981         Reported by Paul Eggert.
68982
68983 2006-01-25  Bruno Haible  <bruno@clisp.org>
68984
68985         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68986         rid of a trap command. For Solaris sh.
68987         Reported by Mark D. Baushke <mdb@gnu.org>.
68988
68989 2006-01-24  Simon Josefsson  <jas@extundo.com>
68990
68991         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68992         Bruno.
68993
68994 2006-01-24  Karl Berry  <karl@gnu.org>
68995
68996         * config/srclist.txt (argp-namefrob.h): sync lost.
68997
68998 2006-01-24  Jim Meyering  <jim@meyering.net>
68999
69000         * modules/openat (Files): Add lib/intprops.h.
69001         From Mark D. Baushke.
69002
69003 2006-01-24  Jim Meyering  <jim@meyering.net>
69004
69005         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69006         Reported by Mark D. Baushke.
69007
69008 2006-01-24  Jim Meyering  <jim@meyering.net>
69009
69010         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69011
69012 2006-01-24  Bruno Haible  <bruno@clisp.org>
69013
69014         * modules/strnlen (Maintainer): Change from glibc to all.
69015
69016 2006-01-24  Bruno Haible  <bruno@clisp.org>
69017
69018         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69019         Patch by Paul Eggert.
69020
69021 2006-01-24  Bruno Haible  <bruno@clisp.org>
69022
69023         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69024         already has it.
69025         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69026         2005-11-26.
69027
69028         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69029         'signed char' to avoid problems with the built-in _Bool type.
69030         Reported by Paul Eggert on 2005-11-26.
69031
69032 2006-01-24  Bruno Haible  <bruno@clisp.org>
69033
69034         * gnulib-tool (func_import): Avoid constructing complicated sed
69035         expressions inside backquote.
69036         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69037
69038 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69039
69040         These changes imported from libc.
69041         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69042         test and two separate function calls.
69043         * lib/strndup.c (__strndup): Add libc_hidden_def.
69044
69045 2006-01-23  Simon Josefsson  <jas@extundo.com>
69046
69047         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69048         Remove the test_*_SOURCES variable: automake infers it by default.
69049         * modules/tls-tests: Likewise.
69050
69051 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69052
69053         Work around porting bugs reported by Dieter in
69054         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69055         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69056         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69057         Include "getopt.h" first, to check interface.
69058         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69059         !HAVE_DECL_GETENV.
69060         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69061         (__strndup): Revert to K&R-style function dfns, the glibc style.
69062         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69063         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69064         Include strnlen.h first, to get prototype properly.
69065         (strnlen): Renamed from __strnlen.
69066         Remove weak alias.
69067
69068 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69071
69072 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69073
69074         * config/srclist.txt: Adjust to reflect glibc reorganization.
69075         This affects only comments.
69076
69077 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69078
69079          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69080          Reported by Bruce Korb <bkorb@gnu.org>.
69081
69082 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69083
69084         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69085         to pacify gcc -Wswitch-default.
69086
69087 2006-01-22  Bruno Haible  <bruno@clisp.org>
69088
69089         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69090         temporary buffer for sprintf, take into account the precision also
69091         for 'd', 'i', 'u', 'o', 'x', 'X'.
69092
69093 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69094
69095         * modules/argp-tests: New module
69096         * tests/test-argp.c: New file
69097         * tests/test-argp-2.sh: New file
69098
69099 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69100
69101         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69102         (__argp_base_name): Removed
69103         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69104         typo.
69105         (__argp_base_name): Provide macro definition or extern declaration
69106         depending on the configuration
69107
69108 2006-01-20  Simon Josefsson  <jas@extundo.com>
69109
69110         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69111
69112 2006-01-20  Simon Josefsson  <jas@extundo.com>
69113
69114         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69115
69116 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69117
69118         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69119         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69120         Suggested by Bruno Haible.
69121
69122 2006-01-20  Karl Berry  <karl@gnu.org>
69123
69124         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69125         until changes propagate, I guess.
69126
69127 2006-01-19  Simon Josefsson  <jas@extundo.com>
69128
69129         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69130
69131 2006-01-19  Simon Josefsson  <jas@extundo.com>
69132
69133         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69134
69135 2006-01-19  Simon Josefsson  <jas@extundo.com>
69136
69137         * gnulib-tool: Set check_PROGRAMS.
69138
69139         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69140         modules/des-tests, modules/gc-arcfour-tests,
69141         modules/gc-arctwo-tests, modules/gc-des-tests,
69142         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69143         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69144         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69145         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69146         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69147         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69148         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69149         test_*_SOURCES.
69150
69151 2006-01-18  Simon Josefsson  <jas@extundo.com>
69152
69153         * modules/socklen (Depends-on): Depend on sys_socket.
69154
69155 2006-01-18  Simon Josefsson  <jas@extundo.com>
69156
69157         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69158         modules/des-tests, modules/gc-arcfour-tests,
69159         modules/gc-arctwo-tests, modules/gc-des-tests,
69160         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69161         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69162         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69163         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69164         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69165         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69166         $(EXEEXT) to automake TESTS variable, for mingw32.
69167
69168 2006-01-17  Simon Josefsson  <jas@extundo.com>
69169
69170         * modules/socklen (Include): Need sys/socket.h.
69171
69172 2006-01-17  Bruno Haible  <bruno@clisp.org>
69173
69174         * modules/ssize_t (Include): Add <sys/types.h>.
69175
69176 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69177
69178         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69179         it's not portable and it doesn't work with cross-compiles.
69180         Problem reported by Bruno Haible.  Fix missing-$ typo in
69181         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69182         -zignore from being used with Sun's C compiler.
69183
69184 2006-01-12  Simon Josefsson  <jas@extundo.com>
69185
69186         * lib/base64.c: Fix warning, reported by Bruno Haible
69187         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69188
69189 2006-01-12  Bruno Haible  <bruno@clisp.org>
69190
69191         * modules/ldd: New file.
69192         * build-aux/ldd.sh.in: New file.
69193         * MODULES.html.sh (Support for building libraries and executables): Add
69194         ldd.
69195
69196 2006-01-12  Bruno Haible  <bruno@clisp.org>
69197
69198         * m4/ldd.m4: New file.
69199
69200 2006-01-12  Bruno Haible  <bruno@clisp.org>
69201
69202         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69203         endless loop while replacing $auxdir with build-aux.
69204
69205 2006-01-11  Simon Josefsson  <jas@extundo.com>
69206
69207         * lib/stdint_.h (SIZE_MAX): Add missing (.
69208
69209 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69210
69211         Sync from coreutils.
69212         * lib/md5.c: Fix commentary typos.
69213         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69214         * lib/md5.h (__attribute__): Remove; unused.
69215         * lib/sha1.c: Fix commentary to match md5 better.
69216         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69217         so that we don't need to worry about alignment.  All uses changed.
69218         This merges the 2005-10-28 md5 change into sha1.
69219
69220 2006-01-11  Jim Meyering  <jim@meyering.net>
69221
69222         Sync from coreutils.
69223         * lib/md5.c (OP): Fix spacing.
69224
69225 2006-01-11  Bruno Haible  <bruno@clisp.org>
69226
69227         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69228         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69229         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69230
69231 2006-01-11  Bruno Haible  <bruno@clisp.org>
69232
69233         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69234         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69235         the "early" section as well.
69236
69237 2006-01-11  Bruno Haible  <bruno@clisp.org>
69238
69239         Avoid "ar: no archive members specified" error on MacOS X.
69240         * gnulib-tool (func_modules_add_dummy): New function.
69241         (func_import, func_create_testdir): Invoke it.
69242
69243 2006-01-11  Bruno Haible  <bruno@clisp.org>
69244
69245         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69246         with $auxdir in AC_CONFIG_FILES statements.
69247
69248 2006-01-11  Bruno Haible  <bruno@clisp.org>
69249
69250         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69251         Initialize also noinst_HEADERS to empty.
69252
69253 2006-01-11  Bruno Haible  <bruno@clisp.org>
69254
69255         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69256         variables.
69257         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69258         autoreconf.
69259
69260 2006-01-11  Bruno Haible  <bruno@clisp.org>
69261
69262         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69263         overridable by the user.
69264         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69265
69266 2006-01-10  Simon Josefsson  <jas@extundo.com>
69267
69268         * modules/sys_socket: New file.
69269
69270 2006-01-10  Simon Josefsson  <jas@extundo.com>
69271
69272         * m4/sys_socket_h.m4: New file.
69273
69274 2006-01-10  Simon Josefsson  <jas@extundo.com>
69275
69276         * lib/socket_.h: New file.
69277
69278 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69279
69280         * modules/readutmp (Maintainer): Add myself.
69281
69282 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69285         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69286         People who are still concerned with buggy memcmp implementations
69287         can invoke gl_FUNC_MEMCMP themselves.
69288
69289 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69290
69291         * lib/regex_internal.h (BITSET_WORD_BITS):
69292         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69293         preprocessor mishandles large unsigned values as if they were signed.
69294         Problem reported by Claudio Fontana in
69295         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69296
69297 2006-01-10  Jim Meyering  <jim@meyering.net>
69298
69299         Avoid the double-free (first in fts_read, second in fts_close) that
69300         would occur when an `active' directory is made inaccessible (e.g.,
69301         via chmod a-x) during a traversal.
69302         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69303         before returning.  Reproduce this failure by
69304         mkdir -p a/b; cd a; chmod a-x . b
69305         Reported by Stavros Passas.
69306
69307         Sync from coreutils.
69308         * lib/sha1.c: Tweak grammar in a comment.
69309
69310 2006-01-10  Jim Meyering  <jim@meyering.net>
69311
69312         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69313         Patch by Joerg Sonnenberger.
69314
69315 2006-01-10  Bruno Haible  <bruno@clisp.org>
69316
69317         * modules/readutmp: Depend on module free.
69318         * modules/strtok_r: Depend on module restrict.
69319
69320 2006-01-10  Bruno Haible  <bruno@clisp.org>
69321
69322         * modules/gettext (configure.ac): Add an invocation of
69323         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69324
69325 2006-01-10  Bruno Haible  <bruno@clisp.org>
69326
69327         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69328         Reported by Werner Lemberg <wl@gnu.org>.
69329
69330 2006-01-10  Bruno Haible  <bruno@clisp.org>
69331
69332         * lib/localcharset.c: Update from GNU gettext.
69333
69334 2006-01-10  Bruno Haible  <bruno@clisp.org>
69335
69336         * lib/argp.h (__const): Remove macro. Use const instead.
69337         * lib/argp-fmtstream.h (__const): Likewise.
69338         * lib/glob_.h (__const): Remove macro.
69339         * lib/glob-libc.h: Use const instead of __const.
69340
69341 2006-01-10  Bruno Haible  <bruno@clisp.org>
69342
69343         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69344         variable.
69345         Needed to avoid an automake error regarding the 'gettext' module.
69346
69347 2006-01-09  Simon Josefsson  <jas@extundo.com>
69348
69349         * modules/inet_ntop (Depends-on): Add restrict.
69350
69351 2006-01-09  Simon Josefsson  <jas@extundo.com>
69352
69353         * modules/gc-rijndael-tests (License): Put under LGPL.
69354
69355         * modules/gc-des-tests (License): Likewise.
69356
69357         * modules/gc-arcfour-tests (License): Likewise.
69358
69359         * modules/gc-arctwo-tests (License): Likewise.
69360
69361         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69362
69363         * modules/gc-hmac-sha1-tests (Files): Likewise.
69364
69365         * modules/gc-hmac-md5-tests (License): Likewise.
69366
69367         * modules/gc-sha1-tests (License): Likewise.
69368
69369         * modules/gc-md5-tests (License): Likewise.
69370
69371         * modules/gc-md4-tests (License): Likewise.
69372
69373         * modules/gc-md2-tests (License): Likewise.
69374
69375         * modules/gc-tests (License): Likewise.
69376
69377         * modules/des-tests (License): Likewise.
69378
69379         * modules/md4-tests (License): Likewise.
69380
69381         * modules/md2-tests (License): Likewise.
69382
69383 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69384
69385         Sync from coreutils:
69386
69387         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69388         * modules/lib-ignore: New file.
69389         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69390         chdir-safer.m4, lchmod.m4.
69391         * modules/openat: Add mkdirat.c, openat-priv.h.
69392
69393 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69394
69395         Sync from coreutils.
69396         * m4/lib-ignore.m4: New file.
69397         * m4/lchmod.m4: New file.
69398
69399 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69400
69401         Sync from coreutils.
69402         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69403         for write access: POSIX says that must fail.
69404         * lib/fts.c (diropen): Likewise.
69405         * lib/save-cwd.c (save_cwd): Likewise.
69406         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69407         well, for minor improvements on hosts that lack O_DIRECTORY.
69408         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69409         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69410         Fall back on chown if open failed with EACCES.
69411
69412         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69413         Report an error at compile-time if only a 1-second nominal clock
69414         resolution is found.
69415
69416         * lib/lchmod.h: New file.
69417         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69418         (make_dir_parents): Use lchown rather than chown, and
69419         lchmod rather than chmod.
69420
69421         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69422         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69423         "proc" reported by n0dalus.
69424
69425         * lib/mountlist.c: Include <limits.h>.
69426         (dev_from_mount_options)
69427         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69428         New function.  It no longer assumes "dev=" has the System V meaning
69429         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69430         (read_file_system_list)
69431         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69432         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69433         dev= in that case.
69434
69435         * lib/posixtm.h (PDS_PRE_2000): New macro.
69436         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69437         allow_century.  All usages changed.  Reject dates outside the range
69438         1969-1999 if PDS_PRE_2000 is used.
69439
69440 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         Sync from coreutils.
69443         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69444         (Time of day items): Mention the possibility of leap seconds.
69445         Problem reported by Dr. David Alan Gilbert.
69446
69447 2006-01-09  Jim Meyering  <jim@meyering.net>
69448
69449         Sync from coreutils.
69450
69451         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69452
69453         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69454
69455         * lib/modechange.c (mode_compile): Reject an invalid mode string
69456         that starts with an octal digit.  From Andreas Gruenbacher.
69457
69458         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69459         and dup to open_safer and dup_safer, respectively.
69460         (openat_permissive): Fix typo in comment.
69461
69462         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69463         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69464         (_): Remove; no longer needed.
69465         (openat): Renamed from rpl_openat; no need for rpl_openat
69466         since openat.h renames openat for us.
69467         Replace most of the body with a call to openat_permissive,
69468         to avoid duplicate code.
69469         Port to (probably hypothetical) environments were mode_t is
69470         wider than int.
69471         (openat_permissive): Require mode arg, so that we can check
69472         types better.  Put it just after flags.  Change cwd failure
69473         indicator from pointer-to-bool to pointer-to-errno-value.
69474         All callers changed.
69475         Invoke openat_save_fail and/or openat_restore_fail if
69476         cwd_errno is null, so that openat can call us.
69477         (openat_permissive, fdopendir, fstatat, unlinkat):
69478         Simplify errno handling to avoid some duplicate code,
69479         as it's OK to set errno on success.
69480         * lib/openat.h: Revamp code so that function macros depend on
69481         __OPENAT_PREFIX only, not also on AT_FDCWD.
69482         (openat_ro): Remove.  Caller changed to use openat_permissive.
69483         (openat_permissive): Now a macro, if not a function.
69484         (openat_restore_fail, openat_save_fail): Now always functions,
69485         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69486
69487         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69488         and openat.c.
69489         * lib/mkdirat.c: Include openat-priv.h.
69490         Remove definitions of macros defined therein.
69491         * lib/openat.c: Likewise.
69492
69493         * lib/mkdirat.c (mkdirat): New file and function.
69494         * lib/openat.h (mkdirat): Declare.
69495
69496         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69497
69498         * lib/openat.h (openat_permissive): Declare.
69499         (openat_ro): Define.
69500
69501         * lib/openat.c (EXPECTED_ERRNO): New macro.
69502         (openat_permissive): New function -- used in remove.c rewrite.
69503         (all functions): Set errno just before returning, only if there
69504         was an actual failure.
69505         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69506
69507         Emulate openat-family functions using Linux's procfs, if possible.
69508         Idea and some code based on Ulrich Drepper's glibc changes.
69509
69510         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69511         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69512         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69513         before falling back on save_cwd and restore_cwd.
69514         (fdopendir, fstatat, unlinkat): Likewise.
69515
69516         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69517         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69518
69519         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69520         as second argument to va_arg.  Otherwise, some versions of gcc
69521         warn that `if this code is reached, the program will abort'.
69522
69523 2006-01-09  Jim Meyering  <jim@meyering.net>
69524
69525         Sync from coreutils.
69526         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69527         Require openat-priv.h.
69528
69529 2006-01-09  Bruno Haible  <bruno@clisp.org>
69530
69531         * modules/strnlen (Include): Use strnlen.h.
69532
69533 2006-01-09  Bruno Haible  <bruno@clisp.org>
69534
69535         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69536
69537 2006-01-09  Bruno Haible  <bruno@clisp.org>
69538
69539         * lib/sysexit_.h (EX_OK): New macro.
69540         Suggested by Martin Lambers <marlam@marlam.de>.
69541
69542 2006-01-09  Bruno Haible  <bruno@clisp.org>
69543
69544         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69545         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69546
69547 2006-01-09  Bruno Haible  <bruno@clisp.org>
69548
69549         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69550         numbers.
69551
69552 2006-01-09  Bruno Haible  <bruno@clisp.org>
69553
69554         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69555         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69556         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69557         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69558
69559 2006-01-09  Bruno Haible  <bruno@clisp.org>
69560
69561         * build-aux/javacomp.sh.in: New file, moved from lib/.
69562         * modules/javacomp-script (Files): Update.
69563         (configure.ac): Add AC_CONFIG_FILES invocation.
69564         (EXTRA_DIST): Remove variable.
69565
69566         * build-aux/javaexec.sh.in: New file, moved from lib/.
69567         * modules/javaexec (Files): Update.
69568         (configure.ac): Add AC_CONFIG_FILES invocation.
69569         (EXTRA_DIST): Remove javaexec.sh.in.
69570
69571         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69572         * modules/csharpcomp-script (Files): Update.
69573         (configure.ac): Add AC_CONFIG_FILES invocation.
69574         (EXTRA_DIST): Remove variable.
69575
69576         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69577         * modules/csharpexec (Files): Update.
69578         (configure.ac): Add AC_CONFIG_FILES invocation.
69579         (EXTRA_DIST): Remove csharpexec.sh.in.
69580
69581 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69582
69583         Sync from coreutils.
69584
69585         Add POSIX ACL support
69586         * lib/acl.h (copy_acl, set_acl): Add declarations.
69587         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69588         systems other than Linux.
69589         (chmod_or_fchmod): New function: use fchmod when possible,
69590         and chmod otherwise.
69591         (file_has_acl): Add a POSIX ACL implementation, with a
69592         Linux-specific subcase.
69593         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69594         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69595         acls are unsupported.
69596         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69597         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69598         are unsupported.
69599
69600 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69601
69602         Sync from coreutils.
69603         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69604
69605 2006-01-07  Bruno Haible  <bruno@clisp.org>
69606
69607         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69608         gl_EARLY.
69609
69610 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69611
69612         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69613         Problem reported for Mingw by Mark Junker.
69614
69615 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69616
69617         * README: Gnulib normally doesn't generate a tarball.
69618
69619 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69620
69621         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69622         long int, not int, for nanosecond counts, so that people who are
69623         used to POSIX struct timespec won't be surprised.  Reported by Jim
69624         Meyering.
69625
69626 2005-12-28  Bruno Haible  <bruno@clisp.org>
69627
69628         * build-aux/config.rpath: Update from GNU gettext.
69629
69630 2005-12-16  Jim Meyering  <jim@meyering.net>
69631
69632         * modules/fprintftime: New module.
69633         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69634
69635 2005-12-16  Jim Meyering  <jim@meyering.net>
69636
69637         * m4/fprintftime.m4: New file.
69638
69639 2005-12-16  Jim Meyering  <jim@meyering.net>
69640
69641         * lib/fprintftime.c, lib/fprintftime.h: New files.
69642
69643 2005-12-15  Simon Josefsson  <jas@extundo.com>
69644
69645         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69646         new m4/socklen.m4.
69647
69648 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69649
69650         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69651         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69652
69653 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69654
69655         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69656         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69657         struct uparams is valid. Fall back to the default values if it is
69658         not.
69659
69660 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69661
69662         * modules/argp (Files): Add argp-pin.c
69663         (Depends-on): dirname
69664         (lib_SOURCES): Add argp-pin.c
69665
69666 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69667
69668         * m4/argp.m4:  Check if program_invocation_name and
69669         program_invocation_short_name are declared and define appropriate
69670         macros if they are not.
69671
69672 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69673
69674         * lib/argp-help.c (__argp_base_name): New function
69675         (__argp_short_program_name): Rewrite using __argp_base_name
69676         * lib/argp-namefrob.h: Define program_invocation_name and
69677         program_invocation_short_name if requested
69678         (__argp_base_name): Add prototype
69679         * lib/argp-parse.c (argp_def): Use gettext wrappers
69680         (argp_default_parser): Use __argp_base_name
69681         * lib/argp-pin.c: New file. Defines program_invocation_name and
69682         program_invocation_short_name on systems that lack them.
69683
69684 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69685
69686         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69687         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69688         porting problem reported by Georg Schwarz in
69689         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69690
69691 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69692
69693         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69694         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69695         porting problem reported by Georg Schwarz in
69696         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69697
69698 2005-12-05  Bruno Haible  <bruno@clisp.org>
69699
69700         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69701         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69702         Reported by Mark Junker <mjscod@gmx.de>.
69703
69704 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69705
69706         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69707         Use implementation from Albert Chin, with some
69708         comments/corrections by Stepan Kasal and myself.
69709
69710 2005-12-02  Bruno Haible  <bruno@clisp.org>
69711
69712         * gnulib-tool (func_import): Accept GPLed build tool modules when
69713         --lgpl is given.
69714         * modules/csharpcomp-script: New file.
69715         * modules/csharpcomp: Depend on it.
69716         * modules/javacomp-script: New file.
69717         * modules/javacomp: Depend on it.
69718         Suggested by Simon Josefsson.
69719
69720 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69723         statement, to work around an HP-UX 10.20 compiler bug reported by
69724         Peter O'Gorman.
69725
69726 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69727
69728         * modules/savedir (Depends-on): Add openat.
69729
69730 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69733         (uintmax_t) [defined uintmax_t]: Do not declare.
69734         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69735         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69736         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69737         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69738         sake of portability to weird hosts that C allows (though we don't
69739         know of any practical examples).
69740
69741         * lib/savedir.h (fdsavedir): New decl.
69742         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69743         contains most of the former guts of savedir.
69744         (savedir): Use savedirstream.
69745         Include "openat.h".
69746
69747 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69748
69749         * modules/obstack (Files): Add m4/ulonglong.m4.
69750         Problem reported by Davide Angelocola.
69751
69752 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69753
69754         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69755         coreutils no longer futzes with rounding modes.
69756
69757 2005-11-14  Jim Meyering  <jim@meyering.net>
69758
69759         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69760         replacement of mkstemp.
69761
69762 2005-11-10  Simon Josefsson  <jas@extundo.com>
69763
69764         * lib/readline.c: Remove EOL.
69765
69766 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69767
69768         * modules/gethrxtime (Depends-on): Add gettime.
69769
69770 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69771
69772         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69773         or gettimeofday; no longer needed.
69774
69775 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69776
69777         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69778         time business.
69779         (gethrxtime) [! (HAVE_NANOUPTIME
69780         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69781         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69782         our own approximation.
69783
69784 2005-11-08  Eric Blake  <ebb9@byu.net>
69785
69786         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69787
69788 2005-11-08  Eric Blake  <ebb9@byu.net>
69789
69790         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69791
69792 2005-11-04  Bruno Haible  <bruno@clisp.org>
69793
69794         * gnulib-tool: Implement --update mode.
69795
69796 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69797
69798         Fix porting problem reported by Theodoros V. Kalamatianos.
69799         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69800         Don't assume that futimes failing means we must fail.
69801
69802 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69805         variables to suggest the intended function of the PATH_MAX check.
69806
69807 2005-10-30  Kean Johnston  <jkj@sco.com>
69808
69809         Trivial changes to support SCO systems.
69810         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69811         as PATH_MAX.
69812         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69813         where __ptr is null when no I/O is pending.
69814
69815 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69816
69817         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69818         leave errno alone.  Problem reported by Dmitry V. Levin.
69819
69820 2005-10-28  Simon Josefsson  <jas@extundo.com>
69821
69822         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69823         Test more.
69824
69825         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69826
69827         * modules/md2, modules/md2-tests: New files.
69828
69829 2005-10-28  Simon Josefsson  <jas@extundo.com>
69830
69831         * m4/inet_ntop.m4: More tests.
69832
69833         * m4/gc-md2.m4, md2.m4: New file.
69834
69835 2005-10-28  Simon Josefsson  <jas@extundo.com>
69836
69837         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69838         "restrict" keywords, as per POSIX.  Protect the function
69839         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69840         Don't use K&R prototypes.  Check the sprintf return values.
69841         Re-define EAFNOSUPPORT if not present.  Indent.
69842
69843         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69844         suggested by Bruno Haible <bruno@clisp.org>.
69845
69846         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69847
69848         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69849
69850         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69851         libgcrypt).
69852
69853         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69854
69855         * lib/md2.h, lib/md2.c: New files.
69856
69857 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69858
69859         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69860         errno alone.  Problem reported by Frederic Jolliton.
69861
69862 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         * modules/verify (License): Change from GPL to LGPL.  This is a
69865         tiny module and there are apparently near-equivalents that are
69866         under the BSD license.
69867
69868 2005-10-24  Simon Josefsson  <jas@extundo.com>
69869
69870         * modules/sha1: Relicense to LGPL.
69871
69872 2005-10-24  Simon Josefsson  <jas@extundo.com>
69873
69874         * lib/md4.h: Shrink buffer size, now that we changed the type.
69875
69876 2005-10-23  Simon Josefsson  <jas@extundo.com>
69877
69878         * gnulib-tool (func_import): Fix --tests-base.
69879
69880 2005-10-22  Simon Josefsson  <jas@extundo.com>
69881
69882         * modules/arcfour (Depends-on): Need stdint.
69883
69884 2005-10-22  Simon Josefsson  <jas@extundo.com>
69885
69886         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69887         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69888
69889 2005-10-22  Simon Josefsson  <jas@extundo.com>
69890
69891         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69892         suggested by Bruno Haible <bruno@clisp.org>.
69893
69894 2005-10-22  Simon Josefsson  <jas@extundo.com>
69895
69896         * lib/crc.h: Include stddef.h, for size_t.
69897
69898 2005-10-22  Simon Josefsson  <jas@extundo.com>
69899
69900         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69901         arcfour_context struct (simplify test vector testing in GNU
69902         Shishi).
69903
69904 2005-10-21  Simon Josefsson  <jas@extundo.com>
69905
69906         * modules/des, modules/des-tests: New files.
69907
69908         * modules/gc-des, modules/gc-des-tests: New files.
69909
69910         * tests/test-des.c, tests/test-gc-des.c: New file.
69911
69912 2005-10-21  Simon Josefsson  <jas@extundo.com>
69913
69914         * modules/arctwo, modules/arctwo-tests: New files.
69915
69916         * tests/test-arctwo.c: New file.
69917
69918         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69919
69920         * tests/test-gc-arctwo.c: New file.
69921
69922 2005-10-21  Simon Josefsson  <jas@extundo.com>
69923
69924         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69925         Bruno Haible <bruno@clisp.org>.
69926
69927         * m4/gc-des.m4: New file.
69928
69929 2005-10-21  Simon Josefsson  <jas@extundo.com>
69930
69931         * m4/arctwo.m4: New file.
69932
69933         * m4/gc-arctwo.m4: New file.
69934
69935 2005-10-21  Simon Josefsson  <jas@extundo.com>
69936
69937         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69938         block.
69939
69940 2005-10-21  Simon Josefsson  <jas@extundo.com>
69941
69942         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69943         <bruno@clisp.org>.
69944
69945         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69946
69947         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69948         Bruno Haible <bruno@clisp.org>.
69949
69950         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69951         <bruno@clisp.org>.
69952
69953 2005-10-21  Simon Josefsson  <jas@extundo.com>
69954
69955         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69956
69957 2005-10-21  Simon Josefsson  <jas@extundo.com>
69958
69959         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69960
69961 2005-10-21  Simon Josefsson  <jas@extundo.com>
69962
69963         * lib/des.h, lib/des.c: New files.
69964
69965         * lib/gc-gnulib.c: Support DES.c
69966
69967 2005-10-21  Simon Josefsson  <jas@extundo.com>
69968
69969         * lib/arctwo.h, lib/arctwo.c: New files.
69970
69971         * lib/gc-gnulib.c: Support ARCTWO.
69972
69973 2005-10-21  Simon Josefsson  <jas@extundo.com>
69974
69975         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69976         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69977
69978 2005-10-21  Simon Josefsson  <jas@extundo.com>
69979
69980         * gnulib-tool (func_import, func_create_testdir): Define automake
69981         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69982         Makefile.am snippet),
69983         suggested by Bruno Haible <bruno@clisp.org>.
69984
69985         * modules/gc (Makefile.am): Use it.
69986
69987 2005-10-21  Bruno Haible  <bruno@clisp.org>
69988
69989         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69990         patch.
69991
69992 2005-10-19  Simon Josefsson  <jas@extundo.com>
69993
69994         * tests/test-gc-rijndael.c: New file.
69995
69996         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69997
69998 2005-10-19  Simon Josefsson  <jas@extundo.com>
69999
70000         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70001         interface too.
70002
70003 2005-10-19  Simon Josefsson  <jas@extundo.com>
70004
70005         * tests/test-gc-arcfour.c: New file.
70006
70007         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70008
70009 2005-10-19  Simon Josefsson  <jas@extundo.com>
70010
70011         * modules/gc-md4, modules/gc-md4-tests: New file.
70012
70013         * tests/test-gc-md4.c: New file.
70014
70015 2005-10-19  Simon Josefsson  <jas@extundo.com>
70016
70017         * m4/gc-md4.m4: New file.
70018
70019 2005-10-19  Simon Josefsson  <jas@extundo.com>
70020
70021         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70022         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70023         <kasal@ucw.cz>.
70024
70025 2005-10-19  Simon Josefsson  <jas@extundo.com>
70026
70027         * m4/gc-arcfour.m4: New file.
70028
70029         * m4/gc-rijndael.m4: New file.
70030
70031 2005-10-19  Simon Josefsson  <jas@extundo.com>
70032
70033         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70034
70035 2005-10-19  Simon Josefsson  <jas@extundo.com>
70036
70037         * lib/gc-gnulib.c: Support ARCFOUR.
70038
70039 2005-10-19  Simon Josefsson  <jas@extundo.com>
70040
70041         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70042         support.
70043
70044         * lib/gc.h: Add ECB enum type.
70045
70046         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70047
70048 2005-10-18  Simon Josefsson  <jas@extundo.com>
70049
70050         * tests/test-md5.c: New file.
70051
70052         * modules/md5-tests: New file.
70053
70054 2005-10-18  Simon Josefsson  <jas@extundo.com>
70055
70056         * tests/test-md4.c: New file.
70057
70058         * modules/md4, modules/md4-tests: New files.
70059
70060 2005-10-18  Simon Josefsson  <jas@extundo.com>
70061
70062         * m4/md4.m4: New file.
70063
70064 2005-10-18  Simon Josefsson  <jas@extundo.com>
70065
70066         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70067
70068 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70069
70070         * gnulib-tool (func_create_testdir): Omit the second check whether
70071         BUILT_SOURCES in nonempty.
70072
70073 2005-10-17  Simon Josefsson  <jas@extundo.com>
70074
70075         * tests/test-rijndael.c: New file.
70076
70077 2005-10-17  Simon Josefsson  <jas@extundo.com>
70078
70079         * modules/sha1: Depend on stdint instead of md5.
70080
70081         * modules/md5: Depend on stdint, remove uint32_t.
70082
70083 2005-10-17  Simon Josefsson  <jas@extundo.com>
70084
70085         * modules/gc-sha1-tests: New file.
70086
70087         * tests/test-gc-sha1.c: New file.
70088
70089 2005-10-17  Simon Josefsson  <jas@extundo.com>
70090
70091         * m4/md5.m4: Remove call to uint32_t.m4.
70092
70093 2005-10-17  Simon Josefsson  <jas@extundo.com>
70094
70095         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70096
70097         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70098         md5.h.
70099
70100         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70101
70102         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70103
70104 2005-10-17  Simon Josefsson  <jas@extundo.com>
70105
70106         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70107
70108 2005-10-17  Simon Josefsson  <jas@extundo.com>
70109
70110         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70111
70112 2005-10-17  Simon Josefsson  <jas@extundo.com>
70113
70114         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70115
70116         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70117
70118 2005-10-17  Bruno Haible  <bruno@clisp.org>
70119
70120         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70121         that it can also be used in a test.
70122
70123 2005-10-16  Bruno Haible  <bruno@clisp.org>
70124
70125         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70126         TESTS_ENVIRONMENT, so that individual tests can augment it.
70127
70128         * gnulib-tool (func_create_testdir): Use an intermediate target for
70129         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70130         macros, like $(ALLOCA_H), which cannot be passed through the command
70131         line.
70132
70133 2005-10-15  Simon Josefsson  <jas@extundo.com>
70134
70135         * modules/rijndael-tests: New file.
70136
70137         * modules/rijndael: New file.
70138
70139 2005-10-15  Simon Josefsson  <jas@extundo.com>
70140
70141         * m4/rijndael.m4: New file.
70142
70143 2005-10-15  Simon Josefsson  <jas@extundo.com>
70144
70145         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70146
70147         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70148
70149 2005-10-14  Simon Josefsson  <jas@extundo.com>
70150
70151         * tests/test-arcfour.c: New file.
70152
70153         * modules/arcfour, modules/arcfour-tests: New files.
70154
70155 2005-10-14  Simon Josefsson  <jas@extundo.com>
70156
70157         * m4/arcfour.m4: New file.
70158
70159 2005-10-14  Simon Josefsson  <jas@extundo.com>
70160
70161         * lib/arcfour.h, lib/arcfour.c: New files.
70162
70163 2005-10-14  Roland McGrath  <roland@redhat.com>
70164
70165         Import from libc.  [BZ #1331]
70166         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70167         macro argument.
70168         Reported by Matej Vela <vela@debian.org>.
70169
70170 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70171
70172         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70173         include <wchar.h>; no longer needed.
70174
70175 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70176
70177         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70178
70179 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70180         and  Ulrich Drepper  <drepper@redhat.com>
70181
70182         Import from libc.
70183         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70184         instead of inline stream orientation test and two separate
70185         function calls.  Pay no attention to USE_IN_LIBIO.
70186
70187 2005-10-13  Simon Josefsson  <jas@extundo.com>
70188
70189         * modules/gc-hmac-md5-tests: New file.
70190
70191         * tests/test-gc-hmac-sha1.c: New file.
70192
70193         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70194
70195         * modules/gc-hmac-md5-tests: New file.
70196
70197         * tests/test-gc-md5.c: New file.
70198
70199         * modules/gc-md5-tests: New file.
70200
70201 2005-10-13  Simon Josefsson  <jas@extundo.com>
70202
70203         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70204         Move memory allocation outside of loop.
70205
70206 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70209         intermediate directory is in a read-only file system.  Problem
70210         reported by Eric Blake.
70211
70212 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70213
70214         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70215
70216 2005-10-12  Simon Josefsson  <jas@extundo.com>
70217
70218         * tests/test-hmac-sha1.c: New file.
70219
70220         * modules/hmac-sha1-tests: New file.
70221
70222         * modules/hmac-sha1: New file.
70223
70224 2005-10-12  Simon Josefsson  <jas@extundo.com>
70225
70226         * modules/gc-sha1: New file.
70227
70228 2005-10-12  Simon Josefsson  <jas@extundo.com>
70229
70230         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70231
70232         * tests/test-gc-pbkdf2-sha1.c: New file.
70233
70234 2005-10-12  Simon Josefsson  <jas@extundo.com>
70235
70236         * modules/gc-md5, modules/gc-hmac-md5: New files.
70237
70238         * modules/gc (Files): Remove md5, memxor and hmac files.
70239
70240 2005-10-12  Simon Josefsson  <jas@extundo.com>
70241
70242         * m4/gc-pbkdf2-sha1.m4: New file.
70243
70244         * m4/gc-hmac-sha1.m4: New file.
70245
70246         * m4/gc-sha1: New file.
70247
70248         * m4/hmac-sha1.m4: New file.
70249
70250 2005-10-12  Simon Josefsson  <jas@extundo.com>
70251
70252         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70253
70254         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70255
70256 2005-10-12  Simon Josefsson  <jas@extundo.com>
70257
70258         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70259         suggested by Bruno Haible <bruno@clisp.org>.
70260
70261 2005-10-12  Simon Josefsson  <jas@extundo.com>
70262
70263         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70264
70265 2005-10-12  Simon Josefsson  <jas@extundo.com>
70266
70267         * lib/gc-pbkdf2-sha1.c: New file.
70268
70269         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70270
70271 2005-10-12  Simon Josefsson  <jas@extundo.com>
70272
70273         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70274
70275         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70276
70277 2005-10-12  Simon Josefsson  <jas@extundo.com>
70278
70279         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70280         GC_USE_HMAC_MD5, respectively.
70281
70282         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70283         (gc_md5): Fix typo.
70284
70285         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70286
70287         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70288
70289         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70290
70291 2005-10-12  Bruno Haible  <bruno@clisp.org>
70292
70293         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70294         Reported by Stepan Kasal <kasal@ucw.cz>.
70295
70296 2005-10-11  Simon Josefsson  <jas@extundo.com>
70297
70298         * tests/test-crc.c: New file.
70299
70300         * modules/crc, modules/crc-tests: New files.
70301
70302 2005-10-11  Simon Josefsson  <jas@extundo.com>
70303
70304         * m4/crc.m4: New file.
70305
70306 2005-10-11  Simon Josefsson  <jas@extundo.com>
70307
70308         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70309
70310         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70311
70312         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70313
70314 2005-10-11  Simon Josefsson  <jas@extundo.com>
70315
70316         * lib/crc.h, lib/crc.c: New files.
70317
70318         * lib/gc.h (gc_hash_buffer): Add doc.
70319
70320 2005-10-11  Bruno Haible  <bruno@clisp.org>
70321
70322         * modules/c-strcasestr: New file.
70323         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70324
70325 2005-10-11  Bruno Haible  <bruno@clisp.org>
70326
70327         * modules/c-strcase: New file.
70328         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70329
70330 2005-10-11  Bruno Haible  <bruno@clisp.org>
70331
70332         * lib/strcasecmp.c: Include limits.h.
70333         (strcasecmp): Avoid integer overflow on exotic platforms.
70334         * lib/strncasecmp.c: Include limits.h.
70335         (strncasecmp): Avoid integer overflow on exotic platforms.
70336         Reported by Paul Eggert.
70337
70338 2005-10-11  Bruno Haible  <bruno@clisp.org>
70339
70340         * lib/c-strcasestr.h: New file, from GNU gettext.
70341         * lib/c-strcasestr.c: New file, from GNU gettext.
70342
70343 2005-10-11  Bruno Haible  <bruno@clisp.org>
70344
70345         * lib/c-strcase.h: New file, from GNU gettext.
70346         * lib/c-strcasecmp.c: New file, from GNU gettext.
70347         * lib/c-strncasecmp.c: New file, from GNU gettext.
70348
70349 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70350
70351         * modules/mempcpy (License): GPL -> LGPL.
70352         * modules/strchrnul (License): Likewise.
70353         * modules/sysexits (License): Likewise.
70354
70355 2005-10-08  Simon Josefsson  <jas@extundo.com>
70356
70357         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70358
70359 2005-10-07  Simon Josefsson  <jas@extundo.com>
70360
70361         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70362
70363 2005-10-06  Simon Josefsson  <jas@extundo.com>
70364
70365         * tests/test-hmac-md5.c: New file.
70366
70367         * modules/hmac-md5-tests: New file.
70368
70369         * modules/hmac-md5: New file.
70370
70371 2005-10-06  Simon Josefsson  <jas@extundo.com>
70372
70373         * m4/hmac-md5.m4: New file.
70374
70375         * m4/memxor.m4: Require gl_C_RESTRICT.
70376
70377 2005-10-06  Simon Josefsson  <jas@extundo.com>
70378
70379         * lib/memxor.c (memxor): Avoid casts and warnings.
70380
70381 2005-10-06  Simon Josefsson  <jas@extundo.com>
70382
70383         * lib/hmac-md5.c: New file.
70384
70385         * lib/hmac.h: New file.
70386
70387 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70388
70389         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70390         promotes to int, not unsigned int, to catch the AIX 5.3
70391         compiler bug.
70392
70393 2005-10-05  Simon Josefsson  <jas@extundo.com>
70394
70395         * modules/memxor: New file.
70396
70397         * modules/iconv (Files): Move config.rpath to havelib, it is used
70398         there.
70399
70400         * modules/havelib (Files): Add config.rpath.
70401
70402 2005-10-05  Simon Josefsson  <jas@extundo.com>
70403
70404         * m4/memxor.m4: New file.
70405
70406 2005-10-05  Simon Josefsson  <jas@extundo.com>
70407
70408         * lib/memxor.c (memxor): Fix compiler error.
70409
70410         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70411         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70412
70413         * lib/memxor.h, lib/memxor.c: New files.
70414
70415         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70416         we assume all systems have it, suggested by Jim Meyering
70417         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70418         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70419         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70420         same reasons.
70421
70422 2005-10-05  Simon Josefsson  <jas@extundo.com>
70423
70424         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70425
70426 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70429         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70430         needed, since the source code now assumes these .h files.
70431
70432 2005-10-05  Derek Price  <derek@ximbiot.com>
70433
70434         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70435
70436 2005-10-05  Bruno Haible  <bruno@clisp.org>
70437
70438         * modules/stdint (License): Change to LGPL.
70439
70440 2005-10-04  Simon Josefsson  <jas@extundo.com>
70441
70442         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70443         D. Baushke" <mdb@gnu.org>.
70444
70445 2005-10-04  Bruno Haible  <bruno@clisp.org>
70446
70447         * lib/verify.h (verify_true): Provide alternative definition for C++.
70448
70449 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70452         (SSIZE_MAX): New macro, if not already defined.
70453         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70454         than 2 GiB.
70455
70456 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70457
70458         Sync from coreutils.
70459         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70460         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70461         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70462         ULLONG_MAX doesn't work with 2.7.2.1.
70463
70464 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70465
70466         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70467         From Ben Pfaff.
70468
70469         * modules/exclude (Depends-on): Depend on verify.
70470         * modules/strtoimax (Depends-on): Likewise.
70471         * modules/utimecmp (Depends-on): Likewise.
70472
70473 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70474
70475         * lib/exclude.c: Include verify.h.
70476         (verify): Remove.  All callers changed to use verify.h's version.
70477         * lib/strtoimax.c: Likewise.
70478         * lib/utimecmp.c: Likewis.e
70479
70480         Sync from coreutils.
70481         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70482         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70483         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70484         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70485         bother returning ENOSYS if settimeofday or stime fails; just let
70486         them return whatever errno they want to return.
70487         * lib/utimens.c: Include unistd.h, for dup2.
70488         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70489         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70490
70491 2005-10-02  Jim Meyering  <jim@meyering.net>
70492
70493         Sync from coreutils.
70494         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70495         from glibc-2.2.5 that fails for read-only files.
70496
70497 2005-10-02  Jim Meyering  <jim@meyering.net>
70498
70499         Sync from coreutils.
70500         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70501         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70502         `#if HAVE_CONFIG_H'.
70503         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70504         Remove AT_FDCWD test.
70505         Do not consume the fd unless successful.
70506         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70507         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70508         block, so that we don't even try to compile it if settimeofday is
70509         available.  This works around a compilation failure on OSF1 V5.1,
70510         due to stime requiring a `long int*' while tv_sec is `int'.
70511
70512 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70513
70514         Sync from coreutils.
70515         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70516         against `yes', rather than just testing for nonempty.
70517
70518 2005-10-01  Simon Josefsson  <jas@extundo.com>
70519
70520         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70521         and Darwin.
70522
70523         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70524         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70525         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70526         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70527         Check if struct addrinfo is declared.
70528
70529 2005-10-01  Simon Josefsson  <jas@extundo.com>
70530
70531         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70532         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70533         AI_* and EAI_* definitions.  Protect function declarations.
70534
70535 2005-10-01  Jim Meyering  <jim@meyering.net>
70536
70537         Sync from coreutils.
70538
70539         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70540         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70541         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70542         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70543         in the inet and nsl libraries.  Required on Solaris 5.7.
70544
70545 2005-10-01  Jim Meyering  <jim@meyering.net>
70546
70547         Sync from coreutils.
70548         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70549         in the inet and nsl libraries.  Required on Solaris 5.7.
70550
70551 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70552
70553         * lib/getdelim.c (getdelim): Remove unused variables.
70554
70555 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70556
70557         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70558         so that the code works even with ancient cpp.  Portability problem
70559         with GCC 2.7.2.1 reported by Thomas M.Ott.
70560
70561 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70562
70563         * modules/regex (Depends-on): Add strcase.
70564
70565         * modules/gethostname (Licence): Change from GPL to LGPL, since
70566         gethostname.c is a trivial implementation of a standard library
70567         function.
70568         * modules/poll (License): Change from GPL to LGPL, since it's
70569         derived from LGPL code.
70570
70571 2005-09-27  Jim Meyering  <jim@meyering.net>
70572
70573         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70574         HAVE_CONFIG_H.
70575
70576         * lib/intprops.h (signed_type_or_expr__): Define.
70577         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70578         for unsigned types.
70579
70580 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70581
70582         * lib/verify.h (verify_expr): Remove, replacing with:
70583         (verify_true): New macro that returns true instead of void.
70584         (verify_type__): Remove.
70585         (verify): Use verify_true rather than verify_type__.
70586
70587 2005-09-26  Bruno Haible  <bruno@clisp.org>
70588
70589         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70590         is necessary.
70591         (lib_SOURCES): Remove mbchar.c.
70592         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70593         (Files): Add m4/mbrtowc.m4.
70594         * modules/mbiter: Likewise.
70595         * modules/mbuiter: Likewise.
70596
70597 2005-09-26  Bruno Haible  <bruno@clisp.org>
70598
70599         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70600         compile mbchar.c if they are not both present.
70601         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70602         * m4/mbiter.m4 (gl_MBITER): Likewise.
70603         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70604         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70605         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70606
70607 2005-09-25  Jim Meyering  <jim@meyering.net>
70608
70609         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70610         also uses socklen_t.
70611
70612 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70613
70614         * lib/utimens.c (ENOSYS): Define if not already defined.
70615         (futimens): Support having a null PATH if the file descriptor
70616         is nonnegative.
70617
70618         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70619         Remove.
70620         (__attribute): Define to empty unless GCC 3.1 or later.
70621         This works around a core dump on OpenBSD 3.4, which has GCC
70622         2.95.3, which dumps core when given __attribute__(()).  It also
70623         simplifies other tests, since we really don't want to bother with
70624         worrying about which ancient version of GCC supported what.
70625         Original problem reported by Yoann Vandoorselaere, with part of
70626         the fix suggested by Derek Price.
70627
70628 2005-09-24  Jim Meyering  <jim@meyering.net>
70629
70630         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70631         so we can once again use a positive bitfield width of 1 -- now we
70632         don't have to explain why we were using a bitfield width of 2.
70633
70634 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70635
70636         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70637         and similarly for the other external symbols.  Problem reported
70638         by James Gallager.
70639
70640         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70641         bug reported by Jim Meyering.
70642
70643         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70645         not needed, since socklen is a prerequisite module.
70646
70647 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70648
70649         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70650         Problem reported by Eric Blake.
70651         (getaddrinfo): Initialize se so that it's not garbage.
70652         Redo internal storage allocation so that it doesn't make unportable
70653         assumptions about alignment.
70654         Fix a memory leak.
70655
70656         * lib/utimens.c (futimens): Use futimesat if available.
70657         Prefer it to futimes since it doesn't have the futimes bug.
70658
70659         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70660         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70661         Instead, declare a function that returns a pointer to an array,
70662         and use verify_type__ to declare the size of the array.
70663         Problem and germ of a solution reported by Bruno Haible.
70664         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70665         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70666
70667 2005-09-23  Jim Meyering  <jim@meyering.net>
70668
70669         Sync from coreutils.
70670         Correct build failure (socklen_t not defined) on at least
70671         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70672         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70673
70674 2005-09-23  Jim Meyering  <jim@meyering.net>
70675
70676         * modules/getaddrinfo (Depends-on): Add socklen.
70677
70678 2005-09-23  Bruno Haible  <bruno@clisp.org>
70679
70680         * tests/test-verify.c: New file.
70681
70682 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70683
70684         Sync from coreutils.
70685
70686         * modules/argmatch (Depends-on): Add verify.
70687         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70688         unistd-safer.
70689         * modules/save-cwd (Depends-on): Likewise.
70690
70691         * modules/openat (Files): Add lib/openat-die.c.
70692         (Depends-on): Remove error, exitfail.
70693         Add dirname.
70694
70695         * modules/verify: New file.
70696         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70697         with "verify" module.
70698
70699 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70700
70701         Sync from coreutils.
70702
70703         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70704         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70705         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70706         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70707         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70708         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70709         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70710         Don't bother checking for string.h, stdlib.h, unistd.h.
70711         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70712         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70713         module's job.
70714         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70715         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70716
70717         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70718         (gl_GETDATE): Use it.
70719
70720         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70721
70722 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70723
70724         Sync from coreutils.
70725
70726         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70727         stat-time.h.
70728         * lib/argmatch.h: Include verify.h
70729         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70730         (ARGMATCH_ASSERT): Remove; unused.
70731         * lib/canonicalize.c: Assume STDC_HEADERS.
70732         * lib/exclude.c: Include "strcase.h".
70733         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70734         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70735         and stdio-safer.h.
70736         (getusershell): Call fopen, not fopen_safer.
70737         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70738         Do not include unistd-safer.h.
70739         (save_cwd): Don't call fd_safer; no longer needed
70740         now that we include fcntl--.h.
70741
70742         * lib/getdate.y (relative_time): New type.
70743         (RELATIVE_TIME_0): New constant.
70744         (parser_control): Use relative_time instead of doing it ourselves.
70745         (%union): Add new relative_time rel member.
70746         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70747         Now typeless.
70748         (relunit, relunit_snumber): Now of type rel.
70749         (zone, rel, relunit, get_date): Adjust to above changes.
70750
70751         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70752         Do not include unistd-safer.h.
70753         (getloadavg): Don't call fd_safer; no longer needed
70754         now that we include fcntl--.h.
70755
70756         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70757         (make_dir_parents): Treat ENOSYS like EEXIST.
70758
70759         Improve quality of diagnostics on restore_cwd failure.
70760         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70761         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70762         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70763         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70764         each time through the loop.  Do not diagnose restore_cwd failure;
70765         that is the caller's job (and perhaps the caller does not care).
70766
70767         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70768         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70769         If the file already exists but is not a directory, don't bother
70770         to try to make its parents.
70771         Close potential file descriptor leak if we can't chdir("/") (!).
70772         Don't always return true if chdir($PWD) fails; return true only
70773         if the requested action was done successfully (except for the
70774         chdir($PWD)).
70775         Don't log final directory unless we actually made it.
70776         Refactor to avoid duplicate code to fix up permissions.
70777         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70778
70779         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70780         to make it a bit faster and (I hope) clearer.
70781         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70782         Fix bug in formats like %2N.
70783
70784         * lib/verify.h: New file.
70785
70786 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70787
70788         Sync from coreutils.
70789         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70790
70791 2005-09-22  Jim Meyering  <jim@meyering.net>
70792
70793         Sync from coreutils.
70794
70795         * m4/lstat.m4 (gl_FUNC_LSTAT):
70796         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70797         Remove obsolete comment.
70798         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70799         * m4/xstrtod.m4: Likewise.
70800
70801         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70802
70803 2005-09-22  Jim Meyering  <jim@meyering.net>
70804
70805         Sync from coreutils.
70806
70807         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70808
70809         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70810         the .tm_year member, since otherwise gcc-4.0 would now warn about
70811         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70812
70813         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70814         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70815
70816         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70817         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70818         when run in a time zone for which daylight savings time is in effect
70819         for the starting date.
70820
70821         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70822         stop us from restricting permissions of just-created absolute-named
70823         directories.
70824         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70825         to restore initial working directory.
70826         * lib/mkdir-p.c (make_dir_parents): New parameter:
70827         different_working_dir, to tell caller if/when we change the working
70828         directory and are unable to return to the initial one.
70829         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70830         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70831         `return false'.  This fixes a bug introduced on 2004-07-30.
70832
70833         * lib/openat.c (fdopendir): Be sure to close the supplied
70834         file descriptor before returning.  This makes our replacement
70835         implementation a little closer to Solaris's, where fdopendir
70836         ties the file descriptor to the returned DIR* pointer.
70837         * lib/openat.c (unlinkat): New function.
70838         * lib/openat.h (unlinkat): Add prototype.
70839         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70840         (openat_restore_fail): Rename from openat_restore_die.
70841         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70842
70843         Provide an alternative to exiting immediately upon save_cwd or
70844         restore_cwd failure.  Now, an application can arrange e.g.,
70845         to perform a longjump in that case.
70846         * lib/openat.c: Include dirname.h.
70847         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70848         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70849         and openat_restore_die rather than calling error directly.
70850         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70851
70852         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70853         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70854         define.
70855
70856         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70857         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70858                             int utc, int nanoseconds);
70859         Background:
70860         date should not have to allocate a megabyte of virtual memory to
70861         handle a format argument like +%1048575T.  When implemented with
70862         strftime, it must allocate such a buffer, use strftime to fill it
70863         in, print it, then free it.
70864         With fprintftime, it simply prints everything and exits.
70865         With no need for memory allocation, that's one fewer way to fail.
70866         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70867         optional field width, not before, so we accept %9:z, not %:9z.
70868         (my_strftime): Be sure to use L_('x') for literals.
70869
70870         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70871         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70872         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70873         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70874         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70875         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70876         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70877         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70878         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70879         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70880         * lib/xgethostname.c, lib/xreadlink.c:
70881         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70882
70883         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70884         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70885         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70886         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70887         and don't include <sys/file.h>).
70888
70889 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70890
70891         Sync from coreutils.
70892
70893         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70894         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70895         [!LDAV_DONE]: Avoid unused variable warning.
70896
70897 2005-09-21  Bruno Haible  <bruno@clisp.org>
70898
70899         * lib/unicodeio.h (unicode_to_mb): New declaration.
70900
70901 2005-09-20  Derek Price  <derek@ximbiot.com>
70902
70903         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70904         getaddrinfo.h.
70905
70906 2005-09-20  Bruno Haible  <bruno@clisp.org>
70907
70908         * gnulib-tool: Remove trailing slashes from the values specified for
70909         --source-base, --m4-base, --tests-base, --aux-dir.
70910         Suggested by Simon Josefsson <jas@extundo.com>.
70911
70912 2005-09-20  Bruno Haible  <bruno@clisp.org>
70913
70914         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70915         func_modules_to_filelist, func_import, func_create_testdir): Make all
70916         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70917         change when gnulib-tool is invoked in a different locale.
70918
70919 2005-09-19  Simon Josefsson  <jas@extundo.com>
70920
70921         * m4/socklen.m4: Fix typo.
70922
70923 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70924
70925         Use a consistent style for including <config.h>.
70926         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70927         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70928         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70929         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70930         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70931         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70932         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70933         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70934         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70935         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70936         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70937         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70938         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70939         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70940         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70941         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70942         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70943         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70944         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70945         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70946         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70947         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70948         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70949         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70950         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70951         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70952         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70953         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70954         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70955         lib/xstrtoumax.c, lib/yesno.c:
70956         Standardize inclusion of config.h.
70957         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70958         lib/inttostr.h:  Removed inclusion of config.h from header files.
70959         * lib/inttostr.c:  Adjusted in-tree users.
70960         * lib/timespec.h: Remove superfluous warning to include config.h.
70961         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70962         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70963         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70964         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70965         config.h with HAVE_CONFIG_H.
70966
70967 2005-09-19  Jim Meyering  <jim@meyering.net>
70968
70969         * modules/pathmax (License): Change to LGPL.
70970
70971 2005-09-19  Derek Price  <derek@ximbiot.com>
70972
70973         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70974
70975 2005-09-19  Bruno Haible  <bruno@clisp.org>
70976
70977         * gnulib-tool (import): Provide default for --tests-base.
70978
70979 2005-09-19  Bruno Haible  <bruno@clisp.org>
70980
70981         * doc/quote.texi: New file, extracted from gnulib.texi.
70982         * doc/ctime.texi: New file, extracted from gnulib.texi.
70983         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70984         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70985         * doc/gnulib.texi: Include them.
70986
70987 2005-09-18  Bruno Haible  <bruno@clisp.org>
70988
70989         Portability fix.
70990         * gnulib-tool (func_readlink): New function.
70991         (func_ln_if_changed): Use it.
70992
70993 2005-09-18  Bruno Haible  <bruno@clisp.org>
70994
70995         * gnulib-tool: Support --with-tests also with --import.
70996         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70997         (func_import): Use variables $testsbase and $inctests. Emit a
70998         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70999         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71000         SUBDIRS += $testsdir.
71001         (func_create_testdir): Update.
71002
71003 2005-09-18  Bruno Haible  <bruno@clisp.org>
71004
71005         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71006         instead of $dry_run.
71007         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71008         (func_ln_if_changed): Don't handle dry-run here.
71009         (func_import): In dry-run mode, detect more precisely which actions
71010         would be performed, and don't use "...ing" verbs.
71011
71012 2005-09-18  Bruno Haible  <bruno@clisp.org>
71013
71014         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71015         (func_import): Use join on two temporary files instead of three nested
71016         loops, in order to determine which files are new or old.
71017
71018 2005-09-18  Bruno Haible  <bruno@clisp.org>
71019
71020         * gnulib-tool (func_import): Comment out code that spits out the
71021         new files with --dry-run.
71022
71023 2005-09-18  Bruno Haible  <bruno@clisp.org>
71024
71025         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71026
71027 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71028
71029         * lib/stat-time.h: New file.
71030         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71031         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71032         in a different way.
71033         (timespec_cmp): New function.
71034         * lib/utimecmp.c: Include stat-time.h.
71035         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71036         members exist, not on the obsolescent ST_MTIM_NSEC.
71037         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71038
71039 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71040
71041         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71042
71043 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71044
71045         * MODULES.html.sh (File system functions): Add stat-time.
71046         * modules/stat-time: New file.
71047         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71048         is now done in a different way, by the stat-time module.
71049         * modules/utimecmp (Depends-on): Add stat-time.
71050
71051 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71052
71053         * m4/st_mtim.m4: Remove.  Superseded by...
71054         * m4/stat-time.m4: New file.
71055         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71056         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71057
71058 2005-09-15  Derek Price  <derek@ximbiot.com>
71059
71060         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71061
71062 2005-09-15  Derek Price  <derek@ximbiot.com>
71063
71064         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71065         * lib/regex_internal.c: Ditto, using this...
71066         (__GNUC_PREREQ): ...new macro.
71067         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71068         using...
71069         (__GNUC_PREREQ): ...this new macro.
71070
71071         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71072
71073 2005-09-15  Derek Price  <derek@ximbiot.com>
71074             Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71077         changes, consolidating in...
71078         * lib/regex_internal.h: ...this file.
71079
71080 2005-09-13  Jim Meyering  <jim@meyering.net>
71081
71082         * lib/canon-host.c: Filter through gnu indent and reword comments
71083         slightly.
71084         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71085
71086 2005-09-13  Derek Price  <derek@ximbiot.com>
71087
71088         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71089         failure.
71090         Reported by Jim Meyering  <jim@meyering.net>.
71091
71092 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71093
71094         * lib/base64.c: Typo.
71095         (base64_encode): Put b64str in initialized data section.
71096
71097 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         Merge glibc and coreutils changes into gnulib, plus a few
71100         extra fixes.
71101         * lib/md5.c: Use #error rather than a string.
71102         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71103         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71104         (__attribute__): Define to empty for non recent-GCC.
71105         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71106         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71107         Renamed from their non-__ counterparts, with new macros replacing
71108         them if not _LIBC.  Add __THROW attribute.
71109         (rol): Remove.
71110         (struct md5_ctx): Align buffer if using GCC.
71111         * lib/sha1.h (struct sha1_ctx): Likewise.
71112         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71113         The old name was backwards.
71114         (NOTSWAP): Remove; not used.
71115         (rol): New macro, moved here from md5.h.
71116         (sha1_process_block): Remove a FIXME that doesn't make sense.
71117
71118 2005-09-12  Derek Price  <derek@ximbiot.com>
71119
71120         Return usable errors from canon-host.
71121         * lib/canon-host.h: New file.
71122         * lib/canon-host.c (canon_host): Wrap...
71123         (canon_host_r): ...this new function, which now relies exclusively on
71124         getaddrinfo.
71125         (ch_strerror): New function.
71126         (last_cherror): New global.
71127         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71128         interface.
71129         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71130         void *.
71131         (freeaddrinfo): Free ai->ai_canonname when set.
71132
71133 2005-09-12  Derek Price  <derek@ximbiot.com>
71134
71135         Make canon-host require getaddrinfo.
71136         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71137         AC_LIBSOURCE canon-host.h.  Call...
71138         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71139         gl_GETADDRINFO.
71140         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71141
71142 2005-09-12  Derek Price  <derek@ximbiot.com>
71143
71144         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71145         LGPL.
71146         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71147
71148 2005-09-12  Derek Price  <derek@ximbiot.com>
71149
71150         * lib/gai_strerror.c: Include config.h when available.  Include
71151         getaddrinfo.h before other headers to test interface.
71152         Reported by Larry Jones <lawrence.jones@ugs.com>.
71153
71154 2005-09-12  Derek Price  <derek@ximbiot.com>
71155             Paul Eggert  <eggert@cs.ucla.edu>
71156
71157         * modules/glob (Files): Add glob-libc.h.
71158
71159 2005-09-12  Derek Price  <derek@ximbiot.com>
71160             Paul Eggert  <eggert@cs.ucla.edu>
71161
71162         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71163         glob_.h, glob-libc.h.
71164         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71165
71166 2005-09-12  Derek Price  <derek@ximbiot.com>
71167             Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71170         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71171         protecting things that should be done only in gnulib contexts.
71172         * lib/glob_.h: New file, containing only the glob things needed for
71173         gnulib.
71174         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71175         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71176         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71177         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71178         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71179         and to respect the namespace rules better.
71180
71181 2005-09-08  Simon Josefsson  <jas@extundo.com>
71182
71183         * modules/socklen: New file.
71184
71185 2005-09-08  Simon Josefsson  <jas@extundo.com>
71186
71187         * m4/socklen.m4: New file.
71188
71189 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         * modules/utimens (Files): Add m4/utimbuf.m4, since
71192         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71193         Reported by Sergey Poznyakoff.
71194
71195 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71198         definitions, since that's the preferred style in glibc.
71199         Fix a minor spacing issue, and update copyright notice to match
71200         glibc's.
71201
71202 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71203
71204         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71205
71206 2005-09-06  Simon Josefsson  <jas@extundo.com>
71207
71208         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71209         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71210
71211 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71214         warning.
71215
71216 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71217
71218         * config/srclist.txt: Add glibc bug 1302.
71219
71220 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         Change bitset word type from unsigned int to unsigned long int,
71223         as this has better performance on typical 64-bit hosts.
71224         Port bitset code to hosts with unusual word sizes.
71225         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71226         (build_collating_symbol):
71227         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71228         argument is a bitset.  This is merely a style issue, but it makes
71229         it clearer that an entire array is expected.
71230         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71231         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71232         Port to the case where bitset_word is not the same as unsigned int.
71233         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71234         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71235         Likewise.
71236         * lib/regexec.c (check_dst_limits_calc_pos_1,
71237         check_subexp_matching_top):
71238         (build_trtable, group_nodes_into_DFAstates):
71239         Likewise.
71240         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71241         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71242         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71243         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71244         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71245         * lib/regcomp.c (optimize_subexps, lower_subexp):
71246         Work even if bitset_word has holes in its bitwise representation.
71247         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71248         * lib/regexec.c (check_dst_limits_calc_pos_1,
71249         check_subexp_matching_top):
71250         Likewise.
71251         * lib/regex_internal.c (re_string_reconstruct):
71252         Don't assume UCHAR_MAX == 255.
71253         * lib/regex_internal.h (bitset_set_all): Likewise.
71254         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71255         All uses changed.
71256         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71257         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71258         All uses changed.
71259         (BITSET_WORD_MAX): New macro.
71260         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71261         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71262         (bitset_empty, bitset_copy):
71263         Prefer sizeof (bitset) to multiplying it out ourselves.
71264         (bitset_not_merge): Remove; unused.
71265         (bitset_contain): Return bool, not unsigned int with one bit on.
71266         All callers changed.
71267         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71268         alignment than re_node_set; do this by defining a new internal
71269         type struct dests_alloc and using it to allocate memory.
71270
71271 2005-09-05  Bruno Haible  <bruno@clisp.org>
71272
71273         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71274         links.
71275
71276 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71277
71278         * modules/size_max (Makefile.am): Add size_max.h
71279
71280 2005-09-04  Derek Price  <derek@ximbiot.com>
71281
71282         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71283
71284 2005-09-03  Simon Josefsson  <jas@extundo.com>
71285
71286         * gnulib-tool: Fix typo.
71287
71288 2005-09-03  Simon Josefsson  <jas@extundo.com>
71289
71290         * config/srclist.txt: Add glibc bug 1293.
71291
71292 2005-09-03  Derek Price  <derek@ximbiot.com>
71293
71294         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71295         From Larry Jones <lawrence.jones@ugs.com>.
71296
71297 2005-09-02  Simon Josefsson  <jas@extundo.com>
71298
71299         * modules/socklen: New file.
71300
71301 2005-09-02  Simon Josefsson  <jas@extundo.com>
71302
71303         * modules/havelib: New module.
71304
71305         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71306         Use havelib.
71307
71308 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         Check for arithmetic overflow when calculating sizes, to prevent
71311         some buffer-overflow issues.  These patches are conservative, in the
71312         sense that when I couldn't determine whether an overflow was possible,
71313         I inserted a run-time check.
71314         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71315         macros.
71316         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71317         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71318         (re_xnrealloc, re_x2nrealloc): New inline functions.
71319         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71320         parse_bracket_exp):
71321         (build_equiv_class, build_charclass): Check for arithmetic overflow
71322         in size expression calculations.
71323         * lib/regex_internal.c (re_string_realloc_buffers):
71324         (build_wcs_upper_buffer, re_node_set_add_intersect):
71325         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71326         (re_dfa_add_node, register_state): Likewise.
71327         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71328         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71329         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71330         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71331
71332 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71333
71334         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71335         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71336
71337 2005-09-02  Bruno Haible  <bruno@clisp.org>
71338
71339         Support for lib vs. lib64 distinction on biarch platforms.
71340         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71341         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71342         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71343
71344 2005-09-02  Bruno Haible  <bruno@clisp.org>
71345
71346         * gnulib-tool (import): In the other first-use case, provide defaults
71347         as well.
71348
71349 2005-09-02  Bruno Haible  <bruno@clisp.org>
71350
71351         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71352         patches not yet found in the latest gettext release.
71353
71354 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71355
71356         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71357         to avoid a collision with bits/local_lim.h in glibc.
71358         All uses changed.  Problem reported by Dmitry V. Levin in
71359         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71360
71361         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71362         bugs in int versus size_t comparisons.
71363         (re_string_context_at): Fix bug where the code assumed that
71364         Idx is signed.
71365
71366         Use bool where appropriate.
71367         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71368         All callers changed.
71369         (calc_eclosure_iter): Likewise, for ROOT arg.
71370         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71371         (build_charclass_op): Likewise, for NON_MATCH arg.
71372         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71373         (re_string_construct_common): Likewise, for ICASE arg.
71374         * lib/regexec.c (re_search_2_stub, re_search_stub):
71375         Likewise, for RET_LEN arg.
71376         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71377         (set_regs): Likewise, for FL_BACKTRACK arg.
71378         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71379         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71380         (calc_eclosure_iter, parse_bracket_exp):
71381         Use bool for internal variables that are booleans.
71382         * lib/regexec.c (re_search_internal, check_matching,
71383         proceed_next_node):
71384         (set_regs, build_sifted_states, sift_states_bkref):
71385         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71386         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71387         (find_collation_sequence_value):
71388         Likewise.
71389         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71390         (re_node_set_compare):
71391         Return bool, not int. All callers changed.
71392         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71393         (build_trtable, check_node_accept): Likewise.
71394         * lib/regex_internal.h: Include stdbool.h.
71395
71396         Fix bugs uncovered when converting to bool.
71397         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71398         failure instead of charging ahead blindly.
71399         * lib/regex_internal.c (register_state): Likewise.
71400         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71401         for freeing internal storage.
71402         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71403         bitset pieces used as boolean, to avoid undefined behavior
71404         on hosts that do int overflow checking.
71405
71406 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         * config/srclist.txt: Add glibc bugs 1285-1287.
71409
71410 2005-09-01  Jim Meyering  <jim@meyering.net>
71411
71412         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71413         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71414         Require gl_STAT_MACROS, too.
71415
71416 2005-09-01  Bruno Haible  <bruno@clisp.org>
71417
71418         * gnulib-tool (import): In the first-use case, provide defaults.
71419
71420 2005-09-01  Bruno Haible  <bruno@clisp.org>
71421
71422         * gnulib-tool (func_import): Remove the .tmp files.
71423
71424 2005-09-01  Bruno Haible  <bruno@clisp.org>
71425
71426         * gnulib-tool (func_import): Fix handling of symbolic links.
71427
71428 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71429
71430         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71431         old glibc regex code mishandles strings longer than 2**31 bytes.
71432         This patch fixes this when the regex code is used in gnulib
71433         (i.e., outside glibc).
71434
71435         This patch should not affect the use of the regex code inside
71436         glibc.  No doubt this problem also needs to be handled for glibc
71437         as well, but the result will be an incompatible change to the
71438         glibc ABI, and the old ABI will have to be supported too.  That
71439         can be the the subject for another patch.
71440
71441         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71442         governing whether the rest of this patch is active.  By default,
71443         the macro is disabled and the patch has no effect.
71444         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71445         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71446         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71447         (re_match_2, re_set_registers): Use the new types.
71448         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71449         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71450         New macros.
71451         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71452         (re_string_context_at, bin_tree_t, re_dfastate_t):
71453         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71454         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71455         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71456         (re_string_char_size_at, re_string_wchar_at):
71457         (re_string_elem_size_at):
71458         Use the new types and macros to port to 64-bit hosts.
71459         Use unsigned types for internal values, so that the code
71460         mostly works even for arrays larger than SSIZE_MAX.
71461         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71462         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71463         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71464         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71465         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71466         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71467         (calc_inveclosure, parse_dup_op, build_range_exp):
71468         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71469         (fetch_number, create_token_tree, mark_opt_subexp):
71470         Likewise.
71471         * lib/regex_internal.c (re_string_construct_common,
71472         create_ci_newstate):
71473         (create_cd_newstate, re_string_allocate, re_string_construct):
71474         (re_string_realloc_buffers, build_wcs_upper_buffer):
71475         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71476         (re_string_reconstruct, re_string_peek_byte_case):
71477         (re_string_fetch_byte_case, re_string_context_at):
71478         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71479         (re_node_set_init_copy, re_node_set_add_intersect):
71480         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71481         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71482         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71483         (re_acquire_state, re_acquire_state_context, register_state):
71484         Likewise.
71485         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71486         search_cur_bkref_entry):
71487         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71488         (re_search_internal, re_search_2_stub, re_search_stub)
71489         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71490         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71491         (update_cur_sifted_state, check_dst_limits):
71492         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71493         (check_subexp_limits, sift_states_bkref, merge_state_array):
71494         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71495         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71496         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71497         (expand_bkref_cache, check_node_accept_bytes):
71498         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71499         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71500         (acquire_init_state_context, check_halt_node_context):
71501         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71502         (sift_states_backward, clean_state_log_if_needed):
71503         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71504         (find_recover_state, transit_state_sb, transit_state_mb):
71505         (transit_state_bkref, build_trtable, match_ctx_clean):
71506         Likewise.
71507         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71508         to work around an assumption that REG_MISSING is negative.
71509
71510         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71511         (seek_collating_symbol_entry) [defined _LIBC]:
71512         (lookup_collation_sequence_value) [defined _LIBC]:
71513         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71514         Use prototypes rather than old-style function definitions.
71515         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71516         (transit_state_sb) [0]:
71517         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71518
71519         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71520         rm_eo.
71521
71522         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71523         (optimize_subexps, lower_subexp):
71524         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71525         since the signed shift might overflow.  Use 1u<<31 instead.
71526         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71527         Likewise.
71528         * lib/regexec.c (check_dst_limits_calc_pos_1,
71529         check_subexp_matching_top): Likewise.
71530
71531         * lib/regcomp.c (optimize_subexps, lower_subexp):
71532         Use CHAR_BIT rather than 8, for clarity.
71533         * lib/regexec.c (check_dst_limits_calc_pos_1):
71534         (check_subexp_matching_top): Likewise.
71535         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71536         have to worry about portability issues when shifting it left.
71537         Remove no-longer-needed test for table_size > 0.
71538         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71539         in a word, as the resulting behavior is undefined.
71540         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71541         in one case, a <= should have been an <, and in another case the
71542         whole test was missing.
71543         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71544         the standard name CHAR_BIT.
71545         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71546         this is not true on one's complement and signed-magnitude hosts.
71547
71548         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71549         next_last_offset.
71550         (struct re_dfa_t): Remove unused member states_alloc.
71551         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71552
71553 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71554
71555         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71556         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71557         and large-file glibc and in 32-bit large-file Solaris.
71558
71559 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71560
71561         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71562         lengths fit in regoff_t; this isn't true if regoff_t is the same
71563         width as size_t.
71564         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71565         (= START + RANGE) instead of RANGE.  This avoids overflow
71566         problems when regoff_t is the same width as size_t.
71567         All callers changed.
71568         (re_search_2_stub): Check for overflow when adding the
71569         sizes of the two strings.
71570         (re_search_stub): Check for overflow when adding START
71571         to RANGE; if it occurs, substitute the extreme value.
71572
71573 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71574
71575         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71576
71577 2005-08-31  Jim Meyering  <jim@meyering.net>
71578
71579         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71580         a pointer-to-const.
71581         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71582         (register_state): Likewise.
71583         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71584         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71585         (group_nodes_into_DFAstates): Likewise.
71586
71587 2005-08-31  Jim Meyering  <jim@meyering.net>
71588
71589         * check-module: Add a FIXME comment.
71590
71591 2005-08-31  Eric Blake  <ebb9@byu.net>
71592
71593         * modules/unistd-safer (Files): Add unistd--.h.
71594         * modules/stdio-safer (Files): Add stdio--.h.
71595
71596 2005-08-31  Derek Price  <derek@ximbiot.com>
71597
71598         * lib/getdelim.c (getdelim): Return EOF on EOF.
71599         Reported by Larry Jones <lawrence.jones@ugs.com>.
71600
71601 2005-08-31  Bruno Haible  <bruno@clisp.org>
71602
71603         Avoid unnecessary diffs in the generated lib/Makefile.am.
71604         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71605         the generated files.
71606         (func_import): Don't set cmd.
71607
71608 2005-08-31  Bruno Haible  <bruno@clisp.org>
71609
71610         * lib/strstr.c: Include <stddef.h>, for NULL.
71611         * lib/strcasestr.c: Likewise.
71612         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71613
71614 2005-08-31  Bruno Haible  <bruno@clisp.org>
71615
71616         * gnulib-tool: New option --macro-prefix.
71617         (func_import): Use macro_prefix.
71618         (import): Handle option --macro-prefix.
71619
71620 2005-08-31  Bruno Haible  <bruno@clisp.org>
71621
71622         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71623         Also use new variables cached_lgpl, cached_libtool.
71624
71625 2005-08-31  Bruno Haible  <bruno@clisp.org>
71626
71627         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71628         always instantiating them.
71629
71630 2005-08-31  Bruno Haible  <bruno@clisp.org>
71631
71632         * gnulib-tool (func_import): Read the previous cached settings
71633         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71634         earlier added by gnulib but are now dropped. Warn when a gnulib file
71635         overwrites a non-gnulib file.
71636
71637 2005-08-31  Bruno Haible  <bruno@clisp.org>
71638
71639         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71640         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71641         projects that don't keep autogenerated files in CVS. Put into
71642         actioncmd only the specified modules, not the transitive closure.
71643
71644 2005-08-31  Bruno Haible  <bruno@clisp.org>
71645
71646         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71647         Create directories that shall be filled.
71648         (import): Don't look for gl_* macros in configure.ac. Recurse across
71649         all directories containing a gnulib-cache.m4 files, if meaningful.
71650
71651 2005-08-31  Bruno Haible  <bruno@clisp.org>
71652
71653         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71654         (import): Set seen_libtool when we see gl_LIBTOOL.
71655
71656 2005-08-31  Bruno Haible  <bruno@clisp.org>
71657
71658         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71659         declaration macro definitions from generated gnulib.m4.
71660
71661 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71662
71663         * lib/iconvme.h: Add prototype for iconv_alloc.
71664
71665 2005-08-29  Simon Josefsson  <jas@extundo.com>
71666
71667         * lib/iconvme.c: Fix errno.
71668
71669 2005-08-29  Bruno Haible  <bruno@clisp.org>
71670
71671         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71672         that it works when the directory contains spaces.
71673
71674 2005-08-29  Bruno Haible  <bruno@clisp.org>
71675
71676         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71677
71678 2005-08-29  Bruno Haible  <bruno@clisp.org>
71679
71680         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71681         Emit more advice.
71682
71683 2005-08-29  Bruno Haible  <bruno@clisp.org>
71684         and Stepan Kasal  <kasal@ucw.cz>
71685
71686         * check-module: If more parameters are given, check each of them
71687         separately; add more exceptions, as noted by Jim Meyering.
71688         (check_module): New procedure.
71689         (%exempt_header): Now contains all exceptions.
71690
71691 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71692
71693         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71694
71695 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71696
71697         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71698
71699 2005-08-28  Bruno Haible  <bruno@clisp.org>
71700
71701         * m4/gnulib-tool.m4: New file.
71702
71703 2005-08-27  Jim Meyering  <jim@meyering.net>
71704
71705         * modules/unistd-safer (Files): Add pipe-safer.c.
71706         * modules/fcntl-safer (Files): Add creat-safer.c.
71707
71708 2005-08-27  Jim Meyering  <jim@meyering.net>
71709
71710         * m4/stdlib-safer.m4: New file.  From coreutils.
71711         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71712         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71713         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71714         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71715         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71716
71717 2005-08-27  Jim Meyering  <jim@meyering.net>
71718
71719         * lib/fopen-safer.c: Merge minor changes from coreutils.
71720         * lib/dup-safer.c: Likewise.
71721         * lib/fd-safer.c: Likewise.
71722
71723         Merge from coreutils.
71724         * lib/stdio--.h: New file.
71725         * lib/stdlib--.h: New file.
71726         * lib/mkstemp-safer.c: New file.
71727
71728         GNU tar needs these.
71729         * lib/pipe-safer.c: New file.
71730         * lib/creat-safer.c: New file.
71731         * lib/fcntl--.h (creat): Define to creat_safer.
71732         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71733         * lib/unistd--.h (pipe): Define to pipe_safer.
71734         * lib/unistd-safer.h: Declare pipe_safer.
71735
71736 2005-08-26  Simon Josefsson  <jas@extundo.com>
71737
71738         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71739         Haible <bruno@clisp.org>.
71740
71741 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71742
71743         * lib/regex_internal.h: Remove all references to
71744         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71745         or better.
71746         (bitset_not, bitset_merge, bitset_not_merge):
71747         (bitset_mask, re_string_allocate, re_string_construct):
71748         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71749         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71750         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71751         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71752         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71753         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71754         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71755         (re_acquire_state_context):
71756         Remove unnecessary forward decls.
71757         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71758         Put __attribute at function definition,
71759         now that the function decl has been removed.
71760         * lib/regex_internal.c (re_string_peek_byte_case):
71761         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71762         Likewise.
71763
71764 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71765
71766         * m4/regex.m4: Add AC_PREREQ(2.50).
71767         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71768
71769 2005-08-25  Simon Josefsson  <jas@extundo.com>
71770
71771         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71772         __fsetlocking.
71773
71774 2005-08-25  Simon Josefsson  <jas@extundo.com>
71775
71776         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71777         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71778         GLIBC specific code.
71779
71780 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         Make regex safe for g++.  This fixes one real bug (an "err"
71783         that should have been "*err").  g++ problem reported by
71784         Sam Steingold.
71785         * lib/regex_internal.h (re_calloc): New macro, consistent with
71786         re_malloc etc.  All callers of calloc changed to use re_calloc.
71787         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71788         not int.  All callers changed.
71789         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71790         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71791         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71792         (find_recover_state): Change "err" to "*err"; this fixes what
71793         appears to be a real bug.
71794         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71795         versus int.
71796
71797 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71798
71799         * modules/regex (Depends-on): Add malloc, since the code
71800         assumes that !malloc(0) means failure.
71801
71802 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71803
71804         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71805
71806         alloca modernization/simplification for regex.
71807         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71808         needs to be at the start of the file, and can be moved into
71809         regex_internal.h and simplified.
71810         * lib/regex_internal.h: Include <alloca.h>.
71811         (__libc_use_alloca) [!defined _LIBC]: New macro.
71812         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71813         now works outside glibc.
71814
71815 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71816
71817         * config/srclist.txt: Add glibc bugs 1241, 1245.
71818
71819 2005-08-25  Jim Meyering  <jim@meyering.net>
71820
71821         * lib/open-safer.c: Include <config.h>.
71822         Otherwise, we'd lose LARGEFILE support in any file using
71823         e.g. "fcntl--.h"
71824
71825 2005-08-25  Bruno Haible  <bruno@clisp.org>
71826
71827         * m4/minmax.m4: Require autoconf 2.52.
71828         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71829         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71830         alternatives of translit over the alphabet.
71831         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71832
71833 2005-08-24  Simon Josefsson  <jas@extundo.com>
71834
71835         * tests/test-getpass.c: New file.
71836
71837 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71840         for GNU regex features.
71841
71842 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71843
71844         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71845         * lib/regex.h (regerror): Likewise.
71846
71847         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71848         requires this.  (The code never needed it.)
71849
71850         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71851         All uses of recently-renamed identifiers changed to use the new,
71852         POSIX-compliant names.  The code will build and run just fine
71853         without these changes, but it's better to eat our own dog food
71854         and use the standard-conforming names.
71855
71856         * lib/regex.h: Fix a multitude of POSIX name space violations.
71857         These changes have an effect only for programs that define
71858         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71859         do not change anything for programs compiled in the normal way.
71860         Also, there is no effect on the ABI.
71861
71862         (_REGEX_SOURCE): New macro.
71863         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71864         defined and _GNU_SOURCE is not; this fixes a name space violation.
71865
71866         Rename the following macros to obey POSIX requirements.
71867         The old names are still visible as macros if _REGEX_SOURCE is defined.
71868         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71869         RE_BACKSLASH_ESCAPE_IN_LISTS.
71870         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71871         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71872         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71873         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71874         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71875         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71876         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71877         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71878         (REG_INTERVALS): renamed from RE_INTERVALS.
71879         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71880         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71881         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71882         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71883         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71884         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71885         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71886         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71887         RE_UNMATCHED_RIGHT_PAREN_ORD.
71888         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71889         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71890         (REG_DEBUG): renamed from RE_DEBUG.
71891         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71892         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71893         unusual, since we can't clash with the POSIX REG_ICASE.
71894         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71895         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71896         (REG_NO_SUB): renamed from RE_NO_SUB.
71897         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71898         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71899         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71900         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71901         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71902         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71903         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71904         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71905         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71906         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71907         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71908         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71909         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71910         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71911         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71912         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71913         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71914         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71915         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71916         (REG_FIXED): Renamed from REGS_FIXED.
71917         (REG_NREGS): Renamed from RE_NREGS.
71918
71919         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71920         of other REG_* macros, since POSIX says the user is allowed to
71921         #undef these macros selectively.
71922
71923         (reg_errcode_t): Update comment stating what other tables need
71924         to be consistent.
71925
71926         Rename the following enum values to obey POSIX requirements.
71927         The old names are still visible as macros.
71928         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71929         is not defined, since GNU is supposed to be a superset of POSIX as
71930         much as possible, and since we want reg_errcode_t to be a signed
71931         type for implementation consistency.
71932         (_REG_NOERROR): Renamed from REG_NOERROR.
71933         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71934         (_REG_BADPAT): Renamed from REG_BADPAT.
71935         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71936         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71937         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71938         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71939         (_REG_EBRACK): Renamed from REG_EBRACK.
71940         (_REG_EPAREN): Renamed from REG_EPAREN.
71941         (_REG_EBRACE): Renamed from REG_EBRACE.
71942         (_REG_BADBR): Renamed from REG_BADBR.
71943         (_REG_ERANGE): Renamed from REG_ERANGE.
71944         (_REG_ESPACE): Renamed from REG_ESPACE.
71945         (_REG_BADRPT): Renamed from REG_BADRPT.
71946         (_REG_EEND): Renamed from REG_EEND.
71947         (_REG_ESIZE): Renamed from REG_ESIZE.
71948         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71949         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71950         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71951         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71952         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71953
71954         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71955         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71956         changed.  But support the old name if the new one is not defined
71957         and if _REGEX_SOURCE.
71958
71959         Change the following member names in struct re_pattern_buffer.
71960         The old names are still supported if !_REGEX_SOURCE.
71961         The new names are always supported, regardless of _REGEX_SOURCE.
71962         (re_buffer): Renamed from buffer.
71963         (re_allocated): Renamed from allocated.
71964         (re_used): Renamed from used.
71965         (re_syntax): Renamed from syntax.
71966         (re_fastmap): Renamed from fastmap.
71967         (re_translate): Renamed from translate.
71968         (re_can_be_null): Renamed from can_be_null.
71969         (re_regs_allocated): Renamed from regs_allocated.
71970         (re_fastmap_accurate): Renamed from fastmap_accurate.
71971         (re_no_sub): Renamed from no_sub.
71972         (re_not_bol): Renamed from not_bol.
71973         (re_not_eol): Renamed from not_eol.
71974         (re_newline_anchor): Renamed from newline_anchor.
71975
71976         Change the following member names in struct re_registers.
71977         The old names are still supported if !_REGEX_SOURCE.
71978         The new names are always supported, regardless of _REGEX_SOURCE.
71979         (rm_num_regs): Renamed from num_regs.
71980         (rm_start): Renamed from start.
71981         (rm_end): Renamed from end.
71982
71983         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71984         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71985         Prepend __ to parameter names.
71986
71987         Undo yesterday's changes.
71988
71989 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71990
71991         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71992         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71993         lib/regex.c.
71994
71995 2005-08-24  Jim Meyering  <jim@meyering.net>
71996
71997         Sync from coreutils.
71998         * m4/fcntl-safer.m4: New file.
71999
72000         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72001         and object files for this module.
72002
72003 2005-08-24  Jim Meyering  <jim@meyering.net>
72004
72005         Sync from coreutils.
72006         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72007
72008 2005-08-24  Jim Meyering  <jim@meyering.net>
72009
72010         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72011         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72012
72013 2005-08-24  Jim Meyering  <jim@meyering.net>
72014
72015         * modules/fcntl-safer: New module.
72016         * modules/fts (Depends-on): Add fcntl-safer.
72017         * MODULES.html.sh (File descriptor based Input/Output):
72018         Add fcntl-safer.
72019
72020 2005-08-24  Bruno Haible  <bruno@clisp.org>
72021
72022         Support for unit test modules.
72023         * modules/README: Mention tests modules.
72024         * modules/TEMPLATE-TESTS: New file.
72025         * gnulib-tool: New options --extract-tests-module, --with-tests and
72026         --tests-base (unused for the moment).
72027         (testsbase, inctests): New variables.
72028         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72029         (func_verify_module): Exclude TEMPLATE-TESTS.
72030         (func_verify_nontests_module, func_verify_tests_module): New functions.
72031         (func_get_dependencies): Add implicit dependency for tests modules.
72032         (func_get_tests_module): New function.
72033         (func_modules_transitive_closure): When --with-tests was specified,
72034         include the unit tests as well, unless explicitly avoided.
72035         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72036         (func_emit_tests_Makefile_am): New function.
72037         (func_create_testdir): When --with-tests was specified, emit a
72038         tests/ directory.
72039         * MODULES.html.sh (Future developments): Update.
72040
72041 2005-08-24  Bruno Haible  <bruno@clisp.org>
72042
72043         * modules/tls-tests: New file.
72044         * tests/test-tls.c: New file, from GNU gettext.
72045
72046 2005-08-24  Bruno Haible  <bruno@clisp.org>
72047
72048         * modules/lock-tests: New file.
72049         * tests/test-lock.c: New file, from GNU gettext.
72050
72051 2005-08-24  Bruno Haible  <bruno@clisp.org>
72052
72053         * lib/lock.h: Add multiple inclusion guard.
72054         * lib/tls.h: Add multiple inclusion guard.
72055
72056 2005-08-24  Bruno Haible  <bruno@clisp.org>
72057
72058         * gnulib-tool: Add support for the --aux-dir option to
72059         --create-testdir, --create-megatestdir, --test, --megatest.
72060         (func_create_testdir, func_create_megatestdir): Optionally emit a
72061         AC_CONFIG_AUX_DIR directive.
72062         (create-testdir, create-megatestdir, test, megatest): Provide a
72063         default value for $auxdir.
72064
72065 2005-08-24  Bruno Haible  <bruno@clisp.org>
72066
72067         * gnulib-tool (import): Use compound statement instead of subshell
72068         where possible.
72069
72070 2005-08-24  Bruno Haible  <bruno@clisp.org>
72071
72072         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72073
72074 2005-08-24  Bruno Haible  <bruno@clisp.org>
72075
72076         * gnulib-tool (func_version): Update.
72077
72078 2005-08-24  Bruno Haible  <bruno@clisp.org>
72079
72080         * gnulib-tool (func_import, func_create_testdir,
72081         func_create_megatestdir): Quote all autoconf macro arguments.
72082
72083 2005-08-24  Bruno Haible  <bruno@clisp.org>
72084
72085         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72086         option --force, because --force causes the aclocal.m4 of each
72087         subdirectory to be newer than the corresponding config.h.in.
72088
72089 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72090
72091         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72092         All contents moved to gl_REGEX.
72093         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72094         assume that it does.
72095
72096 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72097
72098         * lib/regex.h (REG_NOSYS)
72099         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72100         Define, since POSIX requires it as of 2001.
72101         (_REG_ENOSYS)
72102         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72103         New private symbol, used to keep the enum signed in all cases.
72104         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72105         Youngman in
72106         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72107
72108         * lib/regex_internal.c (re_string_skip_chars, register_state):
72109         (calc_state_hash):
72110         Remove forward decls; no longer needed now that we use prototypes.
72111         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72112         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72113         (clean_state_log_if_needed): Likewise.
72114
72115 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * config/srclist.txt: Add glibc bugs 1231-1233.
72118
72119 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72120
72121         Fix problems reported by Sam Steingold in
72122         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72123         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72124         assumed that reg_errcode_t is a signed type, which is not
72125         necessarily true if _XOPEN_SOURCE is not defined.
72126         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72127         since some compilers warn about it otherwise.
72128
72129 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72130
72131         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72132         (init_word_char, create_initial_state, duplicate_node_closure):
72133         (fetch_token, peek_token_bracket, build_range_exp):
72134         (build_collating_symbol): Remove forward decls; no longer needed
72135         now that we use prototypes.
72136
72137         * lib/regcomp.c:
72138         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72139         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72140         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72141         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72142         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72143         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72144         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72145         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72146         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72147         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72148         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72149         (build_charclass, build_charclass_op, fetch_number, create_tree):
72150         (create_token_tree, mark_opt_subexp, duplicate_tree):
72151         Use prototypes rather than old-style definitions.
72152
72153         * lib/regex_internal.c:
72154         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72155         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72156         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72157         (re_string_reconstruct, re_string_peek_byte_case):
72158         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72159         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72160         (re_node_set_init_copy, re_node_set_add_intersect):
72161         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72162         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72163         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72164         (re_acquire_state, re_acquire_state_context, register_state):
72165         (create_ci_newstate, create_cd_newstate, free_state):
72166         Likewise.
72167         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72168         re_search_2):
72169         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72170         (re_search_internal, prune_impossible_nodes):
72171         (acquire_init_state_context, check_matching, static):
72172         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72173         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72174         (update_regs, sift_states_backward, build_sifted_states):
72175         (clean_state_log_if_needed, merge_state_array):
72176         (update_cur_sifted_state, add_epsilon_src_nodes):
72177         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72178         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72179         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72180         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72181         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72182         (check_arrival, check_arrival_add_next_nodes):
72183         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72184         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72185         (check_node_accept_bytes, check_node_accept, extend_buffers):
72186         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72187         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72188         (sift_ctx_init):
72189         Likewise.
72190
72191         * lib/regex_internal.h:
72192         (re_string_allocate, re_string_construct, re_string_reconstruct):
72193         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72194         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72195         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72196         (re_string_context_at, re_string_peek_byte_case):
72197         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72198         is defined, since we now use prototypes always.
72199
72200         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72201         C89 or better.  All uses removed.
72202
72203 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72204
72205         * config/srclist.txt: Add glibc bugs 1220-1227.
72206
72207 2005-08-20  Jim Meyering  <jim@meyering.net>
72208
72209         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72210         of unused local, dfa.
72211
72212 2005-08-20  Bruno Haible  <bruno@clisp.org>
72213
72214         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72215
72216 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72217
72218         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72219         (re_node_set_insert_last, re_dfa_add_node):
72220         Rename local variables to avoid GCC shadowing warnings.
72221
72222 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72223
72224         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72225         [defined lint]: Suppress bogus uninitialized-variable warnings.
72226
72227         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72228         and let the caller return REG_ESPACE if out of space.  This
72229         removes an uninitialied-variable warning with GCC 4.0.1, and also
72230         avoids taking the address of a local variable.  All callers
72231         changed.
72232
72233 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72234
72235         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72236         $LIBCSRC/posix/regexec.c.
72237         Add glibc bug 1217 for regcomp.c.
72238
72239 2005-08-19  Jim Meyering  <jim@meyering.net>
72240
72241         * lib/regexec.c (proceed_next_node): Redo local variables to
72242         avoid GCC shadowing warnings.
72243
72244 2005-08-18  Bruno Haible  <bruno@clisp.org>
72245
72246         * lib/strstr.c (strstr): Fix return value in multibyte case.
72247         * lib/strcasestr.c (strcasestr): Likewise.
72248
72249 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72250
72251         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72252
72253 2005-08-17  Jim Meyering  <jim@meyering.net>
72254
72255         Make the %s format (seconds since the epoch) work for a negative
72256         number and when used with a zero-padded field width, e.g. %015s.
72257
72258         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72259         label so that it precedes the code to set `digits'.  Otherwise,
72260         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72261         print `00-22'.  Now, it prints `-0022', as it should.
72262
72263 2005-08-17  Bruno Haible  <bruno@clisp.org>
72264
72265         * modules/strstr (Files): Add m4/mbrtowc.m4.
72266         (Depends-on): Add mbuiter.
72267
72268 2005-08-17  Bruno Haible  <bruno@clisp.org>
72269
72270         * modules/strcasestr: New file.
72271         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72272         strcasestr.
72273
72274 2005-08-17  Bruno Haible  <bruno@clisp.org>
72275
72276         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72277
72278 2005-08-17  Bruno Haible  <bruno@clisp.org>
72279
72280         * modules/mbuiter: New file.
72281         * MODULES.html.sh (Extended multibyte and wide character utilities):
72282         Add mbuiter.
72283
72284 2005-08-17  Bruno Haible  <bruno@clisp.org>
72285
72286         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72287         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72288
72289 2005-08-17  Bruno Haible  <bruno@clisp.org>
72290
72291         * m4/strcasestr.m4: New file.
72292
72293 2005-08-17  Bruno Haible  <bruno@clisp.org>
72294
72295         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72296         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72297
72298 2005-08-17  Bruno Haible  <bruno@clisp.org>
72299
72300         * lib/strcasestr.h: New file.
72301         * lib/strcasestr.c: New file.
72302
72303 2005-08-17  Bruno Haible  <bruno@clisp.org>
72304
72305         * lib/strcasecmp.c: Use mbuiter.h.
72306
72307 2005-08-17  Bruno Haible  <bruno@clisp.org>
72308
72309         * lib/mbuiter.h: New file.
72310
72311 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72312
72313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72314         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72315         and gl_GETOPT are both invoked via different paths (as happens
72316         with GNU tar CVS because it uses both argp and getopt), the former
72317         wins.
72318
72319 2005-08-16  Bruno Haible  <bruno@clisp.org>
72320
72321         * modules/tls: New file.
72322         * MODULES.html.sh (Multithreading): Add tls.
72323
72324 2005-08-16  Bruno Haible  <bruno@clisp.org>
72325
72326         * modules/strnlen1: New file.
72327         * MODULES.html.sh (String handling): Add strnlen1.
72328
72329 2005-08-16  Bruno Haible  <bruno@clisp.org>
72330
72331         * modules/strcase (Files): Add m4/mbrtowc.m4.
72332         (Depends-on): Add strnlen1, mbchar.
72333
72334 2005-08-16  Bruno Haible  <bruno@clisp.org>
72335
72336         * modules/mbiter: New file.
72337         * MODULES.html.sh (Extended multibyte and wide character utilities):
72338         Add mbiter.
72339
72340 2005-08-16  Bruno Haible  <bruno@clisp.org>
72341
72342         * modules/mbfile: New file.
72343         * MODULES.html.sh (Extended multibyte and wide character utilities):
72344         Add mbfile.
72345
72346 2005-08-16  Bruno Haible  <bruno@clisp.org>
72347
72348         * modules/mbchar: New file.
72349         * MODULES.html.sh (Extended multibyte and wide character utilities):
72350         New section.
72351
72352 2005-08-16  Bruno Haible  <bruno@clisp.org>
72353
72354         * m4/tls.m4: New file, from GNU gettext.
72355
72356 2005-08-16  Bruno Haible  <bruno@clisp.org>
72357
72358         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72359         always.
72360         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72361
72362 2005-08-16  Bruno Haible  <bruno@clisp.org>
72363
72364         * m4/mbiter.m4: New file.
72365
72366 2005-08-16  Bruno Haible  <bruno@clisp.org>
72367
72368         * m4/mbfile.m4: New file.
72369
72370 2005-08-16  Bruno Haible  <bruno@clisp.org>
72371
72372         * m4/mbchar.m4: New file.
72373
72374 2005-08-16  Bruno Haible  <bruno@clisp.org>
72375
72376         * lib/tls.h: New file, from GNU gettext.
72377         * lib/tls.c: New file, from GNU gettext.
72378
72379 2005-08-16  Bruno Haible  <bruno@clisp.org>
72380
72381         * lib/strnlen1.h: New file.
72382         * lib/strnlen1.c: New file.
72383
72384 2005-08-16  Bruno Haible  <bruno@clisp.org>
72385
72386         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72387         (mbi_init): Update.
72388         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72389         NUL byte, not after it.
72390
72391 2005-08-16  Bruno Haible  <bruno@clisp.org>
72392
72393         * lib/strcase.h (strcasecmp): Add note in comments.
72394         * lib/strncasecmp.c: Use code from strcasecmp.c.
72395         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72396         (strcasecmp): Work correctly in multibyte locales.
72397
72398 2005-08-16  Bruno Haible  <bruno@clisp.org>
72399
72400         * lib/mbiter.h: New file.
72401
72402 2005-08-16  Bruno Haible  <bruno@clisp.org>
72403
72404         * lib/mbfile.h: New file.
72405
72406 2005-08-16  Bruno Haible  <bruno@clisp.org>
72407
72408         * lib/mbchar.h: New file.
72409         * lib/mbchar.c: New file.
72410
72411 2005-08-16  Bruno Haible  <bruno@clisp.org>
72412
72413         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72414         the valid ones. Makes the comparison operations transitive:
72415         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72416         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72417
72418 2005-08-15  Simon Josefsson  <jas@extundo.com>
72419
72420         * modules/ssize_t (License): Change to 'unlimited'.
72421
72422         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72423
72424 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72425
72426         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72427         Add comments for each pending glibc patch.
72428
72429 2005-08-15  Bruno Haible  <bruno@clisp.org>
72430
72431         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72432         __cplusplus is defined.
72433
72434 2005-08-14  Jim Meyering  <jim@meyering.net>
72435
72436         Sync from coreutils.
72437
72438         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72439         Use the hash-table-based cycle-detection code not just when
72440         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72441         Reported by James Youngman in
72442         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72443         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72444         FTS_TIGHT_CYCLE_CHECK.
72445         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72446         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72447         once again.
72448         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72449         * lib/fts.c (fd_safer): Remove decl.
72450         Include fcntl--.h rather than unistd-safer.h
72451         (fts_safe_changedir): Don't call fd_safer; no longer needed
72452         now that we include fcntl--.h.
72453
72454 2005-08-12  Simon Josefsson  <jas@extundo.com>
72455
72456         * modules/getndelim2: Use ssize_t module.
72457         * modules/getnline: Likewise.
72458         * modules/safe-read: Likewise.
72459         * modules/xreadlink: Likewise.
72460
72461         * modules/ssize_t: New file.
72462
72463 2005-08-12  Simon Josefsson  <jas@extundo.com>
72464
72465         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72466
72467 2005-08-12  Simon Josefsson  <jas@extundo.com>
72468
72469         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72470         ssize_t.
72471
72472 2005-08-12  Simon Josefsson  <jas@extundo.com>
72473
72474         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72475         readline, getdelim and check_version.
72476         (Support for systems lacking ISO C 99: Sizes of integer types):
72477         Add size_max.
72478
72479 2005-08-12  Bruno Haible  <bruno@clisp.org>
72480
72481         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72482
72483 2005-08-11  Simon Josefsson  <jas@extundo.com>
72484
72485         * modules/readline: New file.
72486
72487         * modules/strnlen (Files): Add strnlen.h.
72488
72489 2005-08-11  Simon Josefsson  <jas@extundo.com>
72490
72491         * m4/readline.m4: New file.
72492
72493 2005-08-11  Simon Josefsson  <jas@extundo.com>
72494
72495         * lib/readline.h, readline.c: New file.
72496
72497 2005-08-11  Simon Josefsson  <jas@extundo.com>
72498
72499         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72500         gl_AVOID.
72501
72502 2005-08-11  Bruno Haible  <bruno@clisp.org>
72503
72504         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72505
72506 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72507
72508         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72509
72510 2005-08-10  Simon Josefsson  <jas@extundo.com>
72511
72512         * tests/test-iconvme.c: New file.
72513
72514 2005-08-10  Simon Josefsson  <jas@extundo.com>
72515
72516         * m4/strnlen.m4: New file.
72517
72518         * m4/strndup.m4: Don't check for strnlen declaration, done in
72519         strnlen.m4.
72520
72521 2005-08-10  Simon Josefsson  <jas@extundo.com>
72522
72523         * lib/strndup.c: Use strnlen.h.
72524
72525         * lib/strnlen.h: New file.
72526
72527 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72528
72529         * README: Typos.
72530
72531 2005-08-02  Simon Josefsson  <jas@extundo.com>
72532
72533         * modules/readline: New file.
72534
72535 2005-08-02  Simon Josefsson  <jas@extundo.com>
72536
72537         * modules/getdelim: New file.
72538
72539         * modules/getline: Rewrite, don't use getndelim2.
72540
72541 2005-08-02  Simon Josefsson  <jas@extundo.com>
72542
72543         * m4/getline.m4: Separate out getdelim stuff into separate module.
72544
72545         * m4/getdelim.m4: New file.
72546
72547 2005-08-02  Simon Josefsson  <jas@extundo.com>
72548
72549         * lib/getline.h, getline.c: Rewrite.
72550
72551         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72552
72553 2005-07-31  Bruno Haible  <bruno@clisp.org>
72554
72555         * lib/lock.h (gl_lock_initializer): New macro.
72556         (gl_lock_define_initialized): Use it.
72557         (gl_rwlock_initializer): New macro.
72558         (gl_rwlock_define_initialized): Use it.
72559         (gl_recursive_lock_initializer): New macro.
72560         (gl_recursive_lock_define_initialized): Use it.
72561
72562 2005-07-30  Karl Berry  <karl@gnu.org>
72563
72564         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72565         Report from Ben Pfaff, regarding getopt.
72566
72567 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72568
72569         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72570         normal way.
72571         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72572         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72573         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72574         (gl_GETOPT): Use the new macros.  Most of the implementation
72575         is moved to the new macros.  This is for programs like Emacs
72576         that don't want all the functionality of gl_GETOPT.
72577
72578 2005-07-26  Bruno Haible  <bruno@clisp.org>
72579
72580         * m4/lock.m4: Update from GNU gettext.
72581
72582 2005-07-26  Bruno Haible  <bruno@clisp.org>
72583
72584         * lib/lock.h: Update from GNU gettext.
72585         * lib/lock.c: Update from GNU gettext.
72586
72587 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72590         obsolescent AC_TRY_RUN.  Include the default includes files, for
72591         'exit'.
72592
72593 2005-07-24  Bruno Haible  <bruno@clisp.org>
72594
72595         * modules/visibility: New file.
72596         * MODULES.html.sh (Misc): Add visibility.
72597
72598 2005-07-24  Bruno Haible  <bruno@clisp.org>
72599
72600         * m4/visibility.m4: New file.
72601
72602 2005-07-24  Bruno Haible  <bruno@clisp.org>
72603
72604         * doc/visibility.texi: New file.
72605
72606 2005-07-22  Bruno Haible  <bruno@clisp.org>
72607
72608         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72609         $(ALLOCA_H), redundant through BUILT_SOURCES.
72610         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72611         redundant through BUILT_SOURCES.
72612         * modules/byteswap (Makefile.am): Remove explicit dependency on
72613         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72614         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72615         $(FNMATCH_H), redundant through BUILT_SOURCES.
72616         * modules/getopt (Makefile.am): Remove explicit dependency on
72617         $(GETOPT_H), redundant through BUILT_SOURCES.
72618         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72619         redundant through BUILT_SOURCES.
72620         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72621         redundant through BUILT_SOURCES.
72622         * modules/stdbool (Makefile.am): Remove explicit dependency on
72623         $(STDBOOL_H), redundant through BUILT_SOURCES.
72624         * modules/stdint (Makefile.am): Remove explicit dependency on
72625         $(STDINT_H), redundant through BUILT_SOURCES.
72626         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72627         Remove explicit dependency on $(SYSEXITS_H).
72628         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72629
72630 2005-07-18  Simon Josefsson  <jas@extundo.com>
72631
72632         * lib/check-version.c (check_version): Accept identical versions too.
72633
72634 2005-07-18  Bruno Haible  <bruno@clisp.org>
72635
72636         * modules/lock: New file.
72637         * MODULES.html.sh (Multithreading): New section.
72638
72639 2005-07-18  Bruno Haible  <bruno@clisp.org>
72640
72641         * m4/lock.m4: New file, from GNU gettext.
72642
72643 2005-07-18  Bruno Haible  <bruno@clisp.org>
72644
72645         * lib/lock.h: New file, from GNU gettext.
72646         * lib/lock.c: New file, from GNU gettext.
72647
72648 2005-07-18  Bruno Haible  <bruno@clisp.org>
72649
72650         * lib/lock.h (gl_once_t): New type.
72651         (gl_once_define, gl_once): New macros.
72652         * lib/lock.c (fresh_once): New variable.
72653         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72654         functions.
72655
72656 2005-07-16  Simon Josefsson  <jas@extundo.com>
72657
72658         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72659         workaround, suggested by Bruno.
72660
72661 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72662
72663         * modules/xalloc (Depends-on): Add xalloc-die.
72664         * modules/xvasprintf (Depends-on): Add xalloc-die.
72665
72666 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72667
72668         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72669         with a minor change.
72670
72671 2005-07-15  Bruno Haible  <bruno@clisp.org>
72672
72673         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72674         When using lib/poll.c, define poll as rpl_poll.
72675
72676 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72677
72678         * modules/argp (Depends-on): Remove unlocked-io.
72679
72680 2005-07-14  Derek Price  <derek@ximbiot.com>
72681
72682         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72683         for glob symlink bug.
72684
72685 2005-07-14  Bruno Haible  <bruno@clisp.org>
72686
72687         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72688         Instead, test for *_unlocked function declarations directly.
72689
72690 2005-07-11  Simon Josefsson  <jas@extundo.com>
72691
72692         * modules/size_max: New file.
72693
72694         * modules/xsize: Depend on size_max module for size_max.m4.
72695
72696 2005-07-11  Simon Josefsson  <jas@extundo.com>
72697
72698         * lib/size_max.h: New file.
72699
72700 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72701
72702         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72703         copyright symbol and the year.
72704         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72705         (version_etc_va): Use parameterized copyright notice.
72706         Reword to conform to the current GNU coding standards.
72707
72708 2005-07-11  Karl Berry  <karl@gnu.org>
72709
72710         * doc/gnulib.texi (Quoting): new node.
72711         (Initial import): more info, from Patrice.
72712
72713 2005-07-11  Bruno Haible  <bruno@clisp.org>
72714
72715         * gnulib-tool (func_usage): Document option --avoid.
72716         (Command line options): Handle --avoid.
72717         (func_acceptable): New function.
72718         (func_modules_transitive_closure): Use it.
72719
72720 2005-07-11  Bruno Haible  <bruno@clisp.org>
72721
72722         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72723         Reported by Jim Meyering.
72724
72725 2005-07-10  Bruno Haible  <bruno@clisp.org>
72726
72727         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72728         Needed when size_t is smaller than 'unsigned int'.
72729         Reported by Paul Eggert.
72730
72731 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72732
72733         * modules/argp (Depends-on): Add unlocked-io
72734
72735 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72736
72737         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72738         block of defines.
72739
72740 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72743         fix now.
72744
72745 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72746         and Paul Eggert  <eggert@cs.ucla.edu>
72747
72748         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72749         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72750
72751 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72752
72753         * modules/regex (Files): Add lib/regex_internal.c,
72754         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72755         (Depends-on): Add extensions.
72756         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72757
72758 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72759
72760         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72761         pathconf.
72762         * m4/same.m4 (gl_SAME): Likewise.
72763         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72764
72765         * m4/regex.m4: Adjust to new libc regex implementation.
72766         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72767         all the .c and .h parts of (the new) regex.
72768         Quote the m4 stuff better.
72769         Check for RE_ICASE bug of old gnulib.
72770         Check for REG_STARTEND of recent libc.
72771         Rename local variables from jm_* to gl_*.
72772         Quote operand of "test -f".
72773         Say "recent enough" version of libc, not "version 2".
72774         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72775         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72776         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72777         Remove check for btowc, isascii.
72778         Require AM_LANGINFO_CODESET.
72779
72780 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72781
72782         * lib/regex.c, regex.h: Sync from libc.
72783         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72784         * lib/regexec.c:
72785         New files, synced from libc, except that regex_internal.h
72786         currently has a small porting fix.
72787
72788 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72789
72790         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72791         regex_internal.c, regexec.c.
72792         Add regex_internal.h too, but as a comment, since the libc version
72793         is currently broken in gnulib mode.
72794
72795 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         Support programs like Emacs that use gnulib but not gettext.
72798         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72799         * modules/gettext-h: New file.
72800         * modules/gettext (Files): Remove lib/gettext.h.
72801         (Depends-on): Add gettext-h.
72802         (Makefile.am): Remove lib_SOURCES.
72803         * modules/argmatch, modules/c-stack, modules/closeout:
72804         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72805         * modules/execute, modules/file-type, modules/getaddrinfo:
72806         * modules/getopt, modules/human, modules/javacomp:
72807         * modules/javaexec, modules/mkdir-p, modules/obstack:
72808         * modules/openat, modules/pagealign_alloc, modules/pipe:
72809         * modules/quotearg, modules/regex, modules/rpmatch:
72810         * modules/unicodeio, modules/userspec, modules/version-etc:
72811         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72812         * modules/xsetenv:
72813         Depend on gettext-h, not gettext.
72814
72815 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72816
72817         * gnulib-tool (func_import): Add support for 'public domain' license.
72818         * modules/alloca, modules/atexit, modules/memmove:
72819         Now public domain, not GPL.
72820         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72821         * modules/realloc, modules/strerror, modules/strtod:
72822         Now LGPL, not GPL.
72823
72824 2005-07-05  Bruno Haible  <bruno@clisp.org>
72825
72826         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72827         autoconf CVS. Needed for mingw.
72828
72829 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72830
72831         Remove the dependency of the strftime module on the tzset module.
72832         * modules/strftime (Depends-on): Remove dependency on tzset.
72833
72834 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72835
72836         Remove the dependency of the strftime module on the tzset module.
72837         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72838         gl_FUNC_TZSET_CLOBBER.
72839
72840 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72841
72842         Remove the dependency of the strftime module on the tzset module.
72843         * lib/strftime.c (my_strftime)
72844         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72845         Copy the input structure, to work around some of the bug with
72846         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72847         Solaris releases, you should also use the tzset module, but we won't
72848         require it as a dependency any more since we don't want LGPLed code
72849         to depend on GPLed code.
72850
72851 2005-07-02  Jim Meyering  <jim@meyering.net>
72852
72853         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72854         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72855         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72856         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72857
72858 2005-07-02  Jim Meyering  <jim@meyering.net>
72859
72860         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72861
72862 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72863
72864         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72865         declares only 'struct timespec;' (!).
72866
72867 2005-07-01  Jim Meyering  <jim@meyering.net>
72868
72869         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72870         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72871         * lib/save-cwd.c, tempname.c:
72872         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72873         and don't include <sys/file.h>).
72874
72875 2005-06-29  Jim Meyering  <jim@meyering.net>
72876
72877         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72878         type name.  Use the variable name instead.
72879         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72880         Likewise.
72881
72882 2005-06-28  Simon Josefsson  <jas@extundo.com>
72883
72884         * modules/check-version (Files): Add check-version.m4.
72885
72886 2005-06-28  Simon Josefsson  <jas@extundo.com>
72887
72888         * m4/check-version.m4: New file, suggested by Jim Meyering
72889         <jim@meyering.net>.
72890
72891 2005-06-28  Simon Josefsson  <jas@extundo.com>
72892
72893         * lib/check-version.h, lib/check-version.c: New files.
72894
72895 2005-06-28  Simon Josefsson  <jas@extundo.com>
72896
72897         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72898         collision with global variable.  Better indentation.  Don't
72899         increment buffer pointer beyond buffer end.  Based on comments
72900         from Paul Eggert <eggert@cs.ucla.edu>.
72901
72902         * lib/base64.h: Indent.
72903
72904 2005-06-28  Simon Josefsson  <jas@extundo.com>
72905
72906         * doc/gnulib.texi (Library version handling): New section.
72907
72908 2005-06-28  Jim Meyering  <jim@meyering.net>
72909
72910         * check-module (find_included_lib_files): Hard-code another
72911         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72912         but modules/fts-lgpl (correctly) does not list those files.
72913
72914         * modules/canonicalize (Files): Add lib/pathmax.h.
72915
72916 2005-06-25  Simon Josefsson  <jas@extundo.com>
72917
72918         * modules/check-version: New file.
72919
72920 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72921
72922         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72923         initializer of struct addrinfo, as an indication that we don't
72924         care how many members the structure has.
72925
72926 2005-06-24  Derek Price  <derek@ximbiot.com>
72927         and Bruno Haible  <bruno@clisp.org>
72928
72929         Remove stat module & update lstat.
72930         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72931         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72932         * m4/stat.m4: Remove this file.
72933
72934 2005-06-24  Derek Price  <derek@ximbiot.com>
72935         and Bruno Haible  <bruno@clisp.org>
72936
72937         Remove stat module & update lstat.
72938         * lib/stat.c: Remove this file...
72939         (slash_aware_lstat): ...moving this content and its support...
72940         * lib/lstat.c (rpl_lstat): ...into here.
72941         * lib/lstat.h: New file.
72942
72943 2005-06-24  Derek Price  <derek@ximbiot.com>
72944         and Bruno Haible  <bruno@clisp.org>
72945
72946         Remove stat module & update lstat.
72947         * config/srclist.txt (libc sources): Remove stat.
72948
72949 2005-06-24  Derek Price  <derek@ximbiot.com>
72950         and Bruno Haible  <bruno@clisp.org>
72951
72952         Remove stat module & update lstat.
72953         * MODULES.html.sh (stat): Remove.
72954         * MODULES.html: Regenerated.
72955         * modules/lstat (Description): Correct function name.
72956         (Files): Add "lstat.h".
72957         (Depends-on): Remove stat, add xalloc, stat-macros.
72958         * modules/stat: Remove this file.
72959         (Include): Add "lstat.h", remove <sys/stat.h>.
72960
72961 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72962
72963         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72964         (ranged_convert): Don't save conversion in a temporary struct.
72965         This causes a warning with GCC 4.0.0, and anyway in the typical
72966         case it's not worth the extra 100 bytes or so of code.
72967         (ranged_convert, __mktime_internal): When calling a function via a
72968         pointer P, use P () rather than (*P) (), as we now assume C89 or
72969         better.
72970
72971 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72972
72973         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72974         "who -r" failed to give output.  Problem reported by Tim Waugh.
72975
72976         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72977         (xcalloc): Use it to avoid needless tests.
72978         Problem reported by Jim Meyering.
72979
72980 2005-06-20  Derek Price  <derek@ximbiot.com>
72981
72982         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72983         unnecessary for Autoconfs > 2.59c.
72984
72985 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72986
72987         * lib/argp.h (__option_is_short): Check upper limit of
72988         __key. Isprint() requires its argument to have the value
72989         of an unsigned char or EOF.
72990
72991 2005-06-16  Jim Meyering  <jim@meyering.net>
72992
72993         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72994         when either N or S is zero.
72995
72996 2005-06-16  Derek Price  <derek@ximbiot.com>
72997
72998         * m4/bison.m4: Declare YACC & YFLAGS precious.
72999
73000 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73001
73002         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73003         multibyte string or pattern, fall back on unibyte matching.
73004         Problem reported by James Youngman.
73005
73006 2005-06-08  Bruno Haible  <bruno@clisp.org>
73007
73008         * modules/csharpcomp: New file.
73009         * MODULES.html.sh (C#): Add csharpcomp.
73010
73011 2005-06-08  Bruno Haible  <bruno@clisp.org>
73012
73013         * m4/csharpcomp.m4: New file, from GNU gettext.
73014
73015 2005-06-08  Bruno Haible  <bruno@clisp.org>
73016
73017         * lib/csharpcomp.h: New file, from GNU gettext.
73018         * lib/csharpcomp.c: New file, from GNU gettext.
73019         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73020
73021 2005-06-08  Bruno Haible  <bruno@clisp.org>
73022
73023         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73024         warning on mingw.
73025
73026 2005-06-07  Derek Price  <derek@ximbiot.com>
73027
73028         Sync from CVS.
73029         * lib/glob_.h: Indent nested #ifdef.
73030
73031 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73032
73033         Sync from coreutils.
73034         Use "file name" when talking about file names, instead of "filename"
73035         or "path", as per the GNU coding standards.
73036         * lib/mkdir-p.c: Renamed from makepath.c.
73037         (make_dir_parents): Renamed from make_path.  All callers changed.
73038         * lib/mkdir-p.h: Likewise.  All includers changed.
73039         * lib/filenamecat.c: Renamed from path-concat.c.
73040         (file_name_concat): Renamed from path_concat.  All callers changed.
73041         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73042         * lib/filenamecat.h: Likewise.  All includers changed.
73043         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73044         in comments or local variable names.
73045         * lib/basename.c: Likewise.
73046         * lib/canonicalize.c, canonicalize.h: Likewise.
73047         * lib/dirname.c, dirname.h: Likewise.
73048         * lib/euidaccess.c: Likewise.
73049         * lib/exclude.c: Likewise
73050         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73051         * lib/fsusage.c, fsuage.h: Likewise.
73052         * lib/fts.c, fts_.h: Likewise.
73053         * lib/getcwd.c: Likewise.
73054         * lib/getloadavg.c: Likewise.
73055         * lib/mkstemp.c: Likewise.
73056         * lib/mountlist.c, mountlist.h: Likewise.
73057         * lib/openat.c, openat.h: Likewise.
73058         * lib/readlink-stub.c: Likewise.
73059         * lib/readutmp.c, readutmp.h: Likewise.
73060         * lib/rename.c: Likewise.
73061         * lib/rmdir.c: Likewise.
73062         * lib/same.c: Likewise.
73063         * lib/savedir.c: Likewise.
73064         * lib/stripslash.c: Likewise.
73065         * lib/tempname.c: Likewise.
73066         * lib/xreadlink.c: Likewise.
73067         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73068         All uses changed.
73069         * lib/exclude.h: Likewise.
73070
73071         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73072         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73073         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73074         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73075         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73076         files have been getting away with it for years (MORE/BSD 4.3
73077         is extinct now).
73078         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73079         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73080
73081         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73082         Define to 256, not 255, as per modern POSIX.
73083
73084 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         Sync from coreutils.
73087         Use "file name" when talking about file names, instead of "filename"
73088         or "path", as per the GNU coding standards.
73089         * MODULES.html.sh: mkdir-p renamed from makepath.
73090         filenamecat renamed from path-concat.
73091         * modules/filenamecat: Renamed from modules/path-concat.
73092         (Files): filenamecat.h and filenamecat.c renamed from
73093         path-concat.h and path-concat.c.
73094         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73095         (Include): filenamecat.h, not path-concat.h.
73096         * modules/mkdir-p: Renamed from modules/makepath.
73097         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73098         makepath.c.
73099         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73100         (Include): mkdir-p.h, not makepath.h.
73101
73102 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73103
73104         Sync from coreutils.
73105         * m4/mkdir-p.m4: Renamed from makepath.m4.
73106         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73107         Rename files from makepath.c to mkdir-p.c, and from
73108         makepath.h to mkdir-p.h.
73109         * m4/filenamecat.m4: Renamed from path-concat.m4.
73110         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73111         Rename files from path-concat.c to filenamecat.c,
73112         and from path-concat.h to filenamecat.h.
73113         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73114         "file name" in local variables or comments.
73115         * m4/rename.m4: Likewise.
73116
73117 2005-06-01  Bruno Haible  <bruno@clisp.org>
73118
73119         * modules/csharpexec: New file.
73120         * MODULES.html.sh (C#): New section.
73121
73122 2005-06-01  Bruno Haible  <bruno@clisp.org>
73123
73124         * m4/csharp.m4: New file, from GNU gettext.
73125         * m4/csharpexec.m4: New file, from GNU gettext.
73126
73127 2005-06-01  Bruno Haible  <bruno@clisp.org>
73128
73129         * lib/csharpexec.h: New file, from GNU gettext.
73130         * lib/csharpexec.c: New file, from GNU gettext.
73131         * lib/csharpexec.sh.in: New file, from GNU gettext.
73132
73133 2005-05-31  Derek Price  <derek@ximbiot.com>
73134             Paul Eggert  <eggert@cs.ucla.edu>
73135
73136         Sync from cvs.
73137         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73138
73139 2005-05-31  Derek Price  <derek@ximbiot.com>
73140             Paul Eggert  <eggert@cs.ucla.edu>
73141
73142         Sync from cvs.
73143         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73144
73145 2005-05-29  Derek Price  <derek@ximbiot.com>
73146
73147         * config/srclist.txt (glob_.h, glob.c): Add these files.
73148
73149 2005-05-29  Derek Price  <derek@ximbiot.com>
73150
73151         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73152         * modules/glob: New file.
73153         * modules/getlogin_r: Add link to POSIX spec in description.
73154
73155 2005-05-29  Derek Price  <derek@ximbiot.com>
73156             Paul Eggert  <eggert@cs.ucla.edu>
73157
73158         * m4/glob.m4: New file.
73159
73160 2005-05-29  Derek Price  <derek@ximbiot.com>
73161             Paul Eggert  <eggert@cs.ucla.edu>
73162
73163         * lib/glob_.h, lib/glob.c: New files.
73164
73165 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73166
73167         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73168         * modules/fts-lgpl (Depends-on): Remove gettext.
73169
73170 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73171
73172         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73173         and don't require gt_INTTYPES_PRI.
73174
73175 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73176
73177         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73178
73179         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73180         the configuration hassle isn't worth it.
73181         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73182         (LONGEST_MODIFIER, PRIuMAX): Remove.
73183
73184 2005-05-27  Bruno Haible  <bruno@clisp.org>
73185
73186         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73187
73188 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73189
73190         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73191         _POSIX_PTHREAD_SEMANTICS for Solaris.
73192
73193 2005-05-25  Derek Price  <derek@ximbiot.com>
73194
73195         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73196
73197 2005-05-25  Derek Price  <derek@ximbiot.com>
73198             Paul Eggert  <eggert@cs.ucla.edu>
73199
73200         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73201         * lib/getlogin_r.c, getlogin_r.h: New files.
73202
73203 2005-05-25  Bruno Haible  <bruno@clisp.org>
73204             Derek Price  <derek@ximbiot.com>
73205
73206         * lib/getlogin_r.h: Simplify API documentation.
73207
73208 2005-05-23  Derek Price  <derek@ximbiot.com>
73209
73210         * modules/minmax (Files): Add m4/minmax.m4.
73211         (configure.ac): Add gl_MINMAX.
73212
73213 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73216         so that unistd-safer.h (GPL'ed code) need not be included.
73217
73218 2005-05-22  Bruno Haible  <bruno@clisp.org>
73219
73220         * m4/minmax.m4: New file.
73221         Based on a patch by Derek Price <derek@ximbiot.com>.
73222
73223 2005-05-22  Bruno Haible  <bruno@clisp.org>
73224
73225         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73226         (INT64_MIN): Fix definition.
73227         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73228
73229         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73230         NEED_SIGNED_INT_TYPES.
73231
73232         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73233         HAVE_SYSTEM_INTTYPES.
73234
73235 2005-05-22  Bruno Haible  <bruno@clisp.org>
73236
73237         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73238         Also include <sys/param.h> if it defines MIN, MAX.
73239         Based on a patch by Derek Price <derek@ximbiot.com>.
73240
73241 2005-05-21  Jim Meyering  <jim@meyering.net>
73242
73243         * modules/fts (Files): Add m4/inttypes-pri.m4.
73244         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73245
73246 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73247
73248         New fts module.
73249         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73250         (setup_dir, free_dir): New functions.
73251         (enter_dir, leave_dir): Define trivial
73252         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73253         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73254         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73255         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73256         Move to fts-cycle.c.
73257         (fts_open): Use setup_dir.
73258         (fts_close): Use free_dir.
73259         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73260         This adds a label and some gotos, but the alternatives were messier.
73261         Check for memory allocation failure when entering a dir.
73262         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73263         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73264         (FTS): New member fts_cycle, that is a union that contains the
73265         old active_dir_ht and cycle_state.  All uses changed to mention
73266         fts_cycle.ht and fts_cycle.state.
73267         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73268         fts.c, with the following changes:
73269         (setup_dir, free_dir): New functions.
73270         (enter_dir): Now returns bool.  Return true if successful, false
73271         if memory exhausted.  All callers changed.
73272         Do not bother partly cleaning up on
73273         memory allocation failure; that is free_dir's job.
73274         However, free ad if hash_insert fails, to avoid memory leak.
73275         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73276         fts->fts_options to see which union member to use.
73277
73278 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73279
73280         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73281         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73282
73283 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73286
73287 2005-05-20  Jim Meyering  <jim@meyering.net>
73288
73289         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73290         Now a macro, to pacify GCC.
73291
73292 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73293
73294         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73295         of -1.
73296
73297 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73298
73299         * lib/chown.c (rpl_chown): Return -1 on failure.
73300
73301 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73302
73303         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73304         Don't check for stddef.h.
73305         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73306         don't use its results.
73307         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73308         since we include them unconditionally.  Don't require
73309         AM_STDBOOL_H, since stdbool is a prerequisite.
73310         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73311         since we assume C89 or better.
73312         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73313         as we don't use their results.
73314         Don't check for fchdir, memmove, memset, strrchr, as we use
73315         them unconditionally.
73316         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73317         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73318
73319 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73320
73321         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73322         Include <stddef.h> unconditionally, since we assume C89 now.
73323         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73324         * lib/fts.c: Include fts_.h first, to check interface.
73325         Do not include intprops.h; no longer needed.
73326         Include cycle-check.h and hash.h, since fts_.h no longer does.
73327         Remove unnecessary casts of closedir to void.
73328         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73329         decide whether to decrement nlinks.
73330         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73331         (FTS): Use struct hash_table * instead of Hash_table, so that
73332         we no longer need to include hash.h here.
73333
73334 2005-05-18  Jim Meyering  <jim@meyering.net>
73335
73336         * modules/dirfd (License): Change to LGPL.  Most of the code
73337         is already in the public domain.
73338
73339 2005-05-18  Jim Meyering  <jim@meyering.net>
73340
73341         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73342         Reported by Yoann Vandoorselaere.
73343
73344 2005-05-17  Jim Meyering  <jim@meyering.net>
73345
73346         * m4/fts.m4: New file, from coreutils.
73347
73348 2005-05-17  Jim Meyering  <jim@meyering.net>
73349
73350         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73351
73352 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         Sync from coreutils.
73355         * m4/unlinkdir.m4: New file.
73356
73357 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73358
73359         Sync from coreutils.
73360         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73361         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73362         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73363         White space changes only.
73364         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73365         special.
73366         * lib/yesno.c: Include getline.h, not ctype.h.
73367         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73368         Use getline to remove arbitrary restriction on response length.
73369
73370 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73371
73372         * config/srclist-update: Spell out "Street" in FSF postal
73373         mail address; this is the style the FSF seems to prefer.
73374
73375         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73376         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73377         this updates FSF postal mail address.
73378
73379         Sync from coreutils.
73380         * modules/unlinkdir: New file.
73381         * modules/yesno (Depends-on): Add getline.
73382         * MODULES.html.sh (File system functions): Add unlinkdir.
73383
73384 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73385
73386         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73387         lib/strsep.h:
73388         Change the initial comment to refer to GPL, not LGPL.
73389         gnulib-tool will change it to LGPL as needed.
73390
73391         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73392         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73393         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73394         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73395         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73396         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73397         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73398         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73399         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73400         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73401         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73402         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73403         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73404         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73405         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73406         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73407         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73408         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73409         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73410         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73411         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73412         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73413         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73414         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73415         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73416         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73417         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73418         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73419         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73420         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73421         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73422         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73423         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73424         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73425         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73426         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73427         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73428         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73429         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73430         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73431         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73432         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73433         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73434         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73435         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73436         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73437         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73438         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73439         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73440         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73441         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73442         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73443         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73444         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73445         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73446         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73447         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73448         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73449         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73450         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73451         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73452         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73453         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73454         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73455         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73456         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73457         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73458         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73459         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73460         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73461         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73462         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73463         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73464         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73465         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73466         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73467         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73468         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73469         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73470         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73471         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73472         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73473         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73474         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73475         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73476         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73477         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73478         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73479         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73480         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73481         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73482         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73483         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73484         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73485         lib/yesno.c, lib/yesno.h:
73486         Update FSF postal mail address.
73487
73488 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73489
73490         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73491         tests/test-memmem.c, tests/test-stpncpy.c:
73492         Update FSF postal mail address.
73493
73494 2005-05-13  Bruno Haible  <bruno@clisp.org>
73495
73496         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73497         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73498         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73499         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73500         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73501         Add support for 64-bit integers in the MSVC compiler.
73502
73503 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73504
73505         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73506
73507 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73508
73509         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73510
73511 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73512
73513         * doc/getdate.texi (General date syntax): Don't say that date
73514         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73515         Problem reported by Nic Ferrier.
73516
73517 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73518
73519         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73520         specified in ai_socktype. Fix invalid ai_protocol
73521         check. ai_protocol is usually set to 0 or depending on
73522         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73523         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73524         ai_socktype / ai_protocol in the returned addrinfo structure.
73525
73526 2005-05-10  Simon Josefsson  <jas@extundo.com>
73527
73528         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73529         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73530
73531 2005-05-10  Karl Berry  <karl@gnu.org>
73532
73533         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73534         (from http://www.gnu.org/licenses).
73535         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73536         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73537         fdl.texi suffices.
73538
73539 2005-05-10  Karl Berry  <karl@gnu.org>
73540
73541         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73542         (COPYING.DOC): remove.
73543
73544         * config/srclist-update: new FSF address.
73545
73546 2005-05-10  Derek Price  <derek@ximbiot.com>
73547
73548         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73549         possible.
73550
73551 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73552             Bruno Haible  <bruno@clisp.org>
73553
73554         * modules/inet_ntop: New file.
73555         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73556         inet_ntop.
73557
73558 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73559             Bruno Haible  <bruno@clisp.org>
73560
73561         * m4/inet_ntop.m4: New file.
73562
73563 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73564             Bruno Haible  <bruno@clisp.org>
73565
73566         * lib/inet_ntop.h: New file.
73567         * lib/inet_ntop.c: New file, from glibc with modifications.
73568
73569 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73570
73571         * modules/time_r (License): Change to LGPL.
73572         * modules/extensions (License): Change to LGPL.  Actually,
73573         the license is more permissive than that, but currently gnulib-tool
73574         doesn't know how to handle more-permissive licenses.
73575
73576         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73577         Problem reported by Dave Love.
73578
73579 2005-05-08  Jim Meyering  <jim@meyering.net>
73580
73581         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73582         blank.
73583
73584 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * modules/argmatch (Depends-on): Add stdbool.
73587         * modules/backupfile (Depends-on): Likewise.
73588         * modules/chdir-long (Depends-on): Likewise.
73589         * modules/closeout (Depends-on): Likewise.
73590         * modules/cycle-check (Depends-on): Likewise.
73591         * modules/dirname (Depends-on): Likewise.
73592         * modules/fnmatch (Depends-on): Likewise.
73593         * modules/fsusage (Depends-on): Likewise.
73594         * modules/fwriteerror (Depends-on): Likewise.
73595         * modules/getcwd (Depends-on): Likewise.
73596         * modules/getloadavg (Depends-on): Likewise.
73597         * modules/hard-locale (Depends-on): Likewise.
73598         * modules/makepath (Depends-on): Likewise.
73599         * modules/mountlist (Depends-on): Likewise.
73600         * modules/nanosleep (Depends-on): Likewise.
73601         * modules/posixtm (Depends-on): Likewise.
73602         * modules/quotearg (Depends-on): Likewise.
73603         * modules/readtokens (Depends-on): Likewise.
73604         * modules/readtokens0 (Depends-on): Likewise.
73605         * modules/readutmp (Depends-on): Likewise.
73606         * modules/save-cwd (Depends-on): Likewise.
73607         * modules/strftime (Depends-on): Likewise.
73608         * modules/userspec (Depends-on): Likewise.
73609         * modules/utimecmp (Depends-on): Likewise.
73610         * modules/xgetcwd (Depends-on): Likewise.
73611         * modules/xnanosleep (Depends-on): Likewise.
73612         * modules/xstrtod (Depends-on): Likewise.
73613         * modules/yesno (Depends-on): Likewise.
73614
73615 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73618         needless checks.
73619
73620 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73621
73622         Merge from coreutils.  Among other things,
73623         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73624         * lib/fd-safer.c: New file.
73625         * lib/fcntl-safer.h, open-safer.c: Remove.
73626         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73627         * lib/dup-safer.c: Include unistd-safer.h first.
73628         Don't include errno.h.
73629         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73630         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73631         * lib/file-type.c: Rely on file-type.h change.
73632         * lib/getloadavg.c: Include unistd-safer.h.
73633         (getloadavg): Use safer open.
73634         * lib/getusershell.c: Include "stdio-safer.h".
73635         (getusershell): Use safer fopen.
73636         * lib/long-options.c (long_options): Use NULL rather than 0.
73637         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73638         'free'.
73639         * lib/modechange.c: Likewise.
73640         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73641         (MODE_DONE): New constant.
73642         (struct mode_change): Remove 'next' member.
73643         (make_node_op_equals): New function; like the old one of the
73644         same name, except it allocates an array.
73645         (mode_compile, mode_create_from_ref): Use it.
73646         (mode_compile): Allocate result as an array, not a linked list.
73647         Parse octal string ourself, so that we catch mistakes like "+0".
73648         (mode_adjust): Arg is an array, not a linked list.
73649         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73650         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73651         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73652         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73653         Remove.  This is now stat-macros.h's job.
73654         (talloc): Remove.  All callers replaced by xalloc, so that
73655         our invokers don't have to worry about reporting memory failures.
73656         (make_node_op_equals): Remove.
73657         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73658         New constants.
73659         (struct mode_change): Moved here from modechange.h.
73660         (mode_append_entry): Remove.
73661         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73662         apps to have incorrect behavior.  Use simpler algorithm for head
73663         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73664         Detect more invalid usages rather than having somewhat-random behavior.
73665         Don't insert an "a=" action, as that leads to incorrect behavior.
73666         (mode_compile, mode_create_from_ref): Return NULL on error instead
73667         of an enum, since now there's only one way to have an error.  All
73668         callers changed.
73669         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73670         at the correct time.  Simplify calculation of "+u" and its ilk.
73671         Don't mishandle "+X".
73672         (mode_free): Remove "register" and localize decls.
73673         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73674         (struct mode_change): Move to modechange.c; callers don't
73675         need to see this stuff.
73676         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73677         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73678         (mode_change, mode_adjust): Reflect the new signatures noted above.
73679         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73680         that might redefine system include files.
73681         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73682         (my_usleep): Use NULL rather than (void *) 0.
73683         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73684         Use siginterrupt to specify that system calls should be interrupted.
73685         (rpl_nanosleep): Move initialization of suspended closer to call of
73686         my_usleep.
73687         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73688         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73689         (desirable_utmp_entry): New function.
73690         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73691         using x2nrealloc, to simplify logic.
73692         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73693         size calculation.  Do not assume utmp file is a regular file.
73694         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73695         (READ_UTMP_CHECK_PIDS): New constant.
73696         * lib/save-cwd.c: Include unistd-safer.h.
73697         (save_cwd): Use fd_safer.
73698         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73699         [!_LIBC] Include "stat-macros.h" instead.
73700         * lib/unistd-safer.h (fd_safer): New decl.
73701
73702 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73703
73704         * modules/getloadavg (Depends-on): Add unistd-safer.
73705         * modules/getusershell (Depends-on): Add stdio-safer.
73706         * modules/lstat (Depends-on): Remove xalloc.
73707         * modules/mkstemp (Depends-on): Add stat-macros.
73708         * modules/modechange (Depends-on): Remove xstrtol.
73709         Add stat-macros, xalloc.
73710         * modules/save-cwd (Depends-on): Add unistd-safer.
73711         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73712         * modules/unistd-safer (Files): Add lib/fd-safer.c
73713         (Makefile.am): Remove lib_SOURCES.
73714
73715         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73716         Remove fcntl-safer; unistd-safer supersedes it.
73717
73718 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73719
73720         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73721         AC_HEADER_STAT.
73722         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73723         (gl_PREREQ_CHOWN): Remove.
73724         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73725         it.  Don't require AC_HEADER_STAT.
73726         (gl_PREREQ_LSTAT): Remove.
73727         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73728         Don't require AC_HEADER_STAT.
73729         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73730         (gl_PREREQ_RMDIR): Remove.
73731         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73732         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73733         the stat-macros module a prerequisite.
73734         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73735         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73736         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73737         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73738         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73739         variable names.
73740         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73741         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73742         variable prefixes.
73743         * m4/fcntl-safer.m4: Remove.
73744         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73745         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73746         Invoke gl_PREREQ_FD_SAFER.
73747         (gl_PREREQ_FD_SAFER): New macro.
73748         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73749         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73750         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73751         Remove duplicate call to AC_LIBOBJ(readutmp).
73752         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73753
73754         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73755         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73756
73757 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73758
73759         * MODULES.html.sh (Misc): Add byteswap.
73760
73761 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73762
73763         * modules/getcwd (Depends-on): Add extensions.
73764         * modules/openat (Depends-on): Likewise.
73765
73766 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73767
73768         * modules/byteswap: New file.
73769
73770 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73771
73772         * m4/byteswap.m4: New file.
73773
73774 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73775
73776         * lib/byteswap_.h: New file.
73777
73778 2005-04-25  Karl Berry  <karl@gnu.org>
73779
73780         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73781
73782 2005-04-25  Albert Chin  <china@thewrittenword.com>
73783
73784         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73785         Toolkit C bug.
73786
73787 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73788
73789         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73790         (func_ln_if_changed): Remove forcibly for no error message
73791         in case file does not exist.
73792
73793 2005-04-19  Simon Josefsson  <jas@extundo.com>
73794
73795         * gnulib-tool (Options): Make --symlink mean --symbolic.
73796
73797 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73798
73799         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73800
73801 2005-04-16  Simon Josefsson  <jas@extundo.com>
73802
73803         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73804
73805 2005-04-15  Simon Josefsson  <jas@extundo.com>
73806
73807         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73808
73809 2005-04-15  Simon Josefsson  <jas@extundo.com>
73810
73811         * gnulib-tool: Rename --symlink to --symbolic.
73812
73813 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73814
73815         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73816         symbolic links to files instead of copying/moving.  Add --aux-dir,
73817         specifying directory relative --dir where auxiliary build tools
73818         are placed.
73819
73820 2005-04-14  Bruno Haible  <bruno@clisp.org>
73821
73822         * modules/allocsa (License): Change to LGPL.
73823         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73824
73825 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73828         that "UTC +1 second" continues to work.  Problem reported
73829         by Dmitry V. Levin.
73830         (relunit_snumber): New rule.
73831         (relunit): Use it.
73832
73833 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73834
73835         * lib/getdate.y (universal_time_zone_table): New constant.
73836         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73837         universal_time_zone_table.
73838         (lookup_zone): Prefer universal_time_zone_table to
73839         local_time_zone_table, so that "GMT" time stamps are allowed in
73840         London during the summer.  Problem reported by Ian Abbott.
73841
73842 2005-04-12  Jim Meyering  <jim@meyering.net>
73843
73844         * lib/human.c (humblock): Set *options even when returning due to
73845         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73846         warning from gcc-4.
73847
73848 2005-04-09  Jim Meyering  <jim@meyering.net>
73849
73850         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73851         -Wuninitialized: initialize tm0.tm_year.
73852
73853 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73854
73855         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73856         count, since there's no maximum.  All uses changed.
73857         Add member dsts_seen.
73858         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73859         not being INT_MAX.
73860         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73861         Use pc_rels_seen to decide whther a date is absolute.
73862
73863         * lib/getdate.y (number): Don't overwrite year.
73864         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73865         check.
73866
73867 2005-04-02  Simon Josefsson  <jas@extundo.com>
73868
73869         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73870         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73871
73872 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73873
73874         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73875         where no absolute path name can be longer than PATH_MAX.
73876
73877 2005-03-27  Jim Meyering  <jim@meyering.net>
73878
73879         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73880
73881 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73882
73883         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73884         "one's complement" -> "ones' complement" in comment, as per Knuth.
73885         "value of type" -> "type or expression" in comment.
73886         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73887
73888 2005-03-26  Jim Meyering  <jim@meyering.net>
73889
73890         Comment nits.
73891         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73892         Correct typos: s/or/of/.
73893
73894 2005-03-26  Jim Meyering  <jim@meyering.net>
73895
73896         * modules/check-include-files: Move to ../ and rename to...
73897         * check-module: ...this.
73898
73899 2005-03-25  Jim Meyering  <jim@meyering.net>
73900
73901         * modules/xvasprintf (Files): Add xalloc.h.
73902
73903 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73904
73905         * modules/gettext (Files): config/config.rpath ->
73906         build-aux/config.rpath
73907         * modules/iconv (Files): Likewise.
73908         Problem reported by Oskar Liljeblad.
73909
73910 2005-03-23  Jim Meyering  <jim@meyering.net>
73911
73912         * modules/check-include-files: New script to check for
73913         missing dependencies, multiple includes, etc.
73914
73915         * modules/c-strtold (Depends-on): Add xalloc.
73916         * modules/c-strtod (Depends-on): Add xalloc.
73917         * modules/hash (Depends-on): Add xalloc.
73918         (Files): Remove lib/xalloc.h.
73919
73920         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73921         * modules/userspec (Files): Add lib/inttostr.h.
73922
73923 2005-03-23  Jim Meyering  <jim@meyering.net>
73924
73925         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73926
73927 2005-03-22  Jim Meyering  <jim@meyering.net>
73928
73929         * modules/stat-macros: New module.
73930         * modules/canonicalize, modules/euidaccess, modules/file-type,
73931         * modules/filemode, modules/lchown, modules/makepath,
73932         * modules/rmdir, modules/stat: Depend on new stat-macros module
73933         rather than listing lib/stat-macros.h manually.
73934         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73935
73936 2005-03-22  Jim Meyering  <jim@meyering.net>
73937
73938         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73939
73940 2005-03-22  Bruno Haible  <bruno@clisp.org>
73941
73942         * config/srclist.txt: Replace target directory 'config' with
73943         'build-aux'.
73944         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73945         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73946         ../build-aux/.
73947
73948 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         * modules/chdir-long (Depends-on): Add mempcpy.
73951
73952         * modules/acl, modules/backupfile, modules/c-strtod,
73953         modules/c-strtold, modules/canon-host, modules/canonicalize,
73954         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73955         modules/exclude, modules/exitfail, modules/file-type,
73956         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73957         modules/getdate, modules/getline, modules/getpagesize,
73958         modules/getpass, modules/getugroups, modules/group-member,
73959         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73960         modules/inttostr, modules/long-options, modules/makepath,
73961         modules/md5, modules/memcasecmp, modules/memcoll,
73962         modules/modechange, modules/mountlist, modules/path-concat,
73963         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73964         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73965         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73966         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73967         modules/strftime, modules/strndup, modules/strverscmp,
73968         modules/timespec, modules/unlocked-io, modules/userspec,
73969         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73970         modules/yesno:
73971         Remove lib_SOURCES line from Makefile.am section, as this is now
73972         done automatically by the corresponding Autoconf macro.
73973
73974 2005-03-21  Jim Meyering  <jim@meyering.net>
73975
73976         Changes imported from coreutils.
73977
73978         * lib/cycle-check.c: Don't include xalloc.h.
73979
73980         * lib/path-concat.c: Don't include assert.h.
73981         (path_concat): Remove assertion that would have triggered
73982         for ABASE starting with more than one slash.
73983         Reported by Andreas Schwab.
73984
73985         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73986         properly when ABASE is an absolute file name.
73987         Correct the description of this function.
73988         Include <assert.h>.
73989         Add an assertion and a test driver.
73990         This fixes a bug introduced on 2004-07-02.
73991         Andreas Schwab reported the resulting failure of cp --parents:
73992         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73993
73994 2005-03-21  Jim Meyering  <jim@meyering.net>
73995
73996         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73997         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73998
73999 2005-03-21  Jim Meyering  <jim@meyering.net>
74000         and  Paul Eggert  <eggert@cs.ucla.edu>
74001
74002         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74003         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74004         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74005         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74006         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74007         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74008         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74009         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74010         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74011         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74012         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74013         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74014         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74015         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74016         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74017         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74018         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74019         for these modules.
74020
74021 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74024         (which shouldn't happen), generate nothing instead of returning 0
74025         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74026
74027 2005-03-16  Bruno Haible  <bruno@clisp.org>
74028
74029         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74030         HAVE_LONGLONG_64BIT.
74031
74032 2005-03-16  Bruno Haible  <bruno@clisp.org>
74033
74034         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74035         HAVE_LONGLONG_64BIT.
74036
74037 2005-03-16  Bruno Haible  <bruno@clisp.org>
74038
74039         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74040         HAVE_LONGLONG_64BIT.
74041
74042 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74043
74044         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74045         reliably distinguish strftime failure from empty output on POSIX
74046         hosts.
74047
74048 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74051         (iconv_string): Don't guess a size-zero buffer, as that might cause
74052         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74053         result would be 'too large', where 'too large' is (heuristically)
74054         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74055         overflow concerns.  This will prevent some unwanted malloc failures
74056         when the inputs are very large.
74057
74058 2005-03-15  Karl Berry  <karl@gnu.org>
74059
74060         * config/srclist.txt (config.rpath): from gettext.
74061         * config/config.rpath: update.
74062
74063 2005-03-15  Bruno Haible  <bruno@clisp.org>
74064
74065         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74066         to 'negate'.
74067
74068         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74069         variable.
74070
74071         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74072         results.
74073
74074 2005-03-14  Simon Josefsson  <jas@extundo.com>
74075
74076         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74077         <fx@gnu.org>.
74078
74079 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74080
74081         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74082         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74083         intprops.h.
74084         * lib/strtol.c: Likewise.
74085
74086 2005-03-14  Jim Meyering  <jim@meyering.net>
74087
74088         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74089         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74090         to be nonzero so that we (and caller) can detect the difference
74091         between a valid zero-length expansion and an error return, even
74092         when the underlying strftime fails before writing anything into
74093         that location.
74094
74095 2005-03-14  Bruno Haible  <bruno@clisp.org>
74096
74097         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74098         Update from GNU gettext 0.14.3.
74099
74100 2005-03-10  Jim Meyering  <jim@meyering.net>
74101
74102         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74103
74104 2005-03-10  Jim Meyering  <jim@meyering.net>
74105
74106         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74107         so that this module works on systems without fchdir.
74108
74109 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74110
74111         Factor int-properties macros into a single file, except for
74112         glibc-related files.
74113         * lib/intprops.h: New file.
74114         * lib/getloadavg.c: Include it instead of limits.h.
74115         (INT_STRLEN_BOUND): Remove.
74116         * lib/human.c: Include intprops.h.
74117         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74118         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74119         302/1000.
74120         * lib/inttostr.h: Include intprops.h instead of limits.h.
74121         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74122         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74123         for consistency with intprops.h.
74124         (time_t_is_integer, twos_complement_arithmetic): Use them.
74125         * lib/sig2str.h: Include <signal.h>, intprops.h.
74126         (INT_STRLEN_BOUND): Remove.
74127         * lib/strftime.c (TYPE_SIGNED): Remove.
74128         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74129         * lib/strtol.c: Adjust comments to match intprops.h.
74130         * lib/userspec.c: Include intprops.h.
74131         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74132         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74133         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74134         instead of rolling our own expressions.
74135         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74136
74137         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74138         instead of int.
74139         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74140         the right thing even if adding 1900 would overflow.  Similarly
74141         for tm_mon + 1 and tm_yday + 1.
74142         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74143         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74144         (DO_SIGNED_NUMBER): New macro.
74145         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74146
74147 2005-03-07  Bruno Haible  <bruno@clisp.org>
74148
74149         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74150
74151 2005-03-07  Bruno Haible  <bruno@clisp.org>
74152
74153         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74154
74155 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74156
74157         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74158         (func_import): Only replace files via --import when they have actually
74159         changed.
74160
74161 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74162
74163         * m4/mmap-anon.m4: New file.
74164         * m4/pagealign_alloc.m4: New file.
74165
74166 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74167             Bruno Haible  <bruno@clisp.org>
74168
74169         * modules/pagealign_alloc: New file.
74170         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74171
74172 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74173             Bruno Haible  <bruno@clisp.org>
74174
74175         * lib/pagealign_alloc.h: New file.
74176         * lib/pagealign_alloc.c: New file.
74177
74178 2005-03-03  Bruno Haible  <bruno@clisp.org>
74179
74180         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74181         Use an all-permissive copyright notice, recommended by RMS.
74182
74183 2005-03-02  Bruno Haible  <bruno@clisp.org>
74184
74185         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74186         of AIX, the replacement has to be done only after <string.h> is
74187         included, therefore not in config.h. stpncpy.h does the replacement,
74188         and stpncpy.c uses it.
74189
74190 2005-03-02  Bruno Haible  <bruno@clisp.org>
74191
74192         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74193         stpncpy.c uses it.
74194
74195 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74196
74197         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74198         The workaround isn't strictly needed for POSIX conformance, and
74199         it's too much of a pain to configure and maintain.  We'll ask
74200         people to fix their kernels instead.
74201         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74202         (NANOSLEEP_BUG_WORKAROUND): Remove.
74203         (xnanosleep): Remove the workaround.
74204
74205 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74208         Reported by Derek Price.
74209         (Include): Add "timespec.h".
74210
74211         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74212
74213 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74214
74215         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74216         to detect nanosleep bug.
74217
74218 2005-03-01  Bruno Haible  <bruno@clisp.org>
74219
74220         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74221
74222 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74223
74224         * modules/gethrxtime: New file.
74225         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74226         (Depends-on): Add gethrxtime.
74227         (configure.ac): Add gl_XNANOSLEEP.
74228         (Makefile.am): Remove lib_SOURCES line.
74229
74230 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74231
74232         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74233         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74234
74235 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74236
74237         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74238         * lib/timespec.h (gettime): Return void, since it always
74239         succeeds now.  All uses changed.
74240         * lib/gettime.c (gettime): Likewise.
74241         [HAVE_NANOTIME]: Prefer nanotime.
74242         Assume gettimeofday succeeds, as POSIX requires.
74243         Assime time () succeeds, since other code already does.
74244         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74245         (timespec_subtract): Remove.
74246         (NANOSLEEP_BUG_WORKAROUND): New constant.
74247         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74248         things considerably.  Use it only on GNU/Linux hosts, since the
74249         workaround shouldn't be needed elsewhere.
74250
74251 2005-02-24  Bruno Haible  <bruno@clisp.org>
74252
74253         * modules/gettext (Files): Add m4/glibc2.m4.
74254
74255 2005-02-24  Bruno Haible  <bruno@clisp.org>
74256
74257         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74258         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74259         * m4/progtest.m4:
74260         Update from GNU gettext 0.14.2.
74261         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74262
74263 2005-02-24  Bruno Haible  <bruno@clisp.org>
74264
74265         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74266         * lib/config.charset: Update from GNU gettext 0.14.2.
74267
74268 2005-02-24  Bruno Haible  <bruno@clisp.org>
74269
74270         * lib/gettext.h: Update from GNU gettext 0.14.2.
74271
74272 2005-02-23  Simon Josefsson  <jas@extundo.com>
74273
74274         * m4/iconvme.m4: New file.
74275
74276 2005-02-23  Jim Meyering  <jim@meyering.net>
74277
74278         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74279         change.
74280         Thanks to Bruno Haible for catching it.
74281
74282 2005-02-22  Simon Josefsson  <jas@extundo.com>
74283
74284         * modules/iconvme: New file.
74285
74286         * MODULES.html.sh: Add iconvme.
74287
74288 2005-02-22  Simon Josefsson  <jas@extundo.com>
74289
74290         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74291
74292 2005-02-22  Simon Josefsson  <jas@extundo.com>
74293
74294         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74295
74296 2005-02-22  Jim Meyering  <jim@meyering.net>
74297
74298         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74299         s/ifndef/ifdef/.
74300
74301 2005-02-20  Neil Conway  <neilc@samurai.com>
74302
74303         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74304         returned by OSX/Darwin if the specified buffer is not large
74305         enough for the hostname.
74306
74307 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74308
74309         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74310         pass it to _help, otherwise the latter coredumps trying to
74311         dereference state.root_argp.
74312
74313 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74314
74315         * modules/chdir-long (Depends-on): Add memrchr.
74316         * modules/memrchr (Files): Add lib/memrchr.h.
74317         (Include): "memrchr.h".
74318
74319 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74320
74321         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74322
74323 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         * lib/memrchr.h: New file.
74326         * lib/chdir-long.c: Include it.
74327         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74328         Don't bother including stddef.h.
74329
74330 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74333         inclusion.
74334         Include <sys/types.h>, for dev_t.
74335         (ME_DUMMY, ME_REMOTE): Move from here....
74336         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74337         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74338         Dmitry V. Levin.
74339         Include mountlist.h first, to test the interface.
74340
74341 2005-01-29  Bruno Haible  <bruno@clisp.org>
74342
74343         * lib/progname.c (program_name): Initialize.
74344         Needed when linking statically on MacOS X.
74345
74346 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74347
74348         Sync from coreutils.
74349         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74350         (Depends-on): Add c-strtod.
74351         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74352
74353 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74354
74355         Sync from coreutils.
74356         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74357
74358         Remove files that are specific to coreutils.
74359         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74360
74361 2005-01-28  Bruno Haible  <bruno@clisp.org>
74362
74363         * modules/javacomp: New file.
74364         * MODULES.html.sh (Java): Add javacomp.
74365
74366 2005-01-28  Bruno Haible  <bruno@clisp.org>
74367
74368         * m4/javacomp.m4: New file, from GNU gettext.
74369
74370 2005-01-28  Bruno Haible  <bruno@clisp.org>
74371
74372         * lib/javacomp.sh.in: New file, from GNU gettext.
74373         * lib/javacomp.h: New file, from GNU gettext.
74374         * lib/javacomp.c: New file, from GNU gettext.
74375
74376 2005-01-26  Simon Josefsson  <jas@extundo.com>
74377
74378         * lib/gai_strerror.c: Use GPL in header.
74379
74380 2005-01-26  Bruno Haible  <bruno@clisp.org>
74381
74382         * modules/javaexec: New file.
74383         * MODULES.html.sh (Java): Add javaexec.
74384
74385 2005-01-26  Bruno Haible  <bruno@clisp.org>
74386
74387         * m4/javaexec.m4: New file, from GNU gettext.
74388
74389 2005-01-26  Bruno Haible  <bruno@clisp.org>
74390
74391         * lib/javaexec.sh.in: New file, from GNU gettext.
74392         * lib/javaexec.h: New file, from GNU gettext.
74393         * lib/javaexec.c: New file, from GNU gettext.
74394
74395 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74396
74397         * modules/lchown (Depends-on): Remove lchown.h
74398
74399 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74400
74401         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74402         must be defined if the header file was not found, in order
74403         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74404
74405 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74406
74407         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74408         initializers for struct pentry_state.
74409         (__argp_error): Check return value of __asprintf
74410         (__argp_failure): Translate error message
74411
74412         * lib/argp-parse.c: Removed braces around the expansion of N_()
74413
74414 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74415
74416         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74417         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74418         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74419         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74420         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74421         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74422         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74423         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74424         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74425         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74426         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74427         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74428         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74429         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74430         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74431         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74432         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74433         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74434         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74435         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74436         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74437         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74438         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74439         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74440         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74441         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74442         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74443         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74444         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74445         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74446         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74447         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74448         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74449         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74450         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74451         Use an all-permissive copyright notice, recommended by RMS.
74452
74453 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         * modules/chdir-long (Depends-on): Remove mempcpy.
74456
74457 2005-01-21  Jim Meyering  <jim@meyering.net>
74458
74459         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74460         same value as for Solaris 9.
74461
74462         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74463         component length.  This included changing the parameter to be
74464         of type `char *' rather than `char const *'.
74465         * lib/chdir-long.h (chdir_long): Update prototype.
74466
74467         * lib/openat.c (fdopendir, fstatat): New functions.
74468         * lib/openat.h: Include headers required for use of DIR and struct
74469         stat.
74470         [AT_SYMLINK_NOFOLLOW]: Define.
74471         (fdopendir, fstatat): Add prototypes.
74472
74473 2005-01-21  Bruno Haible  <bruno@clisp.org>
74474
74475         * modules/classpath: New file.
74476         * MODULES.html.sh (Java): Add classpath.
74477
74478 2005-01-21  Bruno Haible  <bruno@clisp.org>
74479
74480         * lib/classpath.h: New file, from GNU gettext.
74481         * lib/classpath.c: New file, from GNU gettext.
74482
74483 2005-01-20  Simon Josefsson  <jas@extundo.com>
74484
74485         * modules/version-etc-fsf: New file.
74486
74487 2005-01-20  Simon Josefsson  <jas@extundo.com>
74488
74489         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74490         * lib/version-etc.c: Remove version_etc_copyright.
74491         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74492         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74493
74494 2005-01-20  Simon Josefsson  <jas@extundo.com>
74495
74496         * lib/base64.h (isbase64): Add.
74497
74498         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74499         using a unsigned prototype, don't inline.
74500         (base64_decode): Use it.
74501
74502 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74503
74504         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74505         it.
74506
74507 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74508
74509         * lib/save-cwd.c (save_cwd): Remove code to support the case
74510         where fchdir is missing or flaky.
74511
74512 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74513
74514         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74515
74516 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74517
74518         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74519         AC_LIBSOURCES now does this.
74520         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74521         with new ullong_max module.
74522
74523 2005-01-19  Bruno Haible  <bruno@clisp.org>
74524
74525         * modules/sh-quote: New file.
74526         * MODULES.html.sh (Executing programs): Add sh-quote.
74527
74528 2005-01-19  Bruno Haible  <bruno@clisp.org>
74529
74530         * lib/sh-quote.h: New file, from GNU gettext.
74531         * lib/sh-quote.c: New file, from GNU gettext.
74532
74533 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74534
74535         Merge from coreutils.
74536         * m4/ullong_max.m4: New file.
74537         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74538         (gl_MACROS): Assume localeconv exists.
74539
74540 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         Merge changes from coreutils, as described below in several
74543         changelogs dated today.
74544
74545         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74546         (O_DIRECTORY): Remove; not needed here, since "." must be
74547         a directory.  All uses removed.
74548         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74549         universal on Suns, and we also need to test for IRIX.
74550         Revamp code to use 'if' rather than '#if'.
74551         Avoid unnecessary comparison of cwd->desc to 0.
74552
74553         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74554         for known valid error numbers rather than observed invalid ones.
74555
74556 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74557
74558         * modules/ullong_max: New file.
74559
74560         * modules/chdir-long, modules/openat: New files.
74561         * modules/save-cwd (Depends-on): Depend on chdir-long.
74562         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74563
74564 2005-01-18  Jim Meyering  <jim@meyering.net>
74565
74566         Merge from coreutils.
74567         * m4/chdir-long.m4, m4/openat.m4: New files.
74568         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74569         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74570         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74571         is sane and DOES follow symlinks.  Besides, testing 20 different
74572         systems found no broken chown implementations.
74573         Prompted by a change in rsync's copy of this macro.
74574         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74575
74576         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74577
74578         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74579         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74580         NULL-means-set-to-current-time semantics.
74581         Remove temporary file immediately, rather than waiting
74582         for configure's at-exit trap code to do it.
74583
74584 2005-01-18  Jim Meyering  <jim@meyering.net>
74585
74586         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74587
74588         * lib/utimens.c (futimens): Account for the fact that futimes
74589         can also fail with errno == ENOSYS or errno == ENOENT.
74590         Patch from Dmitry V. Levin.
74591
74592         Change the name of the robust chdir function from chdir to chdir_long.
74593         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74594         (restore_cwd): Use chdir_long, not chdir.
74595         * lib/chdir-long.c: Renamed from chdir.c.
74596         * lib/chdir-long.h: Renamed from chdir.h.
74597         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74598         Hurd.
74599
74600 2005-01-18  Bruno Haible  <bruno@clisp.org>
74601
74602         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74603         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74604         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74605         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74606         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74607         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74608         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74609         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74610         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74611         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74612         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74613         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74614         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74615         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74616         Use an all-permissive copyright notice, recommended by RMS.
74617
74618 2005-01-18  Bob Proulx  <bob@proulx.com>
74619
74620         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74621         simplify offsetof() macro construct to avoid compile failure with
74622         native HP-UX 11.0 ANSI C compiler.
74623
74624 2005-01-17  Bruno Haible  <bruno@clisp.org>
74625
74626         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74627         redundant because stpncpy.m4 takes care of it.
74628
74629 2005-01-17  Bruno Haible  <bruno@clisp.org>
74630
74631         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74632
74633 2005-01-17  Bruno Haible  <bruno@clisp.org>
74634
74635         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74636         used.
74637
74638 2005-01-17  Bruno Haible  <bruno@clisp.org>
74639
74640         * lib/fwriteerror.h (fwriteerror): Change specification to include
74641         fclose.
74642         * lib/fwriteerror.c: Include <stdbool.h>.
74643         (fwriteerror): At the end, close the file stream. Record whether
74644         stdout was already closed.
74645
74646 2005-01-17  Bruno Haible  <bruno@clisp.org>
74647
74648         * lib/execute.c (environ): Declare if needed.
74649         * lib/pipe.c (environ): Likewise.
74650         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74651
74652 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74653
74654         * modules/argp: Depend on vsnprintf
74655
74656 2005-01-10  Jim Meyering  <jim@meyering.net>
74657
74658         * modules/closeout (Depends-on): Add atexit.
74659
74660 2005-01-06  Bruno Haible  <bruno@clisp.org>
74661
74662         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74663
74664 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74667         definitions to be after all include files, to avoid collisions.
74668         Problem reported by Bob Proulx.
74669
74670 2005-01-04  Jim Meyering  <jim@meyering.net>
74671
74672         Changes imported from coreutils.
74673         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74674         as the mkstemp template, use a temporary directory and an
74675         8.3-friendly template to avoid trouble on systems like DJGPP.
74676         Reported by Juan M. Guerrero via Stepan Kasal.
74677         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74678         close. Remove the temporary directory right away, rather than waiting
74679         for configure's at-exit trap code to do it.
74680         Suggestion from Stepan Kasal.
74681
74682 2005-01-01  Simon Josefsson  <jas@extundo.com>
74683
74684         * gnulib-tool: Print #include directives when --import'ing.
74685
74686 2004-12-28  Simon Josefsson  <jas@extundo.com>
74687
74688         * tests/test-base64.c: Include required header files.  Remove
74689         unused variables.
74690
74691 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74692
74693         * modules/error (Depends-on): Remove gettext.
74694
74695 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74696
74697         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74698         not needed.  This removes a dependency on the gettext module.
74699         [defined _LIBC]: Do not include <libintl.h>; not needed.
74700
74701 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74702
74703         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74704         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74705
74706 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74707
74708         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74709         HAVE_DECL_STRTOLD.
74710
74711 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * modules/getdate (Depends-on): Remove alloca-opt.
74714
74715 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74716
74717         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74718
74719 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         * lib/argp-parse.c: Include <stddef.h>.
74722         (alignof, alignto): New macros.
74723         (parser_init): Don't assume that void * is aligned sufficiently
74724         for struct option.
74725
74726         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74727         need to extend the stack.
74728         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74729         large.
74730
74731 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74732
74733         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74734
74735 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74736
74737         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74738         (2004-10-24) change.  Apparently this was a false alarm.
74739
74740         * modules/getdate: Depend on alloca-opt, not alloca.
74741
74742 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74745         Remove now-obsolete comment about AIX.
74746         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74747         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74748         (YYMAXDEPTH): New macro.
74749
74750 2004-12-18  Simon Josefsson  <jas@extundo.com>
74751
74752         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74753
74754 2004-12-18  Bruno Haible  <bruno@clisp.org>
74755
74756         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74757
74758 2004-12-18  Bruno Haible  <bruno@clisp.org>
74759
74760         * lib/fatal-signal.c (fatal_signals): Make non-const.
74761         (init_fatal_signals): New function.
74762         (uninstall_handlers, install_handlers): Ignore signals that were set to
74763         SIG_IGN.
74764         (at_fatal_signal): Call init_fatal_signals.
74765         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74766         SIG_IGN.
74767         Reported by Paul Eggert.
74768
74769 2004-12-18  Bruno Haible  <bruno@clisp.org>
74770
74771         * doc/alloca.texi: New file.
74772         * doc/alloca-opt.texi: New file.
74773
74774 2004-12-17  Jim Meyering  <jim@meyering.net>
74775
74776         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74777         Otherwise, install-sh could exit with improper exit status when
74778         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74779
74780 2004-12-16  Simon Josefsson  <jas@extundo.com>
74781
74782         * tests/test-base64.c: Add license.
74783
74784 2004-12-15  Stepan Kasal  <address@hidden>
74785
74786         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74787
74788 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74789
74790         * modules/getcwd (Files): Add m4/d-ino.m4.
74791         Suggested by Mark D. Baushke.
74792
74793 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74794
74795         * lib/getdate.y (textint): New member "negative".
74796         (time_zone_hhmm): New function.
74797         Expect 14 shift-reduce conflicts, not 13.
74798         (o_colon_minutes): New rule.
74799         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74800         (yylex): Set the "negative" member of signed numbers.
74801
74802 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         * doc/getdate.texi (Time of day items, Time zone items):
74805         Describe new formats +00:00, UTC+00:00.
74806
74807 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74808
74809         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74810         spurious "-l"s.  Problem reported by Stepan Kasal.
74811
74812 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74815         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74816
74817 2004-12-04  Simon Josefsson  <jas@extundo.com>
74818
74819         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74820         Vandoorselaere <yoann@prelude-ids.org>.
74821
74822 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         Changes imported from coreutils.
74825         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74826         exist.
74827         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74828
74829 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74830
74831         Changes imported from coreutils.
74832         * lib/hard-locale.c: Assume <locale.h> exists.
74833         Include "strdup.h".
74834         (GLIBC_VERSION): New macro.
74835         (hard_locale): Assume setlocale exists.
74836         Rewrite to avoid #ifdef.
74837         Use strdup rather than malloc + strcpy.
74838         * lib/human.c: Assume <locale.h> exists.
74839         (human_readable): Assume localeconv exists.
74840
74841 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74842
74843         * modules/hard-locale (Depends-on): Add strdup.
74844
74845 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74846
74847         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74848         convert T2, not T.  (Imported from libc.)
74849
74850 2004-11-30  Simon Josefsson  <jas@extundo.com>
74851
74852         * modules/restrict (License): Change to LGPL.
74853
74854 2004-11-30  Simon Josefsson  <jas@extundo.com>
74855
74856         * m4/restrict.m4: Add copyright and copying conditions.
74857
74858 2004-11-30  Simon Josefsson  <jas@extundo.com>
74859
74860         * m4/base64.m4: New file.
74861
74862 2004-11-30  Simon Josefsson  <jas@extundo.com>
74863
74864         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74865         base64.
74866
74867         * tests/test-base64.c: New file.
74868
74869         * modules/base64: New file.
74870
74871 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74872
74873         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74874         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74875
74876         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74877
74878 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74881         (__getcwd.c): Don't restore errno; glibc doesn't.
74882         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74883         first, falling back to our code only if its results look suspicious.
74884         Ensure that the resulting buffer is only as large as necessary.
74885
74886         * lib/readutmp.c: Include readutmp.h first.
74887         Include <errno.h>, since readutmp.h no longer does that.
74888         * lib/readutmp.h: Don't include <errno.h>,
74889         <sys/param.h>, <time.h>; not needed to establish interface.
74890         (errno): Remove decl.
74891         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74892         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74893         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74894
74895 2004-11-28  Simon Josefsson  <jas@extundo.com>
74896
74897         * lib/base64.h, base64.c: New file.
74898
74899 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74900
74901         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74902
74903 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74904
74905         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74906         (Depends-on): Remove pathmax, same.  Add mempcpy.
74907         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74908         (Makefile.am): Append getcwd.h to lib_SOURCES.
74909         (Include): Add getcwd.h.
74910         (Maintainer): Change from Jim Meyering to "all, glibc",
74911         since getdate now uses intended-for-glibc code.
74912         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74913         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74914
74915 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74916
74917         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74918         HP's ANSI C compiler.
74919         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74920         Declaring int functions causes warnings on some modern systems and
74921         shouldn't be needed to compile on ancient ones.
74922         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74923         defined.
74924
74925         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74926         with the following changes.
74927         (__set_errno): Parenthesize properly.
74928         Include <stdbool.h>.
74929         (MIN, MAX, MATCHING_INO): New macros.
74930         (__getcwd): Define with prototype, not K&R form.
74931         Use heuristics to allocate default buffer on stack if possible.
74932         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74933         behavior, and to avoid the PATH_MAX limit when computing
74934         ../../../../...
74935         Use MATCHING_INO to compare inode number to file.
74936         Check for arithmetic overflow in size calculations.
74937         Fix bug in reallocation of dot array that caused getcwd to fail
74938         on directories nested deeper than 75.
74939         Be more careful about saving errno on error.
74940         Do not use realloc; use only free+malloc, as this is a bit
74941         more flexible and avoids a needless copy operation.
74942         Do not inspect st_dev and st_ino for symbolic links; POSIX
74943         doesn't specify the latter.
74944         Check for closedir errors.
74945         Avoid needless casts.
74946         Use "#ifdef weak_alias" around weak_alias, to be like other
74947         glibc code.
74948         The following changes to getcwd.c have effect only when used in
74949         gnulib; they have no effect inside glibc proper.
74950         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74951         as alloca isn't used.
74952         (alloca, __alloca): Likewise.
74953         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74954         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74955         unconditionally, as gnulib assumes C89 or better.
74956         Do not include <sys/param.h>.
74957         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74958         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74959         better.
74960         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74961         Include <dirent.h> in a way that is compatible with modern Autoconf.
74962         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74963         New macros, if not already defined.
74964         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74965         Use "_LIBC", not "defined _LIBC", for consistency.
74966         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74967         a mempcpy module.
74968         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74969         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74970         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74971         credit only to Jim Meyering and adjust the copyright dates.
74972         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74973         <stdlib.h>, <unistd.h>, "pathmax.h".
74974         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74975         (INITIAL_BUFFER_SIZE): Remove.
74976         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74977
74978 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74979
74980         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74981         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74982         Use the _ONCE methods, for efficiency.
74983         Check for fcntl.h.  In test program, include <errno.h>
74984         and <fcntl.h> if available.  Remove old K&R cruft from
74985         test program.  Check for common errors in GNU/Linux,
74986         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74987         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74988         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74989         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74990         name accordingly.
74991         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74992         accommodate new getcwd.c.
74993         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74994         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74995         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74996         that's all we need now.
74997
74998 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74999
75000         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75001         argp-parse.c depends on getopt internals, that means we should
75002         always use our getopt, to be on the safe side.
75003         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75004         order not to spoil the result of an eventual previous invocation
75005         of gl_GETOPT_SUBSTITUTE.
75006
75007 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75008
75009         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75010         redefinition warnings. To avoid them, include the defines
75011         in `#if !defined __need_getopt ... #endif'. The only place
75012         where __getopt_argv_const is used is in definitions
75013         of getopt_long and getopt_long_only below, which are as well
75014         protected by `#ifndef __need_getopt'.
75015         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75016         __need_getopt after including <stdio.h> and <unistd.h> These
75017         headers might have defined it.
75018
75019 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75020
75021         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75022
75023 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75024
75025         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75026         (futimens): New function, which uses futimes if available.
75027         (futimens, utimens): Support timespec==NULL, with same semantics
75028         as utime and utimens.
75029         * lib/utimens.h (futimens): New decl.
75030
75031 2004-11-23  Jim Meyering  <jim@meyering.net>
75032
75033         * lib/getopt_.h: Remove trailing blanks.
75034
75035 2004-11-23  Jim Meyering  <jim@meyering.net>
75036
75037         * lib/__fpending.c: Add comment.
75038
75039 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75040
75041         * modules/canonicalize (Depends-on): Add xreadlink.
75042         Problem reported by James Youngman.
75043
75044 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75045
75046         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75047         New macros.
75048         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75049         optopt): Use them instead of invoking ## directly; otherwise, the
75050         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75051
75052 2004-11-19  Bruno Haible  <bruno@clisp.org>
75053
75054         * lib/strtok_r.c: Move comments from here...
75055         * lib/strtok_r.h: ... to here.
75056
75057 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75058
75059         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75060         implementations that mishandle size_t overflow.
75061
75062 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75063
75064         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75065         might fail.  Problem reported by Yoann Vandoorselaere.
75066         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75067         implementations that mishandle size_t overflow.
75068
75069 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75070
75071         * modules/canon-host (Depends-on): Add strdup.
75072
75073 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75074
75075         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75076
75077 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75078
75079         * lib/canon-host.c: Include "strdup.h".
75080         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75081         Use strdup instead of malloc/strcpy to duplicate strings.
75082
75083         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75084         (human_space_before_unit): New constant.
75085         * lib/human.c (human_readable): Support it.
75086
75087         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75088         (xgetcwd): Set errno correctly when failing.
75089         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75090         the failure is actually due to a PATH_MAX problem.
75091
75092         Further getopt changes to make it more likely that glibc will
75093         buy the changes back.
75094         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75095         (getopt): Use it, so to preserve glibc semantic
75096         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75097         when compiling for libc.
75098         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75099         (getopt_long, getopt_long_only): Use it.
75100
75101         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75102         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75103         (getopt): Argv is now char * const *, as per standard.
75104         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75105         not char *__getopt_argv_const *.
75106         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75107         _getopt_long_only_r): Likewise.
75108         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75109         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75110         _getopt_long_r, _getopt_long_only_r): Likewise.
75111         * lib/getopt_.h (__getopt_argv_const): Remove.
75112         (getopt): Argv is now char * const *, as per standard.
75113
75114         * lib/getdate.y (tORDINAL): New token.
75115         (day, relunit): Allow it for relative times.
75116         (relative_time_table): Use tORDINAL for ordinals.
75117
75118 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75119
75120         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75121         Document that "second" isn't allowed as an ordinal number.
75122
75123 2004-11-16  Jim Meyering  <jim@meyering.net>
75124
75125         * modules/closeout (Depends-on): Add fpending.
75126
75127 2004-11-15  Jim Meyering  <jim@meyering.net>
75128
75129         * lib/closeout.c: Include "__fpending.h" once again.
75130         Include <stdbool.h>.
75131         (close_stdout): Don't fail just because stdout was closed initially,
75132         since some programs don't write to stdout in the normal course of
75133         operation (other than --version and --help), and we don't want this
75134         function to make e.g. `touch file >&-' fail.
75135         But do fail if it was closed and someone has tried to write to it.
75136         E.g., `printf foo >&-' must fail.
75137
75138 2004-11-13  Jim Meyering  <jim@meyering.net>
75139
75140         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75141
75142 2004-11-12  Simon Josefsson  <jas@extundo.com>
75143
75144         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75145         small doc fix is still pending.
75146
75147 2004-11-11  Simon Josefsson  <jas@extundo.com>
75148
75149         * modules/strtok_r: New file.
75150
75151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75152         strtok_r.
75153
75154 2004-11-11  Simon Josefsson  <jas@extundo.com>
75155
75156         * m4/strtok_r.m4: New file.
75157
75158         * m4/getopt.m4: Replace opterr.
75159
75160 2004-11-11  Simon Josefsson  <jas@extundo.com>
75161
75162         * lib/strtok_r.h, strtok_r.c: New file.
75163
75164 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75165
75166         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75167         of replacing opterr, getopt, etc.  This should handle the
75168         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75169
75170 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75171
75172         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75173         we can stop lying to compilers about the constness of argv when we
75174         are compiled outside glibc.
75175         (getopt, getopt_long, getopt_long_only): Use it.
75176         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75177         _getopt_internal, getopt): Likewise.
75178         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75179         _getopt_long_only_r): Likewise.
75180         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75181         _getopt_long_r, _getopt_long_only_r): Likewise.
75182
75183         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75184         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75185         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75186         the other external symbols.
75187         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75188         declaration, since the above renaming now works around collisions.
75189
75190 2004-11-11  Jim Meyering  <jim@meyering.net>
75191
75192         * lib/linebreak.c: Remove trailing blanks.
75193         * lib/alloca_.h: Likewise.
75194         * lib/acosl.c: Likewise.
75195         * lib/euidaccess.c: Likewise.
75196         * lib/allocsa.h: Likewise.
75197
75198 2004-11-10  Simon Josefsson  <jas@extundo.com>
75199
75200         * m4/getaddrinfo.m4: New file.
75201
75202 2004-11-10  Simon Josefsson  <jas@extundo.com>
75203
75204         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75205
75206 2004-11-10  Simon Josefsson  <jas@extundo.com>
75207
75208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75209         getaddrinfo.
75210
75211         * modules/getaddrinfo: New file.
75212
75213 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75214
75215         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75216
75217 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75218
75219         * lib/mktime.c (SHR): New macro, which is a portable
75220         substitute for >> that should work even on Crays.
75221         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75222         Problem reported by Mark D. Baushke in
75223         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75224         * lib/getdate.y (SHR): Likewise.
75225         (tm_diff): Use it.
75226         * lib/strftime.c (SHR): Likewise.
75227         (tm_diff): Use it.
75228         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75229         quote_these_too, so that right shifts are well defined.  All uses
75230         changed.
75231
75232 2004-11-10  Jim Meyering  <jim@meyering.net>
75233
75234         Ensure that no close failure goes unreported.
75235         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75236         return early when it seems there's nothing to flush.
75237         Don't include __fpending.h.
75238
75239 2004-11-10  Jim Meyering  <jim@meyering.net>
75240
75241         * modules/closeout (Depends-on): Remove fpending.
75242
75243 2004-11-10  Jim Meyering  <jim@meyering.net>
75244
75245         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75246
75247 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75248
75249         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75250         gl_FUNC_STRFTIME.
75251         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75252         and AC_REQUIRE when possible, to avoid duplicate checks.
75253         Check for <wchar.h>.
75254
75255 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75256
75257         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75258
75259 2004-11-09  Bruno Haible  <bruno@clisp.org>
75260
75261         * m4/sockpfaf.m4: New file.
75262
75263 2004-11-05  Bruno Haible  <bruno@clisp.org>
75264
75265         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75266         Reported by Mark D. Baushke <mdb@cvshome.org>.
75267
75268 2004-11-04  Bruno Haible  <bruno@clisp.org>
75269
75270         2004-09-11  Bruno Haible  <bruno@clisp.org>
75271                 * allocsa.valgrind: New file.
75272         2004-02-06  Bruno Haible  <bruno@clisp.org>
75273                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75274                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75275                 Reported by Christopher Seip <chris.seip@hp.com>.
75276
75277 2004-11-04  Bruno Haible  <bruno@clisp.org>
75278
75279         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75280         (Makefile.am): Distribute it.
75281
75282 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75283
75284         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75285         with errno == ERANGE if the buffer is too small.
75286         Problem reported by Mark D. Baushke.
75287
75288 2004-11-03  Albert Chin  <china@thewrittenword.com>
75289             Paul Eggert  <eggert@cs.ucla.edu>
75290
75291         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75292         equivalent, substitute $ac_type for equivalent type rather than
75293         blindly using uint32_t *always* which won't work if uint32_t is not
75294         available.  Define _UINT32_T to work around typedef of uint32_t if
75295         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75296         2.5.1.
75297
75298 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75299
75300         * m4/jm-macros.m4: Sync from coreutils.
75301         (gl_MACROS): Check for mbrlen, for pathchk.
75302         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75303
75304 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75305
75306         * lib/xreadlink.c (MAXSIZE): New macro.
75307         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75308         size does not exceed MAXSIZE.  Avoid cast.
75309         As suggested by Mark D. Baushke in
75310         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75311         if readlink fails with buffer size just under MAXSIZE, try again
75312         with MAXSIZE.
75313
75314 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75315
75316         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75317
75318 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75319         and  Paul Eggert  <eggert@cs.ucla.edu>
75320
75321         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75322         (get_date): Overparenthesize to avoid GCC warning.
75323
75324 2004-11-02  Bruno Haible  <bruno@clisp.org>
75325
75326         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75327         returns void.
75328
75329 2004-11-02  Bruno Haible  <bruno@clisp.org>
75330
75331         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75332         function returns void.
75333
75334 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75335
75336         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75337         fflush_unlocked, flockfile, funlockfile, funlockfile,
75338         fputs_unlocked, putc_unlocked.
75339
75340 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75341
75342         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75343         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75344         already declared.
75345
75346 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75347
75348         * modules/getdate (Files): Add doc/getdate.texi.
75349         (Depends-on): Add setenv, xalloc.
75350
75351 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75352
75353         * lib/getdate.y: Add support for TZ="foo" within a date string.
75354         Fix some bugs near time_t boundaries.  Reject dates with
75355         out-of-range components, e.g., "Sept 31".
75356         Include <stdlib.h>, "setenv.h", "xalloc.h".
75357         (ISDIGIT_LOCALE): Remove; unused.
75358         Note that the TZ and time functions used here are not reentrant.
75359         (mktime_ok, get_tz): New functions.
75360         (TZBUFSIZE): New constant.
75361         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75362         This requires that we sometimes generate our own TZ="XXX..." setting.
75363
75364 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75365
75366         * doc/getdate.texi: New file, from coreutils with modifications for
75367         the new TZ parsing.
75368
75369 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75370
75371         * lib/mktime.c (not_equal_tm): Remove redundant check.
75372
75373 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75374
75375         * modules/regex (lib_SOURCES): Add regex.c.
75376         Reported by James Youngman in
75377         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75378
75379 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75380
75381         * lib/getdate.y: Use Bison 1.875 features, and some minor
75382         code cleanups.  This change does not affect semantics.
75383         Don't include <stdlib.h>; no longer needed.
75384         Don't include unlocked-io.h; only the "#if TEST" code uses
75385         stdio, and performance isn't crucial there.
75386         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75387         Bison 1.875 features as described below.
75388         All uses of "PC." replaced by "pc->".
75389         (YYSTYPE): Add a forward declaration.
75390         (yylex, yyerror): Use full prototypes in forward decls.
75391         Use "%pure-parser" rather than obsolescent "%pure_parser".
75392         Use %parse-param and %lex-param instead of obsolescent
75393         YYPARSE_PARAM and YYLEX_PARAM.
75394         (meridian_table, month_and_day_table, time_units_table,
75395         relative_time_table, time_zone_table, military_table,
75396         lookup_zone, lookup_word, get_date):
75397         Use NULL instead of 0 where appropriate.
75398         (to_hour): Avoid abort (), to avoid a dependency on
75399         stdlib.h.
75400         (yyerror, yylex): Now accepts parser_control * arg.
75401         (main) [TEST]: Use '\0' rather than 0 for char.
75402
75403 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75404
75405         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75406
75407 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75408
75409         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75410         It's now the caller's responsibility to handle the case where
75411         !HAVE_GETPAGESIZE && !defined getpagesize.
75412
75413         * lib/mktime.c (leapyear): Arg is long int, not int.
75414
75415 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75416
75417         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75418
75419 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75420
75421         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75422         missing.  Problem reported by James Youngman.
75423
75424 2004-10-16  Simon Josefsson  <jas@extundo.com>
75425
75426         * gnulib-tool: Fix comments.  Fix parse problem.
75427         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75428
75429 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75430
75431         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75432         implementation of getopt_long.  Problem reported by Alexander Taler in:
75433         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75434
75435 2004-10-15  Bruno Haible  <bruno@clisp.org>
75436
75437         * gnulib-tool: Untabify. Initialize supplied_libname.
75438         (func_usage): More homogenous output.
75439         (func_modules_transitive_closure, func_modules_to_filelist,
75440         func_emit_lib_Makefile_am): New functions.
75441         (func_import): New function, extracted from big case statement. Use
75442         func_get_license, func_modules_transitive_closure,
75443         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75444         opt_lgpl. Don't use test -a, as it's not portable.
75445         (func_create_testdir): Use func_modules_transitive_closure,
75446         func_modules_to_filelist, func_emit_lib_Makefile_am.
75447
75448 2004-10-15  Bruno Haible  <bruno@clisp.org>
75449
75450         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75451
75452 2004-10-15  Bruno Haible  <bruno@clisp.org>
75453
75454         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75455         the portions belonging to each module.
75456         Suggested by Derek Robert Price <derek@ximbiot.com>.
75457
75458 2004-10-12  Simon Josefsson  <jas@extundo.com>
75459
75460         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75461         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75462         to real functions.
75463
75464 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75465
75466         * modules/vsnprintf: New file.
75467
75468 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75469
75470         * m4/vsnprintf.m4: New file.
75471
75472 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75473
75474         * lib/vsnprintf.h: New file.
75475         * lib/vsnprintf.c: New file.
75476
75477 2004-10-11  Bruno Haible  <bruno@clisp.org>
75478
75479         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75480         vsnprintf.
75481
75482 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75485
75486 2004-10-07  Bruno Haible  <bruno@clisp.org>
75487
75488         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75489         fits into the provided buffer.
75490
75491 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75492
75493         * lib/diacrit.c, diacrit.h: Add GPL notice.
75494
75495         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75496         notice.
75497         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75498         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75499         This avoids a potential constant-folding bug.
75500
75501 2004-10-05  Bruno Haible  <bruno@clisp.org>
75502
75503         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75504         for the declaration of strsep.
75505
75506 2004-10-05  Bruno Haible  <bruno@clisp.org>
75507
75508         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75509
75510 2004-10-04  Simon Josefsson  <jas@extundo.com>
75511
75512         * modules/memmem: New file.
75513         * tests/test-memmem.c: New file.
75514         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75515
75516 2004-10-04  Simon Josefsson  <jas@extundo.com>
75517
75518         * m4/memmem.m4: New file.
75519
75520 2004-10-04  Simon Josefsson  <jas@extundo.com>
75521
75522         * lib/memmem.h: New file.
75523         * lib/memmem.c: New file, taken from glibc.
75524
75525 2004-10-04  Simon Josefsson  <jas@extundo.com>
75526
75527         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75528         '#ifdef USE_UNLOCKED_IO'.
75529
75530 2004-10-04  Simon Josefsson  <jas@extundo.com>
75531
75532         * config/srclist.txt: Add memmem from glibc.
75533
75534 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75535
75536         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75537
75538         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75539         modules/exclude, modules/getdate, modules/getline,
75540         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75541         modules/getusershell, modules/linebuffer, modules/md5,
75542         modules/mountlist, modules/posixtm, modules/readtokens,
75543         modules/readutmp, modules/regex, modules/sha1,
75544         modules/version-etc, modules/yesno:
75545         Remove dependency on unlocked-io.
75546
75547 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75548
75549         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75550
75551         * m4/unlocked-io.m4: Add copyright notice.
75552         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75553
75554 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75555
75556         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75557         * lib/xmalloc.c (xmemdup): Likewise.
75558         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75559         XFREE): Remove these long-obsolescent macros.
75560         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75561         * lib/xstrdup.c: Remove.
75562
75563         * lib/regex.c (re_comp): Cast gettext return value to char *,
75564         Problem reported by Martin Neitzel via Mark D. Baushke.
75565
75566 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75569         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75570         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75571         regex.c, sha1.c, version-etc.c, yesno.c:
75572         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75573         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75574         the includer's responsibility.
75575
75576         Sync from coreutils.
75577
75578         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75579         points to the start of a string, as the C Standard says the
75580         resulting behavior is undefined.
75581
75582         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75583         simple -> simple_backups, numbered_existing ->
75584         numbered_existing_backups, numbered -> numbered_backups
75585         to avoid shadowing problems.  All uses changed.
75586         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75587         * lib/backupfile.c (check_extension, numbered_backup):
75588         Rename locals to avoid shadowing 'basename'.
75589         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75590         once.
75591
75592         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75593         * lib/.cvsignore: Add getopt.h.
75594
75595 2004-10-04  Bruno Haible  <bruno@clisp.org>
75596
75597         * modules/README: New file.
75598         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75599         not a module.
75600
75601 2004-10-02  Jim Meyering  <jim@meyering.net>
75602
75603         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75604
75605 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75606
75607         * modules/strsep: New file.
75608
75609 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75610
75611         * m4/strsep.m4: New file.
75612
75613 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75614
75615         * lib/strsep.h: New file.
75616         * lib/strsep.c: New file.
75617
75618 2004-10-01  Simon Josefsson  <jas@extundo.com>
75619
75620         * lib/snprintf.c (snprintf): Handle size==0.
75621
75622 2004-10-01  Simon Josefsson  <jas@extundo.com>
75623             Bruno Haible  <bruno@clisp.org>
75624
75625         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75626         (snprintf): Declare 'args'.
75627
75628 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75629
75630         * lib/snprintf.c: Remove comments as to why each header is needed.
75631
75632 2004-10-01  Bruno Haible  <bruno@clisp.org>
75633
75634         * MODULES.html.sh: Add strsep.
75635
75636 2004-09-30  Simon Josefsson  <jas@extundo.com>
75637
75638         * modules/snprintf: New file.
75639
75640 2004-09-30  Simon Josefsson  <jas@extundo.com>
75641
75642         * m4/snprintf.m4: New file.
75643
75644 2004-09-30  Simon Josefsson  <jas@extundo.com>
75645
75646         * lib/snprintf.h, lib/snprintf.c: New files.
75647
75648 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75649
75650         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75651         (hol_entry_help): Never translate an empty string.
75652         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75653         * lib/argp.h (OPTION_NO_TRANS): New option.
75654
75655 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75656
75657         * modules/argp (Maintainer): Replace Simon Josefsson
75658         by Sergey Poznyakoff.
75659
75660 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75661
75662         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75663         changes merged back into glibc.
75664
75665 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75666
75667         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75668
75669 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75670
75671         * lib/xvasprintf.c: Include xalloc.h.
75672         (xvasprintf): Use xalloc_die, not xmalloc_die.
75673
75674 2004-09-29  Bruno Haible  <bruno@clisp.org>
75675
75676         * modules/alloca-opt: New file, derived from modules/alloca.
75677         * modules/allocsa: Depend on alloca-opt instead of alloca.
75678         * modules/setenv: Likewise.
75679         * modules/vasnprintf: Likewise.
75680         * MODULES.html.sh: Add alloca-opt.
75681
75682 2004-09-28  Simon Josefsson  <jas@extundo.com>
75683
75684         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75685         LGPL, and to replace license template from GPL to LGPL.
75686
75687 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75688
75689         * modules/dummy: Change license to LGPL.
75690
75691 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75692
75693         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75694
75695 2004-09-24  Simon Josefsson  <jas@extundo.com>
75696
75697         * modules/minmax (License): Change from GPL to LGPL.
75698
75699 2004-09-23  Simon Josefsson  <jas@extundo.com>
75700
75701         * gnulib-tool (--import): Typo.
75702
75703 2004-09-23  Simon Josefsson  <jas@extundo.com>
75704
75705         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75706
75707 2004-09-22  Bruno Haible  <bruno@clisp.org>
75708
75709         * modules/*: Add 'License' field.
75710         * gnulib-tool: Accept --extract-license option.
75711         (func_get_license): New function.
75712
75713 2004-09-21  Bruno Haible  <bruno@clisp.org>
75714
75715         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75716         Reported by Simon Josefsson.
75717
75718 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75721         gl_AC_TYPE_LONG_LONG.
75722
75723 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75724
75725         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75726
75727 2004-09-18  Simon Josefsson  <jas@extundo.com>
75728         and  Paul Eggert  <eggert@cs.ucla.edu>
75729
75730         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75731         calls with autoreconf.  Define GL_LIB.
75732
75733 2004-09-14  Karl Berry  <karl@gnu.org>
75734
75735         * config/srclist.txt: unsync setenv.c, sigh.
75736
75737 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75738
75739         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75740         Problem reported by Bruno Haible in:
75741         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75742
75743 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75744
75745         * config/srclist.txt: Comment out argp-pvh.c.
75746
75747 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75748
75749         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75750         in case some system header has #define'd it.  Problem reported by
75751         Soeren D. Schulze in
75752         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75753
75754 2004-09-09  Karl Berry  <karl@gnu.org>
75755
75756         * regex.[ch]: delete from the root.  These were supposed to be
75757                 synced with emacs cvs, but this has not happened for about
75758                 a year, and anyway nothing else uses emacs regex.[ch].
75759                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75760                 lib/regex[.ch] is untouched.
75761
75762 2004-09-09  Bruno Haible  <bruno@clisp.org>
75763
75764         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75765
75766 2004-09-09  Bruno Haible  <bruno@clisp.org>
75767
75768         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75769         modifications.
75770         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75771
75772 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75773
75774         * modules/xvasprintf: New file.
75775         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75776
75777 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75778
75779         * lib/xvasprintf.h: New file.
75780         * lib/xvasprintf.c: New file.
75781         * lib/xasprintf.c: New file.
75782
75783 2004-09-08  Bruno Haible  <bruno@clisp.org>
75784
75785         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75786
75787 2004-09-08  Bruno Haible  <bruno@clisp.org>
75788
75789         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75790         length is > INT_MAX.
75791         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75792         more.
75793
75794 2004-09-08  Bruno Haible  <bruno@clisp.org>
75795
75796         * lib/stdint_.h: New file, taken from GNU clisp.
75797
75798 2004-09-08  Bruno Haible  <bruno@clisp.org>
75799             Oskar Liljeblad  <oskar@osk.mine.nu>
75800
75801         * modules/stdint: New file.
75802         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75803
75804 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         Import from coreutils.
75807         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75808         strings on unbounded length.  alloca's performance benefits aren't
75809         that important here.
75810         (V_STRDUP): Remove.
75811         (parse_with_separator): New function, with most of the internals
75812         of the old parse_user_spec.  Allow user to omit both user and group,
75813         for compatibility with FreeBSD.
75814         Clone only the user name, not the entire spec.
75815         Do not set *uid, *gid unless entirely successful.
75816         Avoid memory leak in some failing cases.
75817         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75818         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75819         (parse_user_spec): Rewrite to use parse_with_separator.
75820
75821 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * modules/userspec: Don't depend on alloca.
75824
75825 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75826
75827         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75828
75829 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75830
75831         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75832         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75833         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75834
75835 2004-08-16  Simon Josefsson  <jas@extundo.com>
75836
75837         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75838         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75839         Add --dry-run for --import.
75840         Let user provided command line parameters override configure.ac
75841         settings.
75842
75843 2004-08-12  Simon Josefsson  <jas@extundo.com>
75844
75845         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75846         as discussed with Paul Eggert in threads rooted at
75847         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75848         and
75849         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75850         Before, the test was empty, and relied on ELIDE_CODE in source
75851         code.)
75852         (gl_PREREQ_GETOPT): New macro.
75853         (gl_GETOPT): Use them.
75854
75855 2004-08-12  Simon Josefsson  <jas@extundo.com>
75856
75857         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75858         * lib/getopt_.h: Renamed from getopt.h.
75859
75860 2004-08-12  Simon Josefsson  <jas@extundo.com>
75861
75862         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75863         Change default library name from libfoo to libgnu.
75864         Now, if you have a configure.ac that says:
75865                 gl_SOURCE_BASE(gl)
75866                 gl_M4_BASE(gl/m4)
75867                 gl_MODULES(error getopt etcetera)
75868                 gl_INIT
75869         you can import all you need by running:
75870                 ../gnulib/gnulib-tool --import
75871
75872         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75873         (Makefile.am): Rewrite, use logic from argz.
75874         (Include): Use <getopt.h> instead of "getopt.h".
75875
75876 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75877
75878         * modules/argp (Files): Add m4/unlocked-io.m4.
75879         (Depends-on): Add extensions.
75880
75881 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75882
75883         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75884         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75885         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75886         Check for program_invocation_name, program_invocation_short_name,
75887         flockfile, funlockfile, features.h, _getopt_long_only_r.
75888
75889 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75890
75891         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75892         its complicated substitute.
75893         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75894         and program_invocation_name.
75895         (__argp_basename) [!_LIBC]: Remove; the only use was
75896         replaced by its body.
75897         (__argp_short_program_name): Change condition from
75898         !defined __argp_short_program_name to
75899         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75900         to match argp-namefrob.h.
75901         (__argp_failure): Don't assume strerror_r returns char *.
75902         * lib/argp-parse.c (N_): Define unconditionally.
75903         (argp_default_options): Fill out initializers with 0 to avoid
75904         gcc warnings.
75905
75906 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75909         getopt1.c.
75910
75911 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         Merge from coreutils.
75914
75915         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75916
75917         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75918         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75919
75920 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75921
75922         Merge from coreutils.
75923
75924         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75925         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75926         for Reliant Unix 5.43.
75927
75928         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75929         (union fooround): Use uintmax_t, not long int.
75930         The rest is a merge from libc:
75931         [defined _LIBC]: Include <shlib-compat.h>.
75932         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75933
75934         * lib/settime.c (settime): Recode to avoid warning with
75935         Sun Forte C 6U2.
75936
75937         * lib/strverscmp.c: Convert to UTF-8.
75938
75939 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75940
75941         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75942         m4/uintmax_t.m4.
75943
75944 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75945
75946         * modules/xalloc-die: New file.
75947         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75948
75949         * modules/md5 (Files): Add m4/uint32_t.m4.
75950         * modules/sha1: Renamed from modules/sha.
75951         (Files):
75952         Rename lib/sha.h to lib/sha1.h.
75953         Rename lib/sha.c to lib/sha1.c.
75954         Rename m4/sha.m4 to m4/sha1.m4.
75955         (lib_SOURCES): Likewise.
75956         (configure.ac): Rename gl_SHA to gl_SHA1.
75957         (Include): sha.h -> sha1.h.
75958
75959 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75960
75961         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75962         * m4/sha1.m4: Renamed from sha.m4.
75963         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75964
75965 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75966
75967         * lib/obstack.h (obstack_empty_p):
75968         Don't assume that chunk->contents is suitably aligned.
75969         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75970         Likewise. Problem reported by Benno in
75971         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75972
75973         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75974         readable.  This could be improved further but it'd take some work.
75975
75976 2004-08-08  Simon Josefsson  <jas@extundo.com>
75977
75978         * modules/xgethostname (Depends-on): Remove exit and error (not
75979         used).
75980
75981         * modules/getpass-gnu: Add getpass.h.
75982         (Depends-on): Add stdbool.
75983         * modules/getpass: Add getpass.h.
75984
75985 2004-08-08  Simon Josefsson  <jas@extundo.com>
75986
75987         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75988         Check getpass declaration.
75989
75990 2004-08-08  Simon Josefsson  <jas@extundo.com>
75991
75992         * lib/xgethostname.c: Don't include error.h (not used).
75993
75994         * lib/getpass.h: Add.
75995         * lib/getpass.c: Include getpass.h first.
75996
75997 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75998
75999         * lib/xalloc-die.c: New file.
76000         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76001         All uses removed.
76002         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76003         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76004         xalloc-die.c.
76005         (_, N_, xalloc_die): Move to xalloc-die.c.
76006         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76007         so that we needn't mess with xalloc_msg_memory_exhausted.
76008
76009         * lib/sha1.h: Renamed from sha.h.
76010         (SHA1_H): Renamed from _SHA_H.
76011         (sha1_ctx): Renamed from sha_ctx.
76012         (sha1_init_ctx): Renamed from sha_init_ctx.
76013         (sha1_process_block): Renamed from sha_process_block.
76014         (sha1_process_bytes): Renamed from sha_process_bytes.
76015         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76016         (sha1_read_ctx): Renamed from sha_read_ctx.
76017         (sha1_stream): Renamed from sha_stream.
76018         (sha1_buffer): Renamed from sha_buffer.
76019         * lib/sha1.c: Likewise; renamed from sha.c.
76020         Do not include <sys/types.h>.
76021         Include <stddef.h> rather than <stdlib.h>.
76022
76023 2004-08-08  Bruno Haible  <bruno@clisp.org>
76024
76025         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76026         FILESYSTEM_PREFIX_LEN.
76027         * lib/progreloc.c: Likewise.
76028         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76029
76030 2004-08-06  Simon Josefsson  <jas@extundo.com>
76031
76032         * modules/progname (Depends-on): Don't depend on stdbool.
76033
76034 2004-08-06  Simon Josefsson  <jas@extundo.com>
76035
76036         * modules/getsubopt: New file.
76037         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76038         getsubopt.
76039
76040 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76041
76042         More merge from coreutils.
76043
76044         * m4/utimens.m4, m4/utimecmp.m4: New files.
76045         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76046         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76047         prereq.m4, sha.m4: Import changes from coreutils.
76048
76049 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76050
76051         More merge from coreutils.
76052         * modules/raise, modules/readtokens0, modules/utimens:
76053         * modules/utimecmp, module/xnanosleep: New files.
76054         * modules/strftime: Add lib/strftime.h.
76055         Change include from <time.h> to "strftime.h".
76056         * modules/yesno: Add lib/yesno.h.
76057         * modules/backupfile: Remove lib/addext.c.
76058         * modules/euidaccess: Add stat-macros.h.
76059         * modules/canonicalize, modules/euidaccess,
76060         modules/filemode, modules/lchown, modules/makepath,
76061         modules/rmdir, modules/stat: Likewise.
76062
76063 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76064
76065         Merge from tar.
76066         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76067         SIZE_MAX is a valid preprocessor constant.
76068         (__argp_basename): Change from "#ifndef _LIBC"
76069         to "#ifndef __argp_short_program_name", so that
76070         we don't compile these functions for tar.
76071
76072         More merges from coreutils.
76073         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76074         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76075         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76076         * lib/addext.c: Remove; no longer needed.
76077         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76078         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76079         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76080         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76081         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76082         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76083         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76084         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76085         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76086         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76087         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76088         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76089         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76090         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76091         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76092         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76093         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76094         Import changes from coreutils.
76095
76096 2004-08-05  Simon Josefsson  <jas@extundo.com>
76097
76098         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76099
76100 2004-08-05  Simon Josefsson  <jas@extundo.com>
76101
76102         * m4/getsubopt.m4: New file.
76103
76104 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76105
76106         Merge from coreutils.
76107
76108         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76109         * m4/getcwd-path-max.m4: New files.
76110
76111         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76112         FILESYSTEM_PREFIX_LEN ->
76113         FILE_SYSTEM_PREFIX_LEN.
76114         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76115         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76116         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76117         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76118
76119         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76120         prerequisite modules now handle the DOS stuff.
76121         Don't check for unistd.h.
76122
76123 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76124
76125         Merge from coreutils.
76126
76127         * lib/.gdb-history: Remove; this doesn't belong here.
76128
76129         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76130         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76131         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76132         * lib/getcwd.c: New files.
76133
76134         * lib/dirname.h: Include <stdbool.h>.
76135         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76136         for consistency with POSIX terminology.  All uses changed.
76137         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76138         (strip_trailing_slashes): Use bool for booleans.
76139         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76140
76141         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76142         sometimes returns a positive errno value even when it succeeds.
76143         (print_errno_message) [!LIBC]: Fall back on strerror if
76144         __strerror_r fails.
76145
76146         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76147         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76148         (longest_relative_suffix): New function.
76149         (path_concat): Use it.  Assume first argument is not NULL.
76150         Port to DOS.  Omit redundant separators.
76151         Report an error instead of returning NULL.
76152         Use mempcpy instead of memcpy.
76153         (xpath_concat): Remove: not declared or used.
76154
76155         * lib/same.h: Include <stdbool.h>
76156         (same_name): Return bool, not int.
76157         * lib/same.c (same_name): Likewise.
76158         (errno): Don't declare; we assume C89 or better now.
76159
76160         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76161         if not already defined.
76162
76163         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76164         * lib/dup-safer.c (errno): Likewise.
76165
76166 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         Merge from coreutils.
76169         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76170         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76171         * modules/path-concat: Don't depend on strdup.
76172
76173 2004-08-03  Simon Josefsson  <jas@extundo.com>
76174
76175         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76176         * lib/progname.h: Don't include stdbool.h.
76177
76178 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76179
76180         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76181         * MODULES.html.sh (func_all_modules): Remove fatal.
76182
76183 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76184
76185         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76186
76187 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76188
76189         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76190         working.
76191
76192 2004-08-02  Simon Josefsson  <jas@extundo.com>
76193
76194         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76195         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76196         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76197
76198 2004-08-01  Simon Josefsson  <jas@extundo.com>
76199
76200         * lib/xgetdomainname.c: Include stdlib.h, for free().
76201
76202 2004-07-19  Bruno Haible  <bruno@clisp.org>
76203
76204         * MODULES.html.sh (func_all_modules): Add dummy.
76205
76206 2004-07-16  Simon Josefsson  <jas@extundo.com>
76207
76208         * modules/dummy: New file.
76209
76210 2004-07-16  Simon Josefsson  <jas@extundo.com>
76211
76212         * lib/dummy.c: New file.
76213
76214 2004-07-16  Bruno Haible  <bruno@clisp.org>
76215
76216         * lib/backupfile.h: Add extern "C" for C++.
76217         * lib/closeout.h: Likewise.
76218         * lib/copy-file.h: Likewise.
76219         * lib/findprog.h: Likewise.
76220         * lib/full-write.h: Likewise.
76221         * lib/pathname.h: Likewise.
76222         * lib/progname.h: Likewise.
76223         * lib/stpcpy.h: Likewise.
76224         * lib/stpncpy.h: Likewise.
76225         * lib/strcase.h: Likewise.
76226         * lib/strstr.h: Likewise.
76227         * lib/xalloc.h: Likewise.
76228
76229         * lib/mbswidth.h: Add extern "C" for C++.
76230         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76231
76232 2004-07-13  Robert Millan  <robertmh@gnu.org>
76233
76234         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76235
76236 2004-07-09  Simon Josefsson  <jas@extundo.com>
76237
76238         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76239         failed without this.)
76240
76241 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76242
76243         * modules/chown (Files): Add lib/fchown-stub.c, since
76244         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76245
76246 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76247
76248         * lib/fchown-stub.c: New file.
76249
76250 2004-06-24  Jim Meyering  <jim@meyering.net>
76251
76252         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76253
76254 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76255
76256         * modules/argz: Omit "#include".
76257
76258         * MODULES.html.sh (func_all_modules): Add calloc, to match
76259         2004-06-01 addition of calloc module.
76260
76261 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76262
76263         * m4/argz.m4: New file, which is autoupdated from libtool.
76264
76265 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76268         libtool.
76269
76270 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76271
76272         * config/srclist-update: Don't insist on "USA." before the
76273         close-comment, as libtool omits the period and puts the */ on a
76274         separate line.
76275         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76276         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76277
76278 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76279
76280         * modules/argz: New file.
76281         * MODULES.html.sh (func_all_modules): Add argz.
76282
76283 2004-06-12  Jim Meyering  <jim@meyering.net>
76284         and  Paul Eggert  <eggert@cs.ucla.edu>
76285
76286         * modules/hash (Files): Add lib/xalloc.h.
76287         * modules/pipe (Depends-on): Add wait-process.
76288         * modules/stat (Depends-on): Add xalloc.
76289         * modules/userspec (Files): Add lib/userspec.h.
76290         * modules/xstrto
76291
76292         Upgrade from gettext-0.13.
76293         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76294         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76295         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76296
76297 2004-06-10  Jim Meyering  <jim@meyering.net>
76298
76299         * lib/calloc.c: New file.
76300
76301 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * lib/getdate.y (yylex): Allow space between sign and number.
76304         Problem reported by Dan Jacobson.
76305
76306 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76307
76308         Merge from coreutils CVS.
76309
76310         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76311         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76312         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76313         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76314         xstrtol.m4: Fix copyright date and/or serial number.
76315
76316         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76317         See if we need an fchown replacement.
76318         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76319         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76320         and use the replacement function if we detect either defect.
76321
76322         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76323         gl_UTIMECMP.
76324
76325 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76326         and  Jim Meyering  <jim@meyering.net>
76327
76328         Merge from coreutils CVS.
76329
76330         * lib/stat-macros.h: New file, with contents from file-type.h
76331         and coreutils' system.h.
76332         * lib/file-type.c: Include "stat-macros.h".
76333         * lib/file-type.h (file_type): Move all macro definitions to new file,
76334         stat-macros.h.
76335
76336         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76337         Wrap old code with this conditional.
76338         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76339         function that does not dereference symlinks.
76340         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76341
76342         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76343         dependency problems.
76344         (xreadlink): Accept new arg SIZE, for efficiency.
76345         All decls and uses changed.
76346         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76347
76348         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76349         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76350
76351         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76352         sysexits.h.
76353
76354 2004-06-01  Jim Meyering  <jim@meyering.net>
76355
76356         * m4/calloc.m4: New file.
76357
76358 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76359
76360         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76361         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76362         Also, fix a typo in a diagnostic.
76363
76364 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76365
76366         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76367         or AC_FUNC_REALLOC.
76368
76369 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76370
76371         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76372         macros to be defined.
76373         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76374         the allocator returns NULL because the requested size is zero.
76375
76376 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76377
76378         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76379         var.  Add comment explaining why libc still defines it.  This
76380         merges the following patch from glibc:
76381         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76382
76383 2004-05-20  Andreas Schwab  <schwab@suse.de>
76384
76385         * m4/free.m4: Replace free if it not known to work, not the other
76386         way round.
76387
76388 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76391         present in glibc since revision 1.1 of this file.
76392         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76393         obstack_alignment_mask, obstack_alloc, obstack_base,
76394         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76395         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76396         obstack_grow0, obstack_init, obstack_int_grow,
76397         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76398         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76399         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76400         nonexistent functions.
76401
76402 2004-05-18  Karl Berry  <karl@gnu.org>
76403
76404         * config/srclist.txt: break link for vasnprintf.c.
76405
76406 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76407
76408         Port obstack to the AS/400, where pointers are 16 bytes wide and
76409         you cannot cast an integer to a valid pointer.  This patch is
76410         currently waiting to be integrated into glibc; see
76411         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76412
76413         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76414         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76415         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76416         (struct obstack): temp member is now a union of a pointer and
76417         an integer, instead of an integer.  All integer uses changed.
76418         This does not affect the physical layout of struct obstack,
76419         except on hosts (like the AS/400) where the size or alignment of
76420         void * is greater than that of ptrdiff_t.
76421         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76422         __STDC__)]: Store temporary in pointer member of union, not
76423         integer member.
76424         * lib/obstack.c: Include <stddef.h>, for offsetof.
76425         (struct fooalign): Remove; it doesn't need a name.
76426         (union fooround): Change double to long double, and add void *.
76427         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76428         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76429         not a macro.  Hence the values are always int; so remove all
76430         casts-to-int in uses.
76431
76432 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76433
76434         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76435         we can get this patch merged into glibc.
76436
76437 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76438             Paul Eggert  <eggert@cs.ucla.edu>
76439
76440         * m4/argp: Depend on alloca.
76441
76442 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76443             Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76446         freecoding.
76447
76448 2004-05-17  Bruno Haible  <bruno@clisp.org>
76449
76450         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76451         precision that consists of a '.' followed by an empty digit string.
76452         Patch by Tor Lillqvist <tml@iki.fi>.
76453
76454 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76455
76456         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76457         for backward compatibility with older code.  We need our own
76458         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76459         it under some other name, and our alloca.h will define it.
76460
76461 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76462             Derek Price  <derek@ximbiot.com>
76463
76464         * lib/alloca.c: Include <alloca.h>, to get our interface.
76465         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76466         include <alloca.h> first.  Use C89 prototype for alloca; this
76467         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76468         Use #elif for simplicity, since we can assume C89 now.
76469         Don't try to source the system alloca.h since it will not be found
76470         and to prevent recursively including its replacement.
76471         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76472         * lib/regex.c: Likewise.
76473
76474 2004-05-16  Derek Price  <derek@ximbiot.com>
76475             Paul Eggert  <eggert@cs.ucla.edu>
76476
76477         getline cleanup.  This changes the getndelim2 API: both order of
76478         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76479         no delimiter).
76480
76481         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76482         interface does that.
76483         (getline): Always use getdelim, so that we don't have two
76484         copies of this code.
76485         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76486         if available.
76487         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76488         (GETNDELIM2_MAXIMUM): New macro.
76489         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76490         instead of the old practice of delim2==0.  All callers changed.
76491         Return -1 on overflow, instead of returning junk.
76492         Do not set *linesize unless allocation succeeds.
76493         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76494         that we include sys/types.h.
76495         * lib/getnline.h: Likewise.
76496         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76497         (getndelim2): Reorder arguments.
76498         * lib/getnline.c (getnline, getndelim):
76499         Don't discard the NMAX argument.
76500         (getnline): Invoke getndelim, to avoid code duplication.
76501         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76502         of (size_t) -1 by callers of the getnline family.
76503
76504 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76505
76506         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76507         Check for gettimeofday.
76508         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76509         Check for settimeofday, stime.
76510
76511 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76512
76513         * lib/nanosleep.c (suspended): Change its type from int to
76514         sig_atomic_t volatile.
76515         (first_call): Make it private to rpl_nanosleep, and have it
76516         be zero initially as that's a bit faster.
76517         (my_usleep): Round up fractional times instead of truncating them,
76518         as this is the usual meaning for 'sleep'.
76519
76520         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76521         doesn't work.
76522         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76523         (ENOSYS): Define if not defined.
76524         (settime): Fall back on stime if it exists and settimeofday fails.
76525         But don't bother with fallbacks if a method fails with errno == EPERM.
76526
76527 2004-05-11  Jim Meyering  <jim@meyering.net>
76528
76529         Prior to this change, the save_cwd caller required read access to the
76530         current directory on most systems (ones with the fchdir function).
76531
76532         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76533         fails, try write-only, and finally, resort to using xgetcwd.
76534
76535 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76536
76537         * lib/obstack.c, obstack.h: Import changes from libc.
76538
76539 2004-04-28  Bruno Haible  <bruno@clisp.org>
76540
76541         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76542         also implicitly appends .exe to executables.
76543         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76544         accepts Windows pathnames.
76545         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76546         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76547         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76548         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76549         Reported by Derek Robert Price <derek@ximbiot.com>.
76550
76551 2004-04-21  Karl Berry  <karl@gnu.org>
76552
76553         * config/srclist.txt (localcharset.c): break sync.
76554
76555 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76556
76557         * m4/host-os.m4: Add a copyright notice.
76558
76559 2004-04-20  Jim Meyering  <jim@meyering.net>
76560
76561         Change UTILS_ to gl_ in AC_DEFINE'd names.
76562         Change utils_- and jm_-prefixed variables, too.
76563         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76564         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76565         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76566
76567         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76568         Don't emit trailing blanks.
76569         Also rename jm_-prefixed variables to have gl_ prefix.
76570
76571         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76572         Also rename jm_-prefixed variables to have gl_ prefix.
76573
76574         * m4/jm-macros.m4: Reflect the renamings.
76575         * m4/prereq.m4: Likewise.
76576
76577 2004-04-20  Jim Meyering  <jim@meyering.net>
76578
76579         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76580         memory.
76581
76582 2004-04-20  Jim Meyering  <jim@meyering.net>
76583             Bruno Haible  <bruno@clisp.org>
76584
76585         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76586         memory when realloc fails.
76587
76588 2004-04-19  Jim Meyering  <jim@meyering.net>
76589
76590         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76591         now that readutmp.c may call `free (0)'.
76592
76593 2004-04-19  Bruno Haible  <bruno@clisp.org>
76594
76595         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76596         * m4/inttypes_h.m4: Likewise.
76597         * m4/stdint_h.m4: Likewise.
76598         * m4/intmax_t.m4: Likewise.
76599         * m4/uintmax_t.m4: Likewise.
76600
76601 2004-04-18  Jim Meyering  <jim@meyering.net>
76602
76603         * m4/prereq.m4: Don't forbid jm_ prefix.
76604
76605         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76606         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76607         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76608         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76609         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76610         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76611         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76612         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76613         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76614         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76615         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76616         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76617         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76618         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76619         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76620         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76621         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76622         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76623         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76624
76625 2004-04-18  Jim Meyering  <jim@meyering.net>
76626
76627         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76628         failure, don't leak memory and do call END_UTMP_ENT.
76629
76630 2004-04-16  Jim Meyering  <jim@meyering.net>
76631
76632         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76633         coreutils' stat program.
76634         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76635
76636 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76637
76638         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76639         C89.
76640         (CHAR_BIT): Remove, since we assume C89.
76641         Include <stdint.h> if available, as per current Autoconf CVS advice.
76642
76643 2004-03-31  Jim Meyering  <jim@meyering.net>
76644
76645         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76646         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76647         * m4/xalloc.m4: Likewise.
76648
76649 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76650
76651         Merge from coreutils.
76652
76653         * m4/inttostr.m4: New file.
76654         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76655         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76656         Require gl_CLOCK_TIME.
76657         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76658
76659 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76660
76661         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76662         not bool, to be more consistent with Unix conventions.
76663         Suggested by Bruno Haible.
76664
76665         Merge from coreutils.
76666
76667         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76668         * lib/umaxtostr.c: New files.
76669
76670         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76671         the usual <time.h> dance.
76672         (get_date): Change signature to support fractional time stamps.
76673         All callers changed.
76674         * lib/getdate.y: Include "getdate.h" first, as we can now
76675         assume C89 and don't need to worry about 'const'.
76676         Similarly, include "unlocked-io.h" near start, not in middle.
76677         Include <limits.h>.
76678         (textint.value): Use long int rather than int.
76679         (textint.digits): Use size_t rather than int.
76680         (BILLION, LOG10_BILLION): New constants.
76681         (parser_control): New member rel_ns.  Members day_ordinal,
76682         time_zone, month, day, hour, minutes, rel_year, rel_month,
76683         rel_day, rel_hour, rel_minutes, rel_seconds
76684         are now long int, not int.  Member seconds is now struct timespec,
76685         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76686         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76687         not int.
76688         (%union.intval): Now long int, not int.
76689         New member timespec.
76690         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76691         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76692         (spec): Now is a timespec or an item list.
76693         (timespec, items): New nonterminals.
76694         (time, rel, relunit, number, get_date):
76695         Add support for fractional seconds.
76696         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76697         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76698         (to_hour): First arg is now long int, not int.
76699         (to_year): Returns long int, not int.
76700         Don't treat year -70 like 70.
76701         (tm_diff): Returns long int, not int.
76702         (lookup_word): Use bool instead of int when appropriate.
76703         (yylex): Use size_t for count, not int.
76704         Detect overflow when parsing large integer constants.
76705         Add support for fractions.
76706         (get_date): Make pointers 'const' if possible.
76707         Use more-portable code to detect integer overflow.
76708         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76709         Don't use ctime; it's not reliable if the year has >4 digits.
76710
76711         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76712         This is for compatibility with BSD.
76713
76714         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76715         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76716         From coreutils' system.h.
76717
76718         * lib/userspec.c: Don't include "posixver.h".
76719         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76720         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76721         compatible extension.  Simplify code by removing a boolean int
76722         that was always nonzero if a string was nonnull.
76723
76724 2004-03-30  Jim Meyering  <jim@meyering.net>
76725
76726         Merge from coreutils.
76727
76728         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76729         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76730         on some systems one must include <grp.h> before it.
76731         Reported by Christian Krackowizer.
76732
76733 2004-03-30  Jim Meyering  <jim@meyering.net>
76734
76735         Merge from coreutils.
76736
76737         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76738
76739         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76740         an empty input stream.
76741
76742         * lib/readtokens.c: Include <stdbool.h>.
76743         (readtoken): Use `size_t' rather than int/long.
76744         All callers adjusted.
76745         Use `bool' rather than `int' where appropriate.
76746         Use memset rather than an explicit loop.
76747         Use x2nrealloc rather than xrealloc.
76748         Allow the use of `\0' as a delimiter.
76749         (readtokens): Likewise.
76750         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76751
76752 2004-03-30  Jim Meyering  <jim@meyering.net>
76753
76754         * m4/realloc.m4: Remove file, since now it does no more than
76755         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76756         the `configure.ac' section of module/realloc.
76757         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76758
76759 2004-03-30  Bruno Haible  <bruno@clisp.org>
76760
76761         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76762         nonnull.
76763
76764 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76765
76766         Merge changes to getloadavg.c from coreutils and Emacs.
76767
76768         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76769         Define to an expression, not to the empty string.
76770         Include cloexec.h and xalloc.h.
76771         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76772         Use set_cloexec_flag rather than rolling our own.
76773         * lib/cloexec.c, lib/cloexec.h: New files.
76774
76775 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76776
76777         * m4/cloexec.m4: New file.
76778
76779 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76780
76781         * lib/getopt.h: Sync with libc CVS.
76782
76783 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76784             Bruno Haible  <bruno@clisp.org>
76785
76786         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76787         mbswidth.
76788
76789 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76790             Bruno Haible  <bruno@clisp.org>
76791
76792         * lib/mbswidth.h: Include <wchar.h> only if
76793         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76794         <wchar.h>.
76795         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76796
76797 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76798
76799         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76800         Sync with libc CVS.
76801         * lib/getopt_int.h: New file, also synced from libc.
76802
76803 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76804
76805         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76806         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76807         Bring back getopt.c, getopt.h, getopt1.c.
76808
76809 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76810
76811         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76812         All uses changed.  Check for sa_sigaction member; this fixes
76813         a bug first reported by Jason Andrade in
76814         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76815
76816 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76817
76818         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76819         '#if' expressions.  Unlike the code it replaces, it does not
76820         depend on (defined _SC_PAGESIZE).  However, it does depend on
76821         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76822         first reported by Jason Andrade in
76823         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76824
76825 2004-02-25  Simon Josefsson  <jas@extundo.com>
76826
76827         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76828
76829 2004-02-25  Simon Josefsson  <jas@extundo.com>
76830
76831         * lib/strdup.h: New file.
76832         * lib/strdup.c: Include it.
76833         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76834         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76835
76836 2004-02-23  Karl Berry  <karl@gnu.org>
76837
76838         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76839         (from fencepost.gnu.org:/gd/gnuorg).
76840
76841 2004-02-23  Karl Berry  <karl@gnu.org>
76842
76843         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76844         * config/srclist.txt: add maintain/standards documents.
76845
76846 2004-02-18  Bruno Haible  <bruno@clisp.org>
76847
76848         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76849         Reported by Derek Robert Price <derek@ximbiot.com>.
76850
76851 2004-02-16  Karl Berry  <karl@gnu.org>
76852
76853         * config/mkinstalldirs, install-sh: update from automake.
76854
76855 2004-02-06  Karl Berry  <karl@gnu.org>
76856
76857         * m4/po.m4: update from gettext 0.14.1.
76858
76859 2004-02-06  Karl Berry  <karl@gnu.org>
76860
76861         * lib/config.charset: update from gettext 0.14.1.
76862
76863 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76864
76865         Add comments and code, prompted by suggestions from Bruno Haible
76866         for sh-quote.
76867         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76868         describing the enum quoting_style values.
76869         * lib/quotearg.c (quotearg_alloc): New function.
76870         (quotearg_buffer_restyled): Treat lone { and } as special.
76871         Treat = as special.  Work around bug with older shells
76872         that "see" a '\' that is really the 2nd byte of a multibyte char.
76873         Quote empty string with shell_quoting_style.
76874
76875 2004-02-03  Bruno Haible  <bruno@clisp.org>
76876
76877         * m4/pipe.m4: New file, from GNU gettext.
76878
76879 2004-02-03  Bruno Haible  <bruno@clisp.org>
76880
76881         * lib/pipe.h: New file, from GNU gettext.
76882         * lib/pipe.c: New file, from GNU gettext.
76883
76884 2004-01-27  Bruno Haible  <bruno@clisp.org>
76885
76886         * m4/execute.m4: New file, from GNU gettext.
76887
76888 2004-01-27  Bruno Haible  <bruno@clisp.org>
76889
76890         * lib/execute.h: New file, from GNU gettext.
76891         * lib/execute.c: New file, from GNU gettext.
76892         * lib/w32spawn.h: New file, from GNU gettext.
76893
76894 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76895
76896         Merge from diffutils.
76897
76898         * lib/file-type.c (file_type): Add typed memory objects.
76899         * lib/file-type.h (S_TYPEISTMO): New macro.
76900
76901         * lib/c-stack.h (c_stack_action): Remove argv argument.
76902         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76903         (die): Don't calculate message unless segv_action returns.
76904         (get_stack_location, min_address_from_argv, max_address_from_argv,
76905         volatile stack_base, volatile_stack_size): Remove.
76906         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76907         that every segmentation violation is a stack overflow.  (Ouch!)
76908         See Debian bug 136249 (still outstanding) for more info about why
76909         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76910
76911 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76912
76913         Exit-status fix from coreutils.
76914
76915         Use exit_failure consistently in place of EXIT_FAILURE,
76916         so that program exit statuses are consistent on failure.
76917
76918         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76919         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76920         * lib/argmatch.h: Comment fix to match the above.
76921         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76922         Now a macro referring to exit_failure, instead of a separate
76923         variable.  Include "exitfail.h" to get it.
76924         * lib/xstrtol.h: Include "exitfail.h".
76925         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76926
76927         * lib/long-options.c (parse_long_options): Use prototype
76928         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76929         for clarity.
76930
76931 2004-01-21  Jim Meyering  <jim@meyering.net>
76932
76933         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76934         so as not to conflict with a different-sized __mktime_internal
76935         function in GNU libc.
76936         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76937         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76938
76939 2004-01-20  Karl Berry  <karl@gnu.org>
76940
76941         * config/config.guess: update from config.
76942
76943         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76944
76945 2004-01-20  Bruno Haible  <bruno@clisp.org>
76946
76947         Safer stack allocation.
76948         * lib/setenv.c: Include allocsa.h.
76949         (alloca): Remove fallback definition.
76950         (freea): Remove macro.
76951         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76952         instead of freea.
76953
76954 2004-01-20  Bruno Haible  <bruno@clisp.org>
76955
76956         * m4/eealloc.m4: New file, from GNU gettext.
76957
76958 2004-01-20  Bruno Haible  <bruno@clisp.org>
76959
76960         * m4/allocsa.m4: New file, from GNU gettext.
76961
76962 2004-01-20  Bruno Haible  <bruno@clisp.org>
76963
76964         * lib/xallocsa.h: New file, from GNU gettext.
76965         * lib/xallocsa.c: New file, from GNU gettext.
76966
76967 2004-01-20  Bruno Haible  <bruno@clisp.org>
76968
76969         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76970
76971 2004-01-20  Bruno Haible  <bruno@clisp.org>
76972
76973         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76974         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76975         specially.
76976
76977 2004-01-20  Bruno Haible  <bruno@clisp.org>
76978
76979         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76980         patch.
76981
76982 2004-01-20  Bruno Haible  <bruno@clisp.org>
76983
76984         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76985
76986 2004-01-20  Bruno Haible  <bruno@clisp.org>
76987
76988         * lib/eealloc.h: New file.
76989
76990 2004-01-20  Bruno Haible  <bruno@clisp.org>
76991
76992         * lib/binary-io.h: Avoid warnings on Cygwin.
76993
76994 2004-01-20  Bruno Haible  <bruno@clisp.org>
76995
76996         * lib/allocsa.h: New file, from GNU gettext.
76997         * lib/allocsa.c: New file, from GNU gettext.
76998
76999 2004-01-18  Karl Berry  <karl@gnu.org>
77000
77001         * doc/gpl.texi, doc/lgpl.texi: new files.
77002
77003 2004-01-18  Karl Berry  <karl@gnu.org>
77004
77005         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77006         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77007
77008 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77009
77010         Merge from coreutils.
77011
77012         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77013         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77014         (gl_DEFAULT_POSIX2_VERSION): Move
77015         the documentation from 'configure' into 'config.hin',
77016         so that 'configure --help' isn't burdened by it and
77017         we don't have to worry about its formatting there.
77018         Reword the documentation so that it's more succinct
77019         and can be run together into a single paragraph.
77020         * m4/same.m4 (gl_SAME): Check for pathconf.
77021
77022 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77023
77024         Merge from coreutils.
77025
77026         * lib/posixver.c: Include posixver.h.
77027
77028         * lib/same.c: Include <stdbool.h>, <limits.h>.
77029         (_POSIX_NAME_MAX): Define if not defined.
77030         (MIN): New macro.
77031         (same_name): If file names are silently truncated, report
77032         that the file names are the same if they are the same after
77033         the silent truncation.
77034
77035         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77036         conversion function.
77037         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77038         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77039         longer needed.
77040
77041 2004-01-15  Jim Meyering  <jim@meyering.net>
77042
77043         Merge from coreutils.
77044
77045         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77046         if no library is required.
77047         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77048         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77049         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77050         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77051         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77052         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77053         value, $ac_cv_search_crypt, if it's "none required".
77054         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77055         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77056         not gl_FUNC_GETLOADAVG.
77057         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77058         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77059
77060 2004-01-15  Jim Meyering  <jim@meyering.net>
77061
77062         Merge from coreutils.
77063
77064         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77065         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77066         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77067
77068         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77069         optional configure-time default.
77070
77071         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77072
77073         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77074
77075 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77076
77077         Merge from coreutils.
77078
77079         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77080         value, $ac_cv_search_nanosleep, if it's "none required".
77081
77082 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77083
77084         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77085         with like-named macro in fnmatch.c.
77086         (EXT): Use an internal constant instead.
77087
77088         Merge fnmatch patches from glibc.
77089         * lib/fnmatch.c (mbsinit): Remove define.
77090         Add libc_hidden_ver (__fnmatch, fnmatch).
77091         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77092         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77093
77094 2004-01-14  Karl Berry  <karl@gnu.org>
77095
77096         * config/install-sh: update from automake.
77097
77098 2004-01-13  Karl Berry  <karl@gnu.org>
77099
77100         * config/install-sh: update from automake.
77101
77102 2004-01-09  Karl Berry  <karl@gnu.org>
77103
77104         * config/install-sh: update from automake.
77105
77106 2004-01-05  Karl Berry  <karl@gnu.org>
77107
77108         * config/config.{sub,guess}: update from config.
77109
77110 2003-12-31  Karl Berry  <karl@gnu.org>
77111
77112         * config/depcomp: update from automake.
77113
77114 2003-12-14  Karl Berry  <karl@gnu.org>
77115
77116         * lib/config.charset: update from gettext-runtime.
77117
77118 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77119
77120         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77121         Bug reported by Alfred M. Szmidt.
77122
77123 2003-12-03  Bruno Haible  <bruno@clisp.org>
77124
77125         * m4/gettext.m4: Upgrade from gettext-0.13.
77126         * m4/po.m4: Upgrade from gettext-0.13.
77127         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77128         * m4/intmax.m4: New file, from gettext-0.13.
77129         * m4/printf-posix.m4: New file, from gettext-0.13.
77130
77131 2003-11-29  Karl Berry  <karl@gnu.org>
77132
77133         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77134
77135 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77136             Bruno Haible  <bruno@clisp.org>
77137
77138         * lib/printf-parse.h: Don't include sys/types.h.
77139         (ARG_NONE): New macro.
77140         (char_directive): Change type of *arg_index fields to size_t.
77141         * lib/printf-parse.c: Don't include sys/types.h.
77142         (SSIZE_MAX): Remove macro.
77143         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77144         Remove unnecessary overflow check.
77145         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77146         fields.
77147
77148 2003-11-25  Bruno Haible  <bruno@clisp.org>
77149
77150         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77151
77152 2003-11-25  Bruno Haible  <bruno@clisp.org>
77153
77154         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77155         gt_TYPE_SSIZE_T.
77156
77157 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77158
77159         * modules/alloca: Remove dependency on xalloc.
77160
77161 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77162
77163         * lib/alloca.c: Remove dependency on xalloc module.
77164         (xalloc_die): Remove.
77165         (memory_full) [!defined emacs]: New macro.
77166         [!defined emacs]: Don't include xalloc.h.
77167         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77168         address arithmetic overflows.  Change datatypes a bit to avoid
77169         unnecessary casts.
77170
77171 2003-11-22  Jim Meyering  <jim@meyering.net>
77172
77173         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77174         s/size/size_t/.
77175
77176 2003-11-21  Karl Berry  <karl@gnu.org>
77177
77178         * config/config.{sub,guess}: update from config.
77179
77180 2003-11-18  Karl Berry  <karl@gnu.org>
77181
77182         * config/config.{sub,guess}: update from config.
77183
77184         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77185
77186 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77187
77188         * README: Mention that S+T cannot overflow if S is the size of
77189         an existing object and T is sufficiently small.
77190
77191 2003-11-17  Jim Meyering  <jim@meyering.net>
77192
77193         On systems without utime and without a utimes function capable of
77194         dealing with a NULL struct utimbuf* argument, this utime replacement
77195         could -- in unusual circumstances -- leak a file descriptor.
77196         * lib/utime.c: Include <unistd.h> and <errno.h>.
77197         (utime_null): Be sure to close `fd' and to preserve errno.
77198         Reported by Geoff Collyer via Arnold Robbins.
77199
77200 2003-11-17  Bruno Haible  <bruno@clisp.org>
77201
77202         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77203         (Depends-on): Add xsize.
77204
77205 2003-11-17  Bruno Haible  <bruno@clisp.org>
77206
77207         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77208
77209 2003-11-17  Bruno Haible  <bruno@clisp.org>
77210
77211         * lib/vasnprintf.c (alloca): Remove fallback definition.
77212         (freea): Remove definition.
77213         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77214         Reported by Paul Eggert.
77215
77216 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77217             Bruno Haible  <bruno@clisp.org>
77218
77219         Protect against address arithmetic overflow.
77220         * lib/printf-args.h: Include stddef.h.
77221         (arguments): Change type of field 'count' to size_t.
77222         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77223         'unsigned int' where appropriate.
77224         * lib/printf-parse.h: Include sys/types.h.
77225         (char_directive): Change type of *arg_index fields to ssize_t.
77226         (char_directives): Change type of fields 'count', max_*_length to
77227         size_t.
77228         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77229         (SSIZE_MAX): Define fallback value.
77230         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77231         instead of 'int' where appropriate. Check a_allocated, d_allocated
77232         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77233         * lib/vasnprintf.c: Include xsize.h.
77234         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77235         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77236         overflow. Avoid wraparound when converting a width or precision from
77237         decimal to binary.
77238
77239 2003-11-16  Bruno Haible  <bruno@clisp.org>
77240
77241         Update from GNU gettext.
77242         * lib/printf-parse.c: Generalize to it can be compiled for wide
77243         strings.
77244         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77245         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77246         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77247         SNPRINTF): New macros.
77248         Don't include <alloca.h> if the file is used inside libintl.
77249         (local_wcslen): New function, for Solaris 2.5.1.
77250         (VASNPRINTF): Use it instead of wcslen.
77251
77252 2003-11-16  Bruno Haible  <bruno@clisp.org>
77253
77254         * lib/xsize.h (xmax): New function.
77255         (xsum, xsum3, xsum4): Declare as "pure" functions.
77256
77257 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77258
77259         * modules/xalloc (Files): Undo latest change, since xalloc.h
77260         no longer needs SIZE_MAX or PTRDIFF_MAX.
77261
77262 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77263
77264         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77265         gl_PTRDIFF_MAX.
77266
77267 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77268
77269         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77270         "return", to pacify some unknown compiler.  Problem reported
77271         by Joerg Schilling.
77272
77273 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77274
77275         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77276         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77277         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77278         heuristic is just as accurate as far as we know, and it removes a
77279         dependency on size_max.m4 and ptrdiff_max.m4.
77280
77281 2003-11-11  Bruno Haible  <bruno@clisp.org>
77282
77283         * modules/xsize (Files): Add m4/size_max.m4.
77284         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77285
77286 2003-11-11  Bruno Haible  <bruno@clisp.org>
77287
77288         * m4/size_max.m4: New file.
77289         * m4/ptrdiff_max.m4: New file.
77290         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77291         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77292         (gl_XALLOC): Invoke it.
77293
77294 2003-11-11  Bruno Haible  <bruno@clisp.org>
77295
77296         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77297         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77298         defined.
77299
77300 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77301
77302         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77303         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77304         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77305         From Bruno Haible.
77306         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77307         not (size_t) -1, since it's defined here.
77308
77309 2003-11-09  Karl Berry  <karl@gnu.org>
77310
77311         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77312
77313 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77314
77315         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77316         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77317         Reject sizes of exactly SIZE_MAX bytes.
77318         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77319         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77320
77321 2003-11-05  Bruno Haible  <bruno@clisp.org>
77322
77323         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77324         SIZE_MAX defined in <limits.h> on Solaris.
77325
77326 2003-11-04  Jim Meyering  <jim@meyering.net>
77327
77328         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77329         variable names, rather than @VAR@.
77330         * modules/poll: Likewise.
77331
77332 2003-11-04  Bruno Haible  <bruno@clisp.org>
77333
77334         * modules/xsize: New file.
77335         * modules/linebreak: Depend on xsize.
77336         * MODULES.html.sh (func_all_modules): Add xsize.
77337
77338 2003-11-04  Bruno Haible  <bruno@clisp.org>
77339
77340         * m4/xsize.m4: New file.
77341
77342 2003-11-04  Bruno Haible  <bruno@clisp.org>
77343
77344         * lib/xsize.h: New file.
77345         * lib/linebreak.c: Include xsize.h.
77346         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77347         argument for overflow.
77348         Suggested by Paul Eggert.
77349
77350 2003-11-03  Karl Berry  <karl@gnu.org>
77351
77352         * config/config.{guess,sub}: update from config.
77353
77354 2003-11-03  Jim Meyering  <jim@meyering.net>
77355
77356         * modules/userspec (lib_SOURCES): Add userspec.h.
77357         (Include): Add "userspec.h".
77358         Improve description.
77359
77360 2003-11-03  Jim Meyering  <jim@meyering.net>
77361
77362         * lib/userspec.c: Include "userspec.h".
77363         * lib/userspec.h: New file.
77364
77365 2003-11-03  Bruno Haible  <bruno@clisp.org>
77366
77367         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77368
77369 2003-11-03  Bruno Haible  <bruno@clisp.org>
77370
77371         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77372         available, to avoid (extremely rare) race condition.
77373         Suggested by Paul Eggert.
77374
77375 2003-11-02  Karl Berry  <karl@gnu.org>
77376
77377         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77378
77379 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77380
77381         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77382         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77383         (read_filesystem_list): Set and use me_type_malloced.
77384         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77385         whatever the type happens to be), for brevity and consistency.
77386         Check for size calculation overflow on Alphas running OSF/1.
77387
77388 2003-10-31  Jim Meyering  <jim@meyering.net>
77389
77390         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77391
77392         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77393
77394 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77395             Bruno Haible  <bruno@clisp.org>
77396
77397         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77398         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77399
77400 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77401
77402         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77403         netbsd*-gnu*.  Suggested by Robert Millan.
77404
77405 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77406
77407         * modules/group-member: Depend on stdbool.
77408
77409 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77410
77411         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77412
77413 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77414
77415         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77416         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77417         after the 'gnu' in these cases.  This fixes some bugs in the
77418         previous change, and is based on suggestions by Robert Millan.
77419
77420 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77421
77422         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77423         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77424         no longer needed.
77425         * lib/quotearg.c (quotearg_n_options): Use it.
77426         * lib/group-member.c: Include <stdbool.h>.
77427         (free_group_info): Arg is now const *; don't free arg.
77428         (get_group_info): Now returns bool and accepts struct group_info *,
77429         rather than returning a malloc'ed struct group_info *.
77430         All uses changed.  Check for overflow in internal size calculation.
77431
77432         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77433         rather than xmalloc/xrealloc.
77434         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77435         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77436         conformance bug: the old code used a pointer after freeing the
77437         storage that it addressed.
77438         * lib/hash.c (hash_initialize): Simplify the code by using
77439         xalloc_oversized rather than doing it by hand.
77440         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77441         the buffer preserved.  Use free and xmalloc instead.
77442         * lib/quotearg.c (quotearg_n_options): Likewise.
77443         Use a simpler test for size overflow.  Don't use xalloc_oversized
77444         because unsigned int might be wider than size_t (!); this suggests
77445         that we should switch from unsigned int to size_t for slot numbers.
77446
77447 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77448
77449         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77450         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77451         NetBSD kernels.  Requested by Richard Stallman.
77452
77453 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77454
77455         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77456         to allocate the returned structure.  Do not allocate a subarray,
77457         as x2nrealloc will do that.
77458         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77459         instead of xnrealloc.
77460         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77461
77462 2003-10-27  Bruno Haible  <bruno@clisp.org>
77463
77464         * lib/stdbool_.h: Better support for BeOS.
77465
77466 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77467
77468         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77469         now uses inline.
77470
77471 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77472
77473         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77474         callers that want to do their own size-overflow checking.  Include
77475         <stdbool.h>, since xalloc_oversized returns bool.
77476         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77477         to use xalloc_oversized.
77478
77479         Add two functions x2realloc, x2nrealloc, for programs that grow
77480         arrays dynamically by doubling their sizes.
77481         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77482         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77483         New functions.
77484
77485         Port to C99 semantics for 'inline' of external functions.
77486         Bug reported by Bruno Haible.
77487         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77488         with the old contents of xnmalloc.
77489         (xnmalloc, xmalloc): Use it.
77490         (xnrealloc_inline): New static inline function,
77491         with the old contents of xnrealloc.
77492         (xnrealloc, xrealloc): Use it.
77493
77494         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77495         that.
77496
77497 2003-10-26  Karl Berry  <karl@gnu.org>
77498
77499         * config/srclist.txt (COPYING.DOC): no longer available from
77500         /gd/gnuorg; don't know where the ultimate source is.
77501
77502 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77503
77504         Fix several address-calculation bugs in the hash modules,
77505         plus some minor code cleanup.
77506
77507         * lib/hash.h: Include <stdbool.h>, for bool.
77508         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77509         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77510         hash_get_n_entries, hash_get_max_bucket_length,
77511         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77512         hash_rehash): Use size_t rather than unsigned.
77513         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77514         hash_get_n_buckets_used, hash_get_n_entries,
77515         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77516         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77517         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77518         Likewise.
77519         (SIZE_MAX): Define if not defined.
77520         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77521         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77522         hash_print):
77523         Use const * when possible.
77524         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77525         (check_tuning): Fix bug: if tuning parameters were very close to
77526         0 or 1, rounding errors could have caused subscript violations.
77527         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77528         (hash_initialize): Add 'fail:' label
77529         to free table and return NULL, and use it to simplify code.
77530         Use calloc rather than clearing the storage ourself.
77531         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77532         buffer size calculations.
77533         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77534         Include <stddef.h>, for size_t.
77535         * lib/hash-pjw.c (hash_pjw): Likewise.
77536         Switch to method described by Bruno Haible.
77537         Include <limits.h>, for CHAR_BIT.
77538         (SIZE_BITS): New macro.
77539
77540 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77541
77542         * m4/getline.m4 (AM_FUNC_GETLINE):
77543         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77544         hosts.  Problem reported by Derek Robert Price in
77545         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77546         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77547         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77548
77549 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77550
77551         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77552         ceiling the allocation at NMAX bytes rather than silently
77553         discarding input bytes before NMAX is reached.  This makes
77554         a difference only if NMAX exceeds SIZE_MAX / 2.
77555
77556         * lib/obstack.c: Merge from glibc.
77557         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77558         Add libc_hidden_def (_obstack_newchunk).
77559         (_obstack_free) [! defined _LIBC]: Remove.
77560         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77561         a clone of the function body.
77562         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77563         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77564
77565         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77566         glibc.
77567         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77568         arg to memcpy.
77569
77570         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77571         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77572         Don't use lvalue casts, as GCC plans to remove support for them
77573         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77574         was also present in the non-GCC version, indicating that this
77575         code had always been buggy and had never been widely used.
77576         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77577         Use the fast variant of each macro, rather than copying the
77578         definiens of the fast variant; that way, we'll be more likely to
77579         catch future bugs in the fast variants.
77580
77581 2003-10-20  Bruno Haible  <bruno@clisp.org>
77582
77583         * modules/wait-process: New file.
77584         * MODULES.html.sh (func_all_modules): Add wait-process.
77585
77586 2003-10-20  Bruno Haible  <bruno@clisp.org>
77587
77588         * m4/wait-process.m4: New file.
77589
77590 2003-10-20  Bruno Haible  <bruno@clisp.org>
77591
77592         * lib/wait-process.h: New file, from GNU gettext.
77593         * lib/wait-process.c: New file, from GNU gettext.
77594
77595 2003-10-19  Jim Meyering  <jim@meyering.net>
77596
77597         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77598         HPUX 10.20.
77599
77600 2003-10-18  Karl Berry  <karl@gnu.org>
77601
77602         * config/config.guess: update from config.
77603
77604 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77605
77606         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77607         (getgroups): First arg is int, not size_t.
77608         Don't let 'free' mangle errno.
77609
77610 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77611
77612         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77613
77614 2003-10-16  Karl Berry  <karl@gnu.org>
77615
77616         * config/config.{guess,sub}: update from config.
77617
77618 2003-10-16  Jim Meyering  <jim@meyering.net>
77619
77620         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77621         memcpy.
77622
77623 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77624
77625         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77626         (SIZE_MAX): Remove.
77627         (new_exclude, add_exclude_file): Initial size no longer needs to
77628         be a power of 2.
77629         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77630         our own address arithmetic overflow checking.
77631
77632         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77633         (fnmatch): Do not alloca more than 2000 wide characters;
77634         instead, use malloc for large buffers.
77635         Check for address arithmetic overflow, and return -1
77636         with errno set to ENOMEM in that case.
77637         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77638         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77639         instead, return -1.  Check for address arithmetic overflow.
77640
77641 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77642
77643         Handle invalid suffixes and overflow independently, so that
77644         callers can treat them independently as needed.  Fix some bugs in
77645         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77646         suffix for a human-readable blocksize.  The major caller-visible
77647         change is the addition of a new
77648         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77649         that both overflow and suffix chars were found.
77650
77651         * lib/human.c (humblock): Don't check separately for invalid suffix
77652         char; that is xstrtoumax's job (now that its bug is fixed).
77653         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77654         INTMAX_MAX]: New macros.
77655         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77656         TYPE_MAXIMUM): New macros.
77657         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77658         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77659         if overflow occurs, as it's what __strtol does and it's more useful
77660         in practice.
77661         (__xstrtol): If __strtol reports some error other than ERANGE,
77662         reflect it to the caller as LONGINT_INVALID.  If it reports
77663         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77664         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77665         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77666         value.
77667         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77668         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77669         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77670         [defined UINTMAX_MAX]: New macros.
77671
77672 2003-10-14  Bruno Haible  <bruno@clisp.org>
77673
77674         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77675
77676 2003-10-14  Bruno Haible  <bruno@clisp.org>
77677
77678         * m4/sig_atomic_t: New file, from GNU gettext.
77679         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77680
77681 2003-10-14  Bruno Haible  <bruno@clisp.org>
77682
77683         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77684         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77685         Also use volatile where needed.
77686
77687 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77688
77689         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77690         Change maintainer from Bruno Haible to 'all'.
77691
77692 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77693
77694         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77695
77696 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77697
77698         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77699         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77700         and define in terms of the other primitives.
77701         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77702         (SIZE_MAX): Define if not already defined.
77703         (array_size_overflow): New function.
77704         (xalloc_die): Abort instead of exiting if 'error' returns.
77705         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77706         (xmalloc, xrealloc): Use them.
77707         (xcalloc): Check for address arithmetic overflow.
77708         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77709         a bit faster than strcpy.
77710
77711 2003-10-10  Simon Josefsson  <jas@extundo.com>
77712
77713         * modules/argp (Depends-on): Add restrict and strcase.
77714
77715 2003-10-10  Simon Josefsson  <jas@extundo.com>
77716
77717         * m4/argp.m4: Add AC_C_INLINE.
77718
77719 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77720
77721         Merge getpass from libc, plus a few fixes.
77722
77723         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77724         Include <stdbool.h>.
77725         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77726         __fsetlocking to empty.
77727         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77728         do include <bits/libc-lock.h>.
77729         Do not include <fcntl.h>; not needed.
77730         [_LIBC]: Include <wchar.h>.
77731         (NOTCANCEL_MODE): New macro.
77732         (flockfile, funlockfile) [_LIBC]: New macros.
77733         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77734         [!_LIBC]: New macros.
77735         (call_fclose): New function.
77736         (getpass): Use it.  Save tty stream separately; this simplifies the
77737         code and makes it more reliable if stdin happens to equal stdout.
77738         Invoke __fsetlocking on tty.
77739         Handle thread cancellation if needed.
77740         Namespace cleanup (use __tcgetattr, __getline).
77741         Use bool for Booleans.
77742         [USE_IN_LIBIO]: Handle wide streams.
77743         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77744         stream might go where.
77745
77746         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77747         doesn't have to include <stdio.h> before us.
77748         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77749         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77750         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77751         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77752         if not declared, so that we can use getpass.c code from libc without
77753         rewriting it.
77754         (flockfile, ftrylockfile, funlockfile): New macros.
77755
77756 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77757
77758         * modules/getpass: Depend on stdbool.
77759
77760 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77761
77762         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77763
77764 2003-10-07  Karl Berry  <karl@gnu.org>
77765
77766         * config/config.{guess,sub}: update from config.
77767
77768 2003-10-06  Jim Meyering  <jim@meyering.net>
77769             Bruno Haible  <bruno@clisp.org>
77770
77771         This lets translators provide better translations for the
77772         "Written by ..." part of --version output.
77773         * lib/version-etc.h: Include stdarg.h.
77774         (version_etc_copyright): Declare as readonly.
77775         (version_etc): Make this function variadic with a NULL-terminated list
77776         of author name strings.
77777         (version_etc_va): New declaration.
77778         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77779         (version_etc_copyright): Declare as readonly.
77780         (version_etc_va): New function. Provide a different translatable string
77781         for each possible number of authors < 10. Abbreviate when there are 10
77782         authors or more.
77783         (version_etc): Make this function variadic. Call version_etc_va.
77784         Suggestion from Gary V. Vaughan.
77785
77786         * lib/long-options.h (parse_long_options): Change prototype: the
77787         authors string is moved to the end and becomes variadic.
77788         * lib/long-options.c: Include stdarg.h.
77789         (parse_long_options): Make this function variadic, too.
77790         Call version_etc_va, not version_etc.
77791
77792 2003-10-06  Bruno Haible  <bruno@clisp.org>
77793
77794         * modules/version-etc-2: Remove file.
77795         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77796
77797 2003-10-06  Bruno Haible  <bruno@clisp.org>
77798
77799         * modules/fatal-signal: New file.
77800         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77801
77802 2003-10-06  Bruno Haible  <bruno@clisp.org>
77803
77804         * m4/fatal-signal.m4: New file.
77805         * m4/signalblocking.m4: New file, from GNU gettext.
77806
77807 2003-10-06  Bruno Haible  <bruno@clisp.org>
77808
77809         * lib/version-etc-2.h: Remove file.
77810         * lib/version-etc-2.c: Remove file.
77811
77812 2003-10-06  Bruno Haible  <bruno@clisp.org>
77813
77814         * lib/fatal-signal.h: New file, from GNU gettext.
77815         * lib/fatal-signal.c: New file, from GNU gettext.
77816
77817 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77818
77819         * README: Rework advice for preventing empty .o files.
77820         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77821         not <sys/types.h>.
77822
77823 2003-10-04  Karl Berry  <karl@gnu.org>
77824
77825         * lib/argp*: update from libc.
77826
77827 2003-10-04  Karl Berry  <karl@gnu.org>
77828
77829         * config/config.{guess,sub}: update from config.
77830
77831 2003-10-02  Bruno Haible  <bruno@clisp.org>
77832
77833         * modules/lchown (Include): Add lchown.h.
77834         * modules/time_r (Include): Use "..." syntax.
77835         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77836
77837 2003-10-01  Simon Josefsson  <jas@extundo.com>
77838
77839         * MODULES.html.sh (func_all_modules): Move gethostname from section
77840         'based on' to section 'lacking' POSIX:2001.
77841
77842 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77843
77844         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77845         to output mode on the same stream.
77846
77847 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77848
77849         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77850         Fix arg typo in previous patch.
77851
77852 2003-09-28  Jim Meyering  <jim@meyering.net>
77853
77854         * lib/error.c: Correct cpp indentation.
77855
77856 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77857
77858         * modules/free: New file.
77859
77860 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77861
77862         * m4/free.m4: New file.
77863
77864 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77865
77866         * lib/minmax.h (MIN, MAX)
77867         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77868         Omit the special code that used __typeof__, since we worry that
77869         it could be more trouble than it's worth.  See:
77870         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77871         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77872
77873         * lib/free.c: New file.
77874
77875 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77876
77877         Trivial fixes to Makefile.am parts of module listings.
77878         * modules/strstr: Append strstr.h to lib_SOURCES.
77879         * modules/strcase: Likewise, for strcase.h.
77880
77881 2003-09-27  Karl Berry  <karl@gnu.org>
77882
77883         * config/mkinstalldirs: update from automake.
77884
77885 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77886
77887         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77888         (error_tail): Do not loop, reallocating temporary buffer, since
77889         the output cannot contain more wide characters than the input
77890         contains bytes, the size must be big enough already.  This avoids
77891         one potential size overflow calculation.  Check for size overflow
77892         when calculating temporary buffer size.  Free temporary buffer
77893         when done, if it was allocated with malloc; this plugs a memory
77894         leak.  Remove casts from void * to pointers, that are no longer
77895         needed now that we're assuming C89 or better.
77896
77897         Merge error changes from glibc.
77898
77899         * lib/error.c, error.h: Update copyright notice header to match glibc.
77900         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77901         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77902         Disable cancellation while printing error.
77903         * lib/error.h: Prepend __ to parameter names.
77904
77905 2003-09-26  Jim Meyering  <jim@meyering.net>
77906
77907         * lib/error.c (error_tail): Move some declarations
77908         into inner scope where the local variables are used.
77909
77910 2003-09-26  Bruno Haible  <bruno@clisp.org>
77911
77912         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77913         stpncpy().
77914         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77915
77916 2003-09-26  Bruno Haible  <bruno@clisp.org>
77917
77918         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77919         (stpncpy): Define as alias for gnu_stpncpy.
77920         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77921
77922 2003-09-25  Simon Josefsson  <jas@extundo.com>
77923
77924         * lib/xgetdomainname.h: New file.
77925         * lib/xgetdomainname.c: New file.
77926
77927 2003-09-25  Simon Josefsson  <jas@extundo.com>
77928             Bruno Haible  <bruno@clisp.org>
77929
77930         * modules/getdomainname: New file.
77931         * modules/xgetdomainname: New file.
77932         * MODULES.html.sh (func_all_modules): Add getdomainname,
77933         xgetdomainname.
77934
77935 2003-09-25  Simon Josefsson  <jas@extundo.com>
77936             Bruno Haible  <bruno@clisp.org>
77937
77938         * m4/getdomainname.m4: New file.
77939
77940 2003-09-25  Simon Josefsson  <jas@extundo.com>
77941             Bruno Haible  <bruno@clisp.org>
77942
77943         * lib/getdomainname.h: New file.
77944         * lib/getdomainname.c: New file.
77945
77946 2003-09-25  Karl Berry  <karl@gnu.org>
77947
77948         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77949
77950 2003-09-25  Karl Berry  <karl@gnu.org>
77951
77952         * config/install-sh: update from automake.
77953
77954 2003-09-25  Bruno Haible  <bruno@clisp.org>
77955
77956         * modules/version-etc-2: New file, from modules/version-etc with
77957         modifications.
77958         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77959
77960 2003-09-25  Bruno Haible  <bruno@clisp.org>
77961
77962         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77963         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77964
77965 2003-09-24  Simon Josefsson  <jas@extundo.com>
77966
77967         * modules/xgethostname: Add xgethostname.h.
77968
77969 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77970
77971         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77972         the buffer associated with the argument.  Bug reported by
77973         Simon Josefsson.
77974
77975 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77976
77977         * README: Document assumptions that 'int' is at least 32 bits
77978         wide, that integer arithmetic is 2's complement without overflow,
77979         that there are no holes in integer values, that adding sizes of
77980         two nonoverlapping objects can't overflow, and that all-bits-zero
77981         yields scalar zero.  Fix spelling and capitalization typos.
77982
77983 2003-09-19  Karl Berry  <karl@gnu.org>
77984
77985         * lib/argp.h: update from libc.
77986
77987 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77988
77989         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77990         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77991         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77992
77993 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77994
77995         * gnulib-tool: Use "test -h", not "test -L", for portability
77996         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77997         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77998         (sed_extract_prog): Issue s commands one-by-one, rather than
77999         using \| in one s command.
78000
78001 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78002
78003         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78004         input error, instead of returning NULL the next time we are called
78005         (and therefore losing track of errno).
78006
78007 2003-09-16  Bruno Haible  <bruno@clisp.org>
78008
78009         * gnulib-tool (func_create_testdir): Warn about duplicated
78010         dependencies.
78011
78012 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78013
78014         * modules/argmatch, modules/fatal, modules/obstack,
78015         modules/xalloc, modules/xgethostname: Sort dependencies by
78016         importance, not alphabetically.
78017
78018 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78019
78020         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78021         fails, so that the caller gets the proper errno.
78022
78023         * lib/readutmp.c (read_utmp): Likewise.
78024         Check for fstat error.  Close stream and free storage
78025         when failing.
78026
78027 2003-09-14  Karl Berry  <karl@gnu.org>
78028
78029         * config/srclist.txt (strdup.c): disable for c89 changes.
78030
78031 2003-09-14  Jim Meyering  <jim@meyering.net>
78032
78033         * lib/getloadavg.c: Correct cpp indentation.
78034         * lib/strdup.c: Likewise.
78035         * lib/vasnprintf.c: Likewise.
78036
78037 2003-09-14  Bruno Haible  <bruno@clisp.org>
78038
78039         * modules/fwriteerror: New file.
78040         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78041
78042 2003-09-14  Bruno Haible  <bruno@clisp.org>
78043
78044         * lib/fwriteerror.h: New file.
78045         * lib/fwriteerror.c: New file.
78046
78047 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78048
78049         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78050         modules/xgethostname, modules/xalloc: Depend on exit.
78051
78052 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78053
78054         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78055
78056         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78057         and AC_MINIX, too, so that their extensions are available.
78058
78059         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78060         This macro has been superseded by gl_BACKUPFILE.
78061
78062         More patches to assume C89 or better.
78063
78064         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78065
78066         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78067         unconditionally.
78068         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78069         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78070         Include <string.h>, <stdlib.h> unconditionally.
78071         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78072         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78073         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78074         headers or for string.h.
78075         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78076         or strtoul.
78077
78078         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78079         headers.
78080         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78081         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78082         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78083         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78084         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78085         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78086         memcpy, memset.
78087         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78088         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78089         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78090         strtol.
78091         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78092         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78093         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78094         strtoul.
78095
78096 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78097
78098         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78099         * lib/obstack.c [!defined _LIBC]: Likewise.
78100         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78101         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78102         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78103
78104         More changes to assume C89 or better.
78105
78106         * lib/error.c (error_tail): Assume vprintf.
78107
78108         * lib/argmatch.c (getenv): Remove decl.
78109         * lib/progreloc.c (get_full_program_name): Define via prototype.
78110         * lib/setenv.c (clearenv): Likewise.
78111         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78112         needed.
78113         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78114         (malloc, memcpy): Remove decls.
78115         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78116         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78117         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78118         (memcpy): Remove macro.
78119         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78120         (__P): Remove.  All uses removed.
78121         (PTR): Remove.  All uses changed to void *.
78122         (CHAR_BIT, NULL): Remove.
78123         (spaces, zeros, memset_space, memset_zero)
78124         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78125         Remove.
78126         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78127         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78128         Define with prototype.
78129         Remove now-unnecessary prototype decl.
78130         (extra_args_spec): Assume ANSI C.  All uses changed.
78131         (extra_args_spec_iso): Remove.
78132         (my_strftime, emacs_strftimeu): Define via prototype.
78133         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78134         unconditionally.
78135         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78136         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78137         (strtoul, strtol): Remove decls.
78138         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78139         LONG_MAX): Remove.
78140         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78141         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78142         (LOCALE_PARAM_PROTO): New macro.
78143         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78144         (INTERNAL (strtol), strtol): Define with a prototype.
78145         (PARAMS): Remove.  All uses removed.
78146         * lib/tempname.c: Include <string.h> unconditionally.
78147         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78148         * lib/xgethostname.c (main): Define with a prototype.
78149         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78150         Include <stdlib.h> unconditionally.
78151         (calloc, malloc, realloc, free): Remove decls.
78152         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78153         Include <stdlib.h> unconditionally.  Sort include file names.
78154         (strtod): Remove.
78155         (xstrtod): Define with a prototype.
78156         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78157         (strtol, strtoul): Remove decls.
78158
78159 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78160
78161         More patches to assume C89 or better.
78162         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78163         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78164         string.h, memchr, STDC_HEADERS.
78165
78166 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78167
78168         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78169         Include <stdlib.h>, <string.h> unconditionally.
78170         Remove now-unnecessary cast to char *.
78171         * lib/strnlen.c: Include <string.h> unconditionally.
78172         * lib/yesno.c (yesno): Define with a prototype.
78173
78174 2003-09-11  Bruno Haible  <bruno@clisp.org>
78175
78176         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78177
78178 2003-09-10  Jim Meyering  <jim@meyering.net>
78179
78180         * lib/error.c: Correct indentation of cpp directives.
78181
78182 2003-09-10  Bruno Haible  <bruno@clisp.org>
78183
78184         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78185         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78186         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78187         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78188         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78189         <stdlib.h> and <string.h> checks.
78190         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78191         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78192
78193 2003-09-10  Bruno Haible  <bruno@clisp.org>
78194
78195         * lib/strcspn.c: Include <string.h> unconditionally.
78196         * lib/strpbrk.c: Include <string.h> unconditionally.
78197         * lib/strstr.c: Include <string.h> unconditionally.
78198         * lib/unicodeio.c: Include <string.h> unconditionally.
78199         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78200         * lib/unsetenv.c: Likewise.
78201         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78202         * lib/yesno.c: Include <stdlib.h> unconditionally.
78203         (rpmatch): Add prototype.
78204
78205 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78206
78207         More patches to assume C89 or better.
78208         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78209         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78210         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78211         or for string.h.
78212         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78213         stdlib.h.
78214         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78215         C headers.
78216         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78217         string.h.
78218         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78219         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78220         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78221         or for string.h.
78222         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78223         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78224         C headers.
78225         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78226         memcpy.
78227         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78228         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78229         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78230         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78231         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78232         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78233         string.h, free.
78234         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78235         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78236         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78237         C headers, or for string.h.
78238         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78239         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78240         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78241         headers, memory.h, stdlib.h, string.h, strings.h.
78242         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78243         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78244         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78245         strchr.
78246         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78247         headers, memory.h, string.h.
78248         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78249         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78250         free.
78251         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78252         headers.
78253         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78254         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78255         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78256         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78257         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78258
78259 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78260
78261         More K&R removal.
78262
78263         * lib/acosl.c (main): Use a prototype.
78264         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78265         tanl.c: Likewise.
78266
78267         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78268
78269         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78270         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78271         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78272         with a prototype.
78273         * lib/getopt.c (const): Remove macro.
78274         Include <string.h> unconditionally.
78275         (my_index): Remove; all uses changed to strchr.
78276         (strlen): Remove decl.
78277         (exchange): Remove forward decl; no longer needed.
78278         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78279         Define with prototype.
78280         * lib/getopt1.c (const): Remove macro.
78281         (getopt_long, getopt_long_only, main): Define with prototype.
78282
78283         * lib/getugroups.c: Include <string.h> unconditionally.
78284
78285         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78286         (getusershell, setusershell, endusershell, readname, main):
78287         Define with prototypes.
78288
78289         * lib/group-member.c: Include group-member.h first.
78290         Include <stdlib.h> unconditionally.
78291
78292         * lib/hard-locale.c: Include hard-locale.h first.
78293         Include <stdlib.h>, <string.h> unconditionally.
78294
78295         * lib/hash.c (free, malloc): Remove decls.
78296         Include <stdlib.h> unconditionally.
78297
78298         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78299         (getenv): Do not declare.
78300
78301         * lib/idcache.c: Include <string.h> unconditionally.
78302
78303         * lib/long-options.c: Include long-options.h first, to test interface.
78304         Include <stdlib.h> unconditionally.
78305
78306         * lib/makepath.c: Include makepath.h first, to test interface.
78307         Include <stdlib.h> and <string.h> unconditionally.
78308
78309         * lib/linebuffer.c: Include <stdlib.h>.
78310         (free): Remove decl.
78311
78312         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78313         stddef.h. rpl_malloc returns void *, not char *.
78314         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78315         prototype.
78316
78317         * lib/md5.h: Include <limits.h> unconditionally.
78318         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78319         (__P): Remove; all uses removed.
78320         * lib/md5.c: Include "md5.h" first.
78321         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78322         md5_buffer, md5_process_bytes, md5_process_block):
78323         Define with prototypes.
78324         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78325         * lib/sha.c: Include "sha.h" first.
78326         Include <stdlib.h>, <string.h> unconditionally.
78327
78328         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78329         * lib/memcmp.c (__ptr_t): Likewise.
78330         * lib/memrchr.c (__ptr_t): Likewise.
78331         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78332         Include <string.h> unconditionally.
78333         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78334         * lib/memchr.c: Include <stdlib.h> unconditionally.
78335         * lib/memchr.c (LONG_MAX): Remove.
78336         * lib/memrchr.c (LONG_MAX): Likewise.
78337         * lib/memchr.c (__memchr): Define via a prototype.
78338         * lib/memrchr.c (__memrchr): Likewise.
78339         * lib/memcmp.c (__P): Remove, and remove all uses.
78340         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78341         Remove forward decls; no longer needed.
78342         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78343         Use types required by C89 in prototype.
78344
78345         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78346         * lib/savedir.c: Likewise.
78347         * lib/mkdir.c (free): Remove decl.
78348         * lib/rmdir.c (rmdir): Define with a prototype.
78349         * lib/savedir.c: Include savedir.h first, to test interface.
78350
78351         * lib/mktime.c (STDC_HEADERS): Remove.
78352         Include <stdlib.h>, <string.h> unconditionally.
78353
78354         * lib/modechange.c: Include <stdlib.h> unconditionally.
78355         (malloc): Remove decl.
78356
78357         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78358         (free): Remove decl.
78359
78360         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78361         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78362         (This type really should be intptr_t, but that's a C99ism.)
78363         (_obstack_memcpy): Remove: all uses changed to memcpy.
78364         Include <string.h> unconditionally.
78365         (struct obstack): Assume __STDC__ for types of members
78366         chunkfun, freefun, extra_arg.
78367         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78368         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78369         obstack_begin, obstack_specify_allocation,
78370         obstack_specify_allocation_with_arg, obstack_chunkfun,
78371         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78372         Remove unprototyped decls and the macros that use them.
78373         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78374         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78375         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78376         (defined __STDC__ && __STDC__)]:
78377         Remove nonprototyped code.
78378         Include <stdlib.h> unconditionally.
78379         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78380         _obstack_allocated_p, _obstack_free, obstack_free,
78381         _obstack_memory_used, print_and_abort):
78382         Define using prototypes.
78383         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78384         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78385         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78386         obstack_next_free, obstack_object_size, obstack_room) [0]:
78387         Remove unused, unprototyped code.
78388
78389         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78390
78391         * lib/physmem.c (physmem_total, physmem_available, main): Define
78392         with prototypes.
78393
78394         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78395         (main): Define with a prototype.
78396
78397         * lib/posixver.c (getenv): Remove decl.
78398
78399         * lib/putenv.c (malloc): Returns void *, not char *.
78400         Include <string.h> unconditionally.
78401         (strchr, memcpy, NULL): Do not define.
78402
78403         * lib/readtokens.c: Include readtokens.h first, to test interface.
78404         Include <stdlib.h>, <string.h> unconditionally.
78405         (init_tokenbuffer): Define with a prototype.
78406
78407         * lib/regex.c (PARAMS): Remove.  All uses removed.
78408         All uses of _RE_ARGS removed, too.
78409         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78410         unconditionally.
78411         (bzero): Assume memset exists.
78412         (memcmp, memcpy, NULL): Remove.
78413         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78414         char, or assignments to local vars of type signed char.
78415         (init_syntax_once, PREFIX(extract_number_and_incr),
78416         PREFIX(print_partial_compiled_pattern),
78417         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78418         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78419         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78420         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78421         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78422         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78423         wcs_compile_range, byte_compile_range, truncate_wchar,
78424         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78425         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78426         count_mbs_length, wcs_re_match_2_internal,
78427         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78428         PREFIX(alt_match_null_string_p),
78429         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78430         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78431         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78432         now-unnecessary declaration, if any.
78433         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78434         regcomp, regexec):
78435         Remove now-unnecessary casts among pointer types.
78436         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78437
78438         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78439         (free): Remove decl.
78440
78441         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78442
78443         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78444         (free): Remove decl.
78445
78446         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78447         * lib/xgetcwd.c: Likewise.
78448
78449         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78450         (free): Remove decl.
78451
78452         * lib/strchrnul.c (strchrnul): Define with a prototype.
78453         Fix bug: c_in was not converted to char before searching.
78454
78455         The following changes are not K&R related:
78456
78457         * lib/group-member.h: Include <sys/types.h>, so that this file is
78458         self-contained.
78459         * lib/makepath.h: Likewise.
78460
78461         * lib/getusershell.c (readname, default_index, line_size, readname):
78462         Use size_t, not int, for sizes.
78463         (readname): If the size overflows, report an error instead of
78464         looping forever.
78465
78466 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78467
78468         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78469         libc.
78470
78471 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78472
78473         * README: New section: portability guidelines.
78474
78475 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78476
78477         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78478         C89 spec.
78479
78480 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78481
78482         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78483
78484 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78485
78486         Assume C89 or better; remove K&R cruft.
78487         A few of these changes were first proposed by Derek Robert Price
78488         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78489
78490         * lib/addext.c: Include <string.h> unconditionally.
78491         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78492         Don't declare getenv or malloc.
78493
78494         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78495         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78496         (NULL): Remove.
78497         (find_stack_direction, alloca): Use prototypes.
78498
78499         * lib/atexit.c (atexit): Define using a prototype.
78500
78501         * lib/basename.c, dirname.c, stripslash.c:
78502         Include <string.h> unconditionally.
78503
78504         * lib/bcopy.c: Include <stddef.h>.
78505         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78506
78507         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78508
78509         * lib/error.h (error, error_at_line, error_print_progname)
78510         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78511         * lib/error.c: Include error.h first, to check interface.
78512         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78513         (VA_START): Remove; all uses changeed to va_start.
78514         (exit, strerror): Remove decls.
78515         (error_print_progname): Prototype uncondionally.
78516         Don't include <errno.h>; no longer needed.
78517         (private_strerror): Remove.
78518         (error_tail): Always define.
78519         (error, error_at_line): Assume C89 or better; always use prototypes.
78520         * lib/fatal.c: Include "fatal.h" first, to test interface.
78521         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78522         (VA_START): Remove; all uses changed to va_start.
78523         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78524         this case.
78525         (exit): Remove decl.
78526         (fatal): Prototype unconditionally.  Assume va_start works.
78527         Abort at end, to pacify gcc.
78528
78529         * lib/euidaccess.c (main): Define with a prototype.
78530
78531         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78532
78533         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78534
78535         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78536         prototypes.
78537         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78538         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78539         (getenv): Remove decl.
78540         (fnmatch): Define using a prototype.
78541         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78542         (FCT): Define using a prototype.
78543
78544         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78545
78546         * lib/gethostname.c: Include <stddef.h>.
78547         (gethostname): Define with prototype.  Length is size_t, not int.
78548
78549 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78550
78551         Assume C89 or better; remove K&R cruft.
78552         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78553         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78554         string.h, getenv, malloc.
78555         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78556         headers.
78557         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78558         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78559         do not check for strerror.
78560         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78561         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78562         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78563         do not check for doprnt or vprintf.
78564         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78565         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78566
78567 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78568
78569         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78570         getversion.c should have been removed then, but was accidentally
78571         preserved.
78572
78573         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78574         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78575
78576 2003-09-08  Karl Berry  <karl@gnu.org>
78577
78578         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78579                 config, forget about prep.
78580
78581         * config/depcomp, missing: update from automake.
78582
78583 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78584
78585         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78586         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78587
78588 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78589
78590         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78591         copy_tm_result.  Bug reported by Simon Josefsson in
78592         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78593
78594 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78595
78596         * m4/time_r.m4: New file.
78597         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78598         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78599         is. Check for timegm declaration.
78600         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78601         Do not check for gmtime_r.
78602         Replace mktime if __mktime_internal does not exist and if mktime
78603         hasn't been replaced already.
78604
78605 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78606
78607         * lib/time_r.c, lib/time_r.h: New files.
78608
78609         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78610         __localtime_r.
78611         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78612         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78613
78614         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78615         __gmtime_r.
78616         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78617         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78618         Include <time_r.h>.
78619
78620         * lib/timegm.c: Switch to glibc implementation, with the following
78621         changes:
78622         [defined HAVE_CONFIG_H]: Include <config.h>.
78623         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78624         (__mktime_internal) [!defined _LIBC]: New decl.
78625         (__gmtime_r) [!defined _LIBC]: New macro and function.
78626         (timegm): Use a prototype, since gnulib assumes C89.
78627         Do not bother declaring tmp to be const, as it's not really usefu.
78628         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78629         (timegm): Declare only if HAVE_DECL_TIMEGM.
78630
78631 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78632
78633         * MODULES.html.sh (func_all_modules): Add time_r.
78634         * modules/time_r: New file.
78635         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78636         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78637
78638 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78639
78640         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78641         Bug reported by Lute Kamstra in
78642         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78643
78644         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78645         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78646         course with correspondingly smaller numbers for tomorrow and
78647         yesterday.  From Tadayoshi Funaba.  Originally installed into
78648         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78649         coreutils merge?).
78650
78651 2003-08-31  Simon Josefsson  <jas@extundo.com>
78652
78653         * modules/timegm: New file.
78654         * MODULES.html.sh (func_all_modules): Add timegm.
78655
78656 2003-08-31  Simon Josefsson  <jas@extundo.com>
78657
78658         * m4/timegm.m4: New file.
78659
78660 2003-08-31  Simon Josefsson  <jas@extundo.com>
78661
78662         * lib/timegm.h: New file.
78663         * lib/timegm.c: New file.  Based on
78664         wget-1.8.2/src/http.c:mktime_from_utc.
78665
78666 2003-08-31  Karl Berry  <karl@gnu.org>
78667
78668         * lib/argp.h: update from libc.
78669
78670 2003-08-28  Bruno Haible  <bruno@clisp.org>
78671
78672         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78673         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78674         followed by '#define fnmatch fnmatch_posix' gives an error.
78675
78676 2003-08-28  Bruno Haible  <bruno@clisp.org>
78677
78678         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78679         warning on QNX, which defines O_BINARY to 000000.
78680
78681 2003-08-27  Jim Meyering  <jim@meyering.net>
78682
78683         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78684         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78685         would fail after 32.  Reported by Danny Levinson.  Details here:
78686         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78687
78688 2003-08-24  Bruno Haible  <bruno@clisp.org>
78689
78690         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78691         MSVC7 <stdio.h> is included later.
78692
78693 2003-08-22  Simon Josefsson  <jas@extundo.com>
78694
78695         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78696
78697 2003-08-20  Karl Berry  <karl@gnu.org>
78698
78699         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78700
78701 2003-08-20  Bruno Haible  <bruno@clisp.org>
78702
78703         * modules/progname: New file.
78704         * MODULES.html.sh (func_all_modules): Add progname.
78705
78706 2003-08-20  Bruno Haible  <bruno@clisp.org>
78707
78708         * lib/progname.h: New file, from GNU gettext.
78709         * lib/progname.c: New file, from GNU gettext.
78710         * lib/progreloc.c: New file, from GNU gettext.
78711
78712 2003-08-19  Jim Meyering  <jim@meyering.net>
78713
78714         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78715         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78716
78717 2003-08-19  Bruno Haible  <bruno@clisp.org>
78718
78719         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78720         more.
78721
78722 2003-08-19  Bruno Haible  <bruno@clisp.org>
78723
78724         * lib/xstrdup.c: Assume <string.h> exists.
78725
78726 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78727
78728         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78729         in makefile rules.
78730
78731 2003-08-18  Jim Meyering  <jim@meyering.net>
78732
78733         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78734         * m4/lib-ld.m4: Likewise.
78735
78736 2003-08-18  Jim Meyering  <jim@meyering.net>
78737
78738         * lib/setenv.h: Indent nested cpp directive.
78739         * lib/vasnprintf.c: Remove trailing blanks.
78740
78741 2003-08-17  Simon Josefsson  <jas@extundo.com>
78742
78743         * modules/xstrndup: New file.
78744         * MODULES.html.sh (func_all_modules): Add xstrndup.
78745
78746 2003-08-17  Simon Josefsson  <jas@extundo.com>
78747
78748         * modules/argp: Fix autoconf macro name. Add more dependencies.
78749
78750 2003-08-17  Simon Josefsson  <jas@extundo.com>
78751
78752         * m4/xstrndup.m4: New file.
78753
78754 2003-08-17  Simon Josefsson  <jas@extundo.com>
78755
78756         * m4/argp.m4: New file.
78757
78758 2003-08-17  Simon Josefsson  <jas@extundo.com>
78759             Bruno Haible  <bruno@clisp.org>
78760
78761         * lib/xstrndup.h: New file.
78762         * lib/xstrndup.c: New file.
78763
78764 2003-08-17  Bruno Haible  <bruno@clisp.org>
78765
78766         * modules/strndup (Files, Include): Add lib/strndup.h.
78767
78768 2003-08-17  Bruno Haible  <bruno@clisp.org>
78769
78770         * modules/euidaccess (Files): Add lib/euidaccess.h.
78771
78772 2003-08-17  Bruno Haible  <bruno@clisp.org>
78773
78774         * lib/strndup.h: New file.
78775
78776 2003-08-17  Bruno Haible  <bruno@clisp.org>
78777
78778         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78779         like AC_GNU_SOURCE.
78780         * modules/extensions (configure.ac): Comment out the invocation of
78781         gl_USE_SYSTEM_EXTENSIONS.
78782
78783 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78784
78785         Merges from coreutils, etc.
78786         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78787         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78788         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78789         fixing a typo.
78790         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78791         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78792
78793 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78794
78795         Document merge from coreutils.
78796         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78797         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78798         * modules/utime: Add m4/utimes-null.m4.
78799
78800 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78801
78802         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78803         space, undoing this 2003-08-12 change:
78804         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78805
78806 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78807
78808         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78809         strtoul.c from libc, undoing this 2003-08-12 change:
78810         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78811
78812 2003-08-16  Jim Meyering  <jim@meyering.net>
78813
78814         Merges from coreutils.
78815         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78816         prefix.  Adjust cache variables similarly.  Create 500 rather than
78817         just 300 files, to exercise bug on Darwin6.5, too.
78818         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78819         $missing_dir.
78820         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78821         AM_SYS_POSIX_TERMIOS.
78822         Reported by mkc@mathdogs.com.
78823         Also change use of $am_cv_sys_posix_termios
78824         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78825         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78826         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78827         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78828         in /proc/mounts until it finds one with matching device number.  This
78829         is unnecessary when the FILE argument *is* a mount point.  No stat call
78830         is necessary in that case.  So, disable the statvfs-testing code on
78831         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78832         as RedHat bug# 84846.
78833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78834         to 1MB, so as not to render systems with no stack size limit (e.g.,
78835         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78836         Include <unistd.h>.  On some systems,
78837         it is required for the definition of _SC_PAGESIZE.
78838
78839 2003-08-16  Jim Meyering  <jim@meyering.net>
78840
78841         Merge from coreutils.
78842         * lib/xstrtoimax.c: #else #if -> #elif.
78843         * lib/xstrtoumax.c: Likewise.
78844
78845 2003-08-16  Jim Meyering  <jim@meyering.net>
78846
78847         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78848         * m4/utimes.m4: Removed.
78849         * m4/utimes-null.m4: Renamed from utimes.m4.
78850
78851         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78852         to 1MB, so as not to render systems with no stack size limit (e.g.,
78853         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78854         Include <unistd.h>.  On some systems,
78855         it is required for the definition of _SC_PAGESIZE.
78856
78857 2003-08-16  Jim Meyering  <jim@meyering.net>
78858         and Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         Merges from coreutils, etc.
78861
78862         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78863         using the latest version from cvs.  This avoids problems with #line
78864         directives using a vendor (Sun) compiler.
78865         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78866         Don't set GETGROUPS_LIB here; now it's
78867         done via getgroups.m4's wrapper function.
78868         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78869         rather than just in sh-util/configure.in, so that the
78870         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78871         same.
78872         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78873         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78874         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78875         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78876         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78877         Remove code that is now done by the newly-required macros.
78878         Append $(EXEEXT) to DF_PROG.
78879         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78880         Do not invoke or require the following here,
78881         since prereq.m4 or some gnulib .m4 now does this for us:
78882         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78883         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78884         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78885         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78886         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78887         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78888         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78889         AC_FUNC_OBSTACK.
78890         Do not replace the following functions, as this is now the job
78891         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78892         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78893         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78894         atexit getpass, strdup, getpagesize.
78895         Replace 'raise'.
78896         Do not check for the following functions, as this is now the job
78897         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78898         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78899         setregid.
78900         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78901         Check for sys/sysctl.h.
78902         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78903         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78904         of checking for ssize_t ourselves.
78905
78906         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78907         Require every macro that gnulib/modules/* suggests for us.
78908         (jm_PREREQ_ADDEXT): New macro.
78909         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78910         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78911
78912         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78913         (gl_PHYSMEM): Use it.
78914         Also check for `table' function.
78915         Check for new headers and functions.
78916         Add check for sys/sysmp.h.
78917         With suggestions from Kaveh Ghazi.
78918         Ignore headers that are present but cannot be compiled.  This
78919         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78920         C 5.4.
78921
78922 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78923
78924         Document merge from coreutils.
78925         * modules/userspec: Depend on posixver.
78926         * modules/strftime: Depend on tzset.
78927
78928 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78929
78930         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78931         rather than tab, after '#' in shell-script copyright notices.
78932         Suggested by Bruno Haible.
78933
78934 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78935
78936         * config/srclist-update: Use three spaces, rather than tab, after '#'
78937         in shell-script copyright notices.  Suggested by Bruno Haible.
78938         Remove unnecessary parenthesization in regular expression.
78939
78940 2003-08-15  Jim Meyering  <jim@meyering.net>
78941
78942         Merge from coreutils.
78943         * lib/xgethostname.c: Include <stdlib.h>.
78944         (xghostname): Don't exit for anything other than memory-related
78945         failure; just return NULL.
78946         * lib/userspec.c: Include "posixver.h".
78947         (parse_user_spec): Accept `.' as a separator only
78948         in pre-POSIX-200112 mode.
78949         * lib/strtoimax.c: Use #elif rather than #else #if.
78950         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78951         Remove function, now that we can rely on a working tzset function.
78952         [!_LIBC]: Ensure that the required autoconf test has been run.
78953         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78954         Use underlying_strftime for %r.
78955         * lib/sha.c: Merge in some clean-up and optimization changes from
78956         glibc.
78957         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78958         Ensure that it is a multiple of 64.
78959         Rearrange loop exit tests so as to avoid performing an
78960         additional fread after encountering an error or EOF.
78961         * lib/realloc.c: Update copyright date.
78962
78963 2003-08-15  Jim Meyering  <jim@meyering.net>
78964         and Paul Eggert  <eggert@twinsun.com>
78965
78966         Merge from coreutils.
78967         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78968         member but strut utmpx does not.  Needed for AIX 4.3.3.
78969         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78970
78971 2003-08-15  Jim Meyering  <jim@meyering.net>
78972         and Paul Eggert  <eggert@cs.ucla.edu>
78973
78974         Merges from coreutils, etc.
78975         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78976         Require gl_FUNC_TZSET_CLOBBER.
78977         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78978         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78979         members.
78980
78981 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78982
78983         Help the merge from coreutils.
78984         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78985         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78986         * m4/tzset.m4: Use it too.
78987
78988 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78989
78990         * modules/tzset: New file.
78991
78992 2003-08-14  Jim Meyering  <jim@meyering.net>
78993
78994         Merges from coreutils.
78995         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78996         variable names, rather than @FNMATCH_H@.
78997         * modules/alloca: Likewise for $(ALLOCA_H).
78998
78999         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79000         the three copies of the literal target, `fnmatch.h'.
79001         * modules/alloca (alloca.h): Likewise.
79002
79003 2003-08-14  Jim Meyering  <jim@meyering.net>
79004
79005         Merge from coreutils.
79006         * m4/tzset.m4: New file.
79007         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79008         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79009         otherwise, AIX 5.1 systems would end up using the latter.
79010         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79011         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79012         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79013         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79014
79015 2003-08-14  Jim Meyering  <jim@meyering.net>
79016
79017         Merge from coreutils.
79018         * lib/obstack.h: Whitespace changes.
79019         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79020         and xcalloc return values.
79021         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79022         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79023         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79024         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79025         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79026         error from mntctl.
79027         Use mntctl's return value to drive the entry-processing loop, since
79028         we can't rely on the value of the vmt_length member in the last
79029         entry.  On some systems doing so could result in exhausting
79030         virtual memory.  Based in part on a patch from Mike Jetzer.
79031
79032 2003-08-14  Jim Meyering  <jim@meyering.net>
79033         and Paul Eggert  <eggert@twinsun.com>
79034
79035         Merges from coreutils, plus other fixes.
79036         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79037         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79038         for credits and details.  Thanks to Kaveh Ghazi for helping
79039         to keep these files in sync.
79040         (ARRAY_SIZE): Define it.
79041         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79042         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79043         (memcasecmp): Don't assume size_t fits in unsigned int.
79044         Remove casts and duplicate code.
79045         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79046         (memcpy): Remove definition.
79047         Merge in some clean-up and optimization changes from glibc.
79048         [BLOCKSIZE]: Move definition to top of file.
79049         Ensure that it is a multiple of 64.
79050         Rearrange loop exit tests so as to avoid performing an
79051         additional fread after encountering an error or EOF.
79052         * lib/md5.h (md5_uintptr): Define.
79053         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79054         return to the initial working directory.  Preserve errno
79055         for caller.
79056         * lib/idcache.c: Include "xalloc.h".
79057         (xmalloc, xrealloc): Remove decls.
79058         (getuser): Remove casts no longer required in C89.
79059         * lib/human.c: Include stdio.h, for sprintf.
79060         * lib/group-member.c: Include "xalloc.h".
79061         (xmalloc, xrealloc): Remove decls.
79062         (get_group_info): Remove casts no longer required in C89.
79063         * lib/getusershell.c (readname): Remove casts no longer required in
79064         C89.
79065         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79066         * lib/getline.c: Whitespace fix, from coreutils.
79067
79068 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79069
79070         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79071         Check for isascii.
79072
79073         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79074         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79075         Undo previous (whitespace-only) change.
79076
79077 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79078
79079         * lib/exclude.c: Include <ctype.h>
79080         (IN_CTYPE_DOMAIN): New macro.
79081         (is_space): New fn.
79082         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79083         and empty lines.
79084
79085         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79086         Undo previous (whitespace-only) change.
79087
79088 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79089
79090         * config/srclist-update: Change update back to the old behavior,
79091         leaving whitespace alone.  Use one 'sed' command rather than a
79092         pipeline.
79093         (fixlicense): Now a variable, not a function.
79094         (remove_trailing_blanks): Remove.
79095         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79096         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79097         Undo previous (whitespace-only) change.
79098
79099 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79100
79101         Merge from coreutils.
79102         * modules/euidaccess: Add lib_SOURCES, include for new
79103         file euidaccess.h
79104
79105 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79106
79107         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79108         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79109         Normalize leading white space and remove trailing white space.
79110
79111         Merge from coreutils
79112         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79113
79114         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79115         0.12.1.  These files are now being upgraded automatically by
79116         ../config/srclist-update.
79117
79118 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79119
79120         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79121         Normalize leading white space and remove trailing white space.
79122         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79123         notice, as per ../config/srclist-update.
79124
79125         Merge from coreutils.
79126         * lib/euidaccess.h: New file.
79127         * lib/euidaccess.c: Include it.
79128         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79129         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79130         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79131
79132 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79133
79134         * config/srclist-update: Add copyright notice.
79135         (remove_id_lines, remove_trailing_blanks): New constants.
79136         (fixfile): Use them to normalize spacing a bit in copied files.
79137         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79138         Normalize leading white space and remove trailing white space.
79139
79140         * config/texinfo.tex: Sync with texinfo.
79141
79142         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79143         strtoul.c from libc, to merge coreutils whitespace changes.
79144
79145         * config/srclist.txt: Get the following m4 files from gettext:
79146         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79147         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79148         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79149         wint_t.m4.
79150
79151 2003-08-12  Karl Berry  <karl@gnu.org>
79152
79153         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79154         been made.
79155
79156 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79157
79158         * modules/gnu-source, m4/gnu-source.m4:
79159         Remove; we're assuming Autoconf 2.54 or later now.
79160         Suggested by Bruno Haible.
79161         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79162
79163 2003-08-11  Bruno Haible  <bruno@clisp.org>
79164
79165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79166
79167 2003-08-11  Bruno Haible  <bruno@clisp.org>
79168
79169         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79170         (vasnprintf): Use it instead of wcslen.
79171
79172 2003-08-11  Bruno Haible  <bruno@clisp.org>
79173
79174         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79175         value to ensure that _Bool promotes to int. Use #define for _Bool when
79176         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79177
79178 2003-08-10  Karl Berry  <karl@gnu.org>
79179
79180         * lib/regex.h: update from libc (whitespace fix).
79181
79182 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79183
79184         Merge some files from coreutils.  These changes were
79185         originally made by Jim Meyering.
79186         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79187         many older Unixes require this.
79188         * lib/alloca.c (alloca): Remove cast to argument of free;
79189         no longer needed in C89.
79190         * lib/alloca_.h, regex.h: Fix white space to match
79191         what GNU indent does.
79192
79193 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79194
79195         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79196         apparently Emacs's Unicode mode got confused before my 2003-08-05
79197         checkin.
79198
79199 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79200
79201         * m4/extensions.m4: New file.
79202         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79203         Require gl_USE_SYSTEM_EXTENSIONS.
79204         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79205         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79206
79207 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79208
79209         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79210         * modules/extensions, modules/gnu-source: New files.
79211         * modules/timespec, modules/unlocked-io: Depend on extensions.
79212
79213 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79214
79215         * modules/restrict: New file.
79216         * MODULES.html.sh (func_all_modules): Add restrict.
79217         * modules/regex: Depend on restrict.
79218
79219 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79220
79221         * m4/restrict.m4: New file.
79222         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79223
79224 2003-08-07  Bruno Haible  <bruno@clisp.org>
79225
79226         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79227         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79228
79229 2003-08-07  Bruno Haible  <bruno@clisp.org>
79230
79231         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79232         makes the module 'getndelim2' compatible with the module 'getline'.
79233
79234 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79235
79236         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79237         byte with "\201" to avoid glitches when editing that source file
79238         with multi-gnome-terminal.
79239
79240 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79241
79242         * lib/bumpalloc.h: Remove.
79243
79244 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79245
79246         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79247         * modules/bumpalloc: Remove.
79248
79249 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79250
79251         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79252         GNU coding style.
79253
79254         Merge from coreutils.
79255         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79256         1. From glibc.
79257         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79258         from Karl Berry, implemented by Jim Meyering.
79259         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79260         from Dmitry V. Levin.
79261         Remove anachronistic cast of xrealloc.
79262         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79263         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79264         type. Otherwise, it wouldn't compile with at least /bin/cc on
79265         ymp-cray-unicos9.0.2.X.
79266         Combine two mostly-identical uses of alloca into one.
79267         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79268
79269 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79270
79271         [From Emacs.]
79272
79273         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79274         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79275         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79276         obsolete NLIST_NAME_UNION.
79277         [__GNU__]: Undef BSD and FSCALE.
79278         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79279
79280 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79281
79282         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79283         an enum type, so that it's guaranteed to promote to int.  See:
79284         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79285
79286 2003-08-03  Karl Berry  <karl@gnu.org>
79287
79288         * config/depcomp: update from automake.
79289
79290 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79291
79292         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79293         (strerror): Don't assume that a printable int fits in 14 bytes.
79294
79295 2003-07-31  Bruno Haible  <bruno@clisp.org>
79296
79297         * modules/getpass-gnu: New file.
79298         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79299
79300 2003-07-31  Bruno Haible  <bruno@clisp.org>
79301
79302         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79303
79304 2003-07-24  Karl Berry  <karl@gnu.org>
79305
79306         * config/missing: update from automake.
79307
79308 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79309             Bruno Haible  <bruno@clisp.org>
79310
79311         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79312         * lib/getline.c (getline, getdelim): Likewise.
79313         Remove _GNU_SOURCE define; now it's defined in config.h through
79314         m4/getline.m4.
79315
79316 2003-07-23  Karl Berry  <karl@gnu.org>
79317
79318         * config/config.sub: update from prep.
79319
79320 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79321
79322         * modules/xalloc (Depends-on): Add exitfail.
79323         * modules/xmemcoll: Likewise.
79324
79325 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79326
79327         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79328         over-parenthesization in macros.
79329
79330         Sync with coreutils.
79331
79332         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79333         required by C99.
79334
79335         Use `exit_failure' for xalloc and xmemcoll instead of their own
79336         private exit-failure variables.
79337         * lib/xalloc.h (xalloc_exit_failure): Remove.
79338         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79339         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79340         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79341         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79342         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79343
79344 2003-07-20  Jim Meyering  <jim@meyering.net>
79345
79346         * modules/closeout (Depends-on): Add exitfail.
79347         Suggestion from Bruno Haible.
79348
79349 2003-07-19  Karl Berry  <karl@gnu.org>
79350
79351         * config/config.sub: update from prep.
79352
79353 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79354
79355         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79356         Remove.
79357         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79358         to test that it can stand by itself.  Include "exitfail.h".
79359         Clients should set exit_failure instead.
79360         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79361
79362 2003-07-18  Bruno Haible  <bruno@clisp.org>
79363
79364         * modules/getndelim2: New file.
79365         * modules/getline: Share files with module getndelim2.
79366         * modules/getnline: Depend on getndelim2 instead of sharing files with
79367         it. Add getnline.c to lib_SOURCES.
79368         * MODULES.html.sh (func_all_modules): Add getndelim2.
79369
79370 2003-07-18  Bruno Haible  <bruno@clisp.org>
79371
79372         * m4/getndelim2.m4: New file.
79373         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79374         invoke gl_PREREQ_GETNDELIM2.
79375         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79376         gl_PREREQ_GETNDELIM2.
79377         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79378         gl_GETNDELIM2.
79379
79380 2003-07-18  Bruno Haible  <bruno@clisp.org>
79381
79382         * lib/getndelim2.h: New file.
79383         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79384         getndelim2.h.
79385         (getndelim2): Make non-static. Change return type to ssize_t.
79386         * lib/getline.h: Change argument names.
79387         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79388         * lib/getnline.c: Include getndelim2.h.
79389
79390 2003-07-18  Andreas Schwab  <schwab@suse.de>
79391
79392         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79393
79394 2003-07-17  Karl Berry  <karl@gnu.org>
79395
79396         * config/config.sub: update from prep.
79397
79398 2003-07-17  Bruno Haible  <bruno@clisp.org>
79399
79400         * modules/getnline: New file.
79401         * modules/getline: Add lib/getndelim2.c to source file list.
79402         * MODULES.html.sh (func_all_modules): Add getnline.
79403
79404 2003-07-17  Bruno Haible  <bruno@clisp.org>
79405
79406         * m4/getnline.m4: New file.
79407
79408 2003-07-17  Bruno Haible  <bruno@clisp.org>
79409
79410         * m4/Makefile.am.in: Remove file.
79411         * m4/Makefile.am: Remove file.
79412         * m4/Makefile.in: Remove file.
79413
79414 2003-07-17  Bruno Haible  <bruno@clisp.org>
79415
79416         * lib/getnline.h: New file.
79417         * lib/getnline.c: New file.
79418         * lib/getndelim2.c: New file, extracted from getline.c.
79419         (getndelim2): Renamed from getdelim2, with added nmax argument.
79420         * lib/getline.c: Include getndelim2.c.
79421         (getdelim2): Moved out to getndelim2.c.
79422         (getline, getdelim): Update.
79423
79424 2003-07-17  Bruno Haible  <bruno@clisp.org>
79425
79426         * lib/Makefile.am: Remove file.
79427         * lib/Makefile.in: Remove file.
79428
79429 2003-07-17  Bruno Haible  <bruno@clisp.org>
79430
79431         * configure.in: Remove file.
79432         * Makefile.in: Remove file.
79433
79434 2003-07-17  Bruno Haible  <bruno@clisp.org>
79435
79436         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79437
79438 2003-07-16  Karl Berry  <karl@gnu.org>
79439
79440         * config/srclist-update: was running fixlicense twice, which caused
79441                 texinfo.tex to be nullified for some reason.  Simplify,
79442                 $gplsrc is no longer needed as far as I can see?
79443
79444 2003-07-16  Jim Meyering  <jim@meyering.net>
79445
79446         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79447
79448 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79449
79450         * config/srclist.txt: Get the following files from gettext-runtime/intl
79451         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79452         ref-del.sin.  From Bruno Haible.
79453         * config/srclist-update (fixfile): Change grep pattern again, since the
79454         previous fix didn't work (there was another trailing $).  Use
79455         '[$]' to escape the $s.
79456
79457 2003-07-15  Karl Berry  <karl@gnu.org>
79458
79459         * lib/vasnprintf.c: update from gettext.
79460
79461 2003-07-15  Karl Berry  <karl@gnu.org>
79462
79463         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79464         gets expanded when surrounded by '$'.
79465
79466 2003-07-15  Jim Meyering  <jim@meyering.net>
79467
79468         * modules/save-cwd: Don't depend on error.  From Derek Price.
79469
79470 2003-07-15  Jim Meyering  <jim@meyering.net>
79471
79472         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79473
79474 2003-07-14  Simon Josefsson  <jas@extundo.com>
79475
79476         * modules/mempcpy: New file.
79477         * MODULES.html.sh (func_all_modules): Add mempcpy.
79478
79479 2003-07-14  Simon Josefsson  <jas@extundo.com>
79480
79481         * m4/mempcpy.m4: New file.
79482
79483 2003-07-14  Simon Josefsson  <jas@extundo.com>
79484
79485         * lib/mempcpy.h: New file.
79486         * lib/mempcpy.c: New file.
79487
79488 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79489
79490         * modules/getdate, modules/posixtm: Depend on mktime.
79491
79492 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79493
79494         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79495         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79496         unicodeio.c, unicodeio.h, unlocked-io.h:
79497         Switch from LGPL to GPL.
79498
79499 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79500
79501         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79502         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79503         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79504         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79505         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79506         updated automatically by ../config/srclist-update.  This changes
79507         their license from LPGL to GPL.
79508
79509 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79510
79511         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79512         assumed to refer to the root of the most recent stable gettext version.
79513         * config/srclistvars.sh: Add defaults for eggert.
79514         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79515         Match "This program" as well as "The program".  This is needed
79516         for gettext.
79517
79518 2003-07-14  Jim Meyering  <jim@meyering.net>
79519
79520         Don't emit diagnostics.  Let callers do that.
79521         * lib/save-cwd.c: Don't include "error.h".
79522         (save_cwd): Don't call error.  Ensure that errno is valid
79523         when returning nonzero.
79524
79525         * lib/save-cwd.h (restore_cwd): Update prototype.
79526         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79527         Simplify.  Don't call error upon failure.  Let callers do that.
79528         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79529         when auditing is enabled.  But don't bother updating the #if.
79530
79531 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79532
79533         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79534         it breaks C++ compilation.
79535         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79536
79537 2003-07-10  Simon Josefsson  <jas@extundo.com>
79538
79539         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79540
79541 2003-07-10  Jim Meyering  <jim@meyering.net>
79542
79543         * m4/clock_time.m4: Remove trailing blank.
79544         * m4/intmax_t.m4: Likewise.
79545
79546 2003-07-10  Jim Meyering  <jim@meyering.net>
79547
79548         * lib/vasnprintf.c: Remove trailing blanks.
79549         Make cpp indentation consistent.
79550
79551 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79552
79553         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79554         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79555         Switch from LGPL to GPL.
79556
79557 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79558
79559         * config/srclist.txt: Sort sublists.  Add
79560         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79561         that differ from gnulib for one reason or another; we'd like this list
79562         to be smaller but for now let's document what we have.
79563
79564 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79565
79566         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79567         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79568         and sweeter "eval x=$x".
79569         * config/srclist.txt: Get lib/argp* from glibc.
79570
79571 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79572
79573         * lib/mktime.c: Fix some boundary cases and remove need for floating
79574         point.
79575
79576         Issue a compile-time diagnostic if time_t is floating point, or if
79577         two's complement arithmetic is not in effect, or if arithmetic
79578         right shift does not propagate the sign.  These assumptions were
79579         all in the original code but they weren't checked.
79580
79581         (TIME_T_MIDPOINT, verify): New macros.
79582         (__isleap): Remove; it has integer overflow problems.
79583         (leapyear): New function, without those problems.
79584         (ydhms_tm_diff): Remove; splitting into two parts.
79585         (ydhms_diff): New function, containing the arithmetic part of
79586         the old ydhms_tm_diff function.  Issue a compile-time
79587         diagnostic if we are not using C99 integer division.
79588         Avoid casts when possible.
79589         (guess_time_tm): New function, containing the checking part of
79590         the old ydhms_tm_diff function.  Return the new value, rather than
79591         the difference between it and the old.  Accept a new argument T
79592         so that *T specifies the old value.  Check for overflow in the result.
79593
79594         (__mktime_internal): Use a time_t offset, not a long int offset.
79595         This undoes the 2003-06-04 change, which is no longer needed now
79596         that we have better overflow checking.
79597         (localtime_offset): Likewise.
79598
79599         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79600         and long are 64-bit but int is only 32-bit.
79601         (ydhms_diff): Use long int to store year1 and yday1.
79602         Issue a compile-time diagnostic if long int is not wide enough.
79603
79604         (__mktime_internal): Use long int to store adjusted year and yday.
79605         Use plain C rather than preprocessor commands, if that doesn't
79606         affect efficiency.
79607         Check for overflow (and try to repair) after each probe
79608         rather than checking only at the very end.  This avoids some bugs
79609         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79610         does not equal GMT offset at maximum time).
79611         Use integer to check for overflow rather than floating point; this
79612         is more portable to non-IEEE hosts, and is a tad faster.
79613         When we detect that we are oscillating between two values,
79614         don't check whether tm_isdst has the requested value, since
79615         we already know the answer.  When tm_isdst has the wrong value,
79616         use a different heuristic to find the right one, based on the
79617         extreme values actually observed in practice in tz2003a,
79618         rather than the (overly optimistic) "previous 3 calendar quarters".
79619
79620         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79621         "T const" to accommodate glibc style.
79622         (check_result): Use less-confusing report format.  "long" -> "long int.
79623         (main): Likewise.
79624         Don't loop if the iteration overflows time_t.
79625         Allow a negative step in the iteration.
79626
79627 2003-07-06  Karl Berry  <karl@gnu.org>
79628
79629         * config/depcomp: update from automake.
79630         * config/config.sub: update from prep.
79631
79632 2003-07-03  Karl Berry  <karl@gnu.org>
79633
79634         * config/config.guess: update from prep.
79635
79636 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79637
79638         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79639         xreadlink.c now includes it unconditionally.
79640
79641 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79642
79643         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79644         having it depend on HAVE_SYS_TYPES_H.
79645
79646 2003-07-01  Bruno Haible  <bruno@clisp.org>
79647
79648         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79649         <sys/types.h> should be sufficient.
79650         Reported by Paul Eggert.
79651
79652 2003-06-26  Karl Berry  <karl@gnu.org>
79653
79654         * config/depcomp: update from automake.
79655
79656 2003-06-26  Bruno Haible  <bruno@clisp.org>
79657
79658         * modules/human: Depend on module stdbool.
79659
79660 2003-06-25  Bruno Haible  <bruno@clisp.org>
79661
79662         * modules/readlink: New file.
79663         * modules/xreadlink: Depend on it.
79664         * MODULES.html.sh (func_all_modules): Add readlink.
79665
79666 2003-06-25  Bruno Haible  <bruno@clisp.org>
79667
79668         * m4/readlink.m4: New file.
79669
79670 2003-06-25  Bruno Haible  <bruno@clisp.org>
79671
79672         * lib/readlink.c: New file.
79673
79674 2003-06-22  Karl Berry  <karl@gnu.org>
79675
79676         * config/srclist.txt: update mkinstalldirs from automake.
79677         * config/mkinstalldirs: update.
79678
79679 2003-06-22  Bruno Haible  <bruno@clisp.org>
79680
79681         Portability to mingw32.
79682         * m4/ssize_t.m4: New file, from GNU gettext.
79683         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79684         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79685
79686 2003-06-22  Bruno Haible  <bruno@clisp.org>
79687
79688         * modules/safe-read: Add m4/ssize_t.m4.
79689         * modules/xreadlink: Add m4/ssize_t.m4.
79690
79691 2003-06-20  Bruno Haible  <bruno@clisp.org>
79692
79693         Assume C89, so PARAMS isn't needed.
79694         * lib/unicodeio.h (PARAMS): Remove.
79695         * lib/unicodeio.c: Don't use PARAMS.
79696
79697 2003-06-18  Karl Berry  <karl@gnu.org>
79698
79699         * config/config.{guess,sub}: update from prep.
79700
79701 2003-06-18  Jim Meyering  <jim@meyering.net>
79702
79703         Merge changes from coreutils.
79704         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79705         Remove explicit declarations of xmalloc and realloc.
79706         Include xalloc.h.
79707         (read_utmp): Remove anachronistic cast of xmalloc.
79708
79709 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79710
79711         Assume C89, so PARAMS isn't needed.
79712         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79713         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79714         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79715         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79716         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79717         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79718         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79719         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79720         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79721         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79722         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79723         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79724         no longer needed. Anyway, config.h should always be included before any
79725         other file.
79726
79727 2003-06-11  Simon Josefsson  <jas@extundo.com>
79728
79729         * modules/sysexits: New file.
79730         * MODULES.html.sh (func_all_modules): Add sysexits.
79731
79732 2003-06-11  Simon Josefsson  <jas@extundo.com>
79733
79734         * lib/sysexit_.h: New file.
79735
79736 2003-06-11  Derek Price  <derek@ximbiot.com>
79737
79738         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79739         necessary.
79740
79741 2003-06-11  Bruno Haible  <bruno@clisp.org>
79742
79743         * m4/sysexits.m4: New file.
79744
79745 2003-06-10  Simon Josefsson  <jas@extundo.com>
79746
79747         * lib/argp.h: New file, from glibc.
79748         * lib/argp-ba.c: New file, from glibc.
79749         * lib/argp-eexst.c: New file, from glibc.
79750         * lib/argp-fmtstream.c: New file, from glibc.
79751         * lib/argp-fmtstream.h: New file, from glibc.
79752         * lib/argp-fs-xinl.c: New file, from glibc.
79753         * lib/argp-help.c: New file, from glibc.
79754         * lib/argp-namefrob.h: New file, from glibc.
79755         * lib/argp-parse.c: New file, from glibc.
79756         * lib/argp-pv.c: New file, from glibc.
79757         * lib/argp-pvh.c: New file, from glibc.
79758         * lib/argp-xinl.c: New file, from glibc.
79759
79760 2003-06-10  Simon Josefsson  <jas@extundo.com>
79761
79762         * modules/strchrnul: New file.
79763
79764 2003-06-10  Simon Josefsson  <jas@extundo.com>
79765
79766         * modules/argp: New file.
79767
79768 2003-06-10  Simon Josefsson  <jas@extundo.com>
79769
79770         * m4/strchrnul.m4: New file.
79771
79772 2003-06-10  Simon Josefsson  <jas@extundo.com>
79773
79774         * lib/strchrnul.h: New file.
79775         * lib/strchrnul.c: New file.
79776
79777 2003-06-10  Bruno Haible  <bruno@clisp.org>
79778
79779         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79780
79781 2003-06-07  Karl Berry  <karl@gnu.org>
79782
79783         * config/config.{guess,sub}: update from prep.
79784
79785 2003-06-07  Jim Meyering  <jim@meyering.net>
79786
79787         * modules/strtod: Use $(...) notation, not @...@ for
79788         AC_REPLACE'd variables.
79789         * modules/localcharset: Likewise.
79790
79791 2003-06-07  Jim Meyering  <jim@meyering.net>
79792
79793         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79794         in place of my name in the copyright comment.
79795         Remove definition and uses of __P.
79796
79797         From coreutils.
79798         * lib/stat.c: Don't declare xmalloc explicitly.
79799         Instead, include "xalloc.h".
79800         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79801         xrealloc, and xcalloc return values.
79802         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79803         Improve comment.
79804         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79805
79806 2003-06-07  Bruno Haible  <bruno@clisp.org>
79807
79808         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79809         avoid AC_CONFIG_LINKS.
79810         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79811         fnmatch.h, to avoid AC_CONFIG_LINKS.
79812         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79813
79814 2003-06-07  Bruno Haible  <bruno@clisp.org>
79815
79816         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79817         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79818         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79819         directory.
79820         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79821         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79822         directory.
79823
79824 2003-06-06  Jim Meyering  <jim@meyering.net>
79825
79826         Merge from coreutils.
79827         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79828         Consolidate declarations and initializations of *_base* locals.
79829
79830         Merge from coreutils.
79831         This avoids a core dump on systems without GNU putenv,
79832         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79833         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79834         (unsetenv): New static function, from GNU libc.
79835         (rpl_putenv): Use it.
79836
79837         * lib/modechange.c: Remove trailing blanks.
79838
79839         Merge from coreutils.
79840         * lib/fsusage.c: Remove declaration of statfs.
79841         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79842
79843         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79844
79845 2003-06-06  Jim Meyering  <jim@meyering.net>
79846
79847         * lib/stdbool_.h: Renamed from stdbool.h.in.
79848
79849 2003-06-06  Jim Meyering  <jim@meyering.net>
79850             Bruno Haible  <bruno@clisp.org>
79851
79852         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79853         Adjust Makefile.am snippet not to redirect directly to target.
79854         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79855
79856 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79857
79858         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79859         mismatch, look in future quarters as well as past.  This fixes a
79860         bug when processing fall-backwards gaps immediately after a long
79861         period of daylight-saving time.
79862
79863         * lib/mktime.c: Assume freestanding C89 or better.
79864         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79865         (__P): Remove; not used.
79866         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79867         (mktime, not_equal_tm, print_tm, check_result,
79868         main): Use prototypes.  Use const * where appropriate.
79869         (main): Fix typo in testing code that uncovered by above changes.
79870         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79871
79872 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79873
79874         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79875         locale.h, localeconv.  This merges changes from coreutils.
79876
79877         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79878         It can be removed after the next Autoconf is released.
79879         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79880         needed.
79881
79882 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79883
79884         * lib/mktime.c: Fix Debian bug 177940
79885         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79886         (localtime_offset): Now long int, not time_t, because we want it
79887         to be guaranteed to be signed.  All uses changed.
79888         (__mktime_internal): If overflow would occur when adding offset,
79889         don't add it.
79890
79891         Merge 'human' changes from coreutils.  Rewrite to support
79892         locale-specific notations like thousands separators.
79893         * lib/human.c: Simplify authorship notice.
79894         Include human.h immediately after config.h.
79895         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79896         <limits.h>: Do not include, since human.h does.
79897         (SIZE_MAX, UINTMAX_MAX): New macros.
79898         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79899         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79900         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79901         (power_letter): Renamed from suffixes.
79902         (generate_suffix_backwards): Remove.
79903         (adjust_value): Now takes int style (because of human.h changes)
79904         and long double value (for greater precision on some platforms).
79905         (group_number): New function.
79906         (human_readable): Use it.  Use integer options, not enum.
79907         Put the options before the sizes in the arg list.
79908         Support all the new options.
79909         The old human_readable function has been removed;
79910         use inttostr.h instead.
79911         (human_readable, default_block_size, humblock):
79912         Use uintmax_t, not int, for block sizes.
79913         (human_readable_inexact, block_size_types): Remove.
79914         (block_size_opts): New constant.
79915         (human_options): Renamed from human_block_size, with new signature
79916         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79917         * lib/human.h: Add copyright and authorship notice.
79918         Include <limits.h> and <stdbool.h> unconditionally.
79919         (PARAMS): Remove.  All uses removed.
79920         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79921         (enum human_inexact_style): Remove tag; now a nameless enum.
79922         (human_floor, human_ceiling, human_round_to_even): Now have
79923         values 2, 0, 1 rather than -1, 1, 0.
79924         (human_group_digits, human_suppress_point_zero, human_autoscale,
79925         human_base_1024, human_SI, human_B): New constants.
79926         (human_readable_inexact, human_block_size): Remove.
79927         (human_readable): Size args are now uintmax_t, not int.
79928         (human_options): New decl.
79929
79930         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79931         unnecessary now that we assume C89 or better.  This change
79932         imported from coreutils.
79933
79934         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79935         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79936         in the 2003-05-30 sync from glibc.
79937
79938         .h files should stand alone, but we shouldn't include <sys/types.h>
79939         if we can get away with just <stddef.h>.
79940
79941         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79942         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79943         rather than <sys/types.h>, as we merely need size_t.
79944         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79945         to get size_t.
79946         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79947         Include <stdio.h>, to get FILE.
79948         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79949         memcasecmp.h has included <stddef.h> and all we need is size_t.
79950         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79951         our interface, instead of including <sys/types.h>
79952
79953 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79954
79955         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79956         now, as glibc mktime is buggy on non-glibc systems.
79957
79958 2003-06-03  Karl Berry  <karl@gnu.org>
79959
79960         * config/config.sub: update from prep.
79961
79962 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79963
79964         [from coreutils]
79965         Fix some minor time-related bugs with POSIX time arguments.
79966         Some valid time stamps were being rejected (notably -1, and
79967         time stamps before 1900 on 64-bit hosts).  And some invalid
79968         time stamps were being accepted, e.g. September 31.
79969
79970         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79971         that we can return (time_t) -1 successfully.
79972         * lib/posixtm.c: Likewise.
79973         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79974         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79975         (t): Remove static var.
79976         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79977         of static var.  All uses changed.
79978         (year): Do not reject years before 1900; they can occur with
79979         64-bit time_t.
79980         (posix_time_parse): Do not check for out-of-range components;
79981         that is now the caller's responsibility, since our checks were
79982         only approximations.
79983         (posixtime): Use mktime to check for out-of-range components,
79984         since it knows them exactly.
79985         If mktime returns (time_t) -1, check whether an error actually occurred
79986         by invoking localtime on -1.
79987         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79988         posixtime failures better.
79989         Improve the test data (in comments only).
79990
79991 2003-06-02  Karl Berry  <karl@gnu.org>
79992
79993         * config/mkinstalldirs (version): new variable.
79994         (--version): new option.
79995         (usage): improve message.
79996
79997 2003-05-30  Karl Berry  <karl@gnu.org>
79998
79999         * lib/mktime.c: update from libc.
80000
80001 2003-05-30  Bruno Haible  <bruno@clisp.org>
80002
80003         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80004         * config/config.rpath: Upgrade to gettext-0.12.1.
80005
80006 2003-05-30  Bruno Haible  <bruno@clisp.org>
80007
80008         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80009         * m4/nls.m4: New file, from gettext-0.12.1.
80010         * m4/po.m4: New file, from gettext-0.12.1.
80011         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80012
80013 2003-05-30  Bruno Haible  <bruno@clisp.org>
80014
80015         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80016         * lib/localcharset.h: Likewise.
80017         * lib/localcharset.c: Likewise.
80018
80019 2003-05-29  Karl Berry  <karl@gnu.org>
80020
80021         * config/config.rpath: update from gettext.
80022
80023 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80024
80025         Assume the headers required for C89 freestanding compilers.
80026         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80027         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80028         * m4/human.m4 (gl_HUMAN): Likewise.
80029         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80030         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80031         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80032         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80033         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80034         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80035
80036 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80037
80038         Assume the headers required for C89 freestanding compilers.
80039         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80040         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80041         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80042         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80043         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80044         define, since <limits.h> is guaranteed to do that.
80045         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80046         * lib/exclude.c: Include <stdbool.h> unconditionally.
80047         * lib/tempname.c: Include <stddef.h> unconditionally.
80048         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80049         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80050         <stddef.h> does that.
80051         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80052         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80053         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80054         needed.
80055         * lib/xstrtol.c: Likewise.
80056         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80057         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80058
80059         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80060         warnings on some platforms.
80061
80062         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80063         arbitrarily.
80064
80065 2003-05-26  Jim Meyering  <jim@meyering.net>
80066
80067         Merge in a change from coreutils:
80068         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80069         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80070         that condition, rather than `-1' which is slightly misleading.
80071         Change the name of the cache variable to have the gl_ prefix.
80072         Prompted by a patch from Richard Dawe for DJGPP.
80073
80074 2003-05-24  Karl Berry  <karl@gnu.org>
80075
80076         * config/config.guess: update from prep.
80077
80078 2003-05-22  Karl Berry  <karl@gnu.org>
80079
80080         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80081
80082 2003-05-20  Karl Berry  <karl@gnu.org>
80083
80084         * config/config.guess: update from prep.
80085
80086 2003-05-18  Karl Berry  <karl@gnu.org>
80087
80088         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80089         might actually be set by the user.
80090
80091         * config/depcomp, install-sh, mdate-sh: update from automake.
80092
80093 2003-05-17  Bruno Haible  <bruno@clisp.org>
80094
80095         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80096         invalid expansion for AC_EGREP_CPP.
80097         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80098         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80099         Suggested by Akim Demaille <akim@epita.fr> in
80100         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80101
80102 2003-05-12  Jim Meyering  <jim@meyering.net>
80103
80104         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80105         the space-padded-by-default conversion specifiers, %e, %k, %l.
80106
80107 2003-05-12  Bruno Haible  <bruno@clisp.org>
80108
80109         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80110         the string is longer than 4 KB.
80111
80112 2003-05-11  Karl Berry  <karl@gnu.org>
80113
80114         * config/config.{guess,sub}: update from prep.
80115
80116 2003-05-09  Bruno Haible  <bruno@clisp.org>
80117
80118         * modules/error: Add m4/strerror_r.m4 to file list.
80119
80120 2003-05-03  Bruno Haible  <bruno@clisp.org>
80121
80122         Upgrade to Unicode-4.0.
80123         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80124         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80125         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80126         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80127         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80128         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80129         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80130         Change width of U+E0100..U+E01EF from 1 to 0.
80131
80132 2003-04-25  Jim Meyering  <jim@meyering.net>
80133
80134         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80135         of type size_t, not int.
80136
80137 2003-04-25  Bruno Haible  <bruno@clisp.org>
80138
80139         * lib/copy-file.c: Include <stddef.h>, for size_t.
80140
80141 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80142
80143         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80144         code which expansion is under static control.  Patch imported from
80145         Akim Demaille's patch to Bison; see
80146         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80147
80148 2003-04-14  Bruno Haible  <bruno@clisp.org>
80149
80150         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80151
80152 2003-04-11  Jim Meyering  <jim@meyering.net>
80153
80154         Merge changes from Coreutils.
80155
80156         2003-03-22  Jim Meyering  <jim@meyering.net>
80157
80158         * lib/strftime.c (widen): Cast alloca return value to proper type.
80159
80160         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80161
80162         From GNU libc.
80163         * lib/strftime.c (my_strftime): Handle very large width
80164         specifications for numeric values correctly.  Improve checks for
80165         overflow.
80166
80167         2003-01-19  Jim Meyering  <jim@meyering.net>
80168
80169         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80170         definitions.
80171         (nl_get_alt_digit) [! defined my_strftime]: Define.
80172         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80173         _nl_get_alt_digit and _nl_get_walt_digit.
80174
80175         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80176         libc. These changes have no effect outside of _LIBC.
80177
80178 2003-04-10  Bruno Haible  <bruno@clisp.org>
80179
80180         * modules/findprog: New file.
80181         * MODULES.html.sh (func_all_modules): Add it.
80182
80183 2003-04-10  Bruno Haible  <bruno@clisp.org>
80184
80185         * m4/findprog.m4: New file.
80186         * m4/eaccess.m4: New file.
80187
80188 2003-04-10  Bruno Haible  <bruno@clisp.org>
80189
80190         * lib/findprog.h: New file, from GNU gettext.
80191         * lib/findprog.c: New file, from GNU gettext.
80192
80193 2003-04-05  Jim Meyering  <jim@meyering.net>
80194
80195         Merge changes from Coreutils.
80196
80197         * lib/exclude.h (PARAMS): Remove definition and uses.
80198         * lib/exclude.c: Remove uses of `PARAMS'.
80199
80200         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80201         Add test-cases for DOS filenames. Declare program_name.
80202         (main): Set up program_name.  Patch by Rich Dawe.
80203
80204         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80205         error from mntctl.
80206         Use mntctl's return value to drive the entry-processing loop, since
80207         we can't rely on the value of the vmt_length member in the last
80208         entry.  On some systems doing so could result in exhausting
80209         virtual memory.  Based in part on a patch from Mike Jetzer.
80210
80211 2003-04-04  Bruno Haible  <bruno@clisp.org>
80212
80213         * modules/linebreak: New file.
80214         * MODULES.html.sh (func_all_modules): Add it.
80215
80216 2003-04-04  Bruno Haible  <bruno@clisp.org>
80217
80218         * m4/linebreak.m4: New file.
80219
80220 2003-04-04  Bruno Haible  <bruno@clisp.org>
80221
80222         * lib/linebreak.h: New file, from GNU gettext.
80223         * lib/linebreak.c: New file, from GNU gettext with slight
80224         modifications.
80225         * lib/lbrkprop.h: New file, from GNU gettext.
80226
80227 2003-04-03  Bruno Haible  <bruno@clisp.org>
80228
80229         * modules/utf8-ucs4: New file.
80230         * modules/utf16-ucs4: New file.
80231         * modules/ucs4-utf8: New file.
80232         * modules/ucs4-utf16: New file.
80233         * MODULES.html.sh (func_all_modules): Add them.
80234
80235 2003-04-03  Bruno Haible  <bruno@clisp.org>
80236
80237         * m4/utf-ucs4.m4: New file.
80238         * m4/ucs4-utf.m4: New file.
80239
80240 2003-04-03  Bruno Haible  <bruno@clisp.org>
80241
80242         * lib/utf8-ucs4.h: New file, from GNU gettext.
80243         * lib/utf16-ucs4.h: New file, from GNU gettext.
80244         * lib/ucs4-utf8.h: New file, from GNU gettext.
80245         * lib/ucs4-utf16.h: New file, from GNU gettext.
80246
80247 2003-04-02  Bruno Haible  <bruno@clisp.org>
80248
80249         * modules/binary-io: New file.
80250         * MODULES.html.sh (func_all_modules): Add it.
80251
80252 2003-04-02  Bruno Haible  <bruno@clisp.org>
80253
80254         * lib/binary-io.h: New file, from GNU gettext.
80255
80256 2003-04-01  Bruno Haible  <bruno@clisp.org>
80257
80258         * modules/pathname: New file.
80259         * MODULES.html.sh (func_all_modules): Add it.
80260
80261 2003-04-01  Bruno Haible  <bruno@clisp.org>
80262
80263         * lib/pathname.h: New file, from GNU gettext.
80264         * lib/concatpath.c: New file, from GNU gettext.
80265
80266 2003-03-30  Bruno Haible  <bruno@clisp.org>
80267
80268         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80269
80270 2003-03-30  Bruno Haible  <bruno@clisp.org>
80271
80272         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80273         function chown() doesn't exist.
80274
80275 2003-03-28  Bruno Haible  <bruno@clisp.org>
80276
80277         * modules/copy-file: New file.
80278         * MODULES.html.sh (func_all_modules): Add it.
80279
80280 2003-03-28  Bruno Haible  <bruno@clisp.org>
80281
80282         * m4/copy-file.m4: New file.
80283
80284 2003-03-28  Bruno Haible  <bruno@clisp.org>
80285
80286         * lib/copy-file.h: New file, from GNU gettext.
80287         * lib/copy-file.c: New file, from GNU gettext.
80288
80289 2003-03-18  Jim Meyering  <jim@meyering.net>
80290
80291         * lib/quote.c (quote_n): Fix typo in comment.
80292
80293 2003-03-18  Bruno Haible  <bruno@clisp.org>
80294
80295         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80296         checking.
80297         * m4/onceonly_2_57.m4: Likewise.
80298
80299 2003-03-17  Bruno Haible  <bruno@clisp.org>
80300
80301         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80302         (m4_quote): Remove macro.
80303         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80304
80305 2003-03-14  Jim Meyering  <jim@meyering.net>
80306
80307         Merge changes from Coreutils.
80308         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80309         to be const, in order to avoid warnings.
80310         (obstack_room): Likewise.
80311         (obstack_empty_p): Likewise.
80312
80313 2003-03-14  Bruno Haible  <bruno@clisp.org>
80314
80315         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80316         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80317
80318 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80319
80320         Merge changes from Bison.
80321         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80322         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80323         when compiling Bison 1.875's `bitset bset = obstack_alloc
80324         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80325         * lib/hash.c: Include <stdbool.h> unconditionally.
80326
80327 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80328
80329         * m4/onceonly.m4 (m4_quote): New macro.
80330         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80331         Quote AC_FOREACH variable-expansions properly.
80332
80333 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80334
80335         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80336
80337 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80338
80339         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80340         Reported by Bruce Becker; see:
80341         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80342
80343 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80344             Bruno Haible  <bruno@clisp.org>
80345
80346         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80347         Reported by John Hughes, see
80348         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80349
80350 2003-02-20  Bruno Haible  <bruno@clisp.org>
80351
80352         * MODULES.html.sh (func_all_modules): Add poll.
80353
80354 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80355
80356         * modules/poll: New file.
80357
80358 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80359
80360         * lib/poll_.h: New file.
80361         * lib/poll.c: New file.
80362
80363 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80364
80365         * m4/poll.m4: New file.
80366
80367 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80368
80369         * modules/mathl: New file.
80370
80371 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80372
80373         * lib/mathl.h: New file.
80374         * lib/acosl.c: New file.
80375         * lib/asinl.c: New file.
80376         * lib/atanl.c: New file.
80377         * lib/ceill.c: New file.
80378         * lib/cosl.c: New file.
80379         * lib/expl.c: New file.
80380         * lib/floorl.c: New file.
80381         * lib/frexpl.c: New file.
80382         * lib/ldexpl.c: New file.
80383         * lib/logl.c: New file.
80384         * lib/sincosl.c: New file.
80385         * lib/sinl.c: New file.
80386         * lib/sqrtl.c: New file.
80387         * lib/tanl.c: New file.
80388         * lib/trigl.c: New file.
80389         * lib/trigl.h: New file.
80390
80391 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80392
80393         * m4/mathl.m4: New file.
80394
80395 2003-02-18  Bruno Haible  <bruno@clisp.org>
80396
80397         * MODULES.html.sh (func_all_modules): Add mathl.
80398
80399 2003-02-17  Bruno Haible  <bruno@clisp.org>
80400
80401         * modules/mkdtemp: New module.
80402         * MODULES.html.sh (func_all_modules): Add it.
80403
80404 2003-02-17  Bruno Haible  <bruno@clisp.org>
80405
80406         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80407
80408 2003-02-17  Bruno Haible  <bruno@clisp.org>
80409
80410         * lib/mkdtemp.h: New file, from GNU gettext.
80411         * lib/mkdtemp.c: New file, from GNU gettext.
80412
80413 2003-02-02  Jim Meyering  <jim@meyering.net>
80414
80415         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80416         e.g. glibc-2.2.93.
80417
80418 2003-01-31  Bruno Haible  <bruno@clisp.org>
80419
80420         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80421         'rpl_rename'.
80422         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80423         'rpl_strnlen'.
80424         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80425         'rpl_strtod'.
80426         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80427         'rpl_utime'.
80428
80429 2003-01-31  Bruno Haible  <bruno@clisp.org>
80430
80431         * lib/rename.c: #undef rename before defining rpl_rename.
80432         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80433
80434 2003-01-30  Bruno Haible  <bruno@clisp.org>
80435
80436         * modules/vasnprintf, modules/vasprintf: New modules.
80437         * MODULES.html.sh (func_all_modules): Add them.
80438
80439 2003-01-30  Bruno Haible  <bruno@clisp.org>
80440
80441         * m4/signed.m4: New file, from GNU gettext.
80442         * m4/longdouble.m4: New file, from GNU gettext.
80443         * m4/wchar_t.m4: New file, from GNU gettext.
80444         * m4/wint_t.m4: New file, from GNU gettext.
80445         * m4/vasnprintf.m4: New file.
80446         * m4/vasprintf.m4: New file.
80447
80448 2003-01-30  Bruno Haible  <bruno@clisp.org>
80449
80450         * lib/printf-args.h: New file, from GNU gettext.
80451         * lib/printf-args.c: New file, from GNU gettext.
80452         * lib/printf-parse.h: New file, from GNU gettext.
80453         * lib/printf-parse.c: New file, from GNU gettext.
80454         * lib/vasnprintf.h: New file, from GNU gettext.
80455         * lib/vasnprintf.c: New file, from GNU gettext.
80456         * lib/asnprintf.c: New file, from GNU gettext.
80457         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80458         * lib/vasprintf.c: New file, from GNU gettext.
80459         * lib/asprintf.c: New file, from GNU gettext.
80460
80461 2003-01-29  Bruno Haible  <bruno@clisp.org>
80462
80463         * modules/stpncpy: New module.
80464         * MODULES.html.sh (func_all_modules): Add it.
80465
80466 2003-01-29  Bruno Haible  <bruno@clisp.org>
80467
80468         * m4/stpncpy.m4: New file.
80469
80470 2003-01-29  Bruno Haible  <bruno@clisp.org>
80471
80472         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80473         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80474
80475 2003-01-28  Bruno Haible  <bruno@clisp.org>
80476
80477         * modules/c-ctype: New module.
80478         * MODULES.html.sh (func_all_modules): Add it.
80479
80480 2003-01-28  Bruno Haible  <bruno@clisp.org>
80481
80482         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80483         Paul Eggert.
80484         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80485         Paul Eggert.
80486
80487 2003-01-27  Bruno Haible  <bruno@clisp.org>
80488
80489         * modules/xsetenv: New module.
80490         * MODULES.html.sh (func_all_modules): Add it.
80491
80492 2003-01-27  Bruno Haible  <bruno@clisp.org>
80493
80494         * lib/xsetenv.h: New file, from GNU gettext.
80495         * lib/xsetenv.c: New file, from GNU gettext.
80496
80497 2003-01-23  Jim Meyering  <jim@meyering.net>
80498
80499         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80500         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80501
80502 2003-01-23  Bruno Haible  <bruno@clisp.org>
80503
80504         * modules/minmax: New module.
80505         * MODULES.html.sh (func_all_modules): Add it.
80506
80507 2003-01-23  Bruno Haible  <bruno@clisp.org>
80508
80509         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80510         Eggert.
80511
80512 2003-01-22  Bruno Haible  <bruno@clisp.org>
80513
80514         * modules/exit: New module.
80515         * MODULES.html.sh (func_all_modules): Add it.
80516
80517 2003-01-22  Bruno Haible  <bruno@clisp.org>
80518
80519         * lib/exit.h: New file, from GNU gettext.
80520
80521 2003-01-19  Bruno Haible  <bruno@clisp.org>
80522
80523         * gnulib-tool: Recognize option --extract-maintainer.
80524         (func_get_maintainer): New function.
80525         * modules/*: Add Maintainer entry.
80526
80527 2003-01-16  Jim Meyering  <jim@meyering.net>
80528
80529         * m4/regex.m4: The `regex' struct is both input and output.
80530         Initialize it before each use.  Patch by Tim Waugh.
80531
80532 2003-01-16  Bruno Haible  <bruno@clisp.org>
80533
80534         * MODULES.html.sh: Add a table of contents. Add the module name as
80535         leftmost column. Add hyperlinks.
80536
80537 2003-01-15  Bruno Haible  <bruno@clisp.org>
80538
80539         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80540
80541 2003-01-15  Bruno Haible  <bruno@clisp.org>
80542
80543         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80544         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80545         suffix.
80546
80547 2003-01-15  Bruno Haible  <bruno@clisp.org>
80548
80549         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80550
80551 2003-01-15  Bruno Haible  <bruno@clisp.org>
80552
80553         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80554         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80555
80556 2003-01-14  Jim Meyering  <jim@meyering.net>
80557
80558         * lib/same.c (same_name): Tweak a comment.
80559
80560 2003-01-14  Bruno Haible  <bruno@clisp.org>
80561
80562         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80563         when a string comparison is sufficient.
80564
80565 2003-01-14  Bruno Haible  <bruno@clisp.org>
80566
80567         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80568         'unsigned int'.
80569
80570 2003-01-14  Bruno Haible  <bruno@clisp.org>
80571
80572         * lib/hash-pjw.c: Add comment about low quality of this function.
80573
80574 2003-01-13  Bruno Haible  <bruno@clisp.org>
80575
80576         * modules/stpcpy: Distribute lib/stpcpy.h.
80577         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80578
80579 2003-01-13  Bruno Haible  <bruno@clisp.org>
80580
80581         * modules/*: Add a description.
80582         * modules/strpbrk: Fix Makefile.am snippet.
80583         * modules/strtoimax: Fix dependencies.
80584         * modules/strtoumax: Likewise.
80585
80586 2003-01-13  Bruno Haible  <bruno@clisp.org>
80587
80588         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80589         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80590         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80591
80592 2003-01-13  Bruno Haible  <bruno@clisp.org>
80593
80594         * gnulib-tool (func_create_testdir): Store config/* files in the main
80595         directory.
80596         * config.rpath: Move to ...
80597         * config/config.rpath: ... here.
80598         * modules/gettext: Contains config/config.rpath, not config.rpath.
80599         * modules/iconv: Likewise.
80600
80601 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80602
80603         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80604         to avoid collisions with libcurses and libreadline.
80605
80606         * m4/getstr.m4: Remove.
80607         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80608
80609 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80610
80611         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80612         to avoid collisions with libcurses and libreadline.
80613
80614         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80615         * lib/getstr.h, getstr.c: Remove.
80616         * lib/getline.c: Include "getline.h", to check interface.
80617         Move body of old getstr.c here: this defines MIN_CHUNK and
80618         declares getdelim2, which is renamed from getstr.
80619         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80620
80621         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80622         All uses changed.
80623         * lib/linebuffer.h: Likewise.
80624         (readline): Remove backward-compatibility macro.
80625
80626 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80627
80628         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80629         to avoid collisions with libcurses and libreadline.
80630         * getstr: Remove.
80631         * MODULES.html.sh: Remove getstr.
80632         * modules/getline: Depend on unlocked-io, not getstr.
80633
80634 2003-01-12  Jim Meyering  <jim@meyering.net>
80635
80636         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80637
80638 2003-01-10  Bruno Haible  <bruno@clisp.org>
80639
80640         * modules/alloca: Change Makefile.am requirements. Simplify Include
80641         requirements. Add lib/alloca_.h to file list.
80642
80643 2003-01-10  Bruno Haible  <bruno@clisp.org>
80644
80645         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80646
80647 2003-01-10  Bruno Haible  <bruno@clisp.org>
80648
80649         * lib/alloca_.h: New file.
80650         * lib/getdate.y: Unconditionally include alloca.h.
80651         * lib/makepath.c: Likewise.
80652         * lib/setenv.c: Likewise.
80653         * lib/userspec.c: Likewise.
80654
80655 2003-01-09  Karl Berry  <karl@gnu.org>
80656
80657         * MODULES.html.sh: include `dirname $0` in PATH, to find
80658         gnulib-tool.
80659
80660 2003-01-09  Bruno Haible  <bruno@clisp.org>
80661
80662         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80663         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80664
80665 2003-01-09  Bruno Haible  <bruno@clisp.org>
80666
80667         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80668
80669 2003-01-09  Bruno Haible  <bruno@clisp.org>
80670
80671         * lib/stdbool.h.in: New file.
80672
80673 2003-01-09  Bruno Haible  <bruno@clisp.org>
80674
80675         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80676         * MODULES.html.sh: Likewise.
80677
80678 2003-01-08  Jim Meyering  <jim@meyering.net>
80679
80680         * lib/full-write.c: Undefine and define-away `const' after inclusion
80681         of errno.h, not before.  Suggestion from Bruno Haible.
80682
80683 2003-01-08  Bruno Haible  <bruno@clisp.org>
80684
80685         * modules/full-read: Depend on full-write.
80686
80687 2003-01-08  Bruno Haible  <bruno@clisp.org>
80688
80689         * lib/safe-read.c: Include specification header first, to ensure its
80690         selfcontainedness.
80691         * lib/full-write.c: Likewise.
80692
80693 2003-01-07  Jim Meyering  <jim@meyering.net>
80694
80695         * lib/full-write.c: Rework so that it may serve to define full_read,
80696         too.
80697         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80698
80699 2003-01-07  Bruno Haible  <bruno@clisp.org>
80700
80701         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80702         <inttypes.h>.
80703         * lib/xstrtol.h: Likewise.
80704         * lib/xstrtoimax.c: Likewise.
80705         * lib/xstrtoumax.c: Likewise.
80706         * lib/human.h: Likewise.
80707
80708         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80709         on systems that have <inttypes.h> but not <stdint.h>.
80710
80711 2003-01-07  Bruno Haible  <bruno@clisp.org>
80712
80713         * MODULES.html.sh: Add copyright notice.
80714         (missed_files): Omit CVS directory entries.
80715         (func_module): Make it work with sed-3.02.
80716         * MODULES.txt: Remove file.
80717
80718 2003-01-06  Jim Meyering  <jim@meyering.net>
80719
80720         * lib/version-etc.c: Update year in translatable copyright string.
80721
80722 2003-01-03  Karl Berry  <karl@gnu.org>
80723
80724         * config/config.{guess,sub}: update from prep.
80725
80726 2003-01-02  Karl Berry  <karl@gnu.org>
80727
80728         * doc/COPYING.DOC: belatedly updated to 1.2.
80729
80730 2003-01-01  Karl Berry  <karl@gnu.org>
80731
80732         * gnulib-tool (func_verify_module): report module name $module in
80733         error message, not $1.
80734         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80735         be created, only if it doesn't exist.
80736         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80737
80738 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80739
80740         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80741
80742 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80743
80744         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80745         memcmp if strcoll doesn't work.
80746
80747 2002-12-31  Bruno Haible  <bruno@clisp.org>
80748
80749         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80750         nonempty.
80751
80752 2002-12-31  Bruno Haible  <bruno@clisp.org>
80753
80754         * lib/memcoll.c (STRCOLL): New macro.
80755         (memcoll): Use it.
80756
80757 2002-12-31  Bruno Haible  <bruno@clisp.org>
80758
80759         * lib/localcharset.h: New file.
80760         * lib/localcharset.c: Include it.
80761         * lib/unicodeio.c: Likewise.
80762
80763 2002-12-31  Bruno Haible  <bruno@clisp.org>
80764
80765         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80766         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80767
80768 2002-12-31  Bruno Haible  <bruno@clisp.org>
80769
80770         * lib/getline.h: Include <stddef.h>, for size_t.
80771
80772         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80773         * lib/unicodeio.c: Don't include <stddef.h>.
80774
80775 2002-12-31  Bruno Haible  <bruno@clisp.org>
80776
80777         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80778         HAVE_TM_ZONE.
80779
80780 2002-12-24  Karl Berry  <karl@gnu.org>
80781
80782         * config/config.guess: update from prep.
80783
80784 2002-12-24  Bruno Haible  <bruno@clisp.org>
80785
80786         General infrasructure.
80787         * m4/README: Rewritten.
80788         * m4/onceonly.m4: New file.
80789         * m4/onceonly_2_57.m4: New file.
80790
80791         Module atexit.
80792         * m4/atexit.m4: New file.
80793
80794         Module strtod.
80795         * m4/strtod.m4: New file.
80796
80797         Module strtol.
80798         * m4/strtol.m4: New file.
80799
80800         Module strtoul.
80801         * m4/strtoul.m4: New file.
80802
80803         Module memchr.
80804         * m4/memchr.m4: New file.
80805
80806         Module memcmp.
80807         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80808         (jm_FUNC_MEMCMP): Invoke it.
80809
80810         Module memcpy.
80811         * m4/memcpy.m4: New file.
80812
80813         Module memmove.
80814         * m4/memmove.m4: New file.
80815
80816         Module memset.
80817         * m4/memset.m4: New file.
80818
80819         Module strcspn.
80820         * m4/strcspn.m4: New file.
80821
80822         Module strpbrk.
80823         * m4/strpbrk.m4: New file.
80824
80825         Module strstr.
80826         * m4/strstr.m4: New file.
80827
80828         Module strerror.
80829         * m4/strerror.m4: New file.
80830
80831         Module mktime.
80832         * m4/mktime.m4: Renamed from jm-mktime.m4.
80833         (gl_PREREQ_MKTIME): New macro.
80834         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80835
80836         Module malloc.
80837         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80838         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80839         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80840
80841         Module realloc.
80842         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80843         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80844         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80845
80846         Module strftime.
80847         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80848         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80849         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80850         gl_TM_GMTOFF.
80851         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80852
80853         Module xalloc.
80854         * m4/xalloc.m4: New file.
80855
80856         Module alloca.
80857         * m4/alloca.m4: New file.
80858
80859         Module putenv.
80860         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80861         (jm_FUNC_PUTENV): Invoke it.
80862
80863         Module setenv.
80864         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80865         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80866         when invoked twice.
80867         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80868         gt_FUNC_SETENV.
80869
80870         Module memrchr.
80871         * m4/memrchr.m4: New file.
80872
80873         Module stpcpy.
80874         * m4/stpcpy.m4: New file.
80875
80876         Module strcase.
80877         * m4/strcase.m4: New file.
80878
80879         Module strdup.
80880         * m4/strdup.m4: New file.
80881
80882         Module strnlen.
80883         * m4/strnlen.m4: New file.
80884
80885         Module strndup.
80886         * m4/strndup.m4: New file.
80887
80888         Module xstrtod.
80889         * m4/xstrtod.m4: New file.
80890
80891         Module xstrtol.
80892         * m4/xstrtol.m4: New file.
80893
80894         Module getdate.
80895         * m4/getdate.m4: New file.
80896
80897         Module unlocked-io.
80898         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80899         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80900         * m4/jm-glibc-io.m4n: Remove file.
80901
80902         Module long-options.
80903         * m4/long-options.m4: New file.
80904
80905         Module md5.
80906         * m4/md5.m4: New file.
80907
80908         Module sha.
80909         * m4/sha.m4: New file.
80910
80911         Module getstr.
80912         * m4/getstr.m4: New file.
80913
80914         Module getline.
80915         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80916         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80917         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80918         simply getline. Infoke gl_PREREQ_GETLINE.
80919
80920         Module obstack.
80921         * m4/obstack.m4: New file.
80922
80923         Module hash.
80924         * m4/hash.m4: New file.
80925
80926         Module readtokens.
80927         * m4/readtokens.m4: New file.
80928
80929         Module strverscmp.
80930         * m4/strverscmp.m4: New file.
80931
80932         Module stdbool.
80933         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80934         OSF/1.
80935
80936         Module strtoll.
80937         * m4/strtoll.m4: New file.
80938
80939         Module strtoull.
80940         * m4/strtoull.m4: New file.
80941
80942         Module strtoimax.
80943         * m4/strtoimax.m4: New file.
80944
80945         Module strtoumax.
80946         * m4/strtoumax.m4: New file.
80947
80948         Module xstrtoimax.
80949         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80950         jm_AC_PREREQ_XSTRTOIMAX.
80951         Moved the strtol prerequisites to strtol.m4.
80952         Moved the strtoll prerequisites to strtoll.m4.
80953         Moved the strtoimax prerequisites to strtoimax.m4.
80954
80955         Module xstrtoumax.
80956         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80957         jm_AC_PREREQ_XSTRTOUMAX.
80958         Moved the strtoul prerequisites to strtoul.m4.
80959         Moved the strtoull prerequisites to strtoull.m4.
80960         Moved the strtoumax prerequisites to strtoumax.m4.
80961
80962         Module chown.
80963         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80964         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80965
80966         Module dup2.
80967         * m4/dup2.m4: New file.
80968
80969         Module ftruncate.
80970         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80971         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80972
80973         Module getgroups.
80974         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80975         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80976
80977         Module gettimeofday.
80978         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80979         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80980         gl_PREREQ_GETTIMEOFDAY.
80981
80982         Module mkdir.
80983         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80984         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80985
80986         Module mkstemp.
80987         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80988         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80989         jm_AC_TYPE_UINTMAX_T.
80990         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80991
80992         Module stat.
80993         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80994         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80995
80996         Module lstat.
80997         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80998         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80999
81000         Module timespec.
81001         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81002         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81003         * m4/st_mtim.m4: Indentation.
81004
81005         Module nanosleep.
81006         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81007         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81008         gl_PREREQ_NANOSLEEP.
81009
81010         Module regex.
81011         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81012         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81013         (gl_REGEX): New macro.
81014
81015         Module rename.
81016         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81017         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81018
81019         Module rmdir.
81020         * m4/rmdir.m4: New file.
81021
81022         Module utime.
81023         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81024         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81025         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81026
81027         Module dirname.
81028         * m4/dirname.m4: New file.
81029
81030         Module getopt.
81031         * m4/getopt.m4: New file.
81032
81033         Module unistd-safer.
81034         * m4/unistd-safer.m4: New file.
81035
81036         Module fnmatch.
81037         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81038         declaration.
81039         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81040         (gl_FUNC_FNMATCH_POSIX): New macro.
81041         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81042         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81043         simply fnmatch.
81044
81045         Module exclude.
81046         * m4/exclude.m4: New file.
81047
81048         Module human.
81049         * m4/human.m4: New file.
81050
81051         Module acl.
81052         * m4/acl.m4: Nop.
81053
81054         Module backupfile.
81055         * m4/backupfile.m4: New file.
81056         * m4/d-ino.m4: Indentation.
81057
81058         Module fsusage.
81059         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81060         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81061         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81062
81063         Module dirfd.
81064         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81065         requirements.
81066
81067         Module euidaccess.
81068         * m4/euidaccess.m4: New file.
81069
81070         Module file-type.
81071         * m4/file-type.m4: New file.
81072
81073         Module fileblocks.
81074         * m4/fileblocks.m4: New file.
81075
81076         Module filemode.
81077         * m4/filemode.m4: New file.
81078
81079         Module isdir.
81080         * m4/isdir.m4: New file.
81081
81082         Module lchown.
81083         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81084         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81085
81086         Module makepath.
81087         * m4/makepath.m4: New file.
81088
81089         Module modechange.
81090         * m4/modechange.m4: New file.
81091
81092         Module mountlist.
81093         * m4/mountlist.m4: New file.
81094         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81095         Indentation.
81096
81097         Module path-concat.
81098         * m4/path-concat.m4: New file.
81099
81100         Module pathmax.
81101         * m4/pathmax.m4: New file.
81102
81103         Module same.
81104         * m4/same.m4: New file.
81105
81106         Module save-cwd.
81107         * m4/save-cwd.m4: New file.
81108
81109         Module savedir.
81110         * m4/savedir.m4: New file.
81111
81112         Module xgetcwd.
81113         * m4/xgetcwd.m4: New file.
81114         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81115
81116         Module xreadlink.
81117         * m4/xreadlink.m4: New file.
81118
81119         Module safe-read.
81120         * m4/safe-read.m4: New file.
81121
81122         Module safe-write.
81123         * m4/safe-write.m4: New file.
81124
81125         Module closeout.
81126         * m4/closeout.m4: New file.
81127
81128         Module stdio-safer.
81129         * m4/stdio-safer.m4: New file.
81130
81131         Module getpass.
81132         * m4/getpass.m4: New file.
81133
81134         Module getugroups.
81135         * m4/getugroups.m4: New file.
81136
81137         Module group-member.
81138         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81139         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81140
81141         Module idcache.
81142         * m4/idcache.m4: New file.
81143
81144         Module userspec.
81145         * m4/userspec.m4: New file.
81146
81147         Module gettime.
81148         * m4/clock_time.m4: New file.
81149         * m4/gettime.m4: New file.
81150
81151         Module settime.
81152         * m4/settime.m4: New file.
81153
81154         Module posixtm.
81155         * m4/posixtm.m4: New file.
81156
81157         Module gethostname.
81158         * m4/gethostname.m4: New file.
81159
81160         Module canon-host.
81161         * m4/canon-host.m4: New file.
81162
81163         Module gettext.
81164         * m4/codeset.m4: New file, from gettext-0.11.5.
81165         * m4/gettext.m4: New file, from gettext-0.11.5.
81166         * m4/glibc21.m4: New file, from gettext-0.11.5.
81167         * m4/iconv.m4: New file, from gettext-0.11.5.
81168         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81169         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81170         * m4/inttypes.m4: New file, from gettext-0.11.5.
81171         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81172         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81173         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81174         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81175         * m4/lib-link.m4: New file, from gettext-0.11.5.
81176         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81177         * m4/progtest.m4: New file, from gettext-0.11.5.
81178         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81179         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81180         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81181
81182         Module localcharset.
81183         * m4/localcharset.m4: New file.
81184
81185         Module hard-locale.
81186         * m4/hard-locale.m4: New file.
81187
81188         Module mbswidth.
81189         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81190         onceonly macros.
81191         * m4/mbrtowc.m4: Add comment.
81192
81193         Module memcasecmp.
81194         * m4/memcasecmp.m4: New file.
81195
81196         Module memcoll.
81197         * m4/memcoll.m4: New file.
81198
81199         Module unicodeio.
81200         * m4/unicodeio.m4: New file.
81201
81202         Module rpmatch.
81203         * m4/rpmatch.m4: New file.
81204
81205         Module yesno.
81206         * m4/yesno.m4: New file.
81207
81208         Module exitfail.
81209         * m4/exitfail.m4: New file.
81210
81211         Module c-stack.
81212         * m4/c-stack.m4 (gl_C_STACK): New macro.
81213         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81214
81215         Module error.
81216         * m4/error.m4 (gl_ERROR): New macro.
81217         (jm_PREREQ_ERROR): Use onceonly macros.
81218
81219         Module fatal.
81220         * m4/fatal.m4: New file.
81221
81222         Module getloadavg.
81223         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81224         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81225
81226         Module getpagesize.
81227         * m4/getpagesize.m4: New file.
81228
81229         Module getusershell.
81230         * m4/getusershell.m4: New file.
81231
81232         Module physmem.
81233         * m4/physmem.m4: New file.
81234
81235         Module posixver.
81236         * m4/posixver.m4: New file.
81237
81238         Module quotearg.
81239         * m4/quotearg.m4: New file.
81240
81241         Module quote.
81242         * m4/quote.m4: New file.
81243
81244         Module readutmp.
81245         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81246
81247         Module sig2str.
81248         * m4/sig2str.m4: New file.
81249
81250         Other.
81251         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81252         ulonglong.m4.
81253         * m4/intmax_t.m4: New file.
81254         * m4/d-type.m4: Indentation.
81255         * m4/jm-macros.m4: Update.
81256         * m4/prereq.m4 (jm_PREREQ): Update.
81257         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81258         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81259         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81260         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81261         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81262         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81263         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81264         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81265         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81266         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81267         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81268         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81269         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81270         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81271         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81272         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81273         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81274         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81275         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81276
81277 2002-12-24  Bruno Haible  <bruno@clisp.org>
81278
81279         * MODULES.txt: Update according to m4/ changes.
81280
81281         Module gettext.
81282         * config.rpath: New file, from gettext-0.11.5.
81283
81284         * modules/*: New module descriptions.
81285         * gnulib-tool: New file.
81286         * MODULES.html.sh: New file.
81287
81288 2002-12-21  Karl Berry  <karl@gnu.org>
81289
81290         * doc/fdl.texi: update to version 1.2.
81291
81292 2002-12-19  Karl Berry  <karl@gnu.org>
81293
81294         * config/config.guess: update from prep.
81295
81296 2002-12-18  Bruno Haible  <bruno@clisp.org>
81297
81298         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81299         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81300
81301 2002-12-17  Bruno Haible  <bruno@clisp.org>
81302
81303         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81304         stdlib.h, string.h.
81305
81306 2002-12-17  Bruno Haible  <bruno@clisp.org>
81307
81308         * lib/canon-host.c (strdup): Remove unused declaration.
81309
81310         * lib/fsusage.c: Include full_read.h.
81311         (get_fs_usage): Use full_read instead of safe_read.
81312
81313         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81314
81315 2002-12-12  Karl Berry  <karl@gnu.org>
81316
81317         * config/config.guess: update from prep.
81318
81319 2002-12-11  Bruno Haible  <bruno@clisp.org>
81320
81321         * m4/setenv.m4: New file, from gettext-0.11.5.
81322
81323 2002-12-11  Bruno Haible  <bruno@clisp.org>
81324
81325         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81326         not unsetenv().
81327         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81328         modifications:
81329
81330         2002-12-11  Bruno Haible  <bruno@clisp.org>
81331
81332                 * setenv.c (alloca): Fall back to malloc.
81333                 (freea): New macro.
81334                 (setenv): Use freea() to free memory allocated with alloca().
81335
81336         2002-11-13  Bruno Haible  <bruno@clisp.org>
81337
81338                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81339                 function declarations.
81340                 * unsetenv.c (unsetenv): Likewise.
81341
81342         2002-03-04  Bruno Haible  <bruno@clisp.org>
81343
81344                 Portability to AIX 4.3.3.
81345                 * unsetenv.c: New file, extracted from setenv.c.
81346                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81347
81348         2001-12-20  Bruno Haible  <bruno@clisp.org>
81349
81350                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81351                 use malloc instead. For SunOS 4.
81352
81353         2001-12-11  Bruno Haible  <bruno@clisp.org>
81354
81355                 * setenv.c: Declare alloca.
81356                 (compar_fn_t): New typedef.
81357                 (KNOWN_VALUE, STORE_VALUE): Use it.
81358
81359         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81360         setenv.h.
81361
81362 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81363
81364         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81365         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81366         Choose values that are less likely to collide with system fnmatch
81367         options.
81368         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81369         defined (e.g., a pure POSIX system).
81370         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81371         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81372
81373 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81374
81375         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81376         a pain in practice to deal with generated m4 files.  This change
81377         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81378
81379         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81380         and jm-glibc-io.m4, as they are no longer a special case.
81381         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81382         kludge and the auto-generation stuff.  Check only whether the
81383         functions are declared, not whether they exist, since older hosts
81384         that don't declare the functions can't use the optimization anyway.
81385
81386 2002-12-06  Jim Meyering  <jim@meyering.net>
81387
81388         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81389
81390         Merge in changes from libc's misc/error.c, in preparation
81391         for the merge of gnulib's changes back into libc.
81392
81393         * lib/error.c (_): Define only if not already defined.
81394         Move definition to follow all #include directives.
81395         Include unlocked-io.h only if !_LIBC.
81396         [_LIBC]: Include <libio/libioP.h>.
81397         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81398         (fflush): Tweak definition to use INTUSE.
81399         (putc): Define.
81400
81401 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81402
81403         * lib/alloca.c [defined emacs]: Include "lisp.h".
81404         (xalloc_die) [defined emacs]: New macro.
81405         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81406         [! defined emacs]: Include <xalloc.h>.
81407         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81408         (pointer): Typedef to POINTER_TYPE *.
81409         (malloc): Remove decl; we now always use xmalloc.
81410         (alloca): Use old-style definition, since Emacs needs this.
81411         Check for arithmetic overflow when computing combined size.
81412
81413 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81414
81415         Do not generate unlocked-io.h automatically, since it's easier to
81416         maintain it by hand.
81417
81418         * lib/unlocked-io.h: New file, from GNU diffutils,
81419         but with proper copyright notice and attribution.
81420         * lib/gen-uio: Remove.
81421         * lib/Makefile.am: Add copyright notice.
81422         (libfetish_a_SOURCES): Add unlocked-io.h.
81423         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81424         (DISTCLEANFILES, io_functions): Remove macros.
81425         (EXTRA_DIST): Remove gen_uio.
81426         (unlocked-io.h): Remove rule.
81427
81428 2002-12-04  Jim Meyering  <jim@meyering.net>
81429
81430         Reflect the fact that stat.c and lstat.c are no longer generated.
81431         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81432         (DISTCLEANFILES): Likewise.
81433         (EXTRA_DIST): Likewise.
81434         (all_local): Don't depend on stat.c or lstat.c.
81435         (stat.c, lstat.c): Remove rules.
81436         (EXTRA_DIST): Remove xstat.in.
81437
81438         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81439         * lib/stat.c: New file.  Contents mostly from xstat.in.
81440         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81441         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81442
81443         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81444         too.
81445         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81446
81447 2002-12-03  Jim Meyering  <jim@meyering.net>
81448
81449         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81450         but not semantics, to minimize the differences between these two files.
81451         (safe_read): Change comment to mention SAFE_READ_ERROR.
81452
81453         * lib/safe-read.c (IS_EINTR): Define.
81454         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81455
81456 2002-12-02  Jim Meyering  <jim@meyering.net>
81457
81458         * lib/safe-read.c (EINTR): Define.
81459         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81460         (INT_MAX): Provide fallback.
81461         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81462
81463         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81464
81465 2002-12-02  Bruno Haible  <bruno@clisp.org>
81466
81467         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81468         Define, taken from safe-read.c.
81469         (INT_MAX): Provide fallback.
81470         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81471         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81472
81473         * lib/safe-read.c (EINTR): Remove definition.
81474         (safe_read): Don't use EINTR if it is absent.
81475
81476 2002-12-01  Jim Meyering  <jim@meyering.net>
81477
81478         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81479         zero.
81480         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81481
81482 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81483
81484         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81485         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81486         with `if (! (value < limit)) abort ();', for readability.
81487
81488 2002-11-26  Karl Berry  <karl@gnu.org>
81489
81490         * lib/strdup.c: copy from libc again, with jim's ok.
81491         * lib/.cppi-disable: re-add strdup.c
81492
81493 2002-11-25  Karl Berry  <karl@gnu.org>
81494
81495         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81496         instead of "strtol.c".
81497
81498 2002-11-25  Karl Berry  <karl@gnu.org>
81499
81500         * config/install-sh: update from automake for variable quoting, $0 in
81501         error msgs, etc.
81502
81503         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81504         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81505         entry.
81506
81507 2002-11-25  Jim Meyering  <jim@meyering.net>
81508
81509         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81510
81511 2002-11-24  Karl Berry  <karl@gnu.org>
81512
81513         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81514         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81515
81516 2002-11-24  Jim Meyering  <jim@meyering.net>
81517
81518         Update from coreutils:
81519
81520         * lib/mktime.c: Merge in changes from libc.
81521
81522         Avoid a link-time failure on some Linux systems.
81523         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81524         (otherwise).
81525         (__mon_yday): Declare with the STATIC attribute.
81526         (__mktime_internal): Likewise.
81527         Based on a report from Greg Schafer.
81528
81529 2002-11-23  Jim Meyering  <jim@meyering.net>
81530
81531         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81532         Use `unsigned', not `int', as type of index.
81533
81534         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81535
81536         * lib/fsusage.c: Remove unneeded parentheses around operands of
81537         `defined'.
81538
81539 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81540
81541         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81542         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81543         so that we can be included first.
81544         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81545         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81546         No need to include stddef.h or sys/types.h any more.
81547         Surround local include files with "", not "<>".
81548         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81549         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81550         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81551         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81552         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81553         (ISPRINT): Remove; no longer needed now that we assume C89.
81554
81555         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81556         Preserve errno.
81557
81558         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81559         quotearg_char): Use SIZE_MAX rather than
81560         (size_t) -1 when we are talking about "infinity".
81561
81562         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81563
81564 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81565
81566         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81567         hint that one should use `if (! x) abort ();' rather than `assert
81568         (x);', and anyway it's one less thing to worry about configuring.
81569         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81570         hash_rehash, hash_insert): Use abort rather than assert.
81571
81572 2002-11-22  Bruno Haible  <bruno@clisp.org>
81573
81574         * lib/safe-read.h: Assume C89. Add comments.
81575         (safe_read): Change return type to size_t.
81576         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81577         byte counts > SSIZE_MAX correctly.
81578         * lib/safe-write.h: New file.
81579         * lib/safe-write.c: New file.
81580         * lib/full-read.h: New file.
81581         * lib/full-read.c: New file.
81582         * lib/full-write.h: Assume C89. Add comments.
81583         * lib/full-write.c: Include safe-write.h.
81584         (full_write): Rewritten to use safe_write.
81585         Suggested by Jim Meyering and Paul Eggert.
81586
81587 2002-11-21  Jim Meyering  <jim@meyering.net>
81588
81589         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81590
81591         Merge in changes from the coreutils.
81592
81593         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81594         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81595         <stdint.h>.
81596         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81597         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81598         int.  Work more efficiently if X is the same width as uintmax_t.
81599         Do not compare X to -1, to avoid bogus compiler warning.
81600         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81601         Don't assume that f_frsize and f_bsize are the same type.
81602
81603         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81604         warning on FreeBSD.
81605
81606         * lib/makepath.c (make_path): Restore umask *before* creating the final
81607         component.
81608         (make_path): Minor reformatting.
81609
81610         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81611         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81612         HAVE_MALLOC/HAVE_REALLOC.
81613
81614         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81615         dummy ones.  At least on GNU/Linux systems, `auto' means something
81616         else.
81617         From Michael Stone.
81618
81619 2002-11-21  Bruno Haible  <bruno@clisp.org>
81620
81621         Remove case insensitive option matching.
81622         * lib/argmatch.h (argcasematch): Remove declaration.
81623         (ARGCASEMATCH): Remove macro.
81624         (__xargmatch_internal): Remove case_sensitive argument.
81625         (XARGMATCH): Update.
81626         (XARGCASEMATCH): Remove macro.
81627         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81628         case_sensitive argument.
81629         (argcasematch): Remove function.
81630         (__xargmatch_internal): Remove case_sensitive argument.
81631         (main): Use XARGMATCH instead of XARGCASEMATCH.
81632
81633         * lib/xmalloc.c: Change compile-time error message. Add comment about
81634         required autoconf version.
81635
81636 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81637
81638         Merge argmatch cleanups from Bison.  Assume C89.
81639
81640         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81641         Include stdlib.h, for EXIT_FAILURE.
81642         Always include <string.h>, since we assume C89.
81643         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81644         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81645         Include <stddef.h> instead, since it's all we need for size_t.
81646         (PARAMS): Remove.  All uses removed.
81647         (ARRAY_CARDINALITY): Do not bother to #undef.
81648         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81649         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81650         Remove unnecessary parentheses.
81651         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81652         Insert necessary parentheses.
81653         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81654         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81655
81656 2002-11-19  Bruno Haible  <bruno@clisp.org>
81657
81658         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81659         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81660
81661         * lib/mbswidth.h (PARAMS): Remove macro.
81662         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81663         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81664
81665         * lib/gcd.h (PARAMS): Remove macro.
81666         (gcd): Use ANSI C function declarations.
81667         * lib/gcd.c (gcd): Likewise.
81668
81669 2002-11-15  Bruno Haible  <bruno@clisp.org>
81670
81671         * lib/strcspn.c: Include <stddef.h>.
81672         (strcspn): Use ANSI C function declaration. Change return type to
81673         size_t. Use NULL.
81674         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81675         (strpbrk): Use NULL.
81676         * lib/strpbrk.h (PARAMS): Remove macro.
81677         (strpbrk): Use ANSI C function declaration.
81678         * lib/strstr.c: Don't include <sys/types.h>.
81679         * lib/strstr.h (PARAMS): Remove macro.
81680         (strstr): Use ANSI C function declarations.
81681
81682 2002-11-14  Karl Berry  <karl@gnu.org>
81683
81684         * config/mkinstalldirs: `do' on separate line, instead of
81685         `for var; do'.
81686
81687 2002-11-06  Bruno Haible  <bruno@clisp.org>
81688
81689         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81690         * lib/gcd.c (gcd): Likewise.
81691
81692 2002-11-05  Bruno Haible  <bruno@clisp.org>
81693
81694         * lib/gcd.h: New file, from gettext-0.11.5.
81695         * lib/gcd.c: New file, from gettext-0.11.5.
81696
81697 2002-11-05  Bruno Haible  <bruno@clisp.org>
81698
81699         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81700         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81701         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81702         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81703
81704         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81705         <libintl.h>.
81706         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81707         <libintl.h>.
81708
81709         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81710         * lib/human.c: Include gettext.h instead of <libintl.h>.
81711         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81712         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81713         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81714         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81715         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81716         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81717         (textdomain): Remove definition.
81718         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81719
81720         * lib/long-options.c: Remove include of <libintl.h> and definition of
81721         _.
81722         * lib/same.c: Remove include of <libintl.h> and definition of _.
81723
81724 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81725
81726         * lib/config.charset: A few additions for Solaris.
81727
81728 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81729
81730         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81731         * lib/localcharset.c (locale_charset): Declare as extern "C".
81732
81733 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81734
81735         * lib/config.charset: msdos in uk_UA uses CP1125.
81736
81737 2002-11-04  Bruno Haible  <bruno@clisp.org>
81738
81739         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81740         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81741         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81742         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81743         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81744
81745 2002-11-04  Bruno Haible  <bruno@clisp.org>
81746
81747         * lib/localcharset.c (locale_charset): Don't return an empty string.
81748
81749 2002-11-04  Bruno Haible  <bruno@clisp.org>
81750
81751         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81752         aliases.
81753
81754 2002-11-04  Bruno Haible  <bruno@clisp.org>
81755
81756         * lib/config.charset: Update for newest glibc. Add canonical names
81757         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81758
81759 2002-11-04  Bruno Haible  <bruno@clisp.org>
81760
81761         * lib/config.charset: Add support for NetBSD.
81762
81763 2002-11-04  Bruno Haible  <bruno@clisp.org>
81764
81765         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81766
81767 2002-11-01  Bruno Haible  <bruno@clisp.org>
81768
81769         * configure.in: Add AC_CONFIG_AUX_DIR call.
81770         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81771         test/Makefile.
81772         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81773
81774 2002-09-28  Karl Berry  <karl@gnu.org>
81775
81776         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81777         installed automake until the next release, since changes have been
81778         made.
81779
81780 2002-09-25  Karl Berry  <karl@gnu.org>
81781
81782         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81783         * lib/getopt*: copy from libc/posix.
81784         * lib/gettext.h: copy from gettext.
81785         * lib/.cppi-disable: add strdup.c, gettext.h.
81786
81787 2002-09-25  Karl Berry  <karl@gnu.org>
81788
81789         * config/srclist.txt: enable gettext.h check.
81790         * config/config.{guess,sub}: update from prep.
81791         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81792                 from automake 1.6.3.
81793         See srclist*.
81794
81795 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81796
81797         * regex.c (PATFETCH): Remove the translating fetch.
81798         (PATFETCH_RAW): Rename to PATFETCH.
81799         (set_image_of_range): New fun.
81800         (SET_RANGE_TABLE_WORK_AREA): Use it.
81801         (regex_compile): Don't translate the pattern chars so eagerly.
81802         Only do it when inserting an `exactn' bytecode or when handling
81803         a char-range.
81804         (mutually_exclusive_p): Avoid empty statement.
81805
81806 2002-07-06  Jim Meyering  <meyering@lucent.com>
81807
81808         * m4/README: Don't mention Makefile.am.in.
81809         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81810
81811 2002-07-01  Jim Meyering  <meyering@lucent.com>
81812
81813         * lib/c-stack.c: Include sys/time.h.
81814         From Volker Borchert.
81815
81816 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81817
81818         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81819
81820 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81821
81822         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81823         New macro.  Use it uniformly instead of
81824         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81825         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81826         reported by Vin Shelton.
81827
81828 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81829
81830         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81831         Do not assume SA_SIGINFO behavior.
81832         Bug reported by Jim Meyering on NetBSD 1.5.2.
81833
81834 2002-06-22  Jim Meyering  <meyering@lucent.com>
81835
81836         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81837         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81838
81839         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81840         now that configure.ac uses AC_GNU_SOURCE.
81841         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81842         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81843
81844         Update to latest tools.  Suggestions from Paul Eggert.
81845         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81846         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81847         * m4/fnmatch.m4: Likewise.
81848         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81849         to AC_HEADER_STDBOOL
81850
81851 2002-06-22  Jim Meyering  <meyering@lucent.com>
81852
81853         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81854         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81855
81856 2002-06-22  Jim Meyering  <meyering@lucent.com>
81857
81858         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81859
81860         * lib/exitfail.c, exitfail.h: Likewise.
81861         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81862
81863         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81864         of fnmatch.h.
81865         (EXTRA_DIST): Add fnmatch_loop.c.
81866         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81867
81868         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81869         * lib/fnmatch.c: Update from diffutils-2.8.2.
81870         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81871         * lib/fnmatch.h: Remove file.
81872
81873 2002-06-21  Jim Meyering  <meyering@lucent.com>
81874
81875         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81876         * m4/mbrtowc.m4: Likewise.
81877
81878         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81879         * m4/mbswidth.m4: Reflect name change:
81880         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81881         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81882
81883         * m4/lib-link.m4: Update from gettext-0.11.2.
81884         * m4/gettext.m4: Likewise.
81885
81886         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81887         From Alfred M. Szmidt.
81888
81889 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81890
81891         * lib/file-type.h: Report an error if neither S_ISREG nor
81892         S_IFREG is defined, instead of using a test specific to glibc
81893         2.2.  This should be safe, since POSIX requires S_ISREG and
81894         Unix Version 7 had S_IFREG.  We don't need to check for
81895         <sys/types.h> since we don't use any symbols that it defines.
81896
81897 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81898
81899         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81900         $@-t, so that each temporary file name is unique and valid in the first
81901         8 characters, for operation under DOS.
81902
81903 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81904
81905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81906
81907 2002-06-15  Jim Meyering  <meyering@lucent.com>
81908
81909         Work even with DJGPP 2.03, which lacks support for symlinks.
81910         From Richard Dawe.
81911         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81912         is defined.
81913         * lib/lchown.c (S_ISLNK): Likewise.
81914
81915 2002-06-15  Jim Meyering  <meyering@lucent.com>
81916
81917         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81918         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81919         have been included before this file.
81920
81921 2002-06-14  Jim Meyering  <meyering@lucent.com>
81922
81923         * lib/file-type.h: Use the version from diffutils-2.8.2.
81924         * lib/file-type.c: Likewise.
81925
81926 2002-06-07  Jim Meyering  <meyering@lucent.com>
81927
81928         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81929         They're needed at least for NetBSD 1.5.2.
81930         ($statxfs_includes): Include those same headers.
81931         ($statxfs_includes): Include sys/vfs.h if available.
81932         ($statxfs_includes): Likewise for sys/statvfs.h.
81933         Check for the following members in both structs statfs and statvfs:
81934         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81935
81936 2002-06-01  Jim Meyering  <meyering@lucent.com>
81937
81938         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81939         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81940
81941 2002-05-28  Jim Meyering  <meyering@lucent.com>
81942
81943         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81944         Reported by Volker Borchert.
81945
81946 2002-05-27  Jim Meyering  <meyering@lucent.com>
81947
81948         Fix a problem seen only on nonconforming systems whereby ls.c's
81949         use of localtime, and then of gettimeofday would cause trouble:
81950         the localtime call used to initialize rpl_gettimeofday's save
81951         mechanism would clobber ls's current local time information so
81952         that in any long listing the first file would always be listed
81953         with date 1970-01-01.  Analysis by Volker Borchert.
81954
81955         * lib/gettimeofday.c (localtime): Undefine.
81956         (rpl_localtime): New function.
81957
81958 2002-05-27  Jim Meyering  <meyering@lucent.com>
81959
81960         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81961         localtime.
81962
81963         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81964         use the replacement function; it wouldn't resolve at link time.
81965         Reported by Volker Borchert.
81966
81967 2002-05-22  Jim Meyering  <meyering@lucent.com>
81968
81969         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81970         file-type.h.
81971         * lib/file-type.h: New file.
81972         * lib/file-type.c (file_type): New file/function.  Extracted from
81973         diffutils.
81974
81975 2002-04-30  Jim Meyering  <meyering@lucent.com>
81976
81977         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81978
81979 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81980
81981         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81982
81983 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81984
81985         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81986         Do not check for alloca.h (no longer used) or stdbool.h (was never
81987         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81988
81989 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81990
81991         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81992
81993 2002-04-29  Jim Meyering  <meyering@lucent.com>
81994
81995         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81996         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81997         Use AC_FUNC_STRNLEN here instead.
81998
81999         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82000         With autoconf-2.53a, it's part of AC_PROG_CC.
82001
82002 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82003
82004         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82005         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82006
82007 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82008
82009         * lib/sig2str.h, lib/sig2str.c: New files.
82010         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82011
82012 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82013
82014         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82015         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82016         of 127, since 64 is the largest conceivable number for ancient
82017         nonstandard hosts.
82018         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82019
82020 2002-04-28  Jim Meyering  <meyering@lucent.com>
82021
82022         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82023
82024 2002-04-24  Jim Meyering  <meyering@lucent.com>
82025
82026         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82027         (jm_PREREQ): Use it.
82028
82029         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82030         mach/mach.h fcntl.h.
82031         Check for this function: setlocale.
82032
82033 2002-04-24  Jim Meyering  <meyering@lucent.com>
82034
82035         * lib/gettext.h: New file, from Gettext.
82036         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82037         (libfetish_a_SOURCES): Add gettext.h.
82038
82039 2002-04-16  Jim Meyering  <meyering@lucent.com>
82040
82041         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82042         ut_pid, ut_id, ut_exit.
82043
82044 2002-04-16  Jim Meyering  <meyering@lucent.com>
82045
82046         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82047         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82048         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82049
82050 2002-04-12  Jim Meyering  <meyering@lucent.com>
82051
82052         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82053         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82054         existence of the getmntinfo function.  Needed for Darwin 5.3.
82055
82056         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82057         This is necessary at least on Darwin 5.3.
82058
82059         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82060         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82061         strnlen.o in the library, and that makes some versions of ranlib
82062         object.
82063
82064 2002-04-12  Jim Meyering  <meyering@lucent.com>
82065
82066         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82067
82068 2002-04-09  Jim Meyering  <meyering@lucent.com>
82069
82070         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82071         to be more precise.  Rather than saying we're checking whether the
82072         function `works', say what we're testing.
82073         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82074         Reported by Bruno Haible.
82075
82076 2002-03-10  Jim Meyering  <meyering@lucent.com>
82077
82078         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82079         Suggestion from Santiago Vila.
82080
82081 2002-03-08  Jim Meyering  <meyering@lucent.com>
82082
82083         * lib/rename.c: Mention that this wrapper is needed also on
82084         mips-dec-ultrix4.4 systems.
82085
82086 2002-03-02  Jim Meyering  <meyering@lucent.com>
82087
82088         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82089         not HAVE_CLOCK_SETTIME.
82090
82091 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82092
82093         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82094         Check for clock_settime.
82095
82096 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82097
82098         * lib/nanosleep.h: Rename to....
82099         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82100
82101         * lib/gettime.c: New file.
82102         * lib/settime.c: New file.
82103         * lib/stime.c: Remove.
82104
82105         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82106         timespec.h.  Remove nanosleep.h.
82107
82108 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82109
82110         * m4/acl.m4: New file.
82111         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82112         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82113
82114 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82115
82116         * lib/acl.c, lib/acl.h: New files.
82117         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82118
82119 2002-02-24  Jim Meyering  <meyering@lucent.com>
82120
82121         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82122         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82123         cause trouble.  Reported by Nelson Beebe.
82124
82125 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82126
82127         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82128         compilers that don't know that xalloc_die never returns.
82129
82130 2002-02-20  Jim Meyering  <meyering@lucent.com>
82131
82132         * lib/getdate.c: Regenerate using bison-1.33.
82133
82134 2002-02-17  Jim Meyering  <meyering@lucent.com>
82135
82136         * config/config.guess (main): Don't use `head -1'; it's no longer
82137         portable. Use `sed 1q' instead.
82138
82139 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82140
82141         * m4/codeset.m4: Upgrade to gettext-0.11.
82142         * m4/gettext.m4: Upgrade to gettext-0.11.
82143         * m4/glibc21.m4: Upgrade to gettext-0.11.
82144         * m4/iconv.m4: Upgrade to gettext-0.11.
82145         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82146         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82147         * m4/lib-ld.m4: New file, from gettext-0.11.
82148         * m4/lib-link.m4: New file, from gettext-0.11.
82149         * m4/lib-prefix.m4: New file, from gettext-0.11.
82150         * m4/progtest.m4: Upgrade to gettext-0.11.
82151
82152 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82153
82154         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82155         (jm_PREREQ): Use it.
82156
82157 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82158
82159         * lib/posixver.c, lib/posixver.h: New files.
82160         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82161
82162 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82163             Bruno Haible  <bruno@clisp.org>
82164
82165         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82166         (fwrite_success_callback): New declaration.
82167         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82168         print_unicode_char. Call failure callback instead of error.
82169         (fwrite_success_callback): New function.
82170         (exit_failure_callback): New function.
82171         (fallback_failure_callback): New function.
82172         (print_unicode_char): Call unicode_to_mb.
82173
82174 2002-01-26  Jim Meyering  <meyering@lucent.com>
82175
82176         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82177         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82178
82179 2002-01-26  Jim Meyering  <meyering@lucent.com>
82180
82181         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82182
82183 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82184
82185         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82186
82187 2002-01-22  Jim Meyering  <meyering@lucent.com>
82188
82189         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82190         Otherwise, some versions of automake would omit the rule that makes
82191         Makefile from Makefile.in.
82192
82193 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82194
82195         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82196         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82197         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82198         (memcoll): Set errno to zero if there is no error.
82199
82200         * lib/quotearg.c (quotearg_buffer_restyled):
82201         Fix bug with quoting buffers containing NUL when backslashing escapes.
82202         This bug was exposed by the other changes in this patch.
82203         (quotearg_n_options): New arg ARGSIZE.
82204         All callers changed.
82205         (quoting_options_from_style): New function.
82206         (quotearg_n_style): Use it.
82207         (quotearg_n_style_mem): New function.
82208
82209         * lib/quotearg.h (quotearg_n_style_mem): New function.
82210
82211 2002-01-19  Jim Meyering  <meyering@lucent.com>
82212
82213         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82214         Remove useless quotes: DF_PROG="df".
82215         * m4/strnlen.m4: New file.
82216
82217 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82218
82219         * lib/backupfile.c (ISDIGIT): Comment fix.
82220         * lib/getdate.y (ISDIGIT): Likewise.
82221         * lib/posixtm.c (ISDIGIT, year): Likewise.
82222         * lib/strverscmp.c (ISDIGIT): Likewise.
82223         * lib/userspec.c (ISDIGIT): Likewise.
82224
82225 2002-01-16  Jim Meyering  <meyering@lucent.com>
82226
82227         * lib/getdate.y: Add three semicolons, each just before a closing
82228         brace. Bison (as of version 1.31) no longer papers over that mistake.
82229
82230 2002-01-05  Jim Meyering  <meyering@lucent.com>
82231
82232         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82233
82234 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82235
82236         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82237         not silently exit merely because the output buffer happens to
82238         have nothing pending.
82239
82240 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82241
82242         See the big note in ../ChangeLog.
82243         * lib/human.c (suffixes): Prefer K to k for 1024.
82244         (generate_suffix_backwards): New function.
82245         (human_readable_inexact): Use it.
82246         * lib/xstrtol.c (__xstrtol): If there is no number but there
82247         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82248         Accept 'K' as well as 'k'.
82249
82250 2001-12-15  Jim Meyering  <meyering@lucent.com>
82251
82252         * lib/regex.h (__restrict_arr): Update from libc.
82253
82254         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82255         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82256         (STREQ): Define.
82257
82258 2001-12-14  Jim Meyering  <meyering@lucent.com>
82259
82260         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82261         Suggestion from Bruno Haible.
82262
82263 2001-12-10  Jim Meyering  <meyering@lucent.com>
82264
82265         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82266         xrealloc, Instead, include "xalloc.h".
82267         (initbuffer): Don't cast xmalloc return value to char*.
82268         (readline): Reword comment.
82269         Don't cast xrealloc return value to char*
82270         Return NULL, not 0.
82271
82272 2001-12-09  Jim Meyering  <meyering@lucent.com>
82273
82274         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82275         about `signed and unsigned type in conditional expression'.
82276         * lib/posixtm.c (posix_time_parse): Likewise.
82277
82278         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82279
82280         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82281         to avoid a pedantic warning.
82282
82283         * lib/getstr.c: Don't include assert.h.
82284         (getstr): Remove warning-evoking assertions.
82285         Return -1 if offset parameter is out of bounds.
82286         Change the type of a local from int to size_t.
82287
82288         * lib/strftime.c (my_strftime_localtime_r): Include this function
82289         definition in the `#if ! HAVE_TM_GMTOFF' block.
82290
82291         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82292         Include xalloc.h instead.
82293
82294 2001-12-02  Jim Meyering  <meyering@lucent.com>
82295
82296         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82297         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82298         included.
82299
82300         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82301         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82302
82303 2001-11-30  Akim Demaille  <akim@epita.fr>
82304
82305         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82306         before being defined.
82307
82308 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82309
82310         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82311         First arg is int, not unsigned.
82312         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82313         (SIZE_MAX, UINT_MAX): New macros.
82314         (quotearg_n_options): Abort if N is negative.
82315         Avoid overflow check on hosts where size_t is 64 bits and int
82316         is 32 bits, as overflow is impossible there.
82317         Fix off-by-one typo that caused unnecessary reallocation.
82318
82319 2001-11-27  Jim Meyering  <meyering@lucent.com>
82320
82321         * lib/tempname.c: Merge with version from libc.
82322         * lib/regex.c: Likewise.
82323
82324         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82325         systems for which STDC_HEADERS is 0, it was not included, resulting in
82326         a warning about an integer-to-pointer conversion problem with getenv.
82327         Reported by Volker Borchert.
82328
82329 2001-11-26  Jim Meyering  <meyering@lucent.com>
82330
82331         * lib/gtod.h: Remove file.
82332         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82333         * lib/gettimeofday.c: Don't include gtod.h.
82334         (GTOD_init): Remove function.
82335         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82336         Suggestion from Volker Borchert.
82337
82338 2001-11-23  Jim Meyering  <meyering@lucent.com>
82339
82340         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82341         it.
82342         * lib/hash.c (struct hash_table): Define it here instead.
82343
82344 2001-11-22  Jim Meyering  <meyering@lucent.com>
82345
82346         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82347
82348 2001-11-20  Jim Meyering  <meyering@lucent.com>
82349
82350         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82351         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82352
82353 2001-11-19  Jim Meyering  <meyering@lucent.com>
82354
82355         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82356         directory.  Use "conftestXXXXXX" as the template.
82357         Suggestion from Paul Eggert.
82358
82359         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82360         immediately, so the test doesn't mistakenly hit the max-open-files
82361         limit.
82362
82363 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82364
82365         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82366         (TEMPORARIES): New macro.
82367         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82368         removes an artificial limitation (e.g. HP-UX 10.20, where
82369         TMP_MAX is 17576).
82370
82371 2001-11-18  Jim Meyering  <meyering@lucent.com>
82372
82373         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82374
82375 2001-11-18  Jim Meyering  <meyering@lucent.com>
82376
82377         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82378         on SunOS 4.
82379
82380         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82381         files will be created before anything else.
82382
82383 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82384
82385         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82386         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82387
82388 2001-11-17  Jim Meyering  <meyering@lucent.com>
82389
82390         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82391         Prompted by a report from Bob Proulx.
82392
82393         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82394         Instead, require UTILS_FUNC_MKSTEMP.
82395
82396 2001-11-17  Jim Meyering  <meyering@lucent.com>
82397
82398         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82399         Now, that's done as part of AC_FUNC_STRTOD.
82400
82401 2001-11-17  Jim Meyering  <meyering@lucent.com>
82402
82403         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82404         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82405         rather than group writable.  Patch by Juan F. Codagnone.
82406
82407         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82408         xrealloc, Instead, include "xalloc.h".
82409
82410         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82411         Remove explicit declarations of xmalloc, xrealloc,
82412         and xstrdup.  Instead, include "xalloc.h".
82413
82414         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82415         unlocked-io.h.
82416         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82417         Likewise.
82418         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82419
82420         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82421         Reported by Padraig Brady.
82422
82423         * lib/mkstemp.c: #undef mkstemp.
82424         Include config.h.
82425         (rpl_mkstemp): Rename from mkstemp.
82426         Protoize.
82427
82428 2001-11-16  Jim Meyering  <meyering@lucent.com>
82429
82430         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82431         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82432         determine the amount of total physical memory, use pstat_getstatic.
82433         HPUX-11 doesn't define _SC_PHYS_PAGES.
82434         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82435         If sysconf couldn't be used to determine the amount of available
82436         physical memory, use both pstat_getstatic and pstat_getdynamic.
82437         Based on a patch from Bob Proulx.
82438
82439 2001-11-10  Jim Meyering  <meyering@lucent.com>
82440
82441         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82442         (jm_PREREQ): Use it.
82443
82444 2001-11-09  Jim Meyering  <meyering@lucent.com>
82445
82446         * m4/jm-macros.m4: Require autoconf-2.52f.
82447         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82448         Use these AC_-prefixed names, not the AM_-prefixed ones.
82449
82450         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82451
82452 2001-11-05  Jim Meyering  <meyering@lucent.com>
82453
82454         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82455
82456 2001-11-04  Jim Meyering  <meyering@lucent.com>
82457
82458         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82459         $DEFS.
82460
82461 2001-11-03  Jim Meyering  <meyering@lucent.com>
82462
82463         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82464         of AC_DEFUN.
82465
82466         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82467         know the name of the variable in the macro definition.
82468
82469 2001-11-03  Jim Meyering  <meyering@lucent.com>
82470
82471         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82472         in argmatch_to_argument call.
82473
82474         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82475         argument.
82476
82477         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82478         e.g., a fault due to an attempt to free a NULL pointer.
82479
82480 2001-11-01  Jim Meyering  <meyering@lucent.com>
82481
82482         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82483         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82484
82485 2001-11-01  Jim Meyering  <meyering@lucent.com>
82486
82487         * lib/dirfd.c, lib/dirfd.h: New files.
82488         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82489
82490         * lib/hash.c (hash_print) [TESTING]: Clean up.
82491
82492 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82493
82494         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82495         to avoid a warning if -Wall.
82496
82497 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82498
82499         * README: New file
82500         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82501         (per RMS's instructions, this is now the canonical source)
82502         * lgpl/, gpl/: New directories.
82503
82504 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82505
82506         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82507
82508 2001-10-21  Jim Meyering  <meyering@lucent.com>
82509
82510         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82511         this code would end up calling gettext even in packages built
82512         with --disable-nls.
82513         * lib/getopt.c (_): Likewise.
82514         * lib/regex.c (_): Likewise.
82515
82516 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82517
82518         * m4/error.m4 (jm_PREREQ_ERROR):
82519         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82520         AC_FUNC_STRERROR_R does that.
82521         Check for strerror declaration.
82522
82523         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82524         are supposed to have them these days.
82525         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82526         Merge changes from latest Autoconf CVS.
82527         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82528         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82529         POSIX decided to standardize on the int flavor of strerror_r.
82530
82531 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82532
82533         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82534         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82535         Use strerror_r that is only a macro, even if it is not a function.
82536         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82537         (private_strerror): Use prototypes, not old-style function definition.
82538         (print_errno_message): New function.
82539         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82540         char*-flavored one.
82541         (error_tail, error, error_at_line): Use it.
82542
82543 2001-10-11  Jim Meyering  <meyering@lucent.com>
82544
82545         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82546         and quote_n (1, ... to avoid clobbering a buffer.
82547
82548 2001-10-05  Jim Meyering  <meyering@lucent.com>
82549
82550         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82551         hash-pjw.h.
82552         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82553         * lib/hash-pjw.h: New file.
82554
82555 2001-09-30  Jim Meyering  <meyering@lucent.com>
82556
82557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82558         `struct fsstat' has the `f_fstypename' member.
82559         Use that to define FS_TYPE, which is now used to make
82560         the getfsstat link test tighter.
82561
82562 2001-09-30  Jim Meyering  <meyering@lucent.com>
82563
82564         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82565         Include <sys/ucred.h>, for Apple Darwin.
82566         Include sys/mount.h and sys/fs_types.h only if available.
82567         (FS_TYPE): Define.
82568         (read_filesystem_list): Use FS_TYPE.
82569
82570 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82571
82572         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82573         a boolean context.
82574
82575 2001-09-29  Jim Meyering  <meyering@lucent.com>
82576
82577         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82578         [one-argument getmntent function]): Include stdio.h before mntent.h.
82579         SunOS 4.1.x needs it for the declaration of `FILE'.
82580         Patch by Volker Borchert.
82581
82582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82583         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82584         sys/fs_types.h, and make the link-test for getfsstat guard #include
82585         directives with appropriate #if HAVE_*_H tests so that we can
82586         detect getfsstat on Apple Darwin1.3.7 systems.
82587         Reported by Nelson Beebe.
82588         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82589
82590 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82591
82592         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82593         #defines strtoimax.  Also treat the other strto* functions
82594         like strtoimax.
82595
82596         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82597         Check for strtoul and strtoumax,
82598         as those declarations are made even in the signed case.
82599         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82600         Likewise, for strtol and strtoimax.
82601
82602 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82603
82604         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82605         #defines strtoimax.  Also treat the other strto* functions
82606         like strtoimax.
82607
82608         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82609         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82610         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82611
82612 2001-09-26  Jim Meyering  <meyering@lucent.com>
82613
82614         Most macros in unlocked-io.h had the wrong number of arguments.
82615         * lib/gen-uio: New script.
82616         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82617         * lib/unlocked-io.hin: Remove file.
82618         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82619         rather than trying to embed it here.
82620         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82621         Reported by Padraig Brady.
82622
82623 2001-09-25  Volker Borchert  <bt@teknon.de>
82624
82625         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82626         `result'.
82627
82628 2001-09-24  Jim Meyering  <meyering@lucent.com>
82629
82630         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82631
82632 2001-09-23  Jim Meyering  <meyering@lucent.com>
82633
82634         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82635         instead of the mere test for existence of mntent.h.  The latter
82636         would get a false-positive on AIX 3.4 systems.
82637         In the outer getmntent if-block, don't die if neither of the getmntent
82638         tests succeeds.  Instead, just fall through and continue with the
82639         remaining tests.
82640
82641 2001-09-23  Jim Meyering  <meyering@lucent.com>
82642
82643         * lib/mountlist.c: Remove useless parentheses in #if directives.
82644         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82645         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82646
82647 2001-09-22  Jim Meyering  <meyering@lucent.com>
82648
82649         * m4/gettext.m4: New file.  From gettext.
82650         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82651         * m4/progtest.m4: Likewise
82652         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82653         * m4/glibc21.m4: Likewise.
82654
82655         * m4/libintl.m4: Remove.  No longer used.
82656
82657 2001-09-22  Jim Meyering  <meyering@lucent.com>
82658
82659         * lib/localcharset.c: Update from latest gettext.
82660         * lib/config.charset: Likewise.
82661
82662 2001-09-20  Jim Meyering  <meyering@lucent.com>
82663
82664         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82665         strtoimax.
82666         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82667         strtoumax.
82668
82669 2001-09-20  Jim Meyering  <meyering@lucent.com>
82670
82671         * lib/xstrtol.c (strtoimax): Guard declaration with
82672         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82673         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82674         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82675         (strtoumax): Likewise, for completeness (it wasn't necessary).
82676
82677 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82678
82679         * lib/strtoimax.c (HAVE_LONG_LONG):
82680         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82681         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82682         to work around bug in IBM C compiler.
82683
82684 2001-09-17  Jim Meyering  <meyering@lucent.com>
82685
82686         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82687         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82688         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82689         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82690         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82691         whenever the right hand side need not be expanded by the shell.
82692
82693 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82694
82695         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82696         library.  It's not correct, as some older glibcs are buggy.
82697         fnmatch wasn't fixed until glibc 2.2.
82698
82699         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82700         special shell magic here.
82701
82702 2001-09-16  Jim Meyering  <meyering@lucent.com>
82703
82704         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82705         * m4/jm-macros.m4: Require it.
82706
82707 2001-09-16  Jim Meyering  <meyering@lucent.com>
82708
82709         * lib/mkdir.c: New file.
82710
82711 2001-09-15  Jim Meyering  <meyering@lucent.com>
82712
82713         * m4/jm-macros.m4: Check for help2man.
82714
82715 2001-09-11  Jim Meyering  <meyering@lucent.com>
82716
82717         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82718         The body, by Paul Eggert, was moved here from configure.in.
82719         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82720
82721 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82722
82723         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82724         (jm_PREREQ): Use it.
82725
82726 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82727
82728         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82729         Use ssize_t, not int, to store result of readlink.
82730         Check for ssize_t overflow as well as size_t overflow,
82731         as POSIX says the result of readlink is implementation-defined
82732         when ssize_t overflows.
82733         Remove unnecessary cast to char*.
82734         Use free+malloc instead of realloc, as the storage doesn't need
82735         to be preserved and it's clearer and can be more efficient that way.
82736         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82737         * lib/xreadlink.h (xreadlink): Update prototype.
82738
82739 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82740
82741         * lib/xgetcwd.c: Revert some of the previous change; intead,
82742         fix the HAVE_GETCWD_NULL code to behave more like the
82743         !HAVE_GETCWD_NULL code used to.
82744
82745         Include "xalloc.h".
82746         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82747         invoke xalloc_die.
82748
82749 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82750
82751         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82752         sys/param.h, as pathmax.h includes them.
82753
82754 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82755
82756         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82757         (jm_PREREQ_XGETCWD): New macro.
82758
82759         * m4/getcwd.m4: New file.
82760
82761 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82762
82763         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82764         like the HAVE_GETCWD_NULL code.
82765         Include pathmax.h if not HAVE_GETCWD.
82766         Do not include xalloc.h.
82767         (INITIAL_BUFFER_SIZE): New symbol.
82768         Do not use xmalloc / xrealloc, since the caller is responsible for
82769         handling errors.  Preserve errno around `free' during failure.
82770         Do not overrun buffer when using getwd.
82771
82772 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82773
82774         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82775         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82776         getcwd (NULL, 0).
82777
82778 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82779
82780         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82781         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82782         spotted by Jim Meyering.
82783
82784 2001-09-03  Jim Meyering  <meyering@lucent.com>
82785
82786         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82787         failure.
82788
82789 2001-09-02  Jim Meyering  <meyering@lucent.com>
82790
82791         * lib/error.c: Update from GNU libc.
82792
82793 2001-09-01  Jim Meyering  <meyering@lucent.com>
82794
82795         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82796         Used by df.
82797
82798 2001-09-01  Jim Meyering  <meyering@lucent.com>
82799
82800         * lib/xreadlink.c: New file.
82801         * lib/xreadlink.h: New file.
82802         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82803         xreadlink.h.
82804
82805         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82806         doesn't conflict with sparc Solaris 7's definition in
82807         /usr/include/sys/int_types.h.
82808
82809         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82810         files.
82811         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82812         and strncasecmp as r-values.  Unixware didn't have declarations.
82813
82814 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82815
82816         * lib/xstrtol.h: Add copyright notice.
82817         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82818         LONGINT_INVALID_SUFFIX_CHAR.
82819
82820 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82821
82822         * lib/xstrtol.c (strtoimax): New decl.
82823
82824 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82825
82826         * lib/xgetcwd.c: Don't include pathmax.h.
82827         Include stdlib.h and unistd.h if available.
82828         Include xalloc.h.
82829         (xmalloc, xstrdup, free): Remove decls.
82830         (xgetcwd): Don't assume sizes fit in unsigned.
82831         Check for overflow when computing sizes.
82832         Simplify reallocation code.
82833
82834 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82835
82836         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82837         a directory's st_size can have an arbitrary value, so the old
82838         usage could waste an arbitrary amount of memory.  All uses
82839         changed.
82840         * lib/savedir.h: Update prototype.
82841
82842 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82843
82844         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82845
82846         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82847         old strtoimax.c.
82848
82849         Also, make the following further changes to make this file's
82850         configuration more similar to that of strtol.c:
82851         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82852         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82853         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82854         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82855         changed to signed values.
82856
82857         And make the following changes as well:
82858         Fix copyright notice, as 1999 was missing.
82859         (verify): New macro.
82860         (strtoimax): Check sizes at compile-time, not run-time.
82861         Prefer strtol to strtoll if both work.
82862         (main): Remove; it was not that useful and was a pain to maintain.
82863
82864         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82865
82866 2001-08-31  Jim Meyering  <meyering@lucent.com>
82867
82868         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82869         Use an initial, malloc'd, buffer of length 128 rather than
82870         a statically allocated one of length 1024.
82871
82872 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82873
82874         Simplify code, partly by assuming autoconf 2.52 semantics.
82875
82876         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82877
82878         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82879         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82880         All uses removed.
82881         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82882         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82883         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82884         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82885         jm_AC_HEADER_INTTYPES_H.
82886         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82887
82888         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82889
82890         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82891         Quote first arg of AC_DEFUN.
82892         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82893         since they are needed to parse the include file even if we need
82894         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82895         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82896         but with opposite signedness.
82897
82898 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82899
82900         Merge 'exclude' changes from tar 1.13.22.
82901         This fixes one or two unlikely storage allocation overflow bugs,
82902         but doesn't change user-visible behavior otherwise.
82903
82904 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82905
82906         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82907         (jm_PREREQ_EXCLUDE): New macro.
82908
82909 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82910
82911         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82912         tm to be declared.
82913
82914 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82915
82916         * lib/hash.c: Remove '2001' from copyright notice.
82917
82918 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82919
82920         * lib/full-write.h: New file.
82921         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82922         * lib/full-write.c: Correct credits, as cccp.c no longer
82923         exists and anyway it was so heavily changed from the old cccp
82924         code as to be unrecognizable.  Include full-write.h.
82925         (full_write): Return size_t, with short writes meaning failure.
82926         All callers changed.  This fixes a bug with large buffers
82927         on 64-bit hosts.
82928         * lib/utime.c: Include full-write.h.
82929
82930 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82931
82932         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82933         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82934         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82935         Include if available.
82936         (<xalloc.h>): Include
82937         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82938         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82939         collide with FNM macros.
82940         (struct patopts): New struct.
82941         (struct exclude): Use it, as exclude patterns now come with options.
82942         (new_exclude): Support above changes.
82943         (new_exclude, add_exclude_file):
82944         Initial size must now be a power of two to simplify overflow checking.
82945         (free_exclude, fnmatch_no_wildcards): New function.
82946         (excluded_filename): No longer requires options arg, as the options
82947         are determined by add_exclude.  Now returns bool, not int.
82948         (excluded_filename, add_exclude):
82949         Add support for the fancy new exclusion options.
82950         (add_exclude, add_exclude_file): Now takes int options arg.
82951         Check for arithmetic overflow when computing sizes.
82952         (add_exclude_file): xrealloc might modify errno, so don't
82953         realloc until after errno might be used.
82954
82955         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82956         New macros.
82957         (free_exclude): New decl.
82958         (add_exclude, add_exclude_file): Now takes int options arg.
82959         (excluded_filename): No longer requires options arg, as the options
82960         are determined by add_exclude.  Now returns bool, not int.
82961
82962 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82963
82964         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82965
82966 2001-08-27  Jim Meyering  <meyering@lucent.com>
82967
82968         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82969
82970         * lib/version-etc.c (N_): Remove definition.
82971         Revert most of last change.
82972         Instead, simply don't mark the `Copyright...' string for translation.
82973         Based on advice from Paul Eggert.
82974
82975         * lib/strtoxmax.c: Tweak comment.
82976
82977 2001-08-26  Jim Meyering  <meyering@lucent.com>
82978
82979         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82980
82981         * m4/xstrtoimax.m4: New file.
82982         * m4/xstrtoumax.m4: Add comments explaining why we
82983         AC_REPLACE_FUNCS(strtol).
82984
82985 2001-08-26  Jim Meyering  <meyering@lucent.com>
82986
82987         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82988         of copyright with `%s' so translators don't get an untranslated
82989         message in 2002.
82990         (COPYRIGHT_YEAR): Define.
82991         (version_etc): Use fprintf rather than fputs.
82992         Suggestion from Ulrich Drepper.
82993
82994         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82995
82996         * lib/strtoll.c: New file, from GNU libc.
82997         * lib/xstrtoimax.c: New file.
82998
82999         * lib/xstrtol.h: Add xstrtoimax.
83000         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83001         * lib/strtoimax.c: New file.  Likewise, but first define
83002         STRTOUXMAX_SIGNED.
83003
83004         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83005         ...
83006         * lib/strtoxmax.c: ... then renamed to this.
83007
83008 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83009
83010         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83011         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83012         (jm_AC_TYPE_INTMAX_T): New macro.
83013         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83014
83015         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83016
83017         * m4/longlong.m4: Renamed from ulonglong.m4.
83018         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83019         * m4/uintmax_t.m4: Removed.
83020
83021 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83022
83023         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83024         Port to Solaris 8, where 'sed' requires a space after the 'r'
83025         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83026         Redirect output to $tmp just once.
83027
83028 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83029
83030         * lib/addext.c (<errno.h>): Include.
83031         (errno): Declare if not defined.
83032         (addext): Work correctly when pathconf returns -1 and leaves
83033         errno alone because there is no limit.  Also, work even if
83034         pathconf returns a value greater than SIZE_MAX.
83035
83036 2001-08-12  Jim Meyering  <meyering@lucent.com>
83037
83038         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83039         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83040         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83041         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83042         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83043         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83044         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83045         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83046         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83047         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83048         utime.m4, utimes.m4, xstrtoumax.m4:
83049         Quote the first argument in each use of AC_DEFUN.
83050
83051 2001-08-12  Jim Meyering  <meyering@lucent.com>
83052
83053         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83054         Simply `return getcwd (NULL, 0);'.
83055         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83056         Use 1300 as initial value for length, not PATH_MAX.
83057
83058         * lib/pathmax.h: Clean up cpp syntax.
83059
83060 2001-08-12  Jim Meyering  <meyering@lucent.com>
83061
83062         * lib/gettimeofday.c: New file.
83063         * lib/gtod.h: New file.
83064         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83065
83066 2001-08-05  Jim Meyering  <meyering@lucent.com>
83067
83068         * m4/jm-macros.m4: Require autoconf-2.52.
83069
83070 2001-08-04  Jim Meyering  <meyering@lucent.com>
83071
83072         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83073         stmt, to get in sync with glibc.
83074
83075 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83076
83077         The following changes are from gettext 0.10.39 as maintained by
83078         Bruno Haible.
83079
83080         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83081         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83082         with inverted sense.  All uses changed.
83083
83084         * lib/mbswidth.c: Don't include <limits.h>.
83085         Include <stdlib.h> and <string.h> unconditionally.
83086         (iswcntrl, mbsinit, ISCNTRL): New macros.
83087         (mbsnwidth): Use K&R style function declarations.
83088         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83089         can optimize it when MB_CUR_MAX == 1.
83090         The width of control characters is zero, not 1.
83091
83092 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83093
83094         The following changes are from gettext 0.10.39 as maintained by
83095         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83096
83097         * m4/codeset.m4: Upgrade to serial AM1.
83098         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83099         all uses changed.  Quote first arg of AC_DEFUN.
83100         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83101
83102         * m4/iconv.m4: Upgrade to serial AM2.
83103         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83104         Add --with-libconv-prefix.
83105         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83106         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83107         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83108         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83109         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83110
83111         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83112         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83113         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83114         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83115         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83116         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83117         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83118         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83119         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83120
83121         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83122         string.h any more.
83123
83124         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83125         not the default value.
83126
83127         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83128         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83129         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83130         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83131         Also check for iswcntrl, used for wcwidth fallback.
83132         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83133         to Autoconf 2.13.
83134
83135 2001-08-03  Jim Meyering  <meyering@lucent.com>
83136
83137         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83138         as it was in the original.  Reported by Paul Eggert.
83139
83140 2001-07-16  Jim Meyering  <meyering@lucent.com>
83141
83142         * m4/gettimeofday.m4: New file.
83143         Prompted by a report from Bernhard Baehr.
83144
83145 2001-07-15  Jim Meyering  <meyering@lucent.com>
83146
83147         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83148         stuff. Now it's in ../Makefile.cfg.
83149
83150 2001-07-15  Jim Meyering  <meyering@lucent.com>
83151
83152         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83153         (BUILT_SOURCES): Add unlocked-io.h.
83154         (io_functions): Define.
83155         (unlocked-io.h): New rule.
83156         (DISTCLEANFILES): Add unlocked-io.h.
83157         (all-local): Depend on unlocked-io.h, to ensure it is created.
83158
83159         * lib/unlocked-io.hin: New file
83160
83161         * lib/regex.c: Update from glibc.
83162
83163 2001-07-05  Jim Meyering  <meyering@lucent.com>
83164
83165         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83166         recommendation.
83167         (libfetish_a_SOURCES): Put all .h files here instead.
83168         Remove a thus-exposed (better checks in automake) duplicate and
83169         two unnecessary .h files.
83170
83171 2001-07-04  Jim Meyering  <meyering@lucent.com>
83172
83173         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83174         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83175         distcheck failure.
83176
83177 2001-07-02  Jim Meyering  <meyering@lucent.com>
83178
83179         The following changes were prompted by suggestions from Bruno Haible.
83180
83181         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83182         is now generated.
83183         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83184         definition of EXTRA_DIST.
83185         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83186         ensure that the generated file is created/updated whenever the list
83187         of $(unlocked_functions) is changed.
83188         (jm-glibc-io.m4): New rule.
83189         (unlocked-io.h): New rule -- currently unused.
83190
83191 2001-06-24  Jim Meyering  <meyering@lucent.com>
83192
83193         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83194         unmatched right bracket, rather than kludging it with an extra,
83195         falsely-matching quote in a comment.  Patch by Akim Demaille.
83196
83197 2001-06-11  Jim Meyering  <meyering@lucent.com>
83198
83199         * lib/regex.c: Update from GNU libc.
83200
83201 2001-05-27  Jim Meyering  <meyering@lucent.com>
83202
83203         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83204         Check for ut_type in struct utmp.
83205
83206 2001-05-27  Jim Meyering  <meyering@lucent.com>
83207
83208         * lib/readutmp.h (UT_TYPE): Define.
83209
83210 2001-05-24  Jim Meyering  <meyering@lucent.com>
83211
83212         * lib/argmatch.c: Include "quote.h".
83213         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83214         quote function.  Reported by Göran Uddeborg.
83215
83216 2001-05-22  Jim Meyering  <meyering@lucent.com>
83217
83218         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83219         now that we use the package-supplied version unconditionally.
83220         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83221
83222 2001-05-21  Jim Meyering  <meyering@lucent.com>
83223
83224         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83225         shell syntax errors.
83226
83227 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83228
83229         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83230
83231 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83232
83233         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83234         Don't bother to check library strftime, since
83235         we'll be using our own my_strftime function anyway.
83236         Define my_strftime instead of strftime.
83237
83238 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83239
83240         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83241         which is not yet declared.
83242
83243 2001-05-15  Jim Meyering  <meyering@lucent.com>
83244
83245         * m4/regex.m4: Use proper quoting so brackets appear in the test
83246         program.
83247         Reported by, and with help from, Bruno Haible.
83248
83249 2001-05-13  Jim Meyering  <meyering@lucent.com>
83250
83251         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83252         undefined.
83253
83254 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83255
83256         dirname code cleanup.  base_name now behaves more compatibly
83257         with POSIX basename when given file names that have trailing
83258         slashes, and similarly for dir_name.  Add new primitives
83259         base_len and dir_len.  Put the directory-name-related decls
83260         into dirname.h.
83261
83262         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83263         * lib/backupfile.c (base_name): Likewise.
83264         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83265         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83266         * lib/makepath.c (strip_trailing_slashes): Likewise.
83267         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83268         ISSLASH): Likewise.
83269         * lib/rename.c (strip_trailing_slashes): Likewise.
83270         * lib/same.c (base_name): Likewise.
83271         * lib/stripslash.c (ISSLASH): Likewise.
83272
83273         * lib/addext.c: Include <dirname.h> after size_t is defined.
83274         * lib/backupfile.c: Likewise.
83275
83276         * lib/addext.c (addext): Use base_len to trim redundant
83277         trailing slashes instead of doing it ourselves.
83278         But do not trim the last slash if it is not redundant.
83279
83280         * lib/backupfile.c (find_backup_file_name,
83281         max_backup_version): Use base_len instead of rolling it ourselves.
83282         Handle the case of "" and (on DOS) "C:" correctly.
83283
83284         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83285         needed. Include <string.h>, <dirname.h>.
83286         (base_name): Allow file names ending in slashes, other than names
83287         that are all slashes.  In this case, return the basename followed
83288         by the slashes.  This is more general, and can be used in places
83289         where the original base_name purposely had an assertion failure.
83290         (base_len): New function.
83291
83292         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83293         Do not include <assert.h>; no longer needed.
83294         Include xalloc.h.
83295         (memrchr): Remove decl.
83296         (dir_name_r): Remove.
83297         (dir_len): Renamed from dirlen.  All callers changed.
83298         Rewrite in terms of base_name, for simplicity and consistency.
83299         (dir_name): Never return NULL.  All callers changed.
83300         Do not include <stdlib.h> in test program; no longer needed.
83301         return 0; is fine for test program.
83302
83303         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83304         New macros.
83305         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83306
83307         * lib/path-concat.c (path_concat): Use base_len to compute
83308         base length, not strlen; this means we cannot rely on memcpy
83309         to null-terminate.
83310
83311         * lib/same.c (STREQ): Remove.
83312         (same_name): Handle the case where the basename ends in trailing '/'.
83313
83314         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83315         a slash was stripped.  Do not strip the last slash after a
83316         file system prefix.
83317
83318 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83319
83320         * lib/Makefile.am (libfetish_a_SOURCES):
83321         Add strftime.c, since we now compile it on all hosts.
83322
83323         * lib/strftime.c (my_strftime):
83324         Define to nstrftime if emacs, but only if my_strftime is not defined.
83325         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83326         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83327         Add one more extra argument: a nanoseconds value.
83328         All uses changed.
83329         (ns): New macro.
83330         (my_strftime function): Add %N format.
83331         (emacs_strftimeu): Renamed from emacs_strftime,
83332         with extra ut argument.
83333
83334 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83335
83336         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83337
83338 2001-04-21  Jim Meyering  <meyering@lucent.com>
83339
83340         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83341         doesn't interfere.
83342
83343 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83344
83345         * m4/ftruncate.m4: Check for chsize.
83346         Link with ftruncate.o unconditionally if ftruncate is missing.
83347         This was required when cross-compiling to i586-mingw32msvc.
83348
83349 2001-04-08  Jim Meyering  <meyering@lucent.com>
83350
83351         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83352         recomputed; that's necessary when the offset spans a DST transition.
83353         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83354
83355 2001-04-02  Jim Meyering  <meyering@lucent.com>
83356
83357         * lib/regex.h, regex.c: Update from GNU libc.
83358
83359 2001-03-24  Jim Meyering  <meyering@lucent.com>
83360
83361         * m4/jm-macros.m4: Require autoconf-2.49d.
83362
83363 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83364
83365         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83366
83367 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83368
83369         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83370
83371 2001-03-17  Jim Meyering  <meyering@lucent.com>
83372
83373         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83374         now that the version in autoconf is equivalent.
83375         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83376
83377         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83378         Suggestion from Akim Demaille.
83379
83380         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83381         (jm_PREREQ_TEMPNAME): New function.
83382
83383 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83384
83385         * lib/tempname.c (uint64_t): Define to uintmax_t if
83386         not defined, and if UINT64_MAX is not defined.
83387         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83388         Reported by John David Anglin.
83389
83390 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83391
83392         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83393         resolve alias if codeset is empty.
83394         * lib/config.charset (BeOS): Use wildcard syntax.
83395
83396 2001-03-13  Jim Meyering  <meyering@lucent.com>
83397
83398         * lib/path-concat.c (path_concat)
83399         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83400         concatenating e.g., `C:' and `foo'.
83401         From Bruno Haible.
83402
83403 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83404
83405         * lib/localcharset.c (locale_charset): Don't use
83406         setlocale(LC_CTYPE,NULL). Don't return NULL.
83407         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83408
83409 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83410
83411         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83412         support for DOS/DJGPP.
83413
83414 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83415
83416         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83417         lacks mkstemp.  Compile our own tempname.c if we compile our own
83418         mkstemp.c, as mkstemp relies on tempname.
83419
83420 2001-03-01  Jim Meyering  <meyering@lucent.com>
83421
83422         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83423         AH_VERBATIM really does output its argument verbatim.
83424
83425 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83426
83427         * lib/Makefile.am (libfetish_a_SOURCES):
83428         Add dup-safer.c, fopen-safer.c.
83429         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83430
83431         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83432         * lib/unistd-safer.h: New files.
83433
83434 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83435
83436         The mkstemp replacement is taken from glibc 2.2.2, with some
83437         portability fixes for use outside glibc, as follows:
83438
83439         * lib/tempname.c (struct_stat64): New macro.
83440         (direxists, __gen_tempname): Use it.
83441         This avoids a portability problem with Solaris 8.
83442
83443         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83444         (<stddef.h>, <stdint.h>, <string.h>):
83445         Include only if STDC_HEADERS || _LIBC.
83446         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83447         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83448         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83449         (__set_errno): Define this macro if <errno.h> doesn't.
83450         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83451         Define these macros if <stdio.h> doesn't.
83452         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83453         Define these macros if <sys/stat.h>
83454         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83455         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83456         __xstat64): Define if not _LIBC.
83457         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83458         (__gen_tempname): Invoke gettimeofday only if
83459         HAVE_GETTIMEOFDAY || _LIBC;
83460         otherwise, fall back on plain "time".
83461         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83462
83463         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83464
83465         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83466
83467 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83468
83469         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83470
83471 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83472
83473         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83474         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83475         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83476         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83477
83478 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83479
83480         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83481         Remove workaround macros for hosts that have mbrtowc but not
83482         mbstate_t, as we now insist on proper declarations for both
83483         before using mbrtowc.
83484
83485 2001-02-17  Jim Meyering  <meyering@lucent.com>
83486
83487         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83488         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83489         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83490         UnixWare 7.1.1.
83491
83492         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83493         rather than AC_CACHE_VAL.
83494
83495 2001-02-17  Jim Meyering  <meyering@lucent.com>
83496
83497         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83498         around included file name.
83499
83500         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83501
83502         * lib/strftime.c: Update from GNU libc (the only changes were to
83503         comments).
83504
83505 2001-02-17  Jim Meyering  <meyering@lucent.com>
83506
83507         * lib/regex.c: Update from libc.
83508
83509 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83510
83511         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83512         clash.
83513
83514 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83515
83516         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83517         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83518         Reported by Mark Hounschell via Paul Eggert.
83519
83520 2001-02-07  Jim Meyering  <meyering@lucent.com>
83521
83522         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83523
83524 2001-02-05  Jim Meyering  <meyering@lucent.com>
83525
83526         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83527         it includes the patch required for `large file' support with at least
83528         HP-UX's 10.20 /bin/cc.
83529
83530 2001-02-03  Jim Meyering  <meyering@lucent.com>
83531
83532         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83533         AS_IF, now that it works once again (mysteriously).
83534         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83535
83536 2001-01-30  Jim Meyering  <meyering@lucent.com>
83537
83538         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83539         * m4/chown.m4: Rename conftestchown to conftest.chown.
83540         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83541         s/conftestdir2/conftest.d2/.
83542         * m4/utimes.m4: s/conftestdata/conftest.data/
83543         Inspired by Pavel Roskin's change in autoconf.
83544
83545 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83546
83547         * lib/config.charset: Update for FreeBSD 4.2.
83548
83549 2001-01-27  Jim Meyering  <meyering@lucent.com>
83550
83551         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83552         a use of AS_IF.
83553         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83554
83555 2001-01-26  Jim Meyering  <meyering@lucent.com>
83556
83557         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83558         quotearg.c includes it.
83559
83560 2001-01-26  Jim Meyering  <meyering@lucent.com>
83561
83562         * lib/quotearg.c: Include stddef.h.
83563         * lib/quote.c: Include stddef.h.
83564         Reported by Axel Kittenberger.
83565
83566         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83567         line in double quotes so that it evokes a better diagnostic.
83568         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83569         Reported by Axel Kittenberger.
83570
83571 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83572
83573         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83574         as if it was a `charset'.
83575
83576 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83577
83578         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83579         has const.
83580
83581 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83582
83583         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83584         to avoid a warning.  Add back 'const' to inptr.
83585
83586 2001-01-20  Jim Meyering  <meyering@lucent.com>
83587
83588         Be sure that headers are checked before used in code compiled
83589         for the type checks.
83590         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83591         In place of that, invoke jm_CHECK_ALL_TYPES.
83592         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83593         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83594         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83595         The check for ssize_t was mistakenly run before the test for unistd.h.
83596
83597         The configure-time check for stdbool.h was missing.
83598         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83599         (jm_PREREQ_HASH): New function.
83600
83601 2001-01-17  Jim Meyering  <meyering@lucent.com>
83602
83603         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83604         for autoconf-2.49c.
83605         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83606
83607 2001-01-16  Jim Meyering  <meyering@lucent.com>
83608
83609         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83610         From Bruno Haible.
83611
83612 2001-01-14  Jim Meyering  <meyering@lucent.com>
83613
83614         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83615         foo and bar.  Create conftestdir/ in the script, not in the C code.
83616         Remove directories in the script, not in the C code.
83617         Remove conftestdir{,2} before trying to create the directory.
83618         Make the entire configure script fail if the mkdir fails.
83619
83620 2001-01-14  Jim Meyering  <meyering@lucent.com>
83621
83622         * lib/rename.c: New file.  From Volker Borchert.
83623         Include stdlib.h, string.h or strings.h, and xalloc.h.
83624         Use strip_trailing_slashes rather than open-coding it.
83625
83626 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83627
83628         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83629
83630 2001-01-03  Jim Meyering  <meyering@lucent.com>
83631
83632         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83633         of local `inptr' to avoid warning with some system declarations of
83634         iconv.
83635
83636 2001-01-02  Volker Borchert  <bt@teknon.de>
83637
83638         * m4/rename.m4: New file.
83639         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83640
83641 2001-01-01  Jim Meyering  <meyering@lucent.com>
83642
83643         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83644         even on systems with utmpx.h.  It's necessary for the declaration of
83645         utmp's ut_user member.  Reported by Andreas Jaeger.
83646
83647         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83648         available. They are required for the declarations of getgrgid and
83649         getpwuid resp.
83650         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83651         Reported by Andreas Jaeger.
83652
83653 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83654
83655         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83656         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83657         so `make install' also works in VPATH builds.
83658
83659 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83660
83661         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83662         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83663         can be used in subdirectories.
83664
83665 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83666
83667         * lib/modechange.c: Do not assume that mode_t uses the
83668         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83669         the other-execute bit of FOO even if S_IXOTH != 1.
83670
83671         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83672         WOTH, XOTH, ALLM): New macros.
83673         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83674          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83675         Use them.
83676         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83677         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83678         (mode_compile):
83679         No need to use uintmax_t; unsigned long is long enough.
83680         Don't bother to get suffix since we don't use it.
83681
83682 2000-12-26  Jim Meyering  <meyering@lucent.com>
83683
83684         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83685         better with autoheader.
83686
83687 2000-12-24  Jim Meyering  <meyering@lucent.com>
83688
83689         * lib/hash.c (is_prime): Return explicit boolean values.
83690         (hash_get_first): Return NULL to appease Irix5.6's 89.
83691         Reported by Nelson Beebe.
83692
83693 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83694
83695         * lib/localcharset.c (locale_charset): Add support for Win32.
83696
83697 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83698
83699         * lib/physmem.h, lib/physmem.c: New files.
83700
83701         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83702         (noinst_HEADERS): Add physmem.h.
83703
83704         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83705         't' for compatibility with Solaris 8 sort.
83706
83707 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83708
83709         * lib/config.charset: Add support for BeOS.
83710
83711 2000-12-17  Jim Meyering  <meyering@lucent.com>
83712
83713         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83714         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83715
83716 2000-12-16  Jim Meyering  <meyering@lucent.com>
83717
83718         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83719         N and M) would have treated it like `chown N:N FILE'.
83720
83721         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83722
83723 2000-12-16  Jim Meyering  <meyering@lucent.com>
83724
83725         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83726         SHELLS_FILE to a file name that's useful on djgpp systems.
83727         Include stdlib.h.
83728         (ADDITIONAL_DEFAULT_SHELLS): Define.
83729         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83730         Based mostly on a patch from Prashant TR.
83731
83732 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83733
83734         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83735         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83736         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83737
83738 2000-12-08  Andreas Schwab  <schwab@suse.de>
83739
83740         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83741         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83742
83743 2000-12-07  Jim Meyering  <meyering@lucent.com>
83744
83745         * lib/stripslash.c (ISSLASH): Define.
83746         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83747         `/'.
83748         From Prashant TR.
83749
83750         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83751         (dir_name_r): Declare this function as static.
83752         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83753         manifest itself on a name containing a mix of slashes and
83754         backslashes.
83755         Make this function work with names starting with a DOS-style
83756         drive letter and colon prefix.
83757         (dir_name): Append `.' if necessary.
83758         Based mostly on patches from Prashant TR and Eli Zaretskii.
83759
83760         * lib/dirname.h (dir_name_r): Remove prototype.
83761
83762 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83763
83764         * m4/off_t-format.m4: Remove this file.
83765         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83766
83767 2000-12-06  Jim Meyering  <meyering@lucent.com>
83768
83769         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83770         replacement strtoull, we may well need the replacement strtoul, too.
83771         Check for declarations of strtoul and strtoull.
83772         Check for strtol.  Mainly as a cue to cause automake to include
83773         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83774         Check for limits.h -- strtol.c needs it.
83775
83776 2000-12-05  Jim Meyering  <meyering@lucent.com>
83777
83778         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83779
83780 2000-12-04  Jim Meyering  <meyering@lucent.com>
83781
83782         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83783         Also include memory.h, stdlib.h, unistd.h if appropriate.
83784         Reported by Andreas Jaeger (conflicting declaration of malloc).
83785
83786 2000-12-02  Jim Meyering  <meyering@lucent.com>
83787
83788         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83789         * m4/jm-macros.m4 (jm_MACROS): require it.
83790
83791 2000-12-02  Jim Meyering  <meyering@lucent.com>
83792
83793         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83794
83795 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83796
83797         * lib/memrchr.c: Include <config.h> before any system include file.
83798
83799 2000-11-30  Jim Meyering  <meyering@lucent.com>
83800
83801         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83802
83803 2000-11-30  Jim Meyering  <meyering@lucent.com>
83804
83805         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83806
83807 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83808
83809         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83810
83811 2000-11-26  Jim Meyering  <meyering@lucent.com>
83812
83813         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83814
83815 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83816
83817         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83818         size of (size_t) -1; it's not portable.
83819
83820 2000-11-17  Jim Meyering  <meyering@lucent.com>
83821
83822         * lib/strstr.c: Update from GNU libc.
83823
83824 2000-11-17  Akim Demaille  <akim@epita.fr>
83825
83826         * lib/obstack.h: Formatting changes.
83827         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83828         prevent type checking.
83829         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83830         cast the value to (void *): assigning a `foo *' to a `void *'
83831         variable is valid.
83832         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83833
83834 2000-11-16  Jim Meyering  <meyering@lucent.com>
83835
83836         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83837
83838 2000-11-11  Jim Meyering  <meyering@lucent.com>
83839
83840         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83841
83842 2000-11-10  Jim Meyering  <meyering@lucent.com>
83843
83844         * lib/obstack.h: Update from GNU libc.
83845         * lib/obstack.c: Likewise.
83846
83847 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83848
83849         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83850
83851 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83852
83853         * lib/getusershell.c (setusershell): Use rewind rather than
83854         fseek/fseeko, to avoid configuration hassles with fseeko.
83855         Don't bother opening SHELLS_FILE if shellstream is NULL;
83856         it's not necessary.
83857
83858 2000-11-05  Jim Meyering  <meyering@lucent.com>
83859
83860         * lib/makepath.h (make_dir): Declare.
83861         * lib/makepath.c (make_dir): Remove `static' attribute.
83862         Tweak a comment.
83863
83864 2000-11-04  Jim Meyering  <meyering@lucent.com>
83865
83866         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83867
83868 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83869
83870         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83871         last one in a bucket, advance to the next bucket.
83872
83873 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83874
83875         * lib/fnmatch.c: Do not comment out all the code if we are using
83876         the GNU C library, because in some cases we are replacing buggy
83877         code in the GNU C library itself.
83878
83879 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83880
83881         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83882         (regex_compile): Catch bogus \(\1\).
83883
83884 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83885
83886         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83887         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83888         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83889
83890 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83891
83892         * lib/error.h, getline.h, modechange.h:
83893         Remove "2000" from Copyright line, as the file hasn't been
83894         changed this year other than in the copyright notice.
83895
83896         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83897         was changed this year.
83898
83899 2000-10-29  Jim Meyering  <meyering@lucent.com>
83900
83901         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83902         renaming.
83903         * m4/ls-mntd-fs.m4: Likewise
83904
83905 2000-10-29  Jim Meyering  <meyering@lucent.com>
83906
83907         * lib/xstat.in: Fix grammar in comment.
83908
83909 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83910
83911         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83912         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83913         doesn't define __restrict_arr.
83914
83915 2000-10-28  Jim Meyering  <meyering@lucent.com>
83916
83917         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83918         (jm_PREREQ_MEMCHR): New function.
83919
83920 2000-10-28  Jim Meyering  <meyering@lucent.com>
83921
83922         * lib/memchr.c: Update from libc.
83923         Adjust for portability:
83924         [HAVE_STDLIB_H]: Include stdlib.h.
83925         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83926         Undef __memchr, too.
83927         [!weak_alias]: Define __memchr to memchr.
83928
83929         * lib/regex.c: Update from libc.
83930         * lib/regex.h: Likewise.
83931         * lib/getopt1.c: Likewise.
83932         * lib/memcmp.c: Likewise.
83933
83934         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83935         Avoid using fseek, when possible -- it's broken by design.
83936         Patch by Ulrich Drepper.
83937
83938 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83939
83940         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83941         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83942         Giving in to popular pressure to shut up the compiler with casts.
83943
83944 2000-10-26  Jim Meyering  <meyering@lucent.com>
83945
83946         * lib/strftime.c: Update from libc.
83947
83948 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83949
83950         * regex.c: More `unsigned char' -> `re_char' changes.
83951         Also change several `int' into `re_wchar_t'.
83952         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83953         (PUSH_FAILURE_POINTER): Don't cast any more.
83954         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83955         We want GCC to complain, since this piece of code makes
83956         re_match non-reentrant, which *should* be fixed.
83957         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83958         (EXTEND_BUFFER): Use RETALLOC.
83959         (SET_LIST_BIT): Don't cast.
83960         (re_wchar_t): New type.
83961         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83962         that those two functions will always properly return.
83963         (IMMEDIATE_QUIT_CHECK): Cast to void.
83964         (analyse_first): Use recursion rather than an explicit stack.
83965         (re_compile_fastmap): Can't fail anymore.
83966         (re_search_2): Don't check re_compile_fastmap for failure.
83967         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83968         Now also sets the new value (passed in a new argument).
83969         (re_match_2_internal): Use it.
83970         Also, use a new var `reg' of type size_t when looping through regs
83971         rather than reuse the inappropriate `mcnt'.
83972
83973 2000-10-25  Jim Meyering  <meyering@lucent.com>
83974
83975         * lib/obstack.c: Update from libc.
83976
83977 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83978
83979         * regex.c (regex_compile): Change the way of handling a range from
83980         a char less than 256 to a char not less than 256.
83981
83982 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83983
83984         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83985         NT-Emacs only.
83986         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83987         so that re_search functions only quit when callers expect them to.
83988
83989 2000-10-23  Jim Meyering  <meyering@lucent.com>
83990
83991         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83992         wrong.  That set_locale call must not have any side effects.
83993         From Paul Eggert.
83994
83995 2000-10-22  Jim Meyering  <meyering@lucent.com>
83996
83997         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83998         [CYCLIC]: Remove now-unused definition.
83999
84000         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84001         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84002         Suggestion from Ulrich Drepper.
84003
84004 2000-10-21  Jim Meyering  <meyering@lucent.com>
84005
84006         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84007         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84008         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84009
84010 2000-10-21  Jim Meyering  <meyering@lucent.com>
84011
84012         * lib/dirname.c (memrchr): Declare if necessary.
84013         (dir_name): Remove the restriction that there be no
84014         trailing slashes.  Now, this code skips past them, effectively
84015         ignoring them.
84016         [TEST_DIRNAME] (main): New unit tests.
84017
84018         * lib/memrchr.c: New file from GNU libc.
84019         Undef __memrchr, too.
84020         [!weak_alias]: Define __memrchr to memrchr.
84021         Guard weak_alias use with `#ifdef weak_alias'.
84022
84023 2000-10-21  Jim Meyering  <meyering@lucent.com>
84024
84025         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84026         (dir_name): Use dir_name_r.
84027         * lib/dirname.h (dir_name_r): Declare it.
84028
84029 2000-10-17  Jim Meyering  <meyering@lucent.com>
84030
84031         * lib/quote.h (PARAMS): Define and use.
84032         Reported by Akim Demaille.
84033
84034         * lib/getopt.c: Update from libc.
84035
84036 2000-10-16  Jim Meyering  <meyering@lucent.com>
84037
84038         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84039         setlocale.
84040         From Jan Fedak.
84041
84042 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84043
84044         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84045
84046 2000-09-25  Jim Meyering  <meyering@lucent.com>
84047
84048         * lib/md5.h (rol): Define (from GnuPG).
84049
84050         * lib/sha.c: Give credit (GnuPG) where due.
84051         (M): Use rol rather than open-coding it.
84052         Add a FIXME comment.
84053
84054 2000-09-21  Jim Meyering  <meyering@lucent.com>
84055
84056         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84057         Reported by Michael Stone.
84058
84059 2000-09-20  Jim Meyering  <meyering@lucent.com>
84060
84061         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84062         (noinst_HEADERS): Add sha.h.
84063         Based on code from Scott G. Miller and from GnuPG.
84064
84065 2000-09-18  Jim Meyering  <meyering@lucent.com>
84066
84067         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84068         LIBS. Otherwise, everyone ends up linking with -lelf for some
84069         configurations.
84070         Reported by Mike Stone.
84071
84072 2000-09-15  Jim Meyering  <meyering@lucent.com>
84073
84074         * lib/regex.c: Update from libc.
84075
84076 2000-09-10  Jim Meyering  <meyering@lucent.com>
84077
84078         * lib/getopt.c (_getopt_internal): Update from glibc.
84079
84080 2000-09-09  Jim Meyering  <meyering@lucent.com>
84081
84082         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84083         think it should be used as a general replacement for isascii.
84084         * lib/fnmatch.c: Likewise.
84085         * lib/mbswidth.c: Likewise
84086         * lib/regex.c: Likewise.
84087
84088         Don't use atoi.
84089         * lib/userspec.c: Include sys/param.h and limits.h.
84090         Include xstrtol.h.
84091         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84092         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84093         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84094         UID, GID.  Check range.
84095
84096 2000-09-06  Jim Meyering  <meyering@lucent.com>
84097
84098         * lib/getopt.c (_getopt_internal): Update from glibc.
84099
84100 2000-08-30  Jim Meyering  <meyering@lucent.com>
84101
84102         * lib/strftime.c: Merge in changes from GNU libc.
84103
84104 2000-08-26  Jim Meyering  <meyering@lucent.com>
84105
84106         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84107         * m4/fpending.m4: New file.
84108
84109 2000-08-26  Jim Meyering  <meyering@lucent.com>
84110
84111         * lib/closeout.c: Include "__fpending.h".
84112         (close_stdout_status): Return right away if there's nothing to flush.
84113
84114         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84115         * lib/__fpending.c: New file.
84116         * lib/__fpending.h: New file.
84117
84118 2000-08-20  Jim Meyering  <meyering@lucent.com>
84119
84120         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84121         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84122         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84123
84124 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84125
84126         Improve fileutils installation on systems where running
84127         programs (like install) can't be unlinked.
84128         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84129         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84130
84131 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84132
84133         Standardize on "memory exhausted" instead of "Memory exhausted"
84134         or "virtual memory exhausted".
84135         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84136         "virtual memory exhausted".
84137         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84138         our own message.
84139         * lib/userspec.c (parse_user_spec): Likewise.
84140         * lib/bumpalloc.h: comment fix
84141         * lib/same.c, userspec.c: Include xalloc.h.
84142
84143         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84144         not char *const and pointing to a constant array.
84145         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84146         (xrealloc): Comment fix.
84147
84148         * lib/userspec.c (parse_user_spec):
84149         Don't translate a message until just before returning,
84150         to avoid unnecessary translation.
84151
84152 2000-08-07  Jim Meyering  <meyering@lucent.com>
84153
84154         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84155         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84156         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84157         getgroups.c, gethostname.c, getopt.h, group-member.c,
84158         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84159         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84160         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84161         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84162         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84163         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84164         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84165         yesno.c: Back out Copyright date changes for each file with no change
84166         this year.  This eases coordination with other programs using the same
84167         source code modules.  From Paul Eggert.
84168
84169 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84170
84171         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84172         not char, for compatibility with glibc 2.1.3 strftime.c.
84173
84174 2000-08-03  Greg McGary  <greg@mcgary.org>
84175
84176         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84177         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84178         (EXTEND_BUFFER): Use them.
84179
84180 2000-08-01  Jim Meyering  <meyering@lucent.com>
84181
84182         * lib/dirname.c (ISSLASH): Define.
84183         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84184         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84185         both `\' and `/' may be use as path separators.
84186         Based on a patch from Prashant TR.
84187
84188 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84189
84190         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84191         slot vector a constant, since it might get modified.
84192
84193 2000-07-31  Jim Meyering  <meyering@lucent.com>
84194
84195         * lib/xmalloc.c: Use `virtual memory exhausted', not
84196         `Memory exhausted'.
84197         * lib/obstack.c (print_and_abort): Likewise.
84198
84199 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84200
84201         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84202         buffer, so that the caller can always quote one small
84203         component of a "memory exhausted" message in slot 0.
84204         From a suggestion by Jim Meyering.
84205
84206 2000-07-30  Jim Meyering  <meyering@lucent.com>
84207
84208         * lib/makepath.c (make_path): Quote the other instance, too.
84209
84210         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84211         (STATIC_BUF_SIZE): Define.
84212         (quotearg_n_options): Use only statically allocated storage when
84213         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84214         than STATIC_BUF_SIZE.
84215
84216 2000-07-29  Jim Meyering  <meyering@lucent.com>
84217
84218         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84219         * lib/dirname.c (dir_name): Likewise.
84220
84221         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84222         `/'.
84223
84224         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84225         (dir_name): Assert that there are no trailing slashes.
84226
84227 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84228
84229         * lib/mbswidth.h (mbswidth): Add a flags argument.
84230         (mbswidth): New declaration.
84231         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84232         * lib/mbswidth.c (mbswidth): Add a flags argument.
84233         (mbsnwidth): New function.
84234
84235 2000-07-24  Jim Meyering  <meyering@lucent.com>
84236
84237         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84238
84239 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84240
84241         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84242
84243 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84244
84245         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84246         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84247         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84248         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84249         invoke multibyte primitives.
84250
84251 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84252
84253         * lib/quotearg.c:
84254         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84255         so that mbstate_t is always defined.
84256
84257         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84258         be 1 in at least one GCC installation, and this configuration
84259         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84260         performance on hosts that have mbrtowc but have only unibyte
84261         locales, but I assume these hosts are rare.
84262
84263 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84264
84265         * lib/mbswidth.c (_XOPEN_SOURCE):
84266         Don't define; this causes problems on Solaris 7.
84267         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84268
84269 2000-07-23  Jim Meyering  <meyering@lucent.com>
84270
84271         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84272         too: getgrgid, getpwuid, getuid.
84273
84274 2000-07-23  Jim Meyering  <meyering@lucent.com>
84275
84276         * lib/basename.c (base_name): Add an assertion.
84277
84278 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84279
84280         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84281         shadow its mbsinit function.
84282
84283 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84284
84285         * lib/mbswidth.h: New file.
84286         * lib/mbswidth.c: New file.
84287         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84288         (noinst_HEADERS): Add mbswidth.h.
84289
84290 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84291
84292         * lib/config.charset: Add support for FreeBSD. Improve support for
84293         HP-UX and IRIX 6.
84294
84295 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84296
84297         * m4/mbswidth.m4: New file.
84298         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84299
84300 2000-07-15  Jim Meyering  <meyering@lucent.com>
84301
84302         * lib/makepath.c: Include quote.h.
84303         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84304         corresponding argument in a `quote (...)' call.
84305         Give better diagnostics.
84306
84307         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84308         (noinst_HEADERS): Add quote.h.
84309
84310         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84311         from tar's src/misc.c.
84312         * lib/quote.h: New file.  Prototypes for same.
84313
84314 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84315
84316         From a suggestion by Bruno Haible.
84317         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84318         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84319         to decide whether to define the BeOS workaround macro;
84320         this adjusts to the change to AC_MBSTATE_T.
84321
84322 2000-07-14  Jim Meyering  <meyering@lucent.com>
84323
84324         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84325         jm_AC_TYPE_UINTMAX_T.
84326
84327 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84328
84329         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84330
84331         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84332         quotearg_buffer_restyled): Add support for
84333         clocale_quoting_style.  Undo previous change to
84334         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84335         and "{RIGHT QUOTATION MARK}" msgids.
84336
84337 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84338
84339         From a suggestion by Bruno Haible.
84340         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84341         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84342         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84343         and mbstate_t, to a single-part test that simply defines mbstate_t.
84344         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84345         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84346
84347 2000-07-10  Jim Meyering  <meyering@lucent.com>
84348
84349         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84350
84351         * m4/gnu-source.m4: Output to confdefs.h directly.
84352         Suggestion from Akim Demaille.
84353
84354 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84355
84356         The old behavior of quoting `like this' doesn't look good with
84357         newer, ISO-style fonts.  See:
84358         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84359
84360         Instead, quote "like this" by default.  Let the translator
84361         tailor the locale-specific quoting behavior by providing
84362         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84363
84364         * lib/quotearg.c (N_): New macro.
84365         (gettext_default): New function.
84366         (quotearg_buffer_restyled): Use
84367         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84368         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84369
84370 2000-07-09  Jim Meyering  <meyering@lucent.com>
84371
84372         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84373         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84374
84375         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84376         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84377
84378 2000-07-09  Jim Meyering  <meyering@lucent.com>
84379
84380         * lib/Most files: Update copyright dates to include 2000.
84381
84382 2000-07-08  Jim Meyering  <meyering@lucent.com>
84383
84384         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84385         if not defined.
84386         (xgethostname): Remove now-unnecessary #ifdef.
84387         Move declaration of `err' into loop where it's used.
84388
84389 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84390         and Bruno Haible  <haible@clisp.cons.org>
84391
84392         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84393         only if the test for an object-type mbstate_t fails.  This
84394         prevents us from mistakenly reporting that mbstate_t is a
84395         system object type after we "#define mbstate_t int" to work
84396         around its lack.
84397
84398 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84399         and Bruno Haible  <haible@clisp.cons.org>
84400
84401         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84402
84403 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84404
84405         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84406         to strerror_r.
84407         Include <ctype.h> for use of isalpha.
84408
84409 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84410
84411         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84412         by allocating a larger buffer. Test the gethostname return value for
84413         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84414         returns an error and ENAMETOOLONG isn't defined.
84415
84416 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84417
84418         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84419         dimension.
84420
84421 2000-07-04  Jim Meyering  <meyering@lucent.com>
84422
84423         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84424         of the deprecated AC_CHECKING.
84425
84426 2000-07-04  Jim Meyering  <meyering@lucent.com>
84427
84428         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84429         Reported by Bruno Haible.
84430
84431 2000-07-04  Jim Meyering  <meyering@lucent.com>
84432
84433         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84434         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84435         lacks mbrtowc.
84436
84437 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84438
84439         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84440         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84441
84442 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84443         and Bruno Haible  <haible@clisp.cons.org>
84444
84445         * lib/quotearg.c (mbrtowc):
84446         Assign to *pwc, and return 1 only if result is nonzero.
84447         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84448
84449 2000-07-03  Jim Meyering  <meyering@lucent.com>
84450
84451         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84452
84453 2000-07-03  Jim Meyering  <meyering@lucent.com>
84454
84455         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84456         This is necessary to get a definition of e.g., UTMP_FILE on
84457         HP-UX 10.20.
84458         From Bob Proulx.
84459
84460 2000-07-02  Jim Meyering  <meyering@lucent.com>
84461
84462         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84463
84464         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84465         AC_LIBOBJ(function_name).
84466         * m4/chown.m4: Likewise.
84467         * m4/fnmatch.m4: Likewise.
84468         * m4/ftruncate.m4: Likewise.
84469         * m4/getgroups.m4: Likewise.
84470         * m4/getline.m4: Likewise.
84471         * m4/group-member.m4: Likewise.
84472         * m4/jm-macros.m4: Likewise.
84473         * m4/lstat.m4: Likewise.
84474         * m4/malloc.m4: Likewise.
84475         * m4/memcmp.m4: Likewise.
84476         * m4/nanosleep.m4: Likewise.
84477         * m4/putenv.m4: Likewise.
84478         * m4/realloc.m4: Likewise.
84479         * m4/regex.m4: Likewise.
84480         * m4/stat.m4: Likewise.
84481         * m4/strftime.m4: Likewise.
84482
84483 2000-07-02  Jim Meyering  <meyering@lucent.com>
84484
84485         * lib/quotearg.c (mbstate_t): Don't define here.
84486
84487 2000-07-02  Jim Meyering  <meyering@lucent.com>
84488
84489         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84490
84491 2000-07-01  Jim Meyering  <meyering@lucent.com>
84492
84493         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84494
84495 2000-07-01  Jim Meyering  <meyering@lucent.com>
84496
84497         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84498         problem.
84499
84500 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84501
84502         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84503         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84504
84505 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84506
84507         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84508         per change in ../m4/ls-mntd-fs.m4.
84509         (read_filesystem_list): Ignore symbolic links.
84510
84511 2000-06-29  Jim Meyering  <meyering@lucent.com>
84512
84513         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84514         for declaration of strcmp.
84515
84516         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84517
84518         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84519         Avoid warning by casting result to `char *' to remove `const'.
84520
84521 2000-06-28  Jim Meyering  <meyering@lucent.com>
84522
84523         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84524         included by quotearg.c, for which we perform this test.  From
84525         Bruno Haible.
84526
84527 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84528
84529         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84530         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84531         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84532
84533 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84534
84535         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84536
84537 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84538
84539         savedir now sets errno on failure and invokes xmalloc to get memory.
84540         Fix a couple of other minor bugs while we're at it.
84541
84542         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84543         (NAMLEN): Remove macro.
84544         (malloc, realloc): Remove decls.
84545         (stpcpy): Likewise.
84546         ("xalloc.h"): Include.
84547         (NAME_SIZE_DEFAULT): New macro.
84548         (savedir): Use xmalloc / xrealloc to allocate memory.
84549         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84550         Skip "" directory entries.
84551         Use strlen to calculate directory entry length, since the old method
84552         is rarely used these days and isn't worth supporting.
84553         Don't use a pointer after freeing it.
84554         Check for integer overflow when calculating allocation size.
84555         Use memcpy to copy entries, instead of stpcpy.
84556         Set errno properly when returning NULL.
84557         Check for readdir error.
84558
84559 2000-06-26  Jim Meyering  <meyering@lucent.com>
84560
84561         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84562
84563 2000-06-25  Jim Meyering  <meyering@lucent.com>
84564
84565         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84566         Linux header bug when _XOPEN_SOURCE is defined to 500.
84567
84568 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84569
84570         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84571         deficiency.
84572
84573 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84574
84575         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84576         Include xalloc.h.
84577         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84578
84579 2000-06-24  Jim Meyering  <meyering@lucent.com>
84580
84581         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84582         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84583         for which strerror does return char*, but which lacks a conveniently
84584         accessible declaration of the function.  If the compile-test says
84585         strerror_r doesn't work, then resort to a `run'-test that works on
84586         BeOS and segfaults on DEC Unix.
84587
84588 2000-06-24  Jim Meyering  <meyering@lucent.com>
84589
84590         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84591
84592 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84593
84594         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84595         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84596
84597 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84598
84599         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84600         (mbrtowc, mbstate_t): Define substitutes if
84601         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84602         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84603         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84604
84605 2000-06-23  Jim Meyering  <meyering@lucent.com>
84606
84607         * m4/afs.m4: Add missing AC_MSG_RESULT.
84608         Reported by Bruno Haible.
84609
84610         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84611         Suggestion from Bruno Haible.
84612
84613 2000-06-23  Jim Meyering  <meyering@lucent.com>
84614
84615         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84616
84617 2000-06-21  Jim Meyering  <meyering@lucent.com>
84618
84619         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84620
84621 2000-06-21  Jim Meyering  <meyering@lucent.com>
84622
84623         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84624         (noinst_HEADERS): Add getstr.h.
84625
84626         * lib/getline.c (getstr): Move into a separate file.
84627         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84628         the following changes: new parameter, delim2; both delim[12]
84629         parameters have type `int', not `char'.  The latter would lose
84630         with 8-bit delimiters.
84631         * lib/getstr.h: New file.
84632
84633 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84634
84635         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84636         than 1024, return a memory chunk of least possible size, instead
84637         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84638         Use free/xmalloc instead of xrealloc to avoid copying for very long
84639         paths.
84640
84641 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84642
84643         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84644         the empty string.
84645
84646 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84647
84648         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84649         address, not strdup.  Include <stdlib.h> and don't declare free().
84650
84651 2000-06-19  Jim Meyering  <meyering@lucent.com>
84652
84653         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84654
84655 2000-06-18  Jim Meyering  <meyering@lucent.com>
84656
84657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84658
84659         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84660         `checking whether...' message to be consistent with that of the
84661         lstat test.
84662
84663 2000-06-18  Jim Meyering  <meyering@lucent.com>
84664
84665         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84666         Besides, these days every porting target provides a mkdir function.
84667
84668         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84669         needed. (this snippet comes from src/system.h).
84670
84671 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84672
84673         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84674
84675 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84676
84677         * lib/human.c (adjust_value): New function.
84678         (human_readable_inexact): Apply rounding style even when
84679         printing approximate values.
84680
84681 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84682
84683         * lib/human.c (human_readable_inexact): Allow an input block
84684         size that is not a multiple of the output block size, and vice versa.
84685         Reported by Piergiorgio Sartor.
84686
84687 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84688
84689         * lib/getdate.y (get_date): Apply relative times after time
84690         zone indicator, not before.  Reported by Todd A. Jacobs.
84691
84692 2000-06-13  Jim Meyering  <meyering@lucent.com>
84693
84694         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84695
84696         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84697
84698 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84699
84700         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84701
84702 2000-06-12  Jim Meyering  <meyering@lucent.com>
84703
84704         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84705         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84706         optional argument.
84707         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84708         the optional argument, `lib'.
84709
84710 2000-06-08  Jim Meyering  <meyering@lucent.com>
84711
84712         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84713
84714 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84715
84716         Rewrite largefile configuration so that we don't need to run
84717         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84718         AC_CANONICAL_HOST in configure.in -- jmm]
84719
84720         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84721         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84722         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84723         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84724         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84725         All uses changed.
84726         Instead of inspecting the output of getconf, try to compile the
84727         test program without and with the macro definition.
84728         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84729         for getconf.  Instead, check for the needed flags by compiling
84730         test programs.
84731
84732 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84733
84734         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84735
84736 2000-06-04  Jim Meyering  <meyering@lucent.com>
84737
84738         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84739         SunOS 4.1.4 for which gid_t is an unsigned type.
84740
84741 2000-06-03  Jim Meyering  <meyering@lucent.com>
84742
84743         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84744         now that autoconf requires that.
84745
84746         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84747         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84748         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84749
84750 2000-06-03  Jim Meyering  <meyering@lucent.com>
84751
84752         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84753
84754 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84755
84756         * m4/glibc21.m4: New file.
84757         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84758
84759 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84760
84761         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84762         newer, don't install charset.alias.
84763         * lib/config.charset: Change the Linux/glibc rules so they become empty
84764         on glibc-2.1 or newer.
84765
84766 2000-06-02  Jim Meyering  <meyering@lucent.com>
84767
84768         * lib/mountlist.c: Back out last change.  Instead, do this...
84769         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84770         me_dummy member using the same `ignore'-testing code.
84771         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84772         fs_type strings.
84773         From Mark D. Roth.
84774
84775 2000-05-29  Jim Meyering  <meyering@lucent.com>
84776
84777         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84778         mounts with the `ignore' attribute.  Based on a patch from
84779         Mark D. Roth.
84780
84781 2000-05-28  Jim Meyering  <meyering@lucent.com>
84782
84783         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84784         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84785         * m4/stat.m4: Likewise.
84786         * m4/lstat.m4: Likewise.
84787         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84788
84789         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84790         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84791
84792 2000-05-26  Jim Meyering  <meyering@lucent.com>
84793
84794         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84795
84796 2000-05-24  Jim Meyering  <meyering@lucent.com>
84797
84798         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84799         autoconf requires that.
84800         * m4/lib-check.m4: Likewise.
84801         * m4/jm-macros.m4: Likewise.
84802         * m4/strftime.m4: Likewise.
84803
84804         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84805         AC_CHECK_DECLS, now that autoconf requires that.
84806
84807 2000-05-22  Jim Meyering  <meyering@lucent.com>
84808
84809         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84810         * m4/lstat.m4: Likewise.
84811
84812 2000-05-22  Jim Meyering  <meyering@lucent.com>
84813
84814         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84815
84816 2000-05-20  Jim Meyering  <meyering@lucent.com>
84817
84818         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84819         (jm_PREREQ): Use it.
84820
84821 2000-05-18  Jim Meyering  <meyering@lucent.com>
84822
84823         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84824         back, too, since it may have been modified by allocate_entry.
84825         (hash_delete): Rewrite to use neither the assignment operator
84826         nor the comma operator in an if-expression.
84827
84828 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84829
84830         * lib/closeout.c:
84831         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84832         Remove; no longer needed.
84833         "quotearg.h": Add include.
84834         (file_name): Do not bother to explicitly initialize to NULL; it's less
84835         efficient on some hosts.
84836         (close_stdout_status): Remove test as to whether stdout was already
84837         closed; it breaks for the case "echo x | sort >&-".
84838         Quote file name colons.
84839         Do not assume that _("write error") lacks format strings.
84840
84841 2000-05-15  Jim Meyering  <meyering@lucent.com>
84842
84843         * lib/version-etc.c (version_etc_copyright): Update the copyright
84844         string used in all --version output.
84845
84846 2000-05-14  Jim Meyering  <meyering@lucent.com>
84847
84848         * lib/closeout.c (close_stdout_set_file_name): New function.
84849         (close_stdout_status): Use new file-scoped global.
84850         Return right away if fstat says the stdout file descriptor is invalid.
84851         * lib/closeout.h (close_stdout_set_file_name): Declare.
84852
84853 2000-05-10  Jim Meyering  <meyering@lucent.com>
84854
84855         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84856         (close_stdout_set_status): New function.
84857         * lib/closeout.h (close_stdout_set_status): Declare.
84858
84859 2000-05-09  Jim Meyering  <meyering@lucent.com>
84860
84861         * m4/gettext.m4: Rename this...
84862         * m4/libintl.m4: ...to this.
84863
84864 2000-05-08  Jim Meyering  <meyering@lucent.com>
84865
84866         * lib/long-options.c: Don't include closeout.h.
84867         (parse_long_options): Don't call close_stdout for --version.
84868
84869 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84870
84871         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84872         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84873         2.1.3 bug.  This avoids a clash when files like regex.c define
84874         _GNU_SOURCE.
84875
84876 2000-05-06  Jim Meyering  <meyering@lucent.com>
84877
84878         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84879         (AC_REPLACE_FUNCS): Add strnlen.
84880
84881         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84882         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84883
84884         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84885         AC_SEARCH_LIBS call for nanosleep.
84886         (LIB_NANOSLEEP): Set and AC_SUBST.
84887
84888 2000-05-06  Jim Meyering  <meyering@lucent.com>
84889
84890         * lib/strnlen.c: Undefine __strnlen and strnlen.
84891         [!weak_alias]: Define __strnlen to strnlen.
84892
84893         * lib/atexit.c: New file, from libiberty.
84894
84895 2000-05-06  Jim Meyering  <meyering@lucent.com>
84896
84897         * lib/closeout.c (close_stdout_status): Also check for errors on the
84898         stderr stream.
84899
84900 2000-05-05  Jim Meyering  <meyering@lucent.com>
84901
84902         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84903         AC_SEARCH_LIBS call for clock_gettime.
84904         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84905
84906         * m4/search-libs.m4: Update from autoconf.
84907
84908         su doesn't work on Solaris 2.6.
84909         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84910         <shadow.h>.  Reported by Dragos Harabor.
84911
84912 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84913
84914         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84915         memcpy instead of xmalloc, xrealloc, path_concat.
84916         (locale_charset): Treat empty environment variables as absent.
84917         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84918
84919 2000-05-04  Jim Meyering  <meyering@lucent.com>
84920
84921         * lib/getopt.c: Update from glibc.
84922         * lib/obstack.c: Likewise.
84923         * lib/obstack.h: Likewise.
84924         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84925         file
84926
84927         * lib/regex.h: Likewise.
84928         * lib/strndup.c: Likewise.
84929         * lib/strnlen.c: New file, from glibc.
84930
84931 2000-05-03  Jim Meyering  <meyering@lucent.com>
84932
84933         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84934
84935 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84936
84937         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84938         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84939         compile-time test, rather than inspecting host and OS, to
84940         decide whether to define _LARGEFILE_SOURCE.
84941
84942 2000-05-01  Jim Meyering  <meyering@lucent.com>
84943
84944         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84945
84946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84947         Based on a patch from Bruno Haible.
84948
84949 2000-05-01  Jim Meyering  <meyering@lucent.com>
84950
84951         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84952
84953 2000-04-29  Jim Meyering  <meyering@lucent.com>
84954
84955         * lib/path-concat.c: Declare strdup only if it's not defined.
84956         * lib/canon-host.c: Likewise.
84957
84958 2000-04-28  Jim Meyering  <meyering@lucent.com>
84959
84960         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84961         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84962         is included first, then limits.h is included by locale.h by libintl.h.
84963         From John David Anglin.
84964
84965 2000-04-25  Jim Meyering  <meyering@lucent.com>
84966
84967         * lib/makepath.c (S_IRWXUGO): Define.
84968         (make_path): Always perform explicit chmod if MODE specifies any
84969         of the `special' permission bits.  Prompted by a bug report against
84970         install from Mate Wierdl and Joost van Baal.
84971
84972 2000-04-18  Jim Meyering  <meyering@lucent.com>
84973
84974         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84975         (jm_PREREQ): Use it.
84976
84977 2000-04-18  Jim Meyering  <meyering@lucent.com>
84978
84979         * lib/README: New file.
84980
84981         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84982         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84983
84984 2000-04-17  Jim Meyering  <meyering@lucent.com>
84985
84986         Get it right :-)
84987         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84988         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84989         Suggestion from Akim Demaille.
84990
84991 2000-04-17  Jim Meyering  <meyering@lucent.com>
84992
84993         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84994         the definition of it to rpl_strftime also defined-away the system's
84995         declaration.
84996
84997 2000-04-15  Jim Meyering  <meyering@lucent.com>
84998
84999         Use `C' to denote so-called `contiguous' files, the same way
85000         that tar does.
85001         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85002         (ftypelet): Use S_ISCTG.
85003         From Michael Deutschmann.
85004
85005 2000-04-14  Jim Meyering  <meyering@lucent.com>
85006
85007         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85008         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85009         clobbered.
85010
85011 2000-04-14  Jim Meyering  <meyering@lucent.com>
85012
85013         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85014
85015 2000-04-13  Jim Meyering  <meyering@lucent.com>
85016
85017         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85018         AH_VERBATIM to insert required #ifndef into config.h.in.
85019         Suggestion from Akim Demaille.
85020
85021 2000-04-12  Jim Meyering  <meyering@lucent.com>
85022
85023         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85024         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85025         Christian Krackowizer.
85026
85027         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85028         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85029         (AC_SYS_LARGEFILE): Require.
85030         (AM_C_PROTOTYPES): Require.
85031
85032 2000-04-08  Jim Meyering  <meyering@lucent.com>
85033
85034         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85035         names don't conflict.  Reported by Eli Zaretskii.
85036
85037 2000-04-07  Jim Meyering  <meyering@lucent.com>
85038
85039         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85040         sys/types.h, to work around system header problems on AIX 3.2.5.
85041         From Bruno Haible.
85042
85043 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85044
85045         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85046         bug.  Deal with the different error behavior of Irix iconv.
85047
85048 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85049
85050         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85051         IRIX if the installer said otherwise.
85052
85053 2000-04-05  Jim Meyering  <meyering@lucent.com>
85054
85055         Portability tweaks required for ultrix4.3.
85056         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85057         (jm_CHECK_DECLS): Add getutent to the list of functions.
85058         (_jm_DECL_HEADERS): Add utmpx.h.
85059         From John David Anglin.
85060
85061         * m4/strftime.m4: Back out the 2000-04-02 change.
85062         Instead of that change, simply undefine putenv in the test program.
85063
85064 2000-04-05  Jim Meyering  <meyering@lucent.com>
85065
85066         Portability tweaks required for ultrix4.3.
85067         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85068         getutent.
85069         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85070         * lib/canon-host.c: Declare strdup.
85071         * lib/path-concat.c: Likewise.
85072         From John David Anglin.
85073
85074 2000-04-04  Jim Meyering  <meyering@lucent.com>
85075
85076         Be more DOS 8.3-friendly.
85077         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85078         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85079         * lib/Makefile.am: Reflect renaming.
85080         Reported by Eli Zaretskii.
85081
85082         Use a temporary file name that won't clash with `charset.alias'
85083         in the DOS 8.3 name space.
85084         * lib/Makefile.am (charset_tmp): Define.
85085         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85086         (uninstall-local): Likewise.
85087         Reported by Eli Zaretskii.
85088
85089 2000-04-03  Jim Meyering  <meyering@lucent.com>
85090
85091         * m4/gettext.m4: Fix typo in comment.
85092
85093         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85094         textutils/configure.in).  Suggestion from Paul Eggert.
85095         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85096
85097 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85098
85099         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85100         variable in the shell rather than using putenv, which isn't
85101         portable.  This avoids the configure-time inter-test dependency
85102         on the potentially-renamed putenv function.
85103
85104 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85105
85106         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85107         before checking struct stat.st_blksize, so that
85108         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85109
85110 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85111
85112         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85113         since strftime.c uses HAVE_STRFTIME to decide whether to use
85114         the underlying strftime.
85115
85116 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85117
85118         * lib/time/strftime.c (my_strftime): Make sure we call the system
85119         strftime, not ourselves, when invoking the underlying strftime.
85120
85121 2000-03-24  Jim Meyering  <meyering@lucent.com>
85122
85123         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85124         (charset_alias): Define.
85125         (install-exec-local): Factor out common code.
85126         (uninstall-local): Split lines longer than 80.
85127         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85128         (SUFFIXES): Define.
85129         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85130         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85131
85132 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85133
85134         * lib/config.charset: Output a line containing "Packages using this
85135         file".
85136         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85137         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85138         ref-del.sed): New rules.
85139
85140 2000-03-17  Jim Meyering  <meyering@lucent.com>
85141
85142         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85143         Otherwise, include <strings.h>
85144
85145 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85146
85147         * lib/unicodeio.c (utf8_wctomb): New function.
85148         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85149         format instead of in UCS-4 with platform dependent endianness.
85150
85151 2000-03-10  Jim Meyering  <meyering@lucent.com>
85152
85153         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85154         From Marco Franzen.
85155
85156 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85157
85158         * lib/savedir.c (savedir): Work even if directory size is
85159         negative; this can happen with some screwy NFS configurations.
85160
85161 2000-03-06  Jim Meyering  <meyering@lucent.com>
85162
85163         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85164         if it's NULL (because we ran out of memory).  From Bruno Haible.
85165
85166 2000-03-05  Jim Meyering  <meyering@lucent.com>
85167
85168         * lib/localcharset.c ("path-concat.h"): Include.
85169         (get_charset_aliases): Use path_concat instead of ANSI string
85170         concatenation.
85171
85172         * lib/unicodeio.h (PARAMS): Define.
85173         Use it to guard prototype.
85174
85175 2000-03-04  Jim Meyering  <meyering@lucent.com>
85176
85177         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85178         for lib/localcharset.c.
85179
85180 2000-03-04  Jim Meyering  <meyering@lucent.com>
85181
85182         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85183         installing into it.
85184         (uninstall-local): Uncomment this rule so `make distcheck' works
85185         once again.
85186
85187         * lib/unicodeio.c (<errno.h>): Include it.
85188         (errno): Declare if not defined.
85189
85190         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85191
85192         * lib/config.charset: New version, incorporating remarks from a linux
85193         i18n mailing list.  From Bruno Haible.
85194
85195 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85196
85197         * m4/codeset.m4: New file.
85198         * m4/iconv.m4: New file.
85199         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85200
85201 2000-03-03  Jim Meyering  <meyering@lucent.com>
85202
85203         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85204
85205 2000-03-02  Jim Meyering  <meyering@lucent.com>
85206
85207         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85208         the messages come out on separate lines.
85209
85210         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85211         rather than jm_CHECK_DECLARATIONS.
85212         * m4/decl.m4: Remove now-unused file.
85213
85214         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85215         geteuid.
85216
85217 2000-03-02  Jim Meyering  <meyering@lucent.com>
85218
85219         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85220
85221 2000-03-01  Jim Meyering  <meyering@lucent.com>
85222
85223         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85224         * lib/unicodeio.c: Likewise.
85225
85226 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85227
85228         * lib/config.charset: New file.
85229         * lib/localcharset.c: New file.
85230         * lib/unicodeio.h, lib/unicodeio.c: New files.
85231         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85232         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85233         (noinst_HEADERS): Add unicodeio.h.
85234         (all-local, install-exec-local, charset.alias): New targets.
85235
85236 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85237
85238         * lib/quotearg.c (ALERT_CHAR): New macro.
85239         (quotearg_buffer_restyled): Use it.
85240
85241 2000-02-27  Jim Meyering  <meyering@lucent.com>
85242
85243         * m4/check-decl.m4: Add getenv to the list.
85244
85245 2000-02-27  Jim Meyering  <meyering@lucent.com>
85246
85247         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85248         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85249
85250         * lib/backupfile.c: Guard inclusion of stdlib.h with
85251         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85252         Declare malloc if needed.
85253
85254         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85255         `#ifndef HAVE_DECL..'
85256         now that autoconf always defines the HAVE_DECL_ symbols.
85257         * lib/human.c: Likewise.
85258         * lib/same.c: Likewise.
85259         * lib/strtoumax.c: Likewise.
85260
85261         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85262         declaration check was not run.
85263         * lib/hash.c: Likewise.
85264         * lib/human.c: Likewise.
85265         * lib/same.c: Likewise.
85266         * lib/strtoumax.c: Likewise.
85267
85268         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85269         `.', then first look up the entire `.'-containing string as a login
85270         name.
85271
85272 2000-02-23  Jim Meyering  <meyering@lucent.com>
85273
85274         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85275         in place of my hack.
85276
85277 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85278
85279         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85280         (textint): New typedef.
85281         (parser_control): Member year changed from int to textint.
85282         All uses changed.
85283         (YYSTYPE): Removed; replaced by %union with int and textint members.
85284         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85285         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85286         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85287         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85288         (date, number, to_year): Use width of number in digits, not its value,
85289         to determine whether it's a 2-digit year, or a 2-digit time.
85290         (yylex): Store number of digits of numeric tokens.
85291         Reported by John Kendall.
85292
85293         (parser_control): Changed from struct parser_control to typedef (for
85294         consistency).  All uses changed.
85295
85296         (tID): Removed; not used.
85297         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85298
85299 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85300
85301         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85302         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85303
85304 2000-02-12  Jim Meyering  <meyering@lucent.com>
85305
85306         * lib/userspec.c (ISDIGIT): Define it.
85307         (isdigit): Remove definition.
85308         (is_number): Use ISDIGIT, not isdigit.
85309         <libintl.h>: Include.
85310         (_ and N_): Define.
85311         (parse_user_spec): Mark translatable strings.
85312
85313 2000-02-10  Jim Meyering  <meyering@lucent.com>
85314
85315         With these changes, nanosleep.[ch] are finally enough like the other
85316         lib/* replacement files to compile on a few more losing systems.
85317
85318         * lib/nanosleep.h: Don't include config.h.
85319         Remove prototype from declaration of nanosleep.
85320         (PARAMS): Remove now-unneeded definition.
85321         * lib/nanosleep.c: #undef nanosleep.
85322         (rpl_nanosleep): Rename from nanosleep.
85323
85324 2000-02-10  Jim Meyering  <meyering@lucent.com>
85325
85326         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85327         gnu_nanosleep to rpl_nanosleep.
85328
85329 2000-02-09  Jim Meyering  <meyering@lucent.com>
85330
85331         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85332         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85333
85334 2000-02-08  Akim Demaille  <akim@epita.fr>
85335
85336         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85337         `[' and `]' and remove uses of `changequote'.
85338         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85339         (AC_SYS_LARGEFILE): Likewise.
85340         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85341         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85342         of changequote.
85343         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85344         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85345         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85346         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85347
85348 2000-02-05  Jim Meyering  <meyering@lucent.com>
85349
85350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85351         Remove explicit use of AC_HEADER_TIME.  It is required by
85352         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85353         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85354         in autoconf whereby the expansion of the latter ended up preceding
85355         the expansion of its prerequisite, AC_HEADER_TIME.
85356         Reported by Volker Borchert.
85357
85358 2000-02-03  Jim Meyering  <meyering@lucent.com>
85359
85360         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85361
85362 2000-02-03  Jim Meyering  <meyering@lucent.com>
85363
85364         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85365         rather than with `#if HAVE_UTMPNAME'.
85366
85367 2000-02-02  Jim Meyering  <meyering@lucent.com>
85368
85369         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85370         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85371         Reported by Eli Zaretskii.
85372
85373 2000-02-01  Jim Meyering  <meyering@lucent.com>
85374
85375         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85376
85377 2000-01-31  Jim Meyering  <meyering@lucent.com>
85378
85379         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85380         functions.  Add the time.h and sys/time.h headers along with the
85381         AC_REQUIRE'ment of AC_HEADER_TIME.
85382
85383 2000-01-31  Jim Meyering  <meyering@lucent.com>
85384
85385         * lib/nanosleep.h (nanosleep): Guard declaration with
85386         `#if ! HAVE_DECL_NANOSLEEP'.
85387         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85388         the declaration in that vendor's sys/timers.h.
85389         Reported by Christian Krackowizer.
85390
85391         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85392         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85393         (ISPRINT): Likewise.
85394         Reported by Tom Tromey.
85395
85396 2000-01-30  Jim Meyering  <meyering@lucent.com>
85397
85398         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85399
85400         * m4/prereq.m4 (utmp_includes): Define.
85401         Check for ut_user and ut_name members in both struct utmpx
85402         and struct utmp.
85403
85404 2000-01-30  Jim Meyering  <meyering@lucent.com>
85405
85406         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85407         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85408         header files where only utmpx.ut_user is declared.
85409
85410         * lib/readutmp.h (UT_USER): Define.
85411
85412 2000-01-29  Jim Meyering  <meyering@lucent.com>
85413
85414         * m4/lib-check.m4: New file containing library-related checks from
85415         fileutils and sh-utils (textutils had none).
85416
85417 2000-01-28  Jim Meyering  <meyering@lucent.com>
85418
85419         * m4/perl.m4: Change format of warning message to look more like that
85420         from the missing script.  Suggestion from François Pinard.
85421
85422 2000-01-25  Jim Meyering  <meyering@lucent.com>
85423
85424         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85425         well as time.h in the compile check.
85426         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85427         Fix typo in cross-compiling case: s/yes/no/.
85428
85429 2000-01-23  Jim Meyering  <meyering@lucent.com>
85430
85431         * m4/jm-macros.m4: Move df-related tests here from
85432         fileutils/configure.in
85433
85434         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85435         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85436
85437         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85438         s/space/ac_fsusage_space/.
85439         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85440
85441         * m4/ftruncate.m4: New file (derived from part of
85442         fileutils/configure.in).
85443         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85444         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85445
85446         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85447         AC_SUBST these here, rather than just in sh-util/configure.in, so
85448         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85449         all the same.
85450         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85451         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85452         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85453         (AC_SUBST(POW_LIBM)): Likewise.
85454         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85455
85456 2000-01-23  Jim Meyering  <meyering@lucent.com>
85457
85458         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85459         obstack.c.
85460
85461 2000-01-22  Jim Meyering  <meyering@lucent.com>
85462
85463         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85464
85465         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85466
85467         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85468         configure.in
85469         (AC_CHECK_HEADERS): Likewise for sh-utils.
85470         (AC_CHECK_HEADERS): Likewise for textutils.
85471         Merge the three lists of headers.
85472
85473         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85474         from fileutils' configure.in.
85475
85476         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85477         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85478         check-decl.m4.
85479
85480         * m4/check-decl.m4: Use #if rather than #ifdef.
85481         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85482         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85483         (_jm_DECL_HEADERS): Define new function.
85484         (jm_CHECK_DECLARATIONS): Require it.
85485
85486 2000-01-22  Jim Meyering  <meyering@lucent.com>
85487
85488         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85489         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85490         Required for some AIX systems.  Reported by Christian Krackowizer.
85491         [TESTING] (main): New function.
85492
85493         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85494         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85495         letters.
85496
85497         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85498         iswprint.
85499
85500         * lib/strverscmp.c (ISDIGIT): Define.
85501         (strverscmp): Use ISDIGIT, not isdigit.
85502
85503 2000-01-19  Jim Meyering  <meyering@lucent.com>
85504
85505         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85506         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85507         defines `struct timespec' in <sys/time.h>
85508
85509         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85510         Thanks to Akim for explaining.
85511
85512 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85513
85514         * lib/nanosleep.c (nanosleep):
85515         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85516         POSIX.1 doesn't require SA_INTERRUPT and some systems
85517         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85518         it's been part of POSIX.1 since day 1 (in 1988).
85519
85520 2000-01-17  Jim Meyering  <meyering@lucent.com>
85521
85522         * lib/interlock: Remove unused file.  Reported by François Pinard.
85523
85524 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85525
85526         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85527         alert, backslash, formfeed, and vertical tab unnecessarily in
85528         shell quoting style.
85529
85530 2000-01-16  Jim Meyering  <meyering@lucent.com>
85531
85532         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85533         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85534         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85535         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85536
85537 2000-01-16  Jim Meyering  <meyering@lucent.com>
85538
85539         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85540         because the latter didn't work.
85541
85542 2000-01-15  Jim Meyering  <meyering@lucent.com>
85543
85544         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85545         (AC_REPLACE_FUNCS): Add memcpy and memset.
85546         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85547         Add strpbrk.
85548         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85549
85550 2000-01-12  Jim Meyering  <meyering@lucent.com>
85551
85552         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85553         (jm_PREREQ): Use it.
85554         (jm_PREREQ_READUTMP): New macro.
85555         (jm_PREREQ): Use it.
85556
85557 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85558
85559         Quote multibyte characters correctly.
85560         * m4/c-bs-a.m4: New file.
85561         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85562         (jm_PREREQ): Use it.
85563
85564 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85565
85566         * m4/uintmax_t.m4: Port to autoconf 2.13.
85567
85568 2000-01-08  Jim Meyering  <meyering@ascend.com>
85569
85570         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85571         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85572
85573 2000-01-04  Jim Meyering  <meyering@ascend.com>
85574
85575         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85576         jm_STRUCT_DIRENT_D_TYPE.
85577         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85578         jm_STRUCT_DIRENT_D_INO.
85579         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85580         jm_STRUCT_UTIMBUF.
85581         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85582         renamings.
85583         * m4/utime.m4: Likewise.
85584
85585         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85586         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85587
85588 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85589
85590         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85591         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85592
85593 2000-01-02  Jim Meyering  <meyering@ascend.com>
85594
85595         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85596         remember if this is necessary.
85597
85598 1999-12-26  Jim Meyering  <meyering@ascend.com>
85599
85600         * m4/jm-macros.m4: Use it here.
85601         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85602
85603 1999-12-23  Jim Meyering  <meyering@ascend.com>
85604
85605         * m4/jm-macros.m4: Check for clock_gettime (moved from
85606         fileutils/configure.in)
85607         Check for gettimeofday.
85608
85609 1999-12-20  Jim Meyering  <meyering@ascend.com>
85610
85611         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85612         autoconf-2.14a-1999-12-20.
85613
85614 1999-12-19  Jim Meyering  <meyering@ascend.com>
85615
85616         * m4/lstat-slash.m4: New file.
85617         * m4/jm-macros.m4: Use the new macro:
85618         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85619
85620 1999-12-07  Jim Meyering  <meyering@ascend.com>
85621
85622         * m4/perl.m4: Require that File::Compare be available, too.
85623         Too many systems seem to lack it.
85624
85625         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85626         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85627
85628 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85629
85630         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85631         problem with the QNX 4.25 shell, which doesn't propagate exit
85632         status of failed commands inside shell assignments.
85633
85634 1999-11-17  Jim Meyering  <meyering@ascend.com>
85635
85636         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85637
85638 1999-11-07  Jim Meyering  <meyering@ascend.com>
85639
85640         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85641
85642 1999-11-06  Jim Meyering  <meyering@ascend.com>
85643
85644         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85645         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85646
85647 1999-11-05  Jim Meyering  <meyering@ascend.com>
85648
85649         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85650         configure.in of textutils, fileutils, and sh-utils into this one
85651         (shared between those packages) file.
85652         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85653         AC_STRUCT_ST_BLKSIZE.
85654
85655 1999-11-03  Jim Meyering  <meyering@ascend.com>
85656
85657         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85658         of AC_CHECK_TYPE checks includes unistd.h.
85659         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85660         Suggestion from Akim Demaille.
85661
85662 1999-10-30  Jim Meyering  <meyering@ascend.com>
85663
85664         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85665         m4-quoted string.
85666         * m4/ls-mntd-fs.m4: Likewise.
85667         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85668         * m4/jm-winsz1.m4: Likewise.
85669
85670         * m4/const.m4: Remove file, since the fix made it into the experimental
85671         version of autoconf.
85672         * m4/mktime.m4: Likewise.
85673
85674         * m4/check-type.m4: Remove file, now that the latest version of
85675         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85676
85677         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85678         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85679         AC_CHECK_TYPE.
85680
85681 1999-10-04  Jim Meyering  <meyering@ascend.com>
85682
85683         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85684
85685 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85686
85687         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85688         2.95.1 bug with HP-UX 10.20.
85689
85690 1999-09-17  Jim Meyering  <meyering@ascend.com>
85691
85692         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85693         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85694         due to missing strdup (against sh-utils-2.0).
85695
85696 1999-08-29  Jim Meyering  <meyering@ascend.com>
85697
85698         * m4/jm-macros.m4: Require jm_BISON.
85699         * m4/bison.m4: New file.
85700
85701 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85702
85703         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85704         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85705
85706 1999-08-05  Jim Meyering  <meyering@ascend.com>
85707
85708         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85709         to avoid conflicts with `conftest' on 8+3 filesystems.
85710         Suggestion from Eli Zaretskii.
85711
85712 1999-08-04  Jim Meyering  <meyering@ascend.com>
85713
85714         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85715         fileutils and sh-utils (textutils's getline test was inadequate).
85716         (AM_FUNC_GETLINE): Run this test.
85717         (AC_CHECK_FUNCS): Check for getdelim.
85718         Reported by Bob Proulx.
85719
85720 1999-08-02  Jim Meyering  <meyering@ascend.com>
85721
85722         * m4/jm-macros.m4: Add a comment.
85723
85724 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85725
85726         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85727         <inttypes.h> defines strtoumax as a macro (and not as a
85728         function).
85729
85730 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85731
85732         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85733         that we can shift, multiply and divide unsigned long long
85734         values; Ultrix cc can't do it.
85735
85736 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85737
85738         * m4/mktime.m4: New file, which is a preview of what should appear
85739         in the next public autoconf release.
85740
85741 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85742
85743         * m4/lfs.m4: Remove this file.
85744         * m4/largefile.m4: New file.  It contains the old contents of
85745         lfs.m4, except that all names with prefix AC_LFS have been
85746         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85747         compatible with future autoconf versions.  Also, some minor m4
85748         quoting problems have been fixed.
85749
85750 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85751
85752         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85753         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85754         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85755         and simplify the shell code.
85756
85757 1999-08-01  Jim Meyering  <meyering@ascend.com>
85758
85759         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85760         m4.
85761
85762 1999-07-20  Jim Meyering  <meyering@ascend.com>
85763
85764         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85765
85766 1999-07-15  Jim Meyering  <meyering@ascend.com>
85767
85768         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85769
85770 1999-05-22  Jim Meyering  <meyering@ascend.com>
85771
85772         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85773
85774 1999-05-20  Jim Meyering  <meyering@ascend.com>
85775
85776         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85777         Add a colon after each `then' in case $4 is empty.
85778
85779 1999-05-16  Jim Meyering  <meyering@ascend.com>
85780
85781         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85782
85783 1999-05-10  Jim Meyering  <meyering@ascend.com>
85784
85785         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85786
85787         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85788         AC_FUNC_MKTIME.
85789
85790 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85791
85792         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85793
85794 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85795
85796         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85797         not CPPFLAGS, so that linking works correctly in IRIX.
85798
85799 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85800
85801         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85802
85803 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85804
85805         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85806         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85807         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85808         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85809         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85810
85811         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85812
85813 1999-04-20  Jim Meyering  <meyering@ascend.com>
85814
85815         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85816         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85817         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85818
85819 1999-04-18  Jim Meyering  <meyering@ascend.com>
85820
85821         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85822         * m4/jm-macros.m4: Use it.
85823
85824 1999-04-06  Jim Meyering  <meyering@ascend.com>
85825
85826         * m4/strftime.m4: Remove test for %f.
85827
85828 1999-03-29  Jim Meyering  <meyering@ascend.com>
85829
85830         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85831         superset of the AC_TYPE_* checks in the textutils, fileutils,
85832         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85833         AC_TYPE_PID_T.
85834
85835 1999-03-28  Jim Meyering  <meyering@ascend.com>
85836
85837         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85838         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85839         replaced e.g., in the *.sh files of the sh-utils.
85840
85841 1999-03-20  Jim Meyering  <meyering@ascend.com>
85842
85843         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85844         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85845         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85846
85847 1999-03-19  Jim Meyering  <meyering@ascend.com>
85848
85849         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85850
85851 1999-03-12  Jim Meyering  <meyering@ascend.com>
85852
85853         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85854
85855 1999-03-07  Jim Meyering  <meyering@ascend.com>
85856
85857         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85858         declared.
85859
85860 1999-02-17  Jim Meyering  <meyering@ascend.com>
85861
85862         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85863         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85864
85865 1999-02-07  Jim Meyering  <meyering@ascend.com>
85866
85867         * m4/group-member.m4: New file -- extracted from sh-utils'
85868         configure.in.
85869
85870         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85871         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85872
85873 1999-02-06  Jim Meyering  <meyering@ascend.com>
85874
85875         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85876         * m4/fnmatch.m4: Likewise.
85877         * m4/getgroups.m4: Likewise.
85878         * m4/lstat.m4: Likewise.
85879         * m4/malloc.m4: Likewise.
85880         * m4/putenv.m4: Likewise.
85881         * m4/realloc.m4: Likewise.
85882         * m4/regex.m4: Likewise.
85883         * m4/stat.m4: Likewise.
85884         * m4/strftime.m4: Likewise.
85885         Suggestion from Alain Magloire.
85886
85887         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85888         * m4/fnmatch.m4: Likewise.
85889         * m4/getgroups.m4: Likewise.
85890         * m4/getline.m4: Likewise.
85891         * m4/lstat.m4: Likewise.
85892         * m4/malloc.m4: Likewise.
85893         * m4/memcmp.m4: Likewise.
85894         * m4/putenv.m4: Likewise.
85895         * m4/realloc.m4: Likewise.
85896         * m4/regex.m4: Likewise.
85897         * m4/stat.m4: Likewise.
85898         * m4/strftime.m4: Likewise.
85899         Suggestion from Alain Magloire.
85900
85901         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85902         an argument.
85903
85904         * m4/regex.m4: Add a run-time Test for proper operation of
85905         re_compile_pattern.
85906
85907 1999-01-31  Jim Meyering  <meyering@ascend.com>
85908
85909         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85910
85911 1999-01-30  Jim Meyering  <meyering@ascend.com>
85912
85913         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85914
85915         * m4/jm-mktime.m4: Make this a wrapper around the official
85916         AM_FUNC_MKTIME rather than my private copy, now that the official one
85917         is up to date.
85918         * m4/mktime.m4: Remove file.
85919
85920         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85921         * m4/uptime.m4: Likewise.
85922         * m4/uintmax_t.m4: Likewise.
85923
85924 1999-01-28  Jim Meyering  <meyering@ascend.com>
85925
85926         * m4/jm-macros.m4: Use jm_AFS.
85927         * m4/afs.m4: New file (from fileutils' configure.in).
85928
85929         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85930         * m4/chown.m4: Likewise.
85931         * m4/d-ino.m4: Likewise.
85932         * m4/d-type.m4: Likewise.
85933         * m4/fnmatch.m4: Likewise.
85934         * m4/getgroups.m4: Likewise.
85935         * m4/gettext.m4: Likewise.
85936         * m4/jm-mktime.m4: Likewise.
85937         * m4/jm-winsz2.m4: Likewise.
85938         * m4/lcmessage.m4: Likewise.
85939         * m4/ls-mntd-fs.m4: Likewise.
85940         * m4/malloc.m4: Likewise.
85941         * m4/memcmp.m4: Likewise.
85942         * m4/putenv.m4: Likewise.
85943         * m4/realloc.m4: Likewise.
85944         * m4/st_mtim.m4: Likewise.
85945         * m4/strftime.m4: Likewise.
85946
85947 1999-01-16  Jim Meyering  <meyering@ascend.com>
85948
85949         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85950         (ARGMATCH_DIE_DECL): Define.
85951
85952 1999-01-12  Jim Meyering  <meyering@ascend.com>
85953
85954         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85955         Reported by Lars Hecking.
85956
85957 1999-01-10  Jim Meyering  <meyering@ascend.com>
85958
85959         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85960         gross kludge.
85961         * m4/inttypes_h.m4: Likewise.
85962         * m4/lstat.m4: Likewise.
85963         * m4/malloc.m4: Likewise.
85964         * m4/readdir.m4: Likewise.
85965         * m4/realloc.m4: Likewise.
85966         * m4/st_dm_mode.m4: Likewise.
85967         * m4/stat.m4: Likewise.
85968         * m4/utimbuf.m4: Likewise.
85969         * m4/utimes.m4: Likewise.
85970
85971         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85972         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85973         comments in config.h.in are meaningful.
85974
85975         * m4/jm-macros.m4: Require autoconf-2.13 here.
85976
85977         * m4/regex.m4: By default, don't use the included regex.c on systems
85978         with glibc 2.  Suggestion from Uli Drepper.
85979
85980 1999-01-02  Jim Meyering  <meyering@ascend.com>
85981
85982         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85983
85984 1998-12-18  Jim Meyering  <meyering@ascend.com>
85985
85986         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85987         Based on a suggestion from Lars Hecking.
85988
85989 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85990
85991         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85992
85993 1998-11-16  Jim Meyering  <meyering@ascend.com>
85994
85995         * m4/lfs.m4: Double-quote the `uname...` expression.
85996
85997 1998-11-14  Jim Meyering  <meyering@ascend.com>
85998
85999         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86000         * m4/stat.m4: Likewise.
86001
86002 1998-11-03  Jim Meyering  <meyering@ascend.com>
86003
86004         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86005         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86006
86007 1998-10-18  Jim Meyering  <meyering@ascend.com>
86008
86009         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86010
86011 1998-10-17  Jim Meyering  <meyering@ascend.com>
86012
86013         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86014         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86015         calls for those previously hard-coded headers.  Instead, take a new
86016         parameter.
86017         (jm_CHECK_DECLARATIONS): Reflect interface change.
86018         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86019         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86020
86021         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86022
86023 1998-10-14  Jim Meyering  <meyering@ascend.com>
86024
86025         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86026         instead of "TZ=America/Vancouver".  From Paul Eggert.
86027
86028 1998-10-11  Jim Meyering  <meyering@ascend.com>
86029
86030         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86031         This adds a test for a recently added compatibility fix for mktime.c.
86032         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86033
86034 1998-09-27  Jim Meyering  <meyering@ascend.com>
86035
86036         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86037
86038         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86039         ../configure.in, including a change from Gordon Matzigkeit to allow
86040         cross-compiling for the Hurd.
86041
86042         * m4/glibc.m4: New file/macro to test for the GNU C Library
86043         versions 1 and 2.  From Gordon Matzigkeit.
86044         Indent.
86045
86046 1998-09-21  Jim Meyering  <meyering@ascend.com>
86047
86048         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86049
86050 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86051
86052         Port nanosecond-resolution times to UnixWare 2.1.2 and
86053         pedantic Solaris 2.6.
86054
86055         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86056         AC_STRUCT_ST_MTIM.
86057         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86058         Generate name of ns member, instead of just 1 or undef.
86059         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86060
86061 1998-08-15  Jim Meyering  <meyering@ascend.com>
86062
86063         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86064         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86065         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86066         instead of jm_TYPE_SSIZE_T.
86067
86068 1998-08-12  Jim Meyering  <meyering@ascend.com>
86069
86070         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86071
86072 1998-08-02  Jim Meyering  <meyering@ascend.com>
86073
86074         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86075         in acconfig.h manually.
86076
86077 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86078
86079         * m4/st_mtim.m4: New file.
86080
86081 1998-07-28  Jim Meyering  <meyering@ascend.com>
86082
86083         * m4/utimes.m4: Undef stat.
86084
86085 1998-07-25  Jim Meyering  <meyering@ascend.com>
86086
86087         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86088         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86089
86090 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86091
86092         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86093         uid and gid actually remain unchanged.
86094
86095 1998-07-07  Jim Meyering  <meyering@ascend.com>
86096
86097         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86098
86099 1998-07-04  Jim Meyering  <meyering@ascend.com>
86100
86101         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86102         to prove that this macro can be used in packages without regex.c.
86103
86104 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86105
86106         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86107         is to be used.
86108
86109 1998-07-03  Jim Meyering  <meyering@ascend.com>
86110
86111         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86112
86113         * m4/gettext.m4: New file -- from gettext-0.10.35.
86114         * m4/lcmessage.m4: Likewise.
86115         * m4/progtest.m4: Likewise.
86116
86117         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86118         * m4/jm-macros.m4: Require the new macro.
86119
86120 1998-06-29  Jim Meyering  <meyering@ascend.com>
86121
86122         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86123         for the definition of NGROUPS (used in a system header included
86124         by sys/mount.h).
86125
86126 1998-06-28  Jim Meyering  <meyering@ascend.com>
86127
86128         * m4/ls-mntd-fs.m4: New file.
86129         * m4/fstypename.m4: New file.
86130
86131         * m4/jm-macros.m4: Require the new macro.
86132         * m4/jm-glibc-io.m4: New file.
86133
86134 1998-05-19  Jim Meyering  <meyering@ascend.com>
86135
86136         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86137         * m4/lchown.m4: New file.
86138
86139         * m4/Makefile.am.in: New file.
86140         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86141
86142 1998-05-14  Jim Meyering  <meyering@ascend.com>
86143
86144         * m4/Makefile.am (EXTRA_DIST): Add them.
86145         * m4/jm-macros.m4: New file.
86146         * m4/utimbuf.m4: New file.
86147
86148 1998-05-12  Jim Meyering  <meyering@ascend.com>
86149
86150         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86151
86152 1998-05-11  Jim Meyering  <meyering@ascend.com>
86153
86154         * m4/isc-posix.m4: New file.
86155
86156 1998-05-10  Jim Meyering  <meyering@ascend.com>
86157
86158         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86159
86160 1998-05-09  Jim Meyering  <meyering@ascend.com>
86161
86162         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86163         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86164         with automake.
86165
86166         * m4/ssize_t.m4: New file.
86167         * m4/mktime.m4: Remove file -- the new automake has this now.
86168
86169 1998-04-26  Jim Meyering  <meyering@ascend.com>
86170
86171         * m4/assert.m4: New file.
86172         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86173
86174 1998-04-05  Jim Meyering  <meyering@ascend.com>
86175
86176         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86177         (jm_PREREQ): Use it here.
86178
86179 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86180
86181         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86182         in acconfig.h.
86183
86184 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86185
86186         * m4/prereq.m4: New file.
86187         * m4/error.m4: New file.
86188         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86189
86190 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86191
86192         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86193         cache-check for the same variable -- that defeated the purpose of
86194         the test; the test program was never run.  This was a problem only
86195         on systems with losing getline functions -- HP-UX 10.20 is one.
86196         Reported by Bjorn Helgaas.
86197
86198 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86199
86200         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86201
86202 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86203
86204         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86205
86206         * m4/const.m4: New file.  Use an initializer in this declaration
86207         typedef int charset[2]; const charset x;
86208         Reported by Bob Glickstein.
86209
86210 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86211
86212         * m4/chown.m4: Fix reversed types on -1 args to chown.
86213         From Kaveh Ghazi.
86214
86215 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86216
86217         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86218         Add lseek and memchr.
86219
86220         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86221         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86222         have a 20-character limit on names.
86223
86224 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86225
86226         * m4/inttypes_h.m4: New file.
86227         * m4/uintmax_t.m4: New file.
86228         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86229
86230
86231         -----
86232
86233         Local Variables:
86234         coding: utf-8
86235         End:
86236
86237         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86238
86239         Copying and distribution of this file, with or without
86240         modification, are permitted provided the copyright notice
86241         and this notice are preserved.